diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java index e8f90f8b9c84..39b7759ad3b1 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java @@ -34,6 +34,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. /** @@ -318,7 +319,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccessApprovalAdminClient implements BackgroundResource { - private final AccessApprovalAdminSettings settings; + private final @Nullable AccessApprovalAdminSettings settings; private final AccessApprovalStub stub; /** Constructs an instance of AccessApprovalAdminClient with default settings. */ @@ -358,7 +359,7 @@ protected AccessApprovalAdminClient(AccessApprovalStub stub) { this.stub = stub; } - public final AccessApprovalAdminSettings getSettings() { + public final @Nullable AccessApprovalAdminSettings getSettings() { return settings; } @@ -392,7 +393,7 @@ public AccessApprovalStub getStub() { * "organizations/{organization}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApprovalRequestsPagedResponse listApprovalRequests(FolderName parent) { + public final ListApprovalRequestsPagedResponse listApprovalRequests(@Nullable FolderName parent) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -426,7 +427,8 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(FolderName p * "organizations/{organization}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApprovalRequestsPagedResponse listApprovalRequests(OrganizationName parent) { + public final ListApprovalRequestsPagedResponse listApprovalRequests( + @Nullable OrganizationName parent) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -460,7 +462,8 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests(Organization * "organizations/{organization}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApprovalRequestsPagedResponse listApprovalRequests(ProjectName parent) { + public final ListApprovalRequestsPagedResponse listApprovalRequests( + @Nullable ProjectName parent) { ListApprovalRequestsMessage request = ListApprovalRequestsMessage.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -636,7 +639,7 @@ public final ListApprovalRequestsPagedResponse listApprovalRequests( * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ApprovalRequest getApprovalRequest(ApprovalRequestName name) { + public final ApprovalRequest getApprovalRequest(@Nullable ApprovalRequestName name) { GetApprovalRequestMessage request = GetApprovalRequestMessage.newBuilder() .setName(name == null ? null : name.toString()) @@ -980,7 +983,8 @@ public final ApprovalRequest invalidateApprovalRequest(InvalidateApprovalRequest * "{projects|folders|organizations}/{id}/accessApprovalSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessApprovalSettings getAccessApprovalSettings(AccessApprovalSettingsName name) { + public final AccessApprovalSettings getAccessApprovalSettings( + @Nullable AccessApprovalSettingsName name) { GetAccessApprovalSettingsMessage request = GetAccessApprovalSettingsMessage.newBuilder() .setName(name == null ? null : name.toString()) @@ -1204,7 +1208,7 @@ public final AccessApprovalSettings updateAccessApprovalSettings( * @param name Name of the AccessApprovalSettings to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccessApprovalSettings(AccessApprovalSettingsName name) { + public final void deleteAccessApprovalSettings(@Nullable AccessApprovalSettingsName name) { DeleteAccessApprovalSettingsMessage request = DeleteAccessApprovalSettingsMessage.newBuilder() .setName(name == null ? null : name.toString()) @@ -1457,9 +1461,10 @@ public static class ListApprovalRequestsPage ListApprovalRequestsPage> { private ListApprovalRequestsPage( - PageContext + @Nullable + PageContext context, - ListApprovalRequestsResponse response) { + @Nullable ListApprovalRequestsResponse response) { super(context, response); } @@ -1469,15 +1474,17 @@ private static ListApprovalRequestsPage createEmptyPage() { @Override protected ListApprovalRequestsPage createPage( - PageContext + @Nullable + PageContext context, - ListApprovalRequestsResponse response) { + @Nullable ListApprovalRequestsResponse response) { return new ListApprovalRequestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1493,7 +1500,7 @@ public static class ListApprovalRequestsFixedSizeCollection ListApprovalRequestsFixedSizeCollection> { private ListApprovalRequestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1503,7 +1510,7 @@ private static ListApprovalRequestsFixedSizeCollection createEmptyCollection() { @Override protected ListApprovalRequestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApprovalRequestsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java index 1b03087adb0c..75656436c65a 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccessApprovalStubSettings.newBuilder(clientContext)); } diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java index ffb83af2c3af..ab2ecb0ff36f 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -371,7 +372,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); } @@ -481,7 +482,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listApprovalRequestsSettings = diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java index bc136a8c16c7..176c705ebee7 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -137,7 +138,7 @@ public static String formatOrganizationName(String organization) { return newOrganizationBuilder().setOrganization(organization).build().toString(); } - public static AccessApprovalSettingsName parse(String formattedString) { + public static @Nullable AccessApprovalSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -163,7 +164,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessApprovalSettingsName> values) { List list = new ArrayList<>(values.size()); for (AccessApprovalSettingsName value : values) { if (value == null) { @@ -213,7 +214,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java index af9c9cdaffb7..54344c9bdbd5 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ApprovalRequestName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -166,7 +167,7 @@ public static String formatOrganizationApprovalRequestName( .toString(); } - public static ApprovalRequestName parse(String formattedString) { + public static @Nullable ApprovalRequestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -193,7 +194,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApprovalRequestName> values) { List list = new ArrayList<>(values.size()); for (ApprovalRequestName value : values) { if (value == null) { @@ -246,7 +247,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java index b8321a0d60ca..a70a61cb8d68 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java index b10fb73af261..d6f13390b50a 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java index 7ac5902de69e..56b68c4dbb22 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/src/main/java/com/google/cloud/accessapproval/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerClient.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerClient.java index 1a519a114627..534a95d9dce3 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerClient.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerClient.java @@ -44,6 +44,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. /** @@ -613,7 +614,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccessContextManagerClient implements BackgroundResource { - private final AccessContextManagerSettings settings; + private final @Nullable AccessContextManagerSettings settings; private final AccessContextManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -661,7 +662,7 @@ protected AccessContextManagerClient(AccessContextManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AccessContextManagerSettings getSettings() { + public final @Nullable AccessContextManagerSettings getSettings() { return settings; } @@ -823,7 +824,7 @@ public final ListAccessPoliciesPagedResponse listAccessPolicies( *

Format `accessPolicies/{policy_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessPolicy getAccessPolicy(AccessPolicyName name) { + public final AccessPolicy getAccessPolicy(@Nullable AccessPolicyName name) { GetAccessPolicyRequest request = GetAccessPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccessPolicy(request); @@ -1197,7 +1198,7 @@ public final UnaryCallable updateAccessPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteAccessPolicyAsync(AccessPolicyName name) { + deleteAccessPolicyAsync(@Nullable AccessPolicyName name) { DeleteAccessPolicyRequest request = DeleteAccessPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1360,7 +1361,7 @@ public final UnaryCallable deleteAccessPol *

Format: `accessPolicies/{policy_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessLevelsPagedResponse listAccessLevels(AccessPolicyName parent) { + public final ListAccessLevelsPagedResponse listAccessLevels(@Nullable AccessPolicyName parent) { ListAccessLevelsRequest request = ListAccessLevelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1541,7 +1542,7 @@ public final ListAccessLevelsPagedResponse listAccessLevels(ListAccessLevelsRequ *

Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessLevel getAccessLevel(AccessLevelName name) { + public final AccessLevel getAccessLevel(@Nullable AccessLevelName name) { GetAccessLevelRequest request = GetAccessLevelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccessLevel(request); @@ -1674,7 +1675,7 @@ public final UnaryCallable getAccessLevelCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createAccessLevelAsync(AccessPolicyName parent, AccessLevel accessLevel) { + createAccessLevelAsync(@Nullable AccessPolicyName parent, AccessLevel accessLevel) { CreateAccessLevelRequest request = CreateAccessLevelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2004,7 +2005,7 @@ public final UnaryCallable updateAccessLeve * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAccessLevelAsync( - AccessLevelName name) { + @Nullable AccessLevelName name) { DeleteAccessLevelRequest request = DeleteAccessLevelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2298,7 +2299,8 @@ public final UnaryCallable replaceAccessL *

Format: `accessPolicies/{policy_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicePerimetersPagedResponse listServicePerimeters(AccessPolicyName parent) { + public final ListServicePerimetersPagedResponse listServicePerimeters( + @Nullable AccessPolicyName parent) { ListServicePerimetersRequest request = ListServicePerimetersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2478,7 +2480,7 @@ public final ListServicePerimetersPagedResponse listServicePerimeters( *

Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServicePerimeter getServicePerimeter(ServicePerimeterName name) { + public final ServicePerimeter getServicePerimeter(@Nullable ServicePerimeterName name) { GetServicePerimeterRequest request = GetServicePerimeterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2613,7 +2615,8 @@ public final ServicePerimeter getServicePerimeter(GetServicePerimeterRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createServicePerimeterAsync(AccessPolicyName parent, ServicePerimeter servicePerimeter) { + createServicePerimeterAsync( + @Nullable AccessPolicyName parent, ServicePerimeter servicePerimeter) { CreateServicePerimeterRequest request = CreateServicePerimeterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2950,7 +2953,7 @@ public final ServicePerimeter getServicePerimeter(GetServicePerimeterRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteServicePerimeterAsync(ServicePerimeterName name) { + deleteServicePerimeterAsync(@Nullable ServicePerimeterName name) { DeleteServicePerimeterRequest request = DeleteServicePerimeterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3381,7 +3384,7 @@ public final ServicePerimeter getServicePerimeter(GetServicePerimeterRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGcpUserAccessBindingsPagedResponse listGcpUserAccessBindings( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListGcpUserAccessBindingsRequest request = ListGcpUserAccessBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3559,7 +3562,8 @@ public final ListGcpUserAccessBindingsPagedResponse listGcpUserAccessBindings( * @param name Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GcpUserAccessBinding getGcpUserAccessBinding(GcpUserAccessBindingName name) { + public final GcpUserAccessBinding getGcpUserAccessBinding( + @Nullable GcpUserAccessBindingName name) { GetGcpUserAccessBindingRequest request = GetGcpUserAccessBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3699,7 +3703,7 @@ public final GcpUserAccessBinding getGcpUserAccessBinding( */ public final OperationFuture createGcpUserAccessBindingAsync( - OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding) { + @Nullable OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding) { CreateGcpUserAccessBindingRequest request = CreateGcpUserAccessBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4048,7 +4052,7 @@ public final GcpUserAccessBinding getGcpUserAccessBinding( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteGcpUserAccessBindingAsync(GcpUserAccessBindingName name) { + deleteGcpUserAccessBindingAsync(@Nullable GcpUserAccessBindingName name) { DeleteGcpUserAccessBindingRequest request = DeleteGcpUserAccessBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4462,8 +4466,9 @@ public static class ListAccessPoliciesPage ListAccessPoliciesPage> { private ListAccessPoliciesPage( - PageContext context, - ListAccessPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { super(context, response); } @@ -4473,14 +4478,16 @@ private static ListAccessPoliciesPage createEmptyPage() { @Override protected ListAccessPoliciesPage createPage( - PageContext context, - ListAccessPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { return new ListAccessPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4495,7 +4502,7 @@ public static class ListAccessPoliciesFixedSizeCollection ListAccessPoliciesFixedSizeCollection> { private ListAccessPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4505,7 +4512,7 @@ private static ListAccessPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListAccessPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -4539,8 +4546,9 @@ public static class ListAccessLevelsPage ListAccessLevelsRequest, ListAccessLevelsResponse, AccessLevel, ListAccessLevelsPage> { private ListAccessLevelsPage( - PageContext context, - ListAccessLevelsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessLevelsResponse response) { super(context, response); } @@ -4550,14 +4558,16 @@ private static ListAccessLevelsPage createEmptyPage() { @Override protected ListAccessLevelsPage createPage( - PageContext context, - ListAccessLevelsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessLevelsResponse response) { return new ListAccessLevelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4572,7 +4582,7 @@ public static class ListAccessLevelsFixedSizeCollection ListAccessLevelsFixedSizeCollection> { private ListAccessLevelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4582,7 +4592,7 @@ private static ListAccessLevelsFixedSizeCollection createEmptyCollection() { @Override protected ListAccessLevelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessLevelsFixedSizeCollection(pages, collectionSize); } } @@ -4620,9 +4630,11 @@ public static class ListServicePerimetersPage ListServicePerimetersPage> { private ListServicePerimetersPage( - PageContext + @Nullable + PageContext< + ListServicePerimetersRequest, ListServicePerimetersResponse, ServicePerimeter> context, - ListServicePerimetersResponse response) { + @Nullable ListServicePerimetersResponse response) { super(context, response); } @@ -4632,15 +4644,19 @@ private static ListServicePerimetersPage createEmptyPage() { @Override protected ListServicePerimetersPage createPage( - PageContext + @Nullable + PageContext< + ListServicePerimetersRequest, ListServicePerimetersResponse, ServicePerimeter> context, - ListServicePerimetersResponse response) { + @Nullable ListServicePerimetersResponse response) { return new ListServicePerimetersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListServicePerimetersRequest, ListServicePerimetersResponse, ServicePerimeter> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4656,7 +4672,7 @@ public static class ListServicePerimetersFixedSizeCollection ListServicePerimetersFixedSizeCollection> { private ListServicePerimetersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4666,7 +4682,7 @@ private static ListServicePerimetersFixedSizeCollection createEmptyCollection() @Override protected ListServicePerimetersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicePerimetersFixedSizeCollection(pages, collectionSize); } } @@ -4707,12 +4723,13 @@ public static class ListGcpUserAccessBindingsPage ListGcpUserAccessBindingsPage> { private ListGcpUserAccessBindingsPage( - PageContext< + @Nullable + PageContext< ListGcpUserAccessBindingsRequest, ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> context, - ListGcpUserAccessBindingsResponse response) { + @Nullable ListGcpUserAccessBindingsResponse response) { super(context, response); } @@ -4722,18 +4739,20 @@ private static ListGcpUserAccessBindingsPage createEmptyPage() { @Override protected ListGcpUserAccessBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListGcpUserAccessBindingsRequest, ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> context, - ListGcpUserAccessBindingsResponse response) { + @Nullable ListGcpUserAccessBindingsResponse response) { return new ListGcpUserAccessBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGcpUserAccessBindingsRequest, ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> @@ -4752,7 +4771,7 @@ public static class ListGcpUserAccessBindingsFixedSizeCollection ListGcpUserAccessBindingsFixedSizeCollection> { private ListGcpUserAccessBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4762,7 +4781,7 @@ private static ListGcpUserAccessBindingsFixedSizeCollection createEmptyCollectio @Override protected ListGcpUserAccessBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGcpUserAccessBindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerSettings.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerSettings.java index 6806865f6e6c..1a18cdadb6ac 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerSettings.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -472,7 +473,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); } @@ -493,7 +494,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccessContextManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStub.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStub.java index e814091fbb49..4d3616ecafc8 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStub.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStub.java @@ -69,6 +69,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,11 +81,12 @@ @Generated("by gapic-generator-java") public abstract class AccessContextManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java index 49f3fa5365ca..f93141c3fd01 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -915,7 +916,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); } @@ -1144,7 +1145,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAccessPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACCESS_POLICIES_PAGE_STR_FACT); diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessLevelName.java b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessLevelName.java index 683ad11eafa3..19bc30773953 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessLevelName.java +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessLevelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String accessPolicy, String accessLevel) { .toString(); } - public static AccessLevelName parse(String formattedString) { + public static @Nullable AccessLevelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessLevelName> values) { List list = new ArrayList<>(values.size()); for (AccessLevelName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessPolicyName.java b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessPolicyName.java index 77b711b485fc..e65948e9363a 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessPolicyName.java +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/AccessPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String accessPolicy) { return newBuilder().setAccessPolicy(accessPolicy).build().toString(); } - public static AccessPolicyName parse(String formattedString) { + public static @Nullable AccessPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessPolicyName> values) { List list = new ArrayList<>(values.size()); for (AccessPolicyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/GcpUserAccessBindingName.java b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/GcpUserAccessBindingName.java index 364c35821d35..46f243de0488 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/GcpUserAccessBindingName.java +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/GcpUserAccessBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String organization, String gcpUserAccessBinding) { .toString(); } - public static GcpUserAccessBindingName parse(String formattedString) { + public static @Nullable GcpUserAccessBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GcpUserAccessBindingName> values) { List list = new ArrayList<>(values.size()); for (GcpUserAccessBindingName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/OrganizationName.java b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/OrganizationName.java index 4fa77778b555..36e3df2c8eb8 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/OrganizationName.java +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/ServicePerimeterName.java b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/ServicePerimeterName.java index 9dc9b818a4c3..17679b0dec5f 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/ServicePerimeterName.java +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/src/main/java/com/google/identity/accesscontextmanager/v1/ServicePerimeterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String accessPolicy, String servicePerimeter) { .toString(); } - public static ServicePerimeterName parse(String formattedString) { + public static @Nullable ServicePerimeterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServicePerimeterName> values) { List list = new ArrayList<>(values.size()); for (ServicePerimeterName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java index 4c9e6dc19099..af7c058705c4 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceClient.java @@ -34,6 +34,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. /** @@ -210,7 +211,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdBreakServiceClient implements BackgroundResource { - private final AdBreakServiceSettings settings; + private final @Nullable AdBreakServiceSettings settings; private final AdBreakServiceStub stub; /** Constructs an instance of AdBreakServiceClient with default settings. */ @@ -250,7 +251,7 @@ protected AdBreakServiceClient(AdBreakServiceStub stub) { this.stub = stub; } - public final AdBreakServiceSettings getSettings() { + public final @Nullable AdBreakServiceSettings getSettings() { return settings; } @@ -285,7 +286,7 @@ public AdBreakServiceStub getStub() { * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}/adBreaks/{ad_break_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdBreak getAdBreak(AdBreakName name) { + public final AdBreak getAdBreak(@Nullable AdBreakName name) { GetAdBreakRequest request = GetAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAdBreak(request); @@ -413,7 +414,7 @@ public final UnaryCallable getAdBreakCallable() { * `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdBreaksPagedResponse listAdBreaks(LiveStreamEventName parent) { + public final ListAdBreaksPagedResponse listAdBreaks(@Nullable LiveStreamEventName parent) { ListAdBreaksRequest request = ListAdBreaksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -622,7 +623,7 @@ public final UnaryCallable listAdBrea * @param adBreak Required. The `AdBreak` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdBreak createAdBreak(LiveStreamEventName parent, AdBreak adBreak) { + public final AdBreak createAdBreak(@Nullable LiveStreamEventName parent, AdBreak adBreak) { CreateAdBreakRequest request = CreateAdBreakRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -896,7 +897,7 @@ public final UnaryCallable updateAdBreakCallable( * `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdBreak(AdBreakName name) { + public final void deleteAdBreak(@Nullable AdBreakName name) { DeleteAdBreakRequest request = DeleteAdBreakRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAdBreak(request); @@ -1061,8 +1062,8 @@ public static class ListAdBreaksPage extends AbstractPage { private ListAdBreaksPage( - PageContext context, - ListAdBreaksResponse response) { + @Nullable PageContext context, + @Nullable ListAdBreaksResponse response) { super(context, response); } @@ -1072,14 +1073,14 @@ private static ListAdBreaksPage createEmptyPage() { @Override protected ListAdBreaksPage createPage( - PageContext context, - ListAdBreaksResponse response) { + @Nullable PageContext context, + @Nullable ListAdBreaksResponse response) { return new ListAdBreaksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1093,7 +1094,8 @@ public static class ListAdBreaksFixedSizeCollection ListAdBreaksPage, ListAdBreaksFixedSizeCollection> { - private ListAdBreaksFixedSizeCollection(List pages, int collectionSize) { + private ListAdBreaksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1103,7 +1105,7 @@ private static ListAdBreaksFixedSizeCollection createEmptyCollection() { @Override protected ListAdBreaksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdBreaksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java index 855e2781ed7c..bdfa6bc9b6c8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdBreakServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdBreakServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java index c9a8c2136d9e..516123735008 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceClient.java @@ -36,6 +36,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. /** @@ -177,7 +178,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdReviewCenterAdServiceClient implements BackgroundResource { - private final AdReviewCenterAdServiceSettings settings; + private final @Nullable AdReviewCenterAdServiceSettings settings; private final AdReviewCenterAdServiceStub stub; private final OperationsClient httpJsonOperationsClient; @@ -221,7 +222,7 @@ protected AdReviewCenterAdServiceClient(AdReviewCenterAdServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AdReviewCenterAdServiceSettings getSettings() { + public final @Nullable AdReviewCenterAdServiceSettings getSettings() { return settings; } @@ -271,7 +272,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( - WebPropertyName parent) { + @Nullable WebPropertyName parent) { SearchAdReviewCenterAdsRequest request = SearchAdReviewCenterAdsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -475,7 +476,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( */ public final OperationFuture< BatchAllowAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> - batchAllowAdReviewCenterAdsAsync(WebPropertyName parent) { + batchAllowAdReviewCenterAdsAsync(@Nullable WebPropertyName parent) { BatchAllowAdReviewCenterAdsRequest request = BatchAllowAdReviewCenterAdsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -666,7 +667,7 @@ public final SearchAdReviewCenterAdsPagedResponse searchAdReviewCenterAds( */ public final OperationFuture< BatchBlockAdReviewCenterAdsResponse, BatchAdReviewCenterAdsOperationMetadata> - batchBlockAdReviewCenterAdsAsync(WebPropertyName parent) { + batchBlockAdReviewCenterAdsAsync(@Nullable WebPropertyName parent) { BatchBlockAdReviewCenterAdsRequest request = BatchBlockAdReviewCenterAdsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -886,10 +887,11 @@ public static class SearchAdReviewCenterAdsPage SearchAdReviewCenterAdsPage> { private SearchAdReviewCenterAdsPage( - PageContext< + @Nullable + PageContext< SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> context, - SearchAdReviewCenterAdsResponse response) { + @Nullable SearchAdReviewCenterAdsResponse response) { super(context, response); } @@ -899,16 +901,18 @@ private static SearchAdReviewCenterAdsPage createEmptyPage() { @Override protected SearchAdReviewCenterAdsPage createPage( - PageContext< + @Nullable + PageContext< SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> context, - SearchAdReviewCenterAdsResponse response) { + @Nullable SearchAdReviewCenterAdsResponse response) { return new SearchAdReviewCenterAdsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchAdReviewCenterAdsRequest, SearchAdReviewCenterAdsResponse, AdReviewCenterAd> context, ApiFuture futureResponse) { @@ -925,7 +929,7 @@ public static class SearchAdReviewCenterAdsFixedSizeCollection SearchAdReviewCenterAdsFixedSizeCollection> { private SearchAdReviewCenterAdsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -935,7 +939,7 @@ private static SearchAdReviewCenterAdsFixedSizeCollection createEmptyCollection( @Override protected SearchAdReviewCenterAdsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAdReviewCenterAdsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java index 7c85fc41407c..d58769b056b5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdReviewCenterAdServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java index 28ff66105135..55639493a707 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java @@ -33,6 +33,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. /** @@ -292,7 +293,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdUnitServiceClient implements BackgroundResource { - private final AdUnitServiceSettings settings; + private final @Nullable AdUnitServiceSettings settings; private final AdUnitServiceStub stub; /** Constructs an instance of AdUnitServiceClient with default settings. */ @@ -332,7 +333,7 @@ protected AdUnitServiceClient(AdUnitServiceStub stub) { this.stub = stub; } - public final AdUnitServiceSettings getSettings() { + public final @Nullable AdUnitServiceSettings getSettings() { return settings; } @@ -362,7 +363,7 @@ public AdUnitServiceStub getStub() { * `networks/{network_code}/adUnits/{ad_unit_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdUnit getAdUnit(AdUnitName name) { + public final AdUnit getAdUnit(@Nullable AdUnitName name) { GetAdUnitRequest request = GetAdUnitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAdUnit(request); @@ -474,7 +475,7 @@ public final UnaryCallable getAdUnitCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdUnitsPagedResponse listAdUnits(NetworkName parent) { + public final ListAdUnitsPagedResponse listAdUnits(@Nullable NetworkName parent) { ListAdUnitsRequest request = ListAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -646,7 +647,7 @@ public final UnaryCallable listAdUnitsC * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdUnitSizesPagedResponse listAdUnitSizes(NetworkName parent) { + public final ListAdUnitSizesPagedResponse listAdUnitSizes(@Nullable NetworkName parent) { ListAdUnitSizesRequest request = ListAdUnitSizesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -821,7 +822,7 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(ListAdUnitSizesRequest * @param adUnit Required. The `AdUnit` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdUnit createAdUnit(NetworkName parent, AdUnit adUnit) { + public final AdUnit createAdUnit(@Nullable NetworkName parent, AdUnit adUnit) { CreateAdUnitRequest request = CreateAdUnitRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1033,7 +1034,7 @@ public final UnaryCallable updateAdUnitCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateAdUnitsResponse batchCreateAdUnits( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateAdUnitsRequest request = BatchCreateAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1163,7 +1164,7 @@ public final BatchCreateAdUnitsResponse batchCreateAdUnits(BatchCreateAdUnitsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateAdUnitsRequest request = BatchUpdateAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1291,7 +1292,7 @@ public final BatchUpdateAdUnitsResponse batchUpdateAdUnits(BatchUpdateAdUnitsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateAdUnitsResponse batchActivateAdUnits( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateAdUnitsRequest request = BatchActivateAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1418,7 +1419,7 @@ public final BatchActivateAdUnitsResponse batchActivateAdUnits( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateAdUnitsResponse batchDeactivateAdUnits( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateAdUnitsRequest request = BatchDeactivateAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1544,7 +1545,7 @@ public final BatchDeactivateAdUnitsResponse batchDeactivateAdUnits( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchArchiveAdUnitsResponse batchArchiveAdUnits( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchArchiveAdUnitsRequest request = BatchArchiveAdUnitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1698,8 +1699,8 @@ public static class ListAdUnitsPage extends AbstractPage { private ListAdUnitsPage( - PageContext context, - ListAdUnitsResponse response) { + @Nullable PageContext context, + @Nullable ListAdUnitsResponse response) { super(context, response); } @@ -1709,14 +1710,14 @@ private static ListAdUnitsPage createEmptyPage() { @Override protected ListAdUnitsPage createPage( - PageContext context, - ListAdUnitsResponse response) { + @Nullable PageContext context, + @Nullable ListAdUnitsResponse response) { return new ListAdUnitsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1730,7 +1731,8 @@ public static class ListAdUnitsFixedSizeCollection ListAdUnitsPage, ListAdUnitsFixedSizeCollection> { - private ListAdUnitsFixedSizeCollection(List pages, int collectionSize) { + private ListAdUnitsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1740,7 +1742,7 @@ private static ListAdUnitsFixedSizeCollection createEmptyCollection() { @Override protected ListAdUnitsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdUnitsFixedSizeCollection(pages, collectionSize); } } @@ -1774,8 +1776,8 @@ public static class ListAdUnitSizesPage ListAdUnitSizesRequest, ListAdUnitSizesResponse, AdUnitSize, ListAdUnitSizesPage> { private ListAdUnitSizesPage( - PageContext context, - ListAdUnitSizesResponse response) { + @Nullable PageContext context, + @Nullable ListAdUnitSizesResponse response) { super(context, response); } @@ -1785,14 +1787,14 @@ private static ListAdUnitSizesPage createEmptyPage() { @Override protected ListAdUnitSizesPage createPage( - PageContext context, - ListAdUnitSizesResponse response) { + @Nullable PageContext context, + @Nullable ListAdUnitSizesResponse response) { return new ListAdUnitSizesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1807,7 +1809,7 @@ public static class ListAdUnitSizesFixedSizeCollection ListAdUnitSizesFixedSizeCollection> { private ListAdUnitSizesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1817,7 +1819,7 @@ private static ListAdUnitSizesFixedSizeCollection createEmptyCollection() { @Override protected ListAdUnitSizesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdUnitSizesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java index 1acfc7a0c660..519e4f1e8027 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -191,7 +192,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -211,7 +212,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdUnitServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java index 1a50f61ae305..ef920f29b535 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceClient.java @@ -33,6 +33,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. /** @@ -256,7 +257,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApplicationServiceClient implements BackgroundResource { - private final ApplicationServiceSettings settings; + private final @Nullable ApplicationServiceSettings settings; private final ApplicationServiceStub stub; /** Constructs an instance of ApplicationServiceClient with default settings. */ @@ -296,7 +297,7 @@ protected ApplicationServiceClient(ApplicationServiceStub stub) { this.stub = stub; } - public final ApplicationServiceSettings getSettings() { + public final @Nullable ApplicationServiceSettings getSettings() { return settings; } @@ -326,7 +327,7 @@ public ApplicationServiceStub getStub() { * `networks/{network_code}/applications/{application_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Application getApplication(ApplicationName name) { + public final Application getApplication(@Nullable ApplicationName name) { GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApplication(request); @@ -439,7 +440,7 @@ public final UnaryCallable getApplicationCal * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApplicationsPagedResponse listApplications(NetworkName parent) { + public final ListApplicationsPagedResponse listApplications(@Nullable NetworkName parent) { ListApplicationsRequest request = ListApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -615,7 +616,8 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ * @param application Required. The `Application` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Application createApplication(NetworkName parent, Application application) { + public final Application createApplication( + @Nullable NetworkName parent, Application application) { CreateApplicationRequest request = CreateApplicationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -739,7 +741,7 @@ public final UnaryCallable createApplicat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateApplicationsResponse batchCreateApplications( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateApplicationsRequest request = BatchCreateApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -963,7 +965,7 @@ public final UnaryCallable updateApplicat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateApplicationsResponse batchUpdateApplications( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateApplicationsRequest request = BatchUpdateApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1095,7 +1097,7 @@ public final BatchUpdateApplicationsResponse batchUpdateApplications( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchArchiveApplicationsResponse batchArchiveApplications( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchArchiveApplicationsRequest request = BatchArchiveApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1223,7 +1225,7 @@ public final BatchArchiveApplicationsResponse batchArchiveApplications( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUnarchiveApplicationsResponse batchUnarchiveApplications( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchUnarchiveApplicationsRequest request = BatchUnarchiveApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1384,8 +1386,9 @@ public static class ListApplicationsPage ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { private ListApplicationsPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { super(context, response); } @@ -1395,14 +1398,16 @@ private static ListApplicationsPage createEmptyPage() { @Override protected ListApplicationsPage createPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { return new ListApplicationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1417,7 +1422,7 @@ public static class ListApplicationsFixedSizeCollection ListApplicationsFixedSizeCollection> { private ListApplicationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1427,7 +1432,7 @@ private static ListApplicationsFixedSizeCollection createEmptyCollection() { @Override protected ListApplicationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApplicationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java index d721634de2f6..6de2b31d0cfc 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ApplicationServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApplicationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java index a98be3a59838..1a61a3c0aee8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AudienceSegmentServiceClient implements BackgroundResource { - private final AudienceSegmentServiceSettings settings; + private final @Nullable AudienceSegmentServiceSettings settings; private final AudienceSegmentServiceStub stub; /** Constructs an instance of AudienceSegmentServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected AudienceSegmentServiceClient(AudienceSegmentServiceStub stub) { this.stub = stub; } - public final AudienceSegmentServiceSettings getSettings() { + public final @Nullable AudienceSegmentServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public AudienceSegmentServiceStub getStub() { * `networks/{network_code}/audienceSegments/{audience_segment_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AudienceSegment getAudienceSegment(AudienceSegmentName name) { + public final AudienceSegment getAudienceSegment(@Nullable AudienceSegmentName name) { GetAudienceSegmentRequest request = GetAudienceSegmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final AudienceSegment getAudienceSegment(GetAudienceSegmentRequest reques * Format: `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAudienceSegmentsPagedResponse listAudienceSegments(NetworkName parent) { + public final ListAudienceSegmentsPagedResponse listAudienceSegments( + @Nullable NetworkName parent) { ListAudienceSegmentsRequest request = ListAudienceSegmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,10 @@ public static class ListAudienceSegmentsPage ListAudienceSegmentsPage> { private ListAudienceSegmentsPage( - PageContext + @Nullable + PageContext context, - ListAudienceSegmentsResponse response) { + @Nullable ListAudienceSegmentsResponse response) { super(context, response); } @@ -577,15 +580,17 @@ private static ListAudienceSegmentsPage createEmptyPage() { @Override protected ListAudienceSegmentsPage createPage( - PageContext + @Nullable + PageContext context, - ListAudienceSegmentsResponse response) { + @Nullable ListAudienceSegmentsResponse response) { return new ListAudienceSegmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +606,7 @@ public static class ListAudienceSegmentsFixedSizeCollection ListAudienceSegmentsFixedSizeCollection> { private ListAudienceSegmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +616,7 @@ private static ListAudienceSegmentsFixedSizeCollection createEmptyCollection() { @Override protected ListAudienceSegmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAudienceSegmentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java index f54587150de0..1b2beeab22d1 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AudienceSegmentServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AudienceSegmentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java index 8db1d1394e65..679c6926484f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BandwidthGroupServiceClient implements BackgroundResource { - private final BandwidthGroupServiceSettings settings; + private final @Nullable BandwidthGroupServiceSettings settings; private final BandwidthGroupServiceStub stub; /** Constructs an instance of BandwidthGroupServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected BandwidthGroupServiceClient(BandwidthGroupServiceStub stub) { this.stub = stub; } - public final BandwidthGroupServiceSettings getSettings() { + public final @Nullable BandwidthGroupServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public BandwidthGroupServiceStub getStub() { * `networks/{network_code}/bandwidthGroups/{bandwidth_group_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BandwidthGroup getBandwidthGroup(BandwidthGroupName name) { + public final BandwidthGroup getBandwidthGroup(@Nullable BandwidthGroupName name) { GetBandwidthGroupRequest request = GetBandwidthGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -340,7 +341,7 @@ public final UnaryCallable getBandwidt * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBandwidthGroupsPagedResponse listBandwidthGroups(NetworkName parent) { + public final ListBandwidthGroupsPagedResponse listBandwidthGroups(@Nullable NetworkName parent) { ListBandwidthGroupsRequest request = ListBandwidthGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -562,9 +563,10 @@ public static class ListBandwidthGroupsPage ListBandwidthGroupsPage> { private ListBandwidthGroupsPage( - PageContext + @Nullable + PageContext context, - ListBandwidthGroupsResponse response) { + @Nullable ListBandwidthGroupsResponse response) { super(context, response); } @@ -574,15 +576,17 @@ private static ListBandwidthGroupsPage createEmptyPage() { @Override protected ListBandwidthGroupsPage createPage( - PageContext + @Nullable + PageContext context, - ListBandwidthGroupsResponse response) { + @Nullable ListBandwidthGroupsResponse response) { return new ListBandwidthGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -598,7 +602,7 @@ public static class ListBandwidthGroupsFixedSizeCollection ListBandwidthGroupsFixedSizeCollection> { private ListBandwidthGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -608,7 +612,7 @@ private static ListBandwidthGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListBandwidthGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBandwidthGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java index 6673d6c20eb0..c7fbc1ef335b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BandwidthGroupServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BandwidthGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java index 55bf6208ee80..e913b770d9f9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BrowserLanguageServiceClient implements BackgroundResource { - private final BrowserLanguageServiceSettings settings; + private final @Nullable BrowserLanguageServiceSettings settings; private final BrowserLanguageServiceStub stub; /** Constructs an instance of BrowserLanguageServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected BrowserLanguageServiceClient(BrowserLanguageServiceStub stub) { this.stub = stub; } - public final BrowserLanguageServiceSettings getSettings() { + public final @Nullable BrowserLanguageServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public BrowserLanguageServiceStub getStub() { * `networks/{network_code}/browserLanguages/{browser_language_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BrowserLanguage getBrowserLanguage(BrowserLanguageName name) { + public final BrowserLanguage getBrowserLanguage(@Nullable BrowserLanguageName name) { GetBrowserLanguageRequest request = GetBrowserLanguageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final BrowserLanguage getBrowserLanguage(GetBrowserLanguageRequest reques * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBrowserLanguagesPagedResponse listBrowserLanguages(NetworkName parent) { + public final ListBrowserLanguagesPagedResponse listBrowserLanguages( + @Nullable NetworkName parent) { ListBrowserLanguagesRequest request = ListBrowserLanguagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,10 @@ public static class ListBrowserLanguagesPage ListBrowserLanguagesPage> { private ListBrowserLanguagesPage( - PageContext + @Nullable + PageContext context, - ListBrowserLanguagesResponse response) { + @Nullable ListBrowserLanguagesResponse response) { super(context, response); } @@ -577,15 +580,17 @@ private static ListBrowserLanguagesPage createEmptyPage() { @Override protected ListBrowserLanguagesPage createPage( - PageContext + @Nullable + PageContext context, - ListBrowserLanguagesResponse response) { + @Nullable ListBrowserLanguagesResponse response) { return new ListBrowserLanguagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +606,7 @@ public static class ListBrowserLanguagesFixedSizeCollection ListBrowserLanguagesFixedSizeCollection> { private ListBrowserLanguagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +616,7 @@ private static ListBrowserLanguagesFixedSizeCollection createEmptyCollection() { @Override protected ListBrowserLanguagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBrowserLanguagesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java index d8de88adfdbb..2321de41c272 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserLanguageServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BrowserLanguageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java index 971b2ac05fc0..afefc08139fa 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceClient.java @@ -32,6 +32,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BrowserServiceClient implements BackgroundResource { - private final BrowserServiceSettings settings; + private final @Nullable BrowserServiceSettings settings; private final BrowserServiceStub stub; /** Constructs an instance of BrowserServiceClient with default settings. */ @@ -185,7 +186,7 @@ protected BrowserServiceClient(BrowserServiceStub stub) { this.stub = stub; } - public final BrowserServiceSettings getSettings() { + public final @Nullable BrowserServiceSettings getSettings() { return settings; } @@ -215,7 +216,7 @@ public BrowserServiceStub getStub() { * `networks/{network_code}/browsers/{browser_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Browser getBrowser(BrowserName name) { + public final Browser getBrowser(@Nullable BrowserName name) { GetBrowserRequest request = GetBrowserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBrowser(request); @@ -327,7 +328,7 @@ public final UnaryCallable getBrowserCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBrowsersPagedResponse listBrowsers(NetworkName parent) { + public final ListBrowsersPagedResponse listBrowsers(@Nullable NetworkName parent) { ListBrowsersRequest request = ListBrowsersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -534,8 +535,8 @@ public static class ListBrowsersPage extends AbstractPage { private ListBrowsersPage( - PageContext context, - ListBrowsersResponse response) { + @Nullable PageContext context, + @Nullable ListBrowsersResponse response) { super(context, response); } @@ -545,14 +546,14 @@ private static ListBrowsersPage createEmptyPage() { @Override protected ListBrowsersPage createPage( - PageContext context, - ListBrowsersResponse response) { + @Nullable PageContext context, + @Nullable ListBrowsersResponse response) { return new ListBrowsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -566,7 +567,8 @@ public static class ListBrowsersFixedSizeCollection ListBrowsersPage, ListBrowsersFixedSizeCollection> { - private ListBrowsersFixedSizeCollection(List pages, int collectionSize) { + private ListBrowsersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -576,7 +578,7 @@ private static ListBrowsersFixedSizeCollection createEmptyCollection() { @Override protected ListBrowsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBrowsersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java index d3a026f19a19..1d6e66d57136 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/BrowserServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BrowserServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java index 92e01d9e3781..6097fb4f1d5b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceClient.java @@ -32,6 +32,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CmsMetadataKeyServiceClient implements BackgroundResource { - private final CmsMetadataKeyServiceSettings settings; + private final @Nullable CmsMetadataKeyServiceSettings settings; private final CmsMetadataKeyServiceStub stub; /** Constructs an instance of CmsMetadataKeyServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected CmsMetadataKeyServiceClient(CmsMetadataKeyServiceStub stub) { this.stub = stub; } - public final CmsMetadataKeyServiceSettings getSettings() { + public final @Nullable CmsMetadataKeyServiceSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public CmsMetadataKeyServiceStub getStub() { * `networks/{network_code}/cmsMetadataKeys/{cms_metadata_key_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CmsMetadataKey getCmsMetadataKey(CmsMetadataKeyName name) { + public final CmsMetadataKey getCmsMetadataKey(@Nullable CmsMetadataKeyName name) { GetCmsMetadataKeyRequest request = GetCmsMetadataKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -378,7 +379,7 @@ public final UnaryCallable getCmsMetad * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(NetworkName parent) { + public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys(@Nullable NetworkName parent) { ListCmsMetadataKeysRequest request = ListCmsMetadataKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,7 +566,7 @@ public final ListCmsMetadataKeysPagedResponse listCmsMetadataKeys( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateCmsMetadataKeysRequest request = BatchActivateCmsMetadataKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -703,7 +704,7 @@ public final BatchActivateCmsMetadataKeysResponse batchActivateCmsMetadataKeys( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateCmsMetadataKeysResponse batchDeactivateCmsMetadataKeys( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateCmsMetadataKeysRequest request = BatchDeactivateCmsMetadataKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -876,9 +877,10 @@ public static class ListCmsMetadataKeysPage ListCmsMetadataKeysPage> { private ListCmsMetadataKeysPage( - PageContext + @Nullable + PageContext context, - ListCmsMetadataKeysResponse response) { + @Nullable ListCmsMetadataKeysResponse response) { super(context, response); } @@ -888,15 +890,17 @@ private static ListCmsMetadataKeysPage createEmptyPage() { @Override protected ListCmsMetadataKeysPage createPage( - PageContext + @Nullable + PageContext context, - ListCmsMetadataKeysResponse response) { + @Nullable ListCmsMetadataKeysResponse response) { return new ListCmsMetadataKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -912,7 +916,7 @@ public static class ListCmsMetadataKeysFixedSizeCollection ListCmsMetadataKeysFixedSizeCollection> { private ListCmsMetadataKeysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -922,7 +926,7 @@ private static ListCmsMetadataKeysFixedSizeCollection createEmptyCollection() { @Override protected ListCmsMetadataKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCmsMetadataKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java index d315bc906aca..7de8d560c1b0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmsMetadataKeyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java index d8b37770ef9d..516e29f47c1b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java @@ -32,6 +32,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CmsMetadataValueServiceClient implements BackgroundResource { - private final CmsMetadataValueServiceSettings settings; + private final @Nullable CmsMetadataValueServiceSettings settings; private final CmsMetadataValueServiceStub stub; /** Constructs an instance of CmsMetadataValueServiceClient with default settings. */ @@ -228,7 +229,7 @@ protected CmsMetadataValueServiceClient(CmsMetadataValueServiceStub stub) { this.stub = stub; } - public final CmsMetadataValueServiceSettings getSettings() { + public final @Nullable CmsMetadataValueServiceSettings getSettings() { return settings; } @@ -259,7 +260,7 @@ public CmsMetadataValueServiceStub getStub() { * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CmsMetadataValue getCmsMetadataValue(CmsMetadataValueName name) { + public final CmsMetadataValue getCmsMetadataValue(@Nullable CmsMetadataValueName name) { GetCmsMetadataValueRequest request = GetCmsMetadataValueRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -381,7 +382,8 @@ public final CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest req * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues(NetworkName parent) { + public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( + @Nullable NetworkName parent) { ListCmsMetadataValuesRequest request = ListCmsMetadataValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -568,7 +570,7 @@ public final ListCmsMetadataValuesPagedResponse listCmsMetadataValues( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValues( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateCmsMetadataValuesRequest request = BatchActivateCmsMetadataValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -708,7 +710,7 @@ public final BatchActivateCmsMetadataValuesResponse batchActivateCmsMetadataValu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateCmsMetadataValuesResponse batchDeactivateCmsMetadataValues( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateCmsMetadataValuesRequest request = BatchDeactivateCmsMetadataValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -883,9 +885,11 @@ public static class ListCmsMetadataValuesPage ListCmsMetadataValuesPage> { private ListCmsMetadataValuesPage( - PageContext + @Nullable + PageContext< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue> context, - ListCmsMetadataValuesResponse response) { + @Nullable ListCmsMetadataValuesResponse response) { super(context, response); } @@ -895,15 +899,19 @@ private static ListCmsMetadataValuesPage createEmptyPage() { @Override protected ListCmsMetadataValuesPage createPage( - PageContext + @Nullable + PageContext< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue> context, - ListCmsMetadataValuesResponse response) { + @Nullable ListCmsMetadataValuesResponse response) { return new ListCmsMetadataValuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCmsMetadataValuesRequest, ListCmsMetadataValuesResponse, CmsMetadataValue> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -919,7 +927,7 @@ public static class ListCmsMetadataValuesFixedSizeCollection ListCmsMetadataValuesFixedSizeCollection> { private ListCmsMetadataValuesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -929,7 +937,7 @@ private static ListCmsMetadataValuesFixedSizeCollection createEmptyCollection() @Override protected ListCmsMetadataValuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCmsMetadataValuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java index 3069740e4195..7348f405670c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmsMetadataValueServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java index e23c0dfd02a5..d045a234131f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceClient.java @@ -32,6 +32,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CompanyServiceClient implements BackgroundResource { - private final CompanyServiceSettings settings; + private final @Nullable CompanyServiceSettings settings; private final CompanyServiceStub stub; /** Constructs an instance of CompanyServiceClient with default settings. */ @@ -185,7 +186,7 @@ protected CompanyServiceClient(CompanyServiceStub stub) { this.stub = stub; } - public final CompanyServiceSettings getSettings() { + public final @Nullable CompanyServiceSettings getSettings() { return settings; } @@ -215,7 +216,7 @@ public CompanyServiceStub getStub() { * `networks/{network_code}/companies/{company_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company getCompany(CompanyName name) { + public final Company getCompany(@Nullable CompanyName name) { GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCompany(request); @@ -327,7 +328,7 @@ public final UnaryCallable getCompanyCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompaniesPagedResponse listCompanies(NetworkName parent) { + public final ListCompaniesPagedResponse listCompanies(@Nullable NetworkName parent) { ListCompaniesRequest request = ListCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -535,8 +536,8 @@ public static class ListCompaniesPage ListCompaniesRequest, ListCompaniesResponse, Company, ListCompaniesPage> { private ListCompaniesPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { super(context, response); } @@ -546,14 +547,14 @@ private static ListCompaniesPage createEmptyPage() { @Override protected ListCompaniesPage createPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { return new ListCompaniesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -567,7 +568,8 @@ public static class ListCompaniesFixedSizeCollection ListCompaniesPage, ListCompaniesFixedSizeCollection> { - private ListCompaniesFixedSizeCollection(List pages, int collectionSize) { + private ListCompaniesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -577,7 +579,7 @@ private static ListCompaniesFixedSizeCollection createEmptyCollection() { @Override protected ListCompaniesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCompaniesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceSettings.java index 0941a95ac04d..406fb3e86d8d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CompanyServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompanyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java index b7de99e3669b..48db125778b3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceClient.java @@ -33,6 +33,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. /** @@ -215,7 +216,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContactServiceClient implements BackgroundResource { - private final ContactServiceSettings settings; + private final @Nullable ContactServiceSettings settings; private final ContactServiceStub stub; /** Constructs an instance of ContactServiceClient with default settings. */ @@ -255,7 +256,7 @@ protected ContactServiceClient(ContactServiceStub stub) { this.stub = stub; } - public final ContactServiceSettings getSettings() { + public final @Nullable ContactServiceSettings getSettings() { return settings; } @@ -285,7 +286,7 @@ public ContactServiceStub getStub() { * `networks/{network_code}/contacts/{contact_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact getContact(ContactName name) { + public final Contact getContact(@Nullable ContactName name) { GetContactRequest request = GetContactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContact(request); @@ -397,7 +398,7 @@ public final UnaryCallable getContactCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContactsPagedResponse listContacts(NetworkName parent) { + public final ListContactsPagedResponse listContacts(@Nullable NetworkName parent) { ListContactsRequest request = ListContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -570,7 +571,7 @@ public final UnaryCallable listContac * @param contact Required. The `Contact` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact createContact(NetworkName parent, Contact contact) { + public final Contact createContact(@Nullable NetworkName parent, Contact contact) { CreateContactRequest request = CreateContactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -694,7 +695,7 @@ public final UnaryCallable createContactCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateContactsResponse batchCreateContacts( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateContactsRequest request = BatchCreateContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -911,7 +912,7 @@ public final UnaryCallable updateContactCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateContactsResponse batchUpdateContacts( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateContactsRequest request = BatchUpdateContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1071,8 +1072,8 @@ public static class ListContactsPage extends AbstractPage { private ListContactsPage( - PageContext context, - ListContactsResponse response) { + @Nullable PageContext context, + @Nullable ListContactsResponse response) { super(context, response); } @@ -1082,14 +1083,14 @@ private static ListContactsPage createEmptyPage() { @Override protected ListContactsPage createPage( - PageContext context, - ListContactsResponse response) { + @Nullable PageContext context, + @Nullable ListContactsResponse response) { return new ListContactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1103,7 +1104,8 @@ public static class ListContactsFixedSizeCollection ListContactsPage, ListContactsFixedSizeCollection> { - private ListContactsFixedSizeCollection(List pages, int collectionSize) { + private ListContactsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1113,7 +1115,7 @@ private static ListContactsFixedSizeCollection createEmptyCollection() { @Override protected ListContactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContactsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java index e3fc15a513e8..25a40ede87a0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContactServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContactServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java index 91239d864e09..27ad977fe229 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContentBundleServiceClient implements BackgroundResource { - private final ContentBundleServiceSettings settings; + private final @Nullable ContentBundleServiceSettings settings; private final ContentBundleServiceStub stub; /** Constructs an instance of ContentBundleServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected ContentBundleServiceClient(ContentBundleServiceStub stub) { this.stub = stub; } - public final ContentBundleServiceSettings getSettings() { + public final @Nullable ContentBundleServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public ContentBundleServiceStub getStub() { * `networks/{network_code}/contentBundles/{content_bundle_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ContentBundle getContentBundle(ContentBundleName name) { + public final ContentBundle getContentBundle(@Nullable ContentBundleName name) { GetContentBundleRequest request = GetContentBundleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContentBundle(request); @@ -338,7 +339,7 @@ public final UnaryCallable getContentBun * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContentBundlesPagedResponse listContentBundles(NetworkName parent) { + public final ListContentBundlesPagedResponse listContentBundles(@Nullable NetworkName parent) { ListContentBundlesRequest request = ListContentBundlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,8 +560,9 @@ public static class ListContentBundlesPage ListContentBundlesPage> { private ListContentBundlesPage( - PageContext context, - ListContentBundlesResponse response) { + @Nullable PageContext + context, + @Nullable ListContentBundlesResponse response) { super(context, response); } @@ -570,14 +572,16 @@ private static ListContentBundlesPage createEmptyPage() { @Override protected ListContentBundlesPage createPage( - PageContext context, - ListContentBundlesResponse response) { + @Nullable PageContext + context, + @Nullable ListContentBundlesResponse response) { return new ListContentBundlesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -592,7 +596,7 @@ public static class ListContentBundlesFixedSizeCollection ListContentBundlesFixedSizeCollection> { private ListContentBundlesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -602,7 +606,7 @@ private static ListContentBundlesFixedSizeCollection createEmptyCollection() { @Override protected ListContentBundlesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContentBundlesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java index fc7975380aab..164daa1a7fcc 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentBundleServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContentBundleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java index 78d530adb87c..fa6c6993dada 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContentLabelServiceClient implements BackgroundResource { - private final ContentLabelServiceSettings settings; + private final @Nullable ContentLabelServiceSettings settings; private final ContentLabelServiceStub stub; /** Constructs an instance of ContentLabelServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected ContentLabelServiceClient(ContentLabelServiceStub stub) { this.stub = stub; } - public final ContentLabelServiceSettings getSettings() { + public final @Nullable ContentLabelServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public ContentLabelServiceStub getStub() { * `networks/{network_code}/contentLabels/{content_label_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ContentLabel getContentLabel(ContentLabelName name) { + public final ContentLabel getContentLabel(@Nullable ContentLabelName name) { GetContentLabelRequest request = GetContentLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContentLabel(request); @@ -332,7 +333,7 @@ public final UnaryCallable getContentLabel * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContentLabelsPagedResponse listContentLabels(NetworkName parent) { + public final ListContentLabelsPagedResponse listContentLabels(@Nullable NetworkName parent) { ListContentLabelsRequest request = ListContentLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,8 +549,9 @@ public static class ListContentLabelsPage ListContentLabelsPage> { private ListContentLabelsPage( - PageContext context, - ListContentLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListContentLabelsResponse response) { super(context, response); } @@ -559,14 +561,16 @@ private static ListContentLabelsPage createEmptyPage() { @Override protected ListContentLabelsPage createPage( - PageContext context, - ListContentLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListContentLabelsResponse response) { return new ListContentLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -581,7 +585,7 @@ public static class ListContentLabelsFixedSizeCollection ListContentLabelsFixedSizeCollection> { private ListContentLabelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -591,7 +595,7 @@ private static ListContentLabelsFixedSizeCollection createEmptyCollection() { @Override protected ListContentLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContentLabelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java index 64045c9f263a..cde7d5e14361 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentLabelServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -166,7 +167,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContentLabelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java index fd7f58f08b19..767505dd0724 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceClient.java @@ -32,6 +32,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContentServiceClient implements BackgroundResource { - private final ContentServiceSettings settings; + private final @Nullable ContentServiceSettings settings; private final ContentServiceStub stub; /** Constructs an instance of ContentServiceClient with default settings. */ @@ -185,7 +186,7 @@ protected ContentServiceClient(ContentServiceStub stub) { this.stub = stub; } - public final ContentServiceSettings getSettings() { + public final @Nullable ContentServiceSettings getSettings() { return settings; } @@ -215,7 +216,7 @@ public ContentServiceStub getStub() { * `networks/{network_code}/content/{content_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Content getContent(ContentName name) { + public final Content getContent(@Nullable ContentName name) { GetContentRequest request = GetContentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContent(request); @@ -327,7 +328,7 @@ public final UnaryCallable getContentCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContentPagedResponse listContent(NetworkName parent) { + public final ListContentPagedResponse listContent(@Nullable NetworkName parent) { ListContentRequest request = ListContentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -532,8 +533,8 @@ public static class ListContentPage extends AbstractPage { private ListContentPage( - PageContext context, - ListContentResponse response) { + @Nullable PageContext context, + @Nullable ListContentResponse response) { super(context, response); } @@ -543,14 +544,14 @@ private static ListContentPage createEmptyPage() { @Override protected ListContentPage createPage( - PageContext context, - ListContentResponse response) { + @Nullable PageContext context, + @Nullable ListContentResponse response) { return new ListContentPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -564,7 +565,8 @@ public static class ListContentFixedSizeCollection ListContentPage, ListContentFixedSizeCollection> { - private ListContentFixedSizeCollection(List pages, int collectionSize) { + private ListContentFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -574,7 +576,7 @@ private static ListContentFixedSizeCollection createEmptyCollection() { @Override protected ListContentFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContentFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java index 87827127c03a..6afd1479b0e8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ContentServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java index 051f25d796e7..956b1191f827 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CreativeTemplateServiceClient implements BackgroundResource { - private final CreativeTemplateServiceSettings settings; + private final @Nullable CreativeTemplateServiceSettings settings; private final CreativeTemplateServiceStub stub; /** Constructs an instance of CreativeTemplateServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected CreativeTemplateServiceClient(CreativeTemplateServiceStub stub) { this.stub = stub; } - public final CreativeTemplateServiceSettings getSettings() { + public final @Nullable CreativeTemplateServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public CreativeTemplateServiceStub getStub() { * `networks/{network_code}/creativeTemplates/{creative_template_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CreativeTemplate getCreativeTemplate(CreativeTemplateName name) { + public final CreativeTemplate getCreativeTemplate(@Nullable CreativeTemplateName name) { GetCreativeTemplateRequest request = GetCreativeTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final CreativeTemplate getCreativeTemplate(GetCreativeTemplateRequest req * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCreativeTemplatesPagedResponse listCreativeTemplates(NetworkName parent) { + public final ListCreativeTemplatesPagedResponse listCreativeTemplates( + @Nullable NetworkName parent) { ListCreativeTemplatesRequest request = ListCreativeTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,11 @@ public static class ListCreativeTemplatesPage ListCreativeTemplatesPage> { private ListCreativeTemplatesPage( - PageContext + @Nullable + PageContext< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate> context, - ListCreativeTemplatesResponse response) { + @Nullable ListCreativeTemplatesResponse response) { super(context, response); } @@ -577,15 +581,19 @@ private static ListCreativeTemplatesPage createEmptyPage() { @Override protected ListCreativeTemplatesPage createPage( - PageContext + @Nullable + PageContext< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate> context, - ListCreativeTemplatesResponse response) { + @Nullable ListCreativeTemplatesResponse response) { return new ListCreativeTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCreativeTemplatesRequest, ListCreativeTemplatesResponse, CreativeTemplate> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +609,7 @@ public static class ListCreativeTemplatesFixedSizeCollection ListCreativeTemplatesFixedSizeCollection> { private ListCreativeTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +619,7 @@ private static ListCreativeTemplatesFixedSizeCollection createEmptyCollection() @Override protected ListCreativeTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCreativeTemplatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java index 575ef1f92a6f..5e9019ddc2f6 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CreativeTemplateServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CreativeTemplateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java index 73f863c15c97..1a441541eef4 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceClient.java @@ -33,6 +33,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. /** @@ -256,7 +257,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CustomFieldServiceClient implements BackgroundResource { - private final CustomFieldServiceSettings settings; + private final @Nullable CustomFieldServiceSettings settings; private final CustomFieldServiceStub stub; /** Constructs an instance of CustomFieldServiceClient with default settings. */ @@ -296,7 +297,7 @@ protected CustomFieldServiceClient(CustomFieldServiceStub stub) { this.stub = stub; } - public final CustomFieldServiceSettings getSettings() { + public final @Nullable CustomFieldServiceSettings getSettings() { return settings; } @@ -326,7 +327,7 @@ public CustomFieldServiceStub getStub() { * `networks/{network_code}/customFields/{custom_field_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomField getCustomField(CustomFieldName name) { + public final CustomField getCustomField(@Nullable CustomFieldName name) { GetCustomFieldRequest request = GetCustomFieldRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomField(request); @@ -439,7 +440,7 @@ public final UnaryCallable getCustomFieldCal * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomFieldsPagedResponse listCustomFields(NetworkName parent) { + public final ListCustomFieldsPagedResponse listCustomFields(@Nullable NetworkName parent) { ListCustomFieldsRequest request = ListCustomFieldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -615,7 +616,8 @@ public final ListCustomFieldsPagedResponse listCustomFields(ListCustomFieldsRequ * @param customField Required. The `CustomField` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomField createCustomField(NetworkName parent, CustomField customField) { + public final CustomField createCustomField( + @Nullable NetworkName parent, CustomField customField) { CreateCustomFieldRequest request = CreateCustomFieldRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -740,7 +742,7 @@ public final UnaryCallable createCustomFi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateCustomFieldsResponse batchCreateCustomFields( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateCustomFieldsRequest request = BatchCreateCustomFieldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -966,7 +968,7 @@ public final UnaryCallable updateCustomFi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateCustomFieldsRequest request = BatchUpdateCustomFieldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1099,7 +1101,7 @@ public final BatchUpdateCustomFieldsResponse batchUpdateCustomFields( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateCustomFieldsResponse batchActivateCustomFields( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateCustomFieldsRequest request = BatchActivateCustomFieldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1227,7 +1229,7 @@ public final BatchActivateCustomFieldsResponse batchActivateCustomFields( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateCustomFieldsResponse batchDeactivateCustomFields( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateCustomFieldsRequest request = BatchDeactivateCustomFieldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1392,8 +1394,9 @@ public static class ListCustomFieldsPage ListCustomFieldsRequest, ListCustomFieldsResponse, CustomField, ListCustomFieldsPage> { private ListCustomFieldsPage( - PageContext context, - ListCustomFieldsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomFieldsResponse response) { super(context, response); } @@ -1403,14 +1406,16 @@ private static ListCustomFieldsPage createEmptyPage() { @Override protected ListCustomFieldsPage createPage( - PageContext context, - ListCustomFieldsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomFieldsResponse response) { return new ListCustomFieldsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1425,7 +1430,7 @@ public static class ListCustomFieldsFixedSizeCollection ListCustomFieldsFixedSizeCollection> { private ListCustomFieldsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1435,7 +1440,7 @@ private static ListCustomFieldsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomFieldsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomFieldsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java index e3a62473f0bf..58ca2cbc78be 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomFieldServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CustomFieldServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java index d11b2eb688d8..98580d160512 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java @@ -33,6 +33,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. /** @@ -258,7 +259,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CustomTargetingKeyServiceClient implements BackgroundResource { - private final CustomTargetingKeyServiceSettings settings; + private final @Nullable CustomTargetingKeyServiceSettings settings; private final CustomTargetingKeyServiceStub stub; /** Constructs an instance of CustomTargetingKeyServiceClient with default settings. */ @@ -300,7 +301,7 @@ protected CustomTargetingKeyServiceClient(CustomTargetingKeyServiceStub stub) { this.stub = stub; } - public final CustomTargetingKeyServiceSettings getSettings() { + public final @Nullable CustomTargetingKeyServiceSettings getSettings() { return settings; } @@ -332,7 +333,7 @@ public CustomTargetingKeyServiceStub getStub() { * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomTargetingKey getCustomTargetingKey(CustomTargetingKeyName name) { + public final CustomTargetingKey getCustomTargetingKey(@Nullable CustomTargetingKeyName name) { GetCustomTargetingKeyRequest request = GetCustomTargetingKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -457,7 +458,8 @@ public final CustomTargetingKey getCustomTargetingKey(GetCustomTargetingKeyReque * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys(NetworkName parent) { + public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( + @Nullable NetworkName parent) { ListCustomTargetingKeysRequest request = ListCustomTargetingKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -645,7 +647,7 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomTargetingKey createCustomTargetingKey( - NetworkName parent, CustomTargetingKey customTargetingKey) { + @Nullable NetworkName parent, CustomTargetingKey customTargetingKey) { CreateCustomTargetingKeyRequest request = CreateCustomTargetingKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -782,7 +784,7 @@ public final CustomTargetingKey createCustomTargetingKey( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKeys( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateCustomTargetingKeysRequest request = BatchCreateCustomTargetingKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1024,7 +1026,7 @@ public final CustomTargetingKey updateCustomTargetingKey( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKeys( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateCustomTargetingKeysRequest request = BatchUpdateCustomTargetingKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1164,7 +1166,7 @@ public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargetingKeys( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateCustomTargetingKeysRequest request = BatchActivateCustomTargetingKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1302,7 +1304,7 @@ public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargeti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateCustomTargetingKeysResponse batchDeactivateCustomTargetingKeys( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateCustomTargetingKeysRequest request = BatchDeactivateCustomTargetingKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1477,10 +1479,11 @@ public static class ListCustomTargetingKeysPage ListCustomTargetingKeysPage> { private ListCustomTargetingKeysPage( - PageContext< + @Nullable + PageContext< ListCustomTargetingKeysRequest, ListCustomTargetingKeysResponse, CustomTargetingKey> context, - ListCustomTargetingKeysResponse response) { + @Nullable ListCustomTargetingKeysResponse response) { super(context, response); } @@ -1490,16 +1493,18 @@ private static ListCustomTargetingKeysPage createEmptyPage() { @Override protected ListCustomTargetingKeysPage createPage( - PageContext< + @Nullable + PageContext< ListCustomTargetingKeysRequest, ListCustomTargetingKeysResponse, CustomTargetingKey> context, - ListCustomTargetingKeysResponse response) { + @Nullable ListCustomTargetingKeysResponse response) { return new ListCustomTargetingKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCustomTargetingKeysRequest, ListCustomTargetingKeysResponse, CustomTargetingKey> context, ApiFuture futureResponse) { @@ -1516,7 +1521,7 @@ public static class ListCustomTargetingKeysFixedSizeCollection ListCustomTargetingKeysFixedSizeCollection> { private ListCustomTargetingKeysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1526,7 +1531,7 @@ private static ListCustomTargetingKeysFixedSizeCollection createEmptyCollection( @Override protected ListCustomTargetingKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomTargetingKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java index 52aa7857f161..8d0673cbfa4f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CustomTargetingKeyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java index 152b89b00240..e22b14965491 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceClient.java @@ -32,6 +32,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. /** @@ -151,7 +152,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CustomTargetingValueServiceClient implements BackgroundResource { - private final CustomTargetingValueServiceSettings settings; + private final @Nullable CustomTargetingValueServiceSettings settings; private final CustomTargetingValueServiceStub stub; /** Constructs an instance of CustomTargetingValueServiceClient with default settings. */ @@ -194,7 +195,7 @@ protected CustomTargetingValueServiceClient(CustomTargetingValueServiceStub stub this.stub = stub; } - public final CustomTargetingValueServiceSettings getSettings() { + public final @Nullable CustomTargetingValueServiceSettings getSettings() { return settings; } @@ -227,7 +228,8 @@ public CustomTargetingValueServiceStub getStub() { * `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomTargetingValue getCustomTargetingValue(CustomTargetingValueName name) { + public final CustomTargetingValue getCustomTargetingValue( + @Nullable CustomTargetingValueName name) { GetCustomTargetingValueRequest request = GetCustomTargetingValueRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -358,7 +360,7 @@ public final CustomTargetingValue getCustomTargetingValue( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomTargetingValuesPagedResponse listCustomTargetingValues( - NetworkName parent) { + @Nullable NetworkName parent) { ListCustomTargetingValuesRequest request = ListCustomTargetingValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -586,12 +588,13 @@ public static class ListCustomTargetingValuesPage ListCustomTargetingValuesPage> { private ListCustomTargetingValuesPage( - PageContext< + @Nullable + PageContext< ListCustomTargetingValuesRequest, ListCustomTargetingValuesResponse, CustomTargetingValue> context, - ListCustomTargetingValuesResponse response) { + @Nullable ListCustomTargetingValuesResponse response) { super(context, response); } @@ -601,18 +604,20 @@ private static ListCustomTargetingValuesPage createEmptyPage() { @Override protected ListCustomTargetingValuesPage createPage( - PageContext< + @Nullable + PageContext< ListCustomTargetingValuesRequest, ListCustomTargetingValuesResponse, CustomTargetingValue> context, - ListCustomTargetingValuesResponse response) { + @Nullable ListCustomTargetingValuesResponse response) { return new ListCustomTargetingValuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCustomTargetingValuesRequest, ListCustomTargetingValuesResponse, CustomTargetingValue> @@ -631,7 +636,7 @@ public static class ListCustomTargetingValuesFixedSizeCollection ListCustomTargetingValuesFixedSizeCollection> { private ListCustomTargetingValuesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -641,7 +646,7 @@ private static ListCustomTargetingValuesFixedSizeCollection createEmptyCollectio @Override protected ListCustomTargetingValuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomTargetingValuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java index 05c79cede008..5694b8bdc421 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CustomTargetingValueServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java index 5f8cc8640219..bbae6bb6a02f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeviceCapabilityServiceClient implements BackgroundResource { - private final DeviceCapabilityServiceSettings settings; + private final @Nullable DeviceCapabilityServiceSettings settings; private final DeviceCapabilityServiceStub stub; /** Constructs an instance of DeviceCapabilityServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected DeviceCapabilityServiceClient(DeviceCapabilityServiceStub stub) { this.stub = stub; } - public final DeviceCapabilityServiceSettings getSettings() { + public final @Nullable DeviceCapabilityServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public DeviceCapabilityServiceStub getStub() { * `networks/{network_code}/deviceCapabilities/{device_capability_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceCapability getDeviceCapability(DeviceCapabilityName name) { + public final DeviceCapability getDeviceCapability(@Nullable DeviceCapabilityName name) { GetDeviceCapabilityRequest request = GetDeviceCapabilityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final DeviceCapability getDeviceCapability(GetDeviceCapabilityRequest req * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities(NetworkName parent) { + public final ListDeviceCapabilitiesPagedResponse listDeviceCapabilities( + @Nullable NetworkName parent) { ListDeviceCapabilitiesRequest request = ListDeviceCapabilitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,11 @@ public static class ListDeviceCapabilitiesPage ListDeviceCapabilitiesPage> { private ListDeviceCapabilitiesPage( - PageContext + @Nullable + PageContext< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse, DeviceCapability> context, - ListDeviceCapabilitiesResponse response) { + @Nullable ListDeviceCapabilitiesResponse response) { super(context, response); } @@ -577,15 +581,19 @@ private static ListDeviceCapabilitiesPage createEmptyPage() { @Override protected ListDeviceCapabilitiesPage createPage( - PageContext + @Nullable + PageContext< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse, DeviceCapability> context, - ListDeviceCapabilitiesResponse response) { + @Nullable ListDeviceCapabilitiesResponse response) { return new ListDeviceCapabilitiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListDeviceCapabilitiesRequest, ListDeviceCapabilitiesResponse, DeviceCapability> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +609,7 @@ public static class ListDeviceCapabilitiesFixedSizeCollection ListDeviceCapabilitiesFixedSizeCollection> { private ListDeviceCapabilitiesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +619,7 @@ private static ListDeviceCapabilitiesFixedSizeCollection createEmptyCollection() @Override protected ListDeviceCapabilitiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeviceCapabilitiesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java index b3942dfd2e65..072115368255 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeviceCapabilityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java index 5430678a8db0..6d5fff7ff1fe 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeviceCategoryServiceClient implements BackgroundResource { - private final DeviceCategoryServiceSettings settings; + private final @Nullable DeviceCategoryServiceSettings settings; private final DeviceCategoryServiceStub stub; /** Constructs an instance of DeviceCategoryServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected DeviceCategoryServiceClient(DeviceCategoryServiceStub stub) { this.stub = stub; } - public final DeviceCategoryServiceSettings getSettings() { + public final @Nullable DeviceCategoryServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public DeviceCategoryServiceStub getStub() { * `networks/{network_code}/deviceCategories/{device_category_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceCategory getDeviceCategory(DeviceCategoryName name) { + public final DeviceCategory getDeviceCategory(@Nullable DeviceCategoryName name) { GetDeviceCategoryRequest request = GetDeviceCategoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -340,7 +341,8 @@ public final UnaryCallable getDeviceCa * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceCategoriesPagedResponse listDeviceCategories(NetworkName parent) { + public final ListDeviceCategoriesPagedResponse listDeviceCategories( + @Nullable NetworkName parent) { ListDeviceCategoriesRequest request = ListDeviceCategoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -562,9 +564,10 @@ public static class ListDeviceCategoriesPage ListDeviceCategoriesPage> { private ListDeviceCategoriesPage( - PageContext + @Nullable + PageContext context, - ListDeviceCategoriesResponse response) { + @Nullable ListDeviceCategoriesResponse response) { super(context, response); } @@ -574,15 +577,17 @@ private static ListDeviceCategoriesPage createEmptyPage() { @Override protected ListDeviceCategoriesPage createPage( - PageContext + @Nullable + PageContext context, - ListDeviceCategoriesResponse response) { + @Nullable ListDeviceCategoriesResponse response) { return new ListDeviceCategoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -598,7 +603,7 @@ public static class ListDeviceCategoriesFixedSizeCollection ListDeviceCategoriesFixedSizeCollection> { private ListDeviceCategoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -608,7 +613,7 @@ private static ListDeviceCategoriesFixedSizeCollection createEmptyCollection() { @Override protected ListDeviceCategoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeviceCategoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java index 248bc5b929ea..70ebf31c1f8e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceCategoryServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeviceCategoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java index 58936e99132c..20f25e6bffa7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceClient.java @@ -32,6 +32,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. /** @@ -150,7 +151,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeviceManufacturerServiceClient implements BackgroundResource { - private final DeviceManufacturerServiceSettings settings; + private final @Nullable DeviceManufacturerServiceSettings settings; private final DeviceManufacturerServiceStub stub; /** Constructs an instance of DeviceManufacturerServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected DeviceManufacturerServiceClient(DeviceManufacturerServiceStub stub) { this.stub = stub; } - public final DeviceManufacturerServiceSettings getSettings() { + public final @Nullable DeviceManufacturerServiceSettings getSettings() { return settings; } @@ -224,7 +225,7 @@ public DeviceManufacturerServiceStub getStub() { * `networks/{network_code}/deviceManufacturers/{device_manufacturer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceManufacturer getDeviceManufacturer(DeviceManufacturerName name) { + public final DeviceManufacturer getDeviceManufacturer(@Nullable DeviceManufacturerName name) { GetDeviceManufacturerRequest request = GetDeviceManufacturerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -348,7 +349,8 @@ public final DeviceManufacturer getDeviceManufacturer(GetDeviceManufacturerReque * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceManufacturersPagedResponse listDeviceManufacturers(NetworkName parent) { + public final ListDeviceManufacturersPagedResponse listDeviceManufacturers( + @Nullable NetworkName parent) { ListDeviceManufacturersRequest request = ListDeviceManufacturersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -573,10 +575,11 @@ public static class ListDeviceManufacturersPage ListDeviceManufacturersPage> { private ListDeviceManufacturersPage( - PageContext< + @Nullable + PageContext< ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> context, - ListDeviceManufacturersResponse response) { + @Nullable ListDeviceManufacturersResponse response) { super(context, response); } @@ -586,16 +589,18 @@ private static ListDeviceManufacturersPage createEmptyPage() { @Override protected ListDeviceManufacturersPage createPage( - PageContext< + @Nullable + PageContext< ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> context, - ListDeviceManufacturersResponse response) { + @Nullable ListDeviceManufacturersResponse response) { return new ListDeviceManufacturersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDeviceManufacturersRequest, ListDeviceManufacturersResponse, DeviceManufacturer> context, ApiFuture futureResponse) { @@ -612,7 +617,7 @@ public static class ListDeviceManufacturersFixedSizeCollection ListDeviceManufacturersFixedSizeCollection> { private ListDeviceManufacturersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -622,7 +627,7 @@ private static ListDeviceManufacturersFixedSizeCollection createEmptyCollection( @Override protected ListDeviceManufacturersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeviceManufacturersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java index 098a715ec0f2..814e13e2fd28 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeviceManufacturerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java index c7b44723f16e..ce99e070fda9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceClient.java @@ -33,6 +33,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. /** @@ -221,7 +222,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EntitySignalsMappingServiceClient implements BackgroundResource { - private final EntitySignalsMappingServiceSettings settings; + private final @Nullable EntitySignalsMappingServiceSettings settings; private final EntitySignalsMappingServiceStub stub; /** Constructs an instance of EntitySignalsMappingServiceClient with default settings. */ @@ -264,7 +265,7 @@ protected EntitySignalsMappingServiceClient(EntitySignalsMappingServiceStub stub this.stub = stub; } - public final EntitySignalsMappingServiceSettings getSettings() { + public final @Nullable EntitySignalsMappingServiceSettings getSettings() { return settings; } @@ -297,7 +298,8 @@ public EntitySignalsMappingServiceStub getStub() { * `networks/{network_code}/entitySignalsMappings/{entity_signals_mapping_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntitySignalsMapping getEntitySignalsMapping(EntitySignalsMappingName name) { + public final EntitySignalsMapping getEntitySignalsMapping( + @Nullable EntitySignalsMappingName name) { GetEntitySignalsMappingRequest request = GetEntitySignalsMappingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -428,7 +430,7 @@ public final EntitySignalsMapping getEntitySignalsMapping( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings( - NetworkName parent) { + @Nullable NetworkName parent) { ListEntitySignalsMappingsRequest request = ListEntitySignalsMappingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -618,7 +620,7 @@ public final ListEntitySignalsMappingsPagedResponse listEntitySignalsMappings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntitySignalsMapping createEntitySignalsMapping( - NetworkName parent, EntitySignalsMapping entitySignalsMapping) { + @Nullable NetworkName parent, EntitySignalsMapping entitySignalsMapping) { CreateEntitySignalsMappingRequest request = CreateEntitySignalsMappingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -861,7 +863,7 @@ public final EntitySignalsMapping updateEntitySignalsMapping( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMappings( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateEntitySignalsMappingsRequest request = BatchCreateEntitySignalsMappingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1003,7 +1005,7 @@ public final BatchCreateEntitySignalsMappingsResponse batchCreateEntitySignalsMa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateEntitySignalsMappingsResponse batchUpdateEntitySignalsMappings( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateEntitySignalsMappingsRequest request = BatchUpdateEntitySignalsMappingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1182,12 +1184,13 @@ public static class ListEntitySignalsMappingsPage ListEntitySignalsMappingsPage> { private ListEntitySignalsMappingsPage( - PageContext< + @Nullable + PageContext< ListEntitySignalsMappingsRequest, ListEntitySignalsMappingsResponse, EntitySignalsMapping> context, - ListEntitySignalsMappingsResponse response) { + @Nullable ListEntitySignalsMappingsResponse response) { super(context, response); } @@ -1197,18 +1200,20 @@ private static ListEntitySignalsMappingsPage createEmptyPage() { @Override protected ListEntitySignalsMappingsPage createPage( - PageContext< + @Nullable + PageContext< ListEntitySignalsMappingsRequest, ListEntitySignalsMappingsResponse, EntitySignalsMapping> context, - ListEntitySignalsMappingsResponse response) { + @Nullable ListEntitySignalsMappingsResponse response) { return new ListEntitySignalsMappingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEntitySignalsMappingsRequest, ListEntitySignalsMappingsResponse, EntitySignalsMapping> @@ -1227,7 +1232,7 @@ public static class ListEntitySignalsMappingsFixedSizeCollection ListEntitySignalsMappingsFixedSizeCollection> { private ListEntitySignalsMappingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1237,7 +1242,7 @@ private static ListEntitySignalsMappingsFixedSizeCollection createEmptyCollectio @Override protected ListEntitySignalsMappingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitySignalsMappingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceSettings.java index 4eb3bf911e15..91dc9761eee7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntitySignalsMappingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java index 570a9bee9355..8e1d7955647c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GeoTargetServiceClient implements BackgroundResource { - private final GeoTargetServiceSettings settings; + private final @Nullable GeoTargetServiceSettings settings; private final GeoTargetServiceStub stub; /** Constructs an instance of GeoTargetServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected GeoTargetServiceClient(GeoTargetServiceStub stub) { this.stub = stub; } - public final GeoTargetServiceSettings getSettings() { + public final @Nullable GeoTargetServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public GeoTargetServiceStub getStub() { * `networks/{network_code}/geoTargets/{geo_target_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GeoTarget getGeoTarget(GeoTargetName name) { + public final GeoTarget getGeoTarget(@Nullable GeoTargetName name) { GetGeoTargetRequest request = GetGeoTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGeoTarget(request); @@ -331,7 +332,7 @@ public final UnaryCallable getGeoTargetCallable( * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGeoTargetsPagedResponse listGeoTargets(NetworkName parent) { + public final ListGeoTargetsPagedResponse listGeoTargets(@Nullable NetworkName parent) { ListGeoTargetsRequest request = ListGeoTargetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -541,8 +542,8 @@ public static class ListGeoTargetsPage ListGeoTargetsRequest, ListGeoTargetsResponse, GeoTarget, ListGeoTargetsPage> { private ListGeoTargetsPage( - PageContext context, - ListGeoTargetsResponse response) { + @Nullable PageContext context, + @Nullable ListGeoTargetsResponse response) { super(context, response); } @@ -552,14 +553,14 @@ private static ListGeoTargetsPage createEmptyPage() { @Override protected ListGeoTargetsPage createPage( - PageContext context, - ListGeoTargetsResponse response) { + @Nullable PageContext context, + @Nullable ListGeoTargetsResponse response) { return new ListGeoTargetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -573,7 +574,8 @@ public static class ListGeoTargetsFixedSizeCollection ListGeoTargetsPage, ListGeoTargetsFixedSizeCollection> { - private ListGeoTargetsFixedSizeCollection(List pages, int collectionSize) { + private ListGeoTargetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -583,7 +585,7 @@ private static ListGeoTargetsFixedSizeCollection createEmptyCollection() { @Override protected ListGeoTargetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeoTargetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java index 2bd073071787..24fb5c3f13e9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/GeoTargetServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -145,7 +146,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -165,7 +166,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeoTargetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java index 8fa5551be8c0..6e9d7e586559 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceClient.java @@ -33,6 +33,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LabelServiceClient implements BackgroundResource { - private final LabelServiceSettings settings; + private final @Nullable LabelServiceSettings settings; private final LabelServiceStub stub; /** Constructs an instance of LabelServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected LabelServiceClient(LabelServiceStub stub) { this.stub = stub; } - public final LabelServiceSettings getSettings() { + public final @Nullable LabelServiceSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public LabelServiceStub getStub() { * `networks/{network_code}/labels/{label_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Label getLabel(LabelName name) { + public final Label getLabel(@Nullable LabelName name) { GetLabelRequest request = GetLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLabel(request); @@ -434,7 +435,7 @@ public final UnaryCallable getLabelCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLabelsPagedResponse listLabels(NetworkName parent) { + public final ListLabelsPagedResponse listLabels(@Nullable NetworkName parent) { ListLabelsRequest request = ListLabelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLabels(request); @@ -603,7 +604,7 @@ public final UnaryCallable listLabelsCall * @param label Required. The `Label` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Label createLabel(NetworkName parent, Label label) { + public final Label createLabel(@Nullable NetworkName parent, Label label) { CreateLabelRequest request = CreateLabelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -725,7 +726,7 @@ public final UnaryCallable createLabelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateLabelsResponse batchCreateLabels( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateLabelsRequest request = BatchCreateLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -938,7 +939,7 @@ public final UnaryCallable updateLabelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateLabelsResponse batchUpdateLabels( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateLabelsRequest request = BatchUpdateLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1063,7 +1064,7 @@ public final BatchUpdateLabelsResponse batchUpdateLabels(BatchUpdateLabelsReques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateLabelsResponse batchActivateLabels( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateLabelsRequest request = BatchActivateLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1187,7 +1188,7 @@ public final BatchActivateLabelsResponse batchActivateLabels(BatchActivateLabels * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateLabelsResponse batchDeactivateLabels( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateLabelsRequest request = BatchDeactivateLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1344,8 +1345,8 @@ public static class ListLabelsPage extends AbstractPage { private ListLabelsPage( - PageContext context, - ListLabelsResponse response) { + @Nullable PageContext context, + @Nullable ListLabelsResponse response) { super(context, response); } @@ -1355,14 +1356,14 @@ private static ListLabelsPage createEmptyPage() { @Override protected ListLabelsPage createPage( - PageContext context, - ListLabelsResponse response) { + @Nullable PageContext context, + @Nullable ListLabelsResponse response) { return new ListLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1376,7 +1377,8 @@ public static class ListLabelsFixedSizeCollection ListLabelsPage, ListLabelsFixedSizeCollection> { - private ListLabelsFixedSizeCollection(List pages, int collectionSize) { + private ListLabelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1386,7 +1388,7 @@ private static ListLabelsFixedSizeCollection createEmptyCollection() { @Override protected ListLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLabelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java index 6fb57ae71e7c..9f03e7c13c3a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LabelServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,7 +178,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -197,7 +198,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LabelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java index 2fc22027ca18..d03d4d13df70 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LineItemServiceClient implements BackgroundResource { - private final LineItemServiceSettings settings; + private final @Nullable LineItemServiceSettings settings; private final LineItemServiceStub stub; /** Constructs an instance of LineItemServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected LineItemServiceClient(LineItemServiceStub stub) { this.stub = stub; } - public final LineItemServiceSettings getSettings() { + public final @Nullable LineItemServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public LineItemServiceStub getStub() { * `networks/{network_code}/lineItems/{line_item_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineItem getLineItem(LineItemName name) { + public final LineItem getLineItem(@Nullable LineItemName name) { GetLineItemRequest request = GetLineItemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLineItem(request); @@ -330,7 +331,7 @@ public final UnaryCallable getLineItemCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLineItemsPagedResponse listLineItems(NetworkName parent) { + public final ListLineItemsPagedResponse listLineItems(@Nullable NetworkName parent) { ListLineItemsRequest request = ListLineItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -539,8 +540,8 @@ public static class ListLineItemsPage ListLineItemsRequest, ListLineItemsResponse, LineItem, ListLineItemsPage> { private ListLineItemsPage( - PageContext context, - ListLineItemsResponse response) { + @Nullable PageContext context, + @Nullable ListLineItemsResponse response) { super(context, response); } @@ -550,14 +551,14 @@ private static ListLineItemsPage createEmptyPage() { @Override protected ListLineItemsPage createPage( - PageContext context, - ListLineItemsResponse response) { + @Nullable PageContext context, + @Nullable ListLineItemsResponse response) { return new ListLineItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -571,7 +572,8 @@ public static class ListLineItemsFixedSizeCollection ListLineItemsPage, ListLineItemsFixedSizeCollection> { - private ListLineItemsFixedSizeCollection(List pages, int collectionSize) { + private ListLineItemsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -581,7 +583,7 @@ private static ListLineItemsFixedSizeCollection createEmptyCollection() { @Override protected ListLineItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLineItemsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java index 90ebab72cb59..27b5651ed215 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LineItemServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java index f4deab4c1c8b..d2c9a1a45432 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LinkedDeviceServiceClient implements BackgroundResource { - private final LinkedDeviceServiceSettings settings; + private final @Nullable LinkedDeviceServiceSettings settings; private final LinkedDeviceServiceStub stub; /** Constructs an instance of LinkedDeviceServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected LinkedDeviceServiceClient(LinkedDeviceServiceStub stub) { this.stub = stub; } - public final LinkedDeviceServiceSettings getSettings() { + public final @Nullable LinkedDeviceServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public LinkedDeviceServiceStub getStub() { * `networks/{network_code}/linkedDevices/{linked_device_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LinkedDevice getLinkedDevice(LinkedDeviceName name) { + public final LinkedDevice getLinkedDevice(@Nullable LinkedDeviceName name) { GetLinkedDeviceRequest request = GetLinkedDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLinkedDevice(request); @@ -332,7 +333,7 @@ public final UnaryCallable getLinkedDevice * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLinkedDevicesPagedResponse listLinkedDevices(NetworkName parent) { + public final ListLinkedDevicesPagedResponse listLinkedDevices(@Nullable NetworkName parent) { ListLinkedDevicesRequest request = ListLinkedDevicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,8 +549,9 @@ public static class ListLinkedDevicesPage ListLinkedDevicesPage> { private ListLinkedDevicesPage( - PageContext context, - ListLinkedDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListLinkedDevicesResponse response) { super(context, response); } @@ -559,14 +561,16 @@ private static ListLinkedDevicesPage createEmptyPage() { @Override protected ListLinkedDevicesPage createPage( - PageContext context, - ListLinkedDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListLinkedDevicesResponse response) { return new ListLinkedDevicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -581,7 +585,7 @@ public static class ListLinkedDevicesFixedSizeCollection ListLinkedDevicesFixedSizeCollection> { private ListLinkedDevicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -591,7 +595,7 @@ private static ListLinkedDevicesFixedSizeCollection createEmptyCollection() { @Override protected ListLinkedDevicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLinkedDevicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java index e0653b019b6e..b49f0f2e8a47 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LinkedDeviceServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -166,7 +167,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LinkedDeviceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java index 309abbc6ebfe..d6d886179632 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceClient.java @@ -32,6 +32,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. /** @@ -131,7 +132,7 @@ @NullMarked @Generated("by gapic-generator-java") public class McmEarningsServiceClient implements BackgroundResource { - private final McmEarningsServiceSettings settings; + private final @Nullable McmEarningsServiceSettings settings; private final McmEarningsServiceStub stub; /** Constructs an instance of McmEarningsServiceClient with default settings. */ @@ -171,7 +172,7 @@ protected McmEarningsServiceClient(McmEarningsServiceStub stub) { this.stub = stub; } - public final McmEarningsServiceSettings getSettings() { + public final @Nullable McmEarningsServiceSettings getSettings() { return settings; } @@ -203,7 +204,7 @@ public McmEarningsServiceStub getStub() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchMcmEarningsPagedResponse fetchMcmEarnings(NetworkName parent) { + public final FetchMcmEarningsPagedResponse fetchMcmEarnings(@Nullable NetworkName parent) { FetchMcmEarningsRequest request = FetchMcmEarningsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -417,8 +418,9 @@ public static class FetchMcmEarningsPage FetchMcmEarningsRequest, FetchMcmEarningsResponse, McmEarnings, FetchMcmEarningsPage> { private FetchMcmEarningsPage( - PageContext context, - FetchMcmEarningsResponse response) { + @Nullable PageContext + context, + @Nullable FetchMcmEarningsResponse response) { super(context, response); } @@ -428,14 +430,16 @@ private static FetchMcmEarningsPage createEmptyPage() { @Override protected FetchMcmEarningsPage createPage( - PageContext context, - FetchMcmEarningsResponse response) { + @Nullable PageContext + context, + @Nullable FetchMcmEarningsResponse response) { return new FetchMcmEarningsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -450,7 +454,7 @@ public static class FetchMcmEarningsFixedSizeCollection FetchMcmEarningsFixedSizeCollection> { private FetchMcmEarningsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -460,7 +464,7 @@ private static FetchMcmEarningsFixedSizeCollection createEmptyCollection() { @Override protected FetchMcmEarningsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchMcmEarningsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java index 7fe2aaf0dc62..c417703a19b0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/McmEarningsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -141,7 +142,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -161,7 +162,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(McmEarningsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java index 5d3102687b2b..74fa0d9613c1 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MobileCarrierServiceClient implements BackgroundResource { - private final MobileCarrierServiceSettings settings; + private final @Nullable MobileCarrierServiceSettings settings; private final MobileCarrierServiceStub stub; /** Constructs an instance of MobileCarrierServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected MobileCarrierServiceClient(MobileCarrierServiceStub stub) { this.stub = stub; } - public final MobileCarrierServiceSettings getSettings() { + public final @Nullable MobileCarrierServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public MobileCarrierServiceStub getStub() { * `networks/{network_code}/mobileCarriers/{mobile_carrier_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MobileCarrier getMobileCarrier(MobileCarrierName name) { + public final MobileCarrier getMobileCarrier(@Nullable MobileCarrierName name) { GetMobileCarrierRequest request = GetMobileCarrierRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMobileCarrier(request); @@ -338,7 +339,7 @@ public final UnaryCallable getMobileCarr * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMobileCarriersPagedResponse listMobileCarriers(NetworkName parent) { + public final ListMobileCarriersPagedResponse listMobileCarriers(@Nullable NetworkName parent) { ListMobileCarriersRequest request = ListMobileCarriersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,8 +560,9 @@ public static class ListMobileCarriersPage ListMobileCarriersPage> { private ListMobileCarriersPage( - PageContext context, - ListMobileCarriersResponse response) { + @Nullable PageContext + context, + @Nullable ListMobileCarriersResponse response) { super(context, response); } @@ -570,14 +572,16 @@ private static ListMobileCarriersPage createEmptyPage() { @Override protected ListMobileCarriersPage createPage( - PageContext context, - ListMobileCarriersResponse response) { + @Nullable PageContext + context, + @Nullable ListMobileCarriersResponse response) { return new ListMobileCarriersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -592,7 +596,7 @@ public static class ListMobileCarriersFixedSizeCollection ListMobileCarriersFixedSizeCollection> { private ListMobileCarriersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -602,7 +606,7 @@ private static ListMobileCarriersFixedSizeCollection createEmptyCollection() { @Override protected ListMobileCarriersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMobileCarriersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java index dcac9a5dcdd9..77a42461669a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileCarrierServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MobileCarrierServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java index 2d7a663687b6..da8a32842759 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MobileDeviceServiceClient implements BackgroundResource { - private final MobileDeviceServiceSettings settings; + private final @Nullable MobileDeviceServiceSettings settings; private final MobileDeviceServiceStub stub; /** Constructs an instance of MobileDeviceServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected MobileDeviceServiceClient(MobileDeviceServiceStub stub) { this.stub = stub; } - public final MobileDeviceServiceSettings getSettings() { + public final @Nullable MobileDeviceServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public MobileDeviceServiceStub getStub() { * `networks/{network_code}/mobileDevices/{mobile_device_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MobileDevice getMobileDevice(MobileDeviceName name) { + public final MobileDevice getMobileDevice(@Nullable MobileDeviceName name) { GetMobileDeviceRequest request = GetMobileDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMobileDevice(request); @@ -332,7 +333,7 @@ public final UnaryCallable getMobileDevice * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMobileDevicesPagedResponse listMobileDevices(NetworkName parent) { + public final ListMobileDevicesPagedResponse listMobileDevices(@Nullable NetworkName parent) { ListMobileDevicesRequest request = ListMobileDevicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,8 +549,9 @@ public static class ListMobileDevicesPage ListMobileDevicesPage> { private ListMobileDevicesPage( - PageContext context, - ListMobileDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListMobileDevicesResponse response) { super(context, response); } @@ -559,14 +561,16 @@ private static ListMobileDevicesPage createEmptyPage() { @Override protected ListMobileDevicesPage createPage( - PageContext context, - ListMobileDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListMobileDevicesResponse response) { return new ListMobileDevicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -581,7 +585,7 @@ public static class ListMobileDevicesFixedSizeCollection ListMobileDevicesFixedSizeCollection> { private ListMobileDevicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -591,7 +595,7 @@ private static ListMobileDevicesFixedSizeCollection createEmptyCollection() { @Override protected ListMobileDevicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMobileDevicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java index 9ff54fb0e75b..32c0d7dbcb99 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -166,7 +167,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MobileDeviceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java index e81ce0036cff..ab7d9a4c7123 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceClient.java @@ -32,6 +32,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. /** @@ -151,7 +152,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MobileDeviceSubmodelServiceClient implements BackgroundResource { - private final MobileDeviceSubmodelServiceSettings settings; + private final @Nullable MobileDeviceSubmodelServiceSettings settings; private final MobileDeviceSubmodelServiceStub stub; /** Constructs an instance of MobileDeviceSubmodelServiceClient with default settings. */ @@ -194,7 +195,7 @@ protected MobileDeviceSubmodelServiceClient(MobileDeviceSubmodelServiceStub stub this.stub = stub; } - public final MobileDeviceSubmodelServiceSettings getSettings() { + public final @Nullable MobileDeviceSubmodelServiceSettings getSettings() { return settings; } @@ -227,7 +228,8 @@ public MobileDeviceSubmodelServiceStub getStub() { * `networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MobileDeviceSubmodel getMobileDeviceSubmodel(MobileDeviceSubmodelName name) { + public final MobileDeviceSubmodel getMobileDeviceSubmodel( + @Nullable MobileDeviceSubmodelName name) { GetMobileDeviceSubmodelRequest request = GetMobileDeviceSubmodelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -358,7 +360,7 @@ public final MobileDeviceSubmodel getMobileDeviceSubmodel( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMobileDeviceSubmodelsPagedResponse listMobileDeviceSubmodels( - NetworkName parent) { + @Nullable NetworkName parent) { ListMobileDeviceSubmodelsRequest request = ListMobileDeviceSubmodelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -586,12 +588,13 @@ public static class ListMobileDeviceSubmodelsPage ListMobileDeviceSubmodelsPage> { private ListMobileDeviceSubmodelsPage( - PageContext< + @Nullable + PageContext< ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsResponse, MobileDeviceSubmodel> context, - ListMobileDeviceSubmodelsResponse response) { + @Nullable ListMobileDeviceSubmodelsResponse response) { super(context, response); } @@ -601,18 +604,20 @@ private static ListMobileDeviceSubmodelsPage createEmptyPage() { @Override protected ListMobileDeviceSubmodelsPage createPage( - PageContext< + @Nullable + PageContext< ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsResponse, MobileDeviceSubmodel> context, - ListMobileDeviceSubmodelsResponse response) { + @Nullable ListMobileDeviceSubmodelsResponse response) { return new ListMobileDeviceSubmodelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMobileDeviceSubmodelsRequest, ListMobileDeviceSubmodelsResponse, MobileDeviceSubmodel> @@ -631,7 +636,7 @@ public static class ListMobileDeviceSubmodelsFixedSizeCollection ListMobileDeviceSubmodelsFixedSizeCollection> { private ListMobileDeviceSubmodelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -641,7 +646,7 @@ private static ListMobileDeviceSubmodelsFixedSizeCollection createEmptyCollectio @Override protected ListMobileDeviceSubmodelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMobileDeviceSubmodelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java index dd7c89df82dc..e71882d653ee 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MobileDeviceSubmodelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java index e5c5e154543f..47aa30a39d65 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java @@ -32,6 +32,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkServiceClient implements BackgroundResource { - private final NetworkServiceSettings settings; + private final @Nullable NetworkServiceSettings settings; private final NetworkServiceStub stub; /** Constructs an instance of NetworkServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected NetworkServiceClient(NetworkServiceStub stub) { this.stub = stub; } - public final NetworkServiceSettings getSettings() { + public final @Nullable NetworkServiceSettings getSettings() { return settings; } @@ -209,7 +210,7 @@ public NetworkServiceStub getStub() { * @param name Required. Resource name of Network. Format: networks/{network_code} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(NetworkName name) { + public final Network getNetwork(@Nullable NetworkName name) { GetNetworkRequest request = GetNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNetwork(request); @@ -457,8 +458,8 @@ public static class ListNetworksPage extends AbstractPage { private ListNetworksPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { super(context, response); } @@ -468,14 +469,14 @@ private static ListNetworksPage createEmptyPage() { @Override protected ListNetworksPage createPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { return new ListNetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -489,7 +490,8 @@ public static class ListNetworksFixedSizeCollection ListNetworksPage, ListNetworksFixedSizeCollection> { - private ListNetworksFixedSizeCollection(List pages, int collectionSize) { + private ListNetworksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -499,7 +501,7 @@ private static ListNetworksFixedSizeCollection createEmptyCollection() { @Override protected ListNetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java index 1ab30d9ec2a2..0e91a5ed60fc 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java index 19bc0d983e19..f28fb77103d2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OperatingSystemServiceClient implements BackgroundResource { - private final OperatingSystemServiceSettings settings; + private final @Nullable OperatingSystemServiceSettings settings; private final OperatingSystemServiceStub stub; /** Constructs an instance of OperatingSystemServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected OperatingSystemServiceClient(OperatingSystemServiceStub stub) { this.stub = stub; } - public final OperatingSystemServiceSettings getSettings() { + public final @Nullable OperatingSystemServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public OperatingSystemServiceStub getStub() { * `networks/{network_code}/operatingSystems/{operating_system_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperatingSystem getOperatingSystem(OperatingSystemName name) { + public final OperatingSystem getOperatingSystem(@Nullable OperatingSystemName name) { GetOperatingSystemRequest request = GetOperatingSystemRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final OperatingSystem getOperatingSystem(GetOperatingSystemRequest reques * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOperatingSystemsPagedResponse listOperatingSystems(NetworkName parent) { + public final ListOperatingSystemsPagedResponse listOperatingSystems( + @Nullable NetworkName parent) { ListOperatingSystemsRequest request = ListOperatingSystemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,10 @@ public static class ListOperatingSystemsPage ListOperatingSystemsPage> { private ListOperatingSystemsPage( - PageContext + @Nullable + PageContext context, - ListOperatingSystemsResponse response) { + @Nullable ListOperatingSystemsResponse response) { super(context, response); } @@ -577,15 +580,17 @@ private static ListOperatingSystemsPage createEmptyPage() { @Override protected ListOperatingSystemsPage createPage( - PageContext + @Nullable + PageContext context, - ListOperatingSystemsResponse response) { + @Nullable ListOperatingSystemsResponse response) { return new ListOperatingSystemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +606,7 @@ public static class ListOperatingSystemsFixedSizeCollection ListOperatingSystemsFixedSizeCollection> { private ListOperatingSystemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +616,7 @@ private static ListOperatingSystemsFixedSizeCollection createEmptyCollection() { @Override protected ListOperatingSystemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOperatingSystemsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java index 5a6ef47aa5d0..397e240245c7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OperatingSystemServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java index a1c621d7a898..3573f4974288 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceClient.java @@ -32,6 +32,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. /** @@ -151,7 +152,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OperatingSystemVersionServiceClient implements BackgroundResource { - private final OperatingSystemVersionServiceSettings settings; + private final @Nullable OperatingSystemVersionServiceSettings settings; private final OperatingSystemVersionServiceStub stub; /** Constructs an instance of OperatingSystemVersionServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected OperatingSystemVersionServiceClient(OperatingSystemVersionServiceStub this.stub = stub; } - public final OperatingSystemVersionServiceSettings getSettings() { + public final @Nullable OperatingSystemVersionServiceSettings getSettings() { return settings; } @@ -228,7 +229,8 @@ public OperatingSystemVersionServiceStub getStub() { * `networks/{network_code}/operatingSystemVersions/{operating_system_version_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperatingSystemVersion getOperatingSystemVersion(OperatingSystemVersionName name) { + public final OperatingSystemVersion getOperatingSystemVersion( + @Nullable OperatingSystemVersionName name) { GetOperatingSystemVersionRequest request = GetOperatingSystemVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -361,7 +363,7 @@ public final OperatingSystemVersion getOperatingSystemVersion( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOperatingSystemVersionsPagedResponse listOperatingSystemVersions( - NetworkName parent) { + @Nullable NetworkName parent) { ListOperatingSystemVersionsRequest request = ListOperatingSystemVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -591,12 +593,13 @@ public static class ListOperatingSystemVersionsPage ListOperatingSystemVersionsPage> { private ListOperatingSystemVersionsPage( - PageContext< + @Nullable + PageContext< ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse, OperatingSystemVersion> context, - ListOperatingSystemVersionsResponse response) { + @Nullable ListOperatingSystemVersionsResponse response) { super(context, response); } @@ -606,18 +609,20 @@ private static ListOperatingSystemVersionsPage createEmptyPage() { @Override protected ListOperatingSystemVersionsPage createPage( - PageContext< + @Nullable + PageContext< ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse, OperatingSystemVersion> context, - ListOperatingSystemVersionsResponse response) { + @Nullable ListOperatingSystemVersionsResponse response) { return new ListOperatingSystemVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOperatingSystemVersionsRequest, ListOperatingSystemVersionsResponse, OperatingSystemVersion> @@ -636,7 +641,7 @@ public static class ListOperatingSystemVersionsFixedSizeCollection ListOperatingSystemVersionsFixedSizeCollection> { private ListOperatingSystemVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -646,7 +651,7 @@ private static ListOperatingSystemVersionsFixedSizeCollection createEmptyCollect @Override protected ListOperatingSystemVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOperatingSystemVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java index 13d5d22aad88..9366bf26721d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OperatingSystemVersionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java index 47285989f906..c07c1d0279bd 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceClient.java @@ -32,6 +32,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. /** @@ -151,7 +152,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrderServiceClient implements BackgroundResource { - private final OrderServiceSettings settings; + private final @Nullable OrderServiceSettings settings; private final OrderServiceStub stub; /** Constructs an instance of OrderServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected OrderServiceClient(OrderServiceStub stub) { this.stub = stub; } - public final OrderServiceSettings getSettings() { + public final @Nullable OrderServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public OrderServiceStub getStub() { * `networks/{network_code}/orders/{order_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Order getOrder(OrderName name) { + public final Order getOrder(@Nullable OrderName name) { GetOrderRequest request = GetOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOrder(request); @@ -340,7 +341,7 @@ public final UnaryCallable getOrderCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOrdersPagedResponse listOrders(NetworkName parent) { + public final ListOrdersPagedResponse listOrders(@Nullable NetworkName parent) { ListOrdersRequest request = ListOrdersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listOrders(request); @@ -573,8 +574,8 @@ public static class ListOrdersPage extends AbstractPage { private ListOrdersPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { super(context, response); } @@ -584,14 +585,14 @@ private static ListOrdersPage createEmptyPage() { @Override protected ListOrdersPage createPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { return new ListOrdersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -605,7 +606,8 @@ public static class ListOrdersFixedSizeCollection ListOrdersPage, ListOrdersFixedSizeCollection> { - private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + private ListOrdersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -615,7 +617,7 @@ private static ListOrdersFixedSizeCollection createEmptyCollection() { @Override protected ListOrdersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrdersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java index 789992c6e926..b3fde133d553 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/OrderServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -143,7 +144,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -163,7 +164,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrderServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java index 9b911ba13e1c..17936fcaf52f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceClient.java @@ -33,6 +33,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. /** @@ -275,7 +276,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PlacementServiceClient implements BackgroundResource { - private final PlacementServiceSettings settings; + private final @Nullable PlacementServiceSettings settings; private final PlacementServiceStub stub; /** Constructs an instance of PlacementServiceClient with default settings. */ @@ -315,7 +316,7 @@ protected PlacementServiceClient(PlacementServiceStub stub) { this.stub = stub; } - public final PlacementServiceSettings getSettings() { + public final @Nullable PlacementServiceSettings getSettings() { return settings; } @@ -345,7 +346,7 @@ public PlacementServiceStub getStub() { * `networks/{network_code}/placements/{placement_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Placement getPlacement(PlacementName name) { + public final Placement getPlacement(@Nullable PlacementName name) { GetPlacementRequest request = GetPlacementRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPlacement(request); @@ -458,7 +459,7 @@ public final UnaryCallable getPlacementCallable( * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPlacementsPagedResponse listPlacements(NetworkName parent) { + public final ListPlacementsPagedResponse listPlacements(@Nullable NetworkName parent) { ListPlacementsRequest request = ListPlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -633,7 +634,7 @@ public final ListPlacementsPagedResponse listPlacements(ListPlacementsRequest re * @param placement Required. The `Placement` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Placement createPlacement(NetworkName parent, Placement placement) { + public final Placement createPlacement(@Nullable NetworkName parent, Placement placement) { CreatePlacementRequest request = CreatePlacementRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,7 @@ public final UnaryCallable updatePlacementCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreatePlacementsResponse batchCreatePlacements( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreatePlacementsRequest request = BatchCreatePlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -985,7 +986,7 @@ public final BatchCreatePlacementsResponse batchCreatePlacements( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdatePlacementsResponse batchUpdatePlacements( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdatePlacementsRequest request = BatchUpdatePlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1118,7 +1119,7 @@ public final BatchUpdatePlacementsResponse batchUpdatePlacements( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivatePlacementsResponse batchActivatePlacements( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivatePlacementsRequest request = BatchActivatePlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1246,7 +1247,7 @@ public final BatchActivatePlacementsResponse batchActivatePlacements( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivatePlacementsResponse batchDeactivatePlacements( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivatePlacementsRequest request = BatchDeactivatePlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1374,7 +1375,7 @@ public final BatchDeactivatePlacementsResponse batchDeactivatePlacements( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchArchivePlacementsResponse batchArchivePlacements( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchArchivePlacementsRequest request = BatchArchivePlacementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1535,8 +1536,8 @@ public static class ListPlacementsPage ListPlacementsRequest, ListPlacementsResponse, Placement, ListPlacementsPage> { private ListPlacementsPage( - PageContext context, - ListPlacementsResponse response) { + @Nullable PageContext context, + @Nullable ListPlacementsResponse response) { super(context, response); } @@ -1546,14 +1547,14 @@ private static ListPlacementsPage createEmptyPage() { @Override protected ListPlacementsPage createPage( - PageContext context, - ListPlacementsResponse response) { + @Nullable PageContext context, + @Nullable ListPlacementsResponse response) { return new ListPlacementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1567,7 +1568,8 @@ public static class ListPlacementsFixedSizeCollection ListPlacementsPage, ListPlacementsFixedSizeCollection> { - private ListPlacementsFixedSizeCollection(List pages, int collectionSize) { + private ListPlacementsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1577,7 +1579,7 @@ private static ListPlacementsFixedSizeCollection createEmptyCollection() { @Override protected ListPlacementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPlacementsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java index 2b8c6fcdefdd..b497e12e9413 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PlacementServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PlacementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java index ce72a8e4fb79..7a7a874b6e98 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceClient.java @@ -33,6 +33,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. /** @@ -188,7 +189,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PrivateAuctionDealServiceClient implements BackgroundResource { - private final PrivateAuctionDealServiceSettings settings; + private final @Nullable PrivateAuctionDealServiceSettings settings; private final PrivateAuctionDealServiceStub stub; /** Constructs an instance of PrivateAuctionDealServiceClient with default settings. */ @@ -230,7 +231,7 @@ protected PrivateAuctionDealServiceClient(PrivateAuctionDealServiceStub stub) { this.stub = stub; } - public final PrivateAuctionDealServiceSettings getSettings() { + public final @Nullable PrivateAuctionDealServiceSettings getSettings() { return settings; } @@ -262,7 +263,7 @@ public PrivateAuctionDealServiceStub getStub() { * `networks/{network_code}/privateAuctionDeals/{private_auction_deal_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateAuctionDeal getPrivateAuctionDeal(PrivateAuctionDealName name) { + public final PrivateAuctionDeal getPrivateAuctionDeal(@Nullable PrivateAuctionDealName name) { GetPrivateAuctionDealRequest request = GetPrivateAuctionDealRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -387,7 +388,8 @@ public final PrivateAuctionDeal getPrivateAuctionDeal(GetPrivateAuctionDealReque * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals(NetworkName parent) { + public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( + @Nullable NetworkName parent) { ListPrivateAuctionDealsRequest request = ListPrivateAuctionDealsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -575,7 +577,7 @@ public final ListPrivateAuctionDealsPagedResponse listPrivateAuctionDeals( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PrivateAuctionDeal createPrivateAuctionDeal( - NetworkName parent, PrivateAuctionDeal privateAuctionDeal) { + @Nullable NetworkName parent, PrivateAuctionDeal privateAuctionDeal) { CreatePrivateAuctionDealRequest request = CreatePrivateAuctionDealRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -847,10 +849,11 @@ public static class ListPrivateAuctionDealsPage ListPrivateAuctionDealsPage> { private ListPrivateAuctionDealsPage( - PageContext< + @Nullable + PageContext< ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> context, - ListPrivateAuctionDealsResponse response) { + @Nullable ListPrivateAuctionDealsResponse response) { super(context, response); } @@ -860,16 +863,18 @@ private static ListPrivateAuctionDealsPage createEmptyPage() { @Override protected ListPrivateAuctionDealsPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> context, - ListPrivateAuctionDealsResponse response) { + @Nullable ListPrivateAuctionDealsResponse response) { return new ListPrivateAuctionDealsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateAuctionDealsRequest, ListPrivateAuctionDealsResponse, PrivateAuctionDeal> context, ApiFuture futureResponse) { @@ -886,7 +891,7 @@ public static class ListPrivateAuctionDealsFixedSizeCollection ListPrivateAuctionDealsFixedSizeCollection> { private ListPrivateAuctionDealsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -896,7 +901,7 @@ private static ListPrivateAuctionDealsFixedSizeCollection createEmptyCollection( @Override protected ListPrivateAuctionDealsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateAuctionDealsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java index a7693ef58d82..55b0cd6a5584 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrivateAuctionDealServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java index d296098c6c17..1ba234bbbc69 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceClient.java @@ -33,6 +33,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PrivateAuctionServiceClient implements BackgroundResource { - private final PrivateAuctionServiceSettings settings; + private final @Nullable PrivateAuctionServiceSettings settings; private final PrivateAuctionServiceStub stub; /** Constructs an instance of PrivateAuctionServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected PrivateAuctionServiceClient(PrivateAuctionServiceStub stub) { this.stub = stub; } - public final PrivateAuctionServiceSettings getSettings() { + public final @Nullable PrivateAuctionServiceSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public PrivateAuctionServiceStub getStub() { * `networks/{network_code}/privateAuctions/{private_auction_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateAuction getPrivateAuction(PrivateAuctionName name) { + public final PrivateAuction getPrivateAuction(@Nullable PrivateAuctionName name) { GetPrivateAuctionRequest request = GetPrivateAuctionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -378,7 +379,7 @@ public final UnaryCallable getPrivateA * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateAuctionsPagedResponse listPrivateAuctions(NetworkName parent) { + public final ListPrivateAuctionsPagedResponse listPrivateAuctions(@Nullable NetworkName parent) { ListPrivateAuctionsRequest request = ListPrivateAuctionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -564,7 +565,7 @@ public final ListPrivateAuctionsPagedResponse listPrivateAuctions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PrivateAuction createPrivateAuction( - NetworkName parent, PrivateAuction privateAuction) { + @Nullable NetworkName parent, PrivateAuction privateAuction) { CreatePrivateAuctionRequest request = CreatePrivateAuctionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -829,9 +830,10 @@ public static class ListPrivateAuctionsPage ListPrivateAuctionsPage> { private ListPrivateAuctionsPage( - PageContext + @Nullable + PageContext context, - ListPrivateAuctionsResponse response) { + @Nullable ListPrivateAuctionsResponse response) { super(context, response); } @@ -841,15 +843,17 @@ private static ListPrivateAuctionsPage createEmptyPage() { @Override protected ListPrivateAuctionsPage createPage( - PageContext + @Nullable + PageContext context, - ListPrivateAuctionsResponse response) { + @Nullable ListPrivateAuctionsResponse response) { return new ListPrivateAuctionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -865,7 +869,7 @@ public static class ListPrivateAuctionsFixedSizeCollection ListPrivateAuctionsFixedSizeCollection> { private ListPrivateAuctionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -875,7 +879,7 @@ private static ListPrivateAuctionsFixedSizeCollection createEmptyCollection() { @Override protected ListPrivateAuctionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateAuctionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java index 9070426fc31f..1a71c9c9bfc5 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/PrivateAuctionServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrivateAuctionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java index 7e989c43b86d..568ee719638f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceClient.java @@ -32,6 +32,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. /** @@ -150,7 +151,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProgrammaticBuyerServiceClient implements BackgroundResource { - private final ProgrammaticBuyerServiceSettings settings; + private final @Nullable ProgrammaticBuyerServiceSettings settings; private final ProgrammaticBuyerServiceStub stub; /** Constructs an instance of ProgrammaticBuyerServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected ProgrammaticBuyerServiceClient(ProgrammaticBuyerServiceStub stub) { this.stub = stub; } - public final ProgrammaticBuyerServiceSettings getSettings() { + public final @Nullable ProgrammaticBuyerServiceSettings getSettings() { return settings; } @@ -224,7 +225,7 @@ public ProgrammaticBuyerServiceStub getStub() { * `networks/{network_code}/programmaticBuyers/{buyer_account_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProgrammaticBuyer getProgrammaticBuyer(ProgrammaticBuyerName name) { + public final ProgrammaticBuyer getProgrammaticBuyer(@Nullable ProgrammaticBuyerName name) { GetProgrammaticBuyerRequest request = GetProgrammaticBuyerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -348,7 +349,8 @@ public final ProgrammaticBuyer getProgrammaticBuyer(GetProgrammaticBuyerRequest * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers(NetworkName parent) { + public final ListProgrammaticBuyersPagedResponse listProgrammaticBuyers( + @Nullable NetworkName parent) { ListProgrammaticBuyersRequest request = ListProgrammaticBuyersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -571,10 +573,11 @@ public static class ListProgrammaticBuyersPage ListProgrammaticBuyersPage> { private ListProgrammaticBuyersPage( - PageContext< + @Nullable + PageContext< ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> context, - ListProgrammaticBuyersResponse response) { + @Nullable ListProgrammaticBuyersResponse response) { super(context, response); } @@ -584,16 +587,18 @@ private static ListProgrammaticBuyersPage createEmptyPage() { @Override protected ListProgrammaticBuyersPage createPage( - PageContext< + @Nullable + PageContext< ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> context, - ListProgrammaticBuyersResponse response) { + @Nullable ListProgrammaticBuyersResponse response) { return new ListProgrammaticBuyersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListProgrammaticBuyersRequest, ListProgrammaticBuyersResponse, ProgrammaticBuyer> context, ApiFuture futureResponse) { @@ -610,7 +615,7 @@ public static class ListProgrammaticBuyersFixedSizeCollection ListProgrammaticBuyersFixedSizeCollection> { private ListProgrammaticBuyersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -620,7 +625,7 @@ private static ListProgrammaticBuyersFixedSizeCollection createEmptyCollection() @Override protected ListProgrammaticBuyersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProgrammaticBuyersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java index f6293a1e3a3b..28d18d669725 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProgrammaticBuyerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java index 27aa586356eb..355e5a176f6b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceClient.java @@ -37,6 +37,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. /** @@ -226,7 +227,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReportServiceClient implements BackgroundResource { - private final ReportServiceSettings settings; + private final @Nullable ReportServiceSettings settings; private final ReportServiceStub stub; private final OperationsClient httpJsonOperationsClient; @@ -269,7 +270,7 @@ protected ReportServiceClient(ReportServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ReportServiceSettings getSettings() { + public final @Nullable ReportServiceSettings getSettings() { return settings; } @@ -307,7 +308,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `networks/{network_code}/reports/{report_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Report getReport(ReportName name) { + public final Report getReport(@Nullable ReportName name) { GetReportRequest request = GetReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReport(request); @@ -419,7 +420,7 @@ public final UnaryCallable getReportCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportsPagedResponse listReports(NetworkName parent) { + public final ListReportsPagedResponse listReports(@Nullable NetworkName parent) { ListReportsRequest request = ListReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -591,7 +592,7 @@ public final UnaryCallable listReportsC * @param report Required. The `Report` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Report createReport(NetworkName parent, Report report) { + public final Report createReport(@Nullable NetworkName parent, Report report) { CreateReportRequest request = CreateReportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -799,7 +800,7 @@ public final UnaryCallable updateReportCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture runReportAsync( - ReportName name) { + @Nullable ReportName name) { RunReportRequest request = RunReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runReportAsync(request); @@ -1134,8 +1135,8 @@ public static class ListReportsPage extends AbstractPage { private ListReportsPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { super(context, response); } @@ -1145,14 +1146,14 @@ private static ListReportsPage createEmptyPage() { @Override protected ListReportsPage createPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { return new ListReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1166,7 +1167,8 @@ public static class ListReportsFixedSizeCollection ListReportsPage, ListReportsFixedSizeCollection> { - private ListReportsFixedSizeCollection(List pages, int collectionSize) { + private ListReportsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1176,7 +1178,7 @@ private static ListReportsFixedSizeCollection createEmptyCollection() { @Override protected ListReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportsFixedSizeCollection(pages, collectionSize); } } @@ -1215,10 +1217,11 @@ public static class FetchReportResultRowsPage FetchReportResultRowsPage> { private FetchReportResultRowsPage( - PageContext< + @Nullable + PageContext< FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, - FetchReportResultRowsResponse response) { + @Nullable FetchReportResultRowsResponse response) { super(context, response); } @@ -1228,16 +1231,18 @@ private static FetchReportResultRowsPage createEmptyPage() { @Override protected FetchReportResultRowsPage createPage( - PageContext< + @Nullable + PageContext< FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, - FetchReportResultRowsResponse response) { + @Nullable FetchReportResultRowsResponse response) { return new FetchReportResultRowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchReportResultRowsRequest, FetchReportResultRowsResponse, ReportDataTable.Row> context, ApiFuture futureResponse) { @@ -1254,7 +1259,7 @@ public static class FetchReportResultRowsFixedSizeCollection FetchReportResultRowsFixedSizeCollection> { private FetchReportResultRowsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1264,7 +1269,7 @@ private static FetchReportResultRowsFixedSizeCollection createEmptyCollection() @Override protected FetchReportResultRowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchReportResultRowsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceSettings.java index 27c02d6375b9..9dea8d62ae98 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/ReportServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java index a946263069b1..75649a3b234c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceClient.java @@ -32,6 +32,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. /** @@ -150,7 +151,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RichMediaAdsCompanyServiceClient implements BackgroundResource { - private final RichMediaAdsCompanyServiceSettings settings; + private final @Nullable RichMediaAdsCompanyServiceSettings settings; private final RichMediaAdsCompanyServiceStub stub; /** Constructs an instance of RichMediaAdsCompanyServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected RichMediaAdsCompanyServiceClient(RichMediaAdsCompanyServiceStub stub) this.stub = stub; } - public final RichMediaAdsCompanyServiceSettings getSettings() { + public final @Nullable RichMediaAdsCompanyServiceSettings getSettings() { return settings; } @@ -224,7 +225,7 @@ public RichMediaAdsCompanyServiceStub getStub() { * `networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RichMediaAdsCompany getRichMediaAdsCompany(RichMediaAdsCompanyName name) { + public final RichMediaAdsCompany getRichMediaAdsCompany(@Nullable RichMediaAdsCompanyName name) { GetRichMediaAdsCompanyRequest request = GetRichMediaAdsCompanyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -353,7 +354,7 @@ public final RichMediaAdsCompany getRichMediaAdsCompany(GetRichMediaAdsCompanyRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRichMediaAdsCompaniesPagedResponse listRichMediaAdsCompanies( - NetworkName parent) { + @Nullable NetworkName parent) { ListRichMediaAdsCompaniesRequest request = ListRichMediaAdsCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -581,12 +582,13 @@ public static class ListRichMediaAdsCompaniesPage ListRichMediaAdsCompaniesPage> { private ListRichMediaAdsCompaniesPage( - PageContext< + @Nullable + PageContext< ListRichMediaAdsCompaniesRequest, ListRichMediaAdsCompaniesResponse, RichMediaAdsCompany> context, - ListRichMediaAdsCompaniesResponse response) { + @Nullable ListRichMediaAdsCompaniesResponse response) { super(context, response); } @@ -596,18 +598,20 @@ private static ListRichMediaAdsCompaniesPage createEmptyPage() { @Override protected ListRichMediaAdsCompaniesPage createPage( - PageContext< + @Nullable + PageContext< ListRichMediaAdsCompaniesRequest, ListRichMediaAdsCompaniesResponse, RichMediaAdsCompany> context, - ListRichMediaAdsCompaniesResponse response) { + @Nullable ListRichMediaAdsCompaniesResponse response) { return new ListRichMediaAdsCompaniesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRichMediaAdsCompaniesRequest, ListRichMediaAdsCompaniesResponse, RichMediaAdsCompany> @@ -626,7 +630,7 @@ public static class ListRichMediaAdsCompaniesFixedSizeCollection ListRichMediaAdsCompaniesFixedSizeCollection> { private ListRichMediaAdsCompaniesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -636,7 +640,7 @@ private static ListRichMediaAdsCompaniesFixedSizeCollection createEmptyCollectio @Override protected ListRichMediaAdsCompaniesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRichMediaAdsCompaniesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java index 8b22cf095af1..df79611b0b4a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RichMediaAdsCompanyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java index 29f01c80dbf5..2241dbd4a33a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceClient.java @@ -32,6 +32,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RoleServiceClient implements BackgroundResource { - private final RoleServiceSettings settings; + private final @Nullable RoleServiceSettings settings; private final RoleServiceStub stub; /** Constructs an instance of RoleServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected RoleServiceClient(RoleServiceStub stub) { this.stub = stub; } - public final RoleServiceSettings getSettings() { + public final @Nullable RoleServiceSettings getSettings() { return settings; } @@ -214,7 +215,7 @@ public RoleServiceStub getStub() { * `networks/{network_code}/roles/{role_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Role getRole(RoleName name) { + public final Role getRole(@Nullable RoleName name) { GetRoleRequest request = GetRoleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRole(request); @@ -326,7 +327,7 @@ public final UnaryCallable getRoleCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolesPagedResponse listRoles(NetworkName parent) { + public final ListRolesPagedResponse listRoles(@Nullable NetworkName parent) { ListRolesRequest request = ListRolesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRoles(request); @@ -523,8 +524,8 @@ public static class ListRolesPage extends AbstractPage { private ListRolesPage( - PageContext context, - ListRolesResponse response) { + @Nullable PageContext context, + @Nullable ListRolesResponse response) { super(context, response); } @@ -534,14 +535,14 @@ private static ListRolesPage createEmptyPage() { @Override protected ListRolesPage createPage( - PageContext context, - ListRolesResponse response) { + @Nullable PageContext context, + @Nullable ListRolesResponse response) { return new ListRolesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -551,7 +552,7 @@ public static class ListRolesFixedSizeCollection extends AbstractFixedSizeCollection< ListRolesRequest, ListRolesResponse, Role, ListRolesPage, ListRolesFixedSizeCollection> { - private ListRolesFixedSizeCollection(List pages, int collectionSize) { + private ListRolesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -561,7 +562,7 @@ private static ListRolesFixedSizeCollection createEmptyCollection() { @Override protected ListRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceSettings.java index 46d3413ca6eb..e77c9284794b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/RoleServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -142,7 +143,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -162,7 +163,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RoleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java index 778400b60c7a..5628bc4b6005 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceClient.java @@ -33,6 +33,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SiteServiceClient implements BackgroundResource { - private final SiteServiceSettings settings; + private final @Nullable SiteServiceSettings settings; private final SiteServiceStub stub; /** Constructs an instance of SiteServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected SiteServiceClient(SiteServiceStub stub) { this.stub = stub; } - public final SiteServiceSettings getSettings() { + public final @Nullable SiteServiceSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public SiteServiceStub getStub() { * `networks/{network_code}/sites/{site_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Site getSite(SiteName name) { + public final Site getSite(@Nullable SiteName name) { GetSiteRequest request = GetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSite(request); @@ -434,7 +435,7 @@ public final UnaryCallable getSiteCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSitesPagedResponse listSites(NetworkName parent) { + public final ListSitesPagedResponse listSites(@Nullable NetworkName parent) { ListSitesRequest request = ListSitesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSites(request); @@ -603,7 +604,7 @@ public final UnaryCallable listSitesCallabl * @param site Required. The `Site` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Site createSite(NetworkName parent, Site site) { + public final Site createSite(@Nullable NetworkName parent, Site site) { CreateSiteRequest request = CreateSiteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -725,7 +726,7 @@ public final UnaryCallable createSiteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateSitesResponse batchCreateSites( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateSitesRequest request = BatchCreateSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -938,7 +939,7 @@ public final UnaryCallable updateSiteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateSitesResponse batchUpdateSites( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateSitesRequest request = BatchUpdateSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1062,7 +1063,7 @@ public final BatchUpdateSitesResponse batchUpdateSites(BatchUpdateSitesRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateSitesResponse batchDeactivateSites( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateSitesRequest request = BatchDeactivateSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1186,7 +1187,7 @@ public final BatchDeactivateSitesResponse batchDeactivateSites( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchSubmitSitesForApprovalResponse batchSubmitSitesForApproval( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchSubmitSitesForApprovalRequest request = BatchSubmitSitesForApprovalRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1343,8 +1344,8 @@ public static class ListSitesPage extends AbstractPage { private ListSitesPage( - PageContext context, - ListSitesResponse response) { + @Nullable PageContext context, + @Nullable ListSitesResponse response) { super(context, response); } @@ -1354,14 +1355,14 @@ private static ListSitesPage createEmptyPage() { @Override protected ListSitesPage createPage( - PageContext context, - ListSitesResponse response) { + @Nullable PageContext context, + @Nullable ListSitesResponse response) { return new ListSitesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1371,7 +1372,7 @@ public static class ListSitesFixedSizeCollection extends AbstractFixedSizeCollection< ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { - private ListSitesFixedSizeCollection(List pages, int collectionSize) { + private ListSitesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1381,7 +1382,7 @@ private static ListSitesFixedSizeCollection createEmptyCollection() { @Override protected ListSitesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSitesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java index e4c731fc95b5..824d1d491e71 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/SiteServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -176,7 +177,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SiteServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceClient.java index 81f20ec6f6a6..024932e4ad57 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TaxonomyCategoryServiceClient implements BackgroundResource { - private final TaxonomyCategoryServiceSettings settings; + private final @Nullable TaxonomyCategoryServiceSettings settings; private final TaxonomyCategoryServiceStub stub; /** Constructs an instance of TaxonomyCategoryServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected TaxonomyCategoryServiceClient(TaxonomyCategoryServiceStub stub) { this.stub = stub; } - public final TaxonomyCategoryServiceSettings getSettings() { + public final @Nullable TaxonomyCategoryServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public TaxonomyCategoryServiceStub getStub() { * `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TaxonomyCategory getTaxonomyCategory(TaxonomyCategoryName name) { + public final TaxonomyCategory getTaxonomyCategory(@Nullable TaxonomyCategoryName name) { GetTaxonomyCategoryRequest request = GetTaxonomyCategoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -343,7 +344,8 @@ public final TaxonomyCategory getTaxonomyCategory(GetTaxonomyCategoryRequest req * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories(NetworkName parent) { + public final ListTaxonomyCategoriesPagedResponse listTaxonomyCategories( + @Nullable NetworkName parent) { ListTaxonomyCategoriesRequest request = ListTaxonomyCategoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,9 +567,11 @@ public static class ListTaxonomyCategoriesPage ListTaxonomyCategoriesPage> { private ListTaxonomyCategoriesPage( - PageContext + @Nullable + PageContext< + ListTaxonomyCategoriesRequest, ListTaxonomyCategoriesResponse, TaxonomyCategory> context, - ListTaxonomyCategoriesResponse response) { + @Nullable ListTaxonomyCategoriesResponse response) { super(context, response); } @@ -577,15 +581,19 @@ private static ListTaxonomyCategoriesPage createEmptyPage() { @Override protected ListTaxonomyCategoriesPage createPage( - PageContext + @Nullable + PageContext< + ListTaxonomyCategoriesRequest, ListTaxonomyCategoriesResponse, TaxonomyCategory> context, - ListTaxonomyCategoriesResponse response) { + @Nullable ListTaxonomyCategoriesResponse response) { return new ListTaxonomyCategoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTaxonomyCategoriesRequest, ListTaxonomyCategoriesResponse, TaxonomyCategory> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -601,7 +609,7 @@ public static class ListTaxonomyCategoriesFixedSizeCollection ListTaxonomyCategoriesFixedSizeCollection> { private ListTaxonomyCategoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +619,7 @@ private static ListTaxonomyCategoriesFixedSizeCollection createEmptyCollection() @Override protected ListTaxonomyCategoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTaxonomyCategoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceSettings.java index 01a7c279e0d4..12a7d93dc322 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TaxonomyCategoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java index 1266cc188371..462f1de9a179 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceClient.java @@ -33,6 +33,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TeamServiceClient implements BackgroundResource { - private final TeamServiceSettings settings; + private final @Nullable TeamServiceSettings settings; private final TeamServiceStub stub; /** Constructs an instance of TeamServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected TeamServiceClient(TeamServiceStub stub) { this.stub = stub; } - public final TeamServiceSettings getSettings() { + public final @Nullable TeamServiceSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public TeamServiceStub getStub() { * `networks/{network_code}/teams/{team_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Team getTeam(TeamName name) { + public final Team getTeam(@Nullable TeamName name) { GetTeamRequest request = GetTeamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTeam(request); @@ -434,7 +435,7 @@ public final UnaryCallable getTeamCallable() { * `networks/{network_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTeamsPagedResponse listTeams(NetworkName parent) { + public final ListTeamsPagedResponse listTeams(@Nullable NetworkName parent) { ListTeamsRequest request = ListTeamsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTeams(request); @@ -603,7 +604,7 @@ public final UnaryCallable listTeamsCallabl * @param team Required. The `Team` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Team createTeam(NetworkName parent, Team team) { + public final Team createTeam(@Nullable NetworkName parent, Team team) { CreateTeamRequest request = CreateTeamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -725,7 +726,7 @@ public final UnaryCallable createTeamCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateTeamsResponse batchCreateTeams( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchCreateTeamsRequest request = BatchCreateTeamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -938,7 +939,7 @@ public final UnaryCallable updateTeamCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateTeamsResponse batchUpdateTeams( - NetworkName parent, List requests) { + @Nullable NetworkName parent, List requests) { BatchUpdateTeamsRequest request = BatchUpdateTeamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1063,7 +1064,7 @@ public final BatchUpdateTeamsResponse batchUpdateTeams(BatchUpdateTeamsRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchActivateTeamsResponse batchActivateTeams( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchActivateTeamsRequest request = BatchActivateTeamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1186,7 +1187,7 @@ public final BatchActivateTeamsResponse batchActivateTeams(BatchActivateTeamsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchDeactivateTeamsResponse batchDeactivateTeams( - NetworkName parent, List names) { + @Nullable NetworkName parent, List names) { BatchDeactivateTeamsRequest request = BatchDeactivateTeamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1338,8 +1339,8 @@ public static class ListTeamsPage extends AbstractPage { private ListTeamsPage( - PageContext context, - ListTeamsResponse response) { + @Nullable PageContext context, + @Nullable ListTeamsResponse response) { super(context, response); } @@ -1349,14 +1350,14 @@ private static ListTeamsPage createEmptyPage() { @Override protected ListTeamsPage createPage( - PageContext context, - ListTeamsResponse response) { + @Nullable PageContext context, + @Nullable ListTeamsResponse response) { return new ListTeamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1366,7 +1367,7 @@ public static class ListTeamsFixedSizeCollection extends AbstractFixedSizeCollection< ListTeamsRequest, ListTeamsResponse, Team, ListTeamsPage, ListTeamsFixedSizeCollection> { - private ListTeamsFixedSizeCollection(List pages, int collectionSize) { + private ListTeamsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1376,7 +1377,7 @@ private static ListTeamsFixedSizeCollection createEmptyCollection() { @Override protected ListTeamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTeamsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java index b6ddd2181fe0..ca98f365f425 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/TeamServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -176,7 +177,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TeamServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java index 69683db37485..9c716a86b3f0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceClient.java @@ -24,6 +24,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. /** @@ -118,7 +119,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserServiceClient implements BackgroundResource { - private final UserServiceSettings settings; + private final @Nullable UserServiceSettings settings; private final UserServiceStub stub; /** Constructs an instance of UserServiceClient with default settings. */ @@ -157,7 +158,7 @@ protected UserServiceClient(UserServiceStub stub) { this.stub = stub; } - public final UserServiceSettings getSettings() { + public final @Nullable UserServiceSettings getSettings() { return settings; } @@ -189,7 +190,7 @@ public UserServiceStub getStub() { * `networks/{network_code}/users/{user_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceSettings.java index 267e91e34350..65a8e50cbe21 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/UserServiceSettings.java @@ -30,6 +30,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -133,7 +134,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -153,7 +154,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java index a165afcd1db5..9250c1cb509a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdBreakServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -274,7 +275,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -336,7 +337,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAdBreakSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java index 326312dd957c..e17d8f6db358 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.Operation; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,7 +44,7 @@ @Generated("by gapic-generator-java") public abstract class AdReviewCenterAdServiceStub implements BackgroundResource { - public OperationsStub getHttpJsonOperationsStub() { + public @Nullable OperationsStub getHttpJsonOperationsStub() { throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java index e1942d201b89..1776f06a1e0c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdReviewCenterAdServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -350,7 +351,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -429,7 +430,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchAdReviewCenterAdsSettings = diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java index ba7f9b128c5a..77337c65782b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -383,7 +384,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -464,7 +465,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAdUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java index 58630eee2ad3..41d30bc89621 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ApplicationServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -315,7 +316,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java index 9df7b91b80c6..1cc2ea5f13f3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AudienceSegmentServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -333,7 +334,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAudienceSegmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java index 1f49f9b5ed15..3e531c7f7970 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BandwidthGroupServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -324,7 +325,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBandwidthGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java index 5c23b5b2566e..0d921532d89b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserLanguageServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -333,7 +334,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBrowserLanguageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java index 4b510b05d15f..97051a87cb61 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/BrowserServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBrowserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java index e8961b3e09f5..62380ae5bf6b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataKeyServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -358,7 +359,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCmsMetadataKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java index 66ce3c3e4796..7bbfd1aae7b0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CmsMetadataValueServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -297,7 +298,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -367,7 +368,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCmsMetadataValueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java index dab36550d1bc..02cec80c9461 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CompanyServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java index 7a4c2dbcf049..72156e549a03 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContactServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,7 +287,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -352,7 +353,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getContactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java index 7ac38965341d..22885b89cc04 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentBundleServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -263,7 +264,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -321,7 +322,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getContentBundleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java index 6139a92624d4..48aec45201f2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentLabelServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -320,7 +321,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getContentLabelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java index 77407be0f2c3..ab046f4cd424 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ContentServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java index e61331335886..fa7bff970707 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CreativeTemplateServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -333,7 +334,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCreativeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java index 034f93e3aa90..c31726cbdc42 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomFieldServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -316,7 +317,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCustomFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java index 68fbd7b4bafe..488b057c0b98 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -432,7 +433,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCustomTargetingKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java index 67250d092e4e..db6349891200 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingValueServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -343,7 +344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCustomTargetingValueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java index 7567eaf1d85e..bd12ed0a8b8e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCapabilityServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -278,7 +279,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDeviceCapabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java index 80f4864abb71..4a204d97cc2e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceCategoryServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -330,7 +331,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDeviceCategorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java index 995876a6cbc6..d1da2b8b4540 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DeviceManufacturerServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -280,7 +281,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -340,7 +341,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDeviceManufacturerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java index ca1dd2acfa62..9f2e249b0a72 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/EntitySignalsMappingServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -403,7 +404,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEntitySignalsMappingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java index f6f160f6aa68..d999388aab8a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/GeoTargetServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -254,7 +255,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -310,7 +311,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getGeoTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java index fb4045333ccb..94d7875aa09b 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LabelServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -378,7 +379,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLabelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java index a3a394c763a8..9aa8c114aaa0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLineItemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java index 807ef6c2f47b..1de6c65e218f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LinkedDeviceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -320,7 +321,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLinkedDeviceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java index 8d0abd44cb59..d6a9f5b53f8e 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/McmEarningsServiceStubSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -253,7 +254,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); fetchMcmEarningsSettings = PagedCallSettings.newBuilder(FETCH_MCM_EARNINGS_PAGE_STR_FACT); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java index 4d4911c84d27..6719bdf47a9a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileCarrierServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -263,7 +264,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -321,7 +322,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMobileCarrierSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java index 5d949e625041..2696a059a7c3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -320,7 +321,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMobileDeviceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java index a047bf2071e6..67a559e7a3f6 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/MobileDeviceSubmodelServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -343,7 +344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMobileDeviceSubmodelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java index 0ffebc492bd9..0732fcdcb08a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java index 897ac71403cf..6395b30c60c7 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -333,7 +334,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOperatingSystemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java index 7bf50d9c991b..5d4e20e913c9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OperatingSystemVersionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -287,7 +288,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -349,7 +350,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOperatingSystemVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java index b06270afe39a..73a81a2a654d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/OrderServiceStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -319,7 +320,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java index 5da8195616c3..269bb0ad12de 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PlacementServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -319,7 +320,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -401,7 +402,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPlacementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java index e65d5c113c21..e50d08731656 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionDealServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -364,7 +365,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPrivateAuctionDealSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java index fb20ff6bb4eb..b4179151af46 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/PrivateAuctionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,7 +283,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -348,7 +349,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPrivateAuctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java index 7ae02f8b8dc5..273c11f28052 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ProgrammaticBuyerServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -278,7 +279,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProgrammaticBuyerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStub.java index 4afc603f9295..fe4994449809 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.Operation; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,7 +49,7 @@ @Generated("by gapic-generator-java") public abstract class ReportServiceStub implements BackgroundResource { - public OperationsStub getHttpJsonOperationsStub() { + public @Nullable OperationsStub getHttpJsonOperationsStub() { throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java index d812a9ff0b6d..a1250a50c033 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/ReportServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -397,7 +398,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -469,7 +470,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java index 50301ee036a6..3b5670447d35 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RichMediaAdsCompanyServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -343,7 +344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getRichMediaAdsCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java index 9499c2fbe768..d4794596f34d 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/RoleServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java index 909f3f90db0b..e048d4f6b3d9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/SiteServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -381,7 +382,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java index 7c6985f8855e..b8504baad0e2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TaxonomyCategoryServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -278,7 +279,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTaxonomyCategorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java index c123ffb6fd93..cb133d57381f 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/TeamServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -378,7 +379,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTeamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java index eb69d38ce15a..2844a9c629d9 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/UserServiceStubSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -233,7 +234,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java index 473affd07e3b..08d200ecbe00 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdBreakName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String networkCode, String assetKey, String adBreak) .toString(); } - public static AdBreakName parse(String formattedString) { + public static @Nullable AdBreakName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AdBreakName> values) { List list = new ArrayList<>(values.size()); for (AdBreakName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitName.java index 10f7f02a54b7..26b8dda39641 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String adUnit) { return newBuilder().setNetworkCode(networkCode).setAdUnit(adUnit).build().toString(); } - public static AdUnitName parse(String formattedString) { + public static @Nullable AdUnitName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AdUnitName> values) { List list = new ArrayList<>(values.size()); for (AdUnitName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java index b003630ba007..77c922f436e7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ApplicationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String application) { return newBuilder().setNetworkCode(networkCode).setApplication(application).build().toString(); } - public static ApplicationName parse(String formattedString) { + public static @Nullable ApplicationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApplicationName> values) { List list = new ArrayList<>(values.size()); for (ApplicationName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java index af764d35d48c..86842526a576 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AudienceSegmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String audienceSegment) { .toString(); } - public static AudienceSegmentName parse(String formattedString) { + public static @Nullable AudienceSegmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AudienceSegmentName> values) { List list = new ArrayList<>(values.size()); for (AudienceSegmentName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java index 44df360b5e75..3a639fac5428 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BandwidthGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String bandwidthGroup) { .toString(); } - public static BandwidthGroupName parse(String formattedString) { + public static @Nullable BandwidthGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BandwidthGroupName> values) { List list = new ArrayList<>(values.size()); for (BandwidthGroupName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java index d9d58a838b64..5d74c6299192 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserLanguageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String browserLanguage) { .toString(); } - public static BrowserLanguageName parse(String formattedString) { + public static @Nullable BrowserLanguageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BrowserLanguageName> values) { List list = new ArrayList<>(values.size()); for (BrowserLanguageName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java index ed2a9aab60c2..7792191865fa 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BrowserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String browser) { return newBuilder().setNetworkCode(networkCode).setBrowser(browser).build().toString(); } - public static BrowserName parse(String formattedString) { + public static @Nullable BrowserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BrowserName> values) { List list = new ArrayList<>(values.size()); for (BrowserName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java index 197e20b3a7e4..8d366d8814c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String cmsMetadataKey) { .toString(); } - public static CmsMetadataKeyName parse(String formattedString) { + public static @Nullable CmsMetadataKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmsMetadataKeyName> values) { List list = new ArrayList<>(values.size()); for (CmsMetadataKeyName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java index 118595a7fa6c..8dc3e5556eba 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String cmsMetadataValue) { .toString(); } - public static CmsMetadataValueName parse(String formattedString) { + public static @Nullable CmsMetadataValueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmsMetadataValueName> values) { List list = new ArrayList<>(values.size()); for (CmsMetadataValueName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyName.java index b3c866aad613..3a61bc025fc3 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CompanyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String company) { return newBuilder().setNetworkCode(networkCode).setCompany(company).build().toString(); } - public static CompanyName parse(String formattedString) { + public static @Nullable CompanyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompanyName> values) { List list = new ArrayList<>(values.size()); for (CompanyName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java index a9fdf4e405ac..bce2af45fd0a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContactName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String contact) { return newBuilder().setNetworkCode(networkCode).setContact(contact).build().toString(); } - public static ContactName parse(String formattedString) { + public static @Nullable ContactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContactName> values) { List list = new ArrayList<>(values.size()); for (ContactName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java index 89238aaef63d..9dd08e034afe 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentBundleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String contentBundle) { .toString(); } - public static ContentBundleName parse(String formattedString) { + public static @Nullable ContentBundleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContentBundleName> values) { List list = new ArrayList<>(values.size()); for (ContentBundleName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java index 172931bea6dc..b4d6ca2aa644 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentLabelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String contentLabel) { .toString(); } - public static ContentLabelName parse(String formattedString) { + public static @Nullable ContentLabelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContentLabelName> values) { List list = new ArrayList<>(values.size()); for (ContentLabelName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java index bcfb6d8d81c3..a842e51faa3a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ContentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String content) { return newBuilder().setNetworkCode(networkCode).setContent(content).build().toString(); } - public static ContentName parse(String formattedString) { + public static @Nullable ContentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContentName> values) { List list = new ArrayList<>(values.size()); for (ContentName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java index d64b125f4fb8..df4db04b4d96 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreativeTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String creativeTemplate) { .toString(); } - public static CreativeTemplateName parse(String formattedString) { + public static @Nullable CreativeTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CreativeTemplateName> values) { List list = new ArrayList<>(values.size()); for (CreativeTemplateName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldName.java index bf829417c923..317b39e61228 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomFieldName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String customField) { return newBuilder().setNetworkCode(networkCode).setCustomField(customField).build().toString(); } - public static CustomFieldName parse(String formattedString) { + public static @Nullable CustomFieldName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomFieldName> values) { List list = new ArrayList<>(values.size()); for (CustomFieldName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyName.java index 3097e0bb0479..fc4aca23b4ae 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String customTargetingKey) { .toString(); } - public static CustomTargetingKeyName parse(String formattedString) { + public static @Nullable CustomTargetingKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomTargetingKeyName> values) { List list = new ArrayList<>(values.size()); for (CustomTargetingKeyName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java index ae6d2024fe64..8e5a19aa0734 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingValueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String customTargetingValue) { .toString(); } - public static CustomTargetingValueName parse(String formattedString) { + public static @Nullable CustomTargetingValueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomTargetingValueName> values) { List list = new ArrayList<>(values.size()); for (CustomTargetingValueName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java index 94463f84abc0..aa2a31e9707e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCapabilityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String deviceCapability) { .toString(); } - public static DeviceCapabilityName parse(String formattedString) { + public static @Nullable DeviceCapabilityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeviceCapabilityName> values) { List list = new ArrayList<>(values.size()); for (DeviceCapabilityName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java index 1fb392a4d792..69ba411ec749 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceCategoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String deviceCategory) { .toString(); } - public static DeviceCategoryName parse(String formattedString) { + public static @Nullable DeviceCategoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeviceCategoryName> values) { List list = new ArrayList<>(values.size()); for (DeviceCategoryName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java index 335423513eba..b66f23dc1634 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/DeviceManufacturerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String deviceManufacturer) { .toString(); } - public static DeviceManufacturerName parse(String formattedString) { + public static @Nullable DeviceManufacturerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeviceManufacturerName> values) { List list = new ArrayList<>(values.size()); for (DeviceManufacturerName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingName.java index 836ade892c9c..43938a8e8342 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/EntitySignalsMappingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String entitySignalsMapping) { .toString(); } - public static EntitySignalsMappingName parse(String formattedString) { + public static @Nullable EntitySignalsMappingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntitySignalsMappingName> values) { List list = new ArrayList<>(values.size()); for (EntitySignalsMappingName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java index 60a4f17900a2..b960f7ed3f91 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GeoTargetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String geoTarget) { return newBuilder().setNetworkCode(networkCode).setGeoTarget(geoTarget).build().toString(); } - public static GeoTargetName parse(String formattedString) { + public static @Nullable GeoTargetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeoTargetName> values) { List list = new ArrayList<>(values.size()); for (GeoTargetName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelName.java index 9b54bd123faa..7af2337b880f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LabelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String label) { return newBuilder().setNetworkCode(networkCode).setLabel(label).build().toString(); } - public static LabelName parse(String formattedString) { + public static @Nullable LabelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LabelName> values) { List list = new ArrayList<>(values.size()); for (LabelName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java index 3798c60f54cf..9bfb3405726d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String lineItem) { return newBuilder().setNetworkCode(networkCode).setLineItem(lineItem).build().toString(); } - public static LineItemName parse(String formattedString) { + public static @Nullable LineItemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LineItemName> values) { List list = new ArrayList<>(values.size()); for (LineItemName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LinkedDeviceName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LinkedDeviceName.java index 1a74d7bc0d0b..acfffc5428a8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LinkedDeviceName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LinkedDeviceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String linkedDevice) { .toString(); } - public static LinkedDeviceName parse(String formattedString) { + public static @Nullable LinkedDeviceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LinkedDeviceName> values) { List list = new ArrayList<>(values.size()); for (LinkedDeviceName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventName.java index f837b896b115..cfae427e3275 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LiveStreamEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String liveStreamEvent) { .toString(); } - public static LiveStreamEventName parse(String formattedString) { + public static @Nullable LiveStreamEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LiveStreamEventName> values) { List list = new ArrayList<>(values.size()); for (LiveStreamEventName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java index b66560d34324..d514fd1efc97 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileCarrierName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String mobileCarrier) { .toString(); } - public static MobileCarrierName parse(String formattedString) { + public static @Nullable MobileCarrierName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MobileCarrierName> values) { List list = new ArrayList<>(values.size()); for (MobileCarrierName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java index 86450ff475d2..5dc33a7451a8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String mobileDevice) { .toString(); } - public static MobileDeviceName parse(String formattedString) { + public static @Nullable MobileDeviceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MobileDeviceName> values) { List list = new ArrayList<>(values.size()); for (MobileDeviceName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java index 351e161ba82b..60c85cd483c1 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/MobileDeviceSubmodelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String mobileDeviceSubmodel) { .toString(); } - public static MobileDeviceSubmodelName parse(String formattedString) { + public static @Nullable MobileDeviceSubmodelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MobileDeviceSubmodelName> values) { List list = new ArrayList<>(values.size()); for (MobileDeviceSubmodelName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkName.java index f7a13137c61e..4a111d1852fc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String networkCode) { return newBuilder().setNetworkCode(networkCode).build().toString(); } - public static NetworkName parse(String formattedString) { + public static @Nullable NetworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NetworkName> values) { List list = new ArrayList<>(values.size()); for (NetworkName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java index a8e985cf628d..cab680a3d04a 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String operatingSystem) { .toString(); } - public static OperatingSystemName parse(String formattedString) { + public static @Nullable OperatingSystemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OperatingSystemName> values) { List list = new ArrayList<>(values.size()); for (OperatingSystemName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java index aa9af776a2a7..2c0f5bffd4a7 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OperatingSystemVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String operatingSystemVersion) { .toString(); } - public static OperatingSystemVersionName parse(String formattedString) { + public static @Nullable OperatingSystemVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OperatingSystemVersionName> values) { List list = new ArrayList<>(values.size()); for (OperatingSystemVersionName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderName.java index 74907dde47f3..771ce9161542 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String order) { return newBuilder().setNetworkCode(networkCode).setOrder(order).build().toString(); } - public static OrderName parse(String formattedString) { + public static @Nullable OrderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrderName> values) { List list = new ArrayList<>(values.size()); for (OrderName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementName.java index b1a716b1fab6..ea9b1d6ffbbc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PlacementName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String placement) { return newBuilder().setNetworkCode(networkCode).setPlacement(placement).build().toString(); } - public static PlacementName parse(String formattedString) { + public static @Nullable PlacementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlacementName> values) { List list = new ArrayList<>(values.size()); for (PlacementName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java index b52ef4ed45b6..3b183f6a5cdb 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionDealName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String privateAuctionDeal) { .toString(); } - public static PrivateAuctionDealName parse(String formattedString) { + public static @Nullable PrivateAuctionDealName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateAuctionDealName> values) { List list = new ArrayList<>(values.size()); for (PrivateAuctionDealName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java index 441d871b0521..7992224a3826 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/PrivateAuctionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String privateAuction) { .toString(); } - public static PrivateAuctionName parse(String formattedString) { + public static @Nullable PrivateAuctionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateAuctionName> values) { List list = new ArrayList<>(values.size()); for (PrivateAuctionName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java index 9d3b9d5f05da..cbb8f90b85b8 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ProgrammaticBuyerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String programmaticBuyer) { .toString(); } - public static ProgrammaticBuyerName parse(String formattedString) { + public static @Nullable ProgrammaticBuyerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProgrammaticBuyerName> values) { List list = new ArrayList<>(values.size()); for (ProgrammaticBuyerName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportName.java index fbdfdaaa66e1..5a5fa345baf2 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String report) { return newBuilder().setNetworkCode(networkCode).setReport(report).build().toString(); } - public static ReportName parse(String formattedString) { + public static @Nullable ReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportName> values) { List list = new ArrayList<>(values.size()); for (ReportName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyName.java index 520072d954af..bd6db0a46979 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RichMediaAdsCompanyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String networkCode, String richMediaAdsCompany) { .toString(); } - public static RichMediaAdsCompanyName parse(String formattedString) { + public static @Nullable RichMediaAdsCompanyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RichMediaAdsCompanyName> values) { List list = new ArrayList<>(values.size()); for (RichMediaAdsCompanyName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleName.java index 2c1a9c6e8074..fe7226c81606 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/RoleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String role) { return newBuilder().setNetworkCode(networkCode).setRole(role).build().toString(); } - public static RoleName parse(String formattedString) { + public static @Nullable RoleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RoleName> values) { List list = new ArrayList<>(values.size()); for (RoleName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java index 87595c6bbabe..d401ffbd8100 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SiteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String site) { return newBuilder().setNetworkCode(networkCode).setSite(site).build().toString(); } - public static SiteName parse(String formattedString) { + public static @Nullable SiteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SiteName> values) { List list = new ArrayList<>(values.size()); for (SiteName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryName.java index 43a6f7a81728..8b84f577f507 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TaxonomyCategoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String networkCode, String taxonomyCategory) { .toString(); } - public static TaxonomyCategoryName parse(String formattedString) { + public static @Nullable TaxonomyCategoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaxonomyCategoryName> values) { List list = new ArrayList<>(values.size()); for (TaxonomyCategoryName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java index 835e26eeee6d..62881c768814 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/TeamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String team) { return newBuilder().setNetworkCode(networkCode).setTeam(team).build().toString(); } - public static TeamName parse(String formattedString) { + public static @Nullable TeamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TeamName> values) { List list = new ArrayList<>(values.size()); for (TeamName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserName.java index 6f9ab78fc507..29ff3d87f65f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String user) { return newBuilder().setNetworkCode(networkCode).setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java index aa269b87f2a9..efbcc0418a48 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/WebPropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String networkCode, String webProperty) { return newBuilder().setNetworkCode(networkCode).setWebProperty(webProperty).build().toString(); } - public static WebPropertyName parse(String formattedString) { + public static @Nullable WebPropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WebPropertyName> values) { List list = new ArrayList<>(values.size()); for (WebPropertyName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java index efab802bd6e6..8d2b1029b675 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java @@ -32,6 +32,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdvisoryNotificationsServiceClient implements BackgroundResource { - private final AdvisoryNotificationsServiceSettings settings; + private final @Nullable AdvisoryNotificationsServiceSettings settings; private final AdvisoryNotificationsServiceStub stub; /** Constructs an instance of AdvisoryNotificationsServiceClient with default settings. */ @@ -247,7 +248,7 @@ protected AdvisoryNotificationsServiceClient(AdvisoryNotificationsServiceStub st this.stub = stub; } - public final AdvisoryNotificationsServiceSettings getSettings() { + public final @Nullable AdvisoryNotificationsServiceSettings getSettings() { return settings; } @@ -282,7 +283,7 @@ public AdvisoryNotificationsServiceStub getStub() { * "projects/{project}/locations/{location}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationsPagedResponse listNotifications(LocationName parent) { + public final ListNotificationsPagedResponse listNotifications(@Nullable LocationName parent) { ListNotificationsRequest request = ListNotificationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -471,7 +472,7 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR * projects/{projects}/locations/{location}/notifications/{notification}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Notification getNotification(NotificationName name) { + public final Notification getNotification(@Nullable NotificationName name) { GetNotificationRequest request = GetNotificationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNotification(request); @@ -599,7 +600,7 @@ public final UnaryCallable getNotification * projects/{projects}/locations/{location}/settings. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -841,8 +842,9 @@ public static class ListNotificationsPage ListNotificationsPage> { private ListNotificationsPage( - PageContext context, - ListNotificationsResponse response) { + @Nullable PageContext + context, + @Nullable ListNotificationsResponse response) { super(context, response); } @@ -852,14 +854,16 @@ private static ListNotificationsPage createEmptyPage() { @Override protected ListNotificationsPage createPage( - PageContext context, - ListNotificationsResponse response) { + @Nullable PageContext + context, + @Nullable ListNotificationsResponse response) { return new ListNotificationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -874,7 +878,7 @@ public static class ListNotificationsFixedSizeCollection ListNotificationsFixedSizeCollection> { private ListNotificationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -884,7 +888,7 @@ private static ListNotificationsFixedSizeCollection createEmptyCollection() { @Override protected ListNotificationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java index 90f968578bfd..27c0baeed28b 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdvisoryNotificationsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java index e9b62727d856..15e4f0f50940 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,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); } @@ -388,7 +389,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listNotificationsSettings = PagedCallSettings.newBuilder(LIST_NOTIFICATIONS_PAGE_STR_FACT); diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java index c21cc7ecd9a0..1680e7d9f73a 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -116,7 +117,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -138,7 +139,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java index cd21bbb449a5..7c402f3c9f77 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectLocationNotificationName( .toString(); } - public static NotificationName parse(String formattedString) { + public static @Nullable NotificationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationName> values) { List list = new ArrayList<>(values.size()); for (NotificationName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SettingsName.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SettingsName.java index 27e4a44a3527..90153a1bc8b0 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SettingsName.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -139,7 +140,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -188,7 +189,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java index 98825baa3de0..51ef4d4cb78d 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java @@ -43,6 +43,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. /** @@ -535,7 +536,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AgentRegistryClient implements BackgroundResource { - private final AgentRegistrySettings settings; + private final @Nullable AgentRegistrySettings settings; private final AgentRegistryStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -583,7 +584,7 @@ protected AgentRegistryClient(AgentRegistryStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentRegistrySettings getSettings() { + public final @Nullable AgentRegistrySettings getSettings() { return settings; } @@ -631,7 +632,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListAgentsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentsPagedResponse listAgents(LocationName parent) { + public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) { ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAgents(request); @@ -796,7 +797,7 @@ public final UnaryCallable listAgentsCall * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(LocationName parent) { + public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) { SearchAgentsRequest request = SearchAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -959,7 +960,7 @@ public final UnaryCallable searchAgen * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(AgentName name) { + public final Agent getAgent(@Nullable AgentName name) { GetAgentRequest request = GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgent(request); @@ -1070,7 +1071,7 @@ public final UnaryCallable getAgentCallable() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(LocationName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1235,7 +1236,7 @@ public final UnaryCallable listEndp * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -1347,7 +1348,7 @@ public final UnaryCallable getEndpointCallable() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpServersPagedResponse listMcpServers(LocationName parent) { + public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) { ListMcpServersRequest request = ListMcpServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1519,7 +1520,7 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchMcpServersPagedResponse searchMcpServers(LocationName parent) { + public final SearchMcpServersPagedResponse searchMcpServers(@Nullable LocationName parent) { SearchMcpServersRequest request = SearchMcpServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1686,7 +1687,7 @@ public final SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequ * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpServer getMcpServer(McpServerName name) { + public final McpServer getMcpServer(@Nullable McpServerName name) { GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMcpServer(request); @@ -1797,7 +1798,7 @@ public final UnaryCallable getMcpServerCallable( * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(LocationName parent) { + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1962,7 +1963,7 @@ public final UnaryCallable listServic * `projects/{project}/locations/{location}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -2080,7 +2081,7 @@ public final UnaryCallable getServiceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - LocationName parent, Service service, String serviceId) { + @Nullable LocationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2371,7 +2372,8 @@ public final UnaryCallable updateServiceCallabl * `projects/{project}/locations/{location}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -2516,7 +2518,7 @@ public final UnaryCallable deleteServiceCallabl * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBindingsPagedResponse listBindings(LocationName parent) { + public final ListBindingsPagedResponse listBindings(@Nullable LocationName parent) { ListBindingsRequest request = ListBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2684,7 +2686,7 @@ public final UnaryCallable listBindin * `projects/{project}/locations/{location}/bindings/{binding}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Binding getBinding(BindingName name) { + public final Binding getBinding(@Nullable BindingName name) { GetBindingRequest request = GetBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBinding(request); @@ -2802,7 +2804,7 @@ public final UnaryCallable getBindingCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBindingAsync( - LocationName parent, Binding binding, String bindingId) { + @Nullable LocationName parent, Binding binding, String bindingId) { CreateBindingRequest request = CreateBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3092,7 +3094,8 @@ public final UnaryCallable updateBindingCallabl * `projects/{project}/locations/{location}/bindings/{binding}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBindingAsync(BindingName name) { + public final OperationFuture deleteBindingAsync( + @Nullable BindingName name) { DeleteBindingRequest request = DeleteBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBindingAsync(request); @@ -3236,7 +3239,8 @@ public final UnaryCallable deleteBindingCallabl * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(LocationName parent) { + public final FetchAvailableBindingsPagedResponse fetchAvailableBindings( + @Nullable LocationName parent) { FetchAvailableBindingsRequest request = FetchAvailableBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3626,8 +3630,8 @@ public static class ListAgentsPage extends AbstractPage { private ListAgentsPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { super(context, response); } @@ -3637,14 +3641,14 @@ private static ListAgentsPage createEmptyPage() { @Override protected ListAgentsPage createPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { return new ListAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3658,7 +3662,8 @@ public static class ListAgentsFixedSizeCollection ListAgentsPage, ListAgentsFixedSizeCollection> { - private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3668,7 +3673,7 @@ private static ListAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentsFixedSizeCollection(pages, collectionSize); } } @@ -3701,8 +3706,8 @@ public static class SearchAgentsPage extends AbstractPage { private SearchAgentsPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { super(context, response); } @@ -3712,14 +3717,14 @@ private static SearchAgentsPage createEmptyPage() { @Override protected SearchAgentsPage createPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { return new SearchAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3733,7 +3738,8 @@ public static class SearchAgentsFixedSizeCollection SearchAgentsPage, SearchAgentsFixedSizeCollection> { - private SearchAgentsFixedSizeCollection(List pages, int collectionSize) { + private SearchAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3743,7 +3749,7 @@ private static SearchAgentsFixedSizeCollection createEmptyCollection() { @Override protected SearchAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAgentsFixedSizeCollection(pages, collectionSize); } } @@ -3777,8 +3783,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -3788,14 +3794,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3809,7 +3815,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3819,7 +3826,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -3853,8 +3860,8 @@ public static class ListMcpServersPage ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { private ListMcpServersPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { super(context, response); } @@ -3864,14 +3871,14 @@ private static ListMcpServersPage createEmptyPage() { @Override protected ListMcpServersPage createPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { return new ListMcpServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3885,7 +3892,8 @@ public static class ListMcpServersFixedSizeCollection ListMcpServersPage, ListMcpServersFixedSizeCollection> { - private ListMcpServersFixedSizeCollection(List pages, int collectionSize) { + private ListMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3895,7 +3903,7 @@ private static ListMcpServersFixedSizeCollection createEmptyCollection() { @Override protected ListMcpServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMcpServersFixedSizeCollection(pages, collectionSize); } } @@ -3929,8 +3937,8 @@ public static class SearchMcpServersPage SearchMcpServersRequest, SearchMcpServersResponse, McpServer, SearchMcpServersPage> { private SearchMcpServersPage( - PageContext context, - SearchMcpServersResponse response) { + @Nullable PageContext context, + @Nullable SearchMcpServersResponse response) { super(context, response); } @@ -3940,14 +3948,14 @@ private static SearchMcpServersPage createEmptyPage() { @Override protected SearchMcpServersPage createPage( - PageContext context, - SearchMcpServersResponse response) { + @Nullable PageContext context, + @Nullable SearchMcpServersResponse response) { return new SearchMcpServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3962,7 +3970,7 @@ public static class SearchMcpServersFixedSizeCollection SearchMcpServersFixedSizeCollection> { private SearchMcpServersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3972,7 +3980,7 @@ private static SearchMcpServersFixedSizeCollection createEmptyCollection() { @Override protected SearchMcpServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchMcpServersFixedSizeCollection(pages, collectionSize); } } @@ -4005,8 +4013,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -4016,14 +4024,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4037,7 +4045,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4047,7 +4056,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -4080,8 +4089,8 @@ public static class ListBindingsPage extends AbstractPage { private ListBindingsPage( - PageContext context, - ListBindingsResponse response) { + @Nullable PageContext context, + @Nullable ListBindingsResponse response) { super(context, response); } @@ -4091,14 +4100,14 @@ private static ListBindingsPage createEmptyPage() { @Override protected ListBindingsPage createPage( - PageContext context, - ListBindingsResponse response) { + @Nullable PageContext context, + @Nullable ListBindingsResponse response) { return new ListBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4112,7 +4121,8 @@ public static class ListBindingsFixedSizeCollection ListBindingsPage, ListBindingsFixedSizeCollection> { - private ListBindingsFixedSizeCollection(List pages, int collectionSize) { + private ListBindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4122,7 +4132,7 @@ private static ListBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBindingsFixedSizeCollection(pages, collectionSize); } } @@ -4159,8 +4169,10 @@ public static class FetchAvailableBindingsPage FetchAvailableBindingsPage> { private FetchAvailableBindingsPage( - PageContext context, - FetchAvailableBindingsResponse response) { + @Nullable + PageContext + context, + @Nullable FetchAvailableBindingsResponse response) { super(context, response); } @@ -4170,14 +4182,18 @@ private static FetchAvailableBindingsPage createEmptyPage() { @Override protected FetchAvailableBindingsPage createPage( - PageContext context, - FetchAvailableBindingsResponse response) { + @Nullable + PageContext + context, + @Nullable FetchAvailableBindingsResponse response) { return new FetchAvailableBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4192,7 +4208,7 @@ public static class FetchAvailableBindingsFixedSizeCollection FetchAvailableBindingsFixedSizeCollection> { private FetchAvailableBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4202,7 +4218,7 @@ private static FetchAvailableBindingsFixedSizeCollection createEmptyCollection() @Override protected FetchAvailableBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchAvailableBindingsFixedSizeCollection(pages, collectionSize); } } @@ -4236,8 +4252,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4247,14 +4263,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4268,7 +4284,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4278,7 +4295,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java index 18e970fcfd07..63a480df5def 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java @@ -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. /** @@ -340,7 +341,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); } @@ -360,7 +361,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java index d25639c7fd6f..ebb2a8db2475 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -82,11 +83,12 @@ @Generated("by gapic-generator-java") public abstract class AgentRegistryStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java index 4333553d4cb1..19e649fabea4 100644 --- a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java @@ -105,6 +105,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -980,7 +981,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); } @@ -1134,7 +1135,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAgentsSettings = PagedCallSettings.newBuilder(LIST_AGENTS_PAGE_STR_FACT); diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java index c94cf3b34244..72f927457e37 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java index f10e2e12b753..4149ff43f800 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String binding) { .toString(); } - public static BindingName parse(String formattedString) { + public static @Nullable BindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BindingName> values) { List list = new ArrayList<>(values.size()); for (BindingName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java index 23c8803c21c0..729ee2fd29e0 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String endpoint) { .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java index 02de5568488b..50984bcb74d0 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java index f4d96ae98f45..8b9225e92f06 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String mcpServer) { .toString(); } - public static McpServerName parse(String formattedString) { + public static @Nullable McpServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable McpServerName> values) { List list = new ArrayList<>(values.size()); for (McpServerName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java index ccae83a782ea..87e9d49585af 100644 --- a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String service) { .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceClient.java index aab26423873a..7efeefc3a808 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceClient.java @@ -41,6 +41,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. /** @@ -212,7 +213,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataFoundryServiceClient implements BackgroundResource { - private final DataFoundryServiceSettings settings; + private final @Nullable DataFoundryServiceSettings settings; private final DataFoundryServiceStub stub; /** Constructs an instance of DataFoundryServiceClient with default settings. */ @@ -252,7 +253,7 @@ protected DataFoundryServiceClient(DataFoundryServiceStub stub) { this.stub = stub; } - public final DataFoundryServiceSettings getSettings() { + public final @Nullable DataFoundryServiceSettings getSettings() { return settings; } @@ -752,8 +753,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -763,14 +764,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -784,7 +785,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -794,7 +796,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceSettings.java index 91ff105157e3..ae25ba3f0add 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DataFoundryServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataFoundryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index cccb02aa6d20..4890e4636af4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -47,6 +47,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. /** @@ -562,7 +563,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DatasetServiceClient implements BackgroundResource { - private final DatasetServiceSettings settings; + private final @Nullable DatasetServiceSettings settings; private final DatasetServiceStub stub; private final OperationsClient operationsClient; @@ -605,7 +606,7 @@ protected DatasetServiceClient(DatasetServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DatasetServiceSettings getSettings() { + public final @Nullable DatasetServiceSettings getSettings() { return settings; } @@ -646,7 +647,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetAsync( - LocationName parent, Dataset dataset) { + @Nullable LocationName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -796,7 +797,7 @@ public final UnaryCallable createDatasetCallabl * @param name Required. The name of the Dataset resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -997,7 +998,7 @@ public final UnaryCallable updateDatasetCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(LocationName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable LocationName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1169,7 +1170,7 @@ public final UnaryCallable listDatase * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatasetAsync( - DatasetName name) { + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -1314,7 +1315,7 @@ public final UnaryCallable deleteDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDataAsync( - DatasetName name, List importConfigs) { + @Nullable DatasetName name, List importConfigs) { ImportDataRequest request = ImportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1468,7 +1469,7 @@ public final UnaryCallable importDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportDataAsync( - DatasetName name, ExportDataConfig exportConfig) { + @Nullable DatasetName name, ExportDataConfig exportConfig) { ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1624,7 +1625,7 @@ public final UnaryCallable exportDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createDatasetVersionAsync(DatasetName parent, DatasetVersion datasetVersion) { + createDatasetVersionAsync(@Nullable DatasetName parent, DatasetVersion datasetVersion) { CreateDatasetVersionRequest request = CreateDatasetVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1880,7 +1881,7 @@ public final DatasetVersion updateDatasetVersion(UpdateDatasetVersionRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatasetVersionAsync( - DatasetVersionName name) { + @Nullable DatasetVersionName name) { DeleteDatasetVersionRequest request = DeleteDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2035,7 +2036,7 @@ public final OperationFuture deleteDatasetVersio * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DatasetVersion getDatasetVersion(DatasetVersionName name) { + public final DatasetVersion getDatasetVersion(@Nullable DatasetVersionName name) { GetDatasetVersionRequest request = GetDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2158,7 +2159,7 @@ public final UnaryCallable getDatasetV * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetVersionsPagedResponse listDatasetVersions(DatasetName parent) { + public final ListDatasetVersionsPagedResponse listDatasetVersions(@Nullable DatasetName parent) { ListDatasetVersionsRequest request = ListDatasetVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2336,7 +2337,7 @@ public final ListDatasetVersionsPagedResponse listDatasetVersions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - restoreDatasetVersionAsync(DatasetVersionName name) { + restoreDatasetVersionAsync(@Nullable DatasetVersionName name) { RestoreDatasetVersionRequest request = RestoreDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2493,7 +2494,7 @@ public final ListDatasetVersionsPagedResponse listDatasetVersions( * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataItemsPagedResponse listDataItems(DatasetName parent) { + public final ListDataItemsPagedResponse listDataItems(@Nullable DatasetName parent) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2801,7 +2802,7 @@ public final SearchDataItemsPagedResponse searchDataItems(SearchDataItemsRequest * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(DatasetName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable DatasetName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2977,7 +2978,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(ListSavedQueriesRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSavedQueryAsync( - SavedQueryName name) { + @Nullable SavedQueryName name) { DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSavedQueryAsync(request); @@ -3126,7 +3127,7 @@ public final UnaryCallable deleteSavedQueryC * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { + public final AnnotationSpec getAnnotationSpec(@Nullable AnnotationSpecName name) { GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3249,7 +3250,7 @@ public final UnaryCallable getAnnotati * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { + public final ListAnnotationsPagedResponse listAnnotations(@Nullable DataItemName parent) { ListAnnotationsRequest request = ListAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3826,8 +3827,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -3837,14 +3838,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3858,7 +3859,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3868,7 +3870,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -3906,9 +3908,10 @@ public static class ListDatasetVersionsPage ListDatasetVersionsPage> { private ListDatasetVersionsPage( - PageContext + @Nullable + PageContext context, - ListDatasetVersionsResponse response) { + @Nullable ListDatasetVersionsResponse response) { super(context, response); } @@ -3918,15 +3921,17 @@ private static ListDatasetVersionsPage createEmptyPage() { @Override protected ListDatasetVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListDatasetVersionsResponse response) { + @Nullable ListDatasetVersionsResponse response) { return new ListDatasetVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3942,7 +3947,7 @@ public static class ListDatasetVersionsFixedSizeCollection ListDatasetVersionsFixedSizeCollection> { private ListDatasetVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3952,7 +3957,7 @@ private static ListDatasetVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetVersionsFixedSizeCollection(pages, collectionSize); } } @@ -3986,8 +3991,8 @@ public static class ListDataItemsPage ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage> { private ListDataItemsPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { super(context, response); } @@ -3997,14 +4002,14 @@ private static ListDataItemsPage createEmptyPage() { @Override protected ListDataItemsPage createPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { return new ListDataItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4018,7 +4023,8 @@ public static class ListDataItemsFixedSizeCollection ListDataItemsPage, ListDataItemsFixedSizeCollection> { - private ListDataItemsFixedSizeCollection(List pages, int collectionSize) { + private ListDataItemsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4028,7 +4034,7 @@ private static ListDataItemsFixedSizeCollection createEmptyCollection() { @Override protected ListDataItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataItemsFixedSizeCollection(pages, collectionSize); } } @@ -4062,8 +4068,9 @@ public static class SearchDataItemsPage SearchDataItemsRequest, SearchDataItemsResponse, DataItemView, SearchDataItemsPage> { private SearchDataItemsPage( - PageContext context, - SearchDataItemsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataItemsResponse response) { super(context, response); } @@ -4073,14 +4080,16 @@ private static SearchDataItemsPage createEmptyPage() { @Override protected SearchDataItemsPage createPage( - PageContext context, - SearchDataItemsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataItemsResponse response) { return new SearchDataItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4095,7 +4104,7 @@ public static class SearchDataItemsFixedSizeCollection SearchDataItemsFixedSizeCollection> { private SearchDataItemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4105,7 +4114,7 @@ private static SearchDataItemsFixedSizeCollection createEmptyCollection() { @Override protected SearchDataItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDataItemsFixedSizeCollection(pages, collectionSize); } } @@ -4139,8 +4148,9 @@ public static class ListSavedQueriesPage ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { private ListSavedQueriesPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { super(context, response); } @@ -4150,14 +4160,16 @@ private static ListSavedQueriesPage createEmptyPage() { @Override protected ListSavedQueriesPage createPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { return new ListSavedQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4172,7 +4184,7 @@ public static class ListSavedQueriesFixedSizeCollection ListSavedQueriesFixedSizeCollection> { private ListSavedQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4182,7 +4194,7 @@ private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSavedQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); } } @@ -4216,8 +4228,8 @@ public static class ListAnnotationsPage ListAnnotationsRequest, ListAnnotationsResponse, Annotation, ListAnnotationsPage> { private ListAnnotationsPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { super(context, response); } @@ -4227,14 +4239,14 @@ private static ListAnnotationsPage createEmptyPage() { @Override protected ListAnnotationsPage createPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { return new ListAnnotationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4249,7 +4261,7 @@ public static class ListAnnotationsFixedSizeCollection ListAnnotationsFixedSizeCollection> { private ListAnnotationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4259,7 +4271,7 @@ private static ListAnnotationsFixedSizeCollection createEmptyCollection() { @Override protected ListAnnotationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnnotationsFixedSizeCollection(pages, collectionSize); } } @@ -4293,8 +4305,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4304,14 +4316,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4325,7 +4337,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4335,7 +4348,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 496981a6eece..af1a72eb3743 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -361,7 +362,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -381,7 +382,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatasetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceClient.java index 100f386d708e..2cc886d09526 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceClient.java @@ -47,6 +47,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeploymentResourcePoolServiceClient implements BackgroundResource { - private final DeploymentResourcePoolServiceSettings settings; + private final @Nullable DeploymentResourcePoolServiceSettings settings; private final DeploymentResourcePoolServiceStub stub; private final OperationsClient operationsClient; @@ -364,7 +365,7 @@ protected DeploymentResourcePoolServiceClient(DeploymentResourcePoolServiceStub this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DeploymentResourcePoolServiceSettings getSettings() { + public final @Nullable DeploymentResourcePoolServiceSettings getSettings() { return settings; } @@ -417,7 +418,7 @@ public final OperationsClient getOperationsClient() { public final OperationFuture< DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> createDeploymentResourcePoolAsync( - LocationName parent, + @Nullable LocationName parent, DeploymentResourcePool deploymentResourcePool, String deploymentResourcePoolId) { CreateDeploymentResourcePoolRequest request = @@ -609,7 +610,8 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResourcePoolName name) { + public final DeploymentResourcePool getDeploymentResourcePool( + @Nullable DeploymentResourcePoolName name) { GetDeploymentResourcePoolRequest request = GetDeploymentResourcePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -745,7 +747,7 @@ public final DeploymentResourcePool getDeploymentResourcePool( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools( - ProjectName parent) { + @Nullable ProjectName parent) { ListDeploymentResourcePoolsRequest request = ListDeploymentResourcePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1069,7 +1071,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeploymentResourcePoolAsync( - DeploymentResourcePoolName name) { + @Nullable DeploymentResourcePoolName name) { DeleteDeploymentResourcePoolRequest request = DeleteDeploymentResourcePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1810,12 +1812,13 @@ public static class ListDeploymentResourcePoolsPage ListDeploymentResourcePoolsPage> { private ListDeploymentResourcePoolsPage( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> context, - ListDeploymentResourcePoolsResponse response) { + @Nullable ListDeploymentResourcePoolsResponse response) { super(context, response); } @@ -1825,18 +1828,20 @@ private static ListDeploymentResourcePoolsPage createEmptyPage() { @Override protected ListDeploymentResourcePoolsPage createPage( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> context, - ListDeploymentResourcePoolsResponse response) { + @Nullable ListDeploymentResourcePoolsResponse response) { return new ListDeploymentResourcePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> @@ -1855,7 +1860,7 @@ public static class ListDeploymentResourcePoolsFixedSizeCollection ListDeploymentResourcePoolsFixedSizeCollection> { private ListDeploymentResourcePoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1865,7 +1870,7 @@ private static ListDeploymentResourcePoolsFixedSizeCollection createEmptyCollect @Override protected ListDeploymentResourcePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentResourcePoolsFixedSizeCollection(pages, collectionSize); } } @@ -1902,8 +1907,10 @@ public static class QueryDeployedModelsPage QueryDeployedModelsPage> { private QueryDeployedModelsPage( - PageContext context, - QueryDeployedModelsResponse response) { + @Nullable + PageContext + context, + @Nullable QueryDeployedModelsResponse response) { super(context, response); } @@ -1913,14 +1920,18 @@ private static QueryDeployedModelsPage createEmptyPage() { @Override protected QueryDeployedModelsPage createPage( - PageContext context, - QueryDeployedModelsResponse response) { + @Nullable + PageContext + context, + @Nullable QueryDeployedModelsResponse response) { return new QueryDeployedModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1935,7 +1946,7 @@ public static class QueryDeployedModelsFixedSizeCollection QueryDeployedModelsFixedSizeCollection> { private QueryDeployedModelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1945,7 +1956,7 @@ private static QueryDeployedModelsFixedSizeCollection createEmptyCollection() { @Override protected QueryDeployedModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDeployedModelsFixedSizeCollection(pages, collectionSize); } } @@ -1979,8 +1990,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1990,14 +2001,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2011,7 +2022,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2021,7 +2033,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceSettings.java index 7667ce6ccf41..55713f329cdf 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -275,7 +276,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeploymentResourcePoolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java index 035a5388ff3b..043473d9dace 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java @@ -48,6 +48,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. /** @@ -377,7 +378,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EndpointServiceClient implements BackgroundResource { - private final EndpointServiceSettings settings; + private final @Nullable EndpointServiceSettings settings; private final EndpointServiceStub stub; private final OperationsClient operationsClient; @@ -420,7 +421,7 @@ protected EndpointServiceClient(EndpointServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final EndpointServiceSettings getSettings() { + public final @Nullable EndpointServiceSettings getSettings() { return settings; } @@ -461,7 +462,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointAsync( - LocationName parent, Endpoint endpoint) { + @Nullable LocationName parent, Endpoint endpoint) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -538,7 +539,7 @@ public final OperationFuture createEn * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointAsync( - LocationName parent, Endpoint endpoint, String endpointId) { + @Nullable LocationName parent, Endpoint endpoint, String endpointId) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -710,7 +711,7 @@ public final UnaryCallable createEndpointCalla * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -830,7 +831,7 @@ public final UnaryCallable getEndpointCallable() { * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(LocationName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1210,7 +1211,7 @@ public final UnaryCallable updateEndpointCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointAsync( - EndpointName name) { + @Nullable EndpointName name) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEndpointAsync(request); @@ -1380,7 +1381,9 @@ public final UnaryCallable deleteEndpointCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deployModelAsync( - EndpointName endpoint, DeployedModel deployedModel, Map trafficSplit) { + @Nullable EndpointName endpoint, + DeployedModel deployedModel, + Map trafficSplit) { DeployModelRequest request = DeployModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1579,7 +1582,9 @@ public final UnaryCallable deployModelCallable() */ public final OperationFuture undeployModelAsync( - EndpointName endpoint, String deployedModelId, Map trafficSplit) { + @Nullable EndpointName endpoint, + String deployedModelId, + Map trafficSplit) { UndeployModelRequest request = UndeployModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1790,7 +1795,7 @@ public final UnaryCallable undeployModelCallabl */ public final OperationFuture mutateDeployedModelAsync( - EndpointName endpoint, DeployedModel deployedModel, FieldMask updateMask) { + @Nullable EndpointName endpoint, DeployedModel deployedModel, FieldMask updateMask) { MutateDeployedModelRequest request = MutateDeployedModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -2393,8 +2398,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -2404,14 +2409,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2425,7 +2430,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2435,7 +2441,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -2469,8 +2475,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2480,14 +2486,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2501,7 +2507,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2511,7 +2518,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java index f69532f10384..4e7a819bff42 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EndpointServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceClient.java index 3920deb3606c..c882209b18e2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceClient.java @@ -41,6 +41,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. /** @@ -208,7 +209,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EvaluationServiceClient implements BackgroundResource { - private final EvaluationServiceSettings settings; + private final @Nullable EvaluationServiceSettings settings; private final EvaluationServiceStub stub; /** Constructs an instance of EvaluationServiceClient with default settings. */ @@ -248,7 +249,7 @@ protected EvaluationServiceClient(EvaluationServiceStub stub) { this.stub = stub; } - public final EvaluationServiceSettings getSettings() { + public final @Nullable EvaluationServiceSettings getSettings() { return settings; } @@ -738,8 +739,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -749,14 +750,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -770,7 +771,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -780,7 +782,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceSettings.java index 1af21f8dd726..73920e8443de 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EvaluationServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EvaluationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java index 824638ff5a75..4a6149044955 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClient.java @@ -47,6 +47,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. /** @@ -454,7 +455,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeatureOnlineStoreAdminServiceClient implements BackgroundResource { - private final FeatureOnlineStoreAdminServiceSettings settings; + private final @Nullable FeatureOnlineStoreAdminServiceSettings settings; private final FeatureOnlineStoreAdminServiceStub stub; private final OperationsClient operationsClient; @@ -502,7 +503,7 @@ protected FeatureOnlineStoreAdminServiceClient(FeatureOnlineStoreAdminServiceStu this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeatureOnlineStoreAdminServiceSettings getSettings() { + public final @Nullable FeatureOnlineStoreAdminServiceSettings getSettings() { return settings; } @@ -554,7 +555,9 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeatureOnlineStoreAsync( - LocationName parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) { + @Nullable LocationName parent, + FeatureOnlineStore featureOnlineStore, + String featureOnlineStoreId) { CreateFeatureOnlineStoreRequest request = CreateFeatureOnlineStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -738,7 +741,7 @@ public final OperationsClient getOperationsClient() { * @param name Required. The name of the FeatureOnlineStore resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureOnlineStore getFeatureOnlineStore(FeatureOnlineStoreName name) { + public final FeatureOnlineStore getFeatureOnlineStore(@Nullable FeatureOnlineStoreName name) { GetFeatureOnlineStoreRequest request = GetFeatureOnlineStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -866,7 +869,8 @@ public final FeatureOnlineStore getFeatureOnlineStore(GetFeatureOnlineStoreReque * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(LocationName parent) { + public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores( + @Nullable LocationName parent) { ListFeatureOnlineStoresRequest request = ListFeatureOnlineStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1200,7 +1204,7 @@ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureOnlineStoreAsync( - FeatureOnlineStoreName name, boolean force) { + @Nullable FeatureOnlineStoreName name, boolean force) { DeleteFeatureOnlineStoreRequest request = DeleteFeatureOnlineStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1385,7 +1389,7 @@ public final OperationFuture deleteFeatureOnline */ public final OperationFuture createFeatureViewAsync( - FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) { + @Nullable FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) { CreateFeatureViewRequest request = CreateFeatureViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1574,7 +1578,7 @@ public final UnaryCallable createFeatureVie * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureView getFeatureView(FeatureViewName name) { + public final FeatureView getFeatureView(@Nullable FeatureViewName name) { GetFeatureViewRequest request = GetFeatureViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeatureView(request); @@ -1702,7 +1706,8 @@ public final UnaryCallable getFeatureViewCal * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureViewsPagedResponse listFeatureViews(FeatureOnlineStoreName parent) { + public final ListFeatureViewsPagedResponse listFeatureViews( + @Nullable FeatureOnlineStoreName parent) { ListFeatureViewsRequest request = ListFeatureViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2034,7 +2039,7 @@ public final UnaryCallable updateFeatureVie * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureViewAsync( - FeatureViewName name) { + @Nullable FeatureViewName name) { DeleteFeatureViewRequest request = DeleteFeatureViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2197,7 +2202,7 @@ public final UnaryCallable deleteFeatureVie * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SyncFeatureViewResponse syncFeatureView(FeatureViewName featureView) { + public final SyncFeatureViewResponse syncFeatureView(@Nullable FeatureViewName featureView) { SyncFeatureViewRequest request = SyncFeatureViewRequest.newBuilder() .setFeatureView(featureView == null ? null : featureView.toString()) @@ -2328,7 +2333,7 @@ public final SyncFeatureViewResponse syncFeatureView(SyncFeatureViewRequest requ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureViewSync getFeatureViewSync(FeatureViewSyncName name) { + public final FeatureViewSync getFeatureViewSync(@Nullable FeatureViewSyncName name) { GetFeatureViewSyncRequest request = GetFeatureViewSyncRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2460,7 +2465,8 @@ public final FeatureViewSync getFeatureViewSync(GetFeatureViewSyncRequest reques * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(FeatureViewName parent) { + public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs( + @Nullable FeatureViewName parent) { ListFeatureViewSyncsRequest request = ListFeatureViewSyncsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3074,10 +3080,11 @@ public static class ListFeatureOnlineStoresPage ListFeatureOnlineStoresPage> { private ListFeatureOnlineStoresPage( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, - ListFeatureOnlineStoresResponse response) { + @Nullable ListFeatureOnlineStoresResponse response) { super(context, response); } @@ -3087,16 +3094,18 @@ private static ListFeatureOnlineStoresPage createEmptyPage() { @Override protected ListFeatureOnlineStoresPage createPage( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, - ListFeatureOnlineStoresResponse response) { + @Nullable ListFeatureOnlineStoresResponse response) { return new ListFeatureOnlineStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, ApiFuture futureResponse) { @@ -3113,7 +3122,7 @@ public static class ListFeatureOnlineStoresFixedSizeCollection ListFeatureOnlineStoresFixedSizeCollection> { private ListFeatureOnlineStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3123,7 +3132,7 @@ private static ListFeatureOnlineStoresFixedSizeCollection createEmptyCollection( @Override protected ListFeatureOnlineStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureOnlineStoresFixedSizeCollection(pages, collectionSize); } } @@ -3157,8 +3166,9 @@ public static class ListFeatureViewsPage ListFeatureViewsRequest, ListFeatureViewsResponse, FeatureView, ListFeatureViewsPage> { private ListFeatureViewsPage( - PageContext context, - ListFeatureViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureViewsResponse response) { super(context, response); } @@ -3168,14 +3178,16 @@ private static ListFeatureViewsPage createEmptyPage() { @Override protected ListFeatureViewsPage createPage( - PageContext context, - ListFeatureViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureViewsResponse response) { return new ListFeatureViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3190,7 +3202,7 @@ public static class ListFeatureViewsFixedSizeCollection ListFeatureViewsFixedSizeCollection> { private ListFeatureViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3200,7 +3212,7 @@ private static ListFeatureViewsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureViewsFixedSizeCollection(pages, collectionSize); } } @@ -3238,9 +3250,10 @@ public static class ListFeatureViewSyncsPage ListFeatureViewSyncsPage> { private ListFeatureViewSyncsPage( - PageContext + @Nullable + PageContext context, - ListFeatureViewSyncsResponse response) { + @Nullable ListFeatureViewSyncsResponse response) { super(context, response); } @@ -3250,15 +3263,17 @@ private static ListFeatureViewSyncsPage createEmptyPage() { @Override protected ListFeatureViewSyncsPage createPage( - PageContext + @Nullable + PageContext context, - ListFeatureViewSyncsResponse response) { + @Nullable ListFeatureViewSyncsResponse response) { return new ListFeatureViewSyncsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3274,7 +3289,7 @@ public static class ListFeatureViewSyncsFixedSizeCollection ListFeatureViewSyncsFixedSizeCollection> { private ListFeatureViewSyncsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3284,7 +3299,7 @@ private static ListFeatureViewSyncsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureViewSyncsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureViewSyncsFixedSizeCollection(pages, collectionSize); } } @@ -3318,8 +3333,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3329,14 +3344,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3350,7 +3365,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3360,7 +3376,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceSettings.java index b9c04f5de114..2c39a877a0aa 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -347,7 +348,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -368,7 +369,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureOnlineStoreAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceClient.java index 320e249a8a05..e4f5ee5242dc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceClient.java @@ -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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeatureOnlineStoreServiceClient implements BackgroundResource { - private final FeatureOnlineStoreServiceSettings settings; + private final @Nullable FeatureOnlineStoreServiceSettings settings; private final FeatureOnlineStoreServiceStub stub; /** Constructs an instance of FeatureOnlineStoreServiceClient with default settings. */ @@ -295,7 +296,7 @@ protected FeatureOnlineStoreServiceClient(FeatureOnlineStoreServiceStub stub) { this.stub = stub; } - public final FeatureOnlineStoreServiceSettings getSettings() { + public final @Nullable FeatureOnlineStoreServiceSettings getSettings() { return settings; } @@ -331,7 +332,7 @@ public FeatureOnlineStoreServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchFeatureValuesResponse fetchFeatureValues( - FeatureViewName featureView, FeatureViewDataKey dataKey) { + @Nullable FeatureViewName featureView, FeatureViewDataKey dataKey) { FetchFeatureValuesRequest request = FetchFeatureValuesRequest.newBuilder() .setFeatureView(featureView == null ? null : featureView.toString()) @@ -1068,8 +1069,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1079,14 +1080,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1100,7 +1101,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1110,7 +1112,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceSettings.java index 6df8d0879d2d..092fa54ae97b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureOnlineStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java index 921c679661a7..4c665f0fd725 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java @@ -47,6 +47,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. /** @@ -414,7 +415,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeatureRegistryServiceClient implements BackgroundResource { - private final FeatureRegistryServiceSettings settings; + private final @Nullable FeatureRegistryServiceSettings settings; private final FeatureRegistryServiceStub stub; private final OperationsClient operationsClient; @@ -458,7 +459,7 @@ protected FeatureRegistryServiceClient(FeatureRegistryServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeatureRegistryServiceSettings getSettings() { + public final @Nullable FeatureRegistryServiceSettings getSettings() { return settings; } @@ -510,7 +511,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeatureGroupAsync( - LocationName parent, FeatureGroup featureGroup, String featureGroupId) { + @Nullable LocationName parent, FeatureGroup featureGroup, String featureGroupId) { CreateFeatureGroupRequest request = CreateFeatureGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -683,7 +684,7 @@ public final UnaryCallable createFeatureGr * @param name Required. The name of the FeatureGroup resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureGroup getFeatureGroup(FeatureGroupName name) { + public final FeatureGroup getFeatureGroup(@Nullable FeatureGroupName name) { GetFeatureGroupRequest request = GetFeatureGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeatureGroup(request); @@ -800,7 +801,7 @@ public final UnaryCallable getFeatureGroup * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureGroupsPagedResponse listFeatureGroups(LocationName parent) { + public final ListFeatureGroupsPagedResponse listFeatureGroups(@Nullable LocationName parent) { ListFeatureGroupsRequest request = ListFeatureGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1118,7 +1119,7 @@ public final UnaryCallable updateFeatureGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureGroupAsync( - FeatureGroupName name, boolean force) { + @Nullable FeatureGroupName name, boolean force) { DeleteFeatureGroupRequest request = DeleteFeatureGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1289,7 +1290,7 @@ public final UnaryCallable deleteFeatureGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature, String featureId) { + @Nullable EntityTypeName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1335,7 +1336,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature, String featureId) { + @Nullable FeatureGroupName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1527,7 +1528,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(EntityTypeName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable EntityTypeName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1568,7 +1570,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(FeatureGroupName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable FeatureGroupName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1746,7 +1749,7 @@ public final UnaryCallable batchCreateFea * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { + public final Feature getFeature(@Nullable FeatureName name) { GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeature(request); @@ -1878,7 +1881,7 @@ public final UnaryCallable getFeatureCallable() { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable EntityTypeName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1914,7 +1917,7 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(FeatureGroupName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable FeatureGroupName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2243,7 +2246,7 @@ public final UnaryCallable updateFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureAsync( - FeatureName name) { + @Nullable FeatureName name) { DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFeatureAsync(request); @@ -2821,8 +2824,9 @@ public static class ListFeatureGroupsPage ListFeatureGroupsPage> { private ListFeatureGroupsPage( - PageContext context, - ListFeatureGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureGroupsResponse response) { super(context, response); } @@ -2832,14 +2836,16 @@ private static ListFeatureGroupsPage createEmptyPage() { @Override protected ListFeatureGroupsPage createPage( - PageContext context, - ListFeatureGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureGroupsResponse response) { return new ListFeatureGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2854,7 +2860,7 @@ public static class ListFeatureGroupsFixedSizeCollection ListFeatureGroupsFixedSizeCollection> { private ListFeatureGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2864,7 +2870,7 @@ private static ListFeatureGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureGroupsFixedSizeCollection(pages, collectionSize); } } @@ -2897,8 +2903,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -2908,14 +2914,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2929,7 +2935,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2939,7 +2946,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -2973,8 +2980,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2984,14 +2991,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3005,7 +3012,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3015,7 +3023,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceSettings.java index decb2faa806d..74747578115c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -333,7 +334,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureRegistryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java index 145f1c1312e9..e9c708c8f1de 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java @@ -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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeaturestoreOnlineServingServiceClient implements BackgroundResource { - private final FeaturestoreOnlineServingServiceSettings settings; + private final @Nullable FeaturestoreOnlineServingServiceSettings settings; private final FeaturestoreOnlineServingServiceStub stub; /** Constructs an instance of FeaturestoreOnlineServingServiceClient with default settings. */ @@ -289,7 +290,7 @@ protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServic this.stub = stub; } - public final FeaturestoreOnlineServingServiceSettings getSettings() { + public final @Nullable FeaturestoreOnlineServingServiceSettings getSettings() { return settings; } @@ -326,7 +327,7 @@ public FeaturestoreOnlineServingServiceStub getStub() { * EntityType ID could be `user`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityType) { + public final ReadFeatureValuesResponse readFeatureValues(@Nullable EntityTypeName entityType) { ReadFeatureValuesRequest request = ReadFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -510,7 +511,7 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteFeatureValuesResponse writeFeatureValues( - EntityTypeName entityType, List payloads) { + @Nullable EntityTypeName entityType, List payloads) { WriteFeatureValuesRequest request = WriteFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -1075,8 +1076,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1086,14 +1087,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1107,7 +1108,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1117,7 +1119,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java index 3635f196820e..dccdd9408d8c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeaturestoreOnlineServingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java index a7856b0c2029..c3f3455ac97b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java @@ -47,6 +47,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. /** @@ -629,7 +630,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeaturestoreServiceClient implements BackgroundResource { - private final FeaturestoreServiceSettings settings; + private final @Nullable FeaturestoreServiceSettings settings; private final FeaturestoreServiceStub stub; private final OperationsClient operationsClient; @@ -672,7 +673,7 @@ protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeaturestoreServiceSettings getSettings() { + public final @Nullable FeaturestoreServiceSettings getSettings() { return settings; } @@ -714,7 +715,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createFeaturestoreAsync(LocationName parent, Featurestore featurestore) { + createFeaturestoreAsync(@Nullable LocationName parent, Featurestore featurestore) { CreateFeaturestoreRequest request = CreateFeaturestoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -793,7 +794,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeaturestoreAsync( - LocationName parent, Featurestore featurestore, String featurestoreId) { + @Nullable LocationName parent, Featurestore featurestore, String featurestoreId) { CreateFeaturestoreRequest request = CreateFeaturestoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -961,7 +962,7 @@ public final UnaryCallable createFeaturest * @param name Required. The name of the Featurestore resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Featurestore getFeaturestore(FeaturestoreName name) { + public final Featurestore getFeaturestore(@Nullable FeaturestoreName name) { GetFeaturestoreRequest request = GetFeaturestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeaturestore(request); @@ -1074,7 +1075,7 @@ public final UnaryCallable getFeaturestore * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturestoresPagedResponse listFeaturestores(LocationName parent) { + public final ListFeaturestoresPagedResponse listFeaturestores(@Nullable LocationName parent) { ListFeaturestoresRequest request = ListFeaturestoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1385,7 +1386,7 @@ public final UnaryCallable updateFeaturest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeaturestoreAsync( - FeaturestoreName name) { + @Nullable FeaturestoreName name) { DeleteFeaturestoreRequest request = DeleteFeaturestoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1450,7 +1451,7 @@ public final OperationFuture deleteFeaturestoreA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeaturestoreAsync( - FeaturestoreName name, boolean force) { + @Nullable FeaturestoreName name, boolean force) { DeleteFeaturestoreRequest request = DeleteFeaturestoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1610,7 +1611,7 @@ public final UnaryCallable deleteFeaturest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntityTypeAsync( - FeaturestoreName parent, EntityType entityType) { + @Nullable FeaturestoreName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1683,7 +1684,7 @@ public final OperationFuture crea * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntityTypeAsync( - FeaturestoreName parent, EntityType entityType, String entityTypeId) { + @Nullable FeaturestoreName parent, EntityType entityType, String entityTypeId) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1854,7 +1855,7 @@ public final UnaryCallable createEntityTypeC * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -1973,7 +1974,7 @@ public final UnaryCallable getEntityTypeCallab * `projects/{project}/locations/{location}/featurestores/{featurestore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable FeaturestoreName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2256,7 +2257,7 @@ public final UnaryCallable updateEntityType * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntityTypeAsync( - EntityTypeName name) { + @Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntityTypeAsync(request); @@ -2320,7 +2321,7 @@ public final OperationFuture deleteEntityTypeAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntityTypeAsync( - EntityTypeName name, boolean force) { + @Nullable EntityTypeName name, boolean force) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2491,7 +2492,7 @@ public final UnaryCallable deleteEntityTypeC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature) { + @Nullable EntityTypeName parent, Feature feature) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2528,7 +2529,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature) { + @Nullable FeatureGroupName parent, Feature feature) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2609,7 +2610,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature, String featureId) { + @Nullable EntityTypeName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2654,7 +2655,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature, String featureId) { + @Nullable FeatureGroupName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2841,7 +2842,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(EntityTypeName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable EntityTypeName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2881,7 +2883,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(FeatureGroupName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable FeatureGroupName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3054,7 +3057,7 @@ public final UnaryCallable batchCreateFea * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { + public final Feature getFeature(@Nullable FeatureName name) { GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeature(request); @@ -3182,7 +3185,7 @@ public final UnaryCallable getFeatureCallable() { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable EntityTypeName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3217,7 +3220,7 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(FeatureGroupName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable FeatureGroupName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3505,7 +3508,7 @@ public final UnaryCallable updateFeatureCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureAsync( - FeatureName name) { + @Nullable FeatureName name) { DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFeatureAsync(request); @@ -3679,7 +3682,7 @@ public final UnaryCallable deleteFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importFeatureValuesAsync(EntityTypeName entityType) { + importFeatureValuesAsync(@Nullable EntityTypeName entityType) { ImportFeatureValuesRequest request = ImportFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -3925,7 +3928,7 @@ public final UnaryCallable importFeatureV */ public final OperationFuture< BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> - batchReadFeatureValuesAsync(FeaturestoreName featurestore) { + batchReadFeatureValuesAsync(@Nullable FeaturestoreName featurestore) { BatchReadFeatureValuesRequest request = BatchReadFeatureValuesRequest.newBuilder() .setFeaturestore(featurestore == null ? null : featurestore.toString()) @@ -4120,7 +4123,7 @@ public final UnaryCallable importFeatureV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportFeatureValuesAsync(EntityTypeName entityType) { + exportFeatureValuesAsync(@Nullable EntityTypeName entityType) { ExportFeatureValuesRequest request = ExportFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -4300,7 +4303,7 @@ public final UnaryCallable exportFeatureV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteFeatureValuesAsync(EntityTypeName entityType) { + deleteFeatureValuesAsync(@Nullable EntityTypeName entityType) { DeleteFeatureValuesRequest request = DeleteFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -4493,7 +4496,7 @@ public final UnaryCallable deleteFeatureV * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFeaturesPagedResponse searchFeatures(LocationName location) { + public final SearchFeaturesPagedResponse searchFeatures(@Nullable LocationName location) { SearchFeaturesRequest request = SearchFeaturesRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -4608,7 +4611,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFeaturesPagedResponse searchFeatures(LocationName location, String query) { + public final SearchFeaturesPagedResponse searchFeatures( + @Nullable LocationName location, String query) { SearchFeaturesRequest request = SearchFeaturesRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -5238,8 +5242,9 @@ public static class ListFeaturestoresPage ListFeaturestoresPage> { private ListFeaturestoresPage( - PageContext context, - ListFeaturestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListFeaturestoresResponse response) { super(context, response); } @@ -5249,14 +5254,16 @@ private static ListFeaturestoresPage createEmptyPage() { @Override protected ListFeaturestoresPage createPage( - PageContext context, - ListFeaturestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListFeaturestoresResponse response) { return new ListFeaturestoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5271,7 +5278,7 @@ public static class ListFeaturestoresFixedSizeCollection ListFeaturestoresFixedSizeCollection> { private ListFeaturestoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5281,7 +5288,7 @@ private static ListFeaturestoresFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturestoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturestoresFixedSizeCollection(pages, collectionSize); } } @@ -5315,8 +5322,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -5326,14 +5333,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5348,7 +5355,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5358,7 +5365,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -5391,8 +5398,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -5402,14 +5409,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5423,7 +5430,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5433,7 +5441,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -5467,8 +5475,8 @@ public static class SearchFeaturesPage SearchFeaturesRequest, SearchFeaturesResponse, Feature, SearchFeaturesPage> { private SearchFeaturesPage( - PageContext context, - SearchFeaturesResponse response) { + @Nullable PageContext context, + @Nullable SearchFeaturesResponse response) { super(context, response); } @@ -5478,14 +5486,14 @@ private static SearchFeaturesPage createEmptyPage() { @Override protected SearchFeaturesPage createPage( - PageContext context, - SearchFeaturesResponse response) { + @Nullable PageContext context, + @Nullable SearchFeaturesResponse response) { return new SearchFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5499,7 +5507,8 @@ public static class SearchFeaturesFixedSizeCollection SearchFeaturesPage, SearchFeaturesFixedSizeCollection> { - private SearchFeaturesFixedSizeCollection(List pages, int collectionSize) { + private SearchFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5509,7 +5518,7 @@ private static SearchFeaturesFixedSizeCollection createEmptyCollection() { @Override protected SearchFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -5543,8 +5552,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5554,14 +5563,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5575,7 +5584,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5585,7 +5595,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java index b4101b6df3b2..f5c659c036a0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -415,7 +416,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -435,7 +436,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeaturestoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java index 4106348e052b..4585e4fc8e4a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java @@ -43,6 +43,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. /** @@ -289,7 +290,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GenAiCacheServiceClient implements BackgroundResource { - private final GenAiCacheServiceSettings settings; + private final @Nullable GenAiCacheServiceSettings settings; private final GenAiCacheServiceStub stub; /** Constructs an instance of GenAiCacheServiceClient with default settings. */ @@ -329,7 +330,7 @@ protected GenAiCacheServiceClient(GenAiCacheServiceStub stub) { this.stub = stub; } - public final GenAiCacheServiceSettings getSettings() { + public final @Nullable GenAiCacheServiceSettings getSettings() { return settings; } @@ -361,7 +362,8 @@ public GenAiCacheServiceStub getStub() { * @param cachedContent Required. The cached content to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CachedContent createCachedContent(LocationName parent, CachedContent cachedContent) { + public final CachedContent createCachedContent( + @Nullable LocationName parent, CachedContent cachedContent) { CreateCachedContentRequest request = CreateCachedContentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -485,7 +487,7 @@ public final CachedContent createCachedContent(CreateCachedContentRequest reques * @param name Required. The resource name referring to the cached content * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CachedContent getCachedContent(CachedContentName name) { + public final CachedContent getCachedContent(@Nullable CachedContentName name) { GetCachedContentRequest request = GetCachedContentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCachedContent(request); @@ -689,7 +691,7 @@ public final CachedContent updateCachedContent(UpdateCachedContentRequest reques * @param name Required. The resource name referring to the cached content * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCachedContent(CachedContentName name) { + public final void deleteCachedContent(@Nullable CachedContentName name) { DeleteCachedContentRequest request = DeleteCachedContentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -806,7 +808,7 @@ public final UnaryCallable deleteCachedConten * @param parent Required. The parent, which owns this collection of cached contents. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCachedContentsPagedResponse listCachedContents(LocationName parent) { + public final ListCachedContentsPagedResponse listCachedContents(@Nullable LocationName parent) { ListCachedContentsRequest request = ListCachedContentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1379,8 +1381,9 @@ public static class ListCachedContentsPage ListCachedContentsPage> { private ListCachedContentsPage( - PageContext context, - ListCachedContentsResponse response) { + @Nullable PageContext + context, + @Nullable ListCachedContentsResponse response) { super(context, response); } @@ -1390,14 +1393,16 @@ private static ListCachedContentsPage createEmptyPage() { @Override protected ListCachedContentsPage createPage( - PageContext context, - ListCachedContentsResponse response) { + @Nullable PageContext + context, + @Nullable ListCachedContentsResponse response) { return new ListCachedContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1412,7 +1417,7 @@ public static class ListCachedContentsFixedSizeCollection ListCachedContentsFixedSizeCollection> { private ListCachedContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1422,7 +1427,7 @@ private static ListCachedContentsFixedSizeCollection createEmptyCollection() { @Override protected ListCachedContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCachedContentsFixedSizeCollection(pages, collectionSize); } } @@ -1456,8 +1461,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1467,14 +1472,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1488,7 +1493,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1498,7 +1504,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java index e85e2213987e..a8a5b3d5415b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java @@ -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. /** @@ -199,7 +200,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenAiCacheServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClient.java index f7dda7b6c83f..db66ce2faded 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClient.java @@ -46,6 +46,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. /** @@ -294,7 +295,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GenAiTuningServiceClient implements BackgroundResource { - private final GenAiTuningServiceSettings settings; + private final @Nullable GenAiTuningServiceSettings settings; private final GenAiTuningServiceStub stub; private final OperationsClient operationsClient; @@ -337,7 +338,7 @@ protected GenAiTuningServiceClient(GenAiTuningServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final GenAiTuningServiceSettings getSettings() { + public final @Nullable GenAiTuningServiceSettings getSettings() { return settings; } @@ -377,7 +378,7 @@ public final OperationsClient getOperationsClient() { * @param tuningJob Required. The TuningJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TuningJob createTuningJob(LocationName parent, TuningJob tuningJob) { + public final TuningJob createTuningJob(@Nullable LocationName parent, TuningJob tuningJob) { CreateTuningJobRequest request = CreateTuningJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -496,7 +497,7 @@ public final UnaryCallable createTuningJobCal * `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TuningJob getTuningJob(TuningJobName name) { + public final TuningJob getTuningJob(@Nullable TuningJobName name) { GetTuningJobRequest request = GetTuningJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTuningJob(request); @@ -609,7 +610,7 @@ public final UnaryCallable getTuningJobCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTuningJobsPagedResponse listTuningJobs(LocationName parent) { + public final ListTuningJobsPagedResponse listTuningJobs(@Nullable LocationName parent) { ListTuningJobsRequest request = ListTuningJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -783,7 +784,7 @@ public final ListTuningJobsPagedResponse listTuningJobs(ListTuningJobsRequest re * `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelTuningJob(TuningJobName name) { + public final void cancelTuningJob(@Nullable TuningJobName name) { CancelTuningJobRequest request = CancelTuningJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelTuningJob(request); @@ -919,7 +920,7 @@ public final UnaryCallable cancelTuningJobCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rebaseTunedModelAsync( - LocationName parent, TunedModelRef tunedModelRef) { + @Nullable LocationName parent, TunedModelRef tunedModelRef) { RebaseTunedModelRequest request = RebaseTunedModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1489,8 +1490,8 @@ public static class ListTuningJobsPage ListTuningJobsRequest, ListTuningJobsResponse, TuningJob, ListTuningJobsPage> { private ListTuningJobsPage( - PageContext context, - ListTuningJobsResponse response) { + @Nullable PageContext context, + @Nullable ListTuningJobsResponse response) { super(context, response); } @@ -1500,14 +1501,14 @@ private static ListTuningJobsPage createEmptyPage() { @Override protected ListTuningJobsPage createPage( - PageContext context, - ListTuningJobsResponse response) { + @Nullable PageContext context, + @Nullable ListTuningJobsResponse response) { return new ListTuningJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1521,7 +1522,8 @@ public static class ListTuningJobsFixedSizeCollection ListTuningJobsPage, ListTuningJobsFixedSizeCollection> { - private ListTuningJobsFixedSizeCollection(List pages, int collectionSize) { + private ListTuningJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1531,7 +1533,7 @@ private static ListTuningJobsFixedSizeCollection createEmptyCollection() { @Override protected ListTuningJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTuningJobsFixedSizeCollection(pages, collectionSize); } } @@ -1565,8 +1567,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1576,14 +1578,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1597,7 +1599,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1607,7 +1610,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceSettings.java index c36ca3e05197..3e8aefd61bfe 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenAiTuningServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java index 4b2e7246b871..9b4a7fa04686 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java @@ -47,6 +47,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. /** @@ -355,7 +356,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IndexEndpointServiceClient implements BackgroundResource { - private final IndexEndpointServiceSettings settings; + private final @Nullable IndexEndpointServiceSettings settings; private final IndexEndpointServiceStub stub; private final OperationsClient operationsClient; @@ -398,7 +399,7 @@ protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final IndexEndpointServiceSettings getSettings() { + public final @Nullable IndexEndpointServiceSettings getSettings() { return settings; } @@ -441,7 +442,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createIndexEndpointAsync(LocationName parent, IndexEndpoint indexEndpoint) { + createIndexEndpointAsync(@Nullable LocationName parent, IndexEndpoint indexEndpoint) { CreateIndexEndpointRequest request = CreateIndexEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -602,7 +603,7 @@ public final UnaryCallable createIndexEnd * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) { + public final IndexEndpoint getIndexEndpoint(@Nullable IndexEndpointName name) { GetIndexEndpointRequest request = GetIndexEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndexEndpoint(request); @@ -722,7 +723,7 @@ public final UnaryCallable getIndexEndpo * IndexEndpoints. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName parent) { + public final ListIndexEndpointsPagedResponse listIndexEndpoints(@Nullable LocationName parent) { ListIndexEndpointsRequest request = ListIndexEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -999,7 +1000,7 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteIndexEndpointAsync( - IndexEndpointName name) { + @Nullable IndexEndpointName name) { DeleteIndexEndpointRequest request = DeleteIndexEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1158,7 +1159,7 @@ public final UnaryCallable deleteIndexEnd * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deployIndexAsync( - IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { + @Nullable IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { DeployIndexRequest request = DeployIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -1334,7 +1335,7 @@ public final UnaryCallable deployIndexCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployIndexAsync(IndexEndpointName indexEndpoint, String deployedIndexId) { + undeployIndexAsync(@Nullable IndexEndpointName indexEndpoint, String deployedIndexId) { UndeployIndexRequest request = UndeployIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -1513,7 +1514,8 @@ public final UnaryCallable undeployIndexCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - mutateDeployedIndexAsync(IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { + mutateDeployedIndexAsync( + @Nullable IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { MutateDeployedIndexRequest request = MutateDeployedIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -2103,8 +2105,9 @@ public static class ListIndexEndpointsPage ListIndexEndpointsPage> { private ListIndexEndpointsPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { super(context, response); } @@ -2114,14 +2117,16 @@ private static ListIndexEndpointsPage createEmptyPage() { @Override protected ListIndexEndpointsPage createPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { return new ListIndexEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2136,7 +2141,7 @@ public static class ListIndexEndpointsFixedSizeCollection ListIndexEndpointsFixedSizeCollection> { private ListIndexEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2146,7 +2151,7 @@ private static ListIndexEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListIndexEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -2180,8 +2185,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2191,14 +2196,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2212,7 +2217,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2222,7 +2228,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java index 5fbaa34eb4b6..eeaf087ada0a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -302,7 +303,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IndexEndpointServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java index 2037e889e402..343e000163e5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java @@ -47,6 +47,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. /** @@ -320,7 +321,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IndexServiceClient implements BackgroundResource { - private final IndexServiceSettings settings; + private final @Nullable IndexServiceSettings settings; private final IndexServiceStub stub; private final OperationsClient operationsClient; @@ -362,7 +363,7 @@ protected IndexServiceClient(IndexServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final IndexServiceSettings getSettings() { + public final @Nullable IndexServiceSettings getSettings() { return settings; } @@ -403,7 +404,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - LocationName parent, Index index) { + @Nullable LocationName parent, Index index) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -553,7 +554,7 @@ public final UnaryCallable createIndexCallable() * `projects/{project}/locations/{location}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -665,7 +666,7 @@ public final UnaryCallable getIndexCallable() { * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(LocationName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable LocationName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -952,7 +953,8 @@ public final UnaryCallable updateIndexCallable() * `projects/{project}/locations/{location}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIndexAsync(IndexName name) { + public final OperationFuture deleteIndexAsync( + @Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIndexAsync(request); @@ -1614,8 +1616,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -1625,14 +1627,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1646,7 +1648,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1656,7 +1659,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -1690,8 +1693,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1701,14 +1704,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1722,7 +1725,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1732,7 +1736,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java index deb018da3541..e6dd4d0ff34e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -272,7 +273,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IndexServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java index 2aead9cad666..95e12bd5501b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java @@ -47,6 +47,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. /** @@ -875,7 +876,7 @@ @NullMarked @Generated("by gapic-generator-java") public class JobServiceClient implements BackgroundResource { - private final JobServiceSettings settings; + private final @Nullable JobServiceSettings settings; private final JobServiceStub stub; private final OperationsClient operationsClient; @@ -916,7 +917,7 @@ protected JobServiceClient(JobServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final JobServiceSettings getSettings() { + public final @Nullable JobServiceSettings getSettings() { return settings; } @@ -956,7 +957,7 @@ public final OperationsClient getOperationsClient() { * @param customJob Required. The CustomJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomJob createCustomJob(LocationName parent, CustomJob customJob) { + public final CustomJob createCustomJob(@Nullable LocationName parent, CustomJob customJob) { CreateCustomJobRequest request = CreateCustomJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1074,7 +1075,7 @@ public final UnaryCallable createCustomJobCal * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomJob getCustomJob(CustomJobName name) { + public final CustomJob getCustomJob(@Nullable CustomJobName name) { GetCustomJobRequest request = GetCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomJob(request); @@ -1186,7 +1187,7 @@ public final UnaryCallable getCustomJobCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomJobsPagedResponse listCustomJobs(LocationName parent) { + public final ListCustomJobsPagedResponse listCustomJobs(@Nullable LocationName parent) { ListCustomJobsRequest request = ListCustomJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1356,7 +1357,7 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCustomJobAsync( - CustomJobName name) { + @Nullable CustomJobName name) { DeleteCustomJobRequest request = DeleteCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCustomJobAsync(request); @@ -1503,7 +1504,7 @@ public final UnaryCallable deleteCustomJobCal * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelCustomJob(CustomJobName name) { + public final void cancelCustomJob(@Nullable CustomJobName name) { CancelCustomJobRequest request = CancelCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelCustomJob(request); @@ -1637,7 +1638,7 @@ public final UnaryCallable cancelCustomJobCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob createDataLabelingJob( - LocationName parent, DataLabelingJob dataLabelingJob) { + @Nullable LocationName parent, DataLabelingJob dataLabelingJob) { CreateDataLabelingJobRequest request = CreateDataLabelingJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1762,7 +1763,7 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { + public final DataLabelingJob getDataLabelingJob(@Nullable DataLabelingJobName name) { GetDataLabelingJobRequest request = GetDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1884,7 +1885,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(LocationName parent) { + public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( + @Nullable LocationName parent) { ListDataLabelingJobsRequest request = ListDataLabelingJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2061,7 +2063,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( - DataLabelingJobName name) { + @Nullable DataLabelingJobName name) { DeleteDataLabelingJobRequest request = DeleteDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2215,7 +2217,7 @@ public final OperationFuture deleteDataLabelingJ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelDataLabelingJob(DataLabelingJobName name) { + public final void cancelDataLabelingJob(@Nullable DataLabelingJobName name) { CancelDataLabelingJobRequest request = CancelDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2339,7 +2341,7 @@ public final UnaryCallable cancelDataLabeli * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob createHyperparameterTuningJob( - LocationName parent, HyperparameterTuningJob hyperparameterTuningJob) { + @Nullable LocationName parent, HyperparameterTuningJob hyperparameterTuningJob) { CreateHyperparameterTuningJobRequest request = CreateHyperparameterTuningJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2468,7 +2470,7 @@ public final HyperparameterTuningJob createHyperparameterTuningJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob( - HyperparameterTuningJobName name) { + @Nullable HyperparameterTuningJobName name) { GetHyperparameterTuningJobRequest request = GetHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2596,7 +2598,7 @@ public final HyperparameterTuningJob getHyperparameterTuningJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJobs( - LocationName parent) { + @Nullable LocationName parent) { ListHyperparameterTuningJobsRequest request = ListHyperparameterTuningJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2775,7 +2777,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( - HyperparameterTuningJobName name) { + @Nullable HyperparameterTuningJobName name) { DeleteHyperparameterTuningJobRequest request = DeleteHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2945,7 +2947,7 @@ public final OperationFuture deleteHyperparamete * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name) { + public final void cancelHyperparameterTuningJob(@Nullable HyperparameterTuningJobName name) { CancelHyperparameterTuningJobRequest request = CancelHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3103,7 +3105,7 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq * @param nasJob Required. The NasJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasJob createNasJob(LocationName parent, NasJob nasJob) { + public final NasJob createNasJob(@Nullable LocationName parent, NasJob nasJob) { CreateNasJobRequest request = CreateNasJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3221,7 +3223,7 @@ public final UnaryCallable createNasJobCallable() { * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasJob getNasJob(NasJobName name) { + public final NasJob getNasJob(@Nullable NasJobName name) { GetNasJobRequest request = GetNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNasJob(request); @@ -3333,7 +3335,7 @@ public final UnaryCallable getNasJobCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNasJobsPagedResponse listNasJobs(LocationName parent) { + public final ListNasJobsPagedResponse listNasJobs(@Nullable LocationName parent) { ListNasJobsRequest request = ListNasJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3500,7 +3502,8 @@ public final UnaryCallable listNasJobsC * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNasJobAsync(NasJobName name) { + public final OperationFuture deleteNasJobAsync( + @Nullable NasJobName name) { DeleteNasJobRequest request = DeleteNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNasJobAsync(request); @@ -3647,7 +3650,7 @@ public final UnaryCallable deleteNasJobCallable( * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelNasJob(NasJobName name) { + public final void cancelNasJob(@Nullable NasJobName name) { CancelNasJobRequest request = CancelNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelNasJob(request); @@ -3779,7 +3782,7 @@ public final UnaryCallable cancelNasJobCallable() { * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasTrialDetail getNasTrialDetail(NasTrialDetailName name) { + public final NasTrialDetail getNasTrialDetail(@Nullable NasTrialDetailName name) { GetNasTrialDetailRequest request = GetNasTrialDetailRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3902,7 +3905,7 @@ public final UnaryCallable getNasTrial * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNasTrialDetailsPagedResponse listNasTrialDetails(NasJobName parent) { + public final ListNasTrialDetailsPagedResponse listNasTrialDetails(@Nullable NasJobName parent) { ListNasTrialDetailsRequest request = ListNasTrialDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4073,7 +4076,7 @@ public final ListNasTrialDetailsPagedResponse listNasTrialDetails( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob createBatchPredictionJob( - LocationName parent, BatchPredictionJob batchPredictionJob) { + @Nullable LocationName parent, BatchPredictionJob batchPredictionJob) { CreateBatchPredictionJobRequest request = CreateBatchPredictionJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4203,7 +4206,7 @@ public final BatchPredictionJob createBatchPredictionJob( * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName name) { + public final BatchPredictionJob getBatchPredictionJob(@Nullable BatchPredictionJobName name) { GetBatchPredictionJobRequest request = GetBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4326,7 +4329,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(LocationName parent) { + public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( + @Nullable LocationName parent) { ListBatchPredictionJobsRequest request = ListBatchPredictionJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4502,7 +4506,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( - BatchPredictionJobName name) { + @Nullable BatchPredictionJobName name) { DeleteBatchPredictionJobRequest request = DeleteBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4665,7 +4669,7 @@ public final OperationFuture deleteBatchPredicti * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelBatchPredictionJob(BatchPredictionJobName name) { + public final void cancelBatchPredictionJob(@Nullable BatchPredictionJobName name) { CancelBatchPredictionJobRequest request = CancelBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4817,7 +4821,7 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( - LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { + @Nullable LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { CreateModelDeploymentMonitoringJobRequest request = CreateModelDeploymentMonitoringJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4960,7 +4964,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( */ public final SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse searchModelDeploymentMonitoringStatsAnomalies( - ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, String deployedModelId) { + @Nullable ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, + String deployedModelId) { SearchModelDeploymentMonitoringStatsAnomaliesRequest request = SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() .setModelDeploymentMonitoringJob( @@ -5191,7 +5196,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( - ModelDeploymentMonitoringJobName name) { + @Nullable ModelDeploymentMonitoringJobName name) { GetModelDeploymentMonitoringJobRequest request = GetModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5322,7 +5327,7 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentMonitoringJobs( - LocationName parent) { + @Nullable LocationName parent) { ListModelDeploymentMonitoringJobsRequest request = ListModelDeploymentMonitoringJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5658,7 +5663,7 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name) { + deleteModelDeploymentMonitoringJobAsync(@Nullable ModelDeploymentMonitoringJobName name) { DeleteModelDeploymentMonitoringJobRequest request = DeleteModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5824,7 +5829,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + public final void pauseModelDeploymentMonitoringJob( + @Nullable ModelDeploymentMonitoringJobName name) { PauseModelDeploymentMonitoringJobRequest request = PauseModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5961,7 +5967,8 @@ public final void pauseModelDeploymentMonitoringJob( * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + public final void resumeModelDeploymentMonitoringJob( + @Nullable ModelDeploymentMonitoringJobName name) { ResumeModelDeploymentMonitoringJobRequest request = ResumeModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6490,8 +6497,8 @@ public static class ListCustomJobsPage ListCustomJobsRequest, ListCustomJobsResponse, CustomJob, ListCustomJobsPage> { private ListCustomJobsPage( - PageContext context, - ListCustomJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCustomJobsResponse response) { super(context, response); } @@ -6501,14 +6508,14 @@ private static ListCustomJobsPage createEmptyPage() { @Override protected ListCustomJobsPage createPage( - PageContext context, - ListCustomJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCustomJobsResponse response) { return new ListCustomJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6522,7 +6529,8 @@ public static class ListCustomJobsFixedSizeCollection ListCustomJobsPage, ListCustomJobsFixedSizeCollection> { - private ListCustomJobsFixedSizeCollection(List pages, int collectionSize) { + private ListCustomJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6532,7 +6540,7 @@ private static ListCustomJobsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomJobsFixedSizeCollection(pages, collectionSize); } } @@ -6570,9 +6578,10 @@ public static class ListDataLabelingJobsPage ListDataLabelingJobsPage> { private ListDataLabelingJobsPage( - PageContext + @Nullable + PageContext context, - ListDataLabelingJobsResponse response) { + @Nullable ListDataLabelingJobsResponse response) { super(context, response); } @@ -6582,15 +6591,17 @@ private static ListDataLabelingJobsPage createEmptyPage() { @Override protected ListDataLabelingJobsPage createPage( - PageContext + @Nullable + PageContext context, - ListDataLabelingJobsResponse response) { + @Nullable ListDataLabelingJobsResponse response) { return new ListDataLabelingJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6606,7 +6617,7 @@ public static class ListDataLabelingJobsFixedSizeCollection ListDataLabelingJobsFixedSizeCollection> { private ListDataLabelingJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6616,7 +6627,7 @@ private static ListDataLabelingJobsFixedSizeCollection createEmptyCollection() { @Override protected ListDataLabelingJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataLabelingJobsFixedSizeCollection(pages, collectionSize); } } @@ -6658,12 +6669,13 @@ public static class ListHyperparameterTuningJobsPage ListHyperparameterTuningJobsPage> { private ListHyperparameterTuningJobsPage( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> context, - ListHyperparameterTuningJobsResponse response) { + @Nullable ListHyperparameterTuningJobsResponse response) { super(context, response); } @@ -6673,18 +6685,20 @@ private static ListHyperparameterTuningJobsPage createEmptyPage() { @Override protected ListHyperparameterTuningJobsPage createPage( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> context, - ListHyperparameterTuningJobsResponse response) { + @Nullable ListHyperparameterTuningJobsResponse response) { return new ListHyperparameterTuningJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> @@ -6703,7 +6717,7 @@ public static class ListHyperparameterTuningJobsFixedSizeCollection ListHyperparameterTuningJobsFixedSizeCollection> { private ListHyperparameterTuningJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6713,7 +6727,7 @@ private static ListHyperparameterTuningJobsFixedSizeCollection createEmptyCollec @Override protected ListHyperparameterTuningJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHyperparameterTuningJobsFixedSizeCollection(pages, collectionSize); } } @@ -6744,8 +6758,8 @@ public static class ListNasJobsPage extends AbstractPage { private ListNasJobsPage( - PageContext context, - ListNasJobsResponse response) { + @Nullable PageContext context, + @Nullable ListNasJobsResponse response) { super(context, response); } @@ -6755,14 +6769,14 @@ private static ListNasJobsPage createEmptyPage() { @Override protected ListNasJobsPage createPage( - PageContext context, - ListNasJobsResponse response) { + @Nullable PageContext context, + @Nullable ListNasJobsResponse response) { return new ListNasJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6776,7 +6790,8 @@ public static class ListNasJobsFixedSizeCollection ListNasJobsPage, ListNasJobsFixedSizeCollection> { - private ListNasJobsFixedSizeCollection(List pages, int collectionSize) { + private ListNasJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6786,7 +6801,7 @@ private static ListNasJobsFixedSizeCollection createEmptyCollection() { @Override protected ListNasJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNasJobsFixedSizeCollection(pages, collectionSize); } } @@ -6824,9 +6839,10 @@ public static class ListNasTrialDetailsPage ListNasTrialDetailsPage> { private ListNasTrialDetailsPage( - PageContext + @Nullable + PageContext context, - ListNasTrialDetailsResponse response) { + @Nullable ListNasTrialDetailsResponse response) { super(context, response); } @@ -6836,15 +6852,17 @@ private static ListNasTrialDetailsPage createEmptyPage() { @Override protected ListNasTrialDetailsPage createPage( - PageContext + @Nullable + PageContext context, - ListNasTrialDetailsResponse response) { + @Nullable ListNasTrialDetailsResponse response) { return new ListNasTrialDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6860,7 +6878,7 @@ public static class ListNasTrialDetailsFixedSizeCollection ListNasTrialDetailsFixedSizeCollection> { private ListNasTrialDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6870,7 +6888,7 @@ private static ListNasTrialDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListNasTrialDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNasTrialDetailsFixedSizeCollection(pages, collectionSize); } } @@ -6909,10 +6927,11 @@ public static class ListBatchPredictionJobsPage ListBatchPredictionJobsPage> { private ListBatchPredictionJobsPage( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, - ListBatchPredictionJobsResponse response) { + @Nullable ListBatchPredictionJobsResponse response) { super(context, response); } @@ -6922,16 +6941,18 @@ private static ListBatchPredictionJobsPage createEmptyPage() { @Override protected ListBatchPredictionJobsPage createPage( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, - ListBatchPredictionJobsResponse response) { + @Nullable ListBatchPredictionJobsResponse response) { return new ListBatchPredictionJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, ApiFuture futureResponse) { @@ -6948,7 +6969,7 @@ public static class ListBatchPredictionJobsFixedSizeCollection ListBatchPredictionJobsFixedSizeCollection> { private ListBatchPredictionJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6958,7 +6979,7 @@ private static ListBatchPredictionJobsFixedSizeCollection createEmptyCollection( @Override protected ListBatchPredictionJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBatchPredictionJobsFixedSizeCollection(pages, collectionSize); } } @@ -7003,12 +7024,13 @@ public static class SearchModelDeploymentMonitoringStatsAnomaliesPage SearchModelDeploymentMonitoringStatsAnomaliesPage> { private SearchModelDeploymentMonitoringStatsAnomaliesPage( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> context, - SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + @Nullable SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { super(context, response); } @@ -7018,18 +7040,20 @@ private static SearchModelDeploymentMonitoringStatsAnomaliesPage createEmptyPage @Override protected SearchModelDeploymentMonitoringStatsAnomaliesPage createPage( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> context, - SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + @Nullable SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { return new SearchModelDeploymentMonitoringStatsAnomaliesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> @@ -7048,7 +7072,8 @@ public static class SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollec SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection> { private SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -7059,7 +7084,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( @Override protected SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( pages, collectionSize); } @@ -7103,12 +7129,13 @@ public static class ListModelDeploymentMonitoringJobsPage ListModelDeploymentMonitoringJobsPage> { private ListModelDeploymentMonitoringJobsPage( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> context, - ListModelDeploymentMonitoringJobsResponse response) { + @Nullable ListModelDeploymentMonitoringJobsResponse response) { super(context, response); } @@ -7118,18 +7145,20 @@ private static ListModelDeploymentMonitoringJobsPage createEmptyPage() { @Override protected ListModelDeploymentMonitoringJobsPage createPage( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> context, - ListModelDeploymentMonitoringJobsResponse response) { + @Nullable ListModelDeploymentMonitoringJobsResponse response) { return new ListModelDeploymentMonitoringJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> @@ -7148,7 +7177,7 @@ public static class ListModelDeploymentMonitoringJobsFixedSizeCollection ListModelDeploymentMonitoringJobsFixedSizeCollection> { private ListModelDeploymentMonitoringJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7158,7 +7187,7 @@ private static ListModelDeploymentMonitoringJobsFixedSizeCollection createEmptyC @Override protected ListModelDeploymentMonitoringJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelDeploymentMonitoringJobsFixedSizeCollection(pages, collectionSize); } } @@ -7192,8 +7221,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7203,14 +7232,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7224,7 +7253,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7234,7 +7264,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java index 147aad1a740c..fe4169648d9c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -476,7 +477,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -496,7 +497,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java index 958c3eceb4ca..cdb7622a42af 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClient.java @@ -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. /** @@ -232,7 +233,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LlmUtilityServiceClient implements BackgroundResource { - private final LlmUtilityServiceSettings settings; + private final @Nullable LlmUtilityServiceSettings settings; private final LlmUtilityServiceStub stub; /** Constructs an instance of LlmUtilityServiceClient with default settings. */ @@ -272,7 +273,7 @@ protected LlmUtilityServiceClient(LlmUtilityServiceStub stub) { this.stub = stub; } - public final LlmUtilityServiceSettings getSettings() { + public final @Nullable LlmUtilityServiceSettings getSettings() { return settings; } @@ -306,7 +307,8 @@ public LlmUtilityServiceStub getStub() { * identical to the prediction schema of the underlying model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CountTokensResponse countTokens(EndpointName endpoint, List instances) { + public final CountTokensResponse countTokens( + @Nullable EndpointName endpoint, List instances) { CountTokensRequest request = CountTokensRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -449,7 +451,8 @@ public final UnaryCallable countTokensC * chat models, or Codey models. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeTokensResponse computeTokens(EndpointName endpoint, List instances) { + public final ComputeTokensResponse computeTokens( + @Nullable EndpointName endpoint, List instances) { ComputeTokensRequest request = ComputeTokensRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -985,8 +988,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -996,14 +999,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1017,7 +1020,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1027,7 +1031,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceSettings.java index 505663ce477e..7083b9690966 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -178,7 +179,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LlmUtilityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceClient.java index 3baafd9cda83..72be19bbf9e5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceClient.java @@ -41,6 +41,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. /** @@ -224,7 +225,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MatchServiceClient implements BackgroundResource { - private final MatchServiceSettings settings; + private final @Nullable MatchServiceSettings settings; private final MatchServiceStub stub; /** Constructs an instance of MatchServiceClient with default settings. */ @@ -263,7 +264,7 @@ protected MatchServiceClient(MatchServiceStub stub) { this.stub = stub; } - public final MatchServiceSettings getSettings() { + public final @Nullable MatchServiceSettings getSettings() { return settings; } @@ -823,8 +824,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -834,14 +835,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -855,7 +856,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -865,7 +867,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceSettings.java index ed3b91f585e9..8f5b2de050f4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MatchServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -178,7 +179,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MatchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java index b45ff36e8f03..750045f914a4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java @@ -47,6 +47,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. /** @@ -815,7 +816,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetadataServiceClient implements BackgroundResource { - private final MetadataServiceSettings settings; + private final @Nullable MetadataServiceSettings settings; private final MetadataServiceStub stub; private final OperationsClient operationsClient; @@ -858,7 +859,7 @@ protected MetadataServiceClient(MetadataServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MetadataServiceSettings getSettings() { + public final @Nullable MetadataServiceSettings getSettings() { return settings; } @@ -910,7 +911,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createMetadataStoreAsync( - LocationName parent, MetadataStore metadataStore, String metadataStoreId) { + @Nullable LocationName parent, MetadataStore metadataStore, String metadataStoreId) { CreateMetadataStoreRequest request = CreateMetadataStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1080,7 +1081,7 @@ public final UnaryCallable createMetadata * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataStore getMetadataStore(MetadataStoreName name) { + public final MetadataStore getMetadataStore(@Nullable MetadataStoreName name) { GetMetadataStoreRequest request = GetMetadataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadataStore(request); @@ -1195,7 +1196,7 @@ public final UnaryCallable getMetadataSt * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataStoresPagedResponse listMetadataStores(LocationName parent) { + public final ListMetadataStoresPagedResponse listMetadataStores(@Nullable LocationName parent) { ListMetadataStoresRequest request = ListMetadataStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1363,7 +1364,7 @@ public final ListMetadataStoresPagedResponse listMetadataStores( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteMetadataStoreAsync(MetadataStoreName name) { + deleteMetadataStoreAsync(@Nullable MetadataStoreName name) { DeleteMetadataStoreRequest request = DeleteMetadataStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1530,7 +1531,7 @@ public final UnaryCallable deleteMetadata * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Artifact createArtifact( - MetadataStoreName parent, Artifact artifact, String artifactId) { + @Nullable MetadataStoreName parent, Artifact artifact, String artifactId) { CreateArtifactRequest request = CreateArtifactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1667,7 +1668,7 @@ public final UnaryCallable createArtifactCallab * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Artifact getArtifact(ArtifactName name) { + public final Artifact getArtifact(@Nullable ArtifactName name) { GetArtifactRequest request = GetArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getArtifact(request); @@ -1785,7 +1786,7 @@ public final UnaryCallable getArtifactCallable() { * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent) { + public final ListArtifactsPagedResponse listArtifacts(@Nullable MetadataStoreName parent) { ListArtifactsRequest request = ListArtifactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2052,7 +2053,7 @@ public final UnaryCallable updateArtifactCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteArtifactAsync( - ArtifactName name) { + @Nullable ArtifactName name) { DeleteArtifactRequest request = DeleteArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteArtifactAsync(request); @@ -2205,7 +2206,7 @@ public final UnaryCallable deleteArtifactCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeArtifactsAsync( - MetadataStoreName parent) { + @Nullable MetadataStoreName parent) { PurgeArtifactsRequest request = PurgeArtifactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2370,7 +2371,8 @@ public final UnaryCallable purgeArtifactsCalla * or PERMISSION_DENIED if the caller can't view the preexisting Context.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context createContext(MetadataStoreName parent, Context context, String contextId) { + public final Context createContext( + @Nullable MetadataStoreName parent, Context context, String contextId) { CreateContextRequest request = CreateContextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2505,7 +2507,7 @@ public final UnaryCallable createContextCallable( * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context getContext(ContextName name) { + public final Context getContext(@Nullable ContextName name) { GetContextRequest request = GetContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContext(request); @@ -2623,7 +2625,7 @@ public final UnaryCallable getContextCallable() { * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContextsPagedResponse listContexts(MetadataStoreName parent) { + public final ListContextsPagedResponse listContexts(@Nullable MetadataStoreName parent) { ListContextsRequest request = ListContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2887,7 +2889,7 @@ public final UnaryCallable updateContextCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteContextAsync( - ContextName name) { + @Nullable ContextName name) { DeleteContextRequest request = DeleteContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteContextAsync(request); @@ -3043,7 +3045,7 @@ public final UnaryCallable deleteContextCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeContextsAsync( - MetadataStoreName parent) { + @Nullable MetadataStoreName parent) { PurgeContextsRequest request = PurgeContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3210,7 +3212,7 @@ public final UnaryCallable purgeContextsCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( - ContextName context, List artifacts, List executions) { + @Nullable ContextName context, List artifacts, List executions) { AddContextArtifactsAndExecutionsRequest request = AddContextArtifactsAndExecutionsRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3366,7 +3368,7 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddContextChildrenResponse addContextChildren( - ContextName context, List childContexts) { + @Nullable ContextName context, List childContexts) { AddContextChildrenRequest request = AddContextChildrenRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3513,7 +3515,7 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RemoveContextChildrenResponse removeContextChildren( - ContextName context, List childContexts) { + @Nullable ContextName context, List childContexts) { RemoveContextChildrenRequest request = RemoveContextChildrenRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3653,7 +3655,7 @@ public final RemoveContextChildrenResponse removeContextChildren( * Executions, or the number of Events that would be returned for the Context exceeds 1000. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryContextLineageSubgraph(ContextName context) { + public final LineageSubgraph queryContextLineageSubgraph(@Nullable ContextName context) { QueryContextLineageSubgraphRequest request = QueryContextLineageSubgraphRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3791,7 +3793,7 @@ public final LineageSubgraph queryContextLineageSubgraph( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Execution createExecution( - MetadataStoreName parent, Execution execution, String executionId) { + @Nullable MetadataStoreName parent, Execution execution, String executionId) { CreateExecutionRequest request = CreateExecutionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3928,7 +3930,7 @@ public final UnaryCallable createExecutionCal * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -4047,7 +4049,7 @@ public final UnaryCallable getExecutionCallable( * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable MetadataStoreName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4318,7 +4320,7 @@ public final UnaryCallable updateExecutionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExecutionAsync( - ExecutionName name) { + @Nullable ExecutionName name) { DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExecutionAsync(request); @@ -4471,7 +4473,7 @@ public final UnaryCallable deleteExecutionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - purgeExecutionsAsync(MetadataStoreName parent) { + purgeExecutionsAsync(@Nullable MetadataStoreName parent) { PurgeExecutionsRequest request = PurgeExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4634,7 +4636,7 @@ public final UnaryCallable purgeExecutionsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddExecutionEventsResponse addExecutionEvents( - ExecutionName execution, List events) { + @Nullable ExecutionName execution, List events) { AddExecutionEventsRequest request = AddExecutionEventsRequest.newBuilder() .setExecution(execution == null ? null : execution.toString()) @@ -4770,7 +4772,7 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryExecutionInputsAndOutputs(ExecutionName execution) { + public final LineageSubgraph queryExecutionInputsAndOutputs(@Nullable ExecutionName execution) { QueryExecutionInputsAndOutputsRequest request = QueryExecutionInputsAndOutputsRequest.newBuilder() .setExecution(execution == null ? null : execution.toString()) @@ -4909,7 +4911,7 @@ public final LineageSubgraph queryExecutionInputsAndOutputs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetadataSchema createMetadataSchema( - MetadataStoreName parent, MetadataSchema metadataSchema, String metadataSchemaId) { + @Nullable MetadataStoreName parent, MetadataSchema metadataSchema, String metadataSchemaId) { CreateMetadataSchemaRequest request = CreateMetadataSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5051,7 +5053,7 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataSchema getMetadataSchema(MetadataSchemaName name) { + public final MetadataSchema getMetadataSchema(@Nullable MetadataSchemaName name) { GetMetadataSchemaRequest request = GetMetadataSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5176,7 +5178,8 @@ public final UnaryCallable getMetadata * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreName parent) { + public final ListMetadataSchemasPagedResponse listMetadataSchemas( + @Nullable MetadataStoreName parent) { ListMetadataSchemasRequest request = ListMetadataSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5356,7 +5359,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas( * Executions, or the number of Events that would be returned for the Context exceeds 1000. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryArtifactLineageSubgraph(ArtifactName artifact) { + public final LineageSubgraph queryArtifactLineageSubgraph(@Nullable ArtifactName artifact) { QueryArtifactLineageSubgraphRequest request = QueryArtifactLineageSubgraphRequest.newBuilder() .setArtifact(artifact == null ? null : artifact.toString()) @@ -5892,8 +5895,9 @@ public static class ListMetadataStoresPage ListMetadataStoresPage> { private ListMetadataStoresPage( - PageContext context, - ListMetadataStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataStoresResponse response) { super(context, response); } @@ -5903,14 +5907,16 @@ private static ListMetadataStoresPage createEmptyPage() { @Override protected ListMetadataStoresPage createPage( - PageContext context, - ListMetadataStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataStoresResponse response) { return new ListMetadataStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5925,7 +5931,7 @@ public static class ListMetadataStoresFixedSizeCollection ListMetadataStoresFixedSizeCollection> { private ListMetadataStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5935,7 +5941,7 @@ private static ListMetadataStoresFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataStoresFixedSizeCollection(pages, collectionSize); } } @@ -5969,8 +5975,8 @@ public static class ListArtifactsPage ListArtifactsRequest, ListArtifactsResponse, Artifact, ListArtifactsPage> { private ListArtifactsPage( - PageContext context, - ListArtifactsResponse response) { + @Nullable PageContext context, + @Nullable ListArtifactsResponse response) { super(context, response); } @@ -5980,14 +5986,14 @@ private static ListArtifactsPage createEmptyPage() { @Override protected ListArtifactsPage createPage( - PageContext context, - ListArtifactsResponse response) { + @Nullable PageContext context, + @Nullable ListArtifactsResponse response) { return new ListArtifactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6001,7 +6007,8 @@ public static class ListArtifactsFixedSizeCollection ListArtifactsPage, ListArtifactsFixedSizeCollection> { - private ListArtifactsFixedSizeCollection(List pages, int collectionSize) { + private ListArtifactsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6011,7 +6018,7 @@ private static ListArtifactsFixedSizeCollection createEmptyCollection() { @Override protected ListArtifactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListArtifactsFixedSizeCollection(pages, collectionSize); } } @@ -6044,8 +6051,8 @@ public static class ListContextsPage extends AbstractPage { private ListContextsPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { super(context, response); } @@ -6055,14 +6062,14 @@ private static ListContextsPage createEmptyPage() { @Override protected ListContextsPage createPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { return new ListContextsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6076,7 +6083,8 @@ public static class ListContextsFixedSizeCollection ListContextsPage, ListContextsFixedSizeCollection> { - private ListContextsFixedSizeCollection(List pages, int collectionSize) { + private ListContextsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6086,7 +6094,7 @@ private static ListContextsFixedSizeCollection createEmptyCollection() { @Override protected ListContextsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContextsFixedSizeCollection(pages, collectionSize); } } @@ -6120,8 +6128,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -6131,14 +6139,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6152,7 +6160,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6162,7 +6171,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } @@ -6200,9 +6209,10 @@ public static class ListMetadataSchemasPage ListMetadataSchemasPage> { private ListMetadataSchemasPage( - PageContext + @Nullable + PageContext context, - ListMetadataSchemasResponse response) { + @Nullable ListMetadataSchemasResponse response) { super(context, response); } @@ -6212,15 +6222,17 @@ private static ListMetadataSchemasPage createEmptyPage() { @Override protected ListMetadataSchemasPage createPage( - PageContext + @Nullable + PageContext context, - ListMetadataSchemasResponse response) { + @Nullable ListMetadataSchemasResponse response) { return new ListMetadataSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6236,7 +6248,7 @@ public static class ListMetadataSchemasFixedSizeCollection ListMetadataSchemasFixedSizeCollection> { private ListMetadataSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6246,7 +6258,7 @@ private static ListMetadataSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataSchemasFixedSizeCollection(pages, collectionSize); } } @@ -6280,8 +6292,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6291,14 +6303,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6312,7 +6324,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6322,7 +6335,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java index 954d1c2a83e6..4f8645a92592 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java @@ -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. /** @@ -433,7 +434,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -453,7 +454,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetadataServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java index 2016d81ea191..1412148699da 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java @@ -45,6 +45,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. /** @@ -236,7 +237,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MigrationServiceClient implements BackgroundResource { - private final MigrationServiceSettings settings; + private final @Nullable MigrationServiceSettings settings; private final MigrationServiceStub stub; private final OperationsClient operationsClient; @@ -279,7 +280,7 @@ protected MigrationServiceClient(MigrationServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MigrationServiceSettings getSettings() { + public final @Nullable MigrationServiceSettings getSettings() { return settings; } @@ -323,7 +324,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchMigratableResourcesPagedResponse searchMigratableResources( - LocationName parent) { + @Nullable LocationName parent) { SearchMigratableResourcesRequest request = SearchMigratableResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -509,7 +510,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( public final OperationFuture< BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata> batchMigrateResourcesAsync( - LocationName parent, List migrateResourceRequests) { + @Nullable LocationName parent, List migrateResourceRequests) { BatchMigrateResourcesRequest request = BatchMigrateResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1088,12 +1089,13 @@ public static class SearchMigratableResourcesPage SearchMigratableResourcesPage> { private SearchMigratableResourcesPage( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> context, - SearchMigratableResourcesResponse response) { + @Nullable SearchMigratableResourcesResponse response) { super(context, response); } @@ -1103,18 +1105,20 @@ private static SearchMigratableResourcesPage createEmptyPage() { @Override protected SearchMigratableResourcesPage createPage( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> context, - SearchMigratableResourcesResponse response) { + @Nullable SearchMigratableResourcesResponse response) { return new SearchMigratableResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> @@ -1133,7 +1137,7 @@ public static class SearchMigratableResourcesFixedSizeCollection SearchMigratableResourcesFixedSizeCollection> { private SearchMigratableResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1143,7 +1147,7 @@ private static SearchMigratableResourcesFixedSizeCollection createEmptyCollectio @Override protected SearchMigratableResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchMigratableResourcesFixedSizeCollection(pages, collectionSize); } } @@ -1177,8 +1181,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1188,14 +1192,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1209,7 +1213,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1219,7 +1224,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java index e21ae7bcd1c6..8516ef401966 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MigrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java index 936e6219458e..22e2076daf79 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceClient.java @@ -45,6 +45,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. /** @@ -229,7 +230,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ModelGardenServiceClient implements BackgroundResource { - private final ModelGardenServiceSettings settings; + private final @Nullable ModelGardenServiceSettings settings; private final ModelGardenServiceStub stub; private final OperationsClient operationsClient; @@ -272,7 +273,7 @@ protected ModelGardenServiceClient(ModelGardenServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ModelGardenServiceSettings getSettings() { + public final @Nullable ModelGardenServiceSettings getSettings() { return settings; } @@ -310,7 +311,7 @@ public final OperationsClient getOperationsClient() { * `publishers/{publisher}/models/{publisher_model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublisherModel getPublisherModel(PublisherModelName name) { + public final PublisherModel getPublisherModel(@Nullable PublisherModelName name) { GetPublisherModelRequest request = GetPublisherModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -930,8 +931,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -941,14 +942,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -962,7 +963,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -972,7 +974,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceSettings.java index 20141365b165..ee88388896ac 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelGardenServiceSettings.java @@ -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. /** @@ -213,7 +214,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -233,7 +234,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelGardenServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java index 3eaebd9cb87e..e8a6377a0146 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java @@ -47,6 +47,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. /** @@ -569,7 +570,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ModelServiceClient implements BackgroundResource { - private final ModelServiceSettings settings; + private final @Nullable ModelServiceSettings settings; private final ModelServiceStub stub; private final OperationsClient operationsClient; @@ -611,7 +612,7 @@ protected ModelServiceClient(ModelServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ModelServiceSettings getSettings() { + public final @Nullable ModelServiceSettings getSettings() { return settings; } @@ -652,7 +653,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture uploadModelAsync( - LocationName parent, Model model) { + @Nullable LocationName parent, Model model) { UploadModelRequest request = UploadModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final UnaryCallable uploadModelCallable() * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -938,7 +939,7 @@ public final UnaryCallable getModelCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(LocationName parent) { + public final ListModelsPagedResponse listModels(@Nullable LocationName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -1106,7 +1107,7 @@ public final UnaryCallable listModelsCall * @param name Required. The name of the model to list versions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelVersionsPagedResponse listModelVersions(ModelName name) { + public final ListModelVersionsPagedResponse listModelVersions(@Nullable ModelName name) { ListModelVersionsRequest request = ListModelVersionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1285,7 +1286,7 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( - ModelName name) { + @Nullable ModelName name) { ListModelVersionCheckpointsRequest request = ListModelVersionCheckpointsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1559,7 +1560,7 @@ public final UnaryCallable updateModelCallable() { */ public final OperationFuture< UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata> - updateExplanationDatasetAsync(ModelName model) { + updateExplanationDatasetAsync(@Nullable ModelName model) { UpdateExplanationDatasetRequest request = UpdateExplanationDatasetRequest.newBuilder() .setModel(model == null ? null : model.toString()) @@ -1720,7 +1721,8 @@ public final UnaryCallable updateModelCallable() { * `projects/{project}/locations/{location}/models/{model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -1884,7 +1886,7 @@ public final UnaryCallable deleteModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteModelVersionAsync( - ModelName name) { + @Nullable ModelName name) { DeleteModelVersionRequest request = DeleteModelVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2064,7 +2066,7 @@ public final UnaryCallable deleteModelVers * cancelled out. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model mergeVersionAliases(ModelName name, List versionAliases) { + public final Model mergeVersionAliases(@Nullable ModelName name, List versionAliases) { MergeVersionAliasesRequest request = MergeVersionAliasesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2201,7 +2203,7 @@ public final UnaryCallable mergeVersionAliase * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportModelAsync( - ModelName name, ExportModelRequest.OutputConfig outputConfig) { + @Nullable ModelName name, ExportModelRequest.OutputConfig outputConfig) { ExportModelRequest request = ExportModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2369,7 +2371,7 @@ public final UnaryCallable exportModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - LocationName parent, ModelName sourceModel) { + @Nullable LocationName parent, @Nullable ModelName sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2407,7 +2409,7 @@ public final OperationFuture copy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - LocationName parent, String sourceModel) { + @Nullable LocationName parent, String sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2445,7 +2447,7 @@ public final OperationFuture copy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - String parent, ModelName sourceModel) { + String parent, @Nullable ModelName sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent) @@ -2617,7 +2619,7 @@ public final UnaryCallable copyModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation importModelEvaluation( - ModelName parent, ModelEvaluation modelEvaluation) { + @Nullable ModelName parent, ModelEvaluation modelEvaluation) { ImportModelEvaluationRequest request = ImportModelEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2746,7 +2748,7 @@ public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices( - ModelEvaluationName parent, List modelEvaluationSlices) { + @Nullable ModelEvaluationName parent, List modelEvaluationSlices) { BatchImportModelEvaluationSlicesRequest request = BatchImportModelEvaluationSlicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2885,7 +2887,7 @@ public final BatchImportModelEvaluationSlicesResponse batchImportModelEvaluation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations( - ModelEvaluationSliceName parent, List evaluatedAnnotations) { + @Nullable ModelEvaluationSliceName parent, List evaluatedAnnotations) { BatchImportEvaluatedAnnotationsRequest request = BatchImportEvaluatedAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3023,7 +3025,7 @@ public final BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotat * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { + public final ModelEvaluation getModelEvaluation(@Nullable ModelEvaluationName name) { GetModelEvaluationRequest request = GetModelEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3145,7 +3147,7 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques * Format: `projects/{project}/locations/{location}/models/{model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationsPagedResponse listModelEvaluations(ModelName parent) { + public final ListModelEvaluationsPagedResponse listModelEvaluations(@Nullable ModelName parent) { ListModelEvaluationsRequest request = ListModelEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3320,7 +3322,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations( * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { + public final ModelEvaluationSlice getModelEvaluationSlice( + @Nullable ModelEvaluationSliceName name) { GetModelEvaluationSliceRequest request = GetModelEvaluationSliceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3451,7 +3454,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( - ModelEvaluationName parent) { + @Nullable ModelEvaluationName parent) { ListModelEvaluationSlicesRequest request = ListModelEvaluationSlicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4032,8 +4035,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -4043,14 +4046,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4064,7 +4067,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4074,7 +4078,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } @@ -4108,8 +4112,8 @@ public static class ListModelVersionsPage ListModelVersionsRequest, ListModelVersionsResponse, Model, ListModelVersionsPage> { private ListModelVersionsPage( - PageContext context, - ListModelVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListModelVersionsResponse response) { super(context, response); } @@ -4119,14 +4123,14 @@ private static ListModelVersionsPage createEmptyPage() { @Override protected ListModelVersionsPage createPage( - PageContext context, - ListModelVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListModelVersionsResponse response) { return new ListModelVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4141,7 +4145,7 @@ public static class ListModelVersionsFixedSizeCollection ListModelVersionsFixedSizeCollection> { private ListModelVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4151,7 +4155,7 @@ private static ListModelVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListModelVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4193,12 +4197,13 @@ public static class ListModelVersionCheckpointsPage ListModelVersionCheckpointsPage> { private ListModelVersionCheckpointsPage( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> context, - ListModelVersionCheckpointsResponse response) { + @Nullable ListModelVersionCheckpointsResponse response) { super(context, response); } @@ -4208,18 +4213,20 @@ private static ListModelVersionCheckpointsPage createEmptyPage() { @Override protected ListModelVersionCheckpointsPage createPage( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> context, - ListModelVersionCheckpointsResponse response) { + @Nullable ListModelVersionCheckpointsResponse response) { return new ListModelVersionCheckpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> @@ -4238,7 +4245,7 @@ public static class ListModelVersionCheckpointsFixedSizeCollection ListModelVersionCheckpointsFixedSizeCollection> { private ListModelVersionCheckpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4248,7 +4255,7 @@ private static ListModelVersionCheckpointsFixedSizeCollection createEmptyCollect @Override protected ListModelVersionCheckpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelVersionCheckpointsFixedSizeCollection(pages, collectionSize); } } @@ -4286,9 +4293,10 @@ public static class ListModelEvaluationsPage ListModelEvaluationsPage> { private ListModelEvaluationsPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { super(context, response); } @@ -4298,15 +4306,17 @@ private static ListModelEvaluationsPage createEmptyPage() { @Override protected ListModelEvaluationsPage createPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { return new ListModelEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4322,7 +4332,7 @@ public static class ListModelEvaluationsFixedSizeCollection ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4332,7 +4342,7 @@ private static ListModelEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListModelEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -4373,12 +4383,13 @@ public static class ListModelEvaluationSlicesPage ListModelEvaluationSlicesPage> { private ListModelEvaluationSlicesPage( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> context, - ListModelEvaluationSlicesResponse response) { + @Nullable ListModelEvaluationSlicesResponse response) { super(context, response); } @@ -4388,18 +4399,20 @@ private static ListModelEvaluationSlicesPage createEmptyPage() { @Override protected ListModelEvaluationSlicesPage createPage( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> context, - ListModelEvaluationSlicesResponse response) { + @Nullable ListModelEvaluationSlicesResponse response) { return new ListModelEvaluationSlicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> @@ -4418,7 +4431,7 @@ public static class ListModelEvaluationSlicesFixedSizeCollection ListModelEvaluationSlicesFixedSizeCollection> { private ListModelEvaluationSlicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4428,7 +4441,7 @@ private static ListModelEvaluationSlicesFixedSizeCollection createEmptyCollectio @Override protected ListModelEvaluationSlicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationSlicesFixedSizeCollection(pages, collectionSize); } } @@ -4462,8 +4475,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4473,14 +4486,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4494,7 +4507,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4504,7 +4518,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java index 4bce51f39f76..4fcfb919be66 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java @@ -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. /** @@ -361,7 +362,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -381,7 +382,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java index f9e225f1267d..40399b415995 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceClient.java @@ -47,6 +47,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. /** @@ -515,7 +516,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NotebookServiceClient implements BackgroundResource { - private final NotebookServiceSettings settings; + private final @Nullable NotebookServiceSettings settings; private final NotebookServiceStub stub; private final OperationsClient operationsClient; @@ -558,7 +559,7 @@ protected NotebookServiceClient(NotebookServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final NotebookServiceSettings getSettings() { + public final @Nullable NotebookServiceSettings getSettings() { return settings; } @@ -608,7 +609,7 @@ public final OperationsClient getOperationsClient() { public final OperationFuture< NotebookRuntimeTemplate, CreateNotebookRuntimeTemplateOperationMetadata> createNotebookRuntimeTemplateAsync( - LocationName parent, + @Nullable LocationName parent, NotebookRuntimeTemplate notebookRuntimeTemplate, String notebookRuntimeTemplateId) { CreateNotebookRuntimeTemplateRequest request = @@ -791,7 +792,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotebookRuntimeTemplate getNotebookRuntimeTemplate( - NotebookRuntimeTemplateName name) { + @Nullable NotebookRuntimeTemplateName name) { GetNotebookRuntimeTemplateRequest request = GetNotebookRuntimeTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -919,7 +920,7 @@ public final NotebookRuntimeTemplate getNotebookRuntimeTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotebookRuntimeTemplatesPagedResponse listNotebookRuntimeTemplates( - LocationName parent) { + @Nullable LocationName parent) { ListNotebookRuntimeTemplatesRequest request = ListNotebookRuntimeTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1101,7 +1102,7 @@ public final ListNotebookRuntimeTemplatesPagedResponse listNotebookRuntimeTempla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookRuntimeTemplateAsync( - NotebookRuntimeTemplateName name) { + @Nullable NotebookRuntimeTemplateName name) { DeleteNotebookRuntimeTemplateRequest request = DeleteNotebookRuntimeTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1376,8 +1377,8 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( */ public final OperationFuture assignNotebookRuntimeAsync( - LocationName parent, - NotebookRuntimeTemplateName notebookRuntimeTemplate, + @Nullable LocationName parent, + @Nullable NotebookRuntimeTemplateName notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { AssignNotebookRuntimeRequest request = @@ -1430,7 +1431,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( */ public final OperationFuture assignNotebookRuntimeAsync( - LocationName parent, + @Nullable LocationName parent, String notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { @@ -1483,7 +1484,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( public final OperationFuture assignNotebookRuntimeAsync( String parent, - NotebookRuntimeTemplateName notebookRuntimeTemplate, + @Nullable NotebookRuntimeTemplateName notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { AssignNotebookRuntimeRequest request = @@ -1683,7 +1684,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( * there is no such NotebookRuntime in spanner. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotebookRuntime getNotebookRuntime(NotebookRuntimeName name) { + public final NotebookRuntime getNotebookRuntime(@Nullable NotebookRuntimeName name) { GetNotebookRuntimeRequest request = GetNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1807,7 +1808,8 @@ public final NotebookRuntime getNotebookRuntime(GetNotebookRuntimeRequest reques * NotebookRuntimes. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotebookRuntimesPagedResponse listNotebookRuntimes(LocationName parent) { + public final ListNotebookRuntimesPagedResponse listNotebookRuntimes( + @Nullable LocationName parent) { ListNotebookRuntimesRequest request = ListNotebookRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1987,7 +1989,7 @@ public final ListNotebookRuntimesPagedResponse listNotebookRuntimes( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookRuntimeAsync( - NotebookRuntimeName name) { + @Nullable NotebookRuntimeName name) { DeleteNotebookRuntimeRequest request = DeleteNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2146,7 +2148,7 @@ public final OperationFuture deleteNotebookRunti */ public final OperationFuture< UpgradeNotebookRuntimeResponse, UpgradeNotebookRuntimeOperationMetadata> - upgradeNotebookRuntimeAsync(NotebookRuntimeName name) { + upgradeNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { UpgradeNotebookRuntimeRequest request = UpgradeNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2312,7 +2314,7 @@ public final OperationFuture deleteNotebookRunti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - startNotebookRuntimeAsync(NotebookRuntimeName name) { + startNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { StartNotebookRuntimeRequest request = StartNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2475,7 +2477,7 @@ public final OperationFuture deleteNotebookRunti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - stopNotebookRuntimeAsync(NotebookRuntimeName name) { + stopNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { StopNotebookRuntimeRequest request = StopNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2642,7 +2644,7 @@ public final UnaryCallable stopNotebookRu */ public final OperationFuture createNotebookExecutionJobAsync( - LocationName parent, + @Nullable LocationName parent, NotebookExecutionJob notebookExecutionJob, String notebookExecutionJobId) { CreateNotebookExecutionJobRequest request = @@ -2814,7 +2816,8 @@ public final UnaryCallable stopNotebookRu * @param name Required. The name of the NotebookExecutionJob resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotebookExecutionJob getNotebookExecutionJob(NotebookExecutionJobName name) { + public final NotebookExecutionJob getNotebookExecutionJob( + @Nullable NotebookExecutionJobName name) { GetNotebookExecutionJobRequest request = GetNotebookExecutionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2941,7 +2944,7 @@ public final NotebookExecutionJob getNotebookExecutionJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( - LocationName parent) { + @Nullable LocationName parent) { ListNotebookExecutionJobsRequest request = ListNotebookExecutionJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3120,7 +3123,7 @@ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookExecutionJobAsync( - NotebookExecutionJobName name) { + @Nullable NotebookExecutionJobName name) { DeleteNotebookExecutionJobRequest request = DeleteNotebookExecutionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3683,12 +3686,13 @@ public static class ListNotebookRuntimeTemplatesPage ListNotebookRuntimeTemplatesPage> { private ListNotebookRuntimeTemplatesPage( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> context, - ListNotebookRuntimeTemplatesResponse response) { + @Nullable ListNotebookRuntimeTemplatesResponse response) { super(context, response); } @@ -3698,18 +3702,20 @@ private static ListNotebookRuntimeTemplatesPage createEmptyPage() { @Override protected ListNotebookRuntimeTemplatesPage createPage( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> context, - ListNotebookRuntimeTemplatesResponse response) { + @Nullable ListNotebookRuntimeTemplatesResponse response) { return new ListNotebookRuntimeTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> @@ -3728,7 +3734,7 @@ public static class ListNotebookRuntimeTemplatesFixedSizeCollection ListNotebookRuntimeTemplatesFixedSizeCollection> { private ListNotebookRuntimeTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3738,7 +3744,7 @@ private static ListNotebookRuntimeTemplatesFixedSizeCollection createEmptyCollec @Override protected ListNotebookRuntimeTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookRuntimeTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -3776,9 +3782,10 @@ public static class ListNotebookRuntimesPage ListNotebookRuntimesPage> { private ListNotebookRuntimesPage( - PageContext + @Nullable + PageContext context, - ListNotebookRuntimesResponse response) { + @Nullable ListNotebookRuntimesResponse response) { super(context, response); } @@ -3788,15 +3795,17 @@ private static ListNotebookRuntimesPage createEmptyPage() { @Override protected ListNotebookRuntimesPage createPage( - PageContext + @Nullable + PageContext context, - ListNotebookRuntimesResponse response) { + @Nullable ListNotebookRuntimesResponse response) { return new ListNotebookRuntimesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3812,7 +3821,7 @@ public static class ListNotebookRuntimesFixedSizeCollection ListNotebookRuntimesFixedSizeCollection> { private ListNotebookRuntimesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3822,7 +3831,7 @@ private static ListNotebookRuntimesFixedSizeCollection createEmptyCollection() { @Override protected ListNotebookRuntimesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookRuntimesFixedSizeCollection(pages, collectionSize); } } @@ -3863,12 +3872,13 @@ public static class ListNotebookExecutionJobsPage ListNotebookExecutionJobsPage> { private ListNotebookExecutionJobsPage( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> context, - ListNotebookExecutionJobsResponse response) { + @Nullable ListNotebookExecutionJobsResponse response) { super(context, response); } @@ -3878,18 +3888,20 @@ private static ListNotebookExecutionJobsPage createEmptyPage() { @Override protected ListNotebookExecutionJobsPage createPage( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> context, - ListNotebookExecutionJobsResponse response) { + @Nullable ListNotebookExecutionJobsResponse response) { return new ListNotebookExecutionJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> @@ -3908,7 +3920,7 @@ public static class ListNotebookExecutionJobsFixedSizeCollection ListNotebookExecutionJobsFixedSizeCollection> { private ListNotebookExecutionJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3918,7 +3930,7 @@ private static ListNotebookExecutionJobsFixedSizeCollection createEmptyCollectio @Override protected ListNotebookExecutionJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookExecutionJobsFixedSizeCollection(pages, collectionSize); } } @@ -3952,8 +3964,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3963,14 +3975,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3984,7 +3996,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3994,7 +4007,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java index c694d80dd924..aa8ac8c85894 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/NotebookServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -384,7 +385,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -404,7 +405,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceClient.java index 135442e3e3ee..7c02c30fe649 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceClient.java @@ -47,6 +47,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PersistentResourceServiceClient implements BackgroundResource { - private final PersistentResourceServiceSettings settings; + private final @Nullable PersistentResourceServiceSettings settings; private final PersistentResourceServiceStub stub; private final OperationsClient operationsClient; @@ -362,7 +363,7 @@ protected PersistentResourceServiceClient(PersistentResourceServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PersistentResourceServiceSettings getSettings() { + public final @Nullable PersistentResourceServiceSettings getSettings() { return settings; } @@ -413,7 +414,9 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createPersistentResourceAsync( - LocationName parent, PersistentResource persistentResource, String persistentResourceId) { + @Nullable LocationName parent, + PersistentResource persistentResource, + String persistentResourceId) { CreatePersistentResourceRequest request = CreatePersistentResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -594,7 +597,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PersistentResource getPersistentResource(PersistentResourceName name) { + public final PersistentResource getPersistentResource(@Nullable PersistentResourceName name) { GetPersistentResourceRequest request = GetPersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -721,7 +724,8 @@ public final PersistentResource getPersistentResource(GetPersistentResourceReque * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPersistentResourcesPagedResponse listPersistentResources(LocationName parent) { + public final ListPersistentResourcesPagedResponse listPersistentResources( + @Nullable LocationName parent) { ListPersistentResourcesRequest request = ListPersistentResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -898,7 +902,7 @@ public final ListPersistentResourcesPagedResponse listPersistentResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePersistentResourceAsync( - PersistentResourceName name) { + @Nullable PersistentResourceName name) { DeletePersistentResourceRequest request = DeletePersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1201,7 +1205,7 @@ public final OperationFuture deletePersistentRes * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - rebootPersistentResourceAsync(PersistentResourceName name) { + rebootPersistentResourceAsync(@Nullable PersistentResourceName name) { RebootPersistentResourceRequest request = RebootPersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1787,10 +1791,11 @@ public static class ListPersistentResourcesPage ListPersistentResourcesPage> { private ListPersistentResourcesPage( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, - ListPersistentResourcesResponse response) { + @Nullable ListPersistentResourcesResponse response) { super(context, response); } @@ -1800,16 +1805,18 @@ private static ListPersistentResourcesPage createEmptyPage() { @Override protected ListPersistentResourcesPage createPage( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, - ListPersistentResourcesResponse response) { + @Nullable ListPersistentResourcesResponse response) { return new ListPersistentResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, ApiFuture futureResponse) { @@ -1826,7 +1833,7 @@ public static class ListPersistentResourcesFixedSizeCollection ListPersistentResourcesFixedSizeCollection> { private ListPersistentResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1836,7 +1843,7 @@ private static ListPersistentResourcesFixedSizeCollection createEmptyCollection( @Override protected ListPersistentResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPersistentResourcesFixedSizeCollection(pages, collectionSize); } } @@ -1870,8 +1877,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1881,14 +1888,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1902,7 +1909,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1912,7 +1920,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceSettings.java index 603ca18e58ce..0597e0f4529b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,7 +283,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -303,7 +304,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PersistentResourceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java index 97b8a20e795b..f2fd83baba9a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java @@ -46,6 +46,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. /** @@ -434,7 +435,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PipelineServiceClient implements BackgroundResource { - private final PipelineServiceSettings settings; + private final @Nullable PipelineServiceSettings settings; private final PipelineServiceStub stub; private final OperationsClient operationsClient; @@ -477,7 +478,7 @@ protected PipelineServiceClient(PipelineServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PipelineServiceSettings getSettings() { + public final @Nullable PipelineServiceSettings getSettings() { return settings; } @@ -519,7 +520,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline createTrainingPipeline( - LocationName parent, TrainingPipeline trainingPipeline) { + @Nullable LocationName parent, TrainingPipeline trainingPipeline) { CreateTrainingPipelineRequest request = CreateTrainingPipelineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -645,7 +646,7 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { + public final TrainingPipeline getTrainingPipeline(@Nullable TrainingPipelineName name) { GetTrainingPipelineRequest request = GetTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -768,7 +769,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTrainingPipelinesPagedResponse listTrainingPipelines(LocationName parent) { + public final ListTrainingPipelinesPagedResponse listTrainingPipelines( + @Nullable LocationName parent) { ListTrainingPipelinesRequest request = ListTrainingPipelinesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -944,7 +946,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( - TrainingPipelineName name) { + @Nullable TrainingPipelineName name) { DeleteTrainingPipelineRequest request = DeleteTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1108,7 +1110,7 @@ public final OperationFuture deleteTrainingPipel * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelTrainingPipeline(TrainingPipelineName name) { + public final void cancelTrainingPipeline(@Nullable TrainingPipelineName name) { CancelTrainingPipelineRequest request = CancelTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1266,7 +1268,7 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( - LocationName parent, PipelineJob pipelineJob, String pipelineJobId) { + @Nullable LocationName parent, PipelineJob pipelineJob, String pipelineJobId) { CreatePipelineJobRequest request = CreatePipelineJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1398,7 +1400,7 @@ public final UnaryCallable createPipeline * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PipelineJob getPipelineJob(PipelineJobName name) { + public final PipelineJob getPipelineJob(@Nullable PipelineJobName name) { GetPipelineJobRequest request = GetPipelineJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPipelineJob(request); @@ -1511,7 +1513,7 @@ public final UnaryCallable getPipelineJobCal * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPipelineJobsPagedResponse listPipelineJobs(LocationName parent) { + public final ListPipelineJobsPagedResponse listPipelineJobs(@Nullable LocationName parent) { ListPipelineJobsRequest request = ListPipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1686,7 +1688,7 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePipelineJobAsync( - PipelineJobName name) { + @Nullable PipelineJobName name) { DeletePipelineJobRequest request = DeletePipelineJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1836,7 +1838,7 @@ public final UnaryCallable deletePipelineJo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchDeletePipelineJobsAsync(LocationName parent, List names) { + batchDeletePipelineJobsAsync(@Nullable LocationName parent, List names) { BatchDeletePipelineJobsRequest request = BatchDeletePipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2005,7 +2007,7 @@ public final UnaryCallable deletePipelineJo * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelPipelineJob(PipelineJobName name) { + public final void cancelPipelineJob(@Nullable PipelineJobName name) { CancelPipelineJobRequest request = CancelPipelineJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2152,7 +2154,7 @@ public final UnaryCallable cancelPipelineJobCal */ public final OperationFuture< BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> - batchCancelPipelineJobsAsync(LocationName parent, List names) { + batchCancelPipelineJobsAsync(@Nullable LocationName parent, List names) { BatchCancelPipelineJobsRequest request = BatchCancelPipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2732,9 +2734,11 @@ public static class ListTrainingPipelinesPage ListTrainingPipelinesPage> { private ListTrainingPipelinesPage( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, - ListTrainingPipelinesResponse response) { + @Nullable ListTrainingPipelinesResponse response) { super(context, response); } @@ -2744,15 +2748,19 @@ private static ListTrainingPipelinesPage createEmptyPage() { @Override protected ListTrainingPipelinesPage createPage( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, - ListTrainingPipelinesResponse response) { + @Nullable ListTrainingPipelinesResponse response) { return new ListTrainingPipelinesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2768,7 +2776,7 @@ public static class ListTrainingPipelinesFixedSizeCollection ListTrainingPipelinesFixedSizeCollection> { private ListTrainingPipelinesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2778,7 +2786,7 @@ private static ListTrainingPipelinesFixedSizeCollection createEmptyCollection() @Override protected ListTrainingPipelinesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTrainingPipelinesFixedSizeCollection(pages, collectionSize); } } @@ -2812,8 +2820,9 @@ public static class ListPipelineJobsPage ListPipelineJobsRequest, ListPipelineJobsResponse, PipelineJob, ListPipelineJobsPage> { private ListPipelineJobsPage( - PageContext context, - ListPipelineJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListPipelineJobsResponse response) { super(context, response); } @@ -2823,14 +2832,16 @@ private static ListPipelineJobsPage createEmptyPage() { @Override protected ListPipelineJobsPage createPage( - PageContext context, - ListPipelineJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListPipelineJobsResponse response) { return new ListPipelineJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2845,7 +2856,7 @@ public static class ListPipelineJobsFixedSizeCollection ListPipelineJobsFixedSizeCollection> { private ListPipelineJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2855,7 +2866,7 @@ private static ListPipelineJobsFixedSizeCollection createEmptyCollection() { @Override protected ListPipelineJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPipelineJobsFixedSizeCollection(pages, collectionSize); } } @@ -2889,8 +2900,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2900,14 +2911,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2921,7 +2932,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2931,7 +2943,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java index a3021a0dc3f1..78a3dd5fc27f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -301,7 +302,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -321,7 +322,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PipelineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java index 1b5023bcd178..32819a62f217 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java @@ -45,6 +45,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. /** @@ -398,7 +399,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -438,7 +439,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } @@ -485,7 +486,7 @@ public PredictionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( - EndpointName endpoint, List instances, Value parameters) { + @Nullable EndpointName endpoint, List instances, Value parameters) { PredictRequest request = PredictRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -659,7 +660,7 @@ public final UnaryCallable predictCallable() { * [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict` method. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HttpBody rawPredict(EndpointName endpoint, HttpBody httpBody) { + public final HttpBody rawPredict(@Nullable EndpointName endpoint, HttpBody httpBody) { RawPredictRequest request = RawPredictRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1209,7 +1210,10 @@ public final DirectRawPredictResponse directRawPredict(DirectRawPredictRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExplainResponse explain( - EndpointName endpoint, List instances, Value parameters, String deployedModelId) { + @Nullable EndpointName endpoint, + List instances, + Value parameters, + String deployedModelId) { ExplainRequest request = ExplainRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1546,7 +1550,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * @param content Required. Input content to be embedded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EmbedContentResponse embedContent(EndpointName model, Content content) { + public final EmbedContentResponse embedContent(@Nullable EndpointName model, Content content) { EmbedContentRequest request = EmbedContentRequest.newBuilder() .setModel(model == null ? null : model.toString()) @@ -2084,8 +2088,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2095,14 +2099,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2116,7 +2120,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2126,7 +2131,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java index 346879fc4365..4749b5be0b01 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java index 4e80ec60ff71..2ab0fc56ee92 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java @@ -47,6 +47,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. /** @@ -259,7 +260,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReasoningEngineExecutionServiceClient implements BackgroundResource { - private final ReasoningEngineExecutionServiceSettings settings; + private final @Nullable ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; private final OperationsClient operationsClient; @@ -307,7 +308,7 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ReasoningEngineExecutionServiceSettings getSettings() { + public final @Nullable ReasoningEngineExecutionServiceSettings getSettings() { return settings; } @@ -1049,8 +1050,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1060,14 +1061,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1081,7 +1082,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1091,7 +1093,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java index 7e9f80dee802..32439b301a90 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -241,7 +242,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReasoningEngineExecutionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java index 6f8e1d682c2a..e543ff9d7dbd 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java @@ -47,6 +47,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. /** @@ -297,7 +298,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReasoningEngineServiceClient implements BackgroundResource { - private final ReasoningEngineServiceSettings settings; + private final @Nullable ReasoningEngineServiceSettings settings; private final ReasoningEngineServiceStub stub; private final OperationsClient operationsClient; @@ -341,7 +342,7 @@ protected ReasoningEngineServiceClient(ReasoningEngineServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ReasoningEngineServiceSettings getSettings() { + public final @Nullable ReasoningEngineServiceSettings getSettings() { return settings; } @@ -384,7 +385,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createReasoningEngineAsync(LocationName parent, ReasoningEngine reasoningEngine) { + createReasoningEngineAsync(@Nullable LocationName parent, ReasoningEngine reasoningEngine) { CreateReasoningEngineRequest request = CreateReasoningEngineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,7 +549,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReasoningEngine getReasoningEngine(ReasoningEngineName name) { + public final ReasoningEngine getReasoningEngine(@Nullable ReasoningEngineName name) { GetReasoningEngineRequest request = GetReasoningEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -675,7 +676,8 @@ public final ReasoningEngine getReasoningEngine(GetReasoningEngineRequest reques * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReasoningEnginesPagedResponse listReasoningEngines(LocationName parent) { + public final ListReasoningEnginesPagedResponse listReasoningEngines( + @Nullable LocationName parent) { ListReasoningEnginesRequest request = ListReasoningEnginesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -985,7 +987,7 @@ public final ListReasoningEnginesPagedResponse listReasoningEngines( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteReasoningEngineAsync( - ReasoningEngineName name) { + @Nullable ReasoningEngineName name) { DeleteReasoningEngineRequest request = DeleteReasoningEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1566,9 +1568,10 @@ public static class ListReasoningEnginesPage ListReasoningEnginesPage> { private ListReasoningEnginesPage( - PageContext + @Nullable + PageContext context, - ListReasoningEnginesResponse response) { + @Nullable ListReasoningEnginesResponse response) { super(context, response); } @@ -1578,15 +1581,17 @@ private static ListReasoningEnginesPage createEmptyPage() { @Override protected ListReasoningEnginesPage createPage( - PageContext + @Nullable + PageContext context, - ListReasoningEnginesResponse response) { + @Nullable ListReasoningEnginesResponse response) { return new ListReasoningEnginesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1602,7 +1607,7 @@ public static class ListReasoningEnginesFixedSizeCollection ListReasoningEnginesFixedSizeCollection> { private ListReasoningEnginesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1612,7 +1617,7 @@ private static ListReasoningEnginesFixedSizeCollection createEmptyCollection() { @Override protected ListReasoningEnginesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReasoningEnginesFixedSizeCollection(pages, collectionSize); } } @@ -1646,8 +1651,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1657,14 +1662,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1678,7 +1683,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1688,7 +1694,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java index 84f5689d747f..8b76c84eadee 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -255,7 +256,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -276,7 +277,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReasoningEngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java index c4b6abb5d77d..492c025f7c9b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java @@ -47,6 +47,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. /** @@ -337,7 +338,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ScheduleServiceClient implements BackgroundResource { - private final ScheduleServiceSettings settings; + private final @Nullable ScheduleServiceSettings settings; private final ScheduleServiceStub stub; private final OperationsClient operationsClient; @@ -380,7 +381,7 @@ protected ScheduleServiceClient(ScheduleServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ScheduleServiceSettings getSettings() { + public final @Nullable ScheduleServiceSettings getSettings() { return settings; } @@ -420,7 +421,7 @@ public final OperationsClient getOperationsClient() { * @param schedule Required. The Schedule to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schedule createSchedule(LocationName parent, Schedule schedule) { + public final Schedule createSchedule(@Nullable LocationName parent, Schedule schedule) { CreateScheduleRequest request = CreateScheduleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -540,7 +541,7 @@ public final UnaryCallable createScheduleCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteScheduleAsync( - ScheduleName name) { + @Nullable ScheduleName name) { DeleteScheduleRequest request = DeleteScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteScheduleAsync(request); @@ -681,7 +682,7 @@ public final UnaryCallable deleteScheduleCalla * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schedule getSchedule(ScheduleName name) { + public final Schedule getSchedule(@Nullable ScheduleName name) { GetScheduleRequest request = GetScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchedule(request); @@ -793,7 +794,7 @@ public final UnaryCallable getScheduleCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchedulesPagedResponse listSchedules(LocationName parent) { + public final ListSchedulesPagedResponse listSchedules(@Nullable LocationName parent) { ListSchedulesRequest request = ListSchedulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -964,7 +965,7 @@ public final UnaryCallable listSche * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pauseSchedule(ScheduleName name) { + public final void pauseSchedule(@Nullable ScheduleName name) { PauseScheduleRequest request = PauseScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); pauseSchedule(request); @@ -1087,7 +1088,7 @@ public final UnaryCallable pauseScheduleCallable() * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeSchedule(ScheduleName name) { + public final void resumeSchedule(@Nullable ScheduleName name) { ResumeScheduleRequest request = ResumeScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); resumeSchedule(request); @@ -1161,7 +1162,7 @@ public final void resumeSchedule(String name) { * [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] field. Default to false. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeSchedule(ScheduleName name, boolean catchUp) { + public final void resumeSchedule(@Nullable ScheduleName name, boolean catchUp) { ResumeScheduleRequest request = ResumeScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1811,8 +1812,8 @@ public static class ListSchedulesPage ListSchedulesRequest, ListSchedulesResponse, Schedule, ListSchedulesPage> { private ListSchedulesPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { super(context, response); } @@ -1822,14 +1823,14 @@ private static ListSchedulesPage createEmptyPage() { @Override protected ListSchedulesPage createPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { return new ListSchedulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1843,7 +1844,8 @@ public static class ListSchedulesFixedSizeCollection ListSchedulesPage, ListSchedulesFixedSizeCollection> { - private ListSchedulesFixedSizeCollection(List pages, int collectionSize) { + private ListSchedulesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1853,7 +1855,7 @@ private static ListSchedulesFixedSizeCollection createEmptyCollection() { @Override protected ListSchedulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchedulesFixedSizeCollection(pages, collectionSize); } } @@ -1887,8 +1889,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1898,14 +1900,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1919,7 +1921,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1929,7 +1932,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceSettings.java index 91b3bbb19382..1f021f55a308 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ScheduleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceClient.java index 59c2eda38e94..679a3b59de2d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceClient.java @@ -47,6 +47,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. /** @@ -333,7 +334,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; private final OperationsClient operationsClient; @@ -376,7 +377,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -418,7 +419,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSessionAsync( - ReasoningEngineName parent, Session session) { + @Nullable ReasoningEngineName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -491,7 +492,7 @@ public final OperationFuture createSess * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSessionAsync( - ReasoningEngineName parent, Session session, String sessionId) { + @Nullable ReasoningEngineName parent, Session session, String sessionId) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -664,7 +665,7 @@ public final UnaryCallable createSessionCallabl * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -782,7 +783,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(ReasoningEngineName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable ReasoningEngineName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1047,7 +1048,7 @@ public final UnaryCallable updateSessionCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSessionAsync( - SessionName name) { + @Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSessionAsync(request); @@ -1198,7 +1199,7 @@ public final UnaryCallable deleteSessionCallabl * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(SessionName parent) { + public final ListEventsPagedResponse listEvents(@Nullable SessionName parent) { ListEventsRequest request = ListEventsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listEvents(request); @@ -1373,7 +1374,7 @@ public final UnaryCallable listEventsCall * @param event Required. The event to append to the session. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppendEventResponse appendEvent(SessionName name, SessionEvent event) { + public final AppendEventResponse appendEvent(@Nullable SessionName name, SessionEvent event) { AppendEventRequest request = AppendEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1897,8 +1898,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1908,14 +1909,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1929,7 +1930,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1939,7 +1941,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } @@ -1970,8 +1972,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -1981,14 +1983,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2002,7 +2004,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2012,7 +2015,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } @@ -2046,8 +2049,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2057,14 +2060,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2078,7 +2081,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2088,7 +2092,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceSettings.java index d56192680f4b..bed70cbc1ca1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SessionServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -248,7 +249,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -268,7 +269,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java index 7c19923f9a2e..2815ed98caa5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java @@ -47,6 +47,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. /** @@ -301,7 +302,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpecialistPoolServiceClient implements BackgroundResource { - private final SpecialistPoolServiceSettings settings; + private final @Nullable SpecialistPoolServiceSettings settings; private final SpecialistPoolServiceStub stub; private final OperationsClient operationsClient; @@ -344,7 +345,7 @@ protected SpecialistPoolServiceClient(SpecialistPoolServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SpecialistPoolServiceSettings getSettings() { + public final @Nullable SpecialistPoolServiceSettings getSettings() { return settings; } @@ -387,7 +388,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createSpecialistPoolAsync(LocationName parent, SpecialistPool specialistPool) { + createSpecialistPoolAsync(@Nullable LocationName parent, SpecialistPool specialistPool) { CreateSpecialistPoolRequest request = CreateSpecialistPoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -551,7 +552,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { + public final SpecialistPool getSpecialistPool(@Nullable SpecialistPoolName name) { GetSpecialistPoolRequest request = GetSpecialistPoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -674,7 +675,7 @@ public final UnaryCallable getSpeciali * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpecialistPoolsPagedResponse listSpecialistPools(LocationName parent) { + public final ListSpecialistPoolsPagedResponse listSpecialistPools(@Nullable LocationName parent) { ListSpecialistPoolsRequest request = ListSpecialistPoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -852,7 +853,7 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSpecialistPoolAsync( - SpecialistPoolName name) { + @Nullable SpecialistPoolName name) { DeleteSpecialistPoolRequest request = DeleteSpecialistPoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1559,9 +1560,10 @@ public static class ListSpecialistPoolsPage ListSpecialistPoolsPage> { private ListSpecialistPoolsPage( - PageContext + @Nullable + PageContext context, - ListSpecialistPoolsResponse response) { + @Nullable ListSpecialistPoolsResponse response) { super(context, response); } @@ -1571,15 +1573,17 @@ private static ListSpecialistPoolsPage createEmptyPage() { @Override protected ListSpecialistPoolsPage createPage( - PageContext + @Nullable + PageContext context, - ListSpecialistPoolsResponse response) { + @Nullable ListSpecialistPoolsResponse response) { return new ListSpecialistPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1595,7 +1599,7 @@ public static class ListSpecialistPoolsFixedSizeCollection ListSpecialistPoolsFixedSizeCollection> { private ListSpecialistPoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1605,7 +1609,7 @@ private static ListSpecialistPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListSpecialistPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpecialistPoolsFixedSizeCollection(pages, collectionSize); } } @@ -1639,8 +1643,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1650,14 +1654,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1671,7 +1675,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1681,7 +1686,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java index d37b3632ccd2..c6daf6fe9615 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpecialistPoolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java index 8f8ea23a2aab..9870b3c3eae3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java @@ -48,6 +48,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. /** @@ -760,7 +761,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TensorboardServiceClient implements BackgroundResource { - private final TensorboardServiceSettings settings; + private final @Nullable TensorboardServiceSettings settings; private final TensorboardServiceStub stub; private final OperationsClient operationsClient; @@ -803,7 +804,7 @@ protected TensorboardServiceClient(TensorboardServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final TensorboardServiceSettings getSettings() { + public final @Nullable TensorboardServiceSettings getSettings() { return settings; } @@ -845,7 +846,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard) { + createTensorboardAsync(@Nullable TensorboardName parent, Tensorboard tensorboard) { CreateTensorboardRequest request = CreateTensorboardRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -998,7 +999,7 @@ public final UnaryCallable createTensorboar * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tensorboard getTensorboard(TensorboardName name) { + public final Tensorboard getTensorboard(@Nullable TensorboardName name) { GetTensorboardRequest request = GetTensorboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTensorboard(request); @@ -1239,7 +1240,7 @@ public final UnaryCallable updateTensorboar * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTensorboardsPagedResponse listTensorboards(LocationName parent) { + public final ListTensorboardsPagedResponse listTensorboards(@Nullable LocationName parent) { ListTensorboardsRequest request = ListTensorboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1414,7 +1415,7 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardAsync( - TensorboardName name) { + @Nullable TensorboardName name) { DeleteTensorboardRequest request = DeleteTensorboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1558,7 +1559,8 @@ public final UnaryCallable deleteTensorboar * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadTensorboardUsageResponse readTensorboardUsage(TensorboardName tensorboard) { + public final ReadTensorboardUsageResponse readTensorboardUsage( + @Nullable TensorboardName tensorboard) { ReadTensorboardUsageRequest request = ReadTensorboardUsageRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -1680,7 +1682,8 @@ public final ReadTensorboardUsageResponse readTensorboardUsage( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadTensorboardSizeResponse readTensorboardSize(TensorboardName tensorboard) { + public final ReadTensorboardSizeResponse readTensorboardSize( + @Nullable TensorboardName tensorboard) { ReadTensorboardSizeRequest request = ReadTensorboardSizeRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -1810,7 +1813,7 @@ public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSize * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( - TensorboardExperimentName parent, + @Nullable TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId) { CreateTensorboardExperimentRequest request = @@ -1958,7 +1961,8 @@ public final TensorboardExperiment createTensorboardExperiment( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name) { + public final TensorboardExperiment getTensorboardExperiment( + @Nullable TensorboardExperimentName name) { GetTensorboardExperimentRequest request = GetTensorboardExperimentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2187,7 +2191,7 @@ public final TensorboardExperiment updateTensorboardExperiment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments( - TensorboardName parent) { + @Nullable TensorboardName parent) { ListTensorboardExperimentsRequest request = ListTensorboardExperimentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2367,7 +2371,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardExperimentAsync( - TensorboardExperimentName name) { + @Nullable TensorboardExperimentName name) { DeleteTensorboardExperimentRequest request = DeleteTensorboardExperimentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2537,7 +2541,7 @@ public final OperationFuture deleteTensorboardEx * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( - TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) { + @Nullable TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) { CreateTensorboardRunRequest request = CreateTensorboardRunRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2687,7 +2691,7 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( - TensorboardExperimentName parent, List requests) { + @Nullable TensorboardExperimentName parent, List requests) { BatchCreateTensorboardRunsRequest request = BatchCreateTensorboardRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2827,7 +2831,7 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardRun getTensorboardRun(TensorboardRunName name) { + public final TensorboardRun getTensorboardRun(@Nullable TensorboardRunName name) { GetTensorboardRunRequest request = GetTensorboardRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3052,7 +3056,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardRunsPagedResponse listTensorboardRuns( - TensorboardExperimentName parent) { + @Nullable TensorboardExperimentName parent) { ListTensorboardRunsRequest request = ListTensorboardRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3244,7 +3248,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardRunAsync( - TensorboardRunName name) { + @Nullable TensorboardRunName name) { DeleteTensorboardRunRequest request = DeleteTensorboardRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3411,7 +3415,8 @@ public final OperationFuture deleteTensorboardRu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries( - TensorboardExperimentName parent, List requests) { + @Nullable TensorboardExperimentName parent, + List requests) { BatchCreateTensorboardTimeSeriesRequest request = BatchCreateTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3559,7 +3564,7 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardTimeSeries createTensorboardTimeSeries( - TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) { CreateTensorboardTimeSeriesRequest request = CreateTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3715,7 +3720,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSeriesName name) { + public final TensorboardTimeSeries getTensorboardTimeSeries( + @Nullable TensorboardTimeSeriesName name) { GetTensorboardTimeSeriesRequest request = GetTensorboardTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3963,7 +3969,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( - TensorboardRunName parent) { + @Nullable TensorboardRunName parent) { ListTensorboardTimeSeriesRequest request = ListTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4156,7 +4162,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardTimeSeriesAsync( - TensorboardTimeSeriesName name) { + @Nullable TensorboardTimeSeriesName name) { DeleteTensorboardTimeSeriesRequest request = DeleteTensorboardTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4345,7 +4351,7 @@ public final OperationFuture deleteTensorboardTi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData( - TensorboardName tensorboard) { + @Nullable TensorboardName tensorboard) { BatchReadTensorboardTimeSeriesDataRequest request = BatchReadTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -4491,7 +4497,7 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( - TensorboardTimeSeriesName tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName tensorboardTimeSeries) { ReadTensorboardTimeSeriesDataRequest request = ReadTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboardTimeSeries( @@ -4702,7 +4708,7 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData( - TensorboardExperimentName tensorboardExperiment, + @Nullable TensorboardExperimentName tensorboardExperiment, List writeRunDataRequests) { WriteTensorboardExperimentDataRequest request = WriteTensorboardExperimentDataRequest.newBuilder() @@ -4856,7 +4862,7 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteTensorboardRunDataResponse writeTensorboardRunData( - TensorboardRunName tensorboardRun, List timeSeriesData) { + @Nullable TensorboardRunName tensorboardRun, List timeSeriesData) { WriteTensorboardRunDataRequest request = WriteTensorboardRunDataRequest.newBuilder() .setTensorboardRun(tensorboardRun == null ? null : tensorboardRun.toString()) @@ -5006,7 +5012,7 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData( - TensorboardTimeSeriesName tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName tensorboardTimeSeries) { ExportTensorboardTimeSeriesDataRequest request = ExportTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboardTimeSeries( @@ -5628,8 +5634,9 @@ public static class ListTensorboardsPage ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard, ListTensorboardsPage> { private ListTensorboardsPage( - PageContext context, - ListTensorboardsResponse response) { + @Nullable PageContext + context, + @Nullable ListTensorboardsResponse response) { super(context, response); } @@ -5639,14 +5646,16 @@ private static ListTensorboardsPage createEmptyPage() { @Override protected ListTensorboardsPage createPage( - PageContext context, - ListTensorboardsResponse response) { + @Nullable PageContext + context, + @Nullable ListTensorboardsResponse response) { return new ListTensorboardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5661,7 +5670,7 @@ public static class ListTensorboardsFixedSizeCollection ListTensorboardsFixedSizeCollection> { private ListTensorboardsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5671,7 +5680,7 @@ private static ListTensorboardsFixedSizeCollection createEmptyCollection() { @Override protected ListTensorboardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardsFixedSizeCollection(pages, collectionSize); } } @@ -5712,12 +5721,13 @@ public static class ListTensorboardExperimentsPage ListTensorboardExperimentsPage> { private ListTensorboardExperimentsPage( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> context, - ListTensorboardExperimentsResponse response) { + @Nullable ListTensorboardExperimentsResponse response) { super(context, response); } @@ -5727,18 +5737,20 @@ private static ListTensorboardExperimentsPage createEmptyPage() { @Override protected ListTensorboardExperimentsPage createPage( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> context, - ListTensorboardExperimentsResponse response) { + @Nullable ListTensorboardExperimentsResponse response) { return new ListTensorboardExperimentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> @@ -5757,7 +5769,7 @@ public static class ListTensorboardExperimentsFixedSizeCollection ListTensorboardExperimentsFixedSizeCollection> { private ListTensorboardExperimentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5767,7 +5779,7 @@ private static ListTensorboardExperimentsFixedSizeCollection createEmptyCollecti @Override protected ListTensorboardExperimentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardExperimentsFixedSizeCollection(pages, collectionSize); } } @@ -5805,9 +5817,10 @@ public static class ListTensorboardRunsPage ListTensorboardRunsPage> { private ListTensorboardRunsPage( - PageContext + @Nullable + PageContext context, - ListTensorboardRunsResponse response) { + @Nullable ListTensorboardRunsResponse response) { super(context, response); } @@ -5817,15 +5830,17 @@ private static ListTensorboardRunsPage createEmptyPage() { @Override protected ListTensorboardRunsPage createPage( - PageContext + @Nullable + PageContext context, - ListTensorboardRunsResponse response) { + @Nullable ListTensorboardRunsResponse response) { return new ListTensorboardRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5841,7 +5856,7 @@ public static class ListTensorboardRunsFixedSizeCollection ListTensorboardRunsFixedSizeCollection> { private ListTensorboardRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5851,7 +5866,7 @@ private static ListTensorboardRunsFixedSizeCollection createEmptyCollection() { @Override protected ListTensorboardRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardRunsFixedSizeCollection(pages, collectionSize); } } @@ -5892,12 +5907,13 @@ public static class ListTensorboardTimeSeriesPage ListTensorboardTimeSeriesPage> { private ListTensorboardTimeSeriesPage( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> context, - ListTensorboardTimeSeriesResponse response) { + @Nullable ListTensorboardTimeSeriesResponse response) { super(context, response); } @@ -5907,18 +5923,20 @@ private static ListTensorboardTimeSeriesPage createEmptyPage() { @Override protected ListTensorboardTimeSeriesPage createPage( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> context, - ListTensorboardTimeSeriesResponse response) { + @Nullable ListTensorboardTimeSeriesResponse response) { return new ListTensorboardTimeSeriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> @@ -5937,7 +5955,7 @@ public static class ListTensorboardTimeSeriesFixedSizeCollection ListTensorboardTimeSeriesFixedSizeCollection> { private ListTensorboardTimeSeriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5947,7 +5965,7 @@ private static ListTensorboardTimeSeriesFixedSizeCollection createEmptyCollectio @Override protected ListTensorboardTimeSeriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardTimeSeriesFixedSizeCollection(pages, collectionSize); } } @@ -5989,12 +6007,13 @@ public static class ExportTensorboardTimeSeriesDataPage ExportTensorboardTimeSeriesDataPage> { private ExportTensorboardTimeSeriesDataPage( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> context, - ExportTensorboardTimeSeriesDataResponse response) { + @Nullable ExportTensorboardTimeSeriesDataResponse response) { super(context, response); } @@ -6004,18 +6023,20 @@ private static ExportTensorboardTimeSeriesDataPage createEmptyPage() { @Override protected ExportTensorboardTimeSeriesDataPage createPage( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> context, - ExportTensorboardTimeSeriesDataResponse response) { + @Nullable ExportTensorboardTimeSeriesDataResponse response) { return new ExportTensorboardTimeSeriesDataPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> @@ -6034,7 +6055,7 @@ public static class ExportTensorboardTimeSeriesDataFixedSizeCollection ExportTensorboardTimeSeriesDataFixedSizeCollection> { private ExportTensorboardTimeSeriesDataFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6044,7 +6065,7 @@ private static ExportTensorboardTimeSeriesDataFixedSizeCollection createEmptyCol @Override protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize); } } @@ -6078,8 +6099,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6089,14 +6110,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6110,7 +6131,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6120,7 +6142,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java index e5d510ebeca9..ca2106ccc02d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -451,7 +452,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -471,7 +472,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TensorboardServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java index ab00c257941b..d1002810157f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceClient.java @@ -46,6 +46,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. /** @@ -431,7 +432,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VertexRagDataServiceClient implements BackgroundResource { - private final VertexRagDataServiceSettings settings; + private final @Nullable VertexRagDataServiceSettings settings; private final VertexRagDataServiceStub stub; private final OperationsClient operationsClient; @@ -474,7 +475,7 @@ protected VertexRagDataServiceClient(VertexRagDataServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VertexRagDataServiceSettings getSettings() { + public final @Nullable VertexRagDataServiceSettings getSettings() { return settings; } @@ -516,7 +517,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRagCorpusAsync( - LocationName parent, RagCorpus ragCorpus) { + @Nullable LocationName parent, RagCorpus ragCorpus) { CreateRagCorpusRequest request = CreateRagCorpusRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -786,7 +787,7 @@ public final UnaryCallable updateRagCorpusCal * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagCorpus getRagCorpus(RagCorpusName name) { + public final RagCorpus getRagCorpus(@Nullable RagCorpusName name) { GetRagCorpusRequest request = GetRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagCorpus(request); @@ -903,7 +904,7 @@ public final UnaryCallable getRagCorpusCallable( * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagCorporaPagedResponse listRagCorpora(LocationName parent) { + public final ListRagCorporaPagedResponse listRagCorpora(@Nullable LocationName parent) { ListRagCorporaRequest request = ListRagCorporaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1073,7 +1074,7 @@ public final ListRagCorporaPagedResponse listRagCorpora(ListRagCorporaRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRagCorpusAsync( - RagCorpusName name) { + @Nullable RagCorpusName name) { DeleteRagCorpusRequest request = DeleteRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRagCorpusAsync(request); @@ -1230,7 +1231,7 @@ public final UnaryCallable deleteRagCorpusCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UploadRagFileResponse uploadRagFile( - RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { + @Nullable RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { UploadRagFileRequest request = UploadRagFileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1372,7 +1373,8 @@ public final UnaryCallable uploadRa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) { + importRagFilesAsync( + @Nullable RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) { ImportRagFilesRequest request = ImportRagFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1536,7 +1538,7 @@ public final UnaryCallable importRagFilesCalla * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagFile getRagFile(RagFileName name) { + public final RagFile getRagFile(@Nullable RagFileName name) { GetRagFileRequest request = GetRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagFile(request); @@ -1658,7 +1660,7 @@ public final UnaryCallable getRagFileCallable() { * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagFilesPagedResponse listRagFiles(RagCorpusName parent) { + public final ListRagFilesPagedResponse listRagFiles(@Nullable RagCorpusName parent) { ListRagFilesRequest request = ListRagFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1827,7 +1829,7 @@ public final UnaryCallable listRagFil * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRagFileAsync( - RagFileName name) { + @Nullable RagFileName name) { DeleteRagFileRequest request = DeleteRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRagFileAsync(request); @@ -2104,7 +2106,7 @@ public final UnaryCallable deleteRagFileCallabl * `projects/{project}/locations/{location}/ragEngineConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagEngineConfig getRagEngineConfig(RagEngineConfigName name) { + public final RagEngineConfig getRagEngineConfig(@Nullable RagEngineConfigName name) { GetRagEngineConfigRequest request = GetRagEngineConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2638,8 +2640,8 @@ public static class ListRagCorporaPage ListRagCorporaRequest, ListRagCorporaResponse, RagCorpus, ListRagCorporaPage> { private ListRagCorporaPage( - PageContext context, - ListRagCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListRagCorporaResponse response) { super(context, response); } @@ -2649,14 +2651,14 @@ private static ListRagCorporaPage createEmptyPage() { @Override protected ListRagCorporaPage createPage( - PageContext context, - ListRagCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListRagCorporaResponse response) { return new ListRagCorporaPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2670,7 +2672,8 @@ public static class ListRagCorporaFixedSizeCollection ListRagCorporaPage, ListRagCorporaFixedSizeCollection> { - private ListRagCorporaFixedSizeCollection(List pages, int collectionSize) { + private ListRagCorporaFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2680,7 +2683,7 @@ private static ListRagCorporaFixedSizeCollection createEmptyCollection() { @Override protected ListRagCorporaFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagCorporaFixedSizeCollection(pages, collectionSize); } } @@ -2713,8 +2716,8 @@ public static class ListRagFilesPage extends AbstractPage { private ListRagFilesPage( - PageContext context, - ListRagFilesResponse response) { + @Nullable PageContext context, + @Nullable ListRagFilesResponse response) { super(context, response); } @@ -2724,14 +2727,14 @@ private static ListRagFilesPage createEmptyPage() { @Override protected ListRagFilesPage createPage( - PageContext context, - ListRagFilesResponse response) { + @Nullable PageContext context, + @Nullable ListRagFilesResponse response) { return new ListRagFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2745,7 +2748,8 @@ public static class ListRagFilesFixedSizeCollection ListRagFilesPage, ListRagFilesFixedSizeCollection> { - private ListRagFilesFixedSizeCollection(List pages, int collectionSize) { + private ListRagFilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2755,7 +2759,7 @@ private static ListRagFilesFixedSizeCollection createEmptyCollection() { @Override protected ListRagFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagFilesFixedSizeCollection(pages, collectionSize); } } @@ -2789,8 +2793,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2800,14 +2804,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2821,7 +2825,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2831,7 +2836,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java index d50f4092b768..4bc7a3034677 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -307,7 +308,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -328,7 +329,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VertexRagDataServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java index d3b7d7d48a6e..aef4094d0c7d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceClient.java @@ -45,6 +45,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. /** @@ -292,7 +293,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VertexRagServiceClient implements BackgroundResource { - private final VertexRagServiceSettings settings; + private final @Nullable VertexRagServiceSettings settings; private final VertexRagServiceStub stub; private final OperationsClient operationsClient; @@ -335,7 +336,7 @@ protected VertexRagServiceClient(VertexRagServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VertexRagServiceSettings getSettings() { + public final @Nullable VertexRagServiceSettings getSettings() { return settings; } @@ -376,7 +377,8 @@ public final OperationsClient getOperationsClient() { * @param query Required. Single RAG retrieve query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetrieveContextsResponse retrieveContexts(LocationName parent, RagQuery query) { + public final RetrieveContextsResponse retrieveContexts( + @Nullable LocationName parent, RagQuery query) { RetrieveContextsRequest request = RetrieveContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -505,7 +507,9 @@ public final RetrieveContextsResponse retrieveContexts(RetrieveContextsRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AugmentPromptResponse augmentPrompt( - LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + @Nullable LocationName parent, + AugmentPromptRequest.Model model, + VertexRagStore vertexRagStore) { AugmentPromptRequest request = AugmentPromptRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -648,7 +652,7 @@ public final UnaryCallable augmentP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CorroborateContentResponse corroborateContent( - LocationName parent, Content content, List facts) { + @Nullable LocationName parent, Content content, List facts) { CorroborateContentRequest request = CorroborateContentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -789,7 +793,7 @@ public final CorroborateContentResponse corroborateContent(CorroborateContentReq * @param query Required. Single RAG retrieve query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AskContextsResponse askContexts(LocationName parent, RagQuery query) { + public final AskContextsResponse askContexts(@Nullable LocationName parent, RagQuery query) { AskContextsRequest request = AskContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -917,7 +921,7 @@ public final UnaryCallable askContextsC */ public final OperationFuture< AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata> - asyncRetrieveContextsAsync(LocationName parent, RagQuery query) { + asyncRetrieveContextsAsync(@Nullable LocationName parent, RagQuery query) { AsyncRetrieveContextsRequest request = AsyncRetrieveContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1483,8 +1487,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1494,14 +1498,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1515,7 +1519,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1525,7 +1530,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java index 53fb56dcf554..a59d685f8a9b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VertexRagServiceSettings.java @@ -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. /** @@ -234,7 +235,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VertexRagServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java index 0233dfb304a8..91ec9d838973 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java @@ -46,6 +46,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. /** @@ -461,7 +462,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VizierServiceClient implements BackgroundResource { - private final VizierServiceSettings settings; + private final @Nullable VizierServiceSettings settings; private final VizierServiceStub stub; private final OperationsClient operationsClient; @@ -504,7 +505,7 @@ protected VizierServiceClient(VizierServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VizierServiceSettings getSettings() { + public final @Nullable VizierServiceSettings getSettings() { return settings; } @@ -544,7 +545,7 @@ public final OperationsClient getOperationsClient() { * @param study Required. The Study configuration used to create the Study. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study createStudy(LocationName parent, Study study) { + public final Study createStudy(@Nullable LocationName parent, Study study) { CreateStudyRequest request = CreateStudyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -662,7 +663,7 @@ public final UnaryCallable createStudyCallable() { * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study getStudy(StudyName name) { + public final Study getStudy(@Nullable StudyName name) { GetStudyRequest request = GetStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStudy(request); @@ -774,7 +775,7 @@ public final UnaryCallable getStudyCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStudiesPagedResponse listStudies(LocationName parent) { + public final ListStudiesPagedResponse listStudies(@Nullable LocationName parent) { ListStudiesRequest request = ListStudiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -935,7 +936,7 @@ public final UnaryCallable listStudiesC * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStudy(StudyName name) { + public final void deleteStudy(@Nullable StudyName name) { DeleteStudyRequest request = DeleteStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteStudy(request); @@ -1046,7 +1047,7 @@ public final UnaryCallable deleteStudyCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study lookupStudy(LocationName parent) { + public final Study lookupStudy(@Nullable LocationName parent) { LookupStudyRequest request = LookupStudyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1268,7 +1269,7 @@ public final UnaryCallable suggestTrialsCallabl * @param trial Required. The Trial to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Trial createTrial(StudyName parent, Trial trial) { + public final Trial createTrial(@Nullable StudyName parent, Trial trial) { CreateTrialRequest request = CreateTrialRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1386,7 +1387,7 @@ public final UnaryCallable createTrialCallable() { * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Trial getTrial(TrialName name) { + public final Trial getTrial(@Nullable TrialName name) { GetTrialRequest request = GetTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTrial(request); @@ -1498,7 +1499,7 @@ public final UnaryCallable getTrialCallable() { * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTrialsPagedResponse listTrials(StudyName parent) { + public final ListTrialsPagedResponse listTrials(@Nullable StudyName parent) { ListTrialsRequest request = ListTrialsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTrials(request); @@ -1779,7 +1780,7 @@ public final UnaryCallable completeTrialCallable() * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTrial(TrialName name) { + public final void deleteTrial(@Nullable TrialName name) { DeleteTrialRequest request = DeleteTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTrial(request); @@ -2049,7 +2050,7 @@ public final UnaryCallable stopTrialCallable() { * @param parent Required. The name of the Study that the optimal Trial belongs to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOptimalTrialsResponse listOptimalTrials(StudyName parent) { + public final ListOptimalTrialsResponse listOptimalTrials(@Nullable StudyName parent) { ListOptimalTrialsRequest request = ListOptimalTrialsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2567,8 +2568,8 @@ public static class ListStudiesPage extends AbstractPage { private ListStudiesPage( - PageContext context, - ListStudiesResponse response) { + @Nullable PageContext context, + @Nullable ListStudiesResponse response) { super(context, response); } @@ -2578,14 +2579,14 @@ private static ListStudiesPage createEmptyPage() { @Override protected ListStudiesPage createPage( - PageContext context, - ListStudiesResponse response) { + @Nullable PageContext context, + @Nullable ListStudiesResponse response) { return new ListStudiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2599,7 +2600,8 @@ public static class ListStudiesFixedSizeCollection ListStudiesPage, ListStudiesFixedSizeCollection> { - private ListStudiesFixedSizeCollection(List pages, int collectionSize) { + private ListStudiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2609,7 +2611,7 @@ private static ListStudiesFixedSizeCollection createEmptyCollection() { @Override protected ListStudiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStudiesFixedSizeCollection(pages, collectionSize); } } @@ -2640,8 +2642,8 @@ public static class ListTrialsPage extends AbstractPage { private ListTrialsPage( - PageContext context, - ListTrialsResponse response) { + @Nullable PageContext context, + @Nullable ListTrialsResponse response) { super(context, response); } @@ -2651,14 +2653,14 @@ private static ListTrialsPage createEmptyPage() { @Override protected ListTrialsPage createPage( - PageContext context, - ListTrialsResponse response) { + @Nullable PageContext context, + @Nullable ListTrialsResponse response) { return new ListTrialsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2672,7 +2674,8 @@ public static class ListTrialsFixedSizeCollection ListTrialsPage, ListTrialsFixedSizeCollection> { - private ListTrialsFixedSizeCollection(List pages, int collectionSize) { + private ListTrialsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2682,7 +2685,7 @@ private static ListTrialsFixedSizeCollection createEmptyCollection() { @Override protected ListTrialsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTrialsFixedSizeCollection(pages, collectionSize); } } @@ -2716,8 +2719,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2727,14 +2730,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2748,7 +2751,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2758,7 +2762,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java index c5b8c045e80c..5fe62c2eda3c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -292,7 +293,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -312,7 +313,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VizierServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DataFoundryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DataFoundryServiceStubSettings.java index 7aebb785cc8a..61cdce4db6d9 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DataFoundryServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DataFoundryServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -352,7 +353,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateSyntheticDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java index b7f17546462c..a914820382af 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java @@ -77,6 +77,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,7 +89,7 @@ @Generated("by gapic-generator-java") public abstract class DatasetServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java index 803ed44f7a59..a3c0c40a31d3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java @@ -111,6 +111,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -893,7 +894,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1050,7 +1051,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStub.java index f8830e714e9b..6f62531442be 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -60,7 +61,7 @@ @Generated("by gapic-generator-java") public abstract class DeploymentResourcePoolServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java index 9f15f27f7a07..beb7b674ee29 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DeploymentResourcePoolServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -552,7 +553,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -664,7 +665,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDeploymentResourcePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java index ce5d5b69969f..7c922ccda76f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java @@ -56,6 +56,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,7 +68,7 @@ @Generated("by gapic-generator-java") public abstract class EndpointServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java index 27ebd37cc178..6a9f9af9fe5b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -499,7 +500,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -614,7 +615,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EvaluationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EvaluationServiceStubSettings.java index 7e3a65d6a154..e494eafe9266 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EvaluationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EvaluationServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -350,7 +351,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); evaluateInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStub.java index 5df57b50927b..c0aef0dc0f82 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStub.java @@ -63,6 +63,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,7 +75,7 @@ @Generated("by gapic-generator-java") public abstract class FeatureOnlineStoreAdminServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java index 748331266b80..a91207150df1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreAdminServiceStubSettings.java @@ -93,6 +93,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -704,7 +705,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -848,7 +849,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeatureOnlineStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java index c9caf69e6b41..02521d210434 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -316,7 +317,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -395,7 +396,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); fetchFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java index 8fe16c2531e2..95d380a5da5c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStub.java @@ -59,6 +59,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,7 +71,7 @@ @Generated("by gapic-generator-java") public abstract class FeatureRegistryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java index b3a95d1b4bc8..846ab33445b2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureRegistryServiceStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -582,7 +583,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -711,7 +712,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeatureGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java index f6d58270880c..5f423b16bc79 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -308,7 +309,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java index 6ac2ca08458e..abec5402b3ea 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java @@ -82,6 +82,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,7 +94,7 @@ @Generated("by gapic-generator-java") public abstract class FeaturestoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java index dcc76e4023ae..536c89a50b26 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java @@ -112,6 +112,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -849,7 +850,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1041,7 +1042,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java index ede77898e48f..fa707aca7493 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -459,7 +460,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStub.java index 9f8f3c172584..d39dad0e2077 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class GenAiTuningServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java index a3eefce3e122..85f2b57a24bc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiTuningServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -412,7 +413,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -494,7 +495,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTuningJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java index 74cf65871d32..cf54a26ab89b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,7 +66,7 @@ @Generated("by gapic-generator-java") public abstract class IndexEndpointServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java index 00fd26b6a903..c82d571c0749 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -495,7 +496,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -607,7 +608,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java index 9482f117767c..b94e927bddfe 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class IndexServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java index ac6793e7eb70..1c6bf4052f03 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -444,7 +445,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -536,7 +537,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java index ac18e8ad2fbb..508849c0da01 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java @@ -95,6 +95,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -106,7 +107,7 @@ @Generated("by gapic-generator-java") public abstract class JobServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java index 75f89d888772..de4e53674d84 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java @@ -126,6 +126,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1273,7 +1274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1506,7 +1507,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCustomJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java index d19f4edbd13b..618aedc4b73d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/LlmUtilityServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -360,7 +361,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); countTokensSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java index b2e404d6c319..cfd92d264672 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MatchServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -292,7 +293,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); findNeighborsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java index 181b916394a2..7c376737b0f3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java @@ -96,6 +96,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -107,7 +108,7 @@ @Generated("by gapic-generator-java") public abstract class MetadataServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java index 0bbaa6384d55..ed12878c0a2b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java @@ -126,6 +126,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -943,7 +944,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1140,7 +1141,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMetadataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java index 8527ea870015..e693ee75baa5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java @@ -40,6 +40,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,7 +52,7 @@ @Generated("by gapic-generator-java") public abstract class MigrationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java index eef5009c90a5..3a5a4e43775e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -421,7 +422,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -500,7 +501,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchMigratableResourcesSettings = diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStub.java index eb93ef9a58a3..5463823df80d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStub.java @@ -39,6 +39,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,7 +51,7 @@ @Generated("by gapic-generator-java") public abstract class ModelGardenServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java index b5097cb14da0..e0335b880e75 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelGardenServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -405,7 +406,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPublisherModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java index 06c2e1549806..6c4595748df3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java @@ -78,6 +78,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -89,7 +90,7 @@ @Generated("by gapic-generator-java") public abstract class ModelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java index b3d179e1a44e..ee80f996a09d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java @@ -109,6 +109,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -888,7 +889,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1045,7 +1046,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); uploadModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java index c4bb1c60561d..e4bfc73dab5e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStub.java @@ -70,6 +70,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -81,7 +82,7 @@ @Generated("by gapic-generator-java") public abstract class NotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java index ad0d7595f73f..7e760ed74b4d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/NotebookServiceStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -806,7 +807,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -990,7 +991,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNotebookRuntimeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStub.java index ab15c09df205..2366eb70c473 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,7 +60,7 @@ @Generated("by gapic-generator-java") public abstract class PersistentResourceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java index 9ac3553d7998..28a855b7abec 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PersistentResourceServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -496,7 +497,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -607,7 +608,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPersistentResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java index 98d137546a1e..88703e1094b6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,7 +69,7 @@ @Generated("by gapic-generator-java") public abstract class PipelineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java index 3f968caf4738..83c5a488e183 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -583,7 +584,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -710,7 +711,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTrainingPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java index 7556f44ba543..ca4cdeec4c0e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -404,7 +405,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -511,7 +512,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java index 9ec1ddc10860..492ac4db4db0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java @@ -44,6 +44,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java index e7f501089c27..52095c9a6f7c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -368,7 +369,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java index 57d123a34838..b96c3a643351 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,7 +58,7 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java index 93508bf96c5f..e1d6ea71847d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -456,7 +457,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -553,7 +554,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStub.java index 58472f1db86a..ae83de11f9e2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,7 +58,7 @@ @Generated("by gapic-generator-java") public abstract class ScheduleServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java index a91921507bb6..bd6898c56c3f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ScheduleServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -421,7 +422,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -505,7 +506,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createScheduleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStub.java index c8ff2667d4cb..1aecafdc923e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class SessionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStubSettings.java index 5479fcc1c618..1b100a7fe82f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SessionServiceStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -487,7 +488,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -577,7 +578,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java index 0b5066bfe4fd..4fc3e39a9ac4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,7 +58,7 @@ @Generated("by gapic-generator-java") public abstract class SpecialistPoolServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java index 4d407330a155..a53431ba434b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -444,7 +445,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -541,7 +542,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSpecialistPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java index e91aa85cf978..2c0022b87b42 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java @@ -92,6 +92,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -103,7 +104,7 @@ @Generated("by gapic-generator-java") public abstract class TensorboardServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java index 55b5ca4f1947..22172a9dab26 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java @@ -123,6 +123,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1031,7 +1032,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1253,7 +1254,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java index 3b73aecad47b..31d34c889544 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStub.java @@ -61,6 +61,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -72,7 +73,7 @@ @Generated("by gapic-generator-java") public abstract class VertexRagDataServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java index 5eed9ece4233..7f5f2b068174 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagDataServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -575,7 +576,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -699,7 +700,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java index ae603ea8c4a5..6525b6e6a9b6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStub.java @@ -45,6 +45,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,7 +57,7 @@ @Generated("by gapic-generator-java") public abstract class VertexRagServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java index 65b91f07943f..9ede832c837d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VertexRagServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -367,7 +368,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -452,7 +453,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); retrieveContextsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java index 4ebe4c9883c8..912b05f6775a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java @@ -61,6 +61,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -72,7 +73,7 @@ @Generated("by gapic-generator-java") public abstract class VizierServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java index e1f91541dd55..3d7fcf49f49b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -555,7 +556,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -667,7 +668,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java index f1cac91c9e13..7b438619c000 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java @@ -48,6 +48,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. /** @@ -594,7 +595,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DatasetServiceClient implements BackgroundResource { - private final DatasetServiceSettings settings; + private final @Nullable DatasetServiceSettings settings; private final DatasetServiceStub stub; private final OperationsClient operationsClient; @@ -637,7 +638,7 @@ protected DatasetServiceClient(DatasetServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DatasetServiceSettings getSettings() { + public final @Nullable DatasetServiceSettings getSettings() { return settings; } @@ -678,7 +679,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetAsync( - LocationName parent, Dataset dataset) { + @Nullable LocationName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -828,7 +829,7 @@ public final UnaryCallable createDatasetCallabl * @param name Required. The name of the Dataset resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -1029,7 +1030,7 @@ public final UnaryCallable updateDatasetCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(LocationName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable LocationName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1201,7 +1202,7 @@ public final UnaryCallable listDatase * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatasetAsync( - DatasetName name) { + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -1346,7 +1347,7 @@ public final UnaryCallable deleteDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDataAsync( - DatasetName name, List importConfigs) { + @Nullable DatasetName name, List importConfigs) { ImportDataRequest request = ImportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1500,7 +1501,7 @@ public final UnaryCallable importDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportDataAsync( - DatasetName name, ExportDataConfig exportConfig) { + @Nullable DatasetName name, ExportDataConfig exportConfig) { ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1656,7 +1657,7 @@ public final UnaryCallable exportDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createDatasetVersionAsync(DatasetName parent, DatasetVersion datasetVersion) { + createDatasetVersionAsync(@Nullable DatasetName parent, DatasetVersion datasetVersion) { CreateDatasetVersionRequest request = CreateDatasetVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1912,7 +1913,7 @@ public final DatasetVersion updateDatasetVersion(UpdateDatasetVersionRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatasetVersionAsync( - DatasetVersionName name) { + @Nullable DatasetVersionName name) { DeleteDatasetVersionRequest request = DeleteDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2067,7 +2068,7 @@ public final OperationFuture deleteDatasetVersio * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DatasetVersion getDatasetVersion(DatasetVersionName name) { + public final DatasetVersion getDatasetVersion(@Nullable DatasetVersionName name) { GetDatasetVersionRequest request = GetDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2190,7 +2191,7 @@ public final UnaryCallable getDatasetV * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetVersionsPagedResponse listDatasetVersions(DatasetName parent) { + public final ListDatasetVersionsPagedResponse listDatasetVersions(@Nullable DatasetName parent) { ListDatasetVersionsRequest request = ListDatasetVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2368,7 +2369,7 @@ public final ListDatasetVersionsPagedResponse listDatasetVersions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - restoreDatasetVersionAsync(DatasetVersionName name) { + restoreDatasetVersionAsync(@Nullable DatasetVersionName name) { RestoreDatasetVersionRequest request = RestoreDatasetVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2525,7 +2526,7 @@ public final ListDatasetVersionsPagedResponse listDatasetVersions( * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataItemsPagedResponse listDataItems(DatasetName parent) { + public final ListDataItemsPagedResponse listDataItems(@Nullable DatasetName parent) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2833,7 +2834,7 @@ public final SearchDataItemsPagedResponse searchDataItems(SearchDataItemsRequest * `projects/{project}/locations/{location}/datasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(DatasetName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable DatasetName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3009,7 +3010,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(ListSavedQueriesRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSavedQueryAsync( - SavedQueryName name) { + @Nullable SavedQueryName name) { DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSavedQueryAsync(request); @@ -3158,7 +3159,7 @@ public final UnaryCallable deleteSavedQueryC * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { + public final AnnotationSpec getAnnotationSpec(@Nullable AnnotationSpecName name) { GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3281,7 +3282,7 @@ public final UnaryCallable getAnnotati * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { + public final ListAnnotationsPagedResponse listAnnotations(@Nullable DataItemName parent) { ListAnnotationsRequest request = ListAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4035,8 +4036,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -4046,14 +4047,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4067,7 +4068,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4077,7 +4079,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -4115,9 +4117,10 @@ public static class ListDatasetVersionsPage ListDatasetVersionsPage> { private ListDatasetVersionsPage( - PageContext + @Nullable + PageContext context, - ListDatasetVersionsResponse response) { + @Nullable ListDatasetVersionsResponse response) { super(context, response); } @@ -4127,15 +4130,17 @@ private static ListDatasetVersionsPage createEmptyPage() { @Override protected ListDatasetVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListDatasetVersionsResponse response) { + @Nullable ListDatasetVersionsResponse response) { return new ListDatasetVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4151,7 +4156,7 @@ public static class ListDatasetVersionsFixedSizeCollection ListDatasetVersionsFixedSizeCollection> { private ListDatasetVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4161,7 +4166,7 @@ private static ListDatasetVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4195,8 +4200,8 @@ public static class ListDataItemsPage ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage> { private ListDataItemsPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { super(context, response); } @@ -4206,14 +4211,14 @@ private static ListDataItemsPage createEmptyPage() { @Override protected ListDataItemsPage createPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { return new ListDataItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4227,7 +4232,8 @@ public static class ListDataItemsFixedSizeCollection ListDataItemsPage, ListDataItemsFixedSizeCollection> { - private ListDataItemsFixedSizeCollection(List pages, int collectionSize) { + private ListDataItemsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4237,7 +4243,7 @@ private static ListDataItemsFixedSizeCollection createEmptyCollection() { @Override protected ListDataItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataItemsFixedSizeCollection(pages, collectionSize); } } @@ -4271,8 +4277,9 @@ public static class SearchDataItemsPage SearchDataItemsRequest, SearchDataItemsResponse, DataItemView, SearchDataItemsPage> { private SearchDataItemsPage( - PageContext context, - SearchDataItemsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataItemsResponse response) { super(context, response); } @@ -4282,14 +4289,16 @@ private static SearchDataItemsPage createEmptyPage() { @Override protected SearchDataItemsPage createPage( - PageContext context, - SearchDataItemsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataItemsResponse response) { return new SearchDataItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4304,7 +4313,7 @@ public static class SearchDataItemsFixedSizeCollection SearchDataItemsFixedSizeCollection> { private SearchDataItemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4314,7 +4323,7 @@ private static SearchDataItemsFixedSizeCollection createEmptyCollection() { @Override protected SearchDataItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDataItemsFixedSizeCollection(pages, collectionSize); } } @@ -4348,8 +4357,9 @@ public static class ListSavedQueriesPage ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { private ListSavedQueriesPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { super(context, response); } @@ -4359,14 +4369,16 @@ private static ListSavedQueriesPage createEmptyPage() { @Override protected ListSavedQueriesPage createPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { return new ListSavedQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4381,7 +4393,7 @@ public static class ListSavedQueriesFixedSizeCollection ListSavedQueriesFixedSizeCollection> { private ListSavedQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4391,7 +4403,7 @@ private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSavedQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); } } @@ -4425,8 +4437,8 @@ public static class ListAnnotationsPage ListAnnotationsRequest, ListAnnotationsResponse, Annotation, ListAnnotationsPage> { private ListAnnotationsPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { super(context, response); } @@ -4436,14 +4448,14 @@ private static ListAnnotationsPage createEmptyPage() { @Override protected ListAnnotationsPage createPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { return new ListAnnotationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4458,7 +4470,7 @@ public static class ListAnnotationsFixedSizeCollection ListAnnotationsFixedSizeCollection> { private ListAnnotationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4468,7 +4480,7 @@ private static ListAnnotationsFixedSizeCollection createEmptyCollection() { @Override protected ListAnnotationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnnotationsFixedSizeCollection(pages, collectionSize); } } @@ -4502,8 +4514,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4513,14 +4525,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4534,7 +4546,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4544,7 +4557,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index e4dcd542d2fa..10a502610e5b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -406,7 +407,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatasetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java index 62abeececd6d..f0ad59e27dcc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java @@ -48,6 +48,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. /** @@ -319,7 +320,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DeploymentResourcePoolServiceClient implements BackgroundResource { - private final DeploymentResourcePoolServiceSettings settings; + private final @Nullable DeploymentResourcePoolServiceSettings settings; private final DeploymentResourcePoolServiceStub stub; private final OperationsClient operationsClient; @@ -366,7 +367,7 @@ protected DeploymentResourcePoolServiceClient(DeploymentResourcePoolServiceStub this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DeploymentResourcePoolServiceSettings getSettings() { + public final @Nullable DeploymentResourcePoolServiceSettings getSettings() { return settings; } @@ -419,7 +420,7 @@ public final OperationsClient getOperationsClient() { public final OperationFuture< DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> createDeploymentResourcePoolAsync( - LocationName parent, + @Nullable LocationName parent, DeploymentResourcePool deploymentResourcePool, String deploymentResourcePoolId) { CreateDeploymentResourcePoolRequest request = @@ -611,7 +612,8 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResourcePoolName name) { + public final DeploymentResourcePool getDeploymentResourcePool( + @Nullable DeploymentResourcePoolName name) { GetDeploymentResourcePoolRequest request = GetDeploymentResourcePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -747,7 +749,7 @@ public final DeploymentResourcePool getDeploymentResourcePool( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools( - ProjectName parent) { + @Nullable ProjectName parent) { ListDeploymentResourcePoolsRequest request = ListDeploymentResourcePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1071,7 +1073,7 @@ public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePool * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeploymentResourcePoolAsync( - DeploymentResourcePoolName name) { + @Nullable DeploymentResourcePoolName name) { DeleteDeploymentResourcePoolRequest request = DeleteDeploymentResourcePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1812,12 +1814,13 @@ public static class ListDeploymentResourcePoolsPage ListDeploymentResourcePoolsPage> { private ListDeploymentResourcePoolsPage( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> context, - ListDeploymentResourcePoolsResponse response) { + @Nullable ListDeploymentResourcePoolsResponse response) { super(context, response); } @@ -1827,18 +1830,20 @@ private static ListDeploymentResourcePoolsPage createEmptyPage() { @Override protected ListDeploymentResourcePoolsPage createPage( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> context, - ListDeploymentResourcePoolsResponse response) { + @Nullable ListDeploymentResourcePoolsResponse response) { return new ListDeploymentResourcePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse, DeploymentResourcePool> @@ -1857,7 +1862,7 @@ public static class ListDeploymentResourcePoolsFixedSizeCollection ListDeploymentResourcePoolsFixedSizeCollection> { private ListDeploymentResourcePoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1867,7 +1872,7 @@ private static ListDeploymentResourcePoolsFixedSizeCollection createEmptyCollect @Override protected ListDeploymentResourcePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentResourcePoolsFixedSizeCollection(pages, collectionSize); } } @@ -1904,8 +1909,10 @@ public static class QueryDeployedModelsPage QueryDeployedModelsPage> { private QueryDeployedModelsPage( - PageContext context, - QueryDeployedModelsResponse response) { + @Nullable + PageContext + context, + @Nullable QueryDeployedModelsResponse response) { super(context, response); } @@ -1915,14 +1922,18 @@ private static QueryDeployedModelsPage createEmptyPage() { @Override protected QueryDeployedModelsPage createPage( - PageContext context, - QueryDeployedModelsResponse response) { + @Nullable + PageContext + context, + @Nullable QueryDeployedModelsResponse response) { return new QueryDeployedModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1937,7 +1948,7 @@ public static class QueryDeployedModelsFixedSizeCollection QueryDeployedModelsFixedSizeCollection> { private QueryDeployedModelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1947,7 +1958,7 @@ private static QueryDeployedModelsFixedSizeCollection createEmptyCollection() { @Override protected QueryDeployedModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDeployedModelsFixedSizeCollection(pages, collectionSize); } } @@ -1981,8 +1992,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1992,14 +2003,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2013,7 +2024,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2023,7 +2035,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java index 06f5fbd470aa..08eca8c8e9f1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -277,7 +278,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -298,7 +299,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeploymentResourcePoolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java index b20105b6ac74..15b6037bd500 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java @@ -49,6 +49,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. /** @@ -418,7 +419,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EndpointServiceClient implements BackgroundResource { - private final EndpointServiceSettings settings; + private final @Nullable EndpointServiceSettings settings; private final EndpointServiceStub stub; private final OperationsClient operationsClient; @@ -461,7 +462,7 @@ protected EndpointServiceClient(EndpointServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final EndpointServiceSettings getSettings() { + public final @Nullable EndpointServiceSettings getSettings() { return settings; } @@ -502,7 +503,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointAsync( - LocationName parent, Endpoint endpoint) { + @Nullable LocationName parent, Endpoint endpoint) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -579,7 +580,7 @@ public final OperationFuture createEn * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointAsync( - LocationName parent, Endpoint endpoint, String endpointId) { + @Nullable LocationName parent, Endpoint endpoint, String endpointId) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -751,7 +752,7 @@ public final UnaryCallable createEndpointCalla * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -871,7 +872,7 @@ public final UnaryCallable getEndpointCallable() { * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(LocationName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1248,7 +1249,7 @@ public final UnaryCallable updateEndpointCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointAsync( - EndpointName name) { + @Nullable EndpointName name) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEndpointAsync(request); @@ -1419,7 +1420,9 @@ public final UnaryCallable deleteEndpointCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deployModelAsync( - EndpointName endpoint, DeployedModel deployedModel, Map trafficSplit) { + @Nullable EndpointName endpoint, + DeployedModel deployedModel, + Map trafficSplit) { DeployModelRequest request = DeployModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1619,7 +1622,9 @@ public final UnaryCallable deployModelCallable() */ public final OperationFuture undeployModelAsync( - EndpointName endpoint, String deployedModelId, Map trafficSplit) { + @Nullable EndpointName endpoint, + String deployedModelId, + Map trafficSplit) { UndeployModelRequest request = UndeployModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1830,7 +1835,7 @@ public final UnaryCallable undeployModelCallabl */ public final OperationFuture mutateDeployedModelAsync( - EndpointName endpoint, DeployedModel deployedModel, FieldMask updateMask) { + @Nullable EndpointName endpoint, DeployedModel deployedModel, FieldMask updateMask) { MutateDeployedModelRequest request = MutateDeployedModelRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -2038,7 +2043,8 @@ public final UnaryCallable mutateDeployed * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - setPublisherModelConfigAsync(EndpointName name, PublisherModelConfig publisherModelConfig) { + setPublisherModelConfigAsync( + @Nullable EndpointName name, PublisherModelConfig publisherModelConfig) { SetPublisherModelConfigRequest request = SetPublisherModelConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2215,7 +2221,7 @@ public final UnaryCallable mutateDeployed * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublisherModelConfig fetchPublisherModelConfig(EndpointName name) { + public final PublisherModelConfig fetchPublisherModelConfig(@Nullable EndpointName name) { FetchPublisherModelConfigRequest request = FetchPublisherModelConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2741,8 +2747,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -2752,14 +2758,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2773,7 +2779,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2783,7 +2790,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -2817,8 +2824,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2828,14 +2835,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2849,7 +2856,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2859,7 +2867,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java index d8632b353122..d96f42657b95 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -332,7 +333,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EndpointServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java index ea0ad9062194..5c1056a86dde 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java @@ -46,6 +46,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. /** @@ -247,7 +248,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EvaluationServiceClient implements BackgroundResource { - private final EvaluationServiceSettings settings; + private final @Nullable EvaluationServiceSettings settings; private final EvaluationServiceStub stub; private final OperationsClient operationsClient; @@ -290,7 +291,7 @@ protected EvaluationServiceClient(EvaluationServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final EvaluationServiceSettings getSettings() { + public final @Nullable EvaluationServiceSettings getSettings() { return settings; } @@ -969,8 +970,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -980,14 +981,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1001,7 +1002,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1011,7 +1013,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java index 35003bc03ab2..bd58bf6566d7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EvaluationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceClient.java index 75ecd2c5d687..8a74f7c7483d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceClient.java @@ -48,6 +48,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. /** @@ -354,7 +355,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExampleStoreServiceClient implements BackgroundResource { - private final ExampleStoreServiceSettings settings; + private final @Nullable ExampleStoreServiceSettings settings; private final ExampleStoreServiceStub stub; private final OperationsClient operationsClient; @@ -397,7 +398,7 @@ protected ExampleStoreServiceClient(ExampleStoreServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ExampleStoreServiceSettings getSettings() { + public final @Nullable ExampleStoreServiceSettings getSettings() { return settings; } @@ -439,7 +440,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createExampleStoreAsync(LocationName parent, ExampleStore exampleStore) { + createExampleStoreAsync(@Nullable LocationName parent, ExampleStore exampleStore) { CreateExampleStoreRequest request = CreateExampleStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -595,7 +596,7 @@ public final UnaryCallable createExampleSt * `projects/{project}/locations/{location}/exampleStores/{example_store}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExampleStore getExampleStore(ExampleStoreName name) { + public final ExampleStore getExampleStore(@Nullable ExampleStoreName name) { GetExampleStoreRequest request = GetExampleStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExampleStore(request); @@ -832,7 +833,7 @@ public final UnaryCallable updateExampleSt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExampleStoreAsync( - ExampleStoreName name) { + @Nullable ExampleStoreName name) { DeleteExampleStoreRequest request = DeleteExampleStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -981,7 +982,7 @@ public final UnaryCallable deleteExampleSt * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExampleStoresPagedResponse listExampleStores(LocationName parent) { + public final ListExampleStoresPagedResponse listExampleStores(@Nullable LocationName parent) { ListExampleStoresRequest request = ListExampleStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1854,8 +1855,9 @@ public static class ListExampleStoresPage ListExampleStoresPage> { private ListExampleStoresPage( - PageContext context, - ListExampleStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListExampleStoresResponse response) { super(context, response); } @@ -1865,14 +1867,16 @@ private static ListExampleStoresPage createEmptyPage() { @Override protected ListExampleStoresPage createPage( - PageContext context, - ListExampleStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListExampleStoresResponse response) { return new ListExampleStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1887,7 +1891,7 @@ public static class ListExampleStoresFixedSizeCollection ListExampleStoresFixedSizeCollection> { private ListExampleStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1897,7 +1901,7 @@ private static ListExampleStoresFixedSizeCollection createEmptyCollection() { @Override protected ListExampleStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExampleStoresFixedSizeCollection(pages, collectionSize); } } @@ -1931,8 +1935,8 @@ public static class FetchExamplesPage FetchExamplesRequest, FetchExamplesResponse, Example, FetchExamplesPage> { private FetchExamplesPage( - PageContext context, - FetchExamplesResponse response) { + @Nullable PageContext context, + @Nullable FetchExamplesResponse response) { super(context, response); } @@ -1942,14 +1946,14 @@ private static FetchExamplesPage createEmptyPage() { @Override protected FetchExamplesPage createPage( - PageContext context, - FetchExamplesResponse response) { + @Nullable PageContext context, + @Nullable FetchExamplesResponse response) { return new FetchExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1963,7 +1967,8 @@ public static class FetchExamplesFixedSizeCollection FetchExamplesPage, FetchExamplesFixedSizeCollection> { - private FetchExamplesFixedSizeCollection(List pages, int collectionSize) { + private FetchExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1973,7 +1978,7 @@ private static FetchExamplesFixedSizeCollection createEmptyCollection() { @Override protected FetchExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchExamplesFixedSizeCollection(pages, collectionSize); } } @@ -2007,8 +2012,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2018,14 +2023,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2039,7 +2044,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2049,7 +2055,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceSettings.java index d17e7bbb7e84..0481d094f592 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -274,7 +275,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -294,7 +295,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExampleStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceClient.java index 9a2451d0023c..3e5b142191de 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceClient.java @@ -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. /** @@ -234,7 +235,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExtensionExecutionServiceClient implements BackgroundResource { - private final ExtensionExecutionServiceSettings settings; + private final @Nullable ExtensionExecutionServiceSettings settings; private final ExtensionExecutionServiceStub stub; /** Constructs an instance of ExtensionExecutionServiceClient with default settings. */ @@ -276,7 +277,7 @@ protected ExtensionExecutionServiceClient(ExtensionExecutionServiceStub stub) { this.stub = stub; } - public final ExtensionExecutionServiceSettings getSettings() { + public final @Nullable ExtensionExecutionServiceSettings getSettings() { return settings; } @@ -312,7 +313,8 @@ public ExtensionExecutionServiceStub getStub() { * [ExtensionOperation.operation_id][google.cloud.aiplatform.v1beta1.ExtensionOperation.operation_id]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExecuteExtensionResponse executeExtension(ExtensionName name, String operationId) { + public final ExecuteExtensionResponse executeExtension( + @Nullable ExtensionName name, String operationId) { ExecuteExtensionRequest request = ExecuteExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -448,7 +450,8 @@ public final ExecuteExtensionResponse executeExtension(ExecuteExtensionRequest r * repeated field that contains conversation history + latest request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryExtensionResponse queryExtension(ExtensionName name, List contents) { + public final QueryExtensionResponse queryExtension( + @Nullable ExtensionName name, List contents) { QueryExtensionRequest request = QueryExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -991,8 +994,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1002,14 +1005,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1023,7 +1026,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1033,7 +1037,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceSettings.java index 87f833401ddc..43dd7b77df68 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionExecutionServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExtensionExecutionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceClient.java index 77252d28f2bd..564179145ef8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceClient.java @@ -48,6 +48,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. /** @@ -297,7 +298,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExtensionRegistryServiceClient implements BackgroundResource { - private final ExtensionRegistryServiceSettings settings; + private final @Nullable ExtensionRegistryServiceSettings settings; private final ExtensionRegistryServiceStub stub; private final OperationsClient operationsClient; @@ -342,7 +343,7 @@ protected ExtensionRegistryServiceClient(ExtensionRegistryServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ExtensionRegistryServiceSettings getSettings() { + public final @Nullable ExtensionRegistryServiceSettings getSettings() { return settings; } @@ -385,7 +386,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importExtensionAsync( - LocationName parent, Extension extension) { + @Nullable LocationName parent, Extension extension) { ImportExtensionRequest request = ImportExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +544,7 @@ public final UnaryCallable importExtensionCal * `projects/{project}/locations/{location}/extensions/{extension}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Extension getExtension(ExtensionName name) { + public final Extension getExtension(@Nullable ExtensionName name) { GetExtensionRequest request = GetExtensionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExtension(request); @@ -660,7 +661,7 @@ public final UnaryCallable getExtensionCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExtensionsPagedResponse listExtensions(LocationName parent) { + public final ListExtensionsPagedResponse listExtensions(@Nullable LocationName parent) { ListExtensionsRequest request = ListExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -932,7 +933,7 @@ public final UnaryCallable updateExtensionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExtensionAsync( - ExtensionName name) { + @Nullable ExtensionName name) { DeleteExtensionRequest request = DeleteExtensionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExtensionAsync(request); @@ -1494,8 +1495,8 @@ public static class ListExtensionsPage ListExtensionsRequest, ListExtensionsResponse, Extension, ListExtensionsPage> { private ListExtensionsPage( - PageContext context, - ListExtensionsResponse response) { + @Nullable PageContext context, + @Nullable ListExtensionsResponse response) { super(context, response); } @@ -1505,14 +1506,14 @@ private static ListExtensionsPage createEmptyPage() { @Override protected ListExtensionsPage createPage( - PageContext context, - ListExtensionsResponse response) { + @Nullable PageContext context, + @Nullable ListExtensionsResponse response) { return new ListExtensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1526,7 +1527,8 @@ public static class ListExtensionsFixedSizeCollection ListExtensionsPage, ListExtensionsFixedSizeCollection> { - private ListExtensionsFixedSizeCollection(List pages, int collectionSize) { + private ListExtensionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1536,7 +1538,7 @@ private static ListExtensionsFixedSizeCollection createEmptyCollection() { @Override protected ListExtensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExtensionsFixedSizeCollection(pages, collectionSize); } } @@ -1570,8 +1572,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1581,14 +1583,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1602,7 +1604,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1612,7 +1615,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceSettings.java index 3fb8116215e8..1d8818caaa7e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionRegistryServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExtensionRegistryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java index 2d49c0dad629..7d9c89bd1475 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClient.java @@ -48,6 +48,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. /** @@ -456,7 +457,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeatureOnlineStoreAdminServiceClient implements BackgroundResource { - private final FeatureOnlineStoreAdminServiceSettings settings; + private final @Nullable FeatureOnlineStoreAdminServiceSettings settings; private final FeatureOnlineStoreAdminServiceStub stub; private final OperationsClient operationsClient; @@ -504,7 +505,7 @@ protected FeatureOnlineStoreAdminServiceClient(FeatureOnlineStoreAdminServiceStu this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeatureOnlineStoreAdminServiceSettings getSettings() { + public final @Nullable FeatureOnlineStoreAdminServiceSettings getSettings() { return settings; } @@ -556,7 +557,9 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeatureOnlineStoreAsync( - LocationName parent, FeatureOnlineStore featureOnlineStore, String featureOnlineStoreId) { + @Nullable LocationName parent, + FeatureOnlineStore featureOnlineStore, + String featureOnlineStoreId) { CreateFeatureOnlineStoreRequest request = CreateFeatureOnlineStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -740,7 +743,7 @@ public final OperationsClient getOperationsClient() { * @param name Required. The name of the FeatureOnlineStore resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureOnlineStore getFeatureOnlineStore(FeatureOnlineStoreName name) { + public final FeatureOnlineStore getFeatureOnlineStore(@Nullable FeatureOnlineStoreName name) { GetFeatureOnlineStoreRequest request = GetFeatureOnlineStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -868,7 +871,8 @@ public final FeatureOnlineStore getFeatureOnlineStore(GetFeatureOnlineStoreReque * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores(LocationName parent) { + public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores( + @Nullable LocationName parent) { ListFeatureOnlineStoresRequest request = ListFeatureOnlineStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1202,7 +1206,7 @@ public final ListFeatureOnlineStoresPagedResponse listFeatureOnlineStores( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureOnlineStoreAsync( - FeatureOnlineStoreName name, boolean force) { + @Nullable FeatureOnlineStoreName name, boolean force) { DeleteFeatureOnlineStoreRequest request = DeleteFeatureOnlineStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1387,7 +1391,7 @@ public final OperationFuture deleteFeatureOnline */ public final OperationFuture createFeatureViewAsync( - FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) { + @Nullable FeatureOnlineStoreName parent, FeatureView featureView, String featureViewId) { CreateFeatureViewRequest request = CreateFeatureViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1576,7 +1580,7 @@ public final UnaryCallable createFeatureVie * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureView getFeatureView(FeatureViewName name) { + public final FeatureView getFeatureView(@Nullable FeatureViewName name) { GetFeatureViewRequest request = GetFeatureViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeatureView(request); @@ -1704,7 +1708,8 @@ public final UnaryCallable getFeatureViewCal * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureViewsPagedResponse listFeatureViews(FeatureOnlineStoreName parent) { + public final ListFeatureViewsPagedResponse listFeatureViews( + @Nullable FeatureOnlineStoreName parent) { ListFeatureViewsRequest request = ListFeatureViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2036,7 +2041,7 @@ public final UnaryCallable updateFeatureVie * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureViewAsync( - FeatureViewName name) { + @Nullable FeatureViewName name) { DeleteFeatureViewRequest request = DeleteFeatureViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2199,7 +2204,7 @@ public final UnaryCallable deleteFeatureVie * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SyncFeatureViewResponse syncFeatureView(FeatureViewName featureView) { + public final SyncFeatureViewResponse syncFeatureView(@Nullable FeatureViewName featureView) { SyncFeatureViewRequest request = SyncFeatureViewRequest.newBuilder() .setFeatureView(featureView == null ? null : featureView.toString()) @@ -2330,7 +2335,7 @@ public final SyncFeatureViewResponse syncFeatureView(SyncFeatureViewRequest requ * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureViewSync getFeatureViewSync(FeatureViewSyncName name) { + public final FeatureViewSync getFeatureViewSync(@Nullable FeatureViewSyncName name) { GetFeatureViewSyncRequest request = GetFeatureViewSyncRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2462,7 +2467,8 @@ public final FeatureViewSync getFeatureViewSync(GetFeatureViewSyncRequest reques * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs(FeatureViewName parent) { + public final ListFeatureViewSyncsPagedResponse listFeatureViewSyncs( + @Nullable FeatureViewName parent) { ListFeatureViewSyncsRequest request = ListFeatureViewSyncsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3076,10 +3082,11 @@ public static class ListFeatureOnlineStoresPage ListFeatureOnlineStoresPage> { private ListFeatureOnlineStoresPage( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, - ListFeatureOnlineStoresResponse response) { + @Nullable ListFeatureOnlineStoresResponse response) { super(context, response); } @@ -3089,16 +3096,18 @@ private static ListFeatureOnlineStoresPage createEmptyPage() { @Override protected ListFeatureOnlineStoresPage createPage( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, - ListFeatureOnlineStoresResponse response) { + @Nullable ListFeatureOnlineStoresResponse response) { return new ListFeatureOnlineStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFeatureOnlineStoresRequest, ListFeatureOnlineStoresResponse, FeatureOnlineStore> context, ApiFuture futureResponse) { @@ -3115,7 +3124,7 @@ public static class ListFeatureOnlineStoresFixedSizeCollection ListFeatureOnlineStoresFixedSizeCollection> { private ListFeatureOnlineStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3125,7 +3134,7 @@ private static ListFeatureOnlineStoresFixedSizeCollection createEmptyCollection( @Override protected ListFeatureOnlineStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureOnlineStoresFixedSizeCollection(pages, collectionSize); } } @@ -3159,8 +3168,9 @@ public static class ListFeatureViewsPage ListFeatureViewsRequest, ListFeatureViewsResponse, FeatureView, ListFeatureViewsPage> { private ListFeatureViewsPage( - PageContext context, - ListFeatureViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureViewsResponse response) { super(context, response); } @@ -3170,14 +3180,16 @@ private static ListFeatureViewsPage createEmptyPage() { @Override protected ListFeatureViewsPage createPage( - PageContext context, - ListFeatureViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureViewsResponse response) { return new ListFeatureViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3192,7 +3204,7 @@ public static class ListFeatureViewsFixedSizeCollection ListFeatureViewsFixedSizeCollection> { private ListFeatureViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3202,7 +3214,7 @@ private static ListFeatureViewsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureViewsFixedSizeCollection(pages, collectionSize); } } @@ -3240,9 +3252,10 @@ public static class ListFeatureViewSyncsPage ListFeatureViewSyncsPage> { private ListFeatureViewSyncsPage( - PageContext + @Nullable + PageContext context, - ListFeatureViewSyncsResponse response) { + @Nullable ListFeatureViewSyncsResponse response) { super(context, response); } @@ -3252,15 +3265,17 @@ private static ListFeatureViewSyncsPage createEmptyPage() { @Override protected ListFeatureViewSyncsPage createPage( - PageContext + @Nullable + PageContext context, - ListFeatureViewSyncsResponse response) { + @Nullable ListFeatureViewSyncsResponse response) { return new ListFeatureViewSyncsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3276,7 +3291,7 @@ public static class ListFeatureViewSyncsFixedSizeCollection ListFeatureViewSyncsFixedSizeCollection> { private ListFeatureViewSyncsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3286,7 +3301,7 @@ private static ListFeatureViewSyncsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureViewSyncsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureViewSyncsFixedSizeCollection(pages, collectionSize); } } @@ -3320,8 +3335,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3331,14 +3346,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3352,7 +3367,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3362,7 +3378,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceSettings.java index c40562e69745..6c0f51bfb548 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -349,7 +350,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -370,7 +371,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureOnlineStoreAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceClient.java index 96f9c5f9cb0b..d4f9b6c04404 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceClient.java @@ -43,6 +43,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. /** @@ -265,7 +266,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeatureOnlineStoreServiceClient implements BackgroundResource { - private final FeatureOnlineStoreServiceSettings settings; + private final @Nullable FeatureOnlineStoreServiceSettings settings; private final FeatureOnlineStoreServiceStub stub; /** Constructs an instance of FeatureOnlineStoreServiceClient with default settings. */ @@ -307,7 +308,7 @@ protected FeatureOnlineStoreServiceClient(FeatureOnlineStoreServiceStub stub) { this.stub = stub; } - public final FeatureOnlineStoreServiceSettings getSettings() { + public final @Nullable FeatureOnlineStoreServiceSettings getSettings() { return settings; } @@ -343,7 +344,7 @@ public FeatureOnlineStoreServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchFeatureValuesResponse fetchFeatureValues( - FeatureViewName featureView, FeatureViewDataKey dataKey) { + @Nullable FeatureViewName featureView, FeatureViewDataKey dataKey) { FetchFeatureValuesRequest request = FetchFeatureValuesRequest.newBuilder() .setFeatureView(featureView == null ? null : featureView.toString()) @@ -1119,8 +1120,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1130,14 +1131,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1151,7 +1152,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1161,7 +1163,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceSettings.java index 08837fb6e594..3675d1dec44f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreServiceSettings.java @@ -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. /** @@ -208,7 +209,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -229,7 +230,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureOnlineStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java index b993ba123810..8449e66bb2be 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java @@ -48,6 +48,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. /** @@ -572,7 +573,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeatureRegistryServiceClient implements BackgroundResource { - private final FeatureRegistryServiceSettings settings; + private final @Nullable FeatureRegistryServiceSettings settings; private final FeatureRegistryServiceStub stub; private final OperationsClient operationsClient; @@ -616,7 +617,7 @@ protected FeatureRegistryServiceClient(FeatureRegistryServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeatureRegistryServiceSettings getSettings() { + public final @Nullable FeatureRegistryServiceSettings getSettings() { return settings; } @@ -668,7 +669,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeatureGroupAsync( - LocationName parent, FeatureGroup featureGroup, String featureGroupId) { + @Nullable LocationName parent, FeatureGroup featureGroup, String featureGroupId) { CreateFeatureGroupRequest request = CreateFeatureGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -841,7 +842,7 @@ public final UnaryCallable createFeatureGr * @param name Required. The name of the FeatureGroup resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureGroup getFeatureGroup(FeatureGroupName name) { + public final FeatureGroup getFeatureGroup(@Nullable FeatureGroupName name) { GetFeatureGroupRequest request = GetFeatureGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeatureGroup(request); @@ -958,7 +959,7 @@ public final UnaryCallable getFeatureGroup * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureGroupsPagedResponse listFeatureGroups(LocationName parent) { + public final ListFeatureGroupsPagedResponse listFeatureGroups(@Nullable LocationName parent) { ListFeatureGroupsRequest request = ListFeatureGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1276,7 +1277,7 @@ public final UnaryCallable updateFeatureGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureGroupAsync( - FeatureGroupName name, boolean force) { + @Nullable FeatureGroupName name, boolean force) { DeleteFeatureGroupRequest request = DeleteFeatureGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1447,7 +1448,7 @@ public final UnaryCallable deleteFeatureGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature, String featureId) { + @Nullable EntityTypeName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1493,7 +1494,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature, String featureId) { + @Nullable FeatureGroupName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1685,7 +1686,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(EntityTypeName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable EntityTypeName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1726,7 +1728,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(FeatureGroupName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable FeatureGroupName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1904,7 +1907,7 @@ public final UnaryCallable batchCreateFea * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { + public final Feature getFeature(@Nullable FeatureName name) { GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeature(request); @@ -2038,7 +2041,7 @@ public final UnaryCallable getFeatureCallable() { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable EntityTypeName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2074,7 +2077,7 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(FeatureGroupName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable FeatureGroupName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2403,7 +2406,7 @@ public final UnaryCallable updateFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureAsync( - FeatureName name) { + @Nullable FeatureName name) { DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFeatureAsync(request); @@ -2575,7 +2578,9 @@ public final UnaryCallable deleteFeatureCallabl */ public final OperationFuture createFeatureMonitorAsync( - FeatureGroupName parent, FeatureMonitor featureMonitor, String featureMonitorId) { + @Nullable FeatureGroupName parent, + FeatureMonitor featureMonitor, + String featureMonitorId) { CreateFeatureMonitorRequest request = CreateFeatureMonitorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2755,7 +2760,7 @@ public final UnaryCallable deleteFeatureCallabl * @param name Required. The name of the FeatureMonitor resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureMonitor getFeatureMonitor(FeatureMonitorName name) { + public final FeatureMonitor getFeatureMonitor(@Nullable FeatureMonitorName name) { GetFeatureMonitorRequest request = GetFeatureMonitorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2882,7 +2887,8 @@ public final UnaryCallable getFeatureM * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeatureMonitorsPagedResponse listFeatureMonitors(FeatureGroupName parent) { + public final ListFeatureMonitorsPagedResponse listFeatureMonitors( + @Nullable FeatureGroupName parent) { ListFeatureMonitorsRequest request = ListFeatureMonitorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3204,7 +3210,7 @@ public final ListFeatureMonitorsPagedResponse listFeatureMonitors( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureMonitorAsync( - FeatureMonitorName name) { + @Nullable FeatureMonitorName name) { DeleteFeatureMonitorRequest request = DeleteFeatureMonitorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3375,7 +3381,9 @@ public final OperationFuture deleteFeatureMonito * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FeatureMonitorJob createFeatureMonitorJob( - FeatureMonitorName parent, FeatureMonitorJob featureMonitorJob, long featureMonitorJobId) { + @Nullable FeatureMonitorName parent, + FeatureMonitorJob featureMonitorJob, + long featureMonitorJobId) { CreateFeatureMonitorJobRequest request = CreateFeatureMonitorJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3526,7 +3534,7 @@ public final FeatureMonitorJob createFeatureMonitorJob(CreateFeatureMonitorJobRe * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeatureMonitorJob getFeatureMonitorJob(FeatureMonitorJobName name) { + public final FeatureMonitorJob getFeatureMonitorJob(@Nullable FeatureMonitorJobName name) { GetFeatureMonitorJobRequest request = GetFeatureMonitorJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3672,7 +3680,7 @@ public final FeatureMonitorJob getFeatureMonitorJob(GetFeatureMonitorJobRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFeatureMonitorJobsPagedResponse listFeatureMonitorJobs( - FeatureMonitorName parent) { + @Nullable FeatureMonitorName parent) { ListFeatureMonitorJobsRequest request = ListFeatureMonitorJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4282,8 +4290,9 @@ public static class ListFeatureGroupsPage ListFeatureGroupsPage> { private ListFeatureGroupsPage( - PageContext context, - ListFeatureGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureGroupsResponse response) { super(context, response); } @@ -4293,14 +4302,16 @@ private static ListFeatureGroupsPage createEmptyPage() { @Override protected ListFeatureGroupsPage createPage( - PageContext context, - ListFeatureGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeatureGroupsResponse response) { return new ListFeatureGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4315,7 +4326,7 @@ public static class ListFeatureGroupsFixedSizeCollection ListFeatureGroupsFixedSizeCollection> { private ListFeatureGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4325,7 +4336,7 @@ private static ListFeatureGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4358,8 +4369,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -4369,14 +4380,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4390,7 +4401,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4400,7 +4412,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -4438,9 +4450,10 @@ public static class ListFeatureMonitorsPage ListFeatureMonitorsPage> { private ListFeatureMonitorsPage( - PageContext + @Nullable + PageContext context, - ListFeatureMonitorsResponse response) { + @Nullable ListFeatureMonitorsResponse response) { super(context, response); } @@ -4450,15 +4463,17 @@ private static ListFeatureMonitorsPage createEmptyPage() { @Override protected ListFeatureMonitorsPage createPage( - PageContext + @Nullable + PageContext context, - ListFeatureMonitorsResponse response) { + @Nullable ListFeatureMonitorsResponse response) { return new ListFeatureMonitorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4474,7 +4489,7 @@ public static class ListFeatureMonitorsFixedSizeCollection ListFeatureMonitorsFixedSizeCollection> { private ListFeatureMonitorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4484,7 +4499,7 @@ private static ListFeatureMonitorsFixedSizeCollection createEmptyCollection() { @Override protected ListFeatureMonitorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureMonitorsFixedSizeCollection(pages, collectionSize); } } @@ -4523,10 +4538,11 @@ public static class ListFeatureMonitorJobsPage ListFeatureMonitorJobsPage> { private ListFeatureMonitorJobsPage( - PageContext< + @Nullable + PageContext< ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob> context, - ListFeatureMonitorJobsResponse response) { + @Nullable ListFeatureMonitorJobsResponse response) { super(context, response); } @@ -4536,16 +4552,18 @@ private static ListFeatureMonitorJobsPage createEmptyPage() { @Override protected ListFeatureMonitorJobsPage createPage( - PageContext< + @Nullable + PageContext< ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob> context, - ListFeatureMonitorJobsResponse response) { + @Nullable ListFeatureMonitorJobsResponse response) { return new ListFeatureMonitorJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFeatureMonitorJobsRequest, ListFeatureMonitorJobsResponse, FeatureMonitorJob> context, ApiFuture futureResponse) { @@ -4562,7 +4580,7 @@ public static class ListFeatureMonitorJobsFixedSizeCollection ListFeatureMonitorJobsFixedSizeCollection> { private ListFeatureMonitorJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4572,7 +4590,7 @@ private static ListFeatureMonitorJobsFixedSizeCollection createEmptyCollection() @Override protected ListFeatureMonitorJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeatureMonitorJobsFixedSizeCollection(pages, collectionSize); } } @@ -4606,8 +4624,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4617,14 +4635,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4638,7 +4656,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4648,7 +4667,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java index e9e50a578517..a62cbf224db0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java @@ -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. /** @@ -389,7 +390,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -410,7 +411,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeatureRegistryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java index 949d3427d6a2..2935d09a85f2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java @@ -43,6 +43,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. /** @@ -246,7 +247,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeaturestoreOnlineServingServiceClient implements BackgroundResource { - private final FeaturestoreOnlineServingServiceSettings settings; + private final @Nullable FeaturestoreOnlineServingServiceSettings settings; private final FeaturestoreOnlineServingServiceStub stub; /** Constructs an instance of FeaturestoreOnlineServingServiceClient with default settings. */ @@ -291,7 +292,7 @@ protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServic this.stub = stub; } - public final FeaturestoreOnlineServingServiceSettings getSettings() { + public final @Nullable FeaturestoreOnlineServingServiceSettings getSettings() { return settings; } @@ -328,7 +329,7 @@ public FeaturestoreOnlineServingServiceStub getStub() { * EntityType ID could be `user`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityType) { + public final ReadFeatureValuesResponse readFeatureValues(@Nullable EntityTypeName entityType) { ReadFeatureValuesRequest request = ReadFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -512,7 +513,7 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteFeatureValuesResponse writeFeatureValues( - EntityTypeName entityType, List payloads) { + @Nullable EntityTypeName entityType, List payloads) { WriteFeatureValuesRequest request = WriteFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -1077,8 +1078,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1088,14 +1089,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1109,7 +1110,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1119,7 +1121,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java index aaa8ec3042f7..279961f04f5c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java @@ -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. /** @@ -199,7 +200,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -220,7 +221,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeaturestoreOnlineServingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java index d202799f20ae..7cb2f1368973 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java @@ -48,6 +48,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. /** @@ -631,7 +632,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeaturestoreServiceClient implements BackgroundResource { - private final FeaturestoreServiceSettings settings; + private final @Nullable FeaturestoreServiceSettings settings; private final FeaturestoreServiceStub stub; private final OperationsClient operationsClient; @@ -674,7 +675,7 @@ protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FeaturestoreServiceSettings getSettings() { + public final @Nullable FeaturestoreServiceSettings getSettings() { return settings; } @@ -716,7 +717,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createFeaturestoreAsync(LocationName parent, Featurestore featurestore) { + createFeaturestoreAsync(@Nullable LocationName parent, Featurestore featurestore) { CreateFeaturestoreRequest request = CreateFeaturestoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -795,7 +796,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createFeaturestoreAsync( - LocationName parent, Featurestore featurestore, String featurestoreId) { + @Nullable LocationName parent, Featurestore featurestore, String featurestoreId) { CreateFeaturestoreRequest request = CreateFeaturestoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -963,7 +964,7 @@ public final UnaryCallable createFeaturest * @param name Required. The name of the Featurestore resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Featurestore getFeaturestore(FeaturestoreName name) { + public final Featurestore getFeaturestore(@Nullable FeaturestoreName name) { GetFeaturestoreRequest request = GetFeaturestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeaturestore(request); @@ -1076,7 +1077,7 @@ public final UnaryCallable getFeaturestore * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturestoresPagedResponse listFeaturestores(LocationName parent) { + public final ListFeaturestoresPagedResponse listFeaturestores(@Nullable LocationName parent) { ListFeaturestoresRequest request = ListFeaturestoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1387,7 +1388,7 @@ public final UnaryCallable updateFeaturest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeaturestoreAsync( - FeaturestoreName name) { + @Nullable FeaturestoreName name) { DeleteFeaturestoreRequest request = DeleteFeaturestoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1452,7 +1453,7 @@ public final OperationFuture deleteFeaturestoreA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeaturestoreAsync( - FeaturestoreName name, boolean force) { + @Nullable FeaturestoreName name, boolean force) { DeleteFeaturestoreRequest request = DeleteFeaturestoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1612,7 +1613,7 @@ public final UnaryCallable deleteFeaturest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntityTypeAsync( - FeaturestoreName parent, EntityType entityType) { + @Nullable FeaturestoreName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1685,7 +1686,7 @@ public final OperationFuture crea * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntityTypeAsync( - FeaturestoreName parent, EntityType entityType, String entityTypeId) { + @Nullable FeaturestoreName parent, EntityType entityType, String entityTypeId) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1856,7 +1857,7 @@ public final UnaryCallable createEntityTypeC * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -1975,7 +1976,7 @@ public final UnaryCallable getEntityTypeCallab * `projects/{project}/locations/{location}/featurestores/{featurestore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable FeaturestoreName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2258,7 +2259,7 @@ public final UnaryCallable updateEntityType * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntityTypeAsync( - EntityTypeName name) { + @Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntityTypeAsync(request); @@ -2322,7 +2323,7 @@ public final OperationFuture deleteEntityTypeAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntityTypeAsync( - EntityTypeName name, boolean force) { + @Nullable EntityTypeName name, boolean force) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2493,7 +2494,7 @@ public final UnaryCallable deleteEntityTypeC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature) { + @Nullable EntityTypeName parent, Feature feature) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2530,7 +2531,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature) { + @Nullable FeatureGroupName parent, Feature feature) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2611,7 +2612,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - EntityTypeName parent, Feature feature, String featureId) { + @Nullable EntityTypeName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2656,7 +2657,7 @@ public final OperationFuture createFeat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - FeatureGroupName parent, Feature feature, String featureId) { + @Nullable FeatureGroupName parent, Feature feature, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2843,7 +2844,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(EntityTypeName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable EntityTypeName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2883,7 +2885,8 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateFeaturesAsync(FeatureGroupName parent, List requests) { + batchCreateFeaturesAsync( + @Nullable FeatureGroupName parent, List requests) { BatchCreateFeaturesRequest request = BatchCreateFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3056,7 +3059,7 @@ public final UnaryCallable batchCreateFea * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { + public final Feature getFeature(@Nullable FeatureName name) { GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeature(request); @@ -3186,7 +3189,7 @@ public final UnaryCallable getFeatureCallable() { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable EntityTypeName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3221,7 +3224,7 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(FeatureGroupName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable FeatureGroupName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3509,7 +3512,7 @@ public final UnaryCallable updateFeatureCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFeatureAsync( - FeatureName name) { + @Nullable FeatureName name) { DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFeatureAsync(request); @@ -3683,7 +3686,7 @@ public final UnaryCallable deleteFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importFeatureValuesAsync(EntityTypeName entityType) { + importFeatureValuesAsync(@Nullable EntityTypeName entityType) { ImportFeatureValuesRequest request = ImportFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -3929,7 +3932,7 @@ public final UnaryCallable importFeatureV */ public final OperationFuture< BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata> - batchReadFeatureValuesAsync(FeaturestoreName featurestore) { + batchReadFeatureValuesAsync(@Nullable FeaturestoreName featurestore) { BatchReadFeatureValuesRequest request = BatchReadFeatureValuesRequest.newBuilder() .setFeaturestore(featurestore == null ? null : featurestore.toString()) @@ -4124,7 +4127,7 @@ public final UnaryCallable importFeatureV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportFeatureValuesAsync(EntityTypeName entityType) { + exportFeatureValuesAsync(@Nullable EntityTypeName entityType) { ExportFeatureValuesRequest request = ExportFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -4304,7 +4307,7 @@ public final UnaryCallable exportFeatureV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteFeatureValuesAsync(EntityTypeName entityType) { + deleteFeatureValuesAsync(@Nullable EntityTypeName entityType) { DeleteFeatureValuesRequest request = DeleteFeatureValuesRequest.newBuilder() .setEntityType(entityType == null ? null : entityType.toString()) @@ -4497,7 +4500,7 @@ public final UnaryCallable deleteFeatureV * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFeaturesPagedResponse searchFeatures(LocationName location) { + public final SearchFeaturesPagedResponse searchFeatures(@Nullable LocationName location) { SearchFeaturesRequest request = SearchFeaturesRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -4612,7 +4615,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchFeaturesPagedResponse searchFeatures(LocationName location, String query) { + public final SearchFeaturesPagedResponse searchFeatures( + @Nullable LocationName location, String query) { SearchFeaturesRequest request = SearchFeaturesRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -5242,8 +5246,9 @@ public static class ListFeaturestoresPage ListFeaturestoresPage> { private ListFeaturestoresPage( - PageContext context, - ListFeaturestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListFeaturestoresResponse response) { super(context, response); } @@ -5253,14 +5258,16 @@ private static ListFeaturestoresPage createEmptyPage() { @Override protected ListFeaturestoresPage createPage( - PageContext context, - ListFeaturestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListFeaturestoresResponse response) { return new ListFeaturestoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5275,7 +5282,7 @@ public static class ListFeaturestoresFixedSizeCollection ListFeaturestoresFixedSizeCollection> { private ListFeaturestoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5285,7 +5292,7 @@ private static ListFeaturestoresFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturestoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturestoresFixedSizeCollection(pages, collectionSize); } } @@ -5319,8 +5326,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -5330,14 +5337,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5352,7 +5359,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5362,7 +5369,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -5395,8 +5402,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -5406,14 +5413,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5427,7 +5434,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5437,7 +5445,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -5471,8 +5479,8 @@ public static class SearchFeaturesPage SearchFeaturesRequest, SearchFeaturesResponse, Feature, SearchFeaturesPage> { private SearchFeaturesPage( - PageContext context, - SearchFeaturesResponse response) { + @Nullable PageContext context, + @Nullable SearchFeaturesResponse response) { super(context, response); } @@ -5482,14 +5490,14 @@ private static SearchFeaturesPage createEmptyPage() { @Override protected SearchFeaturesPage createPage( - PageContext context, - SearchFeaturesResponse response) { + @Nullable PageContext context, + @Nullable SearchFeaturesResponse response) { return new SearchFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5503,7 +5511,8 @@ public static class SearchFeaturesFixedSizeCollection SearchFeaturesPage, SearchFeaturesFixedSizeCollection> { - private SearchFeaturesFixedSizeCollection(List pages, int collectionSize) { + private SearchFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5513,7 +5522,7 @@ private static SearchFeaturesFixedSizeCollection createEmptyCollection() { @Override protected SearchFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -5547,8 +5556,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5558,14 +5567,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5579,7 +5588,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5589,7 +5599,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java index a2867916cf41..d1fd0d5b9c52 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java @@ -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. /** @@ -417,7 +418,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -437,7 +438,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeaturestoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClient.java index c41c6ea5583e..5698b9423f71 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceClient.java @@ -44,6 +44,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. /** @@ -291,7 +292,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GenAiCacheServiceClient implements BackgroundResource { - private final GenAiCacheServiceSettings settings; + private final @Nullable GenAiCacheServiceSettings settings; private final GenAiCacheServiceStub stub; /** Constructs an instance of GenAiCacheServiceClient with default settings. */ @@ -331,7 +332,7 @@ protected GenAiCacheServiceClient(GenAiCacheServiceStub stub) { this.stub = stub; } - public final GenAiCacheServiceSettings getSettings() { + public final @Nullable GenAiCacheServiceSettings getSettings() { return settings; } @@ -363,7 +364,8 @@ public GenAiCacheServiceStub getStub() { * @param cachedContent Required. The cached content to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CachedContent createCachedContent(LocationName parent, CachedContent cachedContent) { + public final CachedContent createCachedContent( + @Nullable LocationName parent, CachedContent cachedContent) { CreateCachedContentRequest request = CreateCachedContentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -487,7 +489,7 @@ public final CachedContent createCachedContent(CreateCachedContentRequest reques * @param name Required. The resource name referring to the cached content * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CachedContent getCachedContent(CachedContentName name) { + public final CachedContent getCachedContent(@Nullable CachedContentName name) { GetCachedContentRequest request = GetCachedContentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCachedContent(request); @@ -691,7 +693,7 @@ public final CachedContent updateCachedContent(UpdateCachedContentRequest reques * @param name Required. The resource name referring to the cached content * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCachedContent(CachedContentName name) { + public final void deleteCachedContent(@Nullable CachedContentName name) { DeleteCachedContentRequest request = DeleteCachedContentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -808,7 +810,7 @@ public final UnaryCallable deleteCachedConten * @param parent Required. The parent, which owns this collection of cached contents. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCachedContentsPagedResponse listCachedContents(LocationName parent) { + public final ListCachedContentsPagedResponse listCachedContents(@Nullable LocationName parent) { ListCachedContentsRequest request = ListCachedContentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1381,8 +1383,9 @@ public static class ListCachedContentsPage ListCachedContentsPage> { private ListCachedContentsPage( - PageContext context, - ListCachedContentsResponse response) { + @Nullable PageContext + context, + @Nullable ListCachedContentsResponse response) { super(context, response); } @@ -1392,14 +1395,16 @@ private static ListCachedContentsPage createEmptyPage() { @Override protected ListCachedContentsPage createPage( - PageContext context, - ListCachedContentsResponse response) { + @Nullable PageContext + context, + @Nullable ListCachedContentsResponse response) { return new ListCachedContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1414,7 +1419,7 @@ public static class ListCachedContentsFixedSizeCollection ListCachedContentsFixedSizeCollection> { private ListCachedContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1424,7 +1429,7 @@ private static ListCachedContentsFixedSizeCollection createEmptyCollection() { @Override protected ListCachedContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCachedContentsFixedSizeCollection(pages, collectionSize); } } @@ -1458,8 +1463,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1469,14 +1474,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1490,7 +1495,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1500,7 +1506,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceSettings.java index 87134641be96..06a5bb41d36e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiCacheServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenAiCacheServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClient.java index 729dd8d86694..94c8a6ee7b02 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceClient.java @@ -47,6 +47,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. /** @@ -296,7 +297,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GenAiTuningServiceClient implements BackgroundResource { - private final GenAiTuningServiceSettings settings; + private final @Nullable GenAiTuningServiceSettings settings; private final GenAiTuningServiceStub stub; private final OperationsClient operationsClient; @@ -339,7 +340,7 @@ protected GenAiTuningServiceClient(GenAiTuningServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final GenAiTuningServiceSettings getSettings() { + public final @Nullable GenAiTuningServiceSettings getSettings() { return settings; } @@ -379,7 +380,7 @@ public final OperationsClient getOperationsClient() { * @param tuningJob Required. The TuningJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TuningJob createTuningJob(LocationName parent, TuningJob tuningJob) { + public final TuningJob createTuningJob(@Nullable LocationName parent, TuningJob tuningJob) { CreateTuningJobRequest request = CreateTuningJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -498,7 +499,7 @@ public final UnaryCallable createTuningJobCal * `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TuningJob getTuningJob(TuningJobName name) { + public final TuningJob getTuningJob(@Nullable TuningJobName name) { GetTuningJobRequest request = GetTuningJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTuningJob(request); @@ -611,7 +612,7 @@ public final UnaryCallable getTuningJobCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTuningJobsPagedResponse listTuningJobs(LocationName parent) { + public final ListTuningJobsPagedResponse listTuningJobs(@Nullable LocationName parent) { ListTuningJobsRequest request = ListTuningJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -786,7 +787,7 @@ public final ListTuningJobsPagedResponse listTuningJobs(ListTuningJobsRequest re * `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelTuningJob(TuningJobName name) { + public final void cancelTuningJob(@Nullable TuningJobName name) { CancelTuningJobRequest request = CancelTuningJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelTuningJob(request); @@ -926,7 +927,7 @@ public final UnaryCallable cancelTuningJobCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rebaseTunedModelAsync( - LocationName parent, TunedModelRef tunedModelRef) { + @Nullable LocationName parent, TunedModelRef tunedModelRef) { RebaseTunedModelRequest request = RebaseTunedModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1500,8 +1501,8 @@ public static class ListTuningJobsPage ListTuningJobsRequest, ListTuningJobsResponse, TuningJob, ListTuningJobsPage> { private ListTuningJobsPage( - PageContext context, - ListTuningJobsResponse response) { + @Nullable PageContext context, + @Nullable ListTuningJobsResponse response) { super(context, response); } @@ -1511,14 +1512,14 @@ private static ListTuningJobsPage createEmptyPage() { @Override protected ListTuningJobsPage createPage( - PageContext context, - ListTuningJobsResponse response) { + @Nullable PageContext context, + @Nullable ListTuningJobsResponse response) { return new ListTuningJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1532,7 +1533,8 @@ public static class ListTuningJobsFixedSizeCollection ListTuningJobsPage, ListTuningJobsFixedSizeCollection> { - private ListTuningJobsFixedSizeCollection(List pages, int collectionSize) { + private ListTuningJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1542,7 +1544,7 @@ private static ListTuningJobsFixedSizeCollection createEmptyCollection() { @Override protected ListTuningJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTuningJobsFixedSizeCollection(pages, collectionSize); } } @@ -1576,8 +1578,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1587,14 +1589,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1608,7 +1610,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1618,7 +1621,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceSettings.java index d331d7940d36..86afaebe37dc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/GenAiTuningServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,7 +236,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -255,7 +256,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenAiTuningServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java index 3a46d80d0747..bce569da481c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java @@ -48,6 +48,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. /** @@ -357,7 +358,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IndexEndpointServiceClient implements BackgroundResource { - private final IndexEndpointServiceSettings settings; + private final @Nullable IndexEndpointServiceSettings settings; private final IndexEndpointServiceStub stub; private final OperationsClient operationsClient; @@ -400,7 +401,7 @@ protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final IndexEndpointServiceSettings getSettings() { + public final @Nullable IndexEndpointServiceSettings getSettings() { return settings; } @@ -443,7 +444,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createIndexEndpointAsync(LocationName parent, IndexEndpoint indexEndpoint) { + createIndexEndpointAsync(@Nullable LocationName parent, IndexEndpoint indexEndpoint) { CreateIndexEndpointRequest request = CreateIndexEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -604,7 +605,7 @@ public final UnaryCallable createIndexEnd * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) { + public final IndexEndpoint getIndexEndpoint(@Nullable IndexEndpointName name) { GetIndexEndpointRequest request = GetIndexEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndexEndpoint(request); @@ -724,7 +725,7 @@ public final UnaryCallable getIndexEndpo * IndexEndpoints. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName parent) { + public final ListIndexEndpointsPagedResponse listIndexEndpoints(@Nullable LocationName parent) { ListIndexEndpointsRequest request = ListIndexEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1001,7 +1002,7 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteIndexEndpointAsync( - IndexEndpointName name) { + @Nullable IndexEndpointName name) { DeleteIndexEndpointRequest request = DeleteIndexEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1160,7 +1161,7 @@ public final UnaryCallable deleteIndexEnd * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deployIndexAsync( - IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { + @Nullable IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { DeployIndexRequest request = DeployIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -1336,7 +1337,7 @@ public final UnaryCallable deployIndexCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployIndexAsync(IndexEndpointName indexEndpoint, String deployedIndexId) { + undeployIndexAsync(@Nullable IndexEndpointName indexEndpoint, String deployedIndexId) { UndeployIndexRequest request = UndeployIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -1513,7 +1514,8 @@ public final UnaryCallable undeployIndexCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - mutateDeployedIndexAsync(IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { + mutateDeployedIndexAsync( + @Nullable IndexEndpointName indexEndpoint, DeployedIndex deployedIndex) { MutateDeployedIndexRequest request = MutateDeployedIndexRequest.newBuilder() .setIndexEndpoint(indexEndpoint == null ? null : indexEndpoint.toString()) @@ -2101,8 +2103,9 @@ public static class ListIndexEndpointsPage ListIndexEndpointsPage> { private ListIndexEndpointsPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { super(context, response); } @@ -2112,14 +2115,16 @@ private static ListIndexEndpointsPage createEmptyPage() { @Override protected ListIndexEndpointsPage createPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { return new ListIndexEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2134,7 +2139,7 @@ public static class ListIndexEndpointsFixedSizeCollection ListIndexEndpointsFixedSizeCollection> { private ListIndexEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2144,7 +2149,7 @@ private static ListIndexEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListIndexEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -2178,8 +2183,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2189,14 +2194,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2210,7 +2215,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2220,7 +2226,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java index f1b9abf436e4..5eb8580c0058 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -304,7 +305,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IndexEndpointServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java index 3854dadd52c2..1eaf48599991 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java @@ -48,6 +48,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. /** @@ -337,7 +338,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IndexServiceClient implements BackgroundResource { - private final IndexServiceSettings settings; + private final @Nullable IndexServiceSettings settings; private final IndexServiceStub stub; private final OperationsClient operationsClient; @@ -379,7 +380,7 @@ protected IndexServiceClient(IndexServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final IndexServiceSettings getSettings() { + public final @Nullable IndexServiceSettings getSettings() { return settings; } @@ -420,7 +421,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - LocationName parent, Index index) { + @Nullable LocationName parent, Index index) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -570,7 +571,7 @@ public final UnaryCallable createIndexCallable() * `projects/{project}/locations/{location}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -773,7 +774,7 @@ public final UnaryCallable importIndexCallable() * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(LocationName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable LocationName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1060,7 +1061,8 @@ public final UnaryCallable updateIndexCallable() * `projects/{project}/locations/{location}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIndexAsync(IndexName name) { + public final OperationFuture deleteIndexAsync( + @Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIndexAsync(request); @@ -1722,8 +1724,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -1733,14 +1735,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1754,7 +1756,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1764,7 +1767,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -1798,8 +1801,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1809,14 +1812,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1830,7 +1833,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1840,7 +1844,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java index 84a9f6154ad9..525d23c4ebd4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -265,7 +266,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -285,7 +286,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IndexServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java index 2ec130dd2bbd..6cdb02d0b0d7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java @@ -48,6 +48,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. /** @@ -877,7 +878,7 @@ @BetaApi @Generated("by gapic-generator-java") public class JobServiceClient implements BackgroundResource { - private final JobServiceSettings settings; + private final @Nullable JobServiceSettings settings; private final JobServiceStub stub; private final OperationsClient operationsClient; @@ -918,7 +919,7 @@ protected JobServiceClient(JobServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final JobServiceSettings getSettings() { + public final @Nullable JobServiceSettings getSettings() { return settings; } @@ -958,7 +959,7 @@ public final OperationsClient getOperationsClient() { * @param customJob Required. The CustomJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomJob createCustomJob(LocationName parent, CustomJob customJob) { + public final CustomJob createCustomJob(@Nullable LocationName parent, CustomJob customJob) { CreateCustomJobRequest request = CreateCustomJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1076,7 +1077,7 @@ public final UnaryCallable createCustomJobCal * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomJob getCustomJob(CustomJobName name) { + public final CustomJob getCustomJob(@Nullable CustomJobName name) { GetCustomJobRequest request = GetCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomJob(request); @@ -1188,7 +1189,7 @@ public final UnaryCallable getCustomJobCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomJobsPagedResponse listCustomJobs(LocationName parent) { + public final ListCustomJobsPagedResponse listCustomJobs(@Nullable LocationName parent) { ListCustomJobsRequest request = ListCustomJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1358,7 +1359,7 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCustomJobAsync( - CustomJobName name) { + @Nullable CustomJobName name) { DeleteCustomJobRequest request = DeleteCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCustomJobAsync(request); @@ -1505,7 +1506,7 @@ public final UnaryCallable deleteCustomJobCal * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelCustomJob(CustomJobName name) { + public final void cancelCustomJob(@Nullable CustomJobName name) { CancelCustomJobRequest request = CancelCustomJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelCustomJob(request); @@ -1639,7 +1640,7 @@ public final UnaryCallable cancelCustomJobCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataLabelingJob createDataLabelingJob( - LocationName parent, DataLabelingJob dataLabelingJob) { + @Nullable LocationName parent, DataLabelingJob dataLabelingJob) { CreateDataLabelingJobRequest request = CreateDataLabelingJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1764,7 +1765,7 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) { + public final DataLabelingJob getDataLabelingJob(@Nullable DataLabelingJobName name) { GetDataLabelingJobRequest request = GetDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1886,7 +1887,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(LocationName parent) { + public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( + @Nullable LocationName parent) { ListDataLabelingJobsRequest request = ListDataLabelingJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2063,7 +2065,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataLabelingJobAsync( - DataLabelingJobName name) { + @Nullable DataLabelingJobName name) { DeleteDataLabelingJobRequest request = DeleteDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2217,7 +2219,7 @@ public final OperationFuture deleteDataLabelingJ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelDataLabelingJob(DataLabelingJobName name) { + public final void cancelDataLabelingJob(@Nullable DataLabelingJobName name) { CancelDataLabelingJobRequest request = CancelDataLabelingJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2341,7 +2343,7 @@ public final UnaryCallable cancelDataLabeli * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob createHyperparameterTuningJob( - LocationName parent, HyperparameterTuningJob hyperparameterTuningJob) { + @Nullable LocationName parent, HyperparameterTuningJob hyperparameterTuningJob) { CreateHyperparameterTuningJobRequest request = CreateHyperparameterTuningJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2470,7 +2472,7 @@ public final HyperparameterTuningJob createHyperparameterTuningJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HyperparameterTuningJob getHyperparameterTuningJob( - HyperparameterTuningJobName name) { + @Nullable HyperparameterTuningJobName name) { GetHyperparameterTuningJobRequest request = GetHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2598,7 +2600,7 @@ public final HyperparameterTuningJob getHyperparameterTuningJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJobs( - LocationName parent) { + @Nullable LocationName parent) { ListHyperparameterTuningJobsRequest request = ListHyperparameterTuningJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2777,7 +2779,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHyperparameterTuningJobAsync( - HyperparameterTuningJobName name) { + @Nullable HyperparameterTuningJobName name) { DeleteHyperparameterTuningJobRequest request = DeleteHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2947,7 +2949,7 @@ public final OperationFuture deleteHyperparamete * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name) { + public final void cancelHyperparameterTuningJob(@Nullable HyperparameterTuningJobName name) { CancelHyperparameterTuningJobRequest request = CancelHyperparameterTuningJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3105,7 +3107,7 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq * @param nasJob Required. The NasJob to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasJob createNasJob(LocationName parent, NasJob nasJob) { + public final NasJob createNasJob(@Nullable LocationName parent, NasJob nasJob) { CreateNasJobRequest request = CreateNasJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3223,7 +3225,7 @@ public final UnaryCallable createNasJobCallable() { * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasJob getNasJob(NasJobName name) { + public final NasJob getNasJob(@Nullable NasJobName name) { GetNasJobRequest request = GetNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNasJob(request); @@ -3335,7 +3337,7 @@ public final UnaryCallable getNasJobCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNasJobsPagedResponse listNasJobs(LocationName parent) { + public final ListNasJobsPagedResponse listNasJobs(@Nullable LocationName parent) { ListNasJobsRequest request = ListNasJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3502,7 +3504,8 @@ public final UnaryCallable listNasJobsC * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNasJobAsync(NasJobName name) { + public final OperationFuture deleteNasJobAsync( + @Nullable NasJobName name) { DeleteNasJobRequest request = DeleteNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNasJobAsync(request); @@ -3649,7 +3652,7 @@ public final UnaryCallable deleteNasJobCallable( * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelNasJob(NasJobName name) { + public final void cancelNasJob(@Nullable NasJobName name) { CancelNasJobRequest request = CancelNasJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelNasJob(request); @@ -3781,7 +3784,7 @@ public final UnaryCallable cancelNasJobCallable() { * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NasTrialDetail getNasTrialDetail(NasTrialDetailName name) { + public final NasTrialDetail getNasTrialDetail(@Nullable NasTrialDetailName name) { GetNasTrialDetailRequest request = GetNasTrialDetailRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3904,7 +3907,7 @@ public final UnaryCallable getNasTrial * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNasTrialDetailsPagedResponse listNasTrialDetails(NasJobName parent) { + public final ListNasTrialDetailsPagedResponse listNasTrialDetails(@Nullable NasJobName parent) { ListNasTrialDetailsRequest request = ListNasTrialDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4075,7 +4078,7 @@ public final ListNasTrialDetailsPagedResponse listNasTrialDetails( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchPredictionJob createBatchPredictionJob( - LocationName parent, BatchPredictionJob batchPredictionJob) { + @Nullable LocationName parent, BatchPredictionJob batchPredictionJob) { CreateBatchPredictionJobRequest request = CreateBatchPredictionJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4205,7 +4208,7 @@ public final BatchPredictionJob createBatchPredictionJob( * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName name) { + public final BatchPredictionJob getBatchPredictionJob(@Nullable BatchPredictionJobName name) { GetBatchPredictionJobRequest request = GetBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4328,7 +4331,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(LocationName parent) { + public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( + @Nullable LocationName parent) { ListBatchPredictionJobsRequest request = ListBatchPredictionJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4504,7 +4508,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBatchPredictionJobAsync( - BatchPredictionJobName name) { + @Nullable BatchPredictionJobName name) { DeleteBatchPredictionJobRequest request = DeleteBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4667,7 +4671,7 @@ public final OperationFuture deleteBatchPredicti * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelBatchPredictionJob(BatchPredictionJobName name) { + public final void cancelBatchPredictionJob(@Nullable BatchPredictionJobName name) { CancelBatchPredictionJobRequest request = CancelBatchPredictionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4819,7 +4823,7 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( - LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { + @Nullable LocationName parent, ModelDeploymentMonitoringJob modelDeploymentMonitoringJob) { CreateModelDeploymentMonitoringJobRequest request = CreateModelDeploymentMonitoringJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4962,7 +4966,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( */ public final SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse searchModelDeploymentMonitoringStatsAnomalies( - ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, String deployedModelId) { + @Nullable ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob, + String deployedModelId) { SearchModelDeploymentMonitoringStatsAnomaliesRequest request = SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder() .setModelDeploymentMonitoringJob( @@ -5193,7 +5198,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( - ModelDeploymentMonitoringJobName name) { + @Nullable ModelDeploymentMonitoringJobName name) { GetModelDeploymentMonitoringJobRequest request = GetModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5324,7 +5329,7 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentMonitoringJobs( - LocationName parent) { + @Nullable LocationName parent) { ListModelDeploymentMonitoringJobsRequest request = ListModelDeploymentMonitoringJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5660,7 +5665,7 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteModelDeploymentMonitoringJobAsync(ModelDeploymentMonitoringJobName name) { + deleteModelDeploymentMonitoringJobAsync(@Nullable ModelDeploymentMonitoringJobName name) { DeleteModelDeploymentMonitoringJobRequest request = DeleteModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5826,7 +5831,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + public final void pauseModelDeploymentMonitoringJob( + @Nullable ModelDeploymentMonitoringJobName name) { PauseModelDeploymentMonitoringJobRequest request = PauseModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5963,7 +5969,8 @@ public final void pauseModelDeploymentMonitoringJob( * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJobName name) { + public final void resumeModelDeploymentMonitoringJob( + @Nullable ModelDeploymentMonitoringJobName name) { ResumeModelDeploymentMonitoringJobRequest request = ResumeModelDeploymentMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6492,8 +6499,8 @@ public static class ListCustomJobsPage ListCustomJobsRequest, ListCustomJobsResponse, CustomJob, ListCustomJobsPage> { private ListCustomJobsPage( - PageContext context, - ListCustomJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCustomJobsResponse response) { super(context, response); } @@ -6503,14 +6510,14 @@ private static ListCustomJobsPage createEmptyPage() { @Override protected ListCustomJobsPage createPage( - PageContext context, - ListCustomJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCustomJobsResponse response) { return new ListCustomJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6524,7 +6531,8 @@ public static class ListCustomJobsFixedSizeCollection ListCustomJobsPage, ListCustomJobsFixedSizeCollection> { - private ListCustomJobsFixedSizeCollection(List pages, int collectionSize) { + private ListCustomJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6534,7 +6542,7 @@ private static ListCustomJobsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomJobsFixedSizeCollection(pages, collectionSize); } } @@ -6572,9 +6580,10 @@ public static class ListDataLabelingJobsPage ListDataLabelingJobsPage> { private ListDataLabelingJobsPage( - PageContext + @Nullable + PageContext context, - ListDataLabelingJobsResponse response) { + @Nullable ListDataLabelingJobsResponse response) { super(context, response); } @@ -6584,15 +6593,17 @@ private static ListDataLabelingJobsPage createEmptyPage() { @Override protected ListDataLabelingJobsPage createPage( - PageContext + @Nullable + PageContext context, - ListDataLabelingJobsResponse response) { + @Nullable ListDataLabelingJobsResponse response) { return new ListDataLabelingJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6608,7 +6619,7 @@ public static class ListDataLabelingJobsFixedSizeCollection ListDataLabelingJobsFixedSizeCollection> { private ListDataLabelingJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6618,7 +6629,7 @@ private static ListDataLabelingJobsFixedSizeCollection createEmptyCollection() { @Override protected ListDataLabelingJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataLabelingJobsFixedSizeCollection(pages, collectionSize); } } @@ -6660,12 +6671,13 @@ public static class ListHyperparameterTuningJobsPage ListHyperparameterTuningJobsPage> { private ListHyperparameterTuningJobsPage( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> context, - ListHyperparameterTuningJobsResponse response) { + @Nullable ListHyperparameterTuningJobsResponse response) { super(context, response); } @@ -6675,18 +6687,20 @@ private static ListHyperparameterTuningJobsPage createEmptyPage() { @Override protected ListHyperparameterTuningJobsPage createPage( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> context, - ListHyperparameterTuningJobsResponse response) { + @Nullable ListHyperparameterTuningJobsResponse response) { return new ListHyperparameterTuningJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse, HyperparameterTuningJob> @@ -6705,7 +6719,7 @@ public static class ListHyperparameterTuningJobsFixedSizeCollection ListHyperparameterTuningJobsFixedSizeCollection> { private ListHyperparameterTuningJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6715,7 +6729,7 @@ private static ListHyperparameterTuningJobsFixedSizeCollection createEmptyCollec @Override protected ListHyperparameterTuningJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHyperparameterTuningJobsFixedSizeCollection(pages, collectionSize); } } @@ -6746,8 +6760,8 @@ public static class ListNasJobsPage extends AbstractPage { private ListNasJobsPage( - PageContext context, - ListNasJobsResponse response) { + @Nullable PageContext context, + @Nullable ListNasJobsResponse response) { super(context, response); } @@ -6757,14 +6771,14 @@ private static ListNasJobsPage createEmptyPage() { @Override protected ListNasJobsPage createPage( - PageContext context, - ListNasJobsResponse response) { + @Nullable PageContext context, + @Nullable ListNasJobsResponse response) { return new ListNasJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6778,7 +6792,8 @@ public static class ListNasJobsFixedSizeCollection ListNasJobsPage, ListNasJobsFixedSizeCollection> { - private ListNasJobsFixedSizeCollection(List pages, int collectionSize) { + private ListNasJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6788,7 +6803,7 @@ private static ListNasJobsFixedSizeCollection createEmptyCollection() { @Override protected ListNasJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNasJobsFixedSizeCollection(pages, collectionSize); } } @@ -6826,9 +6841,10 @@ public static class ListNasTrialDetailsPage ListNasTrialDetailsPage> { private ListNasTrialDetailsPage( - PageContext + @Nullable + PageContext context, - ListNasTrialDetailsResponse response) { + @Nullable ListNasTrialDetailsResponse response) { super(context, response); } @@ -6838,15 +6854,17 @@ private static ListNasTrialDetailsPage createEmptyPage() { @Override protected ListNasTrialDetailsPage createPage( - PageContext + @Nullable + PageContext context, - ListNasTrialDetailsResponse response) { + @Nullable ListNasTrialDetailsResponse response) { return new ListNasTrialDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6862,7 +6880,7 @@ public static class ListNasTrialDetailsFixedSizeCollection ListNasTrialDetailsFixedSizeCollection> { private ListNasTrialDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6872,7 +6890,7 @@ private static ListNasTrialDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListNasTrialDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNasTrialDetailsFixedSizeCollection(pages, collectionSize); } } @@ -6911,10 +6929,11 @@ public static class ListBatchPredictionJobsPage ListBatchPredictionJobsPage> { private ListBatchPredictionJobsPage( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, - ListBatchPredictionJobsResponse response) { + @Nullable ListBatchPredictionJobsResponse response) { super(context, response); } @@ -6924,16 +6943,18 @@ private static ListBatchPredictionJobsPage createEmptyPage() { @Override protected ListBatchPredictionJobsPage createPage( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, - ListBatchPredictionJobsResponse response) { + @Nullable ListBatchPredictionJobsResponse response) { return new ListBatchPredictionJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse, BatchPredictionJob> context, ApiFuture futureResponse) { @@ -6950,7 +6971,7 @@ public static class ListBatchPredictionJobsFixedSizeCollection ListBatchPredictionJobsFixedSizeCollection> { private ListBatchPredictionJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6960,7 +6981,7 @@ private static ListBatchPredictionJobsFixedSizeCollection createEmptyCollection( @Override protected ListBatchPredictionJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBatchPredictionJobsFixedSizeCollection(pages, collectionSize); } } @@ -7005,12 +7026,13 @@ public static class SearchModelDeploymentMonitoringStatsAnomaliesPage SearchModelDeploymentMonitoringStatsAnomaliesPage> { private SearchModelDeploymentMonitoringStatsAnomaliesPage( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> context, - SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + @Nullable SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { super(context, response); } @@ -7020,18 +7042,20 @@ private static SearchModelDeploymentMonitoringStatsAnomaliesPage createEmptyPage @Override protected SearchModelDeploymentMonitoringStatsAnomaliesPage createPage( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> context, - SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { + @Nullable SearchModelDeploymentMonitoringStatsAnomaliesResponse response) { return new SearchModelDeploymentMonitoringStatsAnomaliesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchModelDeploymentMonitoringStatsAnomaliesRequest, SearchModelDeploymentMonitoringStatsAnomaliesResponse, ModelMonitoringStatsAnomalies> @@ -7050,7 +7074,8 @@ public static class SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollec SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection> { private SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -7061,7 +7086,8 @@ private SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( @Override protected SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new SearchModelDeploymentMonitoringStatsAnomaliesFixedSizeCollection( pages, collectionSize); } @@ -7105,12 +7131,13 @@ public static class ListModelDeploymentMonitoringJobsPage ListModelDeploymentMonitoringJobsPage> { private ListModelDeploymentMonitoringJobsPage( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> context, - ListModelDeploymentMonitoringJobsResponse response) { + @Nullable ListModelDeploymentMonitoringJobsResponse response) { super(context, response); } @@ -7120,18 +7147,20 @@ private static ListModelDeploymentMonitoringJobsPage createEmptyPage() { @Override protected ListModelDeploymentMonitoringJobsPage createPage( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> context, - ListModelDeploymentMonitoringJobsResponse response) { + @Nullable ListModelDeploymentMonitoringJobsResponse response) { return new ListModelDeploymentMonitoringJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse, ModelDeploymentMonitoringJob> @@ -7150,7 +7179,7 @@ public static class ListModelDeploymentMonitoringJobsFixedSizeCollection ListModelDeploymentMonitoringJobsFixedSizeCollection> { private ListModelDeploymentMonitoringJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7160,7 +7189,7 @@ private static ListModelDeploymentMonitoringJobsFixedSizeCollection createEmptyC @Override protected ListModelDeploymentMonitoringJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelDeploymentMonitoringJobsFixedSizeCollection(pages, collectionSize); } } @@ -7194,8 +7223,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7205,14 +7234,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7226,7 +7255,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7236,7 +7266,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java index d664d9761d6b..6f5729726000 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -478,7 +479,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -498,7 +499,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceClient.java index d68a7c0db56d..8e3715e87954 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceClient.java @@ -43,6 +43,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. /** @@ -215,7 +216,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LlmUtilityServiceClient implements BackgroundResource { - private final LlmUtilityServiceSettings settings; + private final @Nullable LlmUtilityServiceSettings settings; private final LlmUtilityServiceStub stub; /** Constructs an instance of LlmUtilityServiceClient with default settings. */ @@ -255,7 +256,7 @@ protected LlmUtilityServiceClient(LlmUtilityServiceStub stub) { this.stub = stub; } - public final LlmUtilityServiceSettings getSettings() { + public final @Nullable LlmUtilityServiceSettings getSettings() { return settings; } @@ -290,7 +291,8 @@ public LlmUtilityServiceStub getStub() { * chat models, or Codey models. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeTokensResponse computeTokens(EndpointName endpoint, List instances) { + public final ComputeTokensResponse computeTokens( + @Nullable EndpointName endpoint, List instances) { ComputeTokensRequest request = ComputeTokensRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -826,8 +828,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -837,14 +839,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -858,7 +860,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -868,7 +871,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceSettings.java index e1a653bcb865..8949a61e7d42 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/LlmUtilityServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LlmUtilityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceClient.java index 4a1ba42111c4..8c6db38fa24b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceClient.java @@ -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. /** @@ -226,7 +227,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MatchServiceClient implements BackgroundResource { - private final MatchServiceSettings settings; + private final @Nullable MatchServiceSettings settings; private final MatchServiceStub stub; /** Constructs an instance of MatchServiceClient with default settings. */ @@ -265,7 +266,7 @@ protected MatchServiceClient(MatchServiceStub stub) { this.stub = stub; } - public final MatchServiceSettings getSettings() { + public final @Nullable MatchServiceSettings getSettings() { return settings; } @@ -825,8 +826,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -836,14 +837,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -857,7 +858,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -867,7 +869,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceSettings.java index 08fbf5b593b1..fa5c58305467 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MatchServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MatchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceClient.java index 92bc99f297cf..391beaff5109 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceClient.java @@ -48,6 +48,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. /** @@ -336,7 +337,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MemoryBankServiceClient implements BackgroundResource { - private final MemoryBankServiceSettings settings; + private final @Nullable MemoryBankServiceSettings settings; private final MemoryBankServiceStub stub; private final OperationsClient operationsClient; @@ -379,7 +380,7 @@ protected MemoryBankServiceClient(MemoryBankServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MemoryBankServiceSettings getSettings() { + public final @Nullable MemoryBankServiceSettings getSettings() { return settings; } @@ -427,7 +428,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMemoryAsync( - ReasoningEngineName parent, Memory memory, String memoryId) { + @Nullable ReasoningEngineName parent, Memory memory, String memoryId) { CreateMemoryRequest request = CreateMemoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -599,7 +600,7 @@ public final UnaryCallable createMemoryCallable( * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Memory getMemory(MemoryName name) { + public final Memory getMemory(@Nullable MemoryName name) { GetMemoryRequest request = GetMemoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMemory(request); @@ -837,7 +838,7 @@ public final UnaryCallable updateMemoryCallable( * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMemoriesPagedResponse listMemories(ReasoningEngineName parent) { + public final ListMemoriesPagedResponse listMemories(@Nullable ReasoningEngineName parent) { ListMemoriesRequest request = ListMemoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1011,7 +1012,7 @@ public final UnaryCallable listMemori * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMemoryAsync( - MemoryName name) { + @Nullable MemoryName name) { DeleteMemoryRequest request = DeleteMemoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteMemoryAsync(request); @@ -1163,7 +1164,7 @@ public final UnaryCallable deleteMemoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - generateMemoriesAsync(ReasoningEngineName parent) { + generateMemoriesAsync(@Nullable ReasoningEngineName parent) { GenerateMemoriesRequest request = GenerateMemoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1325,7 +1326,7 @@ public final UnaryCallable generateMemoriesC * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetrieveMemoriesResponse retrieveMemories(ReasoningEngineName parent) { + public final RetrieveMemoriesResponse retrieveMemories(@Nullable ReasoningEngineName parent) { RetrieveMemoriesRequest request = RetrieveMemoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1849,8 +1850,8 @@ public static class ListMemoriesPage extends AbstractPage { private ListMemoriesPage( - PageContext context, - ListMemoriesResponse response) { + @Nullable PageContext context, + @Nullable ListMemoriesResponse response) { super(context, response); } @@ -1860,14 +1861,14 @@ private static ListMemoriesPage createEmptyPage() { @Override protected ListMemoriesPage createPage( - PageContext context, - ListMemoriesResponse response) { + @Nullable PageContext context, + @Nullable ListMemoriesResponse response) { return new ListMemoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1881,7 +1882,8 @@ public static class ListMemoriesFixedSizeCollection ListMemoriesPage, ListMemoriesFixedSizeCollection> { - private ListMemoriesFixedSizeCollection(List pages, int collectionSize) { + private ListMemoriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1891,7 +1893,7 @@ private static ListMemoriesFixedSizeCollection createEmptyCollection() { @Override protected ListMemoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMemoriesFixedSizeCollection(pages, collectionSize); } } @@ -1925,8 +1927,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1936,14 +1938,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1957,7 +1959,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1967,7 +1970,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceSettings.java index 3fe085e495bc..5eeaa334293d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryBankServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -282,7 +283,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MemoryBankServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java index 6fd4ba8fb083..f95705076841 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java @@ -48,6 +48,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. /** @@ -817,7 +818,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MetadataServiceClient implements BackgroundResource { - private final MetadataServiceSettings settings; + private final @Nullable MetadataServiceSettings settings; private final MetadataServiceStub stub; private final OperationsClient operationsClient; @@ -860,7 +861,7 @@ protected MetadataServiceClient(MetadataServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MetadataServiceSettings getSettings() { + public final @Nullable MetadataServiceSettings getSettings() { return settings; } @@ -912,7 +913,7 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createMetadataStoreAsync( - LocationName parent, MetadataStore metadataStore, String metadataStoreId) { + @Nullable LocationName parent, MetadataStore metadataStore, String metadataStoreId) { CreateMetadataStoreRequest request = CreateMetadataStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1082,7 +1083,7 @@ public final UnaryCallable createMetadata * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataStore getMetadataStore(MetadataStoreName name) { + public final MetadataStore getMetadataStore(@Nullable MetadataStoreName name) { GetMetadataStoreRequest request = GetMetadataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadataStore(request); @@ -1197,7 +1198,7 @@ public final UnaryCallable getMetadataSt * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataStoresPagedResponse listMetadataStores(LocationName parent) { + public final ListMetadataStoresPagedResponse listMetadataStores(@Nullable LocationName parent) { ListMetadataStoresRequest request = ListMetadataStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1365,7 +1366,7 @@ public final ListMetadataStoresPagedResponse listMetadataStores( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteMetadataStoreAsync(MetadataStoreName name) { + deleteMetadataStoreAsync(@Nullable MetadataStoreName name) { DeleteMetadataStoreRequest request = DeleteMetadataStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1532,7 +1533,7 @@ public final UnaryCallable deleteMetadata * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Artifact createArtifact( - MetadataStoreName parent, Artifact artifact, String artifactId) { + @Nullable MetadataStoreName parent, Artifact artifact, String artifactId) { CreateArtifactRequest request = CreateArtifactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1669,7 +1670,7 @@ public final UnaryCallable createArtifactCallab * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Artifact getArtifact(ArtifactName name) { + public final Artifact getArtifact(@Nullable ArtifactName name) { GetArtifactRequest request = GetArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getArtifact(request); @@ -1787,7 +1788,7 @@ public final UnaryCallable getArtifactCallable() { * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent) { + public final ListArtifactsPagedResponse listArtifacts(@Nullable MetadataStoreName parent) { ListArtifactsRequest request = ListArtifactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2054,7 +2055,7 @@ public final UnaryCallable updateArtifactCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteArtifactAsync( - ArtifactName name) { + @Nullable ArtifactName name) { DeleteArtifactRequest request = DeleteArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteArtifactAsync(request); @@ -2207,7 +2208,7 @@ public final UnaryCallable deleteArtifactCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeArtifactsAsync( - MetadataStoreName parent) { + @Nullable MetadataStoreName parent) { PurgeArtifactsRequest request = PurgeArtifactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2372,7 +2373,8 @@ public final UnaryCallable purgeArtifactsCalla * or PERMISSION_DENIED if the caller can't view the preexisting Context.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context createContext(MetadataStoreName parent, Context context, String contextId) { + public final Context createContext( + @Nullable MetadataStoreName parent, Context context, String contextId) { CreateContextRequest request = CreateContextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2507,7 +2509,7 @@ public final UnaryCallable createContextCallable( * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context getContext(ContextName name) { + public final Context getContext(@Nullable ContextName name) { GetContextRequest request = GetContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContext(request); @@ -2625,7 +2627,7 @@ public final UnaryCallable getContextCallable() { * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContextsPagedResponse listContexts(MetadataStoreName parent) { + public final ListContextsPagedResponse listContexts(@Nullable MetadataStoreName parent) { ListContextsRequest request = ListContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2889,7 +2891,7 @@ public final UnaryCallable updateContextCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteContextAsync( - ContextName name) { + @Nullable ContextName name) { DeleteContextRequest request = DeleteContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteContextAsync(request); @@ -3045,7 +3047,7 @@ public final UnaryCallable deleteContextCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeContextsAsync( - MetadataStoreName parent) { + @Nullable MetadataStoreName parent) { PurgeContextsRequest request = PurgeContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3212,7 +3214,7 @@ public final UnaryCallable purgeContextsCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExecutions( - ContextName context, List artifacts, List executions) { + @Nullable ContextName context, List artifacts, List executions) { AddContextArtifactsAndExecutionsRequest request = AddContextArtifactsAndExecutionsRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3368,7 +3370,7 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddContextChildrenResponse addContextChildren( - ContextName context, List childContexts) { + @Nullable ContextName context, List childContexts) { AddContextChildrenRequest request = AddContextChildrenRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3515,7 +3517,7 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RemoveContextChildrenResponse removeContextChildren( - ContextName context, List childContexts) { + @Nullable ContextName context, List childContexts) { RemoveContextChildrenRequest request = RemoveContextChildrenRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3655,7 +3657,7 @@ public final RemoveContextChildrenResponse removeContextChildren( * Executions, or the number of Events that would be returned for the Context exceeds 1000. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryContextLineageSubgraph(ContextName context) { + public final LineageSubgraph queryContextLineageSubgraph(@Nullable ContextName context) { QueryContextLineageSubgraphRequest request = QueryContextLineageSubgraphRequest.newBuilder() .setContext(context == null ? null : context.toString()) @@ -3793,7 +3795,7 @@ public final LineageSubgraph queryContextLineageSubgraph( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Execution createExecution( - MetadataStoreName parent, Execution execution, String executionId) { + @Nullable MetadataStoreName parent, Execution execution, String executionId) { CreateExecutionRequest request = CreateExecutionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3930,7 +3932,7 @@ public final UnaryCallable createExecutionCal * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -4049,7 +4051,7 @@ public final UnaryCallable getExecutionCallable( * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable MetadataStoreName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4320,7 +4322,7 @@ public final UnaryCallable updateExecutionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExecutionAsync( - ExecutionName name) { + @Nullable ExecutionName name) { DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExecutionAsync(request); @@ -4473,7 +4475,7 @@ public final UnaryCallable deleteExecutionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - purgeExecutionsAsync(MetadataStoreName parent) { + purgeExecutionsAsync(@Nullable MetadataStoreName parent) { PurgeExecutionsRequest request = PurgeExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4636,7 +4638,7 @@ public final UnaryCallable purgeExecutionsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddExecutionEventsResponse addExecutionEvents( - ExecutionName execution, List events) { + @Nullable ExecutionName execution, List events) { AddExecutionEventsRequest request = AddExecutionEventsRequest.newBuilder() .setExecution(execution == null ? null : execution.toString()) @@ -4772,7 +4774,7 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryExecutionInputsAndOutputs(ExecutionName execution) { + public final LineageSubgraph queryExecutionInputsAndOutputs(@Nullable ExecutionName execution) { QueryExecutionInputsAndOutputsRequest request = QueryExecutionInputsAndOutputsRequest.newBuilder() .setExecution(execution == null ? null : execution.toString()) @@ -4911,7 +4913,7 @@ public final LineageSubgraph queryExecutionInputsAndOutputs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetadataSchema createMetadataSchema( - MetadataStoreName parent, MetadataSchema metadataSchema, String metadataSchemaId) { + @Nullable MetadataStoreName parent, MetadataSchema metadataSchema, String metadataSchemaId) { CreateMetadataSchemaRequest request = CreateMetadataSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5053,7 +5055,7 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataSchema getMetadataSchema(MetadataSchemaName name) { + public final MetadataSchema getMetadataSchema(@Nullable MetadataSchemaName name) { GetMetadataSchemaRequest request = GetMetadataSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5178,7 +5180,8 @@ public final UnaryCallable getMetadata * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreName parent) { + public final ListMetadataSchemasPagedResponse listMetadataSchemas( + @Nullable MetadataStoreName parent) { ListMetadataSchemasRequest request = ListMetadataSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5358,7 +5361,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas( * Executions, or the number of Events that would be returned for the Context exceeds 1000. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageSubgraph queryArtifactLineageSubgraph(ArtifactName artifact) { + public final LineageSubgraph queryArtifactLineageSubgraph(@Nullable ArtifactName artifact) { QueryArtifactLineageSubgraphRequest request = QueryArtifactLineageSubgraphRequest.newBuilder() .setArtifact(artifact == null ? null : artifact.toString()) @@ -5894,8 +5897,9 @@ public static class ListMetadataStoresPage ListMetadataStoresPage> { private ListMetadataStoresPage( - PageContext context, - ListMetadataStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataStoresResponse response) { super(context, response); } @@ -5905,14 +5909,16 @@ private static ListMetadataStoresPage createEmptyPage() { @Override protected ListMetadataStoresPage createPage( - PageContext context, - ListMetadataStoresResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataStoresResponse response) { return new ListMetadataStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5927,7 +5933,7 @@ public static class ListMetadataStoresFixedSizeCollection ListMetadataStoresFixedSizeCollection> { private ListMetadataStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5937,7 +5943,7 @@ private static ListMetadataStoresFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataStoresFixedSizeCollection(pages, collectionSize); } } @@ -5971,8 +5977,8 @@ public static class ListArtifactsPage ListArtifactsRequest, ListArtifactsResponse, Artifact, ListArtifactsPage> { private ListArtifactsPage( - PageContext context, - ListArtifactsResponse response) { + @Nullable PageContext context, + @Nullable ListArtifactsResponse response) { super(context, response); } @@ -5982,14 +5988,14 @@ private static ListArtifactsPage createEmptyPage() { @Override protected ListArtifactsPage createPage( - PageContext context, - ListArtifactsResponse response) { + @Nullable PageContext context, + @Nullable ListArtifactsResponse response) { return new ListArtifactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6003,7 +6009,8 @@ public static class ListArtifactsFixedSizeCollection ListArtifactsPage, ListArtifactsFixedSizeCollection> { - private ListArtifactsFixedSizeCollection(List pages, int collectionSize) { + private ListArtifactsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6013,7 +6020,7 @@ private static ListArtifactsFixedSizeCollection createEmptyCollection() { @Override protected ListArtifactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListArtifactsFixedSizeCollection(pages, collectionSize); } } @@ -6046,8 +6053,8 @@ public static class ListContextsPage extends AbstractPage { private ListContextsPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { super(context, response); } @@ -6057,14 +6064,14 @@ private static ListContextsPage createEmptyPage() { @Override protected ListContextsPage createPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { return new ListContextsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6078,7 +6085,8 @@ public static class ListContextsFixedSizeCollection ListContextsPage, ListContextsFixedSizeCollection> { - private ListContextsFixedSizeCollection(List pages, int collectionSize) { + private ListContextsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6088,7 +6096,7 @@ private static ListContextsFixedSizeCollection createEmptyCollection() { @Override protected ListContextsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContextsFixedSizeCollection(pages, collectionSize); } } @@ -6122,8 +6130,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -6133,14 +6141,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6154,7 +6162,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6164,7 +6173,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } @@ -6202,9 +6211,10 @@ public static class ListMetadataSchemasPage ListMetadataSchemasPage> { private ListMetadataSchemasPage( - PageContext + @Nullable + PageContext context, - ListMetadataSchemasResponse response) { + @Nullable ListMetadataSchemasResponse response) { super(context, response); } @@ -6214,15 +6224,17 @@ private static ListMetadataSchemasPage createEmptyPage() { @Override protected ListMetadataSchemasPage createPage( - PageContext + @Nullable + PageContext context, - ListMetadataSchemasResponse response) { + @Nullable ListMetadataSchemasResponse response) { return new ListMetadataSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6238,7 +6250,7 @@ public static class ListMetadataSchemasFixedSizeCollection ListMetadataSchemasFixedSizeCollection> { private ListMetadataSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6248,7 +6260,7 @@ private static ListMetadataSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataSchemasFixedSizeCollection(pages, collectionSize); } } @@ -6282,8 +6294,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6293,14 +6305,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6314,7 +6326,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6324,7 +6337,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java index 052e6e5e69ab..b4a05fd55376 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -435,7 +436,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -455,7 +456,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetadataServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java index 7dbd4dd0c850..d08cc1e57a2b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java @@ -46,6 +46,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. /** @@ -238,7 +239,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MigrationServiceClient implements BackgroundResource { - private final MigrationServiceSettings settings; + private final @Nullable MigrationServiceSettings settings; private final MigrationServiceStub stub; private final OperationsClient operationsClient; @@ -281,7 +282,7 @@ protected MigrationServiceClient(MigrationServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MigrationServiceSettings getSettings() { + public final @Nullable MigrationServiceSettings getSettings() { return settings; } @@ -325,7 +326,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchMigratableResourcesPagedResponse searchMigratableResources( - LocationName parent) { + @Nullable LocationName parent) { SearchMigratableResourcesRequest request = SearchMigratableResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -511,7 +512,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources( public final OperationFuture< BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata> batchMigrateResourcesAsync( - LocationName parent, List migrateResourceRequests) { + @Nullable LocationName parent, List migrateResourceRequests) { BatchMigrateResourcesRequest request = BatchMigrateResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1090,12 +1091,13 @@ public static class SearchMigratableResourcesPage SearchMigratableResourcesPage> { private SearchMigratableResourcesPage( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> context, - SearchMigratableResourcesResponse response) { + @Nullable SearchMigratableResourcesResponse response) { super(context, response); } @@ -1105,18 +1107,20 @@ private static SearchMigratableResourcesPage createEmptyPage() { @Override protected SearchMigratableResourcesPage createPage( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> context, - SearchMigratableResourcesResponse response) { + @Nullable SearchMigratableResourcesResponse response) { return new SearchMigratableResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource> @@ -1135,7 +1139,7 @@ public static class SearchMigratableResourcesFixedSizeCollection SearchMigratableResourcesFixedSizeCollection> { private SearchMigratableResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1145,7 +1149,7 @@ private static SearchMigratableResourcesFixedSizeCollection createEmptyCollectio @Override protected SearchMigratableResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchMigratableResourcesFixedSizeCollection(pages, collectionSize); } } @@ -1179,8 +1183,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1190,14 +1194,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1211,7 +1215,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1221,7 +1226,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java index e809b8797556..ee9b62d12c13 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MigrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java index 60a814c87f8d..50170d04f089 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java @@ -46,6 +46,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. /** @@ -322,7 +323,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelGardenServiceClient implements BackgroundResource { - private final ModelGardenServiceSettings settings; + private final @Nullable ModelGardenServiceSettings settings; private final ModelGardenServiceStub stub; private final OperationsClient operationsClient; @@ -365,7 +366,7 @@ protected ModelGardenServiceClient(ModelGardenServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ModelGardenServiceSettings getSettings() { + public final @Nullable ModelGardenServiceSettings getSettings() { return settings; } @@ -403,7 +404,7 @@ public final OperationsClient getOperationsClient() { * `publishers/{publisher}/models/{publisher_model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublisherModel getPublisherModel(PublisherModelName name) { + public final PublisherModel getPublisherModel(@Nullable PublisherModelName name) { GetPublisherModelRequest request = GetPublisherModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -993,7 +994,7 @@ public final UnaryCallable deployCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( - ProjectName parent, PublisherModelName publisherModel) { + @Nullable ProjectName parent, @Nullable PublisherModelName publisherModel) { CheckPublisherModelEulaAcceptanceRequest request = CheckPublisherModelEulaAcceptanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1030,7 +1031,7 @@ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( - ProjectName parent, String publisherModel) { + @Nullable ProjectName parent, String publisherModel) { CheckPublisherModelEulaAcceptanceRequest request = CheckPublisherModelEulaAcceptanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1067,7 +1068,7 @@ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( - String parent, PublisherModelName publisherModel) { + String parent, @Nullable PublisherModelName publisherModel) { CheckPublisherModelEulaAcceptanceRequest request = CheckPublisherModelEulaAcceptanceRequest.newBuilder() .setParent(parent) @@ -1202,7 +1203,7 @@ public final PublisherModelEulaAcceptance checkPublisherModelEulaAcceptance( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance acceptPublisherModelEula( - ProjectName parent, PublisherModelName publisherModel) { + @Nullable ProjectName parent, @Nullable PublisherModelName publisherModel) { AcceptPublisherModelEulaRequest request = AcceptPublisherModelEulaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1239,7 +1240,7 @@ public final PublisherModelEulaAcceptance acceptPublisherModelEula( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance acceptPublisherModelEula( - ProjectName parent, String publisherModel) { + @Nullable ProjectName parent, String publisherModel) { AcceptPublisherModelEulaRequest request = AcceptPublisherModelEulaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1276,7 +1277,7 @@ public final PublisherModelEulaAcceptance acceptPublisherModelEula( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PublisherModelEulaAcceptance acceptPublisherModelEula( - String parent, PublisherModelName publisherModel) { + String parent, @Nullable PublisherModelName publisherModel) { AcceptPublisherModelEulaRequest request = AcceptPublisherModelEulaRequest.newBuilder() .setParent(parent) @@ -1814,9 +1815,10 @@ public static class ListPublisherModelsPage ListPublisherModelsPage> { private ListPublisherModelsPage( - PageContext + @Nullable + PageContext context, - ListPublisherModelsResponse response) { + @Nullable ListPublisherModelsResponse response) { super(context, response); } @@ -1826,15 +1828,17 @@ private static ListPublisherModelsPage createEmptyPage() { @Override protected ListPublisherModelsPage createPage( - PageContext + @Nullable + PageContext context, - ListPublisherModelsResponse response) { + @Nullable ListPublisherModelsResponse response) { return new ListPublisherModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1850,7 +1854,7 @@ public static class ListPublisherModelsFixedSizeCollection ListPublisherModelsFixedSizeCollection> { private ListPublisherModelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1860,7 +1864,7 @@ private static ListPublisherModelsFixedSizeCollection createEmptyCollection() { @Override protected ListPublisherModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPublisherModelsFixedSizeCollection(pages, collectionSize); } } @@ -1894,8 +1898,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1905,14 +1909,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1926,7 +1930,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1936,7 +1941,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java index 48b7678163de..fd0b328a6986 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelGardenServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClient.java index 3ff6ad349e98..5ec6e7f04c54 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceClient.java @@ -48,6 +48,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. /** @@ -417,7 +418,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelMonitoringServiceClient implements BackgroundResource { - private final ModelMonitoringServiceSettings settings; + private final @Nullable ModelMonitoringServiceSettings settings; private final ModelMonitoringServiceStub stub; private final OperationsClient operationsClient; @@ -461,7 +462,7 @@ protected ModelMonitoringServiceClient(ModelMonitoringServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ModelMonitoringServiceSettings getSettings() { + public final @Nullable ModelMonitoringServiceSettings getSettings() { return settings; } @@ -504,7 +505,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createModelMonitorAsync(LocationName parent, ModelMonitor modelMonitor) { + createModelMonitorAsync(@Nullable LocationName parent, ModelMonitor modelMonitor) { CreateModelMonitorRequest request = CreateModelMonitorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -797,7 +798,7 @@ public final UnaryCallable updateModelMoni * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelMonitor getModelMonitor(ModelMonitorName name) { + public final ModelMonitor getModelMonitor(@Nullable ModelMonitorName name) { GetModelMonitorRequest request = GetModelMonitorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModelMonitor(request); @@ -915,7 +916,7 @@ public final UnaryCallable getModelMonitor * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelMonitorsPagedResponse listModelMonitors(LocationName parent) { + public final ListModelMonitorsPagedResponse listModelMonitors(@Nullable LocationName parent) { ListModelMonitorsRequest request = ListModelMonitorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1094,7 +1095,7 @@ public final ListModelMonitorsPagedResponse listModelMonitors(ListModelMonitorsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteModelMonitorAsync( - ModelMonitorName name) { + @Nullable ModelMonitorName name) { DeleteModelMonitorRequest request = DeleteModelMonitorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1251,7 +1252,7 @@ public final UnaryCallable deleteModelMoni * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelMonitoringJob createModelMonitoringJob( - ModelMonitorName parent, ModelMonitoringJob modelMonitoringJob) { + @Nullable ModelMonitorName parent, ModelMonitoringJob modelMonitoringJob) { CreateModelMonitoringJobRequest request = CreateModelMonitoringJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1387,7 +1388,7 @@ public final ModelMonitoringJob createModelMonitoringJob( * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelMonitoringJob getModelMonitoringJob(ModelMonitoringJobName name) { + public final ModelMonitoringJob getModelMonitoringJob(@Nullable ModelMonitoringJobName name) { GetModelMonitoringJobRequest request = GetModelMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1522,7 +1523,7 @@ public final ModelMonitoringJob getModelMonitoringJob(GetModelMonitoringJobReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelMonitoringJobsPagedResponse listModelMonitoringJobs( - ModelMonitorName parent) { + @Nullable ModelMonitorName parent) { ListModelMonitoringJobsRequest request = ListModelMonitoringJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1719,7 +1720,7 @@ public final ListModelMonitoringJobsPagedResponse listModelMonitoringJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteModelMonitoringJobAsync( - ModelMonitoringJobName name) { + @Nullable ModelMonitoringJobName name) { DeleteModelMonitoringJobRequest request = DeleteModelMonitoringJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1889,7 +1890,7 @@ public final OperationFuture deleteModelMonitori * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchModelMonitoringStatsPagedResponse searchModelMonitoringStats( - ModelMonitorName modelMonitor) { + @Nullable ModelMonitorName modelMonitor) { SearchModelMonitoringStatsRequest request = SearchModelMonitoringStatsRequest.newBuilder() .setModelMonitor(modelMonitor == null ? null : modelMonitor.toString()) @@ -2081,7 +2082,7 @@ public final SearchModelMonitoringStatsPagedResponse searchModelMonitoringStats( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchModelMonitoringAlertsPagedResponse searchModelMonitoringAlerts( - ModelMonitorName modelMonitor) { + @Nullable ModelMonitorName modelMonitor) { SearchModelMonitoringAlertsRequest request = SearchModelMonitoringAlertsRequest.newBuilder() .setModelMonitor(modelMonitor == null ? null : modelMonitor.toString()) @@ -2694,8 +2695,9 @@ public static class ListModelMonitorsPage ListModelMonitorsPage> { private ListModelMonitorsPage( - PageContext context, - ListModelMonitorsResponse response) { + @Nullable PageContext + context, + @Nullable ListModelMonitorsResponse response) { super(context, response); } @@ -2705,14 +2707,16 @@ private static ListModelMonitorsPage createEmptyPage() { @Override protected ListModelMonitorsPage createPage( - PageContext context, - ListModelMonitorsResponse response) { + @Nullable PageContext + context, + @Nullable ListModelMonitorsResponse response) { return new ListModelMonitorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2727,7 +2731,7 @@ public static class ListModelMonitorsFixedSizeCollection ListModelMonitorsFixedSizeCollection> { private ListModelMonitorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2737,7 +2741,7 @@ private static ListModelMonitorsFixedSizeCollection createEmptyCollection() { @Override protected ListModelMonitorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelMonitorsFixedSizeCollection(pages, collectionSize); } } @@ -2776,10 +2780,11 @@ public static class ListModelMonitoringJobsPage ListModelMonitoringJobsPage> { private ListModelMonitoringJobsPage( - PageContext< + @Nullable + PageContext< ListModelMonitoringJobsRequest, ListModelMonitoringJobsResponse, ModelMonitoringJob> context, - ListModelMonitoringJobsResponse response) { + @Nullable ListModelMonitoringJobsResponse response) { super(context, response); } @@ -2789,16 +2794,18 @@ private static ListModelMonitoringJobsPage createEmptyPage() { @Override protected ListModelMonitoringJobsPage createPage( - PageContext< + @Nullable + PageContext< ListModelMonitoringJobsRequest, ListModelMonitoringJobsResponse, ModelMonitoringJob> context, - ListModelMonitoringJobsResponse response) { + @Nullable ListModelMonitoringJobsResponse response) { return new ListModelMonitoringJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelMonitoringJobsRequest, ListModelMonitoringJobsResponse, ModelMonitoringJob> context, ApiFuture futureResponse) { @@ -2815,7 +2822,7 @@ public static class ListModelMonitoringJobsFixedSizeCollection ListModelMonitoringJobsFixedSizeCollection> { private ListModelMonitoringJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2825,7 +2832,7 @@ private static ListModelMonitoringJobsFixedSizeCollection createEmptyCollection( @Override protected ListModelMonitoringJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelMonitoringJobsFixedSizeCollection(pages, collectionSize); } } @@ -2866,12 +2873,13 @@ public static class SearchModelMonitoringStatsPage SearchModelMonitoringStatsPage> { private SearchModelMonitoringStatsPage( - PageContext< + @Nullable + PageContext< SearchModelMonitoringStatsRequest, SearchModelMonitoringStatsResponse, ModelMonitoringStats> context, - SearchModelMonitoringStatsResponse response) { + @Nullable SearchModelMonitoringStatsResponse response) { super(context, response); } @@ -2881,18 +2889,20 @@ private static SearchModelMonitoringStatsPage createEmptyPage() { @Override protected SearchModelMonitoringStatsPage createPage( - PageContext< + @Nullable + PageContext< SearchModelMonitoringStatsRequest, SearchModelMonitoringStatsResponse, ModelMonitoringStats> context, - SearchModelMonitoringStatsResponse response) { + @Nullable SearchModelMonitoringStatsResponse response) { return new SearchModelMonitoringStatsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchModelMonitoringStatsRequest, SearchModelMonitoringStatsResponse, ModelMonitoringStats> @@ -2911,7 +2921,7 @@ public static class SearchModelMonitoringStatsFixedSizeCollection SearchModelMonitoringStatsFixedSizeCollection> { private SearchModelMonitoringStatsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2921,7 +2931,7 @@ private static SearchModelMonitoringStatsFixedSizeCollection createEmptyCollecti @Override protected SearchModelMonitoringStatsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchModelMonitoringStatsFixedSizeCollection(pages, collectionSize); } } @@ -2963,12 +2973,13 @@ public static class SearchModelMonitoringAlertsPage SearchModelMonitoringAlertsPage> { private SearchModelMonitoringAlertsPage( - PageContext< + @Nullable + PageContext< SearchModelMonitoringAlertsRequest, SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> context, - SearchModelMonitoringAlertsResponse response) { + @Nullable SearchModelMonitoringAlertsResponse response) { super(context, response); } @@ -2978,18 +2989,20 @@ private static SearchModelMonitoringAlertsPage createEmptyPage() { @Override protected SearchModelMonitoringAlertsPage createPage( - PageContext< + @Nullable + PageContext< SearchModelMonitoringAlertsRequest, SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> context, - SearchModelMonitoringAlertsResponse response) { + @Nullable SearchModelMonitoringAlertsResponse response) { return new SearchModelMonitoringAlertsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchModelMonitoringAlertsRequest, SearchModelMonitoringAlertsResponse, ModelMonitoringAlert> @@ -3008,7 +3021,7 @@ public static class SearchModelMonitoringAlertsFixedSizeCollection SearchModelMonitoringAlertsFixedSizeCollection> { private SearchModelMonitoringAlertsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3018,7 +3031,7 @@ private static SearchModelMonitoringAlertsFixedSizeCollection createEmptyCollect @Override protected SearchModelMonitoringAlertsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchModelMonitoringAlertsFixedSizeCollection(pages, collectionSize); } } @@ -3052,8 +3065,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3063,14 +3076,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3084,7 +3097,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3094,7 +3108,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceSettings.java index 380dcc4836e1..91ab7b363d96 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringServiceSettings.java @@ -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. /** @@ -311,7 +312,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -332,7 +333,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelMonitoringServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java index 31e1fd287c17..7f933dc06b9f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java @@ -48,6 +48,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. /** @@ -585,7 +586,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelServiceClient implements BackgroundResource { - private final ModelServiceSettings settings; + private final @Nullable ModelServiceSettings settings; private final ModelServiceStub stub; private final OperationsClient operationsClient; @@ -627,7 +628,7 @@ protected ModelServiceClient(ModelServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ModelServiceSettings getSettings() { + public final @Nullable ModelServiceSettings getSettings() { return settings; } @@ -668,7 +669,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture uploadModelAsync( - LocationName parent, Model model) { + @Nullable LocationName parent, Model model) { UploadModelRequest request = UploadModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -835,7 +836,7 @@ public final UnaryCallable uploadModelCallable() * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -954,7 +955,7 @@ public final UnaryCallable getModelCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(LocationName parent) { + public final ListModelsPagedResponse listModels(@Nullable LocationName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -1119,7 +1120,7 @@ public final UnaryCallable listModelsCall * @param name Required. The name of the model to list versions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelVersionsPagedResponse listModelVersions(ModelName name) { + public final ListModelVersionsPagedResponse listModelVersions(@Nullable ModelName name) { ListModelVersionsRequest request = ListModelVersionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1298,7 +1299,7 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( - ModelName name) { + @Nullable ModelName name) { ListModelVersionCheckpointsRequest request = ListModelVersionCheckpointsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1572,7 +1573,7 @@ public final UnaryCallable updateModelCallable() { */ public final OperationFuture< UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata> - updateExplanationDatasetAsync(ModelName model) { + updateExplanationDatasetAsync(@Nullable ModelName model) { UpdateExplanationDatasetRequest request = UpdateExplanationDatasetRequest.newBuilder() .setModel(model == null ? null : model.toString()) @@ -1733,7 +1734,8 @@ public final UnaryCallable updateModelCallable() { * `projects/{project}/locations/{location}/models/{model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -1897,7 +1899,7 @@ public final UnaryCallable deleteModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteModelVersionAsync( - ModelName name) { + @Nullable ModelName name) { DeleteModelVersionRequest request = DeleteModelVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2077,7 +2079,7 @@ public final UnaryCallable deleteModelVers * cancelled out. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model mergeVersionAliases(ModelName name, List versionAliases) { + public final Model mergeVersionAliases(@Nullable ModelName name, List versionAliases) { MergeVersionAliasesRequest request = MergeVersionAliasesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2214,7 +2216,7 @@ public final UnaryCallable mergeVersionAliase * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportModelAsync( - ModelName name, ExportModelRequest.OutputConfig outputConfig) { + @Nullable ModelName name, ExportModelRequest.OutputConfig outputConfig) { ExportModelRequest request = ExportModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2382,7 +2384,7 @@ public final UnaryCallable exportModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - LocationName parent, ModelName sourceModel) { + @Nullable LocationName parent, @Nullable ModelName sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2420,7 +2422,7 @@ public final OperationFuture copy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - LocationName parent, String sourceModel) { + @Nullable LocationName parent, String sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2458,7 +2460,7 @@ public final OperationFuture copy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyModelAsync( - String parent, ModelName sourceModel) { + String parent, @Nullable ModelName sourceModel) { CopyModelRequest request = CopyModelRequest.newBuilder() .setParent(parent) @@ -2630,7 +2632,7 @@ public final UnaryCallable copyModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ModelEvaluation importModelEvaluation( - ModelName parent, ModelEvaluation modelEvaluation) { + @Nullable ModelName parent, ModelEvaluation modelEvaluation) { ImportModelEvaluationRequest request = ImportModelEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2759,7 +2761,7 @@ public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices( - ModelEvaluationName parent, List modelEvaluationSlices) { + @Nullable ModelEvaluationName parent, List modelEvaluationSlices) { BatchImportModelEvaluationSlicesRequest request = BatchImportModelEvaluationSlicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2898,7 +2900,7 @@ public final BatchImportModelEvaluationSlicesResponse batchImportModelEvaluation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations( - ModelEvaluationSliceName parent, List evaluatedAnnotations) { + @Nullable ModelEvaluationSliceName parent, List evaluatedAnnotations) { BatchImportEvaluatedAnnotationsRequest request = BatchImportEvaluatedAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3036,7 +3038,7 @@ public final BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotat * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { + public final ModelEvaluation getModelEvaluation(@Nullable ModelEvaluationName name) { GetModelEvaluationRequest request = GetModelEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3158,7 +3160,7 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques * Format: `projects/{project}/locations/{location}/models/{model}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationsPagedResponse listModelEvaluations(ModelName parent) { + public final ListModelEvaluationsPagedResponse listModelEvaluations(@Nullable ModelName parent) { ListModelEvaluationsRequest request = ListModelEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3333,7 +3335,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations( * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { + public final ModelEvaluationSlice getModelEvaluationSlice( + @Nullable ModelEvaluationSliceName name) { GetModelEvaluationSliceRequest request = GetModelEvaluationSliceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3464,7 +3467,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( - ModelEvaluationName parent) { + @Nullable ModelEvaluationName parent) { ListModelEvaluationSlicesRequest request = ListModelEvaluationSlicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4107,8 +4110,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -4118,14 +4121,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4139,7 +4142,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4149,7 +4153,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } @@ -4183,8 +4187,8 @@ public static class ListModelVersionsPage ListModelVersionsRequest, ListModelVersionsResponse, Model, ListModelVersionsPage> { private ListModelVersionsPage( - PageContext context, - ListModelVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListModelVersionsResponse response) { super(context, response); } @@ -4194,14 +4198,14 @@ private static ListModelVersionsPage createEmptyPage() { @Override protected ListModelVersionsPage createPage( - PageContext context, - ListModelVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListModelVersionsResponse response) { return new ListModelVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4216,7 +4220,7 @@ public static class ListModelVersionsFixedSizeCollection ListModelVersionsFixedSizeCollection> { private ListModelVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4226,7 +4230,7 @@ private static ListModelVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListModelVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4268,12 +4272,13 @@ public static class ListModelVersionCheckpointsPage ListModelVersionCheckpointsPage> { private ListModelVersionCheckpointsPage( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> context, - ListModelVersionCheckpointsResponse response) { + @Nullable ListModelVersionCheckpointsResponse response) { super(context, response); } @@ -4283,18 +4288,20 @@ private static ListModelVersionCheckpointsPage createEmptyPage() { @Override protected ListModelVersionCheckpointsPage createPage( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> context, - ListModelVersionCheckpointsResponse response) { + @Nullable ListModelVersionCheckpointsResponse response) { return new ListModelVersionCheckpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse, ModelVersionCheckpoint> @@ -4313,7 +4320,7 @@ public static class ListModelVersionCheckpointsFixedSizeCollection ListModelVersionCheckpointsFixedSizeCollection> { private ListModelVersionCheckpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4323,7 +4330,7 @@ private static ListModelVersionCheckpointsFixedSizeCollection createEmptyCollect @Override protected ListModelVersionCheckpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelVersionCheckpointsFixedSizeCollection(pages, collectionSize); } } @@ -4361,9 +4368,10 @@ public static class ListModelEvaluationsPage ListModelEvaluationsPage> { private ListModelEvaluationsPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { super(context, response); } @@ -4373,15 +4381,17 @@ private static ListModelEvaluationsPage createEmptyPage() { @Override protected ListModelEvaluationsPage createPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { return new ListModelEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4397,7 +4407,7 @@ public static class ListModelEvaluationsFixedSizeCollection ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4407,7 +4417,7 @@ private static ListModelEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListModelEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -4448,12 +4458,13 @@ public static class ListModelEvaluationSlicesPage ListModelEvaluationSlicesPage> { private ListModelEvaluationSlicesPage( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> context, - ListModelEvaluationSlicesResponse response) { + @Nullable ListModelEvaluationSlicesResponse response) { super(context, response); } @@ -4463,18 +4474,20 @@ private static ListModelEvaluationSlicesPage createEmptyPage() { @Override protected ListModelEvaluationSlicesPage createPage( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> context, - ListModelEvaluationSlicesResponse response) { + @Nullable ListModelEvaluationSlicesResponse response) { return new ListModelEvaluationSlicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesResponse, ModelEvaluationSlice> @@ -4493,7 +4506,7 @@ public static class ListModelEvaluationSlicesFixedSizeCollection ListModelEvaluationSlicesFixedSizeCollection> { private ListModelEvaluationSlicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4503,7 +4516,7 @@ private static ListModelEvaluationSlicesFixedSizeCollection createEmptyCollectio @Override protected ListModelEvaluationSlicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationSlicesFixedSizeCollection(pages, collectionSize); } } @@ -4537,8 +4550,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4548,14 +4561,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4569,7 +4582,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4579,7 +4593,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java index be6ba552f625..ba0794a2cd9c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -368,7 +369,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -388,7 +389,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java index bab391fc8f22..16bc69bad435 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java @@ -48,6 +48,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. /** @@ -517,7 +518,7 @@ @BetaApi @Generated("by gapic-generator-java") public class NotebookServiceClient implements BackgroundResource { - private final NotebookServiceSettings settings; + private final @Nullable NotebookServiceSettings settings; private final NotebookServiceStub stub; private final OperationsClient operationsClient; @@ -560,7 +561,7 @@ protected NotebookServiceClient(NotebookServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final NotebookServiceSettings getSettings() { + public final @Nullable NotebookServiceSettings getSettings() { return settings; } @@ -610,7 +611,7 @@ public final OperationsClient getOperationsClient() { public final OperationFuture< NotebookRuntimeTemplate, CreateNotebookRuntimeTemplateOperationMetadata> createNotebookRuntimeTemplateAsync( - LocationName parent, + @Nullable LocationName parent, NotebookRuntimeTemplate notebookRuntimeTemplate, String notebookRuntimeTemplateId) { CreateNotebookRuntimeTemplateRequest request = @@ -793,7 +794,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotebookRuntimeTemplate getNotebookRuntimeTemplate( - NotebookRuntimeTemplateName name) { + @Nullable NotebookRuntimeTemplateName name) { GetNotebookRuntimeTemplateRequest request = GetNotebookRuntimeTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -921,7 +922,7 @@ public final NotebookRuntimeTemplate getNotebookRuntimeTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotebookRuntimeTemplatesPagedResponse listNotebookRuntimeTemplates( - LocationName parent) { + @Nullable LocationName parent) { ListNotebookRuntimeTemplatesRequest request = ListNotebookRuntimeTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1103,7 +1104,7 @@ public final ListNotebookRuntimeTemplatesPagedResponse listNotebookRuntimeTempla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookRuntimeTemplateAsync( - NotebookRuntimeTemplateName name) { + @Nullable NotebookRuntimeTemplateName name) { DeleteNotebookRuntimeTemplateRequest request = DeleteNotebookRuntimeTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1378,8 +1379,8 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( */ public final OperationFuture assignNotebookRuntimeAsync( - LocationName parent, - NotebookRuntimeTemplateName notebookRuntimeTemplate, + @Nullable LocationName parent, + @Nullable NotebookRuntimeTemplateName notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { AssignNotebookRuntimeRequest request = @@ -1432,7 +1433,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( */ public final OperationFuture assignNotebookRuntimeAsync( - LocationName parent, + @Nullable LocationName parent, String notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { @@ -1485,7 +1486,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( public final OperationFuture assignNotebookRuntimeAsync( String parent, - NotebookRuntimeTemplateName notebookRuntimeTemplate, + @Nullable NotebookRuntimeTemplateName notebookRuntimeTemplate, NotebookRuntime notebookRuntime, String notebookRuntimeId) { AssignNotebookRuntimeRequest request = @@ -1685,7 +1686,7 @@ public final NotebookRuntimeTemplate updateNotebookRuntimeTemplate( * there is no such NotebookRuntime in spanner. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotebookRuntime getNotebookRuntime(NotebookRuntimeName name) { + public final NotebookRuntime getNotebookRuntime(@Nullable NotebookRuntimeName name) { GetNotebookRuntimeRequest request = GetNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1809,7 +1810,8 @@ public final NotebookRuntime getNotebookRuntime(GetNotebookRuntimeRequest reques * NotebookRuntimes. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotebookRuntimesPagedResponse listNotebookRuntimes(LocationName parent) { + public final ListNotebookRuntimesPagedResponse listNotebookRuntimes( + @Nullable LocationName parent) { ListNotebookRuntimesRequest request = ListNotebookRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1989,7 +1991,7 @@ public final ListNotebookRuntimesPagedResponse listNotebookRuntimes( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookRuntimeAsync( - NotebookRuntimeName name) { + @Nullable NotebookRuntimeName name) { DeleteNotebookRuntimeRequest request = DeleteNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2148,7 +2150,7 @@ public final OperationFuture deleteNotebookRunti */ public final OperationFuture< UpgradeNotebookRuntimeResponse, UpgradeNotebookRuntimeOperationMetadata> - upgradeNotebookRuntimeAsync(NotebookRuntimeName name) { + upgradeNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { UpgradeNotebookRuntimeRequest request = UpgradeNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2314,7 +2316,7 @@ public final OperationFuture deleteNotebookRunti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - startNotebookRuntimeAsync(NotebookRuntimeName name) { + startNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { StartNotebookRuntimeRequest request = StartNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2477,7 +2479,7 @@ public final OperationFuture deleteNotebookRunti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - stopNotebookRuntimeAsync(NotebookRuntimeName name) { + stopNotebookRuntimeAsync(@Nullable NotebookRuntimeName name) { StopNotebookRuntimeRequest request = StopNotebookRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2644,7 +2646,7 @@ public final UnaryCallable stopNotebookRu */ public final OperationFuture createNotebookExecutionJobAsync( - LocationName parent, + @Nullable LocationName parent, NotebookExecutionJob notebookExecutionJob, String notebookExecutionJobId) { CreateNotebookExecutionJobRequest request = @@ -2816,7 +2818,8 @@ public final UnaryCallable stopNotebookRu * @param name Required. The name of the NotebookExecutionJob resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotebookExecutionJob getNotebookExecutionJob(NotebookExecutionJobName name) { + public final NotebookExecutionJob getNotebookExecutionJob( + @Nullable NotebookExecutionJobName name) { GetNotebookExecutionJobRequest request = GetNotebookExecutionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2943,7 +2946,7 @@ public final NotebookExecutionJob getNotebookExecutionJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( - LocationName parent) { + @Nullable LocationName parent) { ListNotebookExecutionJobsRequest request = ListNotebookExecutionJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3122,7 +3125,7 @@ public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNotebookExecutionJobAsync( - NotebookExecutionJobName name) { + @Nullable NotebookExecutionJobName name) { DeleteNotebookExecutionJobRequest request = DeleteNotebookExecutionJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3685,12 +3688,13 @@ public static class ListNotebookRuntimeTemplatesPage ListNotebookRuntimeTemplatesPage> { private ListNotebookRuntimeTemplatesPage( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> context, - ListNotebookRuntimeTemplatesResponse response) { + @Nullable ListNotebookRuntimeTemplatesResponse response) { super(context, response); } @@ -3700,18 +3704,20 @@ private static ListNotebookRuntimeTemplatesPage createEmptyPage() { @Override protected ListNotebookRuntimeTemplatesPage createPage( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> context, - ListNotebookRuntimeTemplatesResponse response) { + @Nullable ListNotebookRuntimeTemplatesResponse response) { return new ListNotebookRuntimeTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotebookRuntimeTemplatesRequest, ListNotebookRuntimeTemplatesResponse, NotebookRuntimeTemplate> @@ -3730,7 +3736,7 @@ public static class ListNotebookRuntimeTemplatesFixedSizeCollection ListNotebookRuntimeTemplatesFixedSizeCollection> { private ListNotebookRuntimeTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3740,7 +3746,7 @@ private static ListNotebookRuntimeTemplatesFixedSizeCollection createEmptyCollec @Override protected ListNotebookRuntimeTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookRuntimeTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -3778,9 +3784,10 @@ public static class ListNotebookRuntimesPage ListNotebookRuntimesPage> { private ListNotebookRuntimesPage( - PageContext + @Nullable + PageContext context, - ListNotebookRuntimesResponse response) { + @Nullable ListNotebookRuntimesResponse response) { super(context, response); } @@ -3790,15 +3797,17 @@ private static ListNotebookRuntimesPage createEmptyPage() { @Override protected ListNotebookRuntimesPage createPage( - PageContext + @Nullable + PageContext context, - ListNotebookRuntimesResponse response) { + @Nullable ListNotebookRuntimesResponse response) { return new ListNotebookRuntimesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3814,7 +3823,7 @@ public static class ListNotebookRuntimesFixedSizeCollection ListNotebookRuntimesFixedSizeCollection> { private ListNotebookRuntimesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3824,7 +3833,7 @@ private static ListNotebookRuntimesFixedSizeCollection createEmptyCollection() { @Override protected ListNotebookRuntimesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookRuntimesFixedSizeCollection(pages, collectionSize); } } @@ -3865,12 +3874,13 @@ public static class ListNotebookExecutionJobsPage ListNotebookExecutionJobsPage> { private ListNotebookExecutionJobsPage( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> context, - ListNotebookExecutionJobsResponse response) { + @Nullable ListNotebookExecutionJobsResponse response) { super(context, response); } @@ -3880,18 +3890,20 @@ private static ListNotebookExecutionJobsPage createEmptyPage() { @Override protected ListNotebookExecutionJobsPage createPage( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> context, - ListNotebookExecutionJobsResponse response) { + @Nullable ListNotebookExecutionJobsResponse response) { return new ListNotebookExecutionJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsResponse, NotebookExecutionJob> @@ -3910,7 +3922,7 @@ public static class ListNotebookExecutionJobsFixedSizeCollection ListNotebookExecutionJobsFixedSizeCollection> { private ListNotebookExecutionJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3920,7 +3932,7 @@ private static ListNotebookExecutionJobsFixedSizeCollection createEmptyCollectio @Override protected ListNotebookExecutionJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotebookExecutionJobsFixedSizeCollection(pages, collectionSize); } } @@ -3954,8 +3966,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3965,14 +3977,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3986,7 +3998,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3996,7 +4009,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java index a2b8fe307865..2971c29e0874 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -406,7 +407,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java index 317e3240c88e..0421179393b4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java @@ -48,6 +48,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. /** @@ -339,7 +340,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OnlineEvaluatorServiceClient implements BackgroundResource { - private final OnlineEvaluatorServiceSettings settings; + private final @Nullable OnlineEvaluatorServiceSettings settings; private final OnlineEvaluatorServiceStub stub; private final OperationsClient operationsClient; @@ -383,7 +384,7 @@ protected OnlineEvaluatorServiceClient(OnlineEvaluatorServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final OnlineEvaluatorServiceSettings getSettings() { + public final @Nullable OnlineEvaluatorServiceSettings getSettings() { return settings; } @@ -426,7 +427,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator) { + createOnlineEvaluatorAsync(@Nullable LocationName parent, OnlineEvaluator onlineEvaluator) { CreateOnlineEvaluatorRequest request = CreateOnlineEvaluatorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -590,7 +591,7 @@ public final OperationsClient getOperationsClient() { * projects/{project}/locations/{location}/onlineEvaluators/{id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OnlineEvaluator getOnlineEvaluator(OnlineEvaluatorName name) { + public final OnlineEvaluator getOnlineEvaluator(@Nullable OnlineEvaluatorName name) { GetOnlineEvaluatorRequest request = GetOnlineEvaluatorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -850,7 +851,7 @@ public final OnlineEvaluator getOnlineEvaluator(GetOnlineEvaluatorRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteOnlineEvaluatorAsync(OnlineEvaluatorName name) { + deleteOnlineEvaluatorAsync(@Nullable OnlineEvaluatorName name) { DeleteOnlineEvaluatorRequest request = DeleteOnlineEvaluatorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1012,7 +1013,8 @@ public final OnlineEvaluator getOnlineEvaluator(GetOnlineEvaluatorRequest reques * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators(LocationName parent) { + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators( + @Nullable LocationName parent) { ListOnlineEvaluatorsRequest request = ListOnlineEvaluatorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1194,7 +1196,7 @@ public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - activateOnlineEvaluatorAsync(OnlineEvaluatorName name) { + activateOnlineEvaluatorAsync(@Nullable OnlineEvaluatorName name) { ActivateOnlineEvaluatorRequest request = ActivateOnlineEvaluatorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1361,7 +1363,7 @@ public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - suspendOnlineEvaluatorAsync(OnlineEvaluatorName name) { + suspendOnlineEvaluatorAsync(@Nullable OnlineEvaluatorName name) { SuspendOnlineEvaluatorRequest request = SuspendOnlineEvaluatorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1948,9 +1950,10 @@ public static class ListOnlineEvaluatorsPage ListOnlineEvaluatorsPage> { private ListOnlineEvaluatorsPage( - PageContext + @Nullable + PageContext context, - ListOnlineEvaluatorsResponse response) { + @Nullable ListOnlineEvaluatorsResponse response) { super(context, response); } @@ -1960,15 +1963,17 @@ private static ListOnlineEvaluatorsPage createEmptyPage() { @Override protected ListOnlineEvaluatorsPage createPage( - PageContext + @Nullable + PageContext context, - ListOnlineEvaluatorsResponse response) { + @Nullable ListOnlineEvaluatorsResponse response) { return new ListOnlineEvaluatorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1984,7 +1989,7 @@ public static class ListOnlineEvaluatorsFixedSizeCollection ListOnlineEvaluatorsFixedSizeCollection> { private ListOnlineEvaluatorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1994,7 +1999,7 @@ private static ListOnlineEvaluatorsFixedSizeCollection createEmptyCollection() { @Override protected ListOnlineEvaluatorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOnlineEvaluatorsFixedSizeCollection(pages, collectionSize); } } @@ -2028,8 +2033,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2039,14 +2044,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2060,7 +2065,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2070,7 +2076,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java index 025f9ec9bd47..73e54d9a03b4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -309,7 +310,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OnlineEvaluatorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java index 330373b29518..a0de11a1f0e8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java @@ -48,6 +48,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. /** @@ -319,7 +320,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PersistentResourceServiceClient implements BackgroundResource { - private final PersistentResourceServiceSettings settings; + private final @Nullable PersistentResourceServiceSettings settings; private final PersistentResourceServiceStub stub; private final OperationsClient operationsClient; @@ -364,7 +365,7 @@ protected PersistentResourceServiceClient(PersistentResourceServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PersistentResourceServiceSettings getSettings() { + public final @Nullable PersistentResourceServiceSettings getSettings() { return settings; } @@ -415,7 +416,9 @@ public final OperationsClient getOperationsClient() { */ public final OperationFuture createPersistentResourceAsync( - LocationName parent, PersistentResource persistentResource, String persistentResourceId) { + @Nullable LocationName parent, + PersistentResource persistentResource, + String persistentResourceId) { CreatePersistentResourceRequest request = CreatePersistentResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -596,7 +599,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PersistentResource getPersistentResource(PersistentResourceName name) { + public final PersistentResource getPersistentResource(@Nullable PersistentResourceName name) { GetPersistentResourceRequest request = GetPersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -723,7 +726,8 @@ public final PersistentResource getPersistentResource(GetPersistentResourceReque * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPersistentResourcesPagedResponse listPersistentResources(LocationName parent) { + public final ListPersistentResourcesPagedResponse listPersistentResources( + @Nullable LocationName parent) { ListPersistentResourcesRequest request = ListPersistentResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -900,7 +904,7 @@ public final ListPersistentResourcesPagedResponse listPersistentResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePersistentResourceAsync( - PersistentResourceName name) { + @Nullable PersistentResourceName name) { DeletePersistentResourceRequest request = DeletePersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1203,7 +1207,7 @@ public final OperationFuture deletePersistentRes * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - rebootPersistentResourceAsync(PersistentResourceName name) { + rebootPersistentResourceAsync(@Nullable PersistentResourceName name) { RebootPersistentResourceRequest request = RebootPersistentResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1789,10 +1793,11 @@ public static class ListPersistentResourcesPage ListPersistentResourcesPage> { private ListPersistentResourcesPage( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, - ListPersistentResourcesResponse response) { + @Nullable ListPersistentResourcesResponse response) { super(context, response); } @@ -1802,16 +1807,18 @@ private static ListPersistentResourcesPage createEmptyPage() { @Override protected ListPersistentResourcesPage createPage( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, - ListPersistentResourcesResponse response) { + @Nullable ListPersistentResourcesResponse response) { return new ListPersistentResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPersistentResourcesRequest, ListPersistentResourcesResponse, PersistentResource> context, ApiFuture futureResponse) { @@ -1828,7 +1835,7 @@ public static class ListPersistentResourcesFixedSizeCollection ListPersistentResourcesFixedSizeCollection> { private ListPersistentResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1838,7 +1845,7 @@ private static ListPersistentResourcesFixedSizeCollection createEmptyCollection( @Override protected ListPersistentResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPersistentResourcesFixedSizeCollection(pages, collectionSize); } } @@ -1872,8 +1879,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1883,14 +1890,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1904,7 +1911,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1914,7 +1922,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java index 5443a25a0538..2679fdeb22d7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -305,7 +306,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PersistentResourceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java index b06980a2f33b..88b8977d4063 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java @@ -47,6 +47,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. /** @@ -436,7 +437,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PipelineServiceClient implements BackgroundResource { - private final PipelineServiceSettings settings; + private final @Nullable PipelineServiceSettings settings; private final PipelineServiceStub stub; private final OperationsClient operationsClient; @@ -479,7 +480,7 @@ protected PipelineServiceClient(PipelineServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PipelineServiceSettings getSettings() { + public final @Nullable PipelineServiceSettings getSettings() { return settings; } @@ -521,7 +522,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TrainingPipeline createTrainingPipeline( - LocationName parent, TrainingPipeline trainingPipeline) { + @Nullable LocationName parent, TrainingPipeline trainingPipeline) { CreateTrainingPipelineRequest request = CreateTrainingPipelineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -647,7 +648,7 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) { + public final TrainingPipeline getTrainingPipeline(@Nullable TrainingPipelineName name) { GetTrainingPipelineRequest request = GetTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -770,7 +771,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTrainingPipelinesPagedResponse listTrainingPipelines(LocationName parent) { + public final ListTrainingPipelinesPagedResponse listTrainingPipelines( + @Nullable LocationName parent) { ListTrainingPipelinesRequest request = ListTrainingPipelinesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -946,7 +948,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrainingPipelineAsync( - TrainingPipelineName name) { + @Nullable TrainingPipelineName name) { DeleteTrainingPipelineRequest request = DeleteTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1110,7 +1112,7 @@ public final OperationFuture deleteTrainingPipel * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelTrainingPipeline(TrainingPipelineName name) { + public final void cancelTrainingPipeline(@Nullable TrainingPipelineName name) { CancelTrainingPipelineRequest request = CancelTrainingPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1268,7 +1270,7 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( - LocationName parent, PipelineJob pipelineJob, String pipelineJobId) { + @Nullable LocationName parent, PipelineJob pipelineJob, String pipelineJobId) { CreatePipelineJobRequest request = CreatePipelineJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1400,7 +1402,7 @@ public final UnaryCallable createPipeline * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PipelineJob getPipelineJob(PipelineJobName name) { + public final PipelineJob getPipelineJob(@Nullable PipelineJobName name) { GetPipelineJobRequest request = GetPipelineJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPipelineJob(request); @@ -1513,7 +1515,7 @@ public final UnaryCallable getPipelineJobCal * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPipelineJobsPagedResponse listPipelineJobs(LocationName parent) { + public final ListPipelineJobsPagedResponse listPipelineJobs(@Nullable LocationName parent) { ListPipelineJobsRequest request = ListPipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1688,7 +1690,7 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePipelineJobAsync( - PipelineJobName name) { + @Nullable PipelineJobName name) { DeletePipelineJobRequest request = DeletePipelineJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1838,7 +1840,7 @@ public final UnaryCallable deletePipelineJo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchDeletePipelineJobsAsync(LocationName parent, List names) { + batchDeletePipelineJobsAsync(@Nullable LocationName parent, List names) { BatchDeletePipelineJobsRequest request = BatchDeletePipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2007,7 +2009,7 @@ public final UnaryCallable deletePipelineJo * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelPipelineJob(PipelineJobName name) { + public final void cancelPipelineJob(@Nullable PipelineJobName name) { CancelPipelineJobRequest request = CancelPipelineJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2154,7 +2156,7 @@ public final UnaryCallable cancelPipelineJobCal */ public final OperationFuture< BatchCancelPipelineJobsResponse, BatchCancelPipelineJobsOperationMetadata> - batchCancelPipelineJobsAsync(LocationName parent, List names) { + batchCancelPipelineJobsAsync(@Nullable LocationName parent, List names) { BatchCancelPipelineJobsRequest request = BatchCancelPipelineJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2734,9 +2736,11 @@ public static class ListTrainingPipelinesPage ListTrainingPipelinesPage> { private ListTrainingPipelinesPage( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, - ListTrainingPipelinesResponse response) { + @Nullable ListTrainingPipelinesResponse response) { super(context, response); } @@ -2746,15 +2750,19 @@ private static ListTrainingPipelinesPage createEmptyPage() { @Override protected ListTrainingPipelinesPage createPage( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, - ListTrainingPipelinesResponse response) { + @Nullable ListTrainingPipelinesResponse response) { return new ListTrainingPipelinesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2770,7 +2778,7 @@ public static class ListTrainingPipelinesFixedSizeCollection ListTrainingPipelinesFixedSizeCollection> { private ListTrainingPipelinesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2780,7 +2788,7 @@ private static ListTrainingPipelinesFixedSizeCollection createEmptyCollection() @Override protected ListTrainingPipelinesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTrainingPipelinesFixedSizeCollection(pages, collectionSize); } } @@ -2814,8 +2822,9 @@ public static class ListPipelineJobsPage ListPipelineJobsRequest, ListPipelineJobsResponse, PipelineJob, ListPipelineJobsPage> { private ListPipelineJobsPage( - PageContext context, - ListPipelineJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListPipelineJobsResponse response) { super(context, response); } @@ -2825,14 +2834,16 @@ private static ListPipelineJobsPage createEmptyPage() { @Override protected ListPipelineJobsPage createPage( - PageContext context, - ListPipelineJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListPipelineJobsResponse response) { return new ListPipelineJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2847,7 +2858,7 @@ public static class ListPipelineJobsFixedSizeCollection ListPipelineJobsFixedSizeCollection> { private ListPipelineJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2857,7 +2868,7 @@ private static ListPipelineJobsFixedSizeCollection createEmptyCollection() { @Override protected ListPipelineJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPipelineJobsFixedSizeCollection(pages, collectionSize); } } @@ -2891,8 +2902,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2902,14 +2913,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2923,7 +2934,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2933,7 +2945,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java index 744cef895d4b..f63e0ba6d320 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -303,7 +304,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -323,7 +324,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PipelineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java index dce2eb9580bb..75f9b13eda7c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java @@ -46,6 +46,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. /** @@ -429,7 +430,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -469,7 +470,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } @@ -516,7 +517,7 @@ public PredictionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( - EndpointName endpoint, List instances, Value parameters) { + @Nullable EndpointName endpoint, List instances, Value parameters) { PredictRequest request = PredictRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -692,7 +693,7 @@ public final UnaryCallable predictCallable() { * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and use the `RawPredict` method. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HttpBody rawPredict(EndpointName endpoint, HttpBody httpBody) { + public final HttpBody rawPredict(@Nullable EndpointName endpoint, HttpBody httpBody) { RawPredictRequest request = RawPredictRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1246,7 +1247,10 @@ public final DirectRawPredictResponse directRawPredict(DirectRawPredictRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExplainResponse explain( - EndpointName endpoint, List instances, Value parameters, String deployedModelId) { + @Nullable EndpointName endpoint, + List instances, + Value parameters, + String deployedModelId) { ExplainRequest request = ExplainRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1434,7 +1438,8 @@ public final UnaryCallable explainCallable() { * identical to the prediction schema of the underlying model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CountTokensResponse countTokens(EndpointName endpoint, List instances) { + public final CountTokensResponse countTokens( + @Nullable EndpointName endpoint, List instances) { CountTokensRequest request = CountTokensRequest.newBuilder() .setEndpoint(endpoint == null ? null : endpoint.toString()) @@ -1762,7 +1767,7 @@ public final ServerStreamingCallable chatCompl * @param content Required. Input content to be embedded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EmbedContentResponse embedContent(EndpointName model, Content content) { + public final EmbedContentResponse embedContent(@Nullable EndpointName model, Content content) { EmbedContentRequest request = EmbedContentRequest.newBuilder() .setModel(model == null ? null : model.toString()) @@ -2300,8 +2305,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2311,14 +2316,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2332,7 +2337,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2342,7 +2348,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index b895d671ad29..a6aaf03f5ddb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -261,7 +262,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -281,7 +282,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java index 6dc1899697b0..337951dd8fd4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java @@ -48,6 +48,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. /** @@ -261,7 +262,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReasoningEngineExecutionServiceClient implements BackgroundResource { - private final ReasoningEngineExecutionServiceSettings settings; + private final @Nullable ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; private final OperationsClient operationsClient; @@ -309,7 +310,7 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ReasoningEngineExecutionServiceSettings getSettings() { + public final @Nullable ReasoningEngineExecutionServiceSettings getSettings() { return settings; } @@ -1051,8 +1052,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1062,14 +1063,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1083,7 +1084,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1093,7 +1095,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java index d333a562a160..8e3e6513b9cc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReasoningEngineExecutionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceClient.java index 3c511f3da2eb..8863b652b249 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceClient.java @@ -47,6 +47,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. /** @@ -263,7 +264,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReasoningEngineRuntimeRevisionServiceClient implements BackgroundResource { - private final ReasoningEngineRuntimeRevisionServiceSettings settings; + private final @Nullable ReasoningEngineRuntimeRevisionServiceSettings settings; private final ReasoningEngineRuntimeRevisionServiceStub stub; private final OperationsClient operationsClient; @@ -315,7 +316,7 @@ protected ReasoningEngineRuntimeRevisionServiceClient( this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ReasoningEngineRuntimeRevisionServiceSettings getSettings() { + public final @Nullable ReasoningEngineRuntimeRevisionServiceSettings getSettings() { return settings; } @@ -358,7 +359,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReasoningEngineRuntimeRevision getReasoningEngineRuntimeRevision( - ReasoningEngineRuntimeRevisionName name) { + @Nullable ReasoningEngineRuntimeRevisionName name) { GetReasoningEngineRuntimeRevisionRequest request = GetReasoningEngineRuntimeRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -500,7 +501,7 @@ public final ReasoningEngineRuntimeRevision getReasoningEngineRuntimeRevision( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListReasoningEngineRuntimeRevisionsPagedResponse listReasoningEngineRuntimeRevisions( - ReasoningEngineName parent) { + @Nullable ReasoningEngineName parent) { ListReasoningEngineRuntimeRevisionsRequest request = ListReasoningEngineRuntimeRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -703,7 +704,7 @@ public final ListReasoningEngineRuntimeRevisionsPagedResponse listReasoningEngin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteReasoningEngineRuntimeRevisionAsync(ReasoningEngineRuntimeRevisionName name) { + deleteReasoningEngineRuntimeRevisionAsync(@Nullable ReasoningEngineRuntimeRevisionName name) { DeleteReasoningEngineRuntimeRevisionRequest request = DeleteReasoningEngineRuntimeRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1309,12 +1310,13 @@ public static class ListReasoningEngineRuntimeRevisionsPage ListReasoningEngineRuntimeRevisionsPage> { private ListReasoningEngineRuntimeRevisionsPage( - PageContext< + @Nullable + PageContext< ListReasoningEngineRuntimeRevisionsRequest, ListReasoningEngineRuntimeRevisionsResponse, ReasoningEngineRuntimeRevision> context, - ListReasoningEngineRuntimeRevisionsResponse response) { + @Nullable ListReasoningEngineRuntimeRevisionsResponse response) { super(context, response); } @@ -1324,18 +1326,20 @@ private static ListReasoningEngineRuntimeRevisionsPage createEmptyPage() { @Override protected ListReasoningEngineRuntimeRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListReasoningEngineRuntimeRevisionsRequest, ListReasoningEngineRuntimeRevisionsResponse, ReasoningEngineRuntimeRevision> context, - ListReasoningEngineRuntimeRevisionsResponse response) { + @Nullable ListReasoningEngineRuntimeRevisionsResponse response) { return new ListReasoningEngineRuntimeRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListReasoningEngineRuntimeRevisionsRequest, ListReasoningEngineRuntimeRevisionsResponse, ReasoningEngineRuntimeRevision> @@ -1354,7 +1358,7 @@ public static class ListReasoningEngineRuntimeRevisionsFixedSizeCollection ListReasoningEngineRuntimeRevisionsFixedSizeCollection> { private ListReasoningEngineRuntimeRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1364,7 +1368,7 @@ private static ListReasoningEngineRuntimeRevisionsFixedSizeCollection createEmpt @Override protected ListReasoningEngineRuntimeRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReasoningEngineRuntimeRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -1398,8 +1402,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1409,14 +1413,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1430,7 +1434,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1440,7 +1445,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceSettings.java index d2e11d705066..a8e7b3b58d42 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -248,7 +249,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReasoningEngineRuntimeRevisionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java index 63159f78455e..d3f1407916d3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceClient.java @@ -48,6 +48,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. /** @@ -299,7 +300,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReasoningEngineServiceClient implements BackgroundResource { - private final ReasoningEngineServiceSettings settings; + private final @Nullable ReasoningEngineServiceSettings settings; private final ReasoningEngineServiceStub stub; private final OperationsClient operationsClient; @@ -343,7 +344,7 @@ protected ReasoningEngineServiceClient(ReasoningEngineServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ReasoningEngineServiceSettings getSettings() { + public final @Nullable ReasoningEngineServiceSettings getSettings() { return settings; } @@ -386,7 +387,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createReasoningEngineAsync(LocationName parent, ReasoningEngine reasoningEngine) { + createReasoningEngineAsync(@Nullable LocationName parent, ReasoningEngine reasoningEngine) { CreateReasoningEngineRequest request = CreateReasoningEngineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -550,7 +551,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReasoningEngine getReasoningEngine(ReasoningEngineName name) { + public final ReasoningEngine getReasoningEngine(@Nullable ReasoningEngineName name) { GetReasoningEngineRequest request = GetReasoningEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -677,7 +678,8 @@ public final ReasoningEngine getReasoningEngine(GetReasoningEngineRequest reques * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReasoningEnginesPagedResponse listReasoningEngines(LocationName parent) { + public final ListReasoningEnginesPagedResponse listReasoningEngines( + @Nullable LocationName parent) { ListReasoningEnginesRequest request = ListReasoningEnginesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -987,7 +989,7 @@ public final ListReasoningEnginesPagedResponse listReasoningEngines( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteReasoningEngineAsync( - ReasoningEngineName name) { + @Nullable ReasoningEngineName name) { DeleteReasoningEngineRequest request = DeleteReasoningEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1568,9 +1570,10 @@ public static class ListReasoningEnginesPage ListReasoningEnginesPage> { private ListReasoningEnginesPage( - PageContext + @Nullable + PageContext context, - ListReasoningEnginesResponse response) { + @Nullable ListReasoningEnginesResponse response) { super(context, response); } @@ -1580,15 +1583,17 @@ private static ListReasoningEnginesPage createEmptyPage() { @Override protected ListReasoningEnginesPage createPage( - PageContext + @Nullable + PageContext context, - ListReasoningEnginesResponse response) { + @Nullable ListReasoningEnginesResponse response) { return new ListReasoningEnginesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1604,7 +1609,7 @@ public static class ListReasoningEnginesFixedSizeCollection ListReasoningEnginesFixedSizeCollection> { private ListReasoningEnginesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1614,7 +1619,7 @@ private static ListReasoningEnginesFixedSizeCollection createEmptyCollection() { @Override protected ListReasoningEnginesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReasoningEnginesFixedSizeCollection(pages, collectionSize); } } @@ -1648,8 +1653,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1659,14 +1664,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1680,7 +1685,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1690,7 +1696,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceSettings.java index 1b91eda14a9a..5d30a8041994 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReasoningEngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java index ab0220fee5e0..84dd4dd00452 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java @@ -48,6 +48,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. /** @@ -339,7 +340,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ScheduleServiceClient implements BackgroundResource { - private final ScheduleServiceSettings settings; + private final @Nullable ScheduleServiceSettings settings; private final ScheduleServiceStub stub; private final OperationsClient operationsClient; @@ -382,7 +383,7 @@ protected ScheduleServiceClient(ScheduleServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ScheduleServiceSettings getSettings() { + public final @Nullable ScheduleServiceSettings getSettings() { return settings; } @@ -422,7 +423,7 @@ public final OperationsClient getOperationsClient() { * @param schedule Required. The Schedule to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schedule createSchedule(LocationName parent, Schedule schedule) { + public final Schedule createSchedule(@Nullable LocationName parent, Schedule schedule) { CreateScheduleRequest request = CreateScheduleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +543,7 @@ public final UnaryCallable createScheduleCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteScheduleAsync( - ScheduleName name) { + @Nullable ScheduleName name) { DeleteScheduleRequest request = DeleteScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteScheduleAsync(request); @@ -683,7 +684,7 @@ public final UnaryCallable deleteScheduleCalla * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schedule getSchedule(ScheduleName name) { + public final Schedule getSchedule(@Nullable ScheduleName name) { GetScheduleRequest request = GetScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchedule(request); @@ -795,7 +796,7 @@ public final UnaryCallable getScheduleCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchedulesPagedResponse listSchedules(LocationName parent) { + public final ListSchedulesPagedResponse listSchedules(@Nullable LocationName parent) { ListSchedulesRequest request = ListSchedulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -966,7 +967,7 @@ public final UnaryCallable listSche * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pauseSchedule(ScheduleName name) { + public final void pauseSchedule(@Nullable ScheduleName name) { PauseScheduleRequest request = PauseScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); pauseSchedule(request); @@ -1088,7 +1089,7 @@ public final UnaryCallable pauseScheduleCallable() * `projects/{project}/locations/{location}/schedules/{schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeSchedule(ScheduleName name) { + public final void resumeSchedule(@Nullable ScheduleName name) { ResumeScheduleRequest request = ResumeScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); resumeSchedule(request); @@ -1161,7 +1162,7 @@ public final void resumeSchedule(String name) { * false. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeSchedule(ScheduleName name, boolean catchUp) { + public final void resumeSchedule(@Nullable ScheduleName name, boolean catchUp) { ResumeScheduleRequest request = ResumeScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1809,8 +1810,8 @@ public static class ListSchedulesPage ListSchedulesRequest, ListSchedulesResponse, Schedule, ListSchedulesPage> { private ListSchedulesPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { super(context, response); } @@ -1820,14 +1821,14 @@ private static ListSchedulesPage createEmptyPage() { @Override protected ListSchedulesPage createPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { return new ListSchedulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1841,7 +1842,8 @@ public static class ListSchedulesFixedSizeCollection ListSchedulesPage, ListSchedulesFixedSizeCollection> { - private ListSchedulesFixedSizeCollection(List pages, int collectionSize) { + private ListSchedulesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1851,7 +1853,7 @@ private static ListSchedulesFixedSizeCollection createEmptyCollection() { @Override protected ListSchedulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchedulesFixedSizeCollection(pages, collectionSize); } } @@ -1885,8 +1887,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1896,14 +1898,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1917,7 +1919,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1927,7 +1930,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceSettings.java index 332614b98211..45ad9acd9531 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ScheduleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java index 88831e295d41..dd55e1fe2419 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceClient.java @@ -48,6 +48,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. /** @@ -335,7 +336,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; private final OperationsClient operationsClient; @@ -378,7 +379,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -420,7 +421,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSessionAsync( - ReasoningEngineName parent, Session session) { + @Nullable ReasoningEngineName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -493,7 +494,7 @@ public final OperationFuture createSess * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSessionAsync( - ReasoningEngineName parent, Session session, String sessionId) { + @Nullable ReasoningEngineName parent, Session session, String sessionId) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -666,7 +667,7 @@ public final UnaryCallable createSessionCallabl * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -784,7 +785,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(ReasoningEngineName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable ReasoningEngineName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1049,7 +1050,7 @@ public final UnaryCallable updateSessionCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSessionAsync( - SessionName name) { + @Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSessionAsync(request); @@ -1200,7 +1201,7 @@ public final UnaryCallable deleteSessionCallabl * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(SessionName parent) { + public final ListEventsPagedResponse listEvents(@Nullable SessionName parent) { ListEventsRequest request = ListEventsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listEvents(request); @@ -1375,7 +1376,7 @@ public final UnaryCallable listEventsCall * @param event Required. The event to append to the session. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppendEventResponse appendEvent(SessionName name, SessionEvent event) { + public final AppendEventResponse appendEvent(@Nullable SessionName name, SessionEvent event) { AppendEventRequest request = AppendEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1899,8 +1900,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1910,14 +1911,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1931,7 +1932,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1941,7 +1943,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } @@ -1972,8 +1974,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -1983,14 +1985,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2004,7 +2006,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2014,7 +2017,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } @@ -2048,8 +2051,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2059,14 +2062,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2080,7 +2083,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2090,7 +2094,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceSettings.java index c2f891a63361..965c7f4409b0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -250,7 +251,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java index a4e902d690b4..a5b92d167e65 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java @@ -48,6 +48,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. /** @@ -303,7 +304,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SpecialistPoolServiceClient implements BackgroundResource { - private final SpecialistPoolServiceSettings settings; + private final @Nullable SpecialistPoolServiceSettings settings; private final SpecialistPoolServiceStub stub; private final OperationsClient operationsClient; @@ -346,7 +347,7 @@ protected SpecialistPoolServiceClient(SpecialistPoolServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SpecialistPoolServiceSettings getSettings() { + public final @Nullable SpecialistPoolServiceSettings getSettings() { return settings; } @@ -389,7 +390,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createSpecialistPoolAsync(LocationName parent, SpecialistPool specialistPool) { + createSpecialistPoolAsync(@Nullable LocationName parent, SpecialistPool specialistPool) { CreateSpecialistPoolRequest request = CreateSpecialistPoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -553,7 +554,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SpecialistPool getSpecialistPool(SpecialistPoolName name) { + public final SpecialistPool getSpecialistPool(@Nullable SpecialistPoolName name) { GetSpecialistPoolRequest request = GetSpecialistPoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -676,7 +677,7 @@ public final UnaryCallable getSpeciali * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpecialistPoolsPagedResponse listSpecialistPools(LocationName parent) { + public final ListSpecialistPoolsPagedResponse listSpecialistPools(@Nullable LocationName parent) { ListSpecialistPoolsRequest request = ListSpecialistPoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -854,7 +855,7 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSpecialistPoolAsync( - SpecialistPoolName name) { + @Nullable SpecialistPoolName name) { DeleteSpecialistPoolRequest request = DeleteSpecialistPoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1561,9 +1562,10 @@ public static class ListSpecialistPoolsPage ListSpecialistPoolsPage> { private ListSpecialistPoolsPage( - PageContext + @Nullable + PageContext context, - ListSpecialistPoolsResponse response) { + @Nullable ListSpecialistPoolsResponse response) { super(context, response); } @@ -1573,15 +1575,17 @@ private static ListSpecialistPoolsPage createEmptyPage() { @Override protected ListSpecialistPoolsPage createPage( - PageContext + @Nullable + PageContext context, - ListSpecialistPoolsResponse response) { + @Nullable ListSpecialistPoolsResponse response) { return new ListSpecialistPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1597,7 +1601,7 @@ public static class ListSpecialistPoolsFixedSizeCollection ListSpecialistPoolsFixedSizeCollection> { private ListSpecialistPoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1607,7 +1611,7 @@ private static ListSpecialistPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListSpecialistPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpecialistPoolsFixedSizeCollection(pages, collectionSize); } } @@ -1641,8 +1645,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1652,14 +1656,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1673,7 +1677,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1683,7 +1688,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java index 56e042448e8b..76ef53f26286 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -272,7 +273,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpecialistPoolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java index 2b5a7a92a159..43d3733f1844 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java @@ -49,6 +49,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. /** @@ -762,7 +763,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TensorboardServiceClient implements BackgroundResource { - private final TensorboardServiceSettings settings; + private final @Nullable TensorboardServiceSettings settings; private final TensorboardServiceStub stub; private final OperationsClient operationsClient; @@ -805,7 +806,7 @@ protected TensorboardServiceClient(TensorboardServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final TensorboardServiceSettings getSettings() { + public final @Nullable TensorboardServiceSettings getSettings() { return settings; } @@ -847,7 +848,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createTensorboardAsync(TensorboardName parent, Tensorboard tensorboard) { + createTensorboardAsync(@Nullable TensorboardName parent, Tensorboard tensorboard) { CreateTensorboardRequest request = CreateTensorboardRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1000,7 +1001,7 @@ public final UnaryCallable createTensorboar * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tensorboard getTensorboard(TensorboardName name) { + public final Tensorboard getTensorboard(@Nullable TensorboardName name) { GetTensorboardRequest request = GetTensorboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTensorboard(request); @@ -1241,7 +1242,7 @@ public final UnaryCallable updateTensorboar * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTensorboardsPagedResponse listTensorboards(LocationName parent) { + public final ListTensorboardsPagedResponse listTensorboards(@Nullable LocationName parent) { ListTensorboardsRequest request = ListTensorboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1416,7 +1417,7 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardAsync( - TensorboardName name) { + @Nullable TensorboardName name) { DeleteTensorboardRequest request = DeleteTensorboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1560,7 +1561,8 @@ public final UnaryCallable deleteTensorboar * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadTensorboardUsageResponse readTensorboardUsage(TensorboardName tensorboard) { + public final ReadTensorboardUsageResponse readTensorboardUsage( + @Nullable TensorboardName tensorboard) { ReadTensorboardUsageRequest request = ReadTensorboardUsageRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -1682,7 +1684,8 @@ public final ReadTensorboardUsageResponse readTensorboardUsage( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadTensorboardSizeResponse readTensorboardSize(TensorboardName tensorboard) { + public final ReadTensorboardSizeResponse readTensorboardSize( + @Nullable TensorboardName tensorboard) { ReadTensorboardSizeRequest request = ReadTensorboardSizeRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -1812,7 +1815,7 @@ public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSize * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( - TensorboardExperimentName parent, + @Nullable TensorboardExperimentName parent, TensorboardExperiment tensorboardExperiment, String tensorboardExperimentId) { CreateTensorboardExperimentRequest request = @@ -1960,7 +1963,8 @@ public final TensorboardExperiment createTensorboardExperiment( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimentName name) { + public final TensorboardExperiment getTensorboardExperiment( + @Nullable TensorboardExperimentName name) { GetTensorboardExperimentRequest request = GetTensorboardExperimentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2189,7 +2193,7 @@ public final TensorboardExperiment updateTensorboardExperiment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments( - TensorboardName parent) { + @Nullable TensorboardName parent) { ListTensorboardExperimentsRequest request = ListTensorboardExperimentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2369,7 +2373,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardExperimentAsync( - TensorboardExperimentName name) { + @Nullable TensorboardExperimentName name) { DeleteTensorboardExperimentRequest request = DeleteTensorboardExperimentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2539,7 +2543,7 @@ public final OperationFuture deleteTensorboardEx * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( - TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) { + @Nullable TensorboardRunName parent, TensorboardRun tensorboardRun, String tensorboardRunId) { CreateTensorboardRunRequest request = CreateTensorboardRunRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2689,7 +2693,7 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( - TensorboardExperimentName parent, List requests) { + @Nullable TensorboardExperimentName parent, List requests) { BatchCreateTensorboardRunsRequest request = BatchCreateTensorboardRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2829,7 +2833,7 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardRun getTensorboardRun(TensorboardRunName name) { + public final TensorboardRun getTensorboardRun(@Nullable TensorboardRunName name) { GetTensorboardRunRequest request = GetTensorboardRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3054,7 +3058,7 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardRunsPagedResponse listTensorboardRuns( - TensorboardExperimentName parent) { + @Nullable TensorboardExperimentName parent) { ListTensorboardRunsRequest request = ListTensorboardRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3246,7 +3250,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardRunAsync( - TensorboardRunName name) { + @Nullable TensorboardRunName name) { DeleteTensorboardRunRequest request = DeleteTensorboardRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3413,7 +3417,8 @@ public final OperationFuture deleteTensorboardRu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTimeSeries( - TensorboardExperimentName parent, List requests) { + @Nullable TensorboardExperimentName parent, + List requests) { BatchCreateTensorboardTimeSeriesRequest request = BatchCreateTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3561,7 +3566,7 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardTimeSeries createTensorboardTimeSeries( - TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName parent, TensorboardTimeSeries tensorboardTimeSeries) { CreateTensorboardTimeSeriesRequest request = CreateTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3717,7 +3722,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries( * `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSeriesName name) { + public final TensorboardTimeSeries getTensorboardTimeSeries( + @Nullable TensorboardTimeSeriesName name) { GetTensorboardTimeSeriesRequest request = GetTensorboardTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3965,7 +3971,7 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( - TensorboardRunName parent) { + @Nullable TensorboardRunName parent) { ListTensorboardTimeSeriesRequest request = ListTensorboardTimeSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4158,7 +4164,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTensorboardTimeSeriesAsync( - TensorboardTimeSeriesName name) { + @Nullable TensorboardTimeSeriesName name) { DeleteTensorboardTimeSeriesRequest request = DeleteTensorboardTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4347,7 +4353,7 @@ public final OperationFuture deleteTensorboardTi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTimeSeriesData( - TensorboardName tensorboard) { + @Nullable TensorboardName tensorboard) { BatchReadTensorboardTimeSeriesDataRequest request = BatchReadTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboard(tensorboard == null ? null : tensorboard.toString()) @@ -4493,7 +4499,7 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData( - TensorboardTimeSeriesName tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName tensorboardTimeSeries) { ReadTensorboardTimeSeriesDataRequest request = ReadTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboardTimeSeries( @@ -4704,7 +4710,7 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentData( - TensorboardExperimentName tensorboardExperiment, + @Nullable TensorboardExperimentName tensorboardExperiment, List writeRunDataRequests) { WriteTensorboardExperimentDataRequest request = WriteTensorboardExperimentDataRequest.newBuilder() @@ -4858,7 +4864,7 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteTensorboardRunDataResponse writeTensorboardRunData( - TensorboardRunName tensorboardRun, List timeSeriesData) { + @Nullable TensorboardRunName tensorboardRun, List timeSeriesData) { WriteTensorboardRunDataRequest request = WriteTensorboardRunDataRequest.newBuilder() .setTensorboardRun(tensorboardRun == null ? null : tensorboardRun.toString()) @@ -5008,7 +5014,7 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeSeriesData( - TensorboardTimeSeriesName tensorboardTimeSeries) { + @Nullable TensorboardTimeSeriesName tensorboardTimeSeries) { ExportTensorboardTimeSeriesDataRequest request = ExportTensorboardTimeSeriesDataRequest.newBuilder() .setTensorboardTimeSeries( @@ -5630,8 +5636,9 @@ public static class ListTensorboardsPage ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard, ListTensorboardsPage> { private ListTensorboardsPage( - PageContext context, - ListTensorboardsResponse response) { + @Nullable PageContext + context, + @Nullable ListTensorboardsResponse response) { super(context, response); } @@ -5641,14 +5648,16 @@ private static ListTensorboardsPage createEmptyPage() { @Override protected ListTensorboardsPage createPage( - PageContext context, - ListTensorboardsResponse response) { + @Nullable PageContext + context, + @Nullable ListTensorboardsResponse response) { return new ListTensorboardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5663,7 +5672,7 @@ public static class ListTensorboardsFixedSizeCollection ListTensorboardsFixedSizeCollection> { private ListTensorboardsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5673,7 +5682,7 @@ private static ListTensorboardsFixedSizeCollection createEmptyCollection() { @Override protected ListTensorboardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardsFixedSizeCollection(pages, collectionSize); } } @@ -5714,12 +5723,13 @@ public static class ListTensorboardExperimentsPage ListTensorboardExperimentsPage> { private ListTensorboardExperimentsPage( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> context, - ListTensorboardExperimentsResponse response) { + @Nullable ListTensorboardExperimentsResponse response) { super(context, response); } @@ -5729,18 +5739,20 @@ private static ListTensorboardExperimentsPage createEmptyPage() { @Override protected ListTensorboardExperimentsPage createPage( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> context, - ListTensorboardExperimentsResponse response) { + @Nullable ListTensorboardExperimentsResponse response) { return new ListTensorboardExperimentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTensorboardExperimentsRequest, ListTensorboardExperimentsResponse, TensorboardExperiment> @@ -5759,7 +5771,7 @@ public static class ListTensorboardExperimentsFixedSizeCollection ListTensorboardExperimentsFixedSizeCollection> { private ListTensorboardExperimentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5769,7 +5781,7 @@ private static ListTensorboardExperimentsFixedSizeCollection createEmptyCollecti @Override protected ListTensorboardExperimentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardExperimentsFixedSizeCollection(pages, collectionSize); } } @@ -5807,9 +5819,10 @@ public static class ListTensorboardRunsPage ListTensorboardRunsPage> { private ListTensorboardRunsPage( - PageContext + @Nullable + PageContext context, - ListTensorboardRunsResponse response) { + @Nullable ListTensorboardRunsResponse response) { super(context, response); } @@ -5819,15 +5832,17 @@ private static ListTensorboardRunsPage createEmptyPage() { @Override protected ListTensorboardRunsPage createPage( - PageContext + @Nullable + PageContext context, - ListTensorboardRunsResponse response) { + @Nullable ListTensorboardRunsResponse response) { return new ListTensorboardRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5843,7 +5858,7 @@ public static class ListTensorboardRunsFixedSizeCollection ListTensorboardRunsFixedSizeCollection> { private ListTensorboardRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5853,7 +5868,7 @@ private static ListTensorboardRunsFixedSizeCollection createEmptyCollection() { @Override protected ListTensorboardRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardRunsFixedSizeCollection(pages, collectionSize); } } @@ -5894,12 +5909,13 @@ public static class ListTensorboardTimeSeriesPage ListTensorboardTimeSeriesPage> { private ListTensorboardTimeSeriesPage( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> context, - ListTensorboardTimeSeriesResponse response) { + @Nullable ListTensorboardTimeSeriesResponse response) { super(context, response); } @@ -5909,18 +5925,20 @@ private static ListTensorboardTimeSeriesPage createEmptyPage() { @Override protected ListTensorboardTimeSeriesPage createPage( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> context, - ListTensorboardTimeSeriesResponse response) { + @Nullable ListTensorboardTimeSeriesResponse response) { return new ListTensorboardTimeSeriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTensorboardTimeSeriesRequest, ListTensorboardTimeSeriesResponse, TensorboardTimeSeries> @@ -5939,7 +5957,7 @@ public static class ListTensorboardTimeSeriesFixedSizeCollection ListTensorboardTimeSeriesFixedSizeCollection> { private ListTensorboardTimeSeriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5949,7 +5967,7 @@ private static ListTensorboardTimeSeriesFixedSizeCollection createEmptyCollectio @Override protected ListTensorboardTimeSeriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorboardTimeSeriesFixedSizeCollection(pages, collectionSize); } } @@ -5991,12 +6009,13 @@ public static class ExportTensorboardTimeSeriesDataPage ExportTensorboardTimeSeriesDataPage> { private ExportTensorboardTimeSeriesDataPage( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> context, - ExportTensorboardTimeSeriesDataResponse response) { + @Nullable ExportTensorboardTimeSeriesDataResponse response) { super(context, response); } @@ -6006,18 +6025,20 @@ private static ExportTensorboardTimeSeriesDataPage createEmptyPage() { @Override protected ExportTensorboardTimeSeriesDataPage createPage( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> context, - ExportTensorboardTimeSeriesDataResponse response) { + @Nullable ExportTensorboardTimeSeriesDataResponse response) { return new ExportTensorboardTimeSeriesDataPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataResponse, TimeSeriesDataPoint> @@ -6036,7 +6057,7 @@ public static class ExportTensorboardTimeSeriesDataFixedSizeCollection ExportTensorboardTimeSeriesDataFixedSizeCollection> { private ExportTensorboardTimeSeriesDataFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6046,7 +6067,7 @@ private static ExportTensorboardTimeSeriesDataFixedSizeCollection createEmptyCol @Override protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize); } } @@ -6080,8 +6101,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6091,14 +6112,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6112,7 +6133,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6122,7 +6144,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java index 42f7b68708da..c35d7c89bc9c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -473,7 +474,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TensorboardServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java index 6ca03ebfb36f..165b65f1b4b1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java @@ -47,6 +47,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. /** @@ -665,7 +666,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VertexRagDataServiceClient implements BackgroundResource { - private final VertexRagDataServiceSettings settings; + private final @Nullable VertexRagDataServiceSettings settings; private final VertexRagDataServiceStub stub; private final OperationsClient operationsClient; @@ -708,7 +709,7 @@ protected VertexRagDataServiceClient(VertexRagDataServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VertexRagDataServiceSettings getSettings() { + public final @Nullable VertexRagDataServiceSettings getSettings() { return settings; } @@ -750,7 +751,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRagCorpusAsync( - LocationName parent, RagCorpus ragCorpus) { + @Nullable LocationName parent, RagCorpus ragCorpus) { CreateRagCorpusRequest request = CreateRagCorpusRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1020,7 +1021,7 @@ public final UnaryCallable updateRagCorpusCal * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagCorpus getRagCorpus(RagCorpusName name) { + public final RagCorpus getRagCorpus(@Nullable RagCorpusName name) { GetRagCorpusRequest request = GetRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagCorpus(request); @@ -1137,7 +1138,7 @@ public final UnaryCallable getRagCorpusCallable( * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagCorporaPagedResponse listRagCorpora(LocationName parent) { + public final ListRagCorporaPagedResponse listRagCorpora(@Nullable LocationName parent) { ListRagCorporaRequest request = ListRagCorporaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1307,7 +1308,7 @@ public final ListRagCorporaPagedResponse listRagCorpora(ListRagCorporaRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRagCorpusAsync( - RagCorpusName name) { + @Nullable RagCorpusName name) { DeleteRagCorpusRequest request = DeleteRagCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRagCorpusAsync(request); @@ -1467,7 +1468,7 @@ public final UnaryCallable deleteRagCorpusCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UploadRagFileResponse uploadRagFile( - RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { + @Nullable RagCorpusName parent, RagFile ragFile, UploadRagFileConfig uploadRagFileConfig) { UploadRagFileRequest request = UploadRagFileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1609,7 +1610,8 @@ public final UnaryCallable uploadRa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importRagFilesAsync(RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) { + importRagFilesAsync( + @Nullable RagCorpusName parent, ImportRagFilesConfig importRagFilesConfig) { ImportRagFilesRequest request = ImportRagFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1773,7 +1775,7 @@ public final UnaryCallable importRagFilesCalla * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagFile getRagFile(RagFileName name) { + public final RagFile getRagFile(@Nullable RagFileName name) { GetRagFileRequest request = GetRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagFile(request); @@ -1895,7 +1897,7 @@ public final UnaryCallable getRagFileCallable() { * Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagFilesPagedResponse listRagFiles(RagCorpusName parent) { + public final ListRagFilesPagedResponse listRagFiles(@Nullable RagCorpusName parent) { ListRagFilesRequest request = ListRagFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2064,7 +2066,7 @@ public final UnaryCallable listRagFil * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRagFileAsync( - RagFileName name) { + @Nullable RagFileName name) { DeleteRagFileRequest request = DeleteRagFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRagFileAsync(request); @@ -2344,7 +2346,7 @@ public final UnaryCallable deleteRagFileCallabl * `projects/{project}/locations/{location}/ragEngineConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagEngineConfig getRagEngineConfig(RagEngineConfigName name) { + public final RagEngineConfig getRagEngineConfig(@Nullable RagEngineConfigName name) { GetRagEngineConfigRequest request = GetRagEngineConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2473,7 +2475,7 @@ public final RagEngineConfig getRagEngineConfig(GetRagEngineConfigRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RagDataSchema createRagDataSchema( - RagCorpusName parent, RagDataSchema ragDataSchema, String ragDataSchemaId) { + @Nullable RagCorpusName parent, RagDataSchema ragDataSchema, String ragDataSchemaId) { CreateRagDataSchemaRequest request = CreateRagDataSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2714,7 +2716,7 @@ public final RagDataSchema createRagDataSchema(CreateRagDataSchemaRequest reques * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagDataSchema getRagDataSchema(RagDataSchemaName name) { + public final RagDataSchema getRagDataSchema(@Nullable RagDataSchemaName name) { GetRagDataSchemaRequest request = GetRagDataSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagDataSchema(request); @@ -2840,7 +2842,7 @@ public final UnaryCallable getRagDataSch * RagDataSchemas. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagDataSchemasPagedResponse listRagDataSchemas(RagCorpusName parent) { + public final ListRagDataSchemasPagedResponse listRagDataSchemas(@Nullable RagCorpusName parent) { ListRagDataSchemasRequest request = ListRagDataSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3014,7 +3016,7 @@ public final ListRagDataSchemasPagedResponse listRagDataSchemas( * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRagDataSchema(RagDataSchemaName name) { + public final void deleteRagDataSchema(@Nullable RagDataSchemaName name) { DeleteRagDataSchemaRequest request = DeleteRagDataSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3245,7 +3247,7 @@ public final OperationFuture batchDeleteRagDataS * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RagMetadata createRagMetadata( - RagFileName parent, RagMetadata ragMetadata, String ragMetadataId) { + @Nullable RagFileName parent, RagMetadata ragMetadata, String ragMetadataId) { CreateRagMetadataRequest request = CreateRagMetadataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3583,7 +3585,7 @@ public final UnaryCallable updateRagMetad * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RagMetadata getRagMetadata(RagMetadataName name) { + public final RagMetadata getRagMetadata(@Nullable RagMetadataName name) { GetRagMetadataRequest request = GetRagMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRagMetadata(request); @@ -3710,7 +3712,7 @@ public final UnaryCallable getRagMetadataCal * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRagMetadataPagedResponse listRagMetadata(RagFileName parent) { + public final ListRagMetadataPagedResponse listRagMetadata(@Nullable RagFileName parent) { ListRagMetadataRequest request = ListRagMetadataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3889,7 +3891,7 @@ public final ListRagMetadataPagedResponse listRagMetadata(ListRagMetadataRequest * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}/ragMetadata/{rag_metadata}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRagMetadata(RagMetadataName name) { + public final void deleteRagMetadata(@Nullable RagMetadataName name) { DeleteRagMetadataRequest request = DeleteRagMetadataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4529,8 +4531,8 @@ public static class ListRagCorporaPage ListRagCorporaRequest, ListRagCorporaResponse, RagCorpus, ListRagCorporaPage> { private ListRagCorporaPage( - PageContext context, - ListRagCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListRagCorporaResponse response) { super(context, response); } @@ -4540,14 +4542,14 @@ private static ListRagCorporaPage createEmptyPage() { @Override protected ListRagCorporaPage createPage( - PageContext context, - ListRagCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListRagCorporaResponse response) { return new ListRagCorporaPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4561,7 +4563,8 @@ public static class ListRagCorporaFixedSizeCollection ListRagCorporaPage, ListRagCorporaFixedSizeCollection> { - private ListRagCorporaFixedSizeCollection(List pages, int collectionSize) { + private ListRagCorporaFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4571,7 +4574,7 @@ private static ListRagCorporaFixedSizeCollection createEmptyCollection() { @Override protected ListRagCorporaFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagCorporaFixedSizeCollection(pages, collectionSize); } } @@ -4604,8 +4607,8 @@ public static class ListRagFilesPage extends AbstractPage { private ListRagFilesPage( - PageContext context, - ListRagFilesResponse response) { + @Nullable PageContext context, + @Nullable ListRagFilesResponse response) { super(context, response); } @@ -4615,14 +4618,14 @@ private static ListRagFilesPage createEmptyPage() { @Override protected ListRagFilesPage createPage( - PageContext context, - ListRagFilesResponse response) { + @Nullable PageContext context, + @Nullable ListRagFilesResponse response) { return new ListRagFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4636,7 +4639,8 @@ public static class ListRagFilesFixedSizeCollection ListRagFilesPage, ListRagFilesFixedSizeCollection> { - private ListRagFilesFixedSizeCollection(List pages, int collectionSize) { + private ListRagFilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4646,7 +4650,7 @@ private static ListRagFilesFixedSizeCollection createEmptyCollection() { @Override protected ListRagFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagFilesFixedSizeCollection(pages, collectionSize); } } @@ -4683,8 +4687,9 @@ public static class ListRagDataSchemasPage ListRagDataSchemasPage> { private ListRagDataSchemasPage( - PageContext context, - ListRagDataSchemasResponse response) { + @Nullable PageContext + context, + @Nullable ListRagDataSchemasResponse response) { super(context, response); } @@ -4694,14 +4699,16 @@ private static ListRagDataSchemasPage createEmptyPage() { @Override protected ListRagDataSchemasPage createPage( - PageContext context, - ListRagDataSchemasResponse response) { + @Nullable PageContext + context, + @Nullable ListRagDataSchemasResponse response) { return new ListRagDataSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4716,7 +4723,7 @@ public static class ListRagDataSchemasFixedSizeCollection ListRagDataSchemasFixedSizeCollection> { private ListRagDataSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4726,7 +4733,7 @@ private static ListRagDataSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListRagDataSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagDataSchemasFixedSizeCollection(pages, collectionSize); } } @@ -4760,8 +4767,8 @@ public static class ListRagMetadataPage ListRagMetadataRequest, ListRagMetadataResponse, RagMetadata, ListRagMetadataPage> { private ListRagMetadataPage( - PageContext context, - ListRagMetadataResponse response) { + @Nullable PageContext context, + @Nullable ListRagMetadataResponse response) { super(context, response); } @@ -4771,14 +4778,14 @@ private static ListRagMetadataPage createEmptyPage() { @Override protected ListRagMetadataPage createPage( - PageContext context, - ListRagMetadataResponse response) { + @Nullable PageContext context, + @Nullable ListRagMetadataResponse response) { return new ListRagMetadataPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4793,7 +4800,7 @@ public static class ListRagMetadataFixedSizeCollection ListRagMetadataFixedSizeCollection> { private ListRagMetadataFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4803,7 +4810,7 @@ private static ListRagMetadataFixedSizeCollection createEmptyCollection() { @Override protected ListRagMetadataFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRagMetadataFixedSizeCollection(pages, collectionSize); } } @@ -4837,8 +4844,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4848,14 +4855,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4869,7 +4876,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4879,7 +4887,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceSettings.java index 5c6a3542a9ab..914f729c3f15 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceSettings.java @@ -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. /** @@ -421,7 +422,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -442,7 +443,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VertexRagDataServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java index f0d6c166e068..f9eb0557badc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceClient.java @@ -46,6 +46,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. /** @@ -294,7 +295,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VertexRagServiceClient implements BackgroundResource { - private final VertexRagServiceSettings settings; + private final @Nullable VertexRagServiceSettings settings; private final VertexRagServiceStub stub; private final OperationsClient operationsClient; @@ -337,7 +338,7 @@ protected VertexRagServiceClient(VertexRagServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VertexRagServiceSettings getSettings() { + public final @Nullable VertexRagServiceSettings getSettings() { return settings; } @@ -378,7 +379,8 @@ public final OperationsClient getOperationsClient() { * @param query Required. Single RAG retrieve query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetrieveContextsResponse retrieveContexts(LocationName parent, RagQuery query) { + public final RetrieveContextsResponse retrieveContexts( + @Nullable LocationName parent, RagQuery query) { RetrieveContextsRequest request = RetrieveContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -507,7 +509,9 @@ public final RetrieveContextsResponse retrieveContexts(RetrieveContextsRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AugmentPromptResponse augmentPrompt( - LocationName parent, AugmentPromptRequest.Model model, VertexRagStore vertexRagStore) { + @Nullable LocationName parent, + AugmentPromptRequest.Model model, + VertexRagStore vertexRagStore) { AugmentPromptRequest request = AugmentPromptRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -650,7 +654,7 @@ public final UnaryCallable augmentP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CorroborateContentResponse corroborateContent( - LocationName parent, Content content, List facts) { + @Nullable LocationName parent, Content content, List facts) { CorroborateContentRequest request = CorroborateContentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -791,7 +795,7 @@ public final CorroborateContentResponse corroborateContent(CorroborateContentReq * @param query Required. Single RAG retrieve query. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AskContextsResponse askContexts(LocationName parent, RagQuery query) { + public final AskContextsResponse askContexts(@Nullable LocationName parent, RagQuery query) { AskContextsRequest request = AskContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -919,7 +923,7 @@ public final UnaryCallable askContextsC */ public final OperationFuture< AsyncRetrieveContextsResponse, AsyncRetrieveContextsOperationMetadata> - asyncRetrieveContextsAsync(LocationName parent, RagQuery query) { + asyncRetrieveContextsAsync(@Nullable LocationName parent, RagQuery query) { AsyncRetrieveContextsRequest request = AsyncRetrieveContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1485,8 +1489,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1496,14 +1500,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1517,7 +1521,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1527,7 +1532,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java index a478139e0334..7082b84c454d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VertexRagServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java index 40d241a748f5..61f34dee9cc0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java @@ -47,6 +47,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. /** @@ -463,7 +464,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VizierServiceClient implements BackgroundResource { - private final VizierServiceSettings settings; + private final @Nullable VizierServiceSettings settings; private final VizierServiceStub stub; private final OperationsClient operationsClient; @@ -506,7 +507,7 @@ protected VizierServiceClient(VizierServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VizierServiceSettings getSettings() { + public final @Nullable VizierServiceSettings getSettings() { return settings; } @@ -546,7 +547,7 @@ public final OperationsClient getOperationsClient() { * @param study Required. The Study configuration used to create the Study. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study createStudy(LocationName parent, Study study) { + public final Study createStudy(@Nullable LocationName parent, Study study) { CreateStudyRequest request = CreateStudyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -664,7 +665,7 @@ public final UnaryCallable createStudyCallable() { * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study getStudy(StudyName name) { + public final Study getStudy(@Nullable StudyName name) { GetStudyRequest request = GetStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStudy(request); @@ -776,7 +777,7 @@ public final UnaryCallable getStudyCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStudiesPagedResponse listStudies(LocationName parent) { + public final ListStudiesPagedResponse listStudies(@Nullable LocationName parent) { ListStudiesRequest request = ListStudiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -937,7 +938,7 @@ public final UnaryCallable listStudiesC * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStudy(StudyName name) { + public final void deleteStudy(@Nullable StudyName name) { DeleteStudyRequest request = DeleteStudyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteStudy(request); @@ -1048,7 +1049,7 @@ public final UnaryCallable deleteStudyCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Study lookupStudy(LocationName parent) { + public final Study lookupStudy(@Nullable LocationName parent) { LookupStudyRequest request = LookupStudyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1270,7 +1271,7 @@ public final UnaryCallable suggestTrialsCallabl * @param trial Required. The Trial to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Trial createTrial(StudyName parent, Trial trial) { + public final Trial createTrial(@Nullable StudyName parent, Trial trial) { CreateTrialRequest request = CreateTrialRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1388,7 +1389,7 @@ public final UnaryCallable createTrialCallable() { * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Trial getTrial(TrialName name) { + public final Trial getTrial(@Nullable TrialName name) { GetTrialRequest request = GetTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTrial(request); @@ -1500,7 +1501,7 @@ public final UnaryCallable getTrialCallable() { * `projects/{project}/locations/{location}/studies/{study}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTrialsPagedResponse listTrials(StudyName parent) { + public final ListTrialsPagedResponse listTrials(@Nullable StudyName parent) { ListTrialsRequest request = ListTrialsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTrials(request); @@ -1781,7 +1782,7 @@ public final UnaryCallable completeTrialCallable() * `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTrial(TrialName name) { + public final void deleteTrial(@Nullable TrialName name) { DeleteTrialRequest request = DeleteTrialRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTrial(request); @@ -2051,7 +2052,7 @@ public final UnaryCallable stopTrialCallable() { * @param parent Required. The name of the Study that the optimal Trial belongs to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOptimalTrialsResponse listOptimalTrials(StudyName parent) { + public final ListOptimalTrialsResponse listOptimalTrials(@Nullable StudyName parent) { ListOptimalTrialsRequest request = ListOptimalTrialsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2569,8 +2570,8 @@ public static class ListStudiesPage extends AbstractPage { private ListStudiesPage( - PageContext context, - ListStudiesResponse response) { + @Nullable PageContext context, + @Nullable ListStudiesResponse response) { super(context, response); } @@ -2580,14 +2581,14 @@ private static ListStudiesPage createEmptyPage() { @Override protected ListStudiesPage createPage( - PageContext context, - ListStudiesResponse response) { + @Nullable PageContext context, + @Nullable ListStudiesResponse response) { return new ListStudiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2601,7 +2602,8 @@ public static class ListStudiesFixedSizeCollection ListStudiesPage, ListStudiesFixedSizeCollection> { - private ListStudiesFixedSizeCollection(List pages, int collectionSize) { + private ListStudiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2611,7 +2613,7 @@ private static ListStudiesFixedSizeCollection createEmptyCollection() { @Override protected ListStudiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStudiesFixedSizeCollection(pages, collectionSize); } } @@ -2642,8 +2644,8 @@ public static class ListTrialsPage extends AbstractPage { private ListTrialsPage( - PageContext context, - ListTrialsResponse response) { + @Nullable PageContext context, + @Nullable ListTrialsResponse response) { super(context, response); } @@ -2653,14 +2655,14 @@ private static ListTrialsPage createEmptyPage() { @Override protected ListTrialsPage createPage( - PageContext context, - ListTrialsResponse response) { + @Nullable PageContext context, + @Nullable ListTrialsResponse response) { return new ListTrialsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2674,7 +2676,8 @@ public static class ListTrialsFixedSizeCollection ListTrialsPage, ListTrialsFixedSizeCollection> { - private ListTrialsFixedSizeCollection(List pages, int collectionSize) { + private ListTrialsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2684,7 +2687,7 @@ private static ListTrialsFixedSizeCollection createEmptyCollection() { @Override protected ListTrialsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTrialsFixedSizeCollection(pages, collectionSize); } } @@ -2718,8 +2721,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2729,14 +2732,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2750,7 +2753,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2760,7 +2764,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java index a0d46b30d637..2c15cb6b0f1b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -314,7 +315,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VizierServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java index adc72230366d..ddf341defe85 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java @@ -84,6 +84,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,7 +97,7 @@ @Generated("by gapic-generator-java") public abstract class DatasetServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java index 9fd73ad88e75..11de0b7b495f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java @@ -118,6 +118,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -932,7 +933,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1111,7 +1112,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java index 90067e68ea4b..767f676ed072 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -62,7 +63,7 @@ @Generated("by gapic-generator-java") public abstract class DeploymentResourcePoolServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java index 5eb163a3768b..7596a7b8ee16 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -554,7 +555,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -666,7 +667,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDeploymentResourcePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java index 25b400a7254f..e66866be695a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java @@ -61,6 +61,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -73,7 +74,7 @@ @Generated("by gapic-generator-java") public abstract class EndpointServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java index 1d17900bc2c5..66d6fe34ccb8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -535,7 +536,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -673,7 +674,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java index 72fd95eb8c81..63e6a8c5625f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java @@ -42,6 +42,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,7 +55,7 @@ @Generated("by gapic-generator-java") public abstract class EvaluationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java index 019d3b76c836..ade862d0af44 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -347,7 +348,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); evaluateInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStub.java index 9c16d718ace2..5971b09ab762 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStub.java @@ -56,6 +56,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,7 +69,7 @@ @Generated("by gapic-generator-java") public abstract class ExampleStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStubSettings.java index bcca2f6bcbcd..ab1ecb24e3dc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExampleStoreServiceStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -534,7 +535,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -642,7 +643,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createExampleStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java index 7940f3803ed7..21bdef10e62c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionExecutionServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -296,7 +297,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -366,7 +367,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executeExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStub.java index e15ae3aaeefa..3c362ff5e879 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,7 +59,7 @@ @Generated("by gapic-generator-java") public abstract class ExtensionRegistryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java index 0c65139ddfc2..2bde8696760d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ExtensionRegistryServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -510,7 +511,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); importExtensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStub.java index 6a1e378e5f72..0e10ce00e199 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStub.java @@ -64,6 +64,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,7 +77,7 @@ @Generated("by gapic-generator-java") public abstract class FeatureOnlineStoreAdminServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java index 0d7c5a72cf28..adde2921c1a2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreAdminServiceStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -706,7 +707,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -860,7 +861,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeatureOnlineStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java index b95389e52e08..3644201c21ce 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureOnlineStoreServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -330,7 +331,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -414,7 +415,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); fetchFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java index 8cd866fc05cf..e37f6966a762 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java @@ -76,6 +76,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,7 +89,7 @@ @Generated("by gapic-generator-java") public abstract class FeatureRegistryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java index 37fe4a3fcdcf..46fc5e9c3a54 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java @@ -106,6 +106,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -823,7 +824,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -997,7 +998,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeatureGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java index 3bb84e5d12b7..ee9e99d7f3cd 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java index 4651441e43af..f1921ee7556c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java @@ -83,6 +83,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -95,7 +96,7 @@ @Generated("by gapic-generator-java") public abstract class FeaturestoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java index c944d2bffc3d..02e73d218c46 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java @@ -113,6 +113,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -851,7 +852,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1053,7 +1054,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeaturestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java index 3c3270d03f99..88c135ace9af 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiCacheServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -382,7 +383,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -461,7 +462,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStub.java index 5455e5e663c4..97c2e35a9b7b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,7 +58,7 @@ @Generated("by gapic-generator-java") public abstract class GenAiTuningServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java index b21f0792f851..1f19e42328c4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GenAiTuningServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -414,7 +415,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -496,7 +497,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTuningJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java index 8ca26836806f..52d4ca344557 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,7 +68,7 @@ @Generated("by gapic-generator-java") public abstract class IndexEndpointServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java index 5314703b2e95..a22e8d5c3a2a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -497,7 +498,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -619,7 +620,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIndexEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java index 8d9fdcda9c80..4ff485b2e3f9 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,7 +66,7 @@ @Generated("by gapic-generator-java") public abstract class IndexServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java index 6487e99e2c80..b858260fbafc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -462,7 +463,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java index a7cbea3082b7..4e912ed19590 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java @@ -96,6 +96,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -108,7 +109,7 @@ @Generated("by gapic-generator-java") public abstract class JobServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java index 633bf8e1acec..3bf74a203901 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java @@ -127,6 +127,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1275,7 +1276,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1528,7 +1529,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCustomJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java index 32de2a19b63a..a2532f1a67ba 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/LlmUtilityServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -351,7 +352,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); computeTokensSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java index 2da0eeac4d48..31f6d5388e78 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MatchServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -363,7 +364,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); findNeighborsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStub.java index a7d89884c925..50cf36e82a57 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,7 +65,7 @@ @Generated("by gapic-generator-java") public abstract class MemoryBankServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStubSettings.java index b2757e011419..dc7a91787015 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MemoryBankServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -457,7 +458,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMemorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java index 8ebf54e5e63a..02f695520166 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java @@ -97,6 +97,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -109,7 +110,7 @@ @Generated("by gapic-generator-java") public abstract class MetadataServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java index 3a8791a06b0c..660476db352c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java @@ -127,6 +127,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -945,7 +946,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1152,7 +1153,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMetadataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java index aa86f189fb20..916b538a6540 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java @@ -41,6 +41,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,7 +54,7 @@ @Generated("by gapic-generator-java") public abstract class MigrationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java index 999034136db1..2981c416be3a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -502,7 +503,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchMigratableResourcesSettings = diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java index 9eff2414cc74..897106ce089d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java @@ -52,6 +52,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,7 +65,7 @@ @Generated("by gapic-generator-java") public abstract class ModelGardenServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java index a225689d900e..fc889bbaa2d2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -587,7 +588,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPublisherModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStub.java index 448a338c9a03..21e885e4c667 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStub.java @@ -60,6 +60,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -72,7 +73,7 @@ @Generated("by gapic-generator-java") public abstract class ModelMonitoringServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java index 407c6f68e136..5ac31d1b8965 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelMonitoringServiceStubSettings.java @@ -92,6 +92,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -753,7 +754,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -882,7 +883,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createModelMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java index ff5b6db44fcb..14a6bd41256d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java @@ -81,6 +81,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,7 +94,7 @@ @Generated("by gapic-generator-java") public abstract class ModelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java index de579c2c856c..9f36fd235bb7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java @@ -112,6 +112,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -899,7 +900,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1069,7 +1070,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); uploadModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java index 08a0aaee3b25..27052195046e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -83,7 +84,7 @@ @Generated("by gapic-generator-java") public abstract class NotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java index e212a2416f06..d7fbafdd765f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/NotebookServiceStubSettings.java @@ -101,6 +101,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -808,7 +809,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -992,7 +993,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNotebookRuntimeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java index 381f2a69c76c..309c74c84e33 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,7 +64,7 @@ @Generated("by gapic-generator-java") public abstract class OnlineEvaluatorServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java index c2e853bccea0..32c995146c41 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -500,7 +501,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -615,7 +616,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java index 40bec170afbc..284fabdb52fb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class PersistentResourceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java index 4535f11a49ec..8fc73ce43b39 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -498,7 +499,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -609,7 +610,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPersistentResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java index 1e737405f413..4401138aa8c7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,7 +71,7 @@ @Generated("by gapic-generator-java") public abstract class PipelineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java index ac7dba925d23..d9fd1adc41fe 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -585,7 +586,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -722,7 +723,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTrainingPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java index fa118bf9dd56..07ce96d6303e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -546,7 +547,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java index c26b3cc2fb55..335246af86e8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java @@ -45,6 +45,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,7 +58,7 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java index a20493caddfb..60c01f6e0eb7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -370,7 +371,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -458,7 +459,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStub.java index d96da0e5d5e4..dd63295fc3a5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineRuntimeRevisionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStubSettings.java index 6ee3fd0b27c0..84b6de11d998 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineRuntimeRevisionServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -540,7 +541,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getReasoningEngineRuntimeRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStub.java index 57823f7b32e3..3a2f3b494f00 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStub.java @@ -47,6 +47,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,7 +60,7 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java index 9ca73fd2b9b7..3d108d2d71eb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -458,7 +459,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -555,7 +556,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStub.java index e4a1adb58849..f569cb9f8da5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStub.java @@ -47,6 +47,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,7 +60,7 @@ @Generated("by gapic-generator-java") public abstract class ScheduleServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java index d6e1000249a0..02c524b226bc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ScheduleServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -507,7 +508,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createScheduleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStub.java index 68ef43640159..993e896284bb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,7 +64,7 @@ @Generated("by gapic-generator-java") public abstract class SessionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStubSettings.java index 01d226802c37..4d8531b8c49c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SessionServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -489,7 +490,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -579,7 +580,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java index 0e223ef7d2a7..b7d1737bc2ee 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java @@ -47,6 +47,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,7 +60,7 @@ @Generated("by gapic-generator-java") public abstract class SpecialistPoolServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java index cbeb7463875b..e4eaf5ea9e57 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -446,7 +447,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -553,7 +554,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSpecialistPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java index 56256d397c3d..92b0c63509d5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java @@ -93,6 +93,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -105,7 +106,7 @@ @Generated("by gapic-generator-java") public abstract class TensorboardServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java index 8b4f6cb8868c..89fe8ae16032 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java @@ -124,6 +124,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1030,7 +1031,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1252,7 +1253,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStub.java index 3d2560b6c96b..3223cecf2763 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStub.java @@ -85,6 +85,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -97,7 +98,7 @@ @Generated("by gapic-generator-java") public abstract class VertexRagDataServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java index fded7f56f04e..823400d2c910 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagDataServiceStubSettings.java @@ -115,6 +115,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -856,7 +857,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1045,7 +1046,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRagCorpusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java index f479854b901b..75fadeb6c3b5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStub.java @@ -46,6 +46,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,7 +59,7 @@ @Generated("by gapic-generator-java") public abstract class VertexRagServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java index d7aef60d6cf8..8ca8a2579e63 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VertexRagServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -369,7 +370,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); retrieveContextsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java index d1488ec9bce5..1bb43074d29d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java @@ -62,6 +62,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,7 +75,7 @@ @Generated("by gapic-generator-java") public abstract class VizierServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java index 03876b59a98e..eb757712d4ed 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java @@ -92,6 +92,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -557,7 +558,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -679,7 +680,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createStudySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java index 1e2c846f8e47..c5d5668c4baf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AnnotationSpecName parse(String formattedString) { + public static @Nullable AnnotationSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationSpecName> values) { List list = new ArrayList<>(values.size()); for (AnnotationSpecName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java index 4ebfef503589..32f8b53a5ee9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ArtifactName parse(String formattedString) { + public static @Nullable ArtifactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ArtifactName> values) { List list = new ArrayList<>(values.size()); for (ArtifactName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java index 4c8be2e579ea..1356b554a3e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String batchPredict .toString(); } - public static BatchPredictionJobName parse(String formattedString) { + public static @Nullable BatchPredictionJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BatchPredictionJobName> values) { List list = new ArrayList<>(values.size()); for (BatchPredictionJobName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java index 2b09fee8a036..54e4c72b27da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String cachedConten .toString(); } - public static CachedContentName parse(String formattedString) { + public static @Nullable CachedContentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CachedContentName> values) { List list = new ArrayList<>(values.size()); for (CachedContentName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java index d9820e04e4a8..b0edfcd047df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ContextName parse(String formattedString) { + public static @Nullable ContextName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContextName> values) { List list = new ArrayList<>(values.size()); for (ContextName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java index 8227f8bfafa6..7baec8b5a1eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String customJob) { .toString(); } - public static CustomJobName parse(String formattedString) { + public static @Nullable CustomJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomJobName> values) { List list = new ArrayList<>(values.size()); for (CustomJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java index 37bd051ea828..1a1b797d5cb2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static DataItemName parse(String formattedString) { + public static @Nullable DataItemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataItemName> values) { List list = new ArrayList<>(values.size()); for (DataItemName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java index 95e53eb81e11..584ee194caf1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataLabeling .toString(); } - public static DataLabelingJobName parse(String formattedString) { + public static @Nullable DataLabelingJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataLabelingJobName> values) { List list = new ArrayList<>(values.size()); for (DataLabelingJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java index 3f285943b0e4..ffc04782011f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java index d657c4818f12..a84eecc700b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DatasetVersionName parse(String formattedString) { + public static @Nullable DatasetVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetVersionName> values) { List list = new ArrayList<>(values.size()); for (DatasetVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolName.java index d5b73c9568ca..6a200464f4a6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeploymentResourcePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String deploymentRe .toString(); } - public static DeploymentResourcePoolName parse(String formattedString) { + public static @Nullable DeploymentResourcePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentResourcePoolName> values) { List list = new ArrayList<>(values.size()); for (DeploymentResourcePoolName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java index 59ba2296f4cb..2d8bbc2ebad8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationPublisherModelName( .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -186,7 +187,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -241,7 +242,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java index c6d8f39e2cf4..21f38b432d79 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java index 356d1abad0db..bac24f54e1a9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroupName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroupName.java index f4e9a0c28781..0d045975a1a6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroupName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String featureGroup .toString(); } - public static FeatureGroupName parse(String formattedString) { + public static @Nullable FeatureGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureGroupName> values) { List list = new ArrayList<>(values.size()); for (FeatureGroupName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java index 86bb85a94ce2..3ba6872cc534 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -186,7 +187,7 @@ public static String formatProjectLocationFeatureGroupFeatureName( .toString(); } - public static FeatureName parse(String formattedString) { + public static @Nullable FeatureName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureName> values) { List list = new ArrayList<>(values.size()); for (FeatureName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreName.java index 0a1105ad03ea..1bb6c3052afd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String featureOnlin .toString(); } - public static FeatureOnlineStoreName parse(String formattedString) { + public static @Nullable FeatureOnlineStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureOnlineStoreName> values) { List list = new ArrayList<>(values.size()); for (FeatureOnlineStoreName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewName.java index a179caf187d5..00136be2de7c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FeatureViewName parse(String formattedString) { + public static @Nullable FeatureViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureViewName> values) { List list = new ArrayList<>(values.size()); for (FeatureViewName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncName.java index 749403b7d0c4..8403a7dd41bc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewSyncName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FeatureViewSyncName parse(String formattedString) { + public static @Nullable FeatureViewSyncName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureViewSyncName> values) { List list = new ArrayList<>(values.size()); for (FeatureViewSyncName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java index c3110118c8ec..8b949c35d9d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String featurestore .toString(); } - public static FeaturestoreName parse(String formattedString) { + public static @Nullable FeaturestoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeaturestoreName> values) { List list = new ArrayList<>(values.size()); for (FeaturestoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java index 5dea5cb60d49..5e07a999d2ef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String hyperparamet .toString(); } - public static HyperparameterTuningJobName parse(String formattedString) { + public static @Nullable HyperparameterTuningJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HyperparameterTuningJobName> values) { List list = new ArrayList<>(values.size()); for (HyperparameterTuningJobName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java index cda0d7a09f75..6aad06266e20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String indexEndpoin .toString(); } - public static IndexEndpointName parse(String formattedString) { + public static @Nullable IndexEndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexEndpointName> values) { List list = new ArrayList<>(values.size()); for (IndexEndpointName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java index 508803589b69..9dd89157262e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String index) { .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java index abf3d1addd57..463ceacb2226 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java index a72a7921409d..990b10549398 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MetadataSchemaName parse(String formattedString) { + public static @Nullable MetadataSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataSchemaName> values) { List list = new ArrayList<>(values.size()); for (MetadataSchemaName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java index 4dccf9b82b26..b9bda6842377 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String metadataStor .toString(); } - public static MetadataStoreName parse(String formattedString) { + public static @Nullable MetadataStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataStoreName> values) { List list = new ArrayList<>(values.size()); for (MetadataStoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java index 54cb4f882467..879fd7babb6b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static ModelDeploymentMonitoringJobName parse(String formattedString) { + public static @Nullable ModelDeploymentMonitoringJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelDeploymentMonitoringJobName> values) { List list = new ArrayList<>(values.size()); for (ModelDeploymentMonitoringJobName value : values) { if (value == null) { @@ -168,7 +169,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java index 9131b114c4cd..68c03f7038ed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String model, Strin .toString(); } - public static ModelEvaluationName parse(String formattedString) { + public static @Nullable ModelEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java index d61a7d5f8afd..72ffbaccc056 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ModelEvaluationSliceName parse(String formattedString) { + public static @Nullable ModelEvaluationSliceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationSliceName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationSliceName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java index 5642e5f90dd4..93ec587e6218 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String model) { .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasJobName.java index 67eb5ad51dd1..b98a29e8e367 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String nasJob) { .toString(); } - public static NasJobName parse(String formattedString) { + public static @Nullable NasJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NasJobName> values) { List list = new ArrayList<>(values.size()); for (NasJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasTrialDetailName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasTrialDetailName.java index cf2f9aca5846..08e10908b21c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasTrialDetailName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NasTrialDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static NasTrialDetailName parse(String formattedString) { + public static @Nullable NasTrialDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NasTrialDetailName> values) { List list = new ArrayList<>(values.size()); for (NasTrialDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java index 5e700e081922..ead473e2be00 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookExecutionJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String notebookExec .toString(); } - public static NotebookExecutionJobName parse(String formattedString) { + public static @Nullable NotebookExecutionJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookExecutionJobName> values) { List list = new ArrayList<>(values.size()); for (NotebookExecutionJobName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeName.java index cb618f386b90..fb651a08b7c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String notebookRunt .toString(); } - public static NotebookRuntimeName parse(String formattedString) { + public static @Nullable NotebookRuntimeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookRuntimeName> values) { List list = new ArrayList<>(values.size()); for (NotebookRuntimeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateName.java index 838346218ad1..27fe82ebe632 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String notebookRunt .toString(); } - public static NotebookRuntimeTemplateName parse(String formattedString) { + public static @Nullable NotebookRuntimeTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookRuntimeTemplateName> values) { List list = new ArrayList<>(values.size()); for (NotebookRuntimeTemplateName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceName.java index a164f0a9a5e0..3e75410aee84 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String persistentRe .toString(); } - public static PersistentResourceName parse(String formattedString) { + public static @Nullable PersistentResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PersistentResourceName> values) { List list = new ArrayList<>(values.size()); for (PersistentResourceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java index cdc753c9fd53..8355ef8ecccf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String pipelineJob) .toString(); } - public static PipelineJobName parse(String formattedString) { + public static @Nullable PipelineJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PipelineJobName> values) { List list = new ArrayList<>(values.size()); for (PipelineJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ProjectName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ProjectName.java index f48fecf0021f..d65abda0f140 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ProjectName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelName.java index 0e27c4f4a994..bff6a72f05d8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String publisher, String model) { return newBuilder().setPublisher(publisher).setModel(model).build().toString(); } - public static PublisherModelName parse(String formattedString) { + public static @Nullable PublisherModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PublisherModelName> values) { List list = new ArrayList<>(values.size()); for (PublisherModelName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java index 3b0519fb315a..d84c3f746d4d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagCorpusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String ragCorpus) { .toString(); } - public static RagCorpusName parse(String formattedString) { + public static @Nullable RagCorpusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagCorpusName> values) { List list = new ArrayList<>(values.size()); for (RagCorpusName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEngineConfigName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEngineConfigName.java index 4e8ed03a06db..9dc6b2fe1232 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEngineConfigName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagEngineConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static RagEngineConfigName parse(String formattedString) { + public static @Nullable RagEngineConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagEngineConfigName> values) { List list = new ArrayList<>(values.size()); for (RagEngineConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java index f08c3faf165d..6f4780857589 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagFileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String ragCorpus, S .toString(); } - public static RagFileName parse(String formattedString) { + public static @Nullable RagFileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagFileName> values) { List list = new ArrayList<>(values.size()); for (RagFileName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java index 4395b96ce045..244498b45d01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reasoningEng .toString(); } - public static ReasoningEngineName parse(String formattedString) { + public static @Nullable ReasoningEngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReasoningEngineName> values) { List list = new ArrayList<>(values.size()); for (ReasoningEngineName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java index f5ec853eeca1..402d95a9507f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static SavedQueryName parse(String formattedString) { + public static @Nullable SavedQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SavedQueryName> values) { List list = new ArrayList<>(values.size()); for (SavedQueryName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleName.java index 55e8b3259eeb..d699f3af2f26 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String schedule) { .toString(); } - public static ScheduleName parse(String formattedString) { + public static @Nullable ScheduleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScheduleName> values) { List list = new ArrayList<>(values.size()); for (ScheduleName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SessionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SessionName.java index c56dabf5c1ec..b89c1d8bdc47 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SessionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java index 8a9154cf1cd2..91dcb7eccd19 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String specialistPo .toString(); } - public static SpecialistPoolName parse(String formattedString) { + public static @Nullable SpecialistPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpecialistPoolName> values) { List list = new ArrayList<>(values.size()); for (SpecialistPoolName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java index 7e19441cc772..94996ef1ddfc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String study) { .toString(); } - public static StudyName parse(String formattedString) { + public static @Nullable StudyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StudyName> values) { List list = new ArrayList<>(values.size()); for (StudyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java index 1630ec160f17..3e8cd1830d6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static TensorboardExperimentName parse(String formattedString) { + public static @Nullable TensorboardExperimentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardExperimentName> values) { List list = new ArrayList<>(values.size()); for (TensorboardExperimentName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java index a7daf523d91c..380331ecaa79 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String tensorboard) .toString(); } - public static TensorboardName parse(String formattedString) { + public static @Nullable TensorboardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardName> values) { List list = new ArrayList<>(values.size()); for (TensorboardName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java index b35801720217..6efebb7e030d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TensorboardRunName parse(String formattedString) { + public static @Nullable TensorboardRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardRunName> values) { List list = new ArrayList<>(values.size()); for (TensorboardRunName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java index 8d25d250ad3a..fb7562143566 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String format( .toString(); } - public static TensorboardTimeSeriesName parse(String formattedString) { + public static @Nullable TensorboardTimeSeriesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -153,7 +154,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardTimeSeriesName> values) { List list = new ArrayList<>(values.size()); for (TensorboardTimeSeriesName value : values) { if (value == null) { @@ -222,7 +223,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java index 5316e48d1091..495665960d40 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String trainingPipe .toString(); } - public static TrainingPipelineName parse(String formattedString) { + public static @Nullable TrainingPipelineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TrainingPipelineName> values) { List list = new ArrayList<>(values.size()); for (TrainingPipelineName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java index eca879524eff..3b95e9bd07d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String study, Strin .toString(); } - public static TrialName parse(String formattedString) { + public static @Nullable TrialName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TrialName> values) { List list = new ArrayList<>(values.size()); for (TrialName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobName.java index 00c9029e5354..af02a387a789 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String tuningJob) { .toString(); } - public static TuningJobName parse(String formattedString) { + public static @Nullable TuningJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TuningJobName> values) { List list = new ArrayList<>(values.size()); for (TuningJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java index 7d98b71978f6..8d45ebb6f2a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AnnotationSpecName parse(String formattedString) { + public static @Nullable AnnotationSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationSpecName> values) { List list = new ArrayList<>(values.size()); for (AnnotationSpecName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java index 124f57233b27..374b0d5007f1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ArtifactName parse(String formattedString) { + public static @Nullable ArtifactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ArtifactName> values) { List list = new ArrayList<>(values.size()); for (ArtifactName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java index 87ab945d8f27..e346f78ee9af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String batchPredict .toString(); } - public static BatchPredictionJobName parse(String formattedString) { + public static @Nullable BatchPredictionJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BatchPredictionJobName> values) { List list = new ArrayList<>(values.size()); for (BatchPredictionJobName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentName.java index 3edd52ce045d..0f746f554341 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String cachedConten .toString(); } - public static CachedContentName parse(String formattedString) { + public static @Nullable CachedContentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CachedContentName> values) { List list = new ArrayList<>(values.size()); for (CachedContentName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java index 525637ead65a..2c5c5d5d1769 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ContextName parse(String formattedString) { + public static @Nullable ContextName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContextName> values) { List list = new ArrayList<>(values.size()); for (ContextName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java index 419d60f0c98a..b4a2852a6185 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String customJob) { .toString(); } - public static CustomJobName parse(String formattedString) { + public static @Nullable CustomJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomJobName> values) { List list = new ArrayList<>(values.size()); for (CustomJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java index 08e64db585dd..ba31950cd7b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static DataItemName parse(String formattedString) { + public static @Nullable DataItemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataItemName> values) { List list = new ArrayList<>(values.size()); for (DataItemName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java index dbf77cc7b466..8a02e42c4e83 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataLabeling .toString(); } - public static DataLabelingJobName parse(String formattedString) { + public static @Nullable DataLabelingJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataLabelingJobName> values) { List list = new ArrayList<>(values.size()); for (DataLabelingJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java index cd47bbc9be77..9ab0af7a679a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java index 34f1f16ed05c..5ac5d4060fe3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DatasetVersionName parse(String formattedString) { + public static @Nullable DatasetVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetVersionName> values) { List list = new ArrayList<>(values.size()); for (DatasetVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java index b8ecbf0a0e41..264d1134f4c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String deploymentRe .toString(); } - public static DeploymentResourcePoolName parse(String formattedString) { + public static @Nullable DeploymentResourcePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentResourcePoolName> values) { List list = new ArrayList<>(values.size()); for (DeploymentResourcePoolName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java index 47e87c067ab0..578480bf4bfe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationPublisherModelName( .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -186,7 +187,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -241,7 +242,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java index 0ce03e332628..98137b303fa9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreName.java index c1430c0f8fea..f74b66d65e5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExampleStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String exampleStore .toString(); } - public static ExampleStoreName parse(String formattedString) { + public static @Nullable ExampleStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleStoreName> values) { List list = new ArrayList<>(values.size()); for (ExampleStoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java index e26902d46273..ed1caf34929b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionName.java index 6d4693938379..987c290f3229 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExtensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String extension) { .toString(); } - public static ExtensionName parse(String formattedString) { + public static @Nullable ExtensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExtensionName> values) { List list = new ArrayList<>(values.size()); for (ExtensionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupName.java index 2864f6c3afe2..99e9b7734b7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String featureGroup .toString(); } - public static FeatureGroupName parse(String formattedString) { + public static @Nullable FeatureGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureGroupName> values) { List list = new ArrayList<>(values.size()); for (FeatureGroupName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorJobName.java index 79ec5fad4bcc..2cbbb45f77e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static FeatureMonitorJobName parse(String formattedString) { + public static @Nullable FeatureMonitorJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureMonitorJobName> values) { List list = new ArrayList<>(values.size()); for (FeatureMonitorJobName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorName.java index 69bbf2a892eb..495ff3089a55 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FeatureMonitorName parse(String formattedString) { + public static @Nullable FeatureMonitorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureMonitorName> values) { List list = new ArrayList<>(values.size()); for (FeatureMonitorName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java index 038a395a6f70..954d73fa1830 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -186,7 +187,7 @@ public static String formatProjectLocationFeatureGroupFeatureName( .toString(); } - public static FeatureName parse(String formattedString) { + public static @Nullable FeatureName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureName> values) { List list = new ArrayList<>(values.size()); for (FeatureName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreName.java index 21c7d7a46337..65e1f48e762f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String featureOnlin .toString(); } - public static FeatureOnlineStoreName parse(String formattedString) { + public static @Nullable FeatureOnlineStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureOnlineStoreName> values) { List list = new ArrayList<>(values.size()); for (FeatureOnlineStoreName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewName.java index 136c76c76150..a3b402521e47 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FeatureViewName parse(String formattedString) { + public static @Nullable FeatureViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureViewName> values) { List list = new ArrayList<>(values.size()); for (FeatureViewName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncName.java index 5e63a0e8118e..ddd0f7678604 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FeatureViewSyncName parse(String formattedString) { + public static @Nullable FeatureViewSyncName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureViewSyncName> values) { List list = new ArrayList<>(values.size()); for (FeatureViewSyncName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java index 59ac3719a49d..957b5abdaad7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String featurestore .toString(); } - public static FeaturestoreName parse(String formattedString) { + public static @Nullable FeaturestoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeaturestoreName> values) { List list = new ArrayList<>(values.size()); for (FeaturestoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java index 0341cf44a241..714bb0b732e4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String hyperparamet .toString(); } - public static HyperparameterTuningJobName parse(String formattedString) { + public static @Nullable HyperparameterTuningJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HyperparameterTuningJobName> values) { List list = new ArrayList<>(values.size()); for (HyperparameterTuningJobName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java index c043d975449d..77f5570f6546 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String indexEndpoin .toString(); } - public static IndexEndpointName parse(String formattedString) { + public static @Nullable IndexEndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexEndpointName> values) { List list = new ArrayList<>(values.size()); for (IndexEndpointName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java index 3541bfbafdf4..1a6772a38a53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String index) { .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java index c35c15a6b248..ad3243a03bff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryName.java index 1f0a4f95eb61..21f3f1591a84 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MemoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MemoryName parse(String formattedString) { + public static @Nullable MemoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MemoryName> values) { List list = new ArrayList<>(values.size()); for (MemoryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java index 5fa216fba530..172b2b79f188 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MetadataSchemaName parse(String formattedString) { + public static @Nullable MetadataSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataSchemaName> values) { List list = new ArrayList<>(values.size()); for (MetadataSchemaName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java index 4bce0d98b45e..eab467f7cd7f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String metadataStor .toString(); } - public static MetadataStoreName parse(String formattedString) { + public static @Nullable MetadataStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataStoreName> values) { List list = new ArrayList<>(values.size()); for (MetadataStoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java index c9282f52048e..590de67e34f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static ModelDeploymentMonitoringJobName parse(String formattedString) { + public static @Nullable ModelDeploymentMonitoringJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelDeploymentMonitoringJobName> values) { List list = new ArrayList<>(values.size()); for (ModelDeploymentMonitoringJobName value : values) { if (value == null) { @@ -168,7 +169,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java index 6a5741c67871..17300873c2fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String model, Strin .toString(); } - public static ModelEvaluationName parse(String formattedString) { + public static @Nullable ModelEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java index e11b62a40c87..fb6797601a78 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ModelEvaluationSliceName parse(String formattedString) { + public static @Nullable ModelEvaluationSliceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationSliceName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationSliceName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorName.java index e73b20b079d7..f3ce202496a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String modelMonitor .toString(); } - public static ModelMonitorName parse(String formattedString) { + public static @Nullable ModelMonitorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelMonitorName> values) { List list = new ArrayList<>(values.size()); for (ModelMonitorName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringJobName.java index aecc1dbcb3e6..e413339be782 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ModelMonitoringJobName parse(String formattedString) { + public static @Nullable ModelMonitoringJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelMonitoringJobName> values) { List list = new ArrayList<>(values.size()); for (ModelMonitoringJobName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java index c3df716c321a..b747baefce3a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String model) { .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasJobName.java index a5f112f94db5..fd0328eff661 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String nasJob) { .toString(); } - public static NasJobName parse(String formattedString) { + public static @Nullable NasJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NasJobName> values) { List list = new ArrayList<>(values.size()); for (NasJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasTrialDetailName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasTrialDetailName.java index 5a3091676468..cf9df2b87f36 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasTrialDetailName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NasTrialDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static NasTrialDetailName parse(String formattedString) { + public static @Nullable NasTrialDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NasTrialDetailName> values) { List list = new ArrayList<>(values.size()); for (NasTrialDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java index c62cd4b27627..ff3642303ed9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String notebookExec .toString(); } - public static NotebookExecutionJobName parse(String formattedString) { + public static @Nullable NotebookExecutionJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookExecutionJobName> values) { List list = new ArrayList<>(values.size()); for (NotebookExecutionJobName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeName.java index 103f8cf6fea0..b75b5025ae5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String notebookRunt .toString(); } - public static NotebookRuntimeName parse(String formattedString) { + public static @Nullable NotebookRuntimeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookRuntimeName> values) { List list = new ArrayList<>(values.size()); for (NotebookRuntimeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateName.java index 301fc5b2d739..91c0c7406acf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String notebookRunt .toString(); } - public static NotebookRuntimeTemplateName parse(String formattedString) { + public static @Nullable NotebookRuntimeTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotebookRuntimeTemplateName> values) { List list = new ArrayList<>(values.size()); for (NotebookRuntimeTemplateName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java index c7c1460e9b8d..2def0df32cea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String onlineEvalua .toString(); } - public static OnlineEvaluatorName parse(String formattedString) { + public static @Nullable OnlineEvaluatorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OnlineEvaluatorName> values) { List list = new ArrayList<>(values.size()); for (OnlineEvaluatorName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceName.java index a4dc08f51d78..67df7cbd0556 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String persistentRe .toString(); } - public static PersistentResourceName parse(String formattedString) { + public static @Nullable PersistentResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PersistentResourceName> values) { List list = new ArrayList<>(values.size()); for (PersistentResourceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java index 0bf8093056d7..c5ab1840e9fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String pipelineJob) .toString(); } - public static PipelineJobName parse(String formattedString) { + public static @Nullable PipelineJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PipelineJobName> values) { List list = new ArrayList<>(values.size()); for (PipelineJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java index ce4c6605025e..1fa318e02f89 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelName.java index 1e6c40f222d4..73d3eddb6834 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String publisher, String model) { return newBuilder().setPublisher(publisher).setModel(model).build().toString(); } - public static PublisherModelName parse(String formattedString) { + public static @Nullable PublisherModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PublisherModelName> values) { List list = new ArrayList<>(values.size()); for (PublisherModelName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusName.java index f55f17b06b3a..cfc76484d0d6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String ragCorpus) { .toString(); } - public static RagCorpusName parse(String formattedString) { + public static @Nullable RagCorpusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagCorpusName> values) { List list = new ArrayList<>(values.size()); for (RagCorpusName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagDataSchemaName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagDataSchemaName.java index 929833477da9..1b110f23ccd9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagDataSchemaName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagDataSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RagDataSchemaName parse(String formattedString) { + public static @Nullable RagDataSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagDataSchemaName> values) { List list = new ArrayList<>(values.size()); for (RagDataSchemaName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagEngineConfigName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagEngineConfigName.java index 04f8755b81af..9f0b61a4fee7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagEngineConfigName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagEngineConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static RagEngineConfigName parse(String formattedString) { + public static @Nullable RagEngineConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagEngineConfigName> values) { List list = new ArrayList<>(values.size()); for (RagEngineConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileName.java index a1c806629b59..f8d7dc62a60f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String ragCorpus, S .toString(); } - public static RagFileName parse(String formattedString) { + public static @Nullable RagFileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagFileName> values) { List list = new ArrayList<>(values.size()); for (RagFileName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagMetadataName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagMetadataName.java index eb000ea2cace..b42cd9f3ed19 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagMetadataName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagMetadataName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static RagMetadataName parse(String formattedString) { + public static @Nullable RagMetadataName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RagMetadataName> values) { List list = new ArrayList<>(values.size()); for (RagMetadataName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineName.java index 9bf41c221ba9..04a3f09ef9a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reasoningEng .toString(); } - public static ReasoningEngineName parse(String formattedString) { + public static @Nullable ReasoningEngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReasoningEngineName> values) { List list = new ArrayList<>(values.size()); for (ReasoningEngineName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionName.java index 8e7e93702811..96708546ddba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineRuntimeRevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReasoningEngineRuntimeRevisionName parse(String formattedString) { + public static @Nullable ReasoningEngineRuntimeRevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,8 @@ public static List parseList(List fo return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable ReasoningEngineRuntimeRevisionName> values) { List list = new ArrayList<>(values.size()); for (ReasoningEngineRuntimeRevisionName value : values) { if (value == null) { @@ -182,7 +184,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java index 390a06f766f7..31e5c6309257 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static SavedQueryName parse(String formattedString) { + public static @Nullable SavedQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SavedQueryName> values) { List list = new ArrayList<>(values.size()); for (SavedQueryName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleName.java index 286bb9306b46..f65cad286ff2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String schedule) { .toString(); } - public static ScheduleName parse(String formattedString) { + public static @Nullable ScheduleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScheduleName> values) { List list = new ArrayList<>(values.size()); for (ScheduleName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionName.java index bf1494be7f0d..6e6478eddb3a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java index 2e8af0adc6f9..b29de29da484 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String specialistPo .toString(); } - public static SpecialistPoolName parse(String formattedString) { + public static @Nullable SpecialistPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpecialistPoolName> values) { List list = new ArrayList<>(values.size()); for (SpecialistPoolName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java index de4bc04772ce..a42c3dba4311 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String study) { .toString(); } - public static StudyName parse(String formattedString) { + public static @Nullable StudyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StudyName> values) { List list = new ArrayList<>(values.size()); for (StudyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java index 41fb06323df6..199820fdf8b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static TensorboardExperimentName parse(String formattedString) { + public static @Nullable TensorboardExperimentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardExperimentName> values) { List list = new ArrayList<>(values.size()); for (TensorboardExperimentName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java index 9c0e170b9d12..6c7066e78c4d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String tensorboard) .toString(); } - public static TensorboardName parse(String formattedString) { + public static @Nullable TensorboardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardName> values) { List list = new ArrayList<>(values.size()); for (TensorboardName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java index 732ad1f5f802..0c910aa15cd8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TensorboardRunName parse(String formattedString) { + public static @Nullable TensorboardRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardRunName> values) { List list = new ArrayList<>(values.size()); for (TensorboardRunName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java index cc6dc050b347..368b5113837e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String format( .toString(); } - public static TensorboardTimeSeriesName parse(String formattedString) { + public static @Nullable TensorboardTimeSeriesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -153,7 +154,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorboardTimeSeriesName> values) { List list = new ArrayList<>(values.size()); for (TensorboardTimeSeriesName value : values) { if (value == null) { @@ -222,7 +223,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java index 7b227e01ae16..8eaff94c31ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String trainingPipe .toString(); } - public static TrainingPipelineName parse(String formattedString) { + public static @Nullable TrainingPipelineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TrainingPipelineName> values) { List list = new ArrayList<>(values.size()); for (TrainingPipelineName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java index 95caa61ed00a..86ea8c631ed8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String study, Strin .toString(); } - public static TrialName parse(String formattedString) { + public static @Nullable TrialName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TrialName> values) { List list = new ArrayList<>(values.size()); for (TrialName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobName.java index 2ee59cbec487..391813833c8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String tuningJob) { .toString(); } - public static TuningJobName parse(String formattedString) { + public static @Nullable TuningJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TuningJobName> values) { List list = new ArrayList<>(values.size()); for (TuningJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java index bd969c6aa2b5..3bada4895598 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java @@ -43,6 +43,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. /** @@ -875,7 +876,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AlloyDBAdminClient implements BackgroundResource { - private final AlloyDBAdminSettings settings; + private final @Nullable AlloyDBAdminSettings settings; private final AlloyDBAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -922,7 +923,7 @@ protected AlloyDBAdminClient(AlloyDBAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBAdminSettings getSettings() { + public final @Nullable AlloyDBAdminSettings getSettings() { return settings; } @@ -973,7 +974,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1143,7 +1144,7 @@ public final UnaryCallable listCluste * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1260,7 +1261,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1574,7 +1575,7 @@ public final UnaryCallable updateClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportClusterAsync( - ClusterName name, + @Nullable ClusterName name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, @@ -1768,7 +1769,7 @@ public final UnaryCallable exportClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importClusterAsync( - ClusterName name, String gcsUri, String database, String user) { + @Nullable ClusterName name, String gcsUri, String database, String user) { ImportClusterRequest request = ImportClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1942,7 +1943,7 @@ public final UnaryCallable importClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeClusterAsync( - ClusterName name, DatabaseVersion version) { + @Nullable ClusterName name, DatabaseVersion version) { UpgradeClusterRequest request = UpgradeClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2100,7 +2101,8 @@ public final UnaryCallable upgradeClusterCalla * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -2253,7 +2255,8 @@ public final UnaryCallable deleteClusterCallabl * Cluster.name field * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture promoteClusterAsync(ClusterName name) { + public final OperationFuture promoteClusterAsync( + @Nullable ClusterName name) { PromoteClusterRequest request = PromoteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return promoteClusterAsync(request); @@ -2409,7 +2412,7 @@ public final UnaryCallable promoteClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture switchoverClusterAsync( - ClusterName name) { + @Nullable ClusterName name) { SwitchoverClusterRequest request = SwitchoverClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2673,7 +2676,7 @@ public final UnaryCallable restoreClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateSecondaryClusterRequest request = CreateSecondaryClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2851,7 +2854,7 @@ public final OperationFuture createSecondaryClusterA * projects/{project}/locations/{region}/clusters/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(ClusterName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable ClusterName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3022,7 +3025,7 @@ public final UnaryCallable listInst * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -3143,7 +3146,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3316,7 +3319,7 @@ public final UnaryCallable createInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateSecondaryInstanceRequest request = CreateSecondaryInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3728,7 +3731,8 @@ public final UnaryCallable updateInstanceCalla * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -3883,7 +3887,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return failoverInstanceAsync(request); @@ -4041,7 +4045,7 @@ public final UnaryCallable failoverInstanceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture injectFaultAsync( - InjectFaultRequest.FaultType faultType, InstanceName name) { + InjectFaultRequest.FaultType faultType, @Nullable InstanceName name) { InjectFaultRequest request = InjectFaultRequest.newBuilder() .setFaultType(faultType) @@ -4199,7 +4203,7 @@ public final UnaryCallable injectFaultCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restartInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { RestartInstanceRequest request = RestartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return restartInstanceAsync(request); @@ -4367,7 +4371,11 @@ public final UnaryCallable restartInstanceCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExecuteSqlResponse executeSql( - InstanceName instance, String database, String user, String sqlStatement, String password) { + @Nullable InstanceName instance, + String database, + String user, + String sqlStatement, + String password) { ExecuteSqlRequest request = ExecuteSqlRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -4517,7 +4525,7 @@ public final UnaryCallable executeSqlCall * @param parent Required. Parent value for ListBackupsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4682,7 +4690,7 @@ public final UnaryCallable listBackupsC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -4795,7 +4803,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { + @Nullable LocationName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5090,7 +5098,8 @@ public final UnaryCallable updateBackupCallable( * Backup.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -5246,7 +5255,7 @@ public final UnaryCallable deleteBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( - LocationName parent) { + @Nullable LocationName parent) { ListSupportedDatabaseFlagsRequest request = ListSupportedDatabaseFlagsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5422,7 +5431,8 @@ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( * projects/{project}/locations/{location}/clusters/{cluster} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateClientCertificateResponse generateClientCertificate(ClusterName parent) { + public final GenerateClientCertificateResponse generateClientCertificate( + @Nullable ClusterName parent) { GenerateClientCertificateRequest request = GenerateClientCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5557,7 +5567,7 @@ public final GenerateClientCertificateResponse generateClientCertificate( * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionInfo getConnectionInfo(InstanceName parent) { + public final ConnectionInfo getConnectionInfo(@Nullable InstanceName parent) { GetConnectionInfoRequest request = GetConnectionInfoRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5677,7 +5687,7 @@ public final UnaryCallable getConnecti * @param parent Required. Parent value for ListUsersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(ClusterName parent) { + public final ListUsersPagedResponse listUsers(@Nullable ClusterName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -5840,7 +5850,7 @@ public final UnaryCallable listUsersCallabl * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -5953,7 +5963,7 @@ public final UnaryCallable getUserCallable() { * @param userId Required. ID of the requesting object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User createUser(ClusterName parent, User user, String userId) { + public final User createUser(@Nullable ClusterName parent, User user, String userId) { CreateUserRequest request = CreateUserRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6174,7 +6184,7 @@ public final UnaryCallable updateUserCallable() { * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -6289,7 +6299,7 @@ public final UnaryCallable deleteUserCallable() { * @param parent Required. Parent value for ListDatabasesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(ClusterName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable ClusterName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6644,8 +6654,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -6655,14 +6665,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6676,7 +6686,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6686,7 +6697,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -6720,8 +6731,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -6731,14 +6742,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6752,7 +6763,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6762,7 +6774,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -6793,8 +6805,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -6804,14 +6816,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6825,7 +6837,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6835,7 +6848,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -6876,12 +6889,13 @@ public static class ListSupportedDatabaseFlagsPage ListSupportedDatabaseFlagsPage> { private ListSupportedDatabaseFlagsPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { super(context, response); } @@ -6891,18 +6905,20 @@ private static ListSupportedDatabaseFlagsPage createEmptyPage() { @Override protected ListSupportedDatabaseFlagsPage createPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { return new ListSupportedDatabaseFlagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> @@ -6921,7 +6937,7 @@ public static class ListSupportedDatabaseFlagsFixedSizeCollection ListSupportedDatabaseFlagsFixedSizeCollection> { private ListSupportedDatabaseFlagsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6931,7 +6947,7 @@ private static ListSupportedDatabaseFlagsFixedSizeCollection createEmptyCollecti @Override protected ListSupportedDatabaseFlagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSupportedDatabaseFlagsFixedSizeCollection(pages, collectionSize); } } @@ -6958,8 +6974,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -6969,14 +6985,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6986,7 +7002,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6996,7 +7012,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } @@ -7030,8 +7046,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -7041,14 +7057,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7062,7 +7078,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7072,7 +7089,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -7106,8 +7123,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7117,14 +7134,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7138,7 +7155,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7148,7 +7166,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java index 2ff8c2a77760..434eced35155 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -519,7 +520,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); } @@ -539,7 +540,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java index e0206245c71f..3547e172f275 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java @@ -41,6 +41,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. /** @@ -182,7 +183,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AlloyDBCSQLAdminClient implements BackgroundResource { - private final AlloyDBCSQLAdminSettings settings; + private final @Nullable AlloyDBCSQLAdminSettings settings; private final AlloyDBCSQLAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -230,7 +231,7 @@ protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBCSQLAdminSettings getSettings() { + public final @Nullable AlloyDBCSQLAdminSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreFromCloudSQLAsync( - LocationName parent, String clusterId) { + @Nullable LocationName parent, String clusterId) { RestoreFromCloudSQLRequest request = RestoreFromCloudSQLRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -627,8 +628,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -638,14 +639,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -659,7 +660,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -669,7 +671,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java index ce2093e829ca..f31685530ea7 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,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); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java index bd86eb5359ac..a388c6d585aa 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java @@ -91,6 +91,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -102,11 +103,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java index ebd1bafee781..9b4e3897fe12 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java @@ -127,6 +127,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1133,7 +1134,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); } @@ -1390,7 +1391,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java index b2b52e707ef8..15387ccd49f3 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,11 +44,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java index 79036c196c38..f61a8aa3d618 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,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); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java index 8594baa5e47b..d1f52d12a7c3 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java @@ -43,6 +43,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. /** @@ -895,7 +896,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AlloyDBAdminClient implements BackgroundResource { - private final AlloyDBAdminSettings settings; + private final @Nullable AlloyDBAdminSettings settings; private final AlloyDBAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -942,7 +943,7 @@ protected AlloyDBAdminClient(AlloyDBAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBAdminSettings getSettings() { + public final @Nullable AlloyDBAdminSettings getSettings() { return settings; } @@ -993,7 +994,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1163,7 +1164,7 @@ public final UnaryCallable listCluste * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1280,7 +1281,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1594,7 +1595,7 @@ public final UnaryCallable updateClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportClusterAsync( - ClusterName name, + @Nullable ClusterName name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, @@ -1788,7 +1789,7 @@ public final UnaryCallable exportClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importClusterAsync( - ClusterName name, String gcsUri, String database, String user) { + @Nullable ClusterName name, String gcsUri, String database, String user) { ImportClusterRequest request = ImportClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1962,7 +1963,7 @@ public final UnaryCallable importClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeClusterAsync( - ClusterName name, DatabaseVersion version) { + @Nullable ClusterName name, DatabaseVersion version) { UpgradeClusterRequest request = UpgradeClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2120,7 +2121,8 @@ public final UnaryCallable upgradeClusterCalla * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -2273,7 +2275,8 @@ public final UnaryCallable deleteClusterCallabl * Cluster.name field * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture promoteClusterAsync(ClusterName name) { + public final OperationFuture promoteClusterAsync( + @Nullable ClusterName name) { PromoteClusterRequest request = PromoteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return promoteClusterAsync(request); @@ -2429,7 +2432,7 @@ public final UnaryCallable promoteClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture switchoverClusterAsync( - ClusterName name) { + @Nullable ClusterName name) { SwitchoverClusterRequest request = SwitchoverClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2693,7 +2696,7 @@ public final UnaryCallable restoreClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateSecondaryClusterRequest request = CreateSecondaryClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2871,7 +2874,7 @@ public final OperationFuture createSecondaryClusterA * projects/{project}/locations/{region}/clusters/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(ClusterName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable ClusterName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3042,7 +3045,7 @@ public final UnaryCallable listInst * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -3163,7 +3166,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3336,7 +3339,7 @@ public final UnaryCallable createInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateSecondaryInstanceRequest request = CreateSecondaryInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3748,7 +3751,8 @@ public final UnaryCallable updateInstanceCalla * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -3903,7 +3907,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return failoverInstanceAsync(request); @@ -4061,7 +4065,7 @@ public final UnaryCallable failoverInstanceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture injectFaultAsync( - InjectFaultRequest.FaultType faultType, InstanceName name) { + InjectFaultRequest.FaultType faultType, @Nullable InstanceName name) { InjectFaultRequest request = InjectFaultRequest.newBuilder() .setFaultType(faultType) @@ -4219,7 +4223,7 @@ public final UnaryCallable injectFaultCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restartInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { RestartInstanceRequest request = RestartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return restartInstanceAsync(request); @@ -4387,7 +4391,11 @@ public final UnaryCallable restartInstanceCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExecuteSqlResponse executeSql( - InstanceName instance, String database, String user, String sqlStatement, String password) { + @Nullable InstanceName instance, + String database, + String user, + String sqlStatement, + String password) { ExecuteSqlRequest request = ExecuteSqlRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -4537,7 +4545,7 @@ public final UnaryCallable executeSqlCall * @param parent Required. Parent value for ListBackupsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4702,7 +4710,7 @@ public final UnaryCallable listBackupsC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -4815,7 +4823,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { + @Nullable LocationName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5110,7 +5118,8 @@ public final UnaryCallable updateBackupCallable( * Backup.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -5266,7 +5275,7 @@ public final UnaryCallable deleteBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( - LocationName parent) { + @Nullable LocationName parent) { ListSupportedDatabaseFlagsRequest request = ListSupportedDatabaseFlagsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5442,7 +5451,8 @@ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( * projects/{project}/locations/{location}/clusters/{cluster} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateClientCertificateResponse generateClientCertificate(ClusterName parent) { + public final GenerateClientCertificateResponse generateClientCertificate( + @Nullable ClusterName parent) { GenerateClientCertificateRequest request = GenerateClientCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5579,7 +5589,7 @@ public final GenerateClientCertificateResponse generateClientCertificate( * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionInfo getConnectionInfo(InstanceName parent) { + public final ConnectionInfo getConnectionInfo(@Nullable InstanceName parent) { GetConnectionInfoRequest request = GetConnectionInfoRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5699,7 +5709,7 @@ public final UnaryCallable getConnecti * @param parent Required. Parent value for ListUsersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(ClusterName parent) { + public final ListUsersPagedResponse listUsers(@Nullable ClusterName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -5862,7 +5872,7 @@ public final UnaryCallable listUsersCallabl * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -5975,7 +5985,7 @@ public final UnaryCallable getUserCallable() { * @param userId Required. ID of the requesting object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User createUser(ClusterName parent, User user, String userId) { + public final User createUser(@Nullable ClusterName parent, User user, String userId) { CreateUserRequest request = CreateUserRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6196,7 +6206,7 @@ public final UnaryCallable updateUserCallable() { * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -6311,7 +6321,7 @@ public final UnaryCallable deleteUserCallable() { * @param parent Required. Parent value for ListDatabasesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(ClusterName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable ClusterName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6478,7 +6488,8 @@ public final UnaryCallable listData * @param databaseId Required. ID of the requesting object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database createDatabase(ClusterName parent, Database database, String databaseId) { + public final Database createDatabase( + @Nullable ClusterName parent, Database database, String databaseId) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6795,8 +6806,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -6806,14 +6817,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6827,7 +6838,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6837,7 +6849,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -6871,8 +6883,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -6882,14 +6894,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6903,7 +6915,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6913,7 +6926,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -6944,8 +6957,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -6955,14 +6968,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6976,7 +6989,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6986,7 +7000,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -7027,12 +7041,13 @@ public static class ListSupportedDatabaseFlagsPage ListSupportedDatabaseFlagsPage> { private ListSupportedDatabaseFlagsPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { super(context, response); } @@ -7042,18 +7057,20 @@ private static ListSupportedDatabaseFlagsPage createEmptyPage() { @Override protected ListSupportedDatabaseFlagsPage createPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { return new ListSupportedDatabaseFlagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> @@ -7072,7 +7089,7 @@ public static class ListSupportedDatabaseFlagsFixedSizeCollection ListSupportedDatabaseFlagsFixedSizeCollection> { private ListSupportedDatabaseFlagsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7082,7 +7099,7 @@ private static ListSupportedDatabaseFlagsFixedSizeCollection createEmptyCollecti @Override protected ListSupportedDatabaseFlagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSupportedDatabaseFlagsFixedSizeCollection(pages, collectionSize); } } @@ -7109,8 +7126,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -7120,14 +7137,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7137,7 +7154,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7147,7 +7164,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } @@ -7181,8 +7198,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -7192,14 +7209,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7213,7 +7230,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7223,7 +7241,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -7257,8 +7275,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7268,14 +7286,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7289,7 +7307,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7299,7 +7318,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java index 478d23cf28fe..72977560caab 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -525,7 +526,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); } @@ -545,7 +546,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java index 1ab32fa2c37b..3ca1f063dcfe 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java @@ -41,6 +41,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. /** @@ -183,7 +184,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AlloyDBCSQLAdminClient implements BackgroundResource { - private final AlloyDBCSQLAdminSettings settings; + private final @Nullable AlloyDBCSQLAdminSettings settings; private final AlloyDBCSQLAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -231,7 +232,7 @@ protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBCSQLAdminSettings getSettings() { + public final @Nullable AlloyDBCSQLAdminSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreFromCloudSQLAsync( - LocationName parent, String clusterId) { + @Nullable LocationName parent, String clusterId) { RestoreFromCloudSQLRequest request = RestoreFromCloudSQLRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -628,8 +629,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -639,14 +640,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -660,7 +661,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -670,7 +672,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java index bd1fa23fd75a..f21caffed55e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -202,7 +203,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); } @@ -222,7 +223,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java index 8b702a6d4bf6..dfabdb5613e4 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java @@ -94,6 +94,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -106,11 +107,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java index 31464de60baa..c390f0e3d374 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java @@ -128,6 +128,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1141,7 +1142,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); } @@ -1400,7 +1401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java index fc2c75777354..0fba530ace69 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java index 1f6fe1159e56..acc0b4bbb76c 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java index 0ec7e338a49d..940e0e2f9107 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java @@ -43,6 +43,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. /** @@ -895,7 +896,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AlloyDBAdminClient implements BackgroundResource { - private final AlloyDBAdminSettings settings; + private final @Nullable AlloyDBAdminSettings settings; private final AlloyDBAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -942,7 +943,7 @@ protected AlloyDBAdminClient(AlloyDBAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBAdminSettings getSettings() { + public final @Nullable AlloyDBAdminSettings getSettings() { return settings; } @@ -993,7 +994,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1163,7 +1164,7 @@ public final UnaryCallable listCluste * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1280,7 +1281,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1594,7 +1595,7 @@ public final UnaryCallable updateClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportClusterAsync( - ClusterName name, + @Nullable ClusterName name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, @@ -1788,7 +1789,7 @@ public final UnaryCallable exportClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importClusterAsync( - ClusterName name, String gcsUri, String database, String user) { + @Nullable ClusterName name, String gcsUri, String database, String user) { ImportClusterRequest request = ImportClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1962,7 +1963,7 @@ public final UnaryCallable importClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeClusterAsync( - ClusterName name, DatabaseVersion version) { + @Nullable ClusterName name, DatabaseVersion version) { UpgradeClusterRequest request = UpgradeClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2120,7 +2121,8 @@ public final UnaryCallable upgradeClusterCalla * Cluster.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -2273,7 +2275,8 @@ public final UnaryCallable deleteClusterCallabl * Cluster.name field * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture promoteClusterAsync(ClusterName name) { + public final OperationFuture promoteClusterAsync( + @Nullable ClusterName name) { PromoteClusterRequest request = PromoteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return promoteClusterAsync(request); @@ -2429,7 +2432,7 @@ public final UnaryCallable promoteClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture switchoverClusterAsync( - ClusterName name) { + @Nullable ClusterName name) { SwitchoverClusterRequest request = SwitchoverClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2693,7 +2696,7 @@ public final UnaryCallable restoreClusterCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateSecondaryClusterRequest request = CreateSecondaryClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2871,7 +2874,7 @@ public final OperationFuture createSecondaryClusterA * projects/{project}/locations/{region}/clusters/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(ClusterName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable ClusterName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3042,7 +3045,7 @@ public final UnaryCallable listInst * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -3163,7 +3166,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3336,7 +3339,7 @@ public final UnaryCallable createInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecondaryInstanceAsync( - ClusterName parent, Instance instance, String instanceId) { + @Nullable ClusterName parent, Instance instance, String instanceId) { CreateSecondaryInstanceRequest request = CreateSecondaryInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3748,7 +3751,8 @@ public final UnaryCallable updateInstanceCalla * Instance.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -3903,7 +3907,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return failoverInstanceAsync(request); @@ -4061,7 +4065,7 @@ public final UnaryCallable failoverInstanceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture injectFaultAsync( - InjectFaultRequest.FaultType faultType, InstanceName name) { + InjectFaultRequest.FaultType faultType, @Nullable InstanceName name) { InjectFaultRequest request = InjectFaultRequest.newBuilder() .setFaultType(faultType) @@ -4219,7 +4223,7 @@ public final UnaryCallable injectFaultCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restartInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { RestartInstanceRequest request = RestartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return restartInstanceAsync(request); @@ -4387,7 +4391,11 @@ public final UnaryCallable restartInstanceCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExecuteSqlResponse executeSql( - InstanceName instance, String database, String user, String sqlStatement, String password) { + @Nullable InstanceName instance, + String database, + String user, + String sqlStatement, + String password) { ExecuteSqlRequest request = ExecuteSqlRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -4537,7 +4545,7 @@ public final UnaryCallable executeSqlCall * @param parent Required. Parent value for ListBackupsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4702,7 +4710,7 @@ public final UnaryCallable listBackupsC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -4815,7 +4823,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { + @Nullable LocationName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5110,7 +5118,8 @@ public final UnaryCallable updateBackupCallable( * Backup.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -5266,7 +5275,7 @@ public final UnaryCallable deleteBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( - LocationName parent) { + @Nullable LocationName parent) { ListSupportedDatabaseFlagsRequest request = ListSupportedDatabaseFlagsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5442,7 +5451,8 @@ public final ListSupportedDatabaseFlagsPagedResponse listSupportedDatabaseFlags( * projects/{project}/locations/{location}/clusters/{cluster} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateClientCertificateResponse generateClientCertificate(ClusterName parent) { + public final GenerateClientCertificateResponse generateClientCertificate( + @Nullable ClusterName parent) { GenerateClientCertificateRequest request = GenerateClientCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5579,7 +5589,7 @@ public final GenerateClientCertificateResponse generateClientCertificate( * projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionInfo getConnectionInfo(InstanceName parent) { + public final ConnectionInfo getConnectionInfo(@Nullable InstanceName parent) { GetConnectionInfoRequest request = GetConnectionInfoRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5699,7 +5709,7 @@ public final UnaryCallable getConnecti * @param parent Required. Parent value for ListUsersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(ClusterName parent) { + public final ListUsersPagedResponse listUsers(@Nullable ClusterName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -5862,7 +5872,7 @@ public final UnaryCallable listUsersCallabl * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -5975,7 +5985,7 @@ public final UnaryCallable getUserCallable() { * @param userId Required. ID of the requesting object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User createUser(ClusterName parent, User user, String userId) { + public final User createUser(@Nullable ClusterName parent, User user, String userId) { CreateUserRequest request = CreateUserRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6196,7 +6206,7 @@ public final UnaryCallable updateUserCallable() { * User.name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -6311,7 +6321,7 @@ public final UnaryCallable deleteUserCallable() { * @param parent Required. Parent value for ListDatabasesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(ClusterName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable ClusterName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6478,7 +6488,8 @@ public final UnaryCallable listData * @param databaseId Required. ID of the requesting object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database createDatabase(ClusterName parent, Database database, String databaseId) { + public final Database createDatabase( + @Nullable ClusterName parent, Database database, String databaseId) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6795,8 +6806,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -6806,14 +6817,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6827,7 +6838,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6837,7 +6849,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -6871,8 +6883,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -6882,14 +6894,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6903,7 +6915,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6913,7 +6926,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -6944,8 +6957,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -6955,14 +6968,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6976,7 +6989,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6986,7 +7000,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -7027,12 +7041,13 @@ public static class ListSupportedDatabaseFlagsPage ListSupportedDatabaseFlagsPage> { private ListSupportedDatabaseFlagsPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { super(context, response); } @@ -7042,18 +7057,20 @@ private static ListSupportedDatabaseFlagsPage createEmptyPage() { @Override protected ListSupportedDatabaseFlagsPage createPage( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> context, - ListSupportedDatabaseFlagsResponse response) { + @Nullable ListSupportedDatabaseFlagsResponse response) { return new ListSupportedDatabaseFlagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSupportedDatabaseFlagsRequest, ListSupportedDatabaseFlagsResponse, SupportedDatabaseFlag> @@ -7072,7 +7089,7 @@ public static class ListSupportedDatabaseFlagsFixedSizeCollection ListSupportedDatabaseFlagsFixedSizeCollection> { private ListSupportedDatabaseFlagsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7082,7 +7099,7 @@ private static ListSupportedDatabaseFlagsFixedSizeCollection createEmptyCollecti @Override protected ListSupportedDatabaseFlagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSupportedDatabaseFlagsFixedSizeCollection(pages, collectionSize); } } @@ -7109,8 +7126,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -7120,14 +7137,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7137,7 +7154,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7147,7 +7164,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } @@ -7181,8 +7198,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -7192,14 +7209,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7213,7 +7230,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7223,7 +7241,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -7257,8 +7275,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7268,14 +7286,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7289,7 +7307,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7299,7 +7318,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java index b612945731c9..f149a573b358 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -525,7 +526,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); } @@ -545,7 +546,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java index df8be7823efe..258710572614 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java @@ -41,6 +41,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. /** @@ -183,7 +184,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AlloyDBCSQLAdminClient implements BackgroundResource { - private final AlloyDBCSQLAdminSettings settings; + private final @Nullable AlloyDBCSQLAdminSettings settings; private final AlloyDBCSQLAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -231,7 +232,7 @@ protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlloyDBCSQLAdminSettings getSettings() { + public final @Nullable AlloyDBCSQLAdminSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreFromCloudSQLAsync( - LocationName parent, String clusterId) { + @Nullable LocationName parent, String clusterId) { RestoreFromCloudSQLRequest request = RestoreFromCloudSQLRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -628,8 +629,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -639,14 +640,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -660,7 +661,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -670,7 +672,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java index 9372027ac32b..119c15dba701 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -202,7 +203,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); } @@ -222,7 +223,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java index 8d9abaa796cf..99996bf6ba5e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java @@ -94,6 +94,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -106,11 +107,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java index d42e71ca3f47..da7bd960b3b5 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java @@ -128,6 +128,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1141,7 +1142,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); } @@ -1400,7 +1401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java index 6be04d4e0fa1..6622ac1ef864 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java index 4740155492a0..6bf837b0d177 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupName.java index 526a10568f2f..311eccd0c506 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterName.java index edc105caa3d1..4dd55f2da892 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java index 24518bb01af1..1e931c619879 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceName.java index d913b170ea23..ffad52874cb1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/LocationName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/LocationName.java index 15a30d81b726..b8ab94c276dc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/LocationName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagName.java index b9069889a20b..986fc7b899d1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String flag) { return newBuilder().setProject(project).setLocation(location).setFlag(flag).build().toString(); } - public static SupportedDatabaseFlagName parse(String formattedString) { + public static @Nullable SupportedDatabaseFlagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SupportedDatabaseFlagName> values) { List list = new ArrayList<>(values.size()); for (SupportedDatabaseFlagName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserName.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserName.java index 9166e645b77f..c54603814c31 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/BackupName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/BackupName.java index 0ec2f20fce5a..2cf389ceda79 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/BackupName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterName.java index 72f3d2a05c16..dbf0d4f0e62a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseName.java index ce385a9b8f1f..7862ef68c11a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceName.java index b2fe1f79908a..eb6d02eabb19 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/LocationName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/LocationName.java index 48a07c67678b..e8e9c81679cc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/LocationName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagName.java index 64ba7b70548a..878e3ee16274 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String flag) { return newBuilder().setProject(project).setLocation(location).setFlag(flag).build().toString(); } - public static SupportedDatabaseFlagName parse(String formattedString) { + public static @Nullable SupportedDatabaseFlagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SupportedDatabaseFlagName> values) { List list = new ArrayList<>(values.size()); for (SupportedDatabaseFlagName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/UserName.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/UserName.java index d1188f3cf768..9be98bc6e8a9 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/UserName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupName.java index 922781aefb56..55a7165992f7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterName.java index 1e4d44ff5f70..1e5cd30f114d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseName.java index e0c6d102c4c0..7f18818fd6e3 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceName.java index 1ac3036a7f50..4dbaaeef4706 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/LocationName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/LocationName.java index 7786a4ea9e5d..77aca74b3bce 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/LocationName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagName.java index 067704aec66a..e529793cc818 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String flag) { return newBuilder().setProject(project).setLocation(location).setFlag(flag).build().toString(); } - public static SupportedDatabaseFlagName parse(String formattedString) { + public static @Nullable SupportedDatabaseFlagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SupportedDatabaseFlagName> values) { List list = new ArrayList<>(values.size()); for (SupportedDatabaseFlagName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/UserName.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/UserName.java index 1f222404f5cf..eba9d9e4a2b7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/UserName.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index ffe3b028704a..c6d596a1811d 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -35,6 +35,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. /** @@ -3025,7 +3026,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnalyticsAdminServiceClient implements BackgroundResource { - private final AnalyticsAdminServiceSettings settings; + private final @Nullable AnalyticsAdminServiceSettings settings; private final AnalyticsAdminServiceStub stub; /** Constructs an instance of AnalyticsAdminServiceClient with default settings. */ @@ -3065,7 +3066,7 @@ protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) { this.stub = stub; } - public final AnalyticsAdminServiceSettings getSettings() { + public final @Nullable AnalyticsAdminServiceSettings getSettings() { return settings; } @@ -3096,7 +3097,7 @@ public AnalyticsAdminServiceStub getStub() { * "accounts/100" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account getAccount(AccountName name) { + public final Account getAccount(@Nullable AccountName name) { GetAccountRequest request = GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccount(request); @@ -3335,7 +3336,7 @@ public final UnaryCallable listAccoun * Example: "accounts/100" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccount(AccountName name) { + public final void deleteAccount(@Nullable AccountName name) { DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAccount(request); @@ -3736,7 +3737,7 @@ public final ListAccountSummariesPagedResponse listAccountSummaries( * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Property getProperty(PropertyName name) { + public final Property getProperty(@Nullable PropertyName name) { GetPropertyRequest request = GetPropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProperty(request); @@ -4059,7 +4060,7 @@ public final UnaryCallable createPropertyCallab * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Property deleteProperty(PropertyName name) { + public final Property deleteProperty(@Nullable PropertyName name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProperty(request); @@ -4298,7 +4299,8 @@ public final UnaryCallable updatePropertyCallab * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { + public final FirebaseLink createFirebaseLink( + @Nullable PropertyName parent, FirebaseLink firebaseLink) { CreateFirebaseLinkRequest request = CreateFirebaseLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4430,7 +4432,7 @@ public final UnaryCallable createFireba *

Example: `properties/1234/firebaseLinks/5678` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFirebaseLink(FirebaseLinkName name) { + public final void deleteFirebaseLink(@Nullable FirebaseLinkName name) { DeleteFirebaseLinkRequest request = DeleteFirebaseLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4551,7 +4553,7 @@ public final UnaryCallable deleteFirebaseLinkC *

Example: `properties/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { + public final ListFirebaseLinksPagedResponse listFirebaseLinks(@Nullable PropertyName parent) { ListFirebaseLinksRequest request = ListFirebaseLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4725,7 +4727,7 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR *

Example: `properties/123/dataStreams/456/globalSiteTag` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { + public final GlobalSiteTag getGlobalSiteTag(@Nullable GlobalSiteTagName name) { GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlobalSiteTag(request); @@ -4844,7 +4846,8 @@ public final UnaryCallable getGlobalSite * @param googleAdsLink Required. The GoogleAdsLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { + public final GoogleAdsLink createGoogleAdsLink( + @Nullable PropertyName parent, GoogleAdsLink googleAdsLink) { CreateGoogleAdsLinkRequest request = CreateGoogleAdsLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5068,7 +5071,7 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques * @param name Required. Example format: properties/1234/googleAdsLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { + public final void deleteGoogleAdsLink(@Nullable GoogleAdsLinkName name) { DeleteGoogleAdsLinkRequest request = DeleteGoogleAdsLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5187,7 +5190,7 @@ public final UnaryCallable deleteGoogleAdsLin * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { + public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(@Nullable PropertyName parent) { ListGoogleAdsLinksRequest request = ListGoogleAdsLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5360,7 +5363,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( *

Example: `accounts/1000/dataSharingSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { + public final DataSharingSettings getDataSharingSettings(@Nullable DataSharingSettingsName name) { GetDataSharingSettingsRequest request = GetDataSharingSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5484,7 +5487,7 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret getMeasurementProtocolSecret( - MeasurementProtocolSecretName name) { + @Nullable MeasurementProtocolSecretName name) { GetMeasurementProtocolSecretRequest request = GetMeasurementProtocolSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5619,7 +5622,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - DataStreamName parent) { + @Nullable DataStreamName parent) { ListMeasurementProtocolSecretsRequest request = ListMeasurementProtocolSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5803,7 +5806,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret createMeasurementProtocolSecret( - DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { + @Nullable DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { CreateMeasurementProtocolSecretRequest request = CreateMeasurementProtocolSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5938,7 +5941,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { + public final void deleteMeasurementProtocolSecret(@Nullable MeasurementProtocolSecretName name) { DeleteMeasurementProtocolSecretRequest request = DeleteMeasurementProtocolSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6243,7 +6246,7 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( - SKAdNetworkConversionValueSchemaName name) { + @Nullable SKAdNetworkConversionValueSchemaName name) { GetSKAdNetworkConversionValueSchemaRequest request = GetSKAdNetworkConversionValueSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6385,7 +6388,8 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( - DataStreamName parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { + @Nullable DataStreamName parent, + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { CreateSKAdNetworkConversionValueSchemaRequest request = CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6527,7 +6531,7 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSKAdNetworkConversionValueSchema( - SKAdNetworkConversionValueSchemaName name) { + @Nullable SKAdNetworkConversionValueSchemaName name) { DeleteSKAdNetworkConversionValueSchemaRequest request = DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6770,7 +6774,7 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSKAdNetworkConversionValueSchemasPagedResponse - listSKAdNetworkConversionValueSchemas(DataStreamName parent) { + listSKAdNetworkConversionValueSchemas(@Nullable DataStreamName parent) { ListSKAdNetworkConversionValueSchemasRequest request = ListSKAdNetworkConversionValueSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7095,7 +7099,8 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( * properties/{property}/googleSignalsSettings * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) { + public final GoogleSignalsSettings getGoogleSignalsSettings( + @Nullable GoogleSignalsSettingsName name) { GetGoogleSignalsSettingsRequest request = GetGoogleSignalsSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7325,7 +7330,7 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings( */ @Deprecated public final ConversionEvent createConversionEvent( - PropertyName parent, ConversionEvent conversionEvent) { + @Nullable PropertyName parent, ConversionEvent conversionEvent) { CreateConversionEventRequest request = CreateConversionEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7576,7 +7581,7 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ConversionEvent getConversionEvent(ConversionEventName name) { + public final ConversionEvent getConversionEvent(@Nullable ConversionEventName name) { GetConversionEventRequest request = GetConversionEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7706,7 +7711,7 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteConversionEvent(ConversionEventName name) { + public final void deleteConversionEvent(@Nullable ConversionEventName name) { DeleteConversionEventRequest request = DeleteConversionEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7839,7 +7844,8 @@ public final UnaryCallable deleteConversion * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { + public final ListConversionEventsPagedResponse listConversionEvents( + @Nullable PropertyName parent) { ListConversionEventsRequest request = ListConversionEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8035,7 +8041,7 @@ public final ListConversionEventsPagedResponse listConversionEvents( * @param keyEvent Required. The Key Event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyEvent createKeyEvent(PropertyName parent, KeyEvent keyEvent) { + public final KeyEvent createKeyEvent(@Nullable PropertyName parent, KeyEvent keyEvent) { CreateKeyEventRequest request = CreateKeyEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8251,7 +8257,7 @@ public final UnaryCallable updateKeyEventCallab * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyEvent getKeyEvent(KeyEventName name) { + public final KeyEvent getKeyEvent(@Nullable KeyEventName name) { GetKeyEventRequest request = GetKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyEvent(request); @@ -8366,7 +8372,7 @@ public final UnaryCallable getKeyEventCallable() { * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteKeyEvent(KeyEventName name) { + public final void deleteKeyEvent(@Nullable KeyEventName name) { DeleteKeyEventRequest request = DeleteKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteKeyEvent(request); @@ -8483,7 +8489,7 @@ public final UnaryCallable deleteKeyEventCallable( * @param parent Required. The resource name of the parent property. Example: 'properties/123' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeyEventsPagedResponse listKeyEvents(PropertyName parent) { + public final ListKeyEventsPagedResponse listKeyEvents(@Nullable PropertyName parent) { ListKeyEventsRequest request = ListKeyEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8657,7 +8663,7 @@ public final UnaryCallable listKeyE * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - DisplayVideo360AdvertiserLinkName name) { + @Nullable DisplayVideo360AdvertiserLinkName name) { GetDisplayVideo360AdvertiserLinkRequest request = GetDisplayVideo360AdvertiserLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8792,7 +8798,7 @@ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - PropertyName parent) { + @Nullable PropertyName parent) { ListDisplayVideo360AdvertiserLinksRequest request = ListDisplayVideo360AdvertiserLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8979,7 +8985,7 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { + @Nullable PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { CreateDisplayVideo360AdvertiserLinkRequest request = CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9124,7 +9130,8 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( * properties/1234/displayVideo360AdvertiserLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) { + public final void deleteDisplayVideo360AdvertiserLink( + @Nullable DisplayVideo360AdvertiserLinkName name) { DeleteDisplayVideo360AdvertiserLinkRequest request = DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9363,7 +9370,7 @@ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { + @Nullable DisplayVideo360AdvertiserLinkProposalName name) { GetDisplayVideo360AdvertiserLinkProposalRequest request = GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9503,7 +9510,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) { + listDisplayVideo360AdvertiserLinkProposals(@Nullable PropertyName parent) { ListDisplayVideo360AdvertiserLinkProposalsRequest request = ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9696,7 +9703,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - PropertyName parent, + @Nullable PropertyName parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { CreateDisplayVideo360AdvertiserLinkProposalRequest request = CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() @@ -9839,7 +9846,7 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { + @Nullable DisplayVideo360AdvertiserLinkProposalName name) { DeleteDisplayVideo360AdvertiserLinkProposalRequest request = DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10124,7 +10131,7 @@ public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360Advertis * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { + @Nullable PropertyName parent, CustomDimension customDimension) { CreateCustomDimensionRequest request = CreateCustomDimensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10352,7 +10359,8 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { + public final ListCustomDimensionsPagedResponse listCustomDimensions( + @Nullable PropertyName parent) { ListCustomDimensionsRequest request = ListCustomDimensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10524,7 +10532,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * properties/1234/customDimensions/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomDimension(CustomDimensionName name) { + public final void archiveCustomDimension(@Nullable CustomDimensionName name) { ArchiveCustomDimensionRequest request = ArchiveCustomDimensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10643,7 +10651,7 @@ public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) * properties/1234/customDimensions/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension getCustomDimension(CustomDimensionName name) { + public final CustomDimension getCustomDimension(@Nullable CustomDimensionName name) { GetCustomDimensionRequest request = GetCustomDimensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10763,7 +10771,8 @@ public final CustomDimension getCustomDimension(GetCustomDimensionRequest reques * @param customMetric Required. The CustomMetric to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) { + public final CustomMetric createCustomMetric( + @Nullable PropertyName parent, CustomMetric customMetric) { CreateCustomMetricRequest request = CreateCustomMetricRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10986,7 +10995,7 @@ public final UnaryCallable updateCustom * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) { + public final ListCustomMetricsPagedResponse listCustomMetrics(@Nullable PropertyName parent) { ListCustomMetricsRequest request = ListCustomMetricsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11157,7 +11166,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR * properties/1234/customMetrics/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomMetric(CustomMetricName name) { + public final void archiveCustomMetric(@Nullable CustomMetricName name) { ArchiveCustomMetricRequest request = ArchiveCustomMetricRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11275,7 +11284,7 @@ public final UnaryCallable archiveCustomMetri * properties/1234/customMetrics/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric getCustomMetric(CustomMetricName name) { + public final CustomMetric getCustomMetric(@Nullable CustomMetricName name) { GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomMetric(request); @@ -11391,7 +11400,8 @@ public final UnaryCallable getCustomMetric * "properties/1000/dataRetentionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { + public final DataRetentionSettings getDataRetentionSettings( + @Nullable DataRetentionSettingsName name) { GetDataRetentionSettingsRequest request = GetDataRetentionSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11616,7 +11626,7 @@ public final DataRetentionSettings updateDataRetentionSettings( * @param dataStream Required. The DataStream to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { + public final DataStream createDataStream(@Nullable PropertyName parent, DataStream dataStream) { CreateDataStreamRequest request = CreateDataStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11738,7 +11748,7 @@ public final UnaryCallable createDataStream * properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataStream(DataStreamName name) { + public final void deleteDataStream(@Nullable DataStreamName name) { DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataStream(request); @@ -11949,7 +11959,7 @@ public final UnaryCallable updateDataStream * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { + public final ListDataStreamsPagedResponse listDataStreams(@Nullable PropertyName parent) { ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12117,7 +12127,7 @@ public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest * properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream getDataStream(DataStreamName name) { + public final DataStream getDataStream(@Nullable DataStreamName name) { GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataStream(request); @@ -12233,7 +12243,7 @@ public final UnaryCallable getDataStreamCallab * properties/1234/audiences/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience getAudience(AudienceName name) { + public final Audience getAudience(@Nullable AudienceName name) { GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAudience(request); @@ -12353,7 +12363,7 @@ public final UnaryCallable getAudienceCallable() { * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAudiencesPagedResponse listAudiences(PropertyName parent) { + public final ListAudiencesPagedResponse listAudiences(@Nullable PropertyName parent) { ListAudiencesRequest request = ListAudiencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12525,7 +12535,7 @@ public final UnaryCallable listAudi * @param audience Required. The audience to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience createAudience(PropertyName parent, Audience audience) { + public final Audience createAudience(@Nullable PropertyName parent, Audience audience) { CreateAudienceRequest request = CreateAudienceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12798,7 +12808,7 @@ public final UnaryCallable archiveAudienceCallabl * properties/1234/SearchAds360Link/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name) { + public final SearchAds360Link getSearchAds360Link(@Nullable SearchAds360LinkName name) { GetSearchAds360LinkRequest request = GetSearchAds360LinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12919,7 +12929,8 @@ public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest req * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyName parent) { + public final ListSearchAds360LinksPagedResponse listSearchAds360Links( + @Nullable PropertyName parent) { ListSearchAds360LinksRequest request = ListSearchAds360LinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13094,7 +13105,7 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchAds360Link createSearchAds360Link( - PropertyName parent, SearchAds360Link searchAds360Link) { + @Nullable PropertyName parent, SearchAds360Link searchAds360Link) { CreateSearchAds360LinkRequest request = CreateSearchAds360LinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13222,7 +13233,7 @@ public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkReque * properties/1234/SearchAds360Links/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSearchAds360Link(SearchAds360LinkName name) { + public final void deleteSearchAds360Link(@Nullable SearchAds360LinkName name) { DeleteSearchAds360LinkRequest request = DeleteSearchAds360LinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -13439,7 +13450,7 @@ public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkReque * properties/{property}/attributionSettings * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributionSettings getAttributionSettings(AttributionSettingsName name) { + public final AttributionSettings getAttributionSettings(@Nullable AttributionSettingsName name) { GetAttributionSettingsRequest request = GetAttributionSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -13773,7 +13784,8 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding) { + public final AccessBinding createAccessBinding( + @Nullable AccountName parent, AccessBinding accessBinding) { CreateAccessBindingRequest request = CreateAccessBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13807,7 +13819,8 @@ public final AccessBinding createAccessBinding(AccountName parent, AccessBinding * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding) { + public final AccessBinding createAccessBinding( + @Nullable PropertyName parent, AccessBinding accessBinding) { CreateAccessBindingRequest request = CreateAccessBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13936,7 +13949,7 @@ public final AccessBinding createAccessBinding(CreateAccessBindingRequest reques * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding getAccessBinding(AccessBindingName name) { + public final AccessBinding getAccessBinding(@Nullable AccessBindingName name) { GetAccessBindingRequest request = GetAccessBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccessBinding(request); @@ -14145,7 +14158,7 @@ public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest reques * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccessBinding(AccessBindingName name) { + public final void deleteAccessBinding(@Nullable AccessBindingName name) { DeleteAccessBindingRequest request = DeleteAccessBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14270,7 +14283,7 @@ public final UnaryCallable deleteAccessBindin * @param parent Required. Formats: - accounts/{account} - properties/{property} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessBindingsPagedResponse listAccessBindings(AccountName parent) { + public final ListAccessBindingsPagedResponse listAccessBindings(@Nullable AccountName parent) { ListAccessBindingsRequest request = ListAccessBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -14303,7 +14316,7 @@ public final ListAccessBindingsPagedResponse listAccessBindings(AccountName pare * @param parent Required. Formats: - accounts/{account} - properties/{property} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent) { + public final ListAccessBindingsPagedResponse listAccessBindings(@Nullable PropertyName parent) { ListAccessBindingsRequest request = ListAccessBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -14731,7 +14744,7 @@ public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest req * properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) { + public final ExpandedDataSet getExpandedDataSet(@Nullable ExpandedDataSetName name) { GetExpandedDataSetRequest request = GetExpandedDataSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14852,7 +14865,8 @@ public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest reques * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent) { + public final ListExpandedDataSetsPagedResponse listExpandedDataSets( + @Nullable PropertyName parent) { ListExpandedDataSetsRequest request = ListExpandedDataSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -15027,7 +15041,7 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExpandedDataSet createExpandedDataSet( - PropertyName parent, ExpandedDataSet expandedDataSet) { + @Nullable PropertyName parent, ExpandedDataSet expandedDataSet) { CreateExpandedDataSetRequest request = CreateExpandedDataSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -15253,7 +15267,7 @@ public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest * @param name Required. Example format: properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExpandedDataSet(ExpandedDataSetName name) { + public final void deleteExpandedDataSet(@Nullable ExpandedDataSetName name) { DeleteExpandedDataSetRequest request = DeleteExpandedDataSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -15370,7 +15384,7 @@ public final UnaryCallable deleteExpandedDa * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup getChannelGroup(ChannelGroupName name) { + public final ChannelGroup getChannelGroup(@Nullable ChannelGroupName name) { GetChannelGroupRequest request = GetChannelGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChannelGroup(request); @@ -15488,7 +15502,7 @@ public final UnaryCallable getChannelGroup * properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChannelGroupsPagedResponse listChannelGroups(PropertyName parent) { + public final ListChannelGroupsPagedResponse listChannelGroups(@Nullable PropertyName parent) { ListChannelGroupsRequest request = ListChannelGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -15662,7 +15676,8 @@ public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsR * @param channelGroup Required. The ChannelGroup to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup createChannelGroup(PropertyName parent, ChannelGroup channelGroup) { + public final ChannelGroup createChannelGroup( + @Nullable PropertyName parent, ChannelGroup channelGroup) { CreateChannelGroupRequest request = CreateChannelGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -15885,7 +15900,7 @@ public final UnaryCallable updateChanne * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteChannelGroup(ChannelGroupName name) { + public final void deleteChannelGroup(@Nullable ChannelGroupName name) { DeleteChannelGroupRequest request = DeleteChannelGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -16004,7 +16019,8 @@ public final UnaryCallable deleteChannelGroupC * @param bigqueryLink Required. The BigQueryLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryLink createBigQueryLink(PropertyName parent, BigQueryLink bigqueryLink) { + public final BigQueryLink createBigQueryLink( + @Nullable PropertyName parent, BigQueryLink bigqueryLink) { CreateBigQueryLinkRequest request = CreateBigQueryLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -16130,7 +16146,7 @@ public final UnaryCallable createBigQue * properties/123/bigQueryLinks/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { + public final BigQueryLink getBigQueryLink(@Nullable BigQueryLinkName name) { GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBigQueryLink(request); @@ -16249,7 +16265,7 @@ public final UnaryCallable getBigQueryLink * properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) { + public final ListBigQueryLinksPagedResponse listBigQueryLinks(@Nullable PropertyName parent) { ListBigQueryLinksRequest request = ListBigQueryLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -16421,7 +16437,7 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * properties/1234/bigQueryLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBigQueryLink(BigQueryLinkName name) { + public final void deleteBigQueryLink(@Nullable BigQueryLinkName name) { DeleteBigQueryLinkRequest request = DeleteBigQueryLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -16641,7 +16657,7 @@ public final UnaryCallable updateBigQue * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( - EnhancedMeasurementSettingsName name) { + @Nullable EnhancedMeasurementSettingsName name) { GetEnhancedMeasurementSettingsRequest request = GetEnhancedMeasurementSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -16875,7 +16891,7 @@ public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdSenseLink getAdSenseLink(AdSenseLinkName name) { + public final AdSenseLink getAdSenseLink(@Nullable AdSenseLinkName name) { GetAdSenseLinkRequest request = GetAdSenseLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAdSenseLink(request); @@ -16992,7 +17008,8 @@ public final UnaryCallable getAdSenseLinkCal * @param adsenseLink Required. The AdSense Link to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdSenseLink createAdSenseLink(PropertyName parent, AdSenseLink adsenseLink) { + public final AdSenseLink createAdSenseLink( + @Nullable PropertyName parent, AdSenseLink adsenseLink) { CreateAdSenseLinkRequest request = CreateAdSenseLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -17115,7 +17132,7 @@ public final UnaryCallable createAdSenseL * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdSenseLink(AdSenseLinkName name) { + public final void deleteAdSenseLink(@Nullable AdSenseLinkName name) { DeleteAdSenseLinkRequest request = DeleteAdSenseLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -17235,7 +17252,7 @@ public final UnaryCallable deleteAdSenseLinkCal * Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdSenseLinksPagedResponse listAdSenseLinks(PropertyName parent) { + public final ListAdSenseLinksPagedResponse listAdSenseLinks(@Nullable PropertyName parent) { ListAdSenseLinksRequest request = ListAdSenseLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -17408,7 +17425,7 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequ * properties/123/dataStreams/456/eventCreateRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventCreateRule getEventCreateRule(EventCreateRuleName name) { + public final EventCreateRule getEventCreateRule(@Nullable EventCreateRuleName name) { GetEventCreateRuleRequest request = GetEventCreateRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -17534,7 +17551,8 @@ public final EventCreateRule getEventCreateRule(GetEventCreateRuleRequest reques * @param parent Required. Example format: properties/123/dataStreams/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventCreateRulesPagedResponse listEventCreateRules(DataStreamName parent) { + public final ListEventCreateRulesPagedResponse listEventCreateRules( + @Nullable DataStreamName parent) { ListEventCreateRulesRequest request = ListEventCreateRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -17709,7 +17727,7 @@ public final ListEventCreateRulesPagedResponse listEventCreateRules( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventCreateRule createEventCreateRule( - DataStreamName parent, EventCreateRule eventCreateRule) { + @Nullable DataStreamName parent, EventCreateRule eventCreateRule) { CreateEventCreateRuleRequest request = CreateEventCreateRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -17936,7 +17954,7 @@ public final EventCreateRule updateEventCreateRule(UpdateEventCreateRuleRequest * @param name Required. Example format: properties/123/dataStreams/456/eventCreateRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEventCreateRule(EventCreateRuleName name) { + public final void deleteEventCreateRule(@Nullable EventCreateRuleName name) { DeleteEventCreateRuleRequest request = DeleteEventCreateRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -18059,7 +18077,7 @@ public final UnaryCallable deleteEventCreat * properties/123/dataStreams/456/eventEditRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventEditRule getEventEditRule(EventEditRuleName name) { + public final EventEditRule getEventEditRule(@Nullable EventEditRuleName name) { GetEventEditRuleRequest request = GetEventEditRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEventEditRule(request); @@ -18181,7 +18199,7 @@ public final UnaryCallable getEventEditR * @param parent Required. Example format: properties/123/dataStreams/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventEditRulesPagedResponse listEventEditRules(DataStreamName parent) { + public final ListEventEditRulesPagedResponse listEventEditRules(@Nullable DataStreamName parent) { ListEventEditRulesRequest request = ListEventEditRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -18356,7 +18374,7 @@ public final ListEventEditRulesPagedResponse listEventEditRules( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventEditRule createEventEditRule( - DataStreamName parent, EventEditRule eventEditRule) { + @Nullable DataStreamName parent, EventEditRule eventEditRule) { CreateEventEditRuleRequest request = CreateEventEditRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -18582,7 +18600,7 @@ public final EventEditRule updateEventEditRule(UpdateEventEditRuleRequest reques * @param name Required. Example format: properties/123/dataStreams/456/eventEditRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEventEditRule(EventEditRuleName name) { + public final void deleteEventEditRule(@Nullable EventEditRuleName name) { DeleteEventEditRuleRequest request = DeleteEventEditRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -18867,7 +18885,8 @@ public final DataRedactionSettings updateDataRedactionSettings( * "properties/1000/dataStreams/2000/dataRedactionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRedactionSettings getDataRedactionSettings(DataRedactionSettingsName name) { + public final DataRedactionSettings getDataRedactionSettings( + @Nullable DataRedactionSettingsName name) { GetDataRedactionSettingsRequest request = GetDataRedactionSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -18990,7 +19009,7 @@ public final DataRedactionSettings getDataRedactionSettings( * properties/1234/calculatedMetrics/Metric01 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CalculatedMetric getCalculatedMetric(CalculatedMetricName name) { + public final CalculatedMetric getCalculatedMetric(@Nullable CalculatedMetricName name) { GetCalculatedMetricRequest request = GetCalculatedMetricRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -19121,7 +19140,7 @@ public final CalculatedMetric getCalculatedMetric(GetCalculatedMetricRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CalculatedMetric createCalculatedMetric( - PropertyName parent, CalculatedMetric calculatedMetric, String calculatedMetricId) { + @Nullable PropertyName parent, CalculatedMetric calculatedMetric, String calculatedMetricId) { CreateCalculatedMetricRequest request = CreateCalculatedMetricRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -19263,7 +19282,8 @@ public final CalculatedMetric createCalculatedMetric(CreateCalculatedMetricReque * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCalculatedMetricsPagedResponse listCalculatedMetrics(PropertyName parent) { + public final ListCalculatedMetricsPagedResponse listCalculatedMetrics( + @Nullable PropertyName parent) { ListCalculatedMetricsRequest request = ListCalculatedMetricsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -19534,7 +19554,7 @@ public final CalculatedMetric updateCalculatedMetric(UpdateCalculatedMetricReque * properties/1234/calculatedMetrics/Metric01 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCalculatedMetric(CalculatedMetricName name) { + public final void deleteCalculatedMetric(@Nullable CalculatedMetricName name) { DeleteCalculatedMetricRequest request = DeleteCalculatedMetricRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -19722,7 +19742,7 @@ public final CreateRollupPropertyResponse createRollupProperty( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RollupPropertySourceLink getRollupPropertySourceLink( - RollupPropertySourceLinkName name) { + @Nullable RollupPropertySourceLinkName name) { GetRollupPropertySourceLinkRequest request = GetRollupPropertySourceLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -19858,7 +19878,7 @@ public final RollupPropertySourceLink getRollupPropertySourceLink( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRollupPropertySourceLinksPagedResponse listRollupPropertySourceLinks( - PropertyName parent) { + @Nullable PropertyName parent) { ListRollupPropertySourceLinksRequest request = ListRollupPropertySourceLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -20046,7 +20066,7 @@ public final ListRollupPropertySourceLinksPagedResponse listRollupPropertySource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RollupPropertySourceLink createRollupPropertySourceLink( - PropertyName parent, RollupPropertySourceLink rollupPropertySourceLink) { + @Nullable PropertyName parent, RollupPropertySourceLink rollupPropertySourceLink) { CreateRollupPropertySourceLinkRequest request = CreateRollupPropertySourceLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -20184,7 +20204,7 @@ public final RollupPropertySourceLink createRollupPropertySourceLink( * Example: properties/1234/rollupPropertySourceLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRollupPropertySourceLink(RollupPropertySourceLinkName name) { + public final void deleteRollupPropertySourceLink(@Nullable RollupPropertySourceLinkName name) { DeleteRollupPropertySourceLinkRequest request = DeleteRollupPropertySourceLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -20379,7 +20399,7 @@ public final ProvisionSubpropertyResponse provisionSubproperty( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SubpropertyEventFilter createSubpropertyEventFilter( - PropertyName parent, SubpropertyEventFilter subpropertyEventFilter) { + @Nullable PropertyName parent, SubpropertyEventFilter subpropertyEventFilter) { CreateSubpropertyEventFilterRequest request = CreateSubpropertyEventFilterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -20512,7 +20532,8 @@ public final SubpropertyEventFilter createSubpropertyEventFilter( * properties/123/subpropertyEventFilters/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubpropertyEventFilter getSubpropertyEventFilter(SubpropertyEventFilterName name) { + public final SubpropertyEventFilter getSubpropertyEventFilter( + @Nullable SubpropertyEventFilterName name) { GetSubpropertyEventFilterRequest request = GetSubpropertyEventFilterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -20643,7 +20664,7 @@ public final SubpropertyEventFilter getSubpropertyEventFilter( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubpropertyEventFiltersPagedResponse listSubpropertyEventFilters( - PropertyName parent) { + @Nullable PropertyName parent) { ListSubpropertyEventFiltersRequest request = ListSubpropertyEventFiltersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -20923,7 +20944,7 @@ public final SubpropertyEventFilter updateSubpropertyEventFilter( * properties/123/subpropertyEventFilters/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubpropertyEventFilter(SubpropertyEventFilterName name) { + public final void deleteSubpropertyEventFilter(@Nullable SubpropertyEventFilterName name) { DeleteSubpropertyEventFilterRequest request = DeleteSubpropertyEventFilterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -21054,7 +21075,7 @@ public final void deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReportingDataAnnotation createReportingDataAnnotation( - PropertyName parent, ReportingDataAnnotation reportingDataAnnotation) { + @Nullable PropertyName parent, ReportingDataAnnotation reportingDataAnnotation) { CreateReportingDataAnnotationRequest request = CreateReportingDataAnnotationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -21191,7 +21212,7 @@ public final ReportingDataAnnotation createReportingDataAnnotation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReportingDataAnnotation getReportingDataAnnotation( - ReportingDataAnnotationName name) { + @Nullable ReportingDataAnnotationName name) { GetReportingDataAnnotationRequest request = GetReportingDataAnnotationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -21323,7 +21344,7 @@ public final ReportingDataAnnotation getReportingDataAnnotation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListReportingDataAnnotationsPagedResponse listReportingDataAnnotations( - PropertyName parent) { + @Nullable PropertyName parent) { ListReportingDataAnnotationsRequest request = ListReportingDataAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -21608,7 +21629,7 @@ public final ReportingDataAnnotation updateReportingDataAnnotation( * properties/123/reportingDataAnnotations/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReportingDataAnnotation(ReportingDataAnnotationName name) { + public final void deleteReportingDataAnnotation(@Nullable ReportingDataAnnotationName name) { DeleteReportingDataAnnotationRequest request = DeleteReportingDataAnnotationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -21732,7 +21753,7 @@ public final void deleteReportingDataAnnotation(DeleteReportingDataAnnotationReq * @param name Required. The name of the property to submit user deletion for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubmitUserDeletionResponse submitUserDeletion(PropertyName name) { + public final SubmitUserDeletionResponse submitUserDeletion(@Nullable PropertyName name) { SubmitUserDeletionRequest request = SubmitUserDeletionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -21854,7 +21875,7 @@ public final SubmitUserDeletionResponse submitUserDeletion(SubmitUserDeletionReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubpropertySyncConfigsPagedResponse listSubpropertySyncConfigs( - PropertyName parent) { + @Nullable PropertyName parent) { ListSubpropertySyncConfigsRequest request = ListSubpropertySyncConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -22131,7 +22152,8 @@ public final SubpropertySyncConfig updateSubpropertySyncConfig( * properties/1234/subpropertySyncConfigs/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubpropertySyncConfig getSubpropertySyncConfig(SubpropertySyncConfigName name) { + public final SubpropertySyncConfig getSubpropertySyncConfig( + @Nullable SubpropertySyncConfigName name) { GetSubpropertySyncConfigRequest request = GetSubpropertySyncConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -22261,7 +22283,7 @@ public final SubpropertySyncConfig getSubpropertySyncConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReportingIdentitySettings getReportingIdentitySettings( - ReportingIdentitySettingsName name) { + @Nullable ReportingIdentitySettingsName name) { GetReportingIdentitySettingsRequest request = GetReportingIdentitySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -22490,7 +22512,7 @@ public final ReportingIdentitySettings updateReportingIdentitySettings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserProvidedDataSettings getUserProvidedDataSettings( - UserProvidedDataSettingsName name) { + @Nullable UserProvidedDataSettingsName name) { GetUserProvidedDataSettingsRequest request = GetUserProvidedDataSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -22647,8 +22669,8 @@ public static class ListAccountsPage extends AbstractPage { private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { super(context, response); } @@ -22658,14 +22680,14 @@ private static ListAccountsPage createEmptyPage() { @Override protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { return new ListAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -22679,7 +22701,8 @@ public static class ListAccountsFixedSizeCollection ListAccountsPage, ListAccountsFixedSizeCollection> { - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { + private ListAccountsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -22689,7 +22712,7 @@ private static ListAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountsFixedSizeCollection(pages, collectionSize); } } @@ -22727,9 +22750,10 @@ public static class ListAccountSummariesPage ListAccountSummariesPage> { private ListAccountSummariesPage( - PageContext + @Nullable + PageContext context, - ListAccountSummariesResponse response) { + @Nullable ListAccountSummariesResponse response) { super(context, response); } @@ -22739,15 +22763,17 @@ private static ListAccountSummariesPage createEmptyPage() { @Override protected ListAccountSummariesPage createPage( - PageContext + @Nullable + PageContext context, - ListAccountSummariesResponse response) { + @Nullable ListAccountSummariesResponse response) { return new ListAccountSummariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -22763,7 +22789,7 @@ public static class ListAccountSummariesFixedSizeCollection ListAccountSummariesFixedSizeCollection> { private ListAccountSummariesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -22773,7 +22799,7 @@ private static ListAccountSummariesFixedSizeCollection createEmptyCollection() { @Override protected ListAccountSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountSummariesFixedSizeCollection(pages, collectionSize); } } @@ -22807,8 +22833,8 @@ public static class ListPropertiesPage ListPropertiesRequest, ListPropertiesResponse, Property, ListPropertiesPage> { private ListPropertiesPage( - PageContext context, - ListPropertiesResponse response) { + @Nullable PageContext context, + @Nullable ListPropertiesResponse response) { super(context, response); } @@ -22818,14 +22844,14 @@ private static ListPropertiesPage createEmptyPage() { @Override protected ListPropertiesPage createPage( - PageContext context, - ListPropertiesResponse response) { + @Nullable PageContext context, + @Nullable ListPropertiesResponse response) { return new ListPropertiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -22839,7 +22865,8 @@ public static class ListPropertiesFixedSizeCollection ListPropertiesPage, ListPropertiesFixedSizeCollection> { - private ListPropertiesFixedSizeCollection(List pages, int collectionSize) { + private ListPropertiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -22849,7 +22876,7 @@ private static ListPropertiesFixedSizeCollection createEmptyCollection() { @Override protected ListPropertiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPropertiesFixedSizeCollection(pages, collectionSize); } } @@ -22886,8 +22913,9 @@ public static class ListFirebaseLinksPage ListFirebaseLinksPage> { private ListFirebaseLinksPage( - PageContext context, - ListFirebaseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListFirebaseLinksResponse response) { super(context, response); } @@ -22897,14 +22925,16 @@ private static ListFirebaseLinksPage createEmptyPage() { @Override protected ListFirebaseLinksPage createPage( - PageContext context, - ListFirebaseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListFirebaseLinksResponse response) { return new ListFirebaseLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -22919,7 +22949,7 @@ public static class ListFirebaseLinksFixedSizeCollection ListFirebaseLinksFixedSizeCollection> { private ListFirebaseLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -22929,7 +22959,7 @@ private static ListFirebaseLinksFixedSizeCollection createEmptyCollection() { @Override protected ListFirebaseLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFirebaseLinksFixedSizeCollection(pages, collectionSize); } } @@ -22966,8 +22996,9 @@ public static class ListGoogleAdsLinksPage ListGoogleAdsLinksPage> { private ListGoogleAdsLinksPage( - PageContext context, - ListGoogleAdsLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListGoogleAdsLinksResponse response) { super(context, response); } @@ -22977,14 +23008,16 @@ private static ListGoogleAdsLinksPage createEmptyPage() { @Override protected ListGoogleAdsLinksPage createPage( - PageContext context, - ListGoogleAdsLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListGoogleAdsLinksResponse response) { return new ListGoogleAdsLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -22999,7 +23032,7 @@ public static class ListGoogleAdsLinksFixedSizeCollection ListGoogleAdsLinksFixedSizeCollection> { private ListGoogleAdsLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23009,7 +23042,7 @@ private static ListGoogleAdsLinksFixedSizeCollection createEmptyCollection() { @Override protected ListGoogleAdsLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); } } @@ -23051,12 +23084,13 @@ public static class ListMeasurementProtocolSecretsPage ListMeasurementProtocolSecretsPage> { private ListMeasurementProtocolSecretsPage( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, - ListMeasurementProtocolSecretsResponse response) { + @Nullable ListMeasurementProtocolSecretsResponse response) { super(context, response); } @@ -23066,18 +23100,20 @@ private static ListMeasurementProtocolSecretsPage createEmptyPage() { @Override protected ListMeasurementProtocolSecretsPage createPage( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, - ListMeasurementProtocolSecretsResponse response) { + @Nullable ListMeasurementProtocolSecretsResponse response) { return new ListMeasurementProtocolSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> @@ -23096,7 +23132,7 @@ public static class ListMeasurementProtocolSecretsFixedSizeCollection ListMeasurementProtocolSecretsFixedSizeCollection> { private ListMeasurementProtocolSecretsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23106,7 +23142,7 @@ private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyColl @Override protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize); } } @@ -23149,12 +23185,13 @@ public static class ListSKAdNetworkConversionValueSchemasPage ListSKAdNetworkConversionValueSchemasPage> { private ListSKAdNetworkConversionValueSchemasPage( - PageContext< + @Nullable + PageContext< ListSKAdNetworkConversionValueSchemasRequest, ListSKAdNetworkConversionValueSchemasResponse, SKAdNetworkConversionValueSchema> context, - ListSKAdNetworkConversionValueSchemasResponse response) { + @Nullable ListSKAdNetworkConversionValueSchemasResponse response) { super(context, response); } @@ -23164,18 +23201,20 @@ private static ListSKAdNetworkConversionValueSchemasPage createEmptyPage() { @Override protected ListSKAdNetworkConversionValueSchemasPage createPage( - PageContext< + @Nullable + PageContext< ListSKAdNetworkConversionValueSchemasRequest, ListSKAdNetworkConversionValueSchemasResponse, SKAdNetworkConversionValueSchema> context, - ListSKAdNetworkConversionValueSchemasResponse response) { + @Nullable ListSKAdNetworkConversionValueSchemasResponse response) { return new ListSKAdNetworkConversionValueSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSKAdNetworkConversionValueSchemasRequest, ListSKAdNetworkConversionValueSchemasResponse, SKAdNetworkConversionValueSchema> @@ -23194,7 +23233,7 @@ public static class ListSKAdNetworkConversionValueSchemasFixedSizeCollection ListSKAdNetworkConversionValueSchemasFixedSizeCollection> { private ListSKAdNetworkConversionValueSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23205,7 +23244,7 @@ private ListSKAdNetworkConversionValueSchemasFixedSizeCollection( @Override protected ListSKAdNetworkConversionValueSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSKAdNetworkConversionValueSchemasFixedSizeCollection(pages, collectionSize); } } @@ -23246,12 +23285,13 @@ public static class SearchChangeHistoryEventsPage SearchChangeHistoryEventsPage> { private SearchChangeHistoryEventsPage( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, - SearchChangeHistoryEventsResponse response) { + @Nullable SearchChangeHistoryEventsResponse response) { super(context, response); } @@ -23261,18 +23301,20 @@ private static SearchChangeHistoryEventsPage createEmptyPage() { @Override protected SearchChangeHistoryEventsPage createPage( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, - SearchChangeHistoryEventsResponse response) { + @Nullable SearchChangeHistoryEventsResponse response) { return new SearchChangeHistoryEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> @@ -23291,7 +23333,7 @@ public static class SearchChangeHistoryEventsFixedSizeCollection SearchChangeHistoryEventsFixedSizeCollection> { private SearchChangeHistoryEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23301,7 +23343,7 @@ private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollectio @Override protected SearchChangeHistoryEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); } } @@ -23339,9 +23381,10 @@ public static class ListConversionEventsPage ListConversionEventsPage> { private ListConversionEventsPage( - PageContext + @Nullable + PageContext context, - ListConversionEventsResponse response) { + @Nullable ListConversionEventsResponse response) { super(context, response); } @@ -23351,15 +23394,17 @@ private static ListConversionEventsPage createEmptyPage() { @Override protected ListConversionEventsPage createPage( - PageContext + @Nullable + PageContext context, - ListConversionEventsResponse response) { + @Nullable ListConversionEventsResponse response) { return new ListConversionEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -23375,7 +23420,7 @@ public static class ListConversionEventsFixedSizeCollection ListConversionEventsFixedSizeCollection> { private ListConversionEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23385,7 +23430,7 @@ private static ListConversionEventsFixedSizeCollection createEmptyCollection() { @Override protected ListConversionEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversionEventsFixedSizeCollection(pages, collectionSize); } } @@ -23419,8 +23464,8 @@ public static class ListKeyEventsPage ListKeyEventsRequest, ListKeyEventsResponse, KeyEvent, ListKeyEventsPage> { private ListKeyEventsPage( - PageContext context, - ListKeyEventsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyEventsResponse response) { super(context, response); } @@ -23430,14 +23475,14 @@ private static ListKeyEventsPage createEmptyPage() { @Override protected ListKeyEventsPage createPage( - PageContext context, - ListKeyEventsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyEventsResponse response) { return new ListKeyEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -23451,7 +23496,8 @@ public static class ListKeyEventsFixedSizeCollection ListKeyEventsPage, ListKeyEventsFixedSizeCollection> { - private ListKeyEventsFixedSizeCollection(List pages, int collectionSize) { + private ListKeyEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23461,7 +23507,7 @@ private static ListKeyEventsFixedSizeCollection createEmptyCollection() { @Override protected ListKeyEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeyEventsFixedSizeCollection(pages, collectionSize); } } @@ -23504,12 +23550,13 @@ public static class ListDisplayVideo360AdvertiserLinksPage ListDisplayVideo360AdvertiserLinksPage> { private ListDisplayVideo360AdvertiserLinksPage( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, - ListDisplayVideo360AdvertiserLinksResponse response) { + @Nullable ListDisplayVideo360AdvertiserLinksResponse response) { super(context, response); } @@ -23519,18 +23566,20 @@ private static ListDisplayVideo360AdvertiserLinksPage createEmptyPage() { @Override protected ListDisplayVideo360AdvertiserLinksPage createPage( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, - ListDisplayVideo360AdvertiserLinksResponse response) { + @Nullable ListDisplayVideo360AdvertiserLinksResponse response) { return new ListDisplayVideo360AdvertiserLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> @@ -23549,7 +23598,7 @@ public static class ListDisplayVideo360AdvertiserLinksFixedSizeCollection ListDisplayVideo360AdvertiserLinksFixedSizeCollection> { private ListDisplayVideo360AdvertiserLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23559,7 +23608,7 @@ private static ListDisplayVideo360AdvertiserLinksFixedSizeCollection createEmpty @Override protected ListDisplayVideo360AdvertiserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(pages, collectionSize); } } @@ -23604,12 +23653,13 @@ public static class ListDisplayVideo360AdvertiserLinkProposalsPage ListDisplayVideo360AdvertiserLinkProposalsPage> { private ListDisplayVideo360AdvertiserLinkProposalsPage( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, - ListDisplayVideo360AdvertiserLinkProposalsResponse response) { + @Nullable ListDisplayVideo360AdvertiserLinkProposalsResponse response) { super(context, response); } @@ -23619,18 +23669,20 @@ private static ListDisplayVideo360AdvertiserLinkProposalsPage createEmptyPage() @Override protected ListDisplayVideo360AdvertiserLinkProposalsPage createPage( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, - ListDisplayVideo360AdvertiserLinkProposalsResponse response) { + @Nullable ListDisplayVideo360AdvertiserLinkProposalsResponse response) { return new ListDisplayVideo360AdvertiserLinkProposalsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> @@ -23649,7 +23701,7 @@ public static class ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollectio ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> { private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23660,7 +23712,7 @@ private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( @Override protected ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( pages, collectionSize); } @@ -23699,9 +23751,10 @@ public static class ListCustomDimensionsPage ListCustomDimensionsPage> { private ListCustomDimensionsPage( - PageContext + @Nullable + PageContext context, - ListCustomDimensionsResponse response) { + @Nullable ListCustomDimensionsResponse response) { super(context, response); } @@ -23711,15 +23764,17 @@ private static ListCustomDimensionsPage createEmptyPage() { @Override protected ListCustomDimensionsPage createPage( - PageContext + @Nullable + PageContext context, - ListCustomDimensionsResponse response) { + @Nullable ListCustomDimensionsResponse response) { return new ListCustomDimensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -23735,7 +23790,7 @@ public static class ListCustomDimensionsFixedSizeCollection ListCustomDimensionsFixedSizeCollection> { private ListCustomDimensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23745,7 +23800,7 @@ private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomDimensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize); } } @@ -23782,8 +23837,9 @@ public static class ListCustomMetricsPage ListCustomMetricsPage> { private ListCustomMetricsPage( - PageContext context, - ListCustomMetricsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomMetricsResponse response) { super(context, response); } @@ -23793,14 +23849,16 @@ private static ListCustomMetricsPage createEmptyPage() { @Override protected ListCustomMetricsPage createPage( - PageContext context, - ListCustomMetricsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomMetricsResponse response) { return new ListCustomMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -23815,7 +23873,7 @@ public static class ListCustomMetricsFixedSizeCollection ListCustomMetricsFixedSizeCollection> { private ListCustomMetricsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23825,7 +23883,7 @@ private static ListCustomMetricsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); } } @@ -23859,8 +23917,8 @@ public static class ListDataStreamsPage ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> { private ListDataStreamsPage( - PageContext context, - ListDataStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListDataStreamsResponse response) { super(context, response); } @@ -23870,14 +23928,14 @@ private static ListDataStreamsPage createEmptyPage() { @Override protected ListDataStreamsPage createPage( - PageContext context, - ListDataStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListDataStreamsResponse response) { return new ListDataStreamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -23892,7 +23950,7 @@ public static class ListDataStreamsFixedSizeCollection ListDataStreamsFixedSizeCollection> { private ListDataStreamsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23902,7 +23960,7 @@ private static ListDataStreamsFixedSizeCollection createEmptyCollection() { @Override protected ListDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataStreamsFixedSizeCollection(pages, collectionSize); } } @@ -23936,8 +23994,8 @@ public static class ListAudiencesPage ListAudiencesRequest, ListAudiencesResponse, Audience, ListAudiencesPage> { private ListAudiencesPage( - PageContext context, - ListAudiencesResponse response) { + @Nullable PageContext context, + @Nullable ListAudiencesResponse response) { super(context, response); } @@ -23947,14 +24005,14 @@ private static ListAudiencesPage createEmptyPage() { @Override protected ListAudiencesPage createPage( - PageContext context, - ListAudiencesResponse response) { + @Nullable PageContext context, + @Nullable ListAudiencesResponse response) { return new ListAudiencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -23968,7 +24026,8 @@ public static class ListAudiencesFixedSizeCollection ListAudiencesPage, ListAudiencesFixedSizeCollection> { - private ListAudiencesFixedSizeCollection(List pages, int collectionSize) { + private ListAudiencesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -23978,7 +24037,7 @@ private static ListAudiencesFixedSizeCollection createEmptyCollection() { @Override protected ListAudiencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAudiencesFixedSizeCollection(pages, collectionSize); } } @@ -24016,9 +24075,11 @@ public static class ListSearchAds360LinksPage ListSearchAds360LinksPage> { private ListSearchAds360LinksPage( - PageContext + @Nullable + PageContext< + ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, - ListSearchAds360LinksResponse response) { + @Nullable ListSearchAds360LinksResponse response) { super(context, response); } @@ -24028,15 +24089,19 @@ private static ListSearchAds360LinksPage createEmptyPage() { @Override protected ListSearchAds360LinksPage createPage( - PageContext + @Nullable + PageContext< + ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, - ListSearchAds360LinksResponse response) { + @Nullable ListSearchAds360LinksResponse response) { return new ListSearchAds360LinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -24052,7 +24117,7 @@ public static class ListSearchAds360LinksFixedSizeCollection ListSearchAds360LinksFixedSizeCollection> { private ListSearchAds360LinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24062,7 +24127,7 @@ private static ListSearchAds360LinksFixedSizeCollection createEmptyCollection() @Override protected ListSearchAds360LinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSearchAds360LinksFixedSizeCollection(pages, collectionSize); } } @@ -24099,8 +24164,9 @@ public static class ListAccessBindingsPage ListAccessBindingsPage> { private ListAccessBindingsPage( - PageContext context, - ListAccessBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessBindingsResponse response) { super(context, response); } @@ -24110,14 +24176,16 @@ private static ListAccessBindingsPage createEmptyPage() { @Override protected ListAccessBindingsPage createPage( - PageContext context, - ListAccessBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessBindingsResponse response) { return new ListAccessBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -24132,7 +24200,7 @@ public static class ListAccessBindingsFixedSizeCollection ListAccessBindingsFixedSizeCollection> { private ListAccessBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24142,7 +24210,7 @@ private static ListAccessBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListAccessBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessBindingsFixedSizeCollection(pages, collectionSize); } } @@ -24180,9 +24248,10 @@ public static class ListExpandedDataSetsPage ListExpandedDataSetsPage> { private ListExpandedDataSetsPage( - PageContext + @Nullable + PageContext context, - ListExpandedDataSetsResponse response) { + @Nullable ListExpandedDataSetsResponse response) { super(context, response); } @@ -24192,15 +24261,17 @@ private static ListExpandedDataSetsPage createEmptyPage() { @Override protected ListExpandedDataSetsPage createPage( - PageContext + @Nullable + PageContext context, - ListExpandedDataSetsResponse response) { + @Nullable ListExpandedDataSetsResponse response) { return new ListExpandedDataSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -24216,7 +24287,7 @@ public static class ListExpandedDataSetsFixedSizeCollection ListExpandedDataSetsFixedSizeCollection> { private ListExpandedDataSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24226,7 +24297,7 @@ private static ListExpandedDataSetsFixedSizeCollection createEmptyCollection() { @Override protected ListExpandedDataSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExpandedDataSetsFixedSizeCollection(pages, collectionSize); } } @@ -24263,8 +24334,9 @@ public static class ListChannelGroupsPage ListChannelGroupsPage> { private ListChannelGroupsPage( - PageContext context, - ListChannelGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListChannelGroupsResponse response) { super(context, response); } @@ -24274,14 +24346,16 @@ private static ListChannelGroupsPage createEmptyPage() { @Override protected ListChannelGroupsPage createPage( - PageContext context, - ListChannelGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListChannelGroupsResponse response) { return new ListChannelGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -24296,7 +24370,7 @@ public static class ListChannelGroupsFixedSizeCollection ListChannelGroupsFixedSizeCollection> { private ListChannelGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24306,7 +24380,7 @@ private static ListChannelGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListChannelGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelGroupsFixedSizeCollection(pages, collectionSize); } } @@ -24343,8 +24417,9 @@ public static class ListBigQueryLinksPage ListBigQueryLinksPage> { private ListBigQueryLinksPage( - PageContext context, - ListBigQueryLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListBigQueryLinksResponse response) { super(context, response); } @@ -24354,14 +24429,16 @@ private static ListBigQueryLinksPage createEmptyPage() { @Override protected ListBigQueryLinksPage createPage( - PageContext context, - ListBigQueryLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListBigQueryLinksResponse response) { return new ListBigQueryLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -24376,7 +24453,7 @@ public static class ListBigQueryLinksFixedSizeCollection ListBigQueryLinksFixedSizeCollection> { private ListBigQueryLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24386,7 +24463,7 @@ private static ListBigQueryLinksFixedSizeCollection createEmptyCollection() { @Override protected ListBigQueryLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBigQueryLinksFixedSizeCollection(pages, collectionSize); } } @@ -24420,8 +24497,9 @@ public static class ListAdSenseLinksPage ListAdSenseLinksRequest, ListAdSenseLinksResponse, AdSenseLink, ListAdSenseLinksPage> { private ListAdSenseLinksPage( - PageContext context, - ListAdSenseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListAdSenseLinksResponse response) { super(context, response); } @@ -24431,14 +24509,16 @@ private static ListAdSenseLinksPage createEmptyPage() { @Override protected ListAdSenseLinksPage createPage( - PageContext context, - ListAdSenseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListAdSenseLinksResponse response) { return new ListAdSenseLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -24453,7 +24533,7 @@ public static class ListAdSenseLinksFixedSizeCollection ListAdSenseLinksFixedSizeCollection> { private ListAdSenseLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24463,7 +24543,7 @@ private static ListAdSenseLinksFixedSizeCollection createEmptyCollection() { @Override protected ListAdSenseLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdSenseLinksFixedSizeCollection(pages, collectionSize); } } @@ -24501,9 +24581,10 @@ public static class ListEventCreateRulesPage ListEventCreateRulesPage> { private ListEventCreateRulesPage( - PageContext + @Nullable + PageContext context, - ListEventCreateRulesResponse response) { + @Nullable ListEventCreateRulesResponse response) { super(context, response); } @@ -24513,15 +24594,17 @@ private static ListEventCreateRulesPage createEmptyPage() { @Override protected ListEventCreateRulesPage createPage( - PageContext + @Nullable + PageContext context, - ListEventCreateRulesResponse response) { + @Nullable ListEventCreateRulesResponse response) { return new ListEventCreateRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -24537,7 +24620,7 @@ public static class ListEventCreateRulesFixedSizeCollection ListEventCreateRulesFixedSizeCollection> { private ListEventCreateRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24547,7 +24630,7 @@ private static ListEventCreateRulesFixedSizeCollection createEmptyCollection() { @Override protected ListEventCreateRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventCreateRulesFixedSizeCollection(pages, collectionSize); } } @@ -24584,8 +24667,9 @@ public static class ListEventEditRulesPage ListEventEditRulesPage> { private ListEventEditRulesPage( - PageContext context, - ListEventEditRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListEventEditRulesResponse response) { super(context, response); } @@ -24595,14 +24679,16 @@ private static ListEventEditRulesPage createEmptyPage() { @Override protected ListEventEditRulesPage createPage( - PageContext context, - ListEventEditRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListEventEditRulesResponse response) { return new ListEventEditRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -24617,7 +24703,7 @@ public static class ListEventEditRulesFixedSizeCollection ListEventEditRulesFixedSizeCollection> { private ListEventEditRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24627,7 +24713,7 @@ private static ListEventEditRulesFixedSizeCollection createEmptyCollection() { @Override protected ListEventEditRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventEditRulesFixedSizeCollection(pages, collectionSize); } } @@ -24665,9 +24751,11 @@ public static class ListCalculatedMetricsPage ListCalculatedMetricsPage> { private ListCalculatedMetricsPage( - PageContext + @Nullable + PageContext< + ListCalculatedMetricsRequest, ListCalculatedMetricsResponse, CalculatedMetric> context, - ListCalculatedMetricsResponse response) { + @Nullable ListCalculatedMetricsResponse response) { super(context, response); } @@ -24677,15 +24765,19 @@ private static ListCalculatedMetricsPage createEmptyPage() { @Override protected ListCalculatedMetricsPage createPage( - PageContext + @Nullable + PageContext< + ListCalculatedMetricsRequest, ListCalculatedMetricsResponse, CalculatedMetric> context, - ListCalculatedMetricsResponse response) { + @Nullable ListCalculatedMetricsResponse response) { return new ListCalculatedMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCalculatedMetricsRequest, ListCalculatedMetricsResponse, CalculatedMetric> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -24701,7 +24793,7 @@ public static class ListCalculatedMetricsFixedSizeCollection ListCalculatedMetricsFixedSizeCollection> { private ListCalculatedMetricsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24711,7 +24803,7 @@ private static ListCalculatedMetricsFixedSizeCollection createEmptyCollection() @Override protected ListCalculatedMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCalculatedMetricsFixedSizeCollection(pages, collectionSize); } } @@ -24753,12 +24845,13 @@ public static class ListRollupPropertySourceLinksPage ListRollupPropertySourceLinksPage> { private ListRollupPropertySourceLinksPage( - PageContext< + @Nullable + PageContext< ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse, RollupPropertySourceLink> context, - ListRollupPropertySourceLinksResponse response) { + @Nullable ListRollupPropertySourceLinksResponse response) { super(context, response); } @@ -24768,18 +24861,20 @@ private static ListRollupPropertySourceLinksPage createEmptyPage() { @Override protected ListRollupPropertySourceLinksPage createPage( - PageContext< + @Nullable + PageContext< ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse, RollupPropertySourceLink> context, - ListRollupPropertySourceLinksResponse response) { + @Nullable ListRollupPropertySourceLinksResponse response) { return new ListRollupPropertySourceLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse, RollupPropertySourceLink> @@ -24798,7 +24893,7 @@ public static class ListRollupPropertySourceLinksFixedSizeCollection ListRollupPropertySourceLinksFixedSizeCollection> { private ListRollupPropertySourceLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24808,7 +24903,7 @@ private static ListRollupPropertySourceLinksFixedSizeCollection createEmptyColle @Override protected ListRollupPropertySourceLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRollupPropertySourceLinksFixedSizeCollection(pages, collectionSize); } } @@ -24850,12 +24945,13 @@ public static class ListSubpropertyEventFiltersPage ListSubpropertyEventFiltersPage> { private ListSubpropertyEventFiltersPage( - PageContext< + @Nullable + PageContext< ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse, SubpropertyEventFilter> context, - ListSubpropertyEventFiltersResponse response) { + @Nullable ListSubpropertyEventFiltersResponse response) { super(context, response); } @@ -24865,18 +24961,20 @@ private static ListSubpropertyEventFiltersPage createEmptyPage() { @Override protected ListSubpropertyEventFiltersPage createPage( - PageContext< + @Nullable + PageContext< ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse, SubpropertyEventFilter> context, - ListSubpropertyEventFiltersResponse response) { + @Nullable ListSubpropertyEventFiltersResponse response) { return new ListSubpropertyEventFiltersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse, SubpropertyEventFilter> @@ -24895,7 +24993,7 @@ public static class ListSubpropertyEventFiltersFixedSizeCollection ListSubpropertyEventFiltersFixedSizeCollection> { private ListSubpropertyEventFiltersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -24905,7 +25003,7 @@ private static ListSubpropertyEventFiltersFixedSizeCollection createEmptyCollect @Override protected ListSubpropertyEventFiltersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubpropertyEventFiltersFixedSizeCollection(pages, collectionSize); } } @@ -24947,12 +25045,13 @@ public static class ListReportingDataAnnotationsPage ListReportingDataAnnotationsPage> { private ListReportingDataAnnotationsPage( - PageContext< + @Nullable + PageContext< ListReportingDataAnnotationsRequest, ListReportingDataAnnotationsResponse, ReportingDataAnnotation> context, - ListReportingDataAnnotationsResponse response) { + @Nullable ListReportingDataAnnotationsResponse response) { super(context, response); } @@ -24962,18 +25061,20 @@ private static ListReportingDataAnnotationsPage createEmptyPage() { @Override protected ListReportingDataAnnotationsPage createPage( - PageContext< + @Nullable + PageContext< ListReportingDataAnnotationsRequest, ListReportingDataAnnotationsResponse, ReportingDataAnnotation> context, - ListReportingDataAnnotationsResponse response) { + @Nullable ListReportingDataAnnotationsResponse response) { return new ListReportingDataAnnotationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListReportingDataAnnotationsRequest, ListReportingDataAnnotationsResponse, ReportingDataAnnotation> @@ -24992,7 +25093,7 @@ public static class ListReportingDataAnnotationsFixedSizeCollection ListReportingDataAnnotationsFixedSizeCollection> { private ListReportingDataAnnotationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -25002,7 +25103,7 @@ private static ListReportingDataAnnotationsFixedSizeCollection createEmptyCollec @Override protected ListReportingDataAnnotationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportingDataAnnotationsFixedSizeCollection(pages, collectionSize); } } @@ -25043,12 +25144,13 @@ public static class ListSubpropertySyncConfigsPage ListSubpropertySyncConfigsPage> { private ListSubpropertySyncConfigsPage( - PageContext< + @Nullable + PageContext< ListSubpropertySyncConfigsRequest, ListSubpropertySyncConfigsResponse, SubpropertySyncConfig> context, - ListSubpropertySyncConfigsResponse response) { + @Nullable ListSubpropertySyncConfigsResponse response) { super(context, response); } @@ -25058,18 +25160,20 @@ private static ListSubpropertySyncConfigsPage createEmptyPage() { @Override protected ListSubpropertySyncConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListSubpropertySyncConfigsRequest, ListSubpropertySyncConfigsResponse, SubpropertySyncConfig> context, - ListSubpropertySyncConfigsResponse response) { + @Nullable ListSubpropertySyncConfigsResponse response) { return new ListSubpropertySyncConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSubpropertySyncConfigsRequest, ListSubpropertySyncConfigsResponse, SubpropertySyncConfig> @@ -25088,7 +25192,7 @@ public static class ListSubpropertySyncConfigsFixedSizeCollection ListSubpropertySyncConfigsFixedSizeCollection> { private ListSubpropertySyncConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -25098,7 +25202,7 @@ private static ListSubpropertySyncConfigsFixedSizeCollection createEmptyCollecti @Override protected ListSubpropertySyncConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubpropertySyncConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index 7379c6626f67..e2dbe0296aa8 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1240,7 +1241,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); } @@ -1261,7 +1262,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 8f8c28b7aac3..c146174a661e 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -316,6 +316,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -3720,7 +3721,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); } @@ -4393,7 +4394,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java index 52bff61aafc6..29ec7cf140f3 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java @@ -35,6 +35,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. /** @@ -1136,7 +1137,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnalyticsAdminServiceClient implements BackgroundResource { - private final AnalyticsAdminServiceSettings settings; + private final @Nullable AnalyticsAdminServiceSettings settings; private final AnalyticsAdminServiceStub stub; /** Constructs an instance of AnalyticsAdminServiceClient with default settings. */ @@ -1176,7 +1177,7 @@ protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) { this.stub = stub; } - public final AnalyticsAdminServiceSettings getSettings() { + public final @Nullable AnalyticsAdminServiceSettings getSettings() { return settings; } @@ -1207,7 +1208,7 @@ public AnalyticsAdminServiceStub getStub() { * "accounts/100" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account getAccount(AccountName name) { + public final Account getAccount(@Nullable AccountName name) { GetAccountRequest request = GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccount(request); @@ -1446,7 +1447,7 @@ public final UnaryCallable listAccoun * Example: "accounts/100" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccount(AccountName name) { + public final void deleteAccount(@Nullable AccountName name) { DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAccount(request); @@ -1847,7 +1848,7 @@ public final ListAccountSummariesPagedResponse listAccountSummaries( * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Property getProperty(PropertyName name) { + public final Property getProperty(@Nullable PropertyName name) { GetPropertyRequest request = GetPropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProperty(request); @@ -2170,7 +2171,7 @@ public final UnaryCallable createPropertyCallab * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Property deleteProperty(PropertyName name) { + public final Property deleteProperty(@Nullable PropertyName name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProperty(request); @@ -2409,7 +2410,8 @@ public final UnaryCallable updatePropertyCallab * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { + public final FirebaseLink createFirebaseLink( + @Nullable PropertyName parent, FirebaseLink firebaseLink) { CreateFirebaseLinkRequest request = CreateFirebaseLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2541,7 +2543,7 @@ public final UnaryCallable createFireba *

Example: `properties/1234/firebaseLinks/5678` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFirebaseLink(FirebaseLinkName name) { + public final void deleteFirebaseLink(@Nullable FirebaseLinkName name) { DeleteFirebaseLinkRequest request = DeleteFirebaseLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2662,7 +2664,7 @@ public final UnaryCallable deleteFirebaseLinkC *

Example: `properties/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { + public final ListFirebaseLinksPagedResponse listFirebaseLinks(@Nullable PropertyName parent) { ListFirebaseLinksRequest request = ListFirebaseLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2836,7 +2838,8 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR * @param googleAdsLink Required. The GoogleAdsLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { + public final GoogleAdsLink createGoogleAdsLink( + @Nullable PropertyName parent, GoogleAdsLink googleAdsLink) { CreateGoogleAdsLinkRequest request = CreateGoogleAdsLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3060,7 +3063,7 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques * @param name Required. Example format: properties/1234/googleAdsLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { + public final void deleteGoogleAdsLink(@Nullable GoogleAdsLinkName name) { DeleteGoogleAdsLinkRequest request = DeleteGoogleAdsLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3179,7 +3182,7 @@ public final UnaryCallable deleteGoogleAdsLin * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { + public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(@Nullable PropertyName parent) { ListGoogleAdsLinksRequest request = ListGoogleAdsLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3352,7 +3355,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( *

Example: `accounts/1000/dataSharingSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { + public final DataSharingSettings getDataSharingSettings(@Nullable DataSharingSettingsName name) { GetDataSharingSettingsRequest request = GetDataSharingSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3476,7 +3479,7 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret getMeasurementProtocolSecret( - MeasurementProtocolSecretName name) { + @Nullable MeasurementProtocolSecretName name) { GetMeasurementProtocolSecretRequest request = GetMeasurementProtocolSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3611,7 +3614,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - DataStreamName parent) { + @Nullable DataStreamName parent) { ListMeasurementProtocolSecretsRequest request = ListMeasurementProtocolSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3795,7 +3798,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret createMeasurementProtocolSecret( - DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { + @Nullable DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { CreateMeasurementProtocolSecretRequest request = CreateMeasurementProtocolSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3930,7 +3933,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { + public final void deleteMeasurementProtocolSecret(@Nullable MeasurementProtocolSecretName name) { DeleteMeasurementProtocolSecretRequest request = DeleteMeasurementProtocolSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4375,7 +4378,7 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( */ @Deprecated public final ConversionEvent createConversionEvent( - PropertyName parent, ConversionEvent conversionEvent) { + @Nullable PropertyName parent, ConversionEvent conversionEvent) { CreateConversionEventRequest request = CreateConversionEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4626,7 +4629,7 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ConversionEvent getConversionEvent(ConversionEventName name) { + public final ConversionEvent getConversionEvent(@Nullable ConversionEventName name) { GetConversionEventRequest request = GetConversionEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4756,7 +4759,7 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteConversionEvent(ConversionEventName name) { + public final void deleteConversionEvent(@Nullable ConversionEventName name) { DeleteConversionEventRequest request = DeleteConversionEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4889,7 +4892,8 @@ public final UnaryCallable deleteConversion * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { + public final ListConversionEventsPagedResponse listConversionEvents( + @Nullable PropertyName parent) { ListConversionEventsRequest request = ListConversionEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5085,7 +5089,7 @@ public final ListConversionEventsPagedResponse listConversionEvents( * @param keyEvent Required. The Key Event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyEvent createKeyEvent(PropertyName parent, KeyEvent keyEvent) { + public final KeyEvent createKeyEvent(@Nullable PropertyName parent, KeyEvent keyEvent) { CreateKeyEventRequest request = CreateKeyEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5301,7 +5305,7 @@ public final UnaryCallable updateKeyEventCallab * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyEvent getKeyEvent(KeyEventName name) { + public final KeyEvent getKeyEvent(@Nullable KeyEventName name) { GetKeyEventRequest request = GetKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyEvent(request); @@ -5416,7 +5420,7 @@ public final UnaryCallable getKeyEventCallable() { * properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteKeyEvent(KeyEventName name) { + public final void deleteKeyEvent(@Nullable KeyEventName name) { DeleteKeyEventRequest request = DeleteKeyEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteKeyEvent(request); @@ -5533,7 +5537,7 @@ public final UnaryCallable deleteKeyEventCallable( * @param parent Required. The resource name of the parent property. Example: 'properties/123' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeyEventsPagedResponse listKeyEvents(PropertyName parent) { + public final ListKeyEventsPagedResponse listKeyEvents(@Nullable PropertyName parent) { ListKeyEventsRequest request = ListKeyEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5707,7 +5711,7 @@ public final UnaryCallable listKeyE * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { + @Nullable PropertyName parent, CustomDimension customDimension) { CreateCustomDimensionRequest request = CreateCustomDimensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5935,7 +5939,8 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { + public final ListCustomDimensionsPagedResponse listCustomDimensions( + @Nullable PropertyName parent) { ListCustomDimensionsRequest request = ListCustomDimensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6107,7 +6112,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * properties/1234/customDimensions/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomDimension(CustomDimensionName name) { + public final void archiveCustomDimension(@Nullable CustomDimensionName name) { ArchiveCustomDimensionRequest request = ArchiveCustomDimensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6226,7 +6231,7 @@ public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) * properties/1234/customDimensions/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension getCustomDimension(CustomDimensionName name) { + public final CustomDimension getCustomDimension(@Nullable CustomDimensionName name) { GetCustomDimensionRequest request = GetCustomDimensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6346,7 +6351,8 @@ public final CustomDimension getCustomDimension(GetCustomDimensionRequest reques * @param customMetric Required. The CustomMetric to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) { + public final CustomMetric createCustomMetric( + @Nullable PropertyName parent, CustomMetric customMetric) { CreateCustomMetricRequest request = CreateCustomMetricRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6569,7 +6575,7 @@ public final UnaryCallable updateCustom * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) { + public final ListCustomMetricsPagedResponse listCustomMetrics(@Nullable PropertyName parent) { ListCustomMetricsRequest request = ListCustomMetricsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6740,7 +6746,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR * properties/1234/customMetrics/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomMetric(CustomMetricName name) { + public final void archiveCustomMetric(@Nullable CustomMetricName name) { ArchiveCustomMetricRequest request = ArchiveCustomMetricRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6858,7 +6864,7 @@ public final UnaryCallable archiveCustomMetri * properties/1234/customMetrics/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric getCustomMetric(CustomMetricName name) { + public final CustomMetric getCustomMetric(@Nullable CustomMetricName name) { GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomMetric(request); @@ -6974,7 +6980,8 @@ public final UnaryCallable getCustomMetric * "properties/1000/dataRetentionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { + public final DataRetentionSettings getDataRetentionSettings( + @Nullable DataRetentionSettingsName name) { GetDataRetentionSettingsRequest request = GetDataRetentionSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7199,7 +7206,7 @@ public final DataRetentionSettings updateDataRetentionSettings( * @param dataStream Required. The DataStream to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { + public final DataStream createDataStream(@Nullable PropertyName parent, DataStream dataStream) { CreateDataStreamRequest request = CreateDataStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7321,7 +7328,7 @@ public final UnaryCallable createDataStream * properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataStream(DataStreamName name) { + public final void deleteDataStream(@Nullable DataStreamName name) { DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataStream(request); @@ -7532,7 +7539,7 @@ public final UnaryCallable updateDataStream * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { + public final ListDataStreamsPagedResponse listDataStreams(@Nullable PropertyName parent) { ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7700,7 +7707,7 @@ public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest * properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream getDataStream(DataStreamName name) { + public final DataStream getDataStream(@Nullable DataStreamName name) { GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataStream(request); @@ -7963,8 +7970,8 @@ public static class ListAccountsPage extends AbstractPage { private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { super(context, response); } @@ -7974,14 +7981,14 @@ private static ListAccountsPage createEmptyPage() { @Override protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { return new ListAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7995,7 +8002,8 @@ public static class ListAccountsFixedSizeCollection ListAccountsPage, ListAccountsFixedSizeCollection> { - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { + private ListAccountsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8005,7 +8013,7 @@ private static ListAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountsFixedSizeCollection(pages, collectionSize); } } @@ -8043,9 +8051,10 @@ public static class ListAccountSummariesPage ListAccountSummariesPage> { private ListAccountSummariesPage( - PageContext + @Nullable + PageContext context, - ListAccountSummariesResponse response) { + @Nullable ListAccountSummariesResponse response) { super(context, response); } @@ -8055,15 +8064,17 @@ private static ListAccountSummariesPage createEmptyPage() { @Override protected ListAccountSummariesPage createPage( - PageContext + @Nullable + PageContext context, - ListAccountSummariesResponse response) { + @Nullable ListAccountSummariesResponse response) { return new ListAccountSummariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8079,7 +8090,7 @@ public static class ListAccountSummariesFixedSizeCollection ListAccountSummariesFixedSizeCollection> { private ListAccountSummariesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8089,7 +8100,7 @@ private static ListAccountSummariesFixedSizeCollection createEmptyCollection() { @Override protected ListAccountSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountSummariesFixedSizeCollection(pages, collectionSize); } } @@ -8123,8 +8134,8 @@ public static class ListPropertiesPage ListPropertiesRequest, ListPropertiesResponse, Property, ListPropertiesPage> { private ListPropertiesPage( - PageContext context, - ListPropertiesResponse response) { + @Nullable PageContext context, + @Nullable ListPropertiesResponse response) { super(context, response); } @@ -8134,14 +8145,14 @@ private static ListPropertiesPage createEmptyPage() { @Override protected ListPropertiesPage createPage( - PageContext context, - ListPropertiesResponse response) { + @Nullable PageContext context, + @Nullable ListPropertiesResponse response) { return new ListPropertiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8155,7 +8166,8 @@ public static class ListPropertiesFixedSizeCollection ListPropertiesPage, ListPropertiesFixedSizeCollection> { - private ListPropertiesFixedSizeCollection(List pages, int collectionSize) { + private ListPropertiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8165,7 +8177,7 @@ private static ListPropertiesFixedSizeCollection createEmptyCollection() { @Override protected ListPropertiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPropertiesFixedSizeCollection(pages, collectionSize); } } @@ -8202,8 +8214,9 @@ public static class ListFirebaseLinksPage ListFirebaseLinksPage> { private ListFirebaseLinksPage( - PageContext context, - ListFirebaseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListFirebaseLinksResponse response) { super(context, response); } @@ -8213,14 +8226,16 @@ private static ListFirebaseLinksPage createEmptyPage() { @Override protected ListFirebaseLinksPage createPage( - PageContext context, - ListFirebaseLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListFirebaseLinksResponse response) { return new ListFirebaseLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8235,7 +8250,7 @@ public static class ListFirebaseLinksFixedSizeCollection ListFirebaseLinksFixedSizeCollection> { private ListFirebaseLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8245,7 +8260,7 @@ private static ListFirebaseLinksFixedSizeCollection createEmptyCollection() { @Override protected ListFirebaseLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFirebaseLinksFixedSizeCollection(pages, collectionSize); } } @@ -8282,8 +8297,9 @@ public static class ListGoogleAdsLinksPage ListGoogleAdsLinksPage> { private ListGoogleAdsLinksPage( - PageContext context, - ListGoogleAdsLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListGoogleAdsLinksResponse response) { super(context, response); } @@ -8293,14 +8309,16 @@ private static ListGoogleAdsLinksPage createEmptyPage() { @Override protected ListGoogleAdsLinksPage createPage( - PageContext context, - ListGoogleAdsLinksResponse response) { + @Nullable PageContext + context, + @Nullable ListGoogleAdsLinksResponse response) { return new ListGoogleAdsLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8315,7 +8333,7 @@ public static class ListGoogleAdsLinksFixedSizeCollection ListGoogleAdsLinksFixedSizeCollection> { private ListGoogleAdsLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8325,7 +8343,7 @@ private static ListGoogleAdsLinksFixedSizeCollection createEmptyCollection() { @Override protected ListGoogleAdsLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); } } @@ -8367,12 +8385,13 @@ public static class ListMeasurementProtocolSecretsPage ListMeasurementProtocolSecretsPage> { private ListMeasurementProtocolSecretsPage( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, - ListMeasurementProtocolSecretsResponse response) { + @Nullable ListMeasurementProtocolSecretsResponse response) { super(context, response); } @@ -8382,18 +8401,20 @@ private static ListMeasurementProtocolSecretsPage createEmptyPage() { @Override protected ListMeasurementProtocolSecretsPage createPage( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, - ListMeasurementProtocolSecretsResponse response) { + @Nullable ListMeasurementProtocolSecretsResponse response) { return new ListMeasurementProtocolSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> @@ -8412,7 +8433,7 @@ public static class ListMeasurementProtocolSecretsFixedSizeCollection ListMeasurementProtocolSecretsFixedSizeCollection> { private ListMeasurementProtocolSecretsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8422,7 +8443,7 @@ private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyColl @Override protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize); } } @@ -8463,12 +8484,13 @@ public static class SearchChangeHistoryEventsPage SearchChangeHistoryEventsPage> { private SearchChangeHistoryEventsPage( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, - SearchChangeHistoryEventsResponse response) { + @Nullable SearchChangeHistoryEventsResponse response) { super(context, response); } @@ -8478,18 +8500,20 @@ private static SearchChangeHistoryEventsPage createEmptyPage() { @Override protected SearchChangeHistoryEventsPage createPage( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, - SearchChangeHistoryEventsResponse response) { + @Nullable SearchChangeHistoryEventsResponse response) { return new SearchChangeHistoryEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> @@ -8508,7 +8532,7 @@ public static class SearchChangeHistoryEventsFixedSizeCollection SearchChangeHistoryEventsFixedSizeCollection> { private SearchChangeHistoryEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8518,7 +8542,7 @@ private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollectio @Override protected SearchChangeHistoryEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); } } @@ -8556,9 +8580,10 @@ public static class ListConversionEventsPage ListConversionEventsPage> { private ListConversionEventsPage( - PageContext + @Nullable + PageContext context, - ListConversionEventsResponse response) { + @Nullable ListConversionEventsResponse response) { super(context, response); } @@ -8568,15 +8593,17 @@ private static ListConversionEventsPage createEmptyPage() { @Override protected ListConversionEventsPage createPage( - PageContext + @Nullable + PageContext context, - ListConversionEventsResponse response) { + @Nullable ListConversionEventsResponse response) { return new ListConversionEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8592,7 +8619,7 @@ public static class ListConversionEventsFixedSizeCollection ListConversionEventsFixedSizeCollection> { private ListConversionEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8602,7 +8629,7 @@ private static ListConversionEventsFixedSizeCollection createEmptyCollection() { @Override protected ListConversionEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversionEventsFixedSizeCollection(pages, collectionSize); } } @@ -8636,8 +8663,8 @@ public static class ListKeyEventsPage ListKeyEventsRequest, ListKeyEventsResponse, KeyEvent, ListKeyEventsPage> { private ListKeyEventsPage( - PageContext context, - ListKeyEventsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyEventsResponse response) { super(context, response); } @@ -8647,14 +8674,14 @@ private static ListKeyEventsPage createEmptyPage() { @Override protected ListKeyEventsPage createPage( - PageContext context, - ListKeyEventsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyEventsResponse response) { return new ListKeyEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8668,7 +8695,8 @@ public static class ListKeyEventsFixedSizeCollection ListKeyEventsPage, ListKeyEventsFixedSizeCollection> { - private ListKeyEventsFixedSizeCollection(List pages, int collectionSize) { + private ListKeyEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8678,7 +8706,7 @@ private static ListKeyEventsFixedSizeCollection createEmptyCollection() { @Override protected ListKeyEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeyEventsFixedSizeCollection(pages, collectionSize); } } @@ -8716,9 +8744,10 @@ public static class ListCustomDimensionsPage ListCustomDimensionsPage> { private ListCustomDimensionsPage( - PageContext + @Nullable + PageContext context, - ListCustomDimensionsResponse response) { + @Nullable ListCustomDimensionsResponse response) { super(context, response); } @@ -8728,15 +8757,17 @@ private static ListCustomDimensionsPage createEmptyPage() { @Override protected ListCustomDimensionsPage createPage( - PageContext + @Nullable + PageContext context, - ListCustomDimensionsResponse response) { + @Nullable ListCustomDimensionsResponse response) { return new ListCustomDimensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8752,7 +8783,7 @@ public static class ListCustomDimensionsFixedSizeCollection ListCustomDimensionsFixedSizeCollection> { private ListCustomDimensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8762,7 +8793,7 @@ private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomDimensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize); } } @@ -8799,8 +8830,9 @@ public static class ListCustomMetricsPage ListCustomMetricsPage> { private ListCustomMetricsPage( - PageContext context, - ListCustomMetricsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomMetricsResponse response) { super(context, response); } @@ -8810,14 +8842,16 @@ private static ListCustomMetricsPage createEmptyPage() { @Override protected ListCustomMetricsPage createPage( - PageContext context, - ListCustomMetricsResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomMetricsResponse response) { return new ListCustomMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8832,7 +8866,7 @@ public static class ListCustomMetricsFixedSizeCollection ListCustomMetricsFixedSizeCollection> { private ListCustomMetricsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8842,7 +8876,7 @@ private static ListCustomMetricsFixedSizeCollection createEmptyCollection() { @Override protected ListCustomMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); } } @@ -8876,8 +8910,8 @@ public static class ListDataStreamsPage ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> { private ListDataStreamsPage( - PageContext context, - ListDataStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListDataStreamsResponse response) { super(context, response); } @@ -8887,14 +8921,14 @@ private static ListDataStreamsPage createEmptyPage() { @Override protected ListDataStreamsPage createPage( - PageContext context, - ListDataStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListDataStreamsResponse response) { return new ListDataStreamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8909,7 +8943,7 @@ public static class ListDataStreamsFixedSizeCollection ListDataStreamsFixedSizeCollection> { private ListDataStreamsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8919,7 +8953,7 @@ private static ListDataStreamsFixedSizeCollection createEmptyCollection() { @Override protected ListDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataStreamsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java index 0d47d49a02d3..e9c2bf5d4668 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -516,7 +517,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); } @@ -537,7 +538,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java index 110f359b7764..e4aee81d16fc 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java @@ -149,6 +149,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1498,7 +1499,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); } @@ -1747,7 +1748,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java index a2514b2e3256..eb6a4c3a6e59 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -125,7 +126,7 @@ public static String formatPropertyAccessBindingName(String property, String acc .toString(); } - public static AccessBindingName parse(String formattedString) { + public static @Nullable AccessBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -147,7 +148,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessBindingName> values) { List list = new ArrayList<>(values.size()); for (AccessBindingName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java index 13292e08ded2..3d5a9dc2723d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java index 7848b8a1df29..bc86ef23e526 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String adsenseLink) { return newBuilder().setProperty(property).setAdsenseLink(adsenseLink).build().toString(); } - public static AdSenseLinkName parse(String formattedString) { + public static @Nullable AdSenseLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AdSenseLinkName> values) { List list = new ArrayList<>(values.size()); for (AdSenseLinkName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java index 2708e9908da1..2abdfa569392 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static AttributionSettingsName parse(String formattedString) { + public static @Nullable AttributionSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttributionSettingsName> values) { List list = new ArrayList<>(values.size()); for (AttributionSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java index 6a6863239dfa..63920ea2162a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String audience) { return newBuilder().setProperty(property).setAudience(audience).build().toString(); } - public static AudienceName parse(String formattedString) { + public static @Nullable AudienceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AudienceName> values) { List list = new ArrayList<>(values.size()); for (AudienceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java index d54da675d204..a52ab4b67a7d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String bigqueryLink) { return newBuilder().setProperty(property).setBigqueryLink(bigqueryLink).build().toString(); } - public static BigQueryLinkName parse(String formattedString) { + public static @Nullable BigQueryLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BigQueryLinkName> values) { List list = new ArrayList<>(values.size()); for (BigQueryLinkName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricName.java index 729737066a99..4f6d62954534 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String calculatedMetric) { .toString(); } - public static CalculatedMetricName parse(String formattedString) { + public static @Nullable CalculatedMetricName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CalculatedMetricName> values) { List list = new ArrayList<>(values.size()); for (CalculatedMetricName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java index c96b74deb3f7..7afb4563e929 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String channelGroup) { return newBuilder().setProperty(property).setChannelGroup(channelGroup).build().toString(); } - public static ChannelGroupName parse(String formattedString) { + public static @Nullable ChannelGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChannelGroupName> values) { List list = new ArrayList<>(values.size()); for (ChannelGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java index d4da3558782f..2e611dfc5f08 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String conversionEvent) { .toString(); } - public static ConversionEventName parse(String formattedString) { + public static @Nullable ConversionEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversionEventName> values) { List list = new ArrayList<>(values.size()); for (ConversionEventName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java index 72fb843d95d1..c154609c0eb2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String customDimension) { .toString(); } - public static CustomDimensionName parse(String formattedString) { + public static @Nullable CustomDimensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomDimensionName> values) { List list = new ArrayList<>(values.size()); for (CustomDimensionName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java index 7057a2e2cef8..f2e6e4bd136d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String customMetric) { return newBuilder().setProperty(property).setCustomMetric(customMetric).build().toString(); } - public static CustomMetricName parse(String formattedString) { + public static @Nullable CustomMetricName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomMetricName> values) { List list = new ArrayList<>(values.size()); for (CustomMetricName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java index 3e5d6f3b1287..fc2b5a095db6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String dataStream) { return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static DataRedactionSettingsName parse(String formattedString) { + public static @Nullable DataRedactionSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataRedactionSettingsName> values) { List list = new ArrayList<>(values.size()); for (DataRedactionSettingsName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java index 5206f78fb9a0..0b10bc5851cc 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static DataRetentionSettingsName parse(String formattedString) { + public static @Nullable DataRetentionSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataRetentionSettingsName> values) { List list = new ArrayList<>(values.size()); for (DataRetentionSettingsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java index 20d8ffc5699e..9d49df89b62c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static DataSharingSettingsName parse(String formattedString) { + public static @Nullable DataSharingSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSharingSettingsName> values) { List list = new ArrayList<>(values.size()); for (DataSharingSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java index d76d0551b846..5c6f21622b89 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String dataStream) { return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static DataStreamName parse(String formattedString) { + public static @Nullable DataStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataStreamName> values) { List list = new ArrayList<>(values.size()); for (DataStreamName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java index c94807069f84..eeb23130bda8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -82,7 +83,7 @@ public static String format(String property, String displayVideo360AdvertiserLin .toString(); } - public static DisplayVideo360AdvertiserLinkName parse(String formattedString) { + public static @Nullable DisplayVideo360AdvertiserLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -101,7 +102,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable DisplayVideo360AdvertiserLinkName> values) { List list = new ArrayList<>(values.size()); for (DisplayVideo360AdvertiserLinkName value : values) { if (value == null) { @@ -147,7 +149,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java index 17f96052fa3c..01d7ecbde337 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -82,7 +83,7 @@ public static String format(String property, String displayVideo360AdvertiserLin .toString(); } - public static DisplayVideo360AdvertiserLinkProposalName parse(String formattedString) { + public static @Nullable DisplayVideo360AdvertiserLinkProposalName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -102,7 +103,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable DisplayVideo360AdvertiserLinkProposalName> values) { List list = new ArrayList<>(values.size()); for (DisplayVideo360AdvertiserLinkProposalName value : values) { if (value == null) { @@ -153,7 +155,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java index 4097488e97f8..95ce6aaa7b01 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String dataStream) { return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static EnhancedMeasurementSettingsName parse(String formattedString) { + public static @Nullable EnhancedMeasurementSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnhancedMeasurementSettingsName> values) { List list = new ArrayList<>(values.size()); for (EnhancedMeasurementSettingsName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java index 70623c9497d6..b9b0c0596595 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String property, String dataStream, String eventCrea .toString(); } - public static EventCreateRuleName parse(String formattedString) { + public static @Nullable EventCreateRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventCreateRuleName> values) { List list = new ArrayList<>(values.size()); for (EventCreateRuleName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventEditRuleName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventEditRuleName.java index 45bb580484ce..28f2db8212da 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventEditRuleName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventEditRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String property, String dataStream, String eventEdit .toString(); } - public static EventEditRuleName parse(String formattedString) { + public static @Nullable EventEditRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventEditRuleName> values) { List list = new ArrayList<>(values.size()); for (EventEditRuleName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java index d569ca437559..cf5ad5ec5648 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String expandedDataSet) { .toString(); } - public static ExpandedDataSetName parse(String formattedString) { + public static @Nullable ExpandedDataSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExpandedDataSetName> values) { List list = new ArrayList<>(values.size()); for (ExpandedDataSetName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java index 5b114863f4a9..22597fc6d0ed 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String firebaseLink) { return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build().toString(); } - public static FirebaseLinkName parse(String formattedString) { + public static @Nullable FirebaseLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FirebaseLinkName> values) { List list = new ArrayList<>(values.size()); for (FirebaseLinkName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java index a39ad7b75dbd..bb46c5edcbff 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String dataStream) { return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static GlobalSiteTagName parse(String formattedString) { + public static @Nullable GlobalSiteTagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlobalSiteTagName> values) { List list = new ArrayList<>(values.size()); for (GlobalSiteTagName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java index fd4dc25d4114..20b02103e85c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String googleAdsLink) { return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build().toString(); } - public static GoogleAdsLinkName parse(String formattedString) { + public static @Nullable GoogleAdsLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoogleAdsLinkName> values) { List list = new ArrayList<>(values.size()); for (GoogleAdsLinkName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java index 469bbee8a1f8..dc3f49d4e1a4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static GoogleSignalsSettingsName parse(String formattedString) { + public static @Nullable GoogleSignalsSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoogleSignalsSettingsName> values) { List list = new ArrayList<>(values.size()); for (GoogleSignalsSettingsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/KeyEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/KeyEventName.java index 13a2c4a555c7..2acd90e4cbd6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/KeyEventName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/KeyEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String keyEvent) { return newBuilder().setProperty(property).setKeyEvent(keyEvent).build().toString(); } - public static KeyEventName parse(String formattedString) { + public static @Nullable KeyEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyEventName> values) { List list = new ArrayList<>(values.size()); for (KeyEventName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java index 9df926da3301..bb867d288747 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format( .toString(); } - public static MeasurementProtocolSecretName parse(String formattedString) { + public static @Nullable MeasurementProtocolSecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MeasurementProtocolSecretName> values) { List list = new ArrayList<>(values.size()); for (MeasurementProtocolSecretName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java index a551ba3336e5..55a42f0c5320 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyName parse(String formattedString) { + public static @Nullable PropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyName> values) { List list = new ArrayList<>(values.size()); for (PropertyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingDataAnnotationName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingDataAnnotationName.java index bb8495050fbe..0821c1a68081 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingDataAnnotationName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingDataAnnotationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String property, String reportingDataAnnotation) { .toString(); } - public static ReportingDataAnnotationName parse(String formattedString) { + public static @Nullable ReportingDataAnnotationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportingDataAnnotationName> values) { List list = new ArrayList<>(values.size()); for (ReportingDataAnnotationName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingIdentitySettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingIdentitySettingsName.java index b5a05dc1d288..6a28d3fac9f0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingIdentitySettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ReportingIdentitySettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static ReportingIdentitySettingsName parse(String formattedString) { + public static @Nullable ReportingIdentitySettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportingIdentitySettingsName> values) { List list = new ArrayList<>(values.size()); for (ReportingIdentitySettingsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java index 899828511fc2..8393032f4c77 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String property, String rollupPropertySourceLink) { .toString(); } - public static RollupPropertySourceLinkName parse(String formattedString) { + public static @Nullable RollupPropertySourceLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RollupPropertySourceLinkName> values) { List list = new ArrayList<>(values.size()); for (RollupPropertySourceLinkName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java index bea232c800ce..2cb346b30cf1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static SKAdNetworkConversionValueSchemaName parse(String formattedString) { + public static @Nullable SKAdNetworkConversionValueSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SKAdNetworkConversionValueSchemaName> values) { List list = new ArrayList<>(values.size()); for (SKAdNetworkConversionValueSchemaName value : values) { if (value == null) { @@ -170,7 +172,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java index 53a091e03951..48ebc050b51f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String searchAds360Link) { .toString(); } - public static SearchAds360LinkName parse(String formattedString) { + public static @Nullable SearchAds360LinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SearchAds360LinkName> values) { List list = new ArrayList<>(values.size()); for (SearchAds360LinkName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java index 4800582d9294..fd724bd3f671 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String property, String subPropertyEventFilter) { .toString(); } - public static SubpropertyEventFilterName parse(String formattedString) { + public static @Nullable SubpropertyEventFilterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubpropertyEventFilterName> values) { List list = new ArrayList<>(values.size()); for (SubpropertyEventFilterName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertySyncConfigName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertySyncConfigName.java index 5545dfb81c68..93414e62c917 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertySyncConfigName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertySyncConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String property, String subpropertySyncConfig) { .toString(); } - public static SubpropertySyncConfigName parse(String formattedString) { + public static @Nullable SubpropertySyncConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubpropertySyncConfigName> values) { List list = new ArrayList<>(values.size()); for (SubpropertySyncConfigName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java index 195844c06cc7..1e990102c497 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static UserProvidedDataSettingsName parse(String formattedString) { + public static @Nullable UserProvidedDataSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserProvidedDataSettingsName> values) { List list = new ArrayList<>(values.size()); for (UserProvidedDataSettingsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java index 018d94a83544..15a4c2d90b22 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java index dea958ef42ed..5ebaa60a845a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String conversionEvent) { .toString(); } - public static ConversionEventName parse(String formattedString) { + public static @Nullable ConversionEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversionEventName> values) { List list = new ArrayList<>(values.size()); for (ConversionEventName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java index efc097223ad8..b37d89d75264 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String property, String customDimension) { .toString(); } - public static CustomDimensionName parse(String formattedString) { + public static @Nullable CustomDimensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomDimensionName> values) { List list = new ArrayList<>(values.size()); for (CustomDimensionName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java index 86a4c9f97993..fc717b1a4e20 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String customMetric) { return newBuilder().setProperty(property).setCustomMetric(customMetric).build().toString(); } - public static CustomMetricName parse(String formattedString) { + public static @Nullable CustomMetricName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomMetricName> values) { List list = new ArrayList<>(values.size()); for (CustomMetricName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java index 96c4b28ebe8b..95961df5a38a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static DataRetentionSettingsName parse(String formattedString) { + public static @Nullable DataRetentionSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataRetentionSettingsName> values) { List list = new ArrayList<>(values.size()); for (DataRetentionSettingsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java index dbcc0b5278f8..f05c32816d3d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static DataSharingSettingsName parse(String formattedString) { + public static @Nullable DataSharingSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSharingSettingsName> values) { List list = new ArrayList<>(values.size()); for (DataSharingSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java index 625982f92e0f..9600e3a58f0d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String dataStream) { return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static DataStreamName parse(String formattedString) { + public static @Nullable DataStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataStreamName> values) { List list = new ArrayList<>(values.size()); for (DataStreamName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java index be01aa5a4db2..621f4a2a261c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String firebaseLink) { return newBuilder().setProperty(property).setFirebaseLink(firebaseLink).build().toString(); } - public static FirebaseLinkName parse(String formattedString) { + public static @Nullable FirebaseLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FirebaseLinkName> values) { List list = new ArrayList<>(values.size()); for (FirebaseLinkName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java index 5584ea89eae4..5fcdc1fb7935 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String googleAdsLink) { return newBuilder().setProperty(property).setGoogleAdsLink(googleAdsLink).build().toString(); } - public static GoogleAdsLinkName parse(String formattedString) { + public static @Nullable GoogleAdsLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoogleAdsLinkName> values) { List list = new ArrayList<>(values.size()); for (GoogleAdsLinkName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java index 012009e6c25a..75f02e3c2ffa 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/KeyEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String keyEvent) { return newBuilder().setProperty(property).setKeyEvent(keyEvent).build().toString(); } - public static KeyEventName parse(String formattedString) { + public static @Nullable KeyEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyEventName> values) { List list = new ArrayList<>(values.size()); for (KeyEventName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java index 29fe07de5761..1d191a8a6b2e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format( .toString(); } - public static MeasurementProtocolSecretName parse(String formattedString) { + public static @Nullable MeasurementProtocolSecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MeasurementProtocolSecretName> values) { List list = new ArrayList<>(values.size()); for (MeasurementProtocolSecretName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java index 688475961c37..bf6583ce741d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyName parse(String formattedString) { + public static @Nullable PropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyName> values) { List list = new ArrayList<>(values.size()); for (PropertyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 8764b272c6a2..37eea0c0fe3a 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -37,6 +37,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. /** @@ -439,7 +440,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AlphaAnalyticsDataClient implements BackgroundResource { - private final AlphaAnalyticsDataSettings settings; + private final @Nullable AlphaAnalyticsDataSettings settings; private final AlphaAnalyticsDataStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -487,7 +488,7 @@ protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AlphaAnalyticsDataSettings getSettings() { + public final @Nullable AlphaAnalyticsDataSettings getSettings() { return settings; } @@ -656,7 +657,7 @@ public final RunFunnelReportResponse runFunnelReport(RunFunnelReportRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAudienceListAsync( - PropertyName parent, AudienceList audienceList) { + @Nullable PropertyName parent, AudienceList audienceList) { CreateAudienceListRequest request = CreateAudienceListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1041,7 +1042,7 @@ public final QueryAudienceListResponse queryAudienceList(QueryAudienceListReques * `properties/{property}/audienceLists/{audience_list}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AudienceList getAudienceList(AudienceListName name) { + public final AudienceList getAudienceList(@Nullable AudienceListName name) { GetAudienceListRequest request = GetAudienceListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAudienceList(request); @@ -1196,7 +1197,7 @@ public final UnaryCallable getAudienceList * Format: `properties/{property}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAudienceListsPagedResponse listAudienceLists(PropertyName parent) { + public final ListAudienceListsPagedResponse listAudienceLists(@Nullable PropertyName parent) { ListAudienceListsRequest request = ListAudienceListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1426,7 +1427,7 @@ public final ListAudienceListsPagedResponse listAudienceLists(ListAudienceListsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RecurringAudienceList createRecurringAudienceList( - PropertyName parent, RecurringAudienceList recurringAudienceList) { + @Nullable PropertyName parent, RecurringAudienceList recurringAudienceList) { CreateRecurringAudienceListRequest request = CreateRecurringAudienceListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1597,7 +1598,8 @@ public final RecurringAudienceList createRecurringAudienceList( * `properties/{property}/recurringAudienceLists/{recurring_audience_list}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RecurringAudienceList getRecurringAudienceList(RecurringAudienceListName name) { + public final RecurringAudienceList getRecurringAudienceList( + @Nullable RecurringAudienceListName name) { GetRecurringAudienceListRequest request = GetRecurringAudienceListRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1751,7 +1753,7 @@ public final RecurringAudienceList getRecurringAudienceList( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRecurringAudienceListsPagedResponse listRecurringAudienceLists( - PropertyName parent) { + @Nullable PropertyName parent) { ListRecurringAudienceListsRequest request = ListRecurringAudienceListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1953,7 +1955,8 @@ public final ListRecurringAudienceListsPagedResponse listRecurringAudienceLists( * `properties/{property}/propertyQuotasSnapshot` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PropertyQuotasSnapshot getPropertyQuotasSnapshot(PropertyQuotasSnapshotName name) { + public final PropertyQuotasSnapshot getPropertyQuotasSnapshot( + @Nullable PropertyQuotasSnapshotName name) { GetPropertyQuotasSnapshotRequest request = GetPropertyQuotasSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2084,7 +2087,7 @@ public final PropertyQuotasSnapshot getPropertyQuotasSnapshot( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReportTaskAsync( - PropertyName parent, ReportTask reportTask) { + @Nullable PropertyName parent, ReportTask reportTask) { CreateReportTaskRequest request = CreateReportTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2366,7 +2369,7 @@ public final QueryReportTaskResponse queryReportTask(QueryReportTaskRequest requ * `properties/{property}/reportTasks/{report_task}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportTask getReportTask(ReportTaskName name) { + public final ReportTask getReportTask(@Nullable ReportTaskName name) { GetReportTaskRequest request = GetReportTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReportTask(request); @@ -2482,7 +2485,7 @@ public final UnaryCallable getReportTaskCallab * Format: `properties/{property}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportTasksPagedResponse listReportTasks(PropertyName parent) { + public final ListReportTasksPagedResponse listReportTasks(@Nullable PropertyName parent) { ListReportTasksRequest request = ListReportTasksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2752,7 +2755,7 @@ public final UnaryCallable runReportCallabl * special mode, this method will not return custom dimensions and metrics. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Metadata getMetadata(MetadataName name) { + public final Metadata getMetadata(@Nullable MetadataName name) { GetMetadataRequest request = GetMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadata(request); @@ -2925,8 +2928,9 @@ public static class ListAudienceListsPage ListAudienceListsPage> { private ListAudienceListsPage( - PageContext context, - ListAudienceListsResponse response) { + @Nullable PageContext + context, + @Nullable ListAudienceListsResponse response) { super(context, response); } @@ -2936,14 +2940,16 @@ private static ListAudienceListsPage createEmptyPage() { @Override protected ListAudienceListsPage createPage( - PageContext context, - ListAudienceListsResponse response) { + @Nullable PageContext + context, + @Nullable ListAudienceListsResponse response) { return new ListAudienceListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2958,7 +2964,7 @@ public static class ListAudienceListsFixedSizeCollection ListAudienceListsFixedSizeCollection> { private ListAudienceListsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2968,7 +2974,7 @@ private static ListAudienceListsFixedSizeCollection createEmptyCollection() { @Override protected ListAudienceListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAudienceListsFixedSizeCollection(pages, collectionSize); } } @@ -3009,12 +3015,13 @@ public static class ListRecurringAudienceListsPage ListRecurringAudienceListsPage> { private ListRecurringAudienceListsPage( - PageContext< + @Nullable + PageContext< ListRecurringAudienceListsRequest, ListRecurringAudienceListsResponse, RecurringAudienceList> context, - ListRecurringAudienceListsResponse response) { + @Nullable ListRecurringAudienceListsResponse response) { super(context, response); } @@ -3024,18 +3031,20 @@ private static ListRecurringAudienceListsPage createEmptyPage() { @Override protected ListRecurringAudienceListsPage createPage( - PageContext< + @Nullable + PageContext< ListRecurringAudienceListsRequest, ListRecurringAudienceListsResponse, RecurringAudienceList> context, - ListRecurringAudienceListsResponse response) { + @Nullable ListRecurringAudienceListsResponse response) { return new ListRecurringAudienceListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRecurringAudienceListsRequest, ListRecurringAudienceListsResponse, RecurringAudienceList> @@ -3054,7 +3063,7 @@ public static class ListRecurringAudienceListsFixedSizeCollection ListRecurringAudienceListsFixedSizeCollection> { private ListRecurringAudienceListsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3064,7 +3073,7 @@ private static ListRecurringAudienceListsFixedSizeCollection createEmptyCollecti @Override protected ListRecurringAudienceListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecurringAudienceListsFixedSizeCollection(pages, collectionSize); } } @@ -3098,8 +3107,8 @@ public static class ListReportTasksPage ListReportTasksRequest, ListReportTasksResponse, ReportTask, ListReportTasksPage> { private ListReportTasksPage( - PageContext context, - ListReportTasksResponse response) { + @Nullable PageContext context, + @Nullable ListReportTasksResponse response) { super(context, response); } @@ -3109,14 +3118,14 @@ private static ListReportTasksPage createEmptyPage() { @Override protected ListReportTasksPage createPage( - PageContext context, - ListReportTasksResponse response) { + @Nullable PageContext context, + @Nullable ListReportTasksResponse response) { return new ListReportTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3131,7 +3140,7 @@ public static class ListReportTasksFixedSizeCollection ListReportTasksFixedSizeCollection> { private ListReportTasksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3141,7 +3150,7 @@ private static ListReportTasksFixedSizeCollection createEmptyCollection() { @Override protected ListReportTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportTasksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java index b0d0233b1bc2..820cf19b987b 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,7 +283,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); } @@ -302,7 +303,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlphaAnalyticsDataStubSettings.newBuilder(clientContext)); } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java index 1e710fb11c01..aeb6a63943c5 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java @@ -57,6 +57,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -69,11 +70,12 @@ @Generated("by gapic-generator-java") public abstract class AlphaAnalyticsDataStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index 506d06535014..956aa2f25341 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -602,7 +603,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); } @@ -734,7 +735,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runFunnelReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java index d8648ed90cff..6c220df52272 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java @@ -37,6 +37,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. /** @@ -343,7 +344,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BetaAnalyticsDataClient implements BackgroundResource { - private final BetaAnalyticsDataSettings settings; + private final @Nullable BetaAnalyticsDataSettings settings; private final BetaAnalyticsDataStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -391,7 +392,7 @@ protected BetaAnalyticsDataClient(BetaAnalyticsDataStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BetaAnalyticsDataSettings getSettings() { + public final @Nullable BetaAnalyticsDataSettings getSettings() { return settings; } @@ -756,7 +757,7 @@ public final BatchRunPivotReportsResponse batchRunPivotReports( * special mode, this method will not return custom dimensions and metrics. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Metadata getMetadata(MetadataName name) { + public final Metadata getMetadata(@Nullable MetadataName name) { GetMetadataRequest request = GetMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadata(request); @@ -1088,7 +1089,7 @@ public final CheckCompatibilityResponse checkCompatibility(CheckCompatibilityReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAudienceExportAsync( - PropertyName parent, AudienceExport audienceExport) { + @Nullable PropertyName parent, AudienceExport audienceExport) { CreateAudienceExportRequest request = CreateAudienceExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1476,7 +1477,7 @@ public final QueryAudienceExportResponse queryAudienceExport(QueryAudienceExport * `properties/{property}/audienceExports/{audience_export}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AudienceExport getAudienceExport(AudienceExportName name) { + public final AudienceExport getAudienceExport(@Nullable AudienceExportName name) { GetAudienceExportRequest request = GetAudienceExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1634,7 +1635,7 @@ public final UnaryCallable getAudience * Format: `properties/{property}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAudienceExportsPagedResponse listAudienceExports(PropertyName parent) { + public final ListAudienceExportsPagedResponse listAudienceExports(@Nullable PropertyName parent) { ListAudienceExportsRequest request = ListAudienceExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1891,9 +1892,10 @@ public static class ListAudienceExportsPage ListAudienceExportsPage> { private ListAudienceExportsPage( - PageContext + @Nullable + PageContext context, - ListAudienceExportsResponse response) { + @Nullable ListAudienceExportsResponse response) { super(context, response); } @@ -1903,15 +1905,17 @@ private static ListAudienceExportsPage createEmptyPage() { @Override protected ListAudienceExportsPage createPage( - PageContext + @Nullable + PageContext context, - ListAudienceExportsResponse response) { + @Nullable ListAudienceExportsResponse response) { return new ListAudienceExportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1927,7 +1931,7 @@ public static class ListAudienceExportsFixedSizeCollection ListAudienceExportsFixedSizeCollection> { private ListAudienceExportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1937,7 +1941,7 @@ private static ListAudienceExportsFixedSizeCollection createEmptyCollection() { @Override protected ListAudienceExportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAudienceExportsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java index 21331886052f..eed5ae2646cc 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,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); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BetaAnalyticsDataStubSettings.newBuilder(clientContext)); } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java index c2242c816e6d..5f95f6e8d915 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java @@ -48,6 +48,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -60,11 +61,12 @@ @Generated("by gapic-generator-java") public abstract class BetaAnalyticsDataStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java index a617459858b7..0363d06cb1e2 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -422,7 +423,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); } @@ -533,7 +534,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AudienceListName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AudienceListName.java index a7cb91628121..aa4f9ff37876 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AudienceListName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AudienceListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String audienceList) { return newBuilder().setProperty(property).setAudienceList(audienceList).build().toString(); } - public static AudienceListName parse(String formattedString) { + public static @Nullable AudienceListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AudienceListName> values) { List list = new ArrayList<>(values.size()); for (AudienceListName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java index 15803d49efff..df3ac3b78a97 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static MetadataName parse(String formattedString) { + public static @Nullable MetadataName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataName> values) { List list = new ArrayList<>(values.size()); for (MetadataName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyName.java index a397f94a0143..75455943add5 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyName parse(String formattedString) { + public static @Nullable PropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyName> values) { List list = new ArrayList<>(values.size()); for (PropertyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java index f3808f464642..a7eb09692207 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotasSnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyQuotasSnapshotName parse(String formattedString) { + public static @Nullable PropertyQuotasSnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyQuotasSnapshotName> values) { List list = new ArrayList<>(values.size()); for (PropertyQuotasSnapshotName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RecurringAudienceListName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RecurringAudienceListName.java index a36747cf54f9..51bda3d53048 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RecurringAudienceListName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RecurringAudienceListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String property, String recurringAudienceList) { .toString(); } - public static RecurringAudienceListName parse(String formattedString) { + public static @Nullable RecurringAudienceListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecurringAudienceListName> values) { List list = new ArrayList<>(values.size()); for (RecurringAudienceListName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskName.java b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskName.java index daae8b5621bb..85e2c53f2b74 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskName.java +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportTaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String property, String reportTask) { return newBuilder().setProperty(property).setReportTask(reportTask).build().toString(); } - public static ReportTaskName parse(String formattedString) { + public static @Nullable ReportTaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportTaskName> values) { List list = new ArrayList<>(values.size()); for (ReportTaskName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExportName.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExportName.java index e4ca94e13059..53f643f460c6 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExportName.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String property, String audienceExport) { return newBuilder().setProperty(property).setAudienceExport(audienceExport).build().toString(); } - public static AudienceExportName parse(String formattedString) { + public static @Nullable AudienceExportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AudienceExportName> values) { List list = new ArrayList<>(values.size()); for (AudienceExportName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java index 22b2918b2444..35f3f3402efc 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static MetadataName parse(String formattedString) { + public static @Nullable MetadataName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataName> values) { List list = new ArrayList<>(values.size()); for (MetadataName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyName.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyName.java index 0e7a58b38278..55bfd6739a27 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyName.java +++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyName parse(String formattedString) { + public static @Nullable PropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyName> values) { List list = new ArrayList<>(values.size()); for (PropertyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java index dc78fb38125f..25e1aa902df5 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java @@ -45,6 +45,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. /** @@ -683,7 +684,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AnalyticsHubServiceClient implements BackgroundResource { - private final AnalyticsHubServiceSettings settings; + private final @Nullable AnalyticsHubServiceSettings settings; private final AnalyticsHubServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -731,7 +732,7 @@ protected AnalyticsHubServiceClient(AnalyticsHubServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AnalyticsHubServiceSettings getSettings() { + public final @Nullable AnalyticsHubServiceSettings getSettings() { return settings; } @@ -781,7 +782,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/myproject/locations/us`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataExchangesPagedResponse listDataExchanges(LocationName parent) { + public final ListDataExchangesPagedResponse listDataExchanges(@Nullable LocationName parent) { ListDataExchangesRequest request = ListDataExchangesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1086,7 +1087,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataExchange getDataExchange(DataExchangeName name) { + public final DataExchange getDataExchange(@Nullable DataExchangeName name) { GetDataExchangeRequest request = GetDataExchangeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataExchange(request); @@ -1199,7 +1200,8 @@ public final UnaryCallable getDataExchange * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataExchange createDataExchange(LocationName parent, DataExchange dataExchange) { + public final DataExchange createDataExchange( + @Nullable LocationName parent, DataExchange dataExchange) { CreateDataExchangeRequest request = CreateDataExchangeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1416,7 +1418,7 @@ public final UnaryCallable updateDataEx * example, `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataExchange(DataExchangeName name) { + public final void deleteDataExchange(@Nullable DataExchangeName name) { DeleteDataExchangeRequest request = DeleteDataExchangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1532,7 +1534,7 @@ public final UnaryCallable deleteDataExchangeC * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListListingsPagedResponse listListings(DataExchangeName parent) { + public final ListListingsPagedResponse listListings(@Nullable DataExchangeName parent) { ListListingsRequest request = ListListingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1698,7 +1700,7 @@ public final UnaryCallable listListin * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Listing getListing(ListingName name) { + public final Listing getListing(@Nullable ListingName name) { GetListingRequest request = GetListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getListing(request); @@ -1816,7 +1818,7 @@ public final UnaryCallable getListingCallable() { * @param listing Required. The listing to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Listing createListing(DataExchangeName parent, Listing listing) { + public final Listing createListing(@Nullable DataExchangeName parent, Listing listing) { CreateListingRequest request = CreateListingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2028,7 +2030,7 @@ public final UnaryCallable updateListingCallable( * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteListing(ListingName name) { + public final void deleteListing(@Nullable ListingName name) { DeleteListingRequest request = DeleteListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteListing(request); @@ -2150,7 +2152,7 @@ public final UnaryCallable deleteListingCallable() * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubscribeListingResponse subscribeListing(ListingName name) { + public final SubscribeListingResponse subscribeListing(@Nullable ListingName name) { SubscribeListingRequest request = SubscribeListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return subscribeListing(request); @@ -2283,7 +2285,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - subscribeDataExchangeAsync(DataExchangeName name) { + subscribeDataExchangeAsync(@Nullable DataExchangeName name) { SubscribeDataExchangeRequest request = SubscribeDataExchangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2455,7 +2457,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - refreshSubscriptionAsync(SubscriptionName name) { + refreshSubscriptionAsync(@Nullable SubscriptionName name) { RefreshSubscriptionRequest request = RefreshSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2607,7 +2609,7 @@ public final UnaryCallable refreshSubscri * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(SubscriptionName name) { + public final Subscription getSubscription(@Nullable SubscriptionName name) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSubscription(request); @@ -2721,7 +2723,7 @@ public final UnaryCallable getSubscription * projects/myproject/locations/us * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscriptionsPagedResponse listSubscriptions(LocationName parent) { + public final ListSubscriptionsPagedResponse listSubscriptions(@Nullable LocationName parent) { ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2896,7 +2898,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubscriptions( - ResourceName resource) { + @Nullable ResourceName resource) { ListSharedResourceSubscriptionsRequest request = ListSharedResourceSubscriptionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3077,7 +3079,7 @@ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubs * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RevokeSubscriptionResponse revokeSubscription(SubscriptionName name) { + public final RevokeSubscriptionResponse revokeSubscription(@Nullable SubscriptionName name) { RevokeSubscriptionRequest request = RevokeSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3195,7 +3197,7 @@ public final RevokeSubscriptionResponse revokeSubscription(RevokeSubscriptionReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriptionAsync( - SubscriptionName name) { + @Nullable SubscriptionName name) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3529,7 +3531,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QueryTemplate createQueryTemplate( - DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId) { + @Nullable DataExchangeName parent, QueryTemplate queryTemplate, String queryTemplateId) { CreateQueryTemplateRequest request = CreateQueryTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3664,7 +3666,7 @@ public final QueryTemplate createQueryTemplate(CreateQueryTemplateRequest reques * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryTemplate getQueryTemplate(QueryTemplateName name) { + public final QueryTemplate getQueryTemplate(@Nullable QueryTemplateName name) { GetQueryTemplateRequest request = GetQueryTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQueryTemplate(request); @@ -3786,7 +3788,8 @@ public final UnaryCallable getQueryTempl * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueryTemplatesPagedResponse listQueryTemplates(DataExchangeName parent) { + public final ListQueryTemplatesPagedResponse listQueryTemplates( + @Nullable DataExchangeName parent) { ListQueryTemplatesRequest request = ListQueryTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4053,7 +4056,7 @@ public final QueryTemplate updateQueryTemplate(UpdateQueryTemplateRequest reques * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQueryTemplate(QueryTemplateName name) { + public final void deleteQueryTemplate(@Nullable QueryTemplateName name) { DeleteQueryTemplateRequest request = DeleteQueryTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4176,7 +4179,7 @@ public final UnaryCallable deleteQueryTemplat * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryTemplate submitQueryTemplate(QueryTemplateName name) { + public final QueryTemplate submitQueryTemplate(@Nullable QueryTemplateName name) { SubmitQueryTemplateRequest request = SubmitQueryTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4300,7 +4303,7 @@ public final QueryTemplate submitQueryTemplate(SubmitQueryTemplateRequest reques * `projects/myproject/locations/us/dataExchanges/123/queryTemplates/myqueryTemplate`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryTemplate approveQueryTemplate(QueryTemplateName name) { + public final QueryTemplate approveQueryTemplate(@Nullable QueryTemplateName name) { ApproveQueryTemplateRequest request = ApproveQueryTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4463,8 +4466,9 @@ public static class ListDataExchangesPage ListDataExchangesPage> { private ListDataExchangesPage( - PageContext context, - ListDataExchangesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataExchangesResponse response) { super(context, response); } @@ -4474,14 +4478,16 @@ private static ListDataExchangesPage createEmptyPage() { @Override protected ListDataExchangesPage createPage( - PageContext context, - ListDataExchangesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataExchangesResponse response) { return new ListDataExchangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4496,7 +4502,7 @@ public static class ListDataExchangesFixedSizeCollection ListDataExchangesFixedSizeCollection> { private ListDataExchangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4506,7 +4512,7 @@ private static ListDataExchangesFixedSizeCollection createEmptyCollection() { @Override protected ListDataExchangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataExchangesFixedSizeCollection(pages, collectionSize); } } @@ -4544,9 +4550,10 @@ public static class ListOrgDataExchangesPage ListOrgDataExchangesPage> { private ListOrgDataExchangesPage( - PageContext + @Nullable + PageContext context, - ListOrgDataExchangesResponse response) { + @Nullable ListOrgDataExchangesResponse response) { super(context, response); } @@ -4556,15 +4563,17 @@ private static ListOrgDataExchangesPage createEmptyPage() { @Override protected ListOrgDataExchangesPage createPage( - PageContext + @Nullable + PageContext context, - ListOrgDataExchangesResponse response) { + @Nullable ListOrgDataExchangesResponse response) { return new ListOrgDataExchangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4580,7 +4589,7 @@ public static class ListOrgDataExchangesFixedSizeCollection ListOrgDataExchangesFixedSizeCollection> { private ListOrgDataExchangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4590,7 +4599,7 @@ private static ListOrgDataExchangesFixedSizeCollection createEmptyCollection() { @Override protected ListOrgDataExchangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrgDataExchangesFixedSizeCollection(pages, collectionSize); } } @@ -4623,8 +4632,8 @@ public static class ListListingsPage extends AbstractPage { private ListListingsPage( - PageContext context, - ListListingsResponse response) { + @Nullable PageContext context, + @Nullable ListListingsResponse response) { super(context, response); } @@ -4634,14 +4643,14 @@ private static ListListingsPage createEmptyPage() { @Override protected ListListingsPage createPage( - PageContext context, - ListListingsResponse response) { + @Nullable PageContext context, + @Nullable ListListingsResponse response) { return new ListListingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4655,7 +4664,8 @@ public static class ListListingsFixedSizeCollection ListListingsPage, ListListingsFixedSizeCollection> { - private ListListingsFixedSizeCollection(List pages, int collectionSize) { + private ListListingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4665,7 +4675,7 @@ private static ListListingsFixedSizeCollection createEmptyCollection() { @Override protected ListListingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListListingsFixedSizeCollection(pages, collectionSize); } } @@ -4702,8 +4712,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -4713,14 +4724,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4735,7 +4748,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4745,7 +4758,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -4787,12 +4800,13 @@ public static class ListSharedResourceSubscriptionsPage ListSharedResourceSubscriptionsPage> { private ListSharedResourceSubscriptionsPage( - PageContext< + @Nullable + PageContext< ListSharedResourceSubscriptionsRequest, ListSharedResourceSubscriptionsResponse, Subscription> context, - ListSharedResourceSubscriptionsResponse response) { + @Nullable ListSharedResourceSubscriptionsResponse response) { super(context, response); } @@ -4802,18 +4816,20 @@ private static ListSharedResourceSubscriptionsPage createEmptyPage() { @Override protected ListSharedResourceSubscriptionsPage createPage( - PageContext< + @Nullable + PageContext< ListSharedResourceSubscriptionsRequest, ListSharedResourceSubscriptionsResponse, Subscription> context, - ListSharedResourceSubscriptionsResponse response) { + @Nullable ListSharedResourceSubscriptionsResponse response) { return new ListSharedResourceSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSharedResourceSubscriptionsRequest, ListSharedResourceSubscriptionsResponse, Subscription> @@ -4832,7 +4848,7 @@ public static class ListSharedResourceSubscriptionsFixedSizeCollection ListSharedResourceSubscriptionsFixedSizeCollection> { private ListSharedResourceSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4842,7 +4858,7 @@ private static ListSharedResourceSubscriptionsFixedSizeCollection createEmptyCol @Override protected ListSharedResourceSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSharedResourceSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -4879,8 +4895,9 @@ public static class ListQueryTemplatesPage ListQueryTemplatesPage> { private ListQueryTemplatesPage( - PageContext context, - ListQueryTemplatesResponse response) { + @Nullable PageContext + context, + @Nullable ListQueryTemplatesResponse response) { super(context, response); } @@ -4890,14 +4907,16 @@ private static ListQueryTemplatesPage createEmptyPage() { @Override protected ListQueryTemplatesPage createPage( - PageContext context, - ListQueryTemplatesResponse response) { + @Nullable PageContext + context, + @Nullable ListQueryTemplatesResponse response) { return new ListQueryTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4912,7 +4931,7 @@ public static class ListQueryTemplatesFixedSizeCollection ListQueryTemplatesFixedSizeCollection> { private ListQueryTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4922,7 +4941,7 @@ private static ListQueryTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListQueryTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueryTemplatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java index 63519f20a972..41a8889dea7f 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -378,7 +379,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); } @@ -398,7 +399,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsHubServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java index db80cabee5b6..140e4566463b 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStub.java @@ -77,6 +77,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,11 +89,12 @@ @Generated("by gapic-generator-java") public abstract class AnalyticsHubServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java index dde38652f633..52664f69bb69 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/AnalyticsHubServiceStubSettings.java @@ -111,6 +111,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -921,7 +922,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); } @@ -1091,7 +1092,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDataExchangesSettings = PagedCallSettings.newBuilder(LIST_DATA_EXCHANGES_PAGE_STR_FACT); diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeName.java index 720510a73ef8..49bae947d849 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeName.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataExchange .toString(); } - public static DataExchangeName parse(String formattedString) { + public static @Nullable DataExchangeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataExchangeName> values) { List list = new ArrayList<>(values.size()); for (DataExchangeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingName.java index 16e8b9dd39f0..fff5419c572a 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingName.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ListingName parse(String formattedString) { + public static @Nullable ListingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ListingName> values) { List list = new ArrayList<>(values.size()); for (ListingName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/LocationName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/LocationName.java index 70e40200ccba..98ee01ce11af 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/LocationName.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java index 229b61662d4f..1ce5767094c8 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/QueryTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static QueryTemplateName parse(String formattedString) { + public static @Nullable QueryTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueryTemplateName> values) { List list = new ArrayList<>(values.size()); for (QueryTemplateName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionName.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionName.java index 16fb78c4907c..aa2df83645ad 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionName.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String subscription .toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java index 6db20de6731e..a0c644ba130d 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java @@ -39,6 +39,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. /** @@ -425,7 +426,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiGatewayServiceClient implements BackgroundResource { - private final ApiGatewayServiceSettings settings; + private final @Nullable ApiGatewayServiceSettings settings; private final ApiGatewayServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -473,7 +474,7 @@ protected ApiGatewayServiceClient(ApiGatewayServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ApiGatewayServiceSettings getSettings() { + public final @Nullable ApiGatewayServiceSettings getSettings() { return settings; } @@ -522,7 +523,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGatewaysPagedResponse listGateways(LocationName parent) { + public final ListGatewaysPagedResponse listGateways(@Nullable LocationName parent) { ListGatewaysRequest request = ListGatewaysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -691,7 +692,7 @@ public final UnaryCallable listGatewa * `projects/*/locations/*/gateways/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Gateway getGateway(GatewayName name) { + public final Gateway getGateway(@Nullable GatewayName name) { GetGatewayRequest request = GetGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGateway(request); @@ -808,7 +809,7 @@ public final UnaryCallable getGatewayCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGatewayAsync( - LocationName parent, Gateway gateway, String gatewayId) { + @Nullable LocationName parent, Gateway gateway, String gatewayId) { CreateGatewayRequest request = CreateGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1093,7 +1094,8 @@ public final UnaryCallable updateGatewayCallabl * `projects/*/locations/*/gateways/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGatewayAsync(GatewayName name) { + public final OperationFuture deleteGatewayAsync( + @Nullable GatewayName name) { DeleteGatewayRequest request = DeleteGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGatewayAsync(request); @@ -1236,7 +1238,7 @@ public final UnaryCallable deleteGatewayCallabl * `projects/*/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApisPagedResponse listApis(LocationName parent) { + public final ListApisPagedResponse listApis(@Nullable LocationName parent) { ListApisRequest request = ListApisRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listApis(request); @@ -1399,7 +1401,7 @@ public final UnaryCallable listApisCallable() * @param name Required. Resource name of the form: `projects/*/locations/global/apis/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Api getApi(ApiName name) { + public final Api getApi(@Nullable ApiName name) { GetApiRequest request = GetApiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApi(request); @@ -1510,7 +1512,7 @@ public final UnaryCallable getApiCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createApiAsync( - LocationName parent, Api api, String apiId) { + @Nullable LocationName parent, Api api, String apiId) { CreateApiRequest request = CreateApiRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1785,7 +1787,7 @@ public final UnaryCallable updateApiCallable() { * @param name Required. Resource name of the form: `projects/*/locations/global/apis/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteApiAsync(ApiName name) { + public final OperationFuture deleteApiAsync(@Nullable ApiName name) { DeleteApiRequest request = DeleteApiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteApiAsync(request); @@ -1925,7 +1927,7 @@ public final UnaryCallable deleteApiCallable() { * `projects/*/locations/global/apis/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApiConfigsPagedResponse listApiConfigs(ApiName parent) { + public final ListApiConfigsPagedResponse listApiConfigs(@Nullable ApiName parent) { ListApiConfigsRequest request = ListApiConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2095,7 +2097,7 @@ public final ListApiConfigsPagedResponse listApiConfigs(ListApiConfigsRequest re * `projects/*/locations/global/apis/*/configs/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ApiConfig getApiConfig(ApiConfigName name) { + public final ApiConfig getApiConfig(@Nullable ApiConfigName name) { GetApiConfigRequest request = GetApiConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApiConfig(request); @@ -2213,7 +2215,7 @@ public final UnaryCallable getApiConfigCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createApiConfigAsync( - ApiName parent, ApiConfig apiConfig, String apiConfigId) { + @Nullable ApiName parent, ApiConfig apiConfig, String apiConfigId) { CreateApiConfigRequest request = CreateApiConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2502,7 +2504,8 @@ public final UnaryCallable updateApiConfigCal * `projects/*/locations/global/apis/*/configs/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteApiConfigAsync(ApiConfigName name) { + public final OperationFuture deleteApiConfigAsync( + @Nullable ApiConfigName name) { DeleteApiConfigRequest request = DeleteApiConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteApiConfigAsync(request); @@ -2679,8 +2682,8 @@ public static class ListGatewaysPage extends AbstractPage { private ListGatewaysPage( - PageContext context, - ListGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListGatewaysResponse response) { super(context, response); } @@ -2690,14 +2693,14 @@ private static ListGatewaysPage createEmptyPage() { @Override protected ListGatewaysPage createPage( - PageContext context, - ListGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListGatewaysResponse response) { return new ListGatewaysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2711,7 +2714,8 @@ public static class ListGatewaysFixedSizeCollection ListGatewaysPage, ListGatewaysFixedSizeCollection> { - private ListGatewaysFixedSizeCollection(List pages, int collectionSize) { + private ListGatewaysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2721,7 +2725,7 @@ private static ListGatewaysFixedSizeCollection createEmptyCollection() { @Override protected ListGatewaysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewaysFixedSizeCollection(pages, collectionSize); } } @@ -2748,7 +2752,8 @@ public static class ListApisPage extends AbstractPage { private ListApisPage( - PageContext context, ListApisResponse response) { + @Nullable PageContext context, + @Nullable ListApisResponse response) { super(context, response); } @@ -2758,13 +2763,14 @@ private static ListApisPage createEmptyPage() { @Override protected ListApisPage createPage( - PageContext context, ListApisResponse response) { + @Nullable PageContext context, + @Nullable ListApisResponse response) { return new ListApisPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2774,7 +2780,7 @@ public static class ListApisFixedSizeCollection extends AbstractFixedSizeCollection< ListApisRequest, ListApisResponse, Api, ListApisPage, ListApisFixedSizeCollection> { - private ListApisFixedSizeCollection(List pages, int collectionSize) { + private ListApisFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2784,7 +2790,7 @@ private static ListApisFixedSizeCollection createEmptyCollection() { @Override protected ListApisFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApisFixedSizeCollection(pages, collectionSize); } } @@ -2818,8 +2824,8 @@ public static class ListApiConfigsPage ListApiConfigsRequest, ListApiConfigsResponse, ApiConfig, ListApiConfigsPage> { private ListApiConfigsPage( - PageContext context, - ListApiConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListApiConfigsResponse response) { super(context, response); } @@ -2829,14 +2835,14 @@ private static ListApiConfigsPage createEmptyPage() { @Override protected ListApiConfigsPage createPage( - PageContext context, - ListApiConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListApiConfigsResponse response) { return new ListApiConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2850,7 +2856,8 @@ public static class ListApiConfigsFixedSizeCollection ListApiConfigsPage, ListApiConfigsFixedSizeCollection> { - private ListApiConfigsFixedSizeCollection(List pages, int collectionSize) { + private ListApiConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2860,7 +2867,7 @@ private static ListApiConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListApiConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApiConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java index 342411a12ade..476fe83f204c 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -310,7 +311,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); } @@ -330,7 +331,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiGatewayServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java index 90a69ec2d8e9..63e2aebc12c6 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class ApiGatewayServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java index 249512611975..5b27165dfbaa 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -594,7 +595,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); } @@ -728,7 +729,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGatewaysSettings = PagedCallSettings.newBuilder(LIST_GATEWAYS_PAGE_STR_FACT); diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java index 6e0f15861af9..ddf551197419 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String api, String apiConfig) { return newBuilder().setProject(project).setApi(api).setApiConfig(apiConfig).build().toString(); } - public static ApiConfigName parse(String formattedString) { + public static @Nullable ApiConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApiConfigName> values) { List list = new ArrayList<>(values.size()); for (ApiConfigName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java index 7ac72324d601..06b30069fe83 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String api) { return newBuilder().setProject(project).setApi(api).build().toString(); } - public static ApiName parse(String formattedString) { + public static @Nullable ApiName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApiName> values) { List list = new ArrayList<>(values.size()); for (ApiName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java index 890f50dc78d4..5874ff3af55f 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String gateway) { .toString(); } - public static GatewayName parse(String formattedString) { + public static @Nullable GatewayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewayName> values) { List list = new ArrayList<>(values.size()); for (GatewayName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java index 980024a24b8b..cbd96a67c174 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java index 11a4a43a6524..d4a27d930a16 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java @@ -32,6 +32,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. /** @@ -146,7 +147,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConnectionServiceClient implements BackgroundResource { - private final ConnectionServiceSettings settings; + private final @Nullable ConnectionServiceSettings settings; private final ConnectionServiceStub stub; /** Constructs an instance of ConnectionServiceClient with default settings. */ @@ -186,7 +187,7 @@ protected ConnectionServiceClient(ConnectionServiceStub stub) { this.stub = stub; } - public final ConnectionServiceSettings getSettings() { + public final @Nullable ConnectionServiceSettings getSettings() { return settings; } @@ -218,7 +219,7 @@ public ConnectionServiceStub getStub() { * project_id}/endpoints/{endpoint}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(EndpointName parent) { + public final ListConnectionsPagedResponse listConnections(@Nullable EndpointName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -419,8 +420,8 @@ public static class ListConnectionsPage ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -430,14 +431,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -452,7 +453,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -462,7 +463,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index 10abb1943478..7dd99f47a3a7 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConnectionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java index bd296833e614..2267e63adc6d 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -24,6 +24,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. /** @@ -122,7 +123,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TetherClient implements BackgroundResource { - private final TetherSettings settings; + private final @Nullable TetherSettings settings; private final TetherStub stub; /** Constructs an instance of TetherClient with default settings. */ @@ -160,7 +161,7 @@ protected TetherClient(TetherStub stub) { this.stub = stub; } - public final TetherSettings getSettings() { + public final @Nullable TetherSettings getSettings() { return settings; } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java index 1da7ed172bb1..6fb2b81b4a05 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -133,7 +134,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -153,7 +154,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TetherStubSettings.newBuilder(clientContext)); } diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index 39505ffe9e1f..7011ac7dbd2e 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,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); } @@ -348,7 +349,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectionsSettings = PagedCallSettings.newBuilder(LIST_CONNECTIONS_PAGE_STR_FACT); diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index 7cd5ec62fd7a..775df9c5633f 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -232,7 +233,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); egressSettings = StreamingCallSettings.newBuilder(); diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java index 9c8e5208230c..13b3b7f0c40a 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String endpoint) { return newBuilder().setProject(project).setEndpoint(endpoint).build().toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubClient.java index 89935897834f..2a3269f73ab0 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubClient.java @@ -38,6 +38,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. /** @@ -945,7 +946,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubClient implements BackgroundResource { - private final ApiHubSettings settings; + private final @Nullable ApiHubSettings settings; private final ApiHubStub stub; /** Constructs an instance of ApiHubClient with default settings. */ @@ -983,7 +984,7 @@ protected ApiHubClient(ApiHubStub stub) { this.stub = stub; } - public final ApiHubSettings getSettings() { + public final @Nullable ApiHubSettings getSettings() { return settings; } @@ -1025,7 +1026,7 @@ public ApiHubStub getStub() { *

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Api createApi(LocationName parent, Api api, String apiId) { + public final Api createApi(@Nullable LocationName parent, Api api, String apiId) { CreateApiRequest request = CreateApiRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1158,7 +1159,7 @@ public final UnaryCallable createApiCallable() { * `projects/{project}/locations/{location}/apis/{api}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Api getApi(ApiName name) { + public final Api getApi(@Nullable ApiName name) { GetApiRequest request = GetApiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApi(request); @@ -1270,7 +1271,7 @@ public final UnaryCallable getApiCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApisPagedResponse listApis(LocationName parent) { + public final ListApisPagedResponse listApis(@Nullable LocationName parent) { ListApisRequest request = ListApisRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listApis(request); @@ -1580,7 +1581,7 @@ public final UnaryCallable updateApiCallable() { * `projects/{project}/locations/{location}/apis/{api}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteApi(ApiName name) { + public final void deleteApi(@Nullable ApiName name) { DeleteApiRequest request = DeleteApiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteApi(request); @@ -1708,7 +1709,7 @@ public final UnaryCallable deleteApiCallable() { * limited to 700 characters and valid characters are /[a-z][A-Z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version createVersion(ApiName parent, Version version, String versionId) { + public final Version createVersion(@Nullable ApiName parent, Version version, String versionId) { CreateVersionRequest request = CreateVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1845,7 +1846,7 @@ public final UnaryCallable createVersionCallable( * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version getVersion(VersionName name) { + public final Version getVersion(@Nullable VersionName name) { GetVersionRequest request = GetVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVersion(request); @@ -1960,7 +1961,7 @@ public final UnaryCallable getVersionCallable() { * resource Format: `projects/{project}/locations/{location}/apis/{api}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVersionsPagedResponse listVersions(ApiName parent) { + public final ListVersionsPagedResponse listVersions(@Nullable ApiName parent) { ListVersionsRequest request = ListVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2258,7 +2259,7 @@ public final UnaryCallable updateVersionCallable( * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVersion(VersionName name) { + public final void deleteVersion(@Nullable VersionName name) { DeleteVersionRequest request = DeleteVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVersion(request); @@ -2400,7 +2401,7 @@ public final UnaryCallable deleteVersionCallable() * length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Spec createSpec(VersionName parent, Spec spec, String specId) { + public final Spec createSpec(@Nullable VersionName parent, Spec spec, String specId) { CreateSpecRequest request = CreateSpecRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2576,7 +2577,7 @@ public final UnaryCallable createSpecCallable() { * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Spec getSpec(SpecName name) { + public final Spec getSpec(@Nullable SpecName name) { GetSpecRequest request = GetSpecRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpec(request); @@ -2695,7 +2696,7 @@ public final UnaryCallable getSpecCallable() { * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SpecContents getSpecContents(SpecName name) { + public final SpecContents getSpecContents(@Nullable SpecName name) { GetSpecContentsRequest request = GetSpecContentsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpecContents(request); @@ -2810,7 +2811,7 @@ public final UnaryCallable getSpecContents * `projects/{project}/locations/{location}/apis/{api}/versions/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpecsPagedResponse listSpecs(VersionName parent) { + public final ListSpecsPagedResponse listSpecs(@Nullable VersionName parent) { ListSpecsRequest request = ListSpecsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSpecs(request); @@ -3119,7 +3120,7 @@ public final UnaryCallable updateSpecCallable() { * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSpec(SpecName name) { + public final void deleteSpec(@Nullable SpecName name) { DeleteSpecRequest request = DeleteSpecRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSpec(request); @@ -3247,7 +3248,7 @@ public final UnaryCallable deleteSpecCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ApiOperation createApiOperation( - VersionName parent, ApiOperation apiOperation, String apiOperationId) { + @Nullable VersionName parent, ApiOperation apiOperation, String apiOperationId) { CreateApiOperationRequest request = CreateApiOperationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3389,7 +3390,7 @@ public final UnaryCallable createApiOpe * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ApiOperation getApiOperation(ApiOperationName name) { + public final ApiOperation getApiOperation(@Nullable ApiOperationName name) { GetApiOperationRequest request = GetApiOperationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApiOperation(request); @@ -3509,7 +3510,7 @@ public final UnaryCallable getApiOperation * version. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApiOperationsPagedResponse listApiOperations(VersionName parent) { + public final ListApiOperationsPagedResponse listApiOperations(@Nullable VersionName parent) { ListApiOperationsRequest request = ListApiOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3823,7 +3824,7 @@ public final UnaryCallable updateApiOpe * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteApiOperation(ApiOperationName name) { + public final void deleteApiOperation(@Nullable ApiOperationName name) { DeleteApiOperationRequest request = DeleteApiOperationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3951,7 +3952,7 @@ public final UnaryCallable deleteApiOperationC * `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Definition getDefinition(DefinitionName name) { + public final Definition getDefinition(@Nullable DefinitionName name) { GetDefinitionRequest request = GetDefinitionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDefinition(request); @@ -4080,7 +4081,7 @@ public final UnaryCallable getDefinitionCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - LocationName parent, Deployment deployment, String deploymentId) { + @Nullable LocationName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4218,7 +4219,7 @@ public final UnaryCallable createDeployment * `projects/{project}/locations/{location}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -4330,7 +4331,7 @@ public final UnaryCallable getDeploymentCallab * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(LocationName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable LocationName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4644,7 +4645,7 @@ public final UnaryCallable updateDeployment * `projects/{project}/locations/{location}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeployment(DeploymentName name) { + public final void deleteDeployment(@Nullable DeploymentName name) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDeployment(request); @@ -4772,7 +4773,7 @@ public final UnaryCallable deleteDeploymentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Attribute createAttribute( - LocationName parent, Attribute attribute, String attributeId) { + @Nullable LocationName parent, Attribute attribute, String attributeId) { CreateAttributeRequest request = CreateAttributeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4924,7 +4925,7 @@ public final UnaryCallable createAttributeCal * `projects/{project}/locations/{location}/attributes/{attribute}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attribute getAttribute(AttributeName name) { + public final Attribute getAttribute(@Nullable AttributeName name) { GetAttributeRequest request = GetAttributeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttribute(request); @@ -5191,7 +5192,7 @@ public final UnaryCallable updateAttributeCal * `projects/{project}/locations/{location}/attributes/{attribute}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAttribute(AttributeName name) { + public final void deleteAttribute(@Nullable AttributeName name) { DeleteAttributeRequest request = DeleteAttributeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAttribute(request); @@ -5312,7 +5313,7 @@ public final UnaryCallable deleteAttributeCallabl * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttributesPagedResponse listAttributes(LocationName parent) { + public final ListAttributesPagedResponse listAttributes(@Nullable LocationName parent) { ListAttributesRequest request = ListAttributesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5484,7 +5485,8 @@ public final ListAttributesPagedResponse listAttributes(ListAttributesRequest re * attributes etc. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchResourcesPagedResponse searchResources(LocationName location, String query) { + public final SearchResourcesPagedResponse searchResources( + @Nullable LocationName location, String query) { SearchResourcesRequest request = SearchResourcesRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -5672,7 +5674,7 @@ public final SearchResourcesPagedResponse searchResources(SearchResourcesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExternalApi createExternalApi( - LocationName parent, ExternalApi externalApi, String externalApiId) { + @Nullable LocationName parent, ExternalApi externalApi, String externalApiId) { CreateExternalApiRequest request = CreateExternalApiRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5807,7 +5809,7 @@ public final UnaryCallable createExternal * `projects/{project}/locations/{location}/externalApis/{externalApi}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExternalApi getExternalApi(ExternalApiName name) { + public final ExternalApi getExternalApi(@Nullable ExternalApiName name) { GetExternalApiRequest request = GetExternalApiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExternalApi(request); @@ -6041,7 +6043,7 @@ public final UnaryCallable updateExternal * `projects/{project}/locations/{location}/externalApis/{externalApi}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExternalApi(ExternalApiName name) { + public final void deleteExternalApi(@Nullable ExternalApiName name) { DeleteExternalApiRequest request = DeleteExternalApiRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6155,7 +6157,7 @@ public final UnaryCallable deleteExternalApiCal * Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExternalApisPagedResponse listExternalApis(LocationName parent) { + public final ListExternalApisPagedResponse listExternalApis(@Nullable LocationName parent) { ListExternalApisRequest request = ListExternalApisRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6503,7 +6505,8 @@ public static class ListApisPage extends AbstractPage { private ListApisPage( - PageContext context, ListApisResponse response) { + @Nullable PageContext context, + @Nullable ListApisResponse response) { super(context, response); } @@ -6513,13 +6516,14 @@ private static ListApisPage createEmptyPage() { @Override protected ListApisPage createPage( - PageContext context, ListApisResponse response) { + @Nullable PageContext context, + @Nullable ListApisResponse response) { return new ListApisPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6529,7 +6533,7 @@ public static class ListApisFixedSizeCollection extends AbstractFixedSizeCollection< ListApisRequest, ListApisResponse, Api, ListApisPage, ListApisFixedSizeCollection> { - private ListApisFixedSizeCollection(List pages, int collectionSize) { + private ListApisFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6539,7 +6543,7 @@ private static ListApisFixedSizeCollection createEmptyCollection() { @Override protected ListApisFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApisFixedSizeCollection(pages, collectionSize); } } @@ -6572,8 +6576,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -6583,14 +6587,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6604,7 +6608,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6614,7 +6619,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -6641,8 +6646,8 @@ public static class ListSpecsPage extends AbstractPage { private ListSpecsPage( - PageContext context, - ListSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListSpecsResponse response) { super(context, response); } @@ -6652,14 +6657,14 @@ private static ListSpecsPage createEmptyPage() { @Override protected ListSpecsPage createPage( - PageContext context, - ListSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListSpecsResponse response) { return new ListSpecsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6669,7 +6674,7 @@ public static class ListSpecsFixedSizeCollection extends AbstractFixedSizeCollection< ListSpecsRequest, ListSpecsResponse, Spec, ListSpecsPage, ListSpecsFixedSizeCollection> { - private ListSpecsFixedSizeCollection(List pages, int collectionSize) { + private ListSpecsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6679,7 +6684,7 @@ private static ListSpecsFixedSizeCollection createEmptyCollection() { @Override protected ListSpecsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpecsFixedSizeCollection(pages, collectionSize); } } @@ -6716,8 +6721,9 @@ public static class ListApiOperationsPage ListApiOperationsPage> { private ListApiOperationsPage( - PageContext context, - ListApiOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApiOperationsResponse response) { super(context, response); } @@ -6727,14 +6733,16 @@ private static ListApiOperationsPage createEmptyPage() { @Override protected ListApiOperationsPage createPage( - PageContext context, - ListApiOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApiOperationsResponse response) { return new ListApiOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6749,7 +6757,7 @@ public static class ListApiOperationsFixedSizeCollection ListApiOperationsFixedSizeCollection> { private ListApiOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6759,7 +6767,7 @@ private static ListApiOperationsFixedSizeCollection createEmptyCollection() { @Override protected ListApiOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApiOperationsFixedSizeCollection(pages, collectionSize); } } @@ -6793,8 +6801,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -6804,14 +6812,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6826,7 +6834,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6836,7 +6844,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -6870,8 +6878,8 @@ public static class ListAttributesPage ListAttributesRequest, ListAttributesResponse, Attribute, ListAttributesPage> { private ListAttributesPage( - PageContext context, - ListAttributesResponse response) { + @Nullable PageContext context, + @Nullable ListAttributesResponse response) { super(context, response); } @@ -6881,14 +6889,14 @@ private static ListAttributesPage createEmptyPage() { @Override protected ListAttributesPage createPage( - PageContext context, - ListAttributesResponse response) { + @Nullable PageContext context, + @Nullable ListAttributesResponse response) { return new ListAttributesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6902,7 +6910,8 @@ public static class ListAttributesFixedSizeCollection ListAttributesPage, ListAttributesFixedSizeCollection> { - private ListAttributesFixedSizeCollection(List pages, int collectionSize) { + private ListAttributesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6912,7 +6921,7 @@ private static ListAttributesFixedSizeCollection createEmptyCollection() { @Override protected ListAttributesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttributesFixedSizeCollection(pages, collectionSize); } } @@ -6946,8 +6955,9 @@ public static class SearchResourcesPage SearchResourcesRequest, SearchResourcesResponse, SearchResult, SearchResourcesPage> { private SearchResourcesPage( - PageContext context, - SearchResourcesResponse response) { + @Nullable PageContext + context, + @Nullable SearchResourcesResponse response) { super(context, response); } @@ -6957,14 +6967,16 @@ private static SearchResourcesPage createEmptyPage() { @Override protected SearchResourcesPage createPage( - PageContext context, - SearchResourcesResponse response) { + @Nullable PageContext + context, + @Nullable SearchResourcesResponse response) { return new SearchResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6979,7 +6991,7 @@ public static class SearchResourcesFixedSizeCollection SearchResourcesFixedSizeCollection> { private SearchResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6989,7 +7001,7 @@ private static SearchResourcesFixedSizeCollection createEmptyCollection() { @Override protected SearchResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchResourcesFixedSizeCollection(pages, collectionSize); } } @@ -7023,8 +7035,9 @@ public static class ListExternalApisPage ListExternalApisRequest, ListExternalApisResponse, ExternalApi, ListExternalApisPage> { private ListExternalApisPage( - PageContext context, - ListExternalApisResponse response) { + @Nullable PageContext + context, + @Nullable ListExternalApisResponse response) { super(context, response); } @@ -7034,14 +7047,16 @@ private static ListExternalApisPage createEmptyPage() { @Override protected ListExternalApisPage createPage( - PageContext context, - ListExternalApisResponse response) { + @Nullable PageContext + context, + @Nullable ListExternalApisResponse response) { return new ListExternalApisPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7056,7 +7071,7 @@ public static class ListExternalApisFixedSizeCollection ListExternalApisFixedSizeCollection> { private ListExternalApisFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7066,7 +7081,7 @@ private static ListExternalApisFixedSizeCollection createEmptyCollection() { @Override protected ListExternalApisFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExternalApisFixedSizeCollection(pages, collectionSize); } } @@ -7100,8 +7115,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7111,14 +7126,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7132,7 +7147,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7142,7 +7158,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectClient.java index 5e1ab9edeba8..54320d11009f 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectClient.java @@ -40,6 +40,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. /** @@ -164,7 +165,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubCollectClient implements BackgroundResource { - private final ApiHubCollectSettings settings; + private final @Nullable ApiHubCollectSettings settings; private final ApiHubCollectStub stub; private final OperationsClient httpJsonOperationsClient; @@ -207,7 +208,7 @@ protected ApiHubCollectClient(ApiHubCollectStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ApiHubCollectSettings getSettings() { + public final @Nullable ApiHubCollectSettings getSettings() { return settings; } @@ -252,7 +253,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture collectApiDataAsync( - LocationName location, CollectionType collectionType, ApiData apiData) { + @Nullable LocationName location, CollectionType collectionType, ApiData apiData) { CollectApiDataRequest request = CollectApiDataRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -619,8 +620,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -630,14 +631,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -651,7 +652,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -661,7 +663,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectSettings.java index 71412afbe9ef..a7445da727da 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCollectSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubCollectStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateClient.java index 0e2176f98077..04407abea0a8 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateClient.java @@ -38,6 +38,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubCurateClient implements BackgroundResource { - private final ApiHubCurateSettings settings; + private final @Nullable ApiHubCurateSettings settings; private final ApiHubCurateStub stub; /** Constructs an instance of ApiHubCurateClient with default settings. */ @@ -283,7 +284,7 @@ protected ApiHubCurateClient(ApiHubCurateStub stub) { this.stub = stub; } - public final ApiHubCurateSettings getSettings() { + public final @Nullable ApiHubCurateSettings getSettings() { return settings; } @@ -325,7 +326,8 @@ public ApiHubCurateStub getStub() { *

This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Curation createCuration(LocationName parent, Curation curation, String curationId) { + public final Curation createCuration( + @Nullable LocationName parent, Curation curation, String curationId) { CreateCurationRequest request = CreateCurationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -462,7 +464,7 @@ public final UnaryCallable createCurationCallab * `projects/{project}/locations/{location}/curations/{curation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Curation getCuration(CurationName name) { + public final Curation getCuration(@Nullable CurationName name) { GetCurationRequest request = GetCurationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCuration(request); @@ -574,7 +576,7 @@ public final UnaryCallable getCurationCallable() { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCurationsPagedResponse listCurations(LocationName parent) { + public final ListCurationsPagedResponse listCurations(@Nullable LocationName parent) { ListCurationsRequest request = ListCurationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -855,7 +857,7 @@ public final UnaryCallable updateCurationCallab * `projects/{project}/locations/{location}/curations/{curation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCuration(CurationName name) { + public final void deleteCuration(@Nullable CurationName name) { DeleteCurationRequest request = DeleteCurationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCuration(request); @@ -1160,8 +1162,8 @@ public static class ListCurationsPage ListCurationsRequest, ListCurationsResponse, Curation, ListCurationsPage> { private ListCurationsPage( - PageContext context, - ListCurationsResponse response) { + @Nullable PageContext context, + @Nullable ListCurationsResponse response) { super(context, response); } @@ -1171,14 +1173,14 @@ private static ListCurationsPage createEmptyPage() { @Override protected ListCurationsPage createPage( - PageContext context, - ListCurationsResponse response) { + @Nullable PageContext context, + @Nullable ListCurationsResponse response) { return new ListCurationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1192,7 +1194,8 @@ public static class ListCurationsFixedSizeCollection ListCurationsPage, ListCurationsFixedSizeCollection> { - private ListCurationsFixedSizeCollection(List pages, int collectionSize) { + private ListCurationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1202,7 +1205,7 @@ private static ListCurationsFixedSizeCollection createEmptyCollection() { @Override protected ListCurationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCurationsFixedSizeCollection(pages, collectionSize); } } @@ -1236,8 +1239,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1247,14 +1250,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1268,7 +1271,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1278,7 +1282,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateSettings.java index d721058cc1e5..ee66f4cf967e 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubCurateSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubCurateStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesClient.java index 30bcc644f2c7..dd06d1391378 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesClient.java @@ -38,6 +38,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. /** @@ -247,7 +248,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubDependenciesClient implements BackgroundResource { - private final ApiHubDependenciesSettings settings; + private final @Nullable ApiHubDependenciesSettings settings; private final ApiHubDependenciesStub stub; /** Constructs an instance of ApiHubDependenciesClient with default settings. */ @@ -287,7 +288,7 @@ protected ApiHubDependenciesClient(ApiHubDependenciesStub stub) { this.stub = stub; } - public final ApiHubDependenciesSettings getSettings() { + public final @Nullable ApiHubDependenciesSettings getSettings() { return settings; } @@ -330,7 +331,7 @@ public ApiHubDependenciesStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Dependency createDependency( - LocationName parent, Dependency dependency, String dependencyId) { + @Nullable LocationName parent, Dependency dependency, String dependencyId) { CreateDependencyRequest request = CreateDependencyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -467,7 +468,7 @@ public final UnaryCallable createDependency * `projects/{project}/locations/{location}/dependencies/{dependency}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dependency getDependency(DependencyName name) { + public final Dependency getDependency(@Nullable DependencyName name) { GetDependencyRequest request = GetDependencyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDependency(request); @@ -694,7 +695,7 @@ public final UnaryCallable updateDependency * `projects/{project}/locations/{location}/dependencies/{dependency}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDependency(DependencyName name) { + public final void deleteDependency(@Nullable DependencyName name) { DeleteDependencyRequest request = DeleteDependencyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDependency(request); @@ -807,7 +808,7 @@ public final UnaryCallable deleteDependencyCalla * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDependenciesPagedResponse listDependencies(LocationName parent) { + public final ListDependenciesPagedResponse listDependencies(@Nullable LocationName parent) { ListDependenciesRequest request = ListDependenciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1169,8 +1170,9 @@ public static class ListDependenciesPage ListDependenciesRequest, ListDependenciesResponse, Dependency, ListDependenciesPage> { private ListDependenciesPage( - PageContext context, - ListDependenciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDependenciesResponse response) { super(context, response); } @@ -1180,14 +1182,16 @@ private static ListDependenciesPage createEmptyPage() { @Override protected ListDependenciesPage createPage( - PageContext context, - ListDependenciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDependenciesResponse response) { return new ListDependenciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1202,7 +1206,7 @@ public static class ListDependenciesFixedSizeCollection ListDependenciesFixedSizeCollection> { private ListDependenciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1212,7 +1216,7 @@ private static ListDependenciesFixedSizeCollection createEmptyCollection() { @Override protected ListDependenciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDependenciesFixedSizeCollection(pages, collectionSize); } } @@ -1246,8 +1250,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1257,14 +1261,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1278,7 +1282,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1288,7 +1293,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesSettings.java index 4a0f073237d2..3410a8bf476d 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDependenciesSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -178,7 +179,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubDependenciesStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoveryClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoveryClient.java index 336a66baa621..c32f4ddb7166 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoveryClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoveryClient.java @@ -36,6 +36,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. /** @@ -223,7 +224,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubDiscoveryClient implements BackgroundResource { - private final ApiHubDiscoverySettings settings; + private final @Nullable ApiHubDiscoverySettings settings; private final ApiHubDiscoveryStub stub; /** Constructs an instance of ApiHubDiscoveryClient with default settings. */ @@ -263,7 +264,7 @@ protected ApiHubDiscoveryClient(ApiHubDiscoveryStub stub) { this.stub = stub; } - public final ApiHubDiscoverySettings getSettings() { + public final @Nullable ApiHubDiscoverySettings getSettings() { return settings; } @@ -297,7 +298,7 @@ public ApiHubDiscoveryStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredApiObservationsPagedResponse listDiscoveredApiObservations( - LocationName parent) { + @Nullable LocationName parent) { ListDiscoveredApiObservationsRequest request = ListDiscoveredApiObservationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -471,7 +472,7 @@ public final ListDiscoveredApiObservationsPagedResponse listDiscoveredApiObserva * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveredApiObservation getDiscoveredApiObservation( - DiscoveredApiObservationName name) { + @Nullable DiscoveredApiObservationName name) { GetDiscoveredApiObservationRequest request = GetDiscoveredApiObservationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -603,7 +604,7 @@ public final DiscoveredApiObservation getDiscoveredApiObservation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredApiOperationsPagedResponse listDiscoveredApiOperations( - DiscoveredApiObservationName parent) { + @Nullable DiscoveredApiObservationName parent) { ListDiscoveredApiOperationsRequest request = ListDiscoveredApiOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -790,7 +791,8 @@ public final ListDiscoveredApiOperationsPagedResponse listDiscoveredApiOperation * projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscoveredApiOperation getDiscoveredApiOperation(DiscoveredApiOperationName name) { + public final DiscoveredApiOperation getDiscoveredApiOperation( + @Nullable DiscoveredApiOperationName name) { GetDiscoveredApiOperationRequest request = GetDiscoveredApiOperationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1125,12 +1127,13 @@ public static class ListDiscoveredApiObservationsPage ListDiscoveredApiObservationsPage> { private ListDiscoveredApiObservationsPage( - PageContext< + @Nullable + PageContext< ListDiscoveredApiObservationsRequest, ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> context, - ListDiscoveredApiObservationsResponse response) { + @Nullable ListDiscoveredApiObservationsResponse response) { super(context, response); } @@ -1140,18 +1143,20 @@ private static ListDiscoveredApiObservationsPage createEmptyPage() { @Override protected ListDiscoveredApiObservationsPage createPage( - PageContext< + @Nullable + PageContext< ListDiscoveredApiObservationsRequest, ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> context, - ListDiscoveredApiObservationsResponse response) { + @Nullable ListDiscoveredApiObservationsResponse response) { return new ListDiscoveredApiObservationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDiscoveredApiObservationsRequest, ListDiscoveredApiObservationsResponse, DiscoveredApiObservation> @@ -1170,7 +1175,7 @@ public static class ListDiscoveredApiObservationsFixedSizeCollection ListDiscoveredApiObservationsFixedSizeCollection> { private ListDiscoveredApiObservationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1180,7 +1185,7 @@ private static ListDiscoveredApiObservationsFixedSizeCollection createEmptyColle @Override protected ListDiscoveredApiObservationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiscoveredApiObservationsFixedSizeCollection(pages, collectionSize); } } @@ -1222,12 +1227,13 @@ public static class ListDiscoveredApiOperationsPage ListDiscoveredApiOperationsPage> { private ListDiscoveredApiOperationsPage( - PageContext< + @Nullable + PageContext< ListDiscoveredApiOperationsRequest, ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> context, - ListDiscoveredApiOperationsResponse response) { + @Nullable ListDiscoveredApiOperationsResponse response) { super(context, response); } @@ -1237,18 +1243,20 @@ private static ListDiscoveredApiOperationsPage createEmptyPage() { @Override protected ListDiscoveredApiOperationsPage createPage( - PageContext< + @Nullable + PageContext< ListDiscoveredApiOperationsRequest, ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> context, - ListDiscoveredApiOperationsResponse response) { + @Nullable ListDiscoveredApiOperationsResponse response) { return new ListDiscoveredApiOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDiscoveredApiOperationsRequest, ListDiscoveredApiOperationsResponse, DiscoveredApiOperation> @@ -1267,7 +1275,7 @@ public static class ListDiscoveredApiOperationsFixedSizeCollection ListDiscoveredApiOperationsFixedSizeCollection> { private ListDiscoveredApiOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1277,7 +1285,7 @@ private static ListDiscoveredApiOperationsFixedSizeCollection createEmptyCollect @Override protected ListDiscoveredApiOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiscoveredApiOperationsFixedSizeCollection(pages, collectionSize); } } @@ -1311,8 +1319,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1322,14 +1330,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1343,7 +1351,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1353,7 +1362,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoverySettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoverySettings.java index bcccada89fc3..bafcaa8d2b36 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoverySettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubDiscoverySettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubDiscoveryStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginClient.java index 085ee27da6d5..ff4a1c877da7 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginClient.java @@ -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. /** @@ -424,7 +425,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiHubPluginClient implements BackgroundResource { - private final ApiHubPluginSettings settings; + private final @Nullable ApiHubPluginSettings settings; private final ApiHubPluginStub stub; private final OperationsClient httpJsonOperationsClient; @@ -466,7 +467,7 @@ protected ApiHubPluginClient(ApiHubPluginStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ApiHubPluginSettings getSettings() { + public final @Nullable ApiHubPluginSettings getSettings() { return settings; } @@ -504,7 +505,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/plugins/{plugin}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Plugin getPlugin(PluginName name) { + public final Plugin getPlugin(@Nullable PluginName name) { GetPluginRequest request = GetPluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPlugin(request); @@ -614,7 +615,7 @@ public final UnaryCallable getPluginCallable() { * `projects/{project}/locations/{location}/plugins/{plugin}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Plugin enablePlugin(PluginName name) { + public final Plugin enablePlugin(@Nullable PluginName name) { EnablePluginRequest request = EnablePluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return enablePlugin(request); @@ -724,7 +725,7 @@ public final UnaryCallable enablePluginCallable() { * `projects/{project}/locations/{location}/plugins/{plugin}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Plugin disablePlugin(PluginName name) { + public final Plugin disablePlugin(@Nullable PluginName name) { DisablePluginRequest request = DisablePluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return disablePlugin(request); @@ -848,7 +849,7 @@ public final UnaryCallable disablePluginCallable() * characters and valid characters are /[a-z][A-Z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Plugin createPlugin(LocationName parent, Plugin plugin, String pluginId) { + public final Plugin createPlugin(@Nullable LocationName parent, Plugin plugin, String pluginId) { CreatePluginRequest request = CreatePluginRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -989,7 +990,7 @@ public final UnaryCallable createPluginCallable() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPluginsPagedResponse listPlugins(LocationName parent) { + public final ListPluginsPagedResponse listPlugins(@Nullable LocationName parent) { ListPluginsRequest request = ListPluginsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1153,7 +1154,8 @@ public final UnaryCallable listPluginsC * `projects/{project}/locations/{location}/plugins/{plugin}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePluginAsync(PluginName name) { + public final OperationFuture deletePluginAsync( + @Nullable PluginName name) { DeletePluginRequest request = DeletePluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deletePluginAsync(request); @@ -1308,7 +1310,7 @@ public final UnaryCallable deletePluginCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPluginInstanceAsync( - PluginName parent, PluginInstance pluginInstance, String pluginInstanceId) { + @Nullable PluginName parent, PluginInstance pluginInstance, String pluginInstanceId) { CreatePluginInstanceRequest request = CreatePluginInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1486,7 +1488,7 @@ public final OperationFuture createPluginInst */ public final OperationFuture executePluginInstanceActionAsync( - PluginInstanceName name, ActionExecutionDetail actionExecutionDetail) { + @Nullable PluginInstanceName name, ActionExecutionDetail actionExecutionDetail) { ExecutePluginInstanceActionRequest request = ExecutePluginInstanceActionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1654,7 +1656,7 @@ public final OperationFuture createPluginInst * `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PluginInstance getPluginInstance(PluginInstanceName name) { + public final PluginInstance getPluginInstance(@Nullable PluginInstanceName name) { GetPluginInstanceRequest request = GetPluginInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1776,7 +1778,7 @@ public final UnaryCallable getPluginIn * multiple plugins, use the - character instead of the plugin ID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPluginInstancesPagedResponse listPluginInstances(PluginName parent) { + public final ListPluginInstancesPagedResponse listPluginInstances(@Nullable PluginName parent) { ListPluginInstancesRequest request = ListPluginInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1955,7 +1957,7 @@ public final ListPluginInstancesPagedResponse listPluginInstances( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - enablePluginInstanceActionAsync(PluginInstanceName name, String actionId) { + enablePluginInstanceActionAsync(@Nullable PluginInstanceName name, String actionId) { EnablePluginInstanceActionRequest request = EnablePluginInstanceActionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2122,7 +2124,7 @@ public final ListPluginInstancesPagedResponse listPluginInstances( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - disablePluginInstanceActionAsync(PluginInstanceName name, String actionId) { + disablePluginInstanceActionAsync(@Nullable PluginInstanceName name, String actionId) { DisablePluginInstanceActionRequest request = DisablePluginInstanceActionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2425,7 +2427,7 @@ public final PluginInstance updatePluginInstance(UpdatePluginInstanceRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePluginInstanceAsync( - PluginInstanceName name) { + @Nullable PluginInstanceName name) { DeletePluginInstanceRequest request = DeletePluginInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2766,8 +2768,8 @@ public static class ListPluginsPage extends AbstractPage { private ListPluginsPage( - PageContext context, - ListPluginsResponse response) { + @Nullable PageContext context, + @Nullable ListPluginsResponse response) { super(context, response); } @@ -2777,14 +2779,14 @@ private static ListPluginsPage createEmptyPage() { @Override protected ListPluginsPage createPage( - PageContext context, - ListPluginsResponse response) { + @Nullable PageContext context, + @Nullable ListPluginsResponse response) { return new ListPluginsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2798,7 +2800,8 @@ public static class ListPluginsFixedSizeCollection ListPluginsPage, ListPluginsFixedSizeCollection> { - private ListPluginsFixedSizeCollection(List pages, int collectionSize) { + private ListPluginsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2808,7 +2811,7 @@ private static ListPluginsFixedSizeCollection createEmptyCollection() { @Override protected ListPluginsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPluginsFixedSizeCollection(pages, collectionSize); } } @@ -2846,9 +2849,10 @@ public static class ListPluginInstancesPage ListPluginInstancesPage> { private ListPluginInstancesPage( - PageContext + @Nullable + PageContext context, - ListPluginInstancesResponse response) { + @Nullable ListPluginInstancesResponse response) { super(context, response); } @@ -2858,15 +2862,17 @@ private static ListPluginInstancesPage createEmptyPage() { @Override protected ListPluginInstancesPage createPage( - PageContext + @Nullable + PageContext context, - ListPluginInstancesResponse response) { + @Nullable ListPluginInstancesResponse response) { return new ListPluginInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2882,7 +2888,7 @@ public static class ListPluginInstancesFixedSizeCollection ListPluginInstancesFixedSizeCollection> { private ListPluginInstancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2892,7 +2898,7 @@ private static ListPluginInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListPluginInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPluginInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2926,8 +2932,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2937,14 +2943,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2958,7 +2964,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2968,7 +2975,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginSettings.java index dcd5d8c6bf0b..b9fe5a48064c 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubPluginSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -300,7 +301,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -320,7 +321,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubPluginStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubSettings.java index 01b9993981dc..d8f8a2ea8fe6 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ApiHubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -378,7 +379,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiHubStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceClient.java index 0fb8738a5df9..83668a674da1 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceClient.java @@ -36,6 +36,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. /** @@ -206,7 +207,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HostProjectRegistrationServiceClient implements BackgroundResource { - private final HostProjectRegistrationServiceSettings settings; + private final @Nullable HostProjectRegistrationServiceSettings settings; private final HostProjectRegistrationServiceStub stub; /** Constructs an instance of HostProjectRegistrationServiceClient with default settings. */ @@ -251,7 +252,7 @@ protected HostProjectRegistrationServiceClient(HostProjectRegistrationServiceStu this.stub = stub; } - public final HostProjectRegistrationServiceSettings getSettings() { + public final @Nullable HostProjectRegistrationServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public HostProjectRegistrationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HostProjectRegistration createHostProjectRegistration( - LocationName parent, + @Nullable LocationName parent, HostProjectRegistration hostProjectRegistration, String hostProjectRegistrationId) { CreateHostProjectRegistrationRequest request = @@ -452,7 +453,7 @@ public final HostProjectRegistration createHostProjectRegistration( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HostProjectRegistration getHostProjectRegistration( - HostProjectRegistrationName name) { + @Nullable HostProjectRegistrationName name) { GetHostProjectRegistrationRequest request = GetHostProjectRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -588,7 +589,7 @@ public final HostProjectRegistration getHostProjectRegistration( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHostProjectRegistrationsPagedResponse listHostProjectRegistrations( - LocationName parent) { + @Nullable LocationName parent) { ListHostProjectRegistrationsRequest request = ListHostProjectRegistrationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -981,12 +982,13 @@ public static class ListHostProjectRegistrationsPage ListHostProjectRegistrationsPage> { private ListHostProjectRegistrationsPage( - PageContext< + @Nullable + PageContext< ListHostProjectRegistrationsRequest, ListHostProjectRegistrationsResponse, HostProjectRegistration> context, - ListHostProjectRegistrationsResponse response) { + @Nullable ListHostProjectRegistrationsResponse response) { super(context, response); } @@ -996,18 +998,20 @@ private static ListHostProjectRegistrationsPage createEmptyPage() { @Override protected ListHostProjectRegistrationsPage createPage( - PageContext< + @Nullable + PageContext< ListHostProjectRegistrationsRequest, ListHostProjectRegistrationsResponse, HostProjectRegistration> context, - ListHostProjectRegistrationsResponse response) { + @Nullable ListHostProjectRegistrationsResponse response) { return new ListHostProjectRegistrationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListHostProjectRegistrationsRequest, ListHostProjectRegistrationsResponse, HostProjectRegistration> @@ -1026,7 +1030,7 @@ public static class ListHostProjectRegistrationsFixedSizeCollection ListHostProjectRegistrationsFixedSizeCollection> { private ListHostProjectRegistrationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1036,7 +1040,7 @@ private static ListHostProjectRegistrationsFixedSizeCollection createEmptyCollec @Override protected ListHostProjectRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHostProjectRegistrationsFixedSizeCollection(pages, collectionSize); } } @@ -1070,8 +1074,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1081,14 +1085,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1102,7 +1106,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1112,7 +1117,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceSettings.java index 7d768680dcee..fd9ef0b6addc 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HostProjectRegistrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceClient.java index d6b26d06555d..e6262c41c027 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceClient.java @@ -38,6 +38,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. /** @@ -211,7 +212,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LintingServiceClient implements BackgroundResource { - private final LintingServiceSettings settings; + private final @Nullable LintingServiceSettings settings; private final LintingServiceStub stub; /** Constructs an instance of LintingServiceClient with default settings. */ @@ -251,7 +252,7 @@ protected LintingServiceClient(LintingServiceStub stub) { this.stub = stub; } - public final LintingServiceSettings getSettings() { + public final @Nullable LintingServiceSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public LintingServiceStub getStub() { * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StyleGuide getStyleGuide(StyleGuideName name) { + public final StyleGuide getStyleGuide(@Nullable StyleGuideName name) { GetStyleGuideRequest request = GetStyleGuideRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStyleGuide(request); @@ -483,7 +484,7 @@ public final UnaryCallable updateStyleGuide * `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StyleGuideContents getStyleGuideContents(StyleGuideName name) { + public final StyleGuideContents getStyleGuideContents(@Nullable StyleGuideName name) { GetStyleGuideContentsRequest request = GetStyleGuideContentsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -850,8 +851,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -861,14 +862,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -882,7 +883,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -892,7 +894,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceSettings.java index bc52faac59bc..7cf4cbe1281c 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/LintingServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LintingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningClient.java index 28ee14812a35..dca4d922678f 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningClient.java @@ -41,6 +41,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. /** @@ -224,7 +225,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProvisioningClient implements BackgroundResource { - private final ProvisioningSettings settings; + private final @Nullable ProvisioningSettings settings; private final ProvisioningStub stub; private final OperationsClient httpJsonOperationsClient; @@ -266,7 +267,7 @@ protected ProvisioningClient(ProvisioningStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProvisioningSettings getSettings() { + public final @Nullable ProvisioningSettings getSettings() { return settings; } @@ -315,7 +316,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createApiHubInstanceAsync( - LocationName parent, ApiHubInstance apiHubInstance, String apiHubInstanceId) { + @Nullable LocationName parent, ApiHubInstance apiHubInstance, String apiHubInstanceId) { CreateApiHubInstanceRequest request = CreateApiHubInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -485,7 +486,7 @@ public final OperationFuture createApiHubInst * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApiHubInstanceAsync( - ApiHubInstanceName name) { + @Nullable ApiHubInstanceName name) { DeleteApiHubInstanceRequest request = DeleteApiHubInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -635,7 +636,7 @@ public final OperationFuture deleteApiHubInstanceAsync * `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ApiHubInstance getApiHubInstance(ApiHubInstanceName name) { + public final ApiHubInstance getApiHubInstance(@Nullable ApiHubInstanceName name) { GetApiHubInstanceRequest request = GetApiHubInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -753,7 +754,7 @@ public final UnaryCallable getApiHubIn * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LookupApiHubInstanceResponse lookupApiHubInstance(LocationName parent) { + public final LookupApiHubInstanceResponse lookupApiHubInstance(@Nullable LocationName parent) { LookupApiHubInstanceRequest request = LookupApiHubInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1065,8 +1066,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1076,14 +1077,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1097,7 +1098,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1107,7 +1109,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningSettings.java index 9da5e76f9fb5..a0db870edc45 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/ProvisioningSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProvisioningStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceClient.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceClient.java index db3fb9bb3701..8baafb7bdffd 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceClient.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceClient.java @@ -37,6 +37,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. /** @@ -245,7 +246,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RuntimeProjectAttachmentServiceClient implements BackgroundResource { - private final RuntimeProjectAttachmentServiceSettings settings; + private final @Nullable RuntimeProjectAttachmentServiceSettings settings; private final RuntimeProjectAttachmentServiceStub stub; /** Constructs an instance of RuntimeProjectAttachmentServiceClient with default settings. */ @@ -290,7 +291,7 @@ protected RuntimeProjectAttachmentServiceClient(RuntimeProjectAttachmentServiceS this.stub = stub; } - public final RuntimeProjectAttachmentServiceSettings getSettings() { + public final @Nullable RuntimeProjectAttachmentServiceSettings getSettings() { return settings; } @@ -332,7 +333,7 @@ public RuntimeProjectAttachmentServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RuntimeProjectAttachment createRuntimeProjectAttachment( - LocationName parent, + @Nullable LocationName parent, RuntimeProjectAttachment runtimeProjectAttachment, String runtimeProjectAttachmentId) { CreateRuntimeProjectAttachmentRequest request = @@ -484,7 +485,7 @@ public final RuntimeProjectAttachment createRuntimeProjectAttachment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RuntimeProjectAttachment getRuntimeProjectAttachment( - RuntimeProjectAttachmentName name) { + @Nullable RuntimeProjectAttachmentName name) { GetRuntimeProjectAttachmentRequest request = GetRuntimeProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -622,7 +623,7 @@ public final RuntimeProjectAttachment getRuntimeProjectAttachment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRuntimeProjectAttachmentsPagedResponse listRuntimeProjectAttachments( - LocationName parent) { + @Nullable LocationName parent) { ListRuntimeProjectAttachmentsRequest request = ListRuntimeProjectAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -815,7 +816,7 @@ public final ListRuntimeProjectAttachmentsPagedResponse listRuntimeProjectAttach * `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRuntimeProjectAttachment(RuntimeProjectAttachmentName name) { + public final void deleteRuntimeProjectAttachment(@Nullable RuntimeProjectAttachmentName name) { DeleteRuntimeProjectAttachmentRequest request = DeleteRuntimeProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -949,7 +950,7 @@ public final void deleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupRuntimeProjectAttachmentResponse lookupRuntimeProjectAttachment( - LocationName name) { + @Nullable LocationName name) { LookupRuntimeProjectAttachmentRequest request = LookupRuntimeProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1281,12 +1282,13 @@ public static class ListRuntimeProjectAttachmentsPage ListRuntimeProjectAttachmentsPage> { private ListRuntimeProjectAttachmentsPage( - PageContext< + @Nullable + PageContext< ListRuntimeProjectAttachmentsRequest, ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> context, - ListRuntimeProjectAttachmentsResponse response) { + @Nullable ListRuntimeProjectAttachmentsResponse response) { super(context, response); } @@ -1296,18 +1298,20 @@ private static ListRuntimeProjectAttachmentsPage createEmptyPage() { @Override protected ListRuntimeProjectAttachmentsPage createPage( - PageContext< + @Nullable + PageContext< ListRuntimeProjectAttachmentsRequest, ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> context, - ListRuntimeProjectAttachmentsResponse response) { + @Nullable ListRuntimeProjectAttachmentsResponse response) { return new ListRuntimeProjectAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRuntimeProjectAttachmentsRequest, ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> @@ -1326,7 +1330,7 @@ public static class ListRuntimeProjectAttachmentsFixedSizeCollection ListRuntimeProjectAttachmentsFixedSizeCollection> { private ListRuntimeProjectAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1336,7 +1340,7 @@ private static ListRuntimeProjectAttachmentsFixedSizeCollection createEmptyColle @Override protected ListRuntimeProjectAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuntimeProjectAttachmentsFixedSizeCollection(pages, collectionSize); } } @@ -1370,8 +1374,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1381,14 +1385,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1402,7 +1406,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1412,7 +1417,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceSettings.java index b0c7e417c68a..1c6f02f22dee 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RuntimeProjectAttachmentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStub.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStub.java index 31ec836e3374..60e19bf93f08 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStub.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.Operation; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,7 +44,7 @@ @Generated("by gapic-generator-java") public abstract class ApiHubCollectStub implements BackgroundResource { - public OperationsStub getHttpJsonOperationsStub() { + public @Nullable OperationsStub getHttpJsonOperationsStub() { throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStubSettings.java index 66cd67818510..3a31b3a45c25 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCollectStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -299,7 +300,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -362,7 +363,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); collectApiDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCurateStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCurateStubSettings.java index e586ce43c202..83a70985bd05 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCurateStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubCurateStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -410,7 +411,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCurationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDependenciesStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDependenciesStubSettings.java index adb71168184a..2143c626c481 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDependenciesStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDependenciesStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -350,7 +351,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -446,7 +447,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDependencySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDiscoveryStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDiscoveryStubSettings.java index 45eace811f67..771a6faf71bc 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDiscoveryStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubDiscoveryStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -458,7 +459,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -537,7 +538,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDiscoveredApiObservationsSettings = diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStub.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStub.java index 2b6993597e21..c7b7325d91f7 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStub.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,7 +66,7 @@ @Generated("by gapic-generator-java") public abstract class ApiHubPluginStub implements BackgroundResource { - public OperationsStub getHttpJsonOperationsStub() { + public @Nullable OperationsStub getHttpJsonOperationsStub() { throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStubSettings.java index 36310bc98195..ea4674be7f91 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubPluginStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -580,7 +581,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -738,7 +739,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPluginSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubStubSettings.java index 209ea1363c84..3182aff6f2f5 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ApiHubStubSettings.java @@ -119,6 +119,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1000,7 +1001,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1196,7 +1197,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createApiSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/HostProjectRegistrationServiceStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/HostProjectRegistrationServiceStubSettings.java index 8a487c6c985a..98cb69155c14 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/HostProjectRegistrationServiceStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/HostProjectRegistrationServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -369,7 +370,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -467,7 +468,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createHostProjectRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/LintingServiceStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/LintingServiceStubSettings.java index 23b2fd1ffe22..61c6629b4f81 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/LintingServiceStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/LintingServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -373,7 +374,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getStyleGuideSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStub.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStub.java index 1bf7cbf51b54..6e8a428a70e6 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStub.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,7 +49,7 @@ @Generated("by gapic-generator-java") public abstract class ProvisioningStub implements BackgroundResource { - public OperationsStub getHttpJsonOperationsStub() { + public @Nullable OperationsStub getHttpJsonOperationsStub() { throw new UnsupportedOperationException("Not implemented: getHttpJsonOperationsStub()"); } diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStubSettings.java index 7a772229b902..13f88fcac1ba 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/ProvisioningStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -335,7 +336,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -438,7 +439,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createApiHubInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/RuntimeProjectAttachmentServiceStubSettings.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/RuntimeProjectAttachmentServiceStubSettings.java index 398a27fd7c5d..43fb84f9dde1 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/RuntimeProjectAttachmentServiceStubSettings.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/RuntimeProjectAttachmentServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -391,7 +392,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -499,7 +500,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRuntimeProjectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiHubInstanceName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiHubInstanceName.java index 54422084e022..f8673212504b 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiHubInstanceName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiHubInstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String apiHubInstan .toString(); } - public static ApiHubInstanceName parse(String formattedString) { + public static @Nullable ApiHubInstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApiHubInstanceName> values) { List list = new ArrayList<>(values.size()); for (ApiHubInstanceName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiName.java index 430629ce22d8..3ecd23365a50 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String api) { return newBuilder().setProject(project).setLocation(location).setApi(api).build().toString(); } - public static ApiName parse(String formattedString) { + public static @Nullable ApiName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApiName> values) { List list = new ArrayList<>(values.size()); for (ApiName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiOperationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiOperationName.java index 9b73d6e4e698..1c3f42b9fea3 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiOperationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ApiOperationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ApiOperationName parse(String formattedString) { + public static @Nullable ApiOperationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApiOperationName> values) { List list = new ArrayList<>(values.size()); for (ApiOperationName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/AttributeName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/AttributeName.java index 65fcbdb5df9f..58acd3c7cfa7 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/AttributeName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/AttributeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String attribute) { .toString(); } - public static AttributeName parse(String formattedString) { + public static @Nullable AttributeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttributeName> values) { List list = new ArrayList<>(values.size()); for (AttributeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/CurationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/CurationName.java index 256a6afd017c..6565f3c4c6e1 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/CurationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/CurationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String curation) { .toString(); } - public static CurationName parse(String formattedString) { + public static @Nullable CurationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CurationName> values) { List list = new ArrayList<>(values.size()); for (CurationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DefinitionName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DefinitionName.java index 94395226a2b1..0856b8d80c92 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DefinitionName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DefinitionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static DefinitionName parse(String formattedString) { + public static @Nullable DefinitionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DefinitionName> values) { List list = new ArrayList<>(values.size()); for (DefinitionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DependencyName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DependencyName.java index 93e5a00ad68a..8a161f9856b0 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DependencyName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DependencyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dependency) .toString(); } - public static DependencyName parse(String formattedString) { + public static @Nullable DependencyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DependencyName> values) { List list = new ArrayList<>(values.size()); for (DependencyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DeploymentName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DeploymentName.java index bdd793237a27..75d52b3a48fe 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DeploymentName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String deployment) .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiObservationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiObservationName.java index 5c091ce3d0ce..55cf12a29389 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiObservationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiObservationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String discoveredAp .toString(); } - public static DiscoveredApiObservationName parse(String formattedString) { + public static @Nullable DiscoveredApiObservationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiscoveredApiObservationName> values) { List list = new ArrayList<>(values.size()); for (DiscoveredApiObservationName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiOperationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiOperationName.java index 23e94dff73f2..3dd0715f9c45 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiOperationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/DiscoveredApiOperationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -107,7 +108,7 @@ public static String format( .toString(); } - public static DiscoveredApiOperationName parse(String formattedString) { + public static @Nullable DiscoveredApiOperationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiscoveredApiOperationName> values) { List list = new ArrayList<>(values.size()); for (DiscoveredApiOperationName value : values) { if (value == null) { @@ -190,7 +191,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ExternalApiName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ExternalApiName.java index a9f31a4490b1..b7889c375824 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ExternalApiName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/ExternalApiName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String externalApi) .toString(); } - public static ExternalApiName parse(String formattedString) { + public static @Nullable ExternalApiName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExternalApiName> values) { List list = new ArrayList<>(values.size()); for (ExternalApiName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationName.java index d2e255b014db..0952de146bdc 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/HostProjectRegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String hostProjectR .toString(); } - public static HostProjectRegistrationName parse(String formattedString) { + public static @Nullable HostProjectRegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HostProjectRegistrationName> values) { List list = new ArrayList<>(values.size()); for (HostProjectRegistrationName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/LocationName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/LocationName.java index afdc846f7f25..c38ddd939937 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/LocationName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginInstanceName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginInstanceName.java index d16edf3804e1..107ec5d509cd 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginInstanceName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginInstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String plugin, Stri .toString(); } - public static PluginInstanceName parse(String formattedString) { + public static @Nullable PluginInstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PluginInstanceName> values) { List list = new ArrayList<>(values.size()); for (PluginInstanceName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginName.java index b3f090c15f0a..f4250ad64f64 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/PluginName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String plugin) { .toString(); } - public static PluginName parse(String formattedString) { + public static @Nullable PluginName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PluginName> values) { List list = new ArrayList<>(values.size()); for (PluginName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentName.java index 2f94a079d993..f979fa298ecc 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/RuntimeProjectAttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String runtimeProje .toString(); } - public static RuntimeProjectAttachmentName parse(String formattedString) { + public static @Nullable RuntimeProjectAttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuntimeProjectAttachmentName> values) { List list = new ArrayList<>(values.size()); for (RuntimeProjectAttachmentName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/SpecName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/SpecName.java index d3d228a9be3e..85aae316fcb6 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/SpecName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/SpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static SpecName parse(String formattedString) { + public static @Nullable SpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpecName> values) { List list = new ArrayList<>(values.size()); for (SpecName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/StyleGuideName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/StyleGuideName.java index e6cbd8ab5dcd..c012dd6ab7d7 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/StyleGuideName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/StyleGuideName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String plugin) { .toString(); } - public static StyleGuideName parse(String formattedString) { + public static @Nullable StyleGuideName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StyleGuideName> values) { List list = new ArrayList<>(values.size()); for (StyleGuideName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/VersionName.java b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/VersionName.java index aba8bcb225cf..05c0b1a254fe 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/VersionName.java +++ b/java-apihub/proto-google-cloud-apihub-v1/src/main/java/com/google/cloud/apihub/v1/VersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String api, String .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysClient.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysClient.java index 71a9d453d086..4cb5ba79f7ab 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysClient.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysClient.java @@ -39,6 +39,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. /** @@ -278,7 +279,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApiKeysClient implements BackgroundResource { - private final ApiKeysSettings settings; + private final @Nullable ApiKeysSettings settings; private final ApiKeysStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -324,7 +325,7 @@ protected ApiKeysClient(ApiKeysStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ApiKeysSettings getSettings() { + public final @Nullable ApiKeysSettings getSettings() { return settings; } @@ -383,7 +384,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKeyAsync( - LocationName parent, Key key, String keyId) { + @Nullable LocationName parent, Key key, String keyId) { CreateKeyRequest request = CreateKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -553,7 +554,7 @@ public final UnaryCallable createKeyCallable() { * @param parent Required. Lists all API keys associated with this project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeysPagedResponse listKeys(LocationName parent) { + public final ListKeysPagedResponse listKeys(@Nullable LocationName parent) { ListKeysRequest request = ListKeysRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listKeys(request); @@ -726,7 +727,7 @@ public final UnaryCallable listKeysCallable() * @param name Required. The resource name of the API key to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Key getKey(KeyName name) { + public final Key getKey(@Nullable KeyName name) { GetKeyRequest request = GetKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKey(request); @@ -842,7 +843,7 @@ public final UnaryCallable getKeyCallable() { * @param name Required. The resource name of the API key to be retrieved. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetKeyStringResponse getKeyString(KeyName name) { + public final GetKeyStringResponse getKeyString(@Nullable KeyName name) { GetKeyStringRequest request = GetKeyStringRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyString(request); @@ -1092,7 +1093,7 @@ public final UnaryCallable updateKeyCallable() { * @param name Required. The resource name of the API key to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteKeyAsync(KeyName name) { + public final OperationFuture deleteKeyAsync(@Nullable KeyName name) { DeleteKeyRequest request = DeleteKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteKeyAsync(request); @@ -1418,7 +1419,8 @@ public static class ListKeysPage extends AbstractPage { private ListKeysPage( - PageContext context, ListKeysResponse response) { + @Nullable PageContext context, + @Nullable ListKeysResponse response) { super(context, response); } @@ -1428,13 +1430,14 @@ private static ListKeysPage createEmptyPage() { @Override protected ListKeysPage createPage( - PageContext context, ListKeysResponse response) { + @Nullable PageContext context, + @Nullable ListKeysResponse response) { return new ListKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1444,7 +1447,7 @@ public static class ListKeysFixedSizeCollection extends AbstractFixedSizeCollection< ListKeysRequest, ListKeysResponse, Key, ListKeysPage, ListKeysFixedSizeCollection> { - private ListKeysFixedSizeCollection(List pages, int collectionSize) { + private ListKeysFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1454,7 +1457,7 @@ private static ListKeysFixedSizeCollection createEmptyCollection() { @Override protected ListKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysSettings.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysSettings.java index 3fc448492d26..0916c6c3f090 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysSettings.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/ApiKeysSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApiKeysStubSettings.newBuilder(clientContext)); } diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStub.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStub.java index f9ad42fbc06c..1e63b003140f 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStub.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class ApiKeysStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java index 4555102d4be5..0a8ca99d6a92 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/ApiKeysStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -468,7 +469,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/KeyName.java b/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/KeyName.java index b715c55d8af9..da7832682257 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/KeyName.java +++ b/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/KeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String key) { return newBuilder().setProject(project).setLocation(location).setKey(key).build().toString(); } - public static KeyName parse(String formattedString) { + public static @Nullable KeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyName> values) { List list = new ArrayList<>(values.size()); for (KeyName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/LocationName.java b/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/LocationName.java index 52c3ce0d1ad7..e263aa788e96 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/LocationName.java +++ b/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsClient.java index e904aa3c37ea..31e557ee4bf7 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsClient.java @@ -29,6 +29,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. /** @@ -189,7 +190,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ApplicationsClient implements BackgroundResource { - private final ApplicationsSettings settings; + private final @Nullable ApplicationsSettings settings; private final ApplicationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -236,7 +237,7 @@ protected ApplicationsClient(ApplicationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ApplicationsSettings getSettings() { + public final @Nullable ApplicationsSettings getSettings() { return settings; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.java index 1435c9b57df3..c98c69a9183b 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ApplicationsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ApplicationsStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java index 28c50869e78a..267a7a6669cc 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesClient.java @@ -33,6 +33,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AuthorizedCertificatesClient implements BackgroundResource { - private final AuthorizedCertificatesSettings settings; + private final @Nullable AuthorizedCertificatesSettings settings; private final AuthorizedCertificatesStub stub; /** Constructs an instance of AuthorizedCertificatesClient with default settings. */ @@ -244,7 +245,7 @@ protected AuthorizedCertificatesClient(AuthorizedCertificatesStub stub) { this.stub = stub; } - public final AuthorizedCertificatesSettings getSettings() { + public final @Nullable AuthorizedCertificatesSettings getSettings() { return settings; } @@ -686,12 +687,13 @@ public static class ListAuthorizedCertificatesPage ListAuthorizedCertificatesPage> { private ListAuthorizedCertificatesPage( - PageContext< + @Nullable + PageContext< ListAuthorizedCertificatesRequest, ListAuthorizedCertificatesResponse, AuthorizedCertificate> context, - ListAuthorizedCertificatesResponse response) { + @Nullable ListAuthorizedCertificatesResponse response) { super(context, response); } @@ -701,18 +703,20 @@ private static ListAuthorizedCertificatesPage createEmptyPage() { @Override protected ListAuthorizedCertificatesPage createPage( - PageContext< + @Nullable + PageContext< ListAuthorizedCertificatesRequest, ListAuthorizedCertificatesResponse, AuthorizedCertificate> context, - ListAuthorizedCertificatesResponse response) { + @Nullable ListAuthorizedCertificatesResponse response) { return new ListAuthorizedCertificatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAuthorizedCertificatesRequest, ListAuthorizedCertificatesResponse, AuthorizedCertificate> @@ -731,7 +735,7 @@ public static class ListAuthorizedCertificatesFixedSizeCollection ListAuthorizedCertificatesFixedSizeCollection> { private ListAuthorizedCertificatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -741,7 +745,7 @@ private static ListAuthorizedCertificatesFixedSizeCollection createEmptyCollecti @Override protected ListAuthorizedCertificatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthorizedCertificatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.java index 99b0610a4ca4..ba6652166458 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedCertificatesSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AuthorizedCertificatesStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsClient.java index 0a681f2cce74..d4d016786a6b 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AuthorizedDomainsClient implements BackgroundResource { - private final AuthorizedDomainsSettings settings; + private final @Nullable AuthorizedDomainsSettings settings; private final AuthorizedDomainsStub stub; /** Constructs an instance of AuthorizedDomainsClient with default settings. */ @@ -189,7 +190,7 @@ protected AuthorizedDomainsClient(AuthorizedDomainsStub stub) { this.stub = stub; } - public final AuthorizedDomainsSettings getSettings() { + public final @Nullable AuthorizedDomainsSettings getSettings() { return settings; } @@ -367,9 +368,11 @@ public static class ListAuthorizedDomainsPage ListAuthorizedDomainsPage> { private ListAuthorizedDomainsPage( - PageContext + @Nullable + PageContext< + ListAuthorizedDomainsRequest, ListAuthorizedDomainsResponse, AuthorizedDomain> context, - ListAuthorizedDomainsResponse response) { + @Nullable ListAuthorizedDomainsResponse response) { super(context, response); } @@ -379,15 +382,19 @@ private static ListAuthorizedDomainsPage createEmptyPage() { @Override protected ListAuthorizedDomainsPage createPage( - PageContext + @Nullable + PageContext< + ListAuthorizedDomainsRequest, ListAuthorizedDomainsResponse, AuthorizedDomain> context, - ListAuthorizedDomainsResponse response) { + @Nullable ListAuthorizedDomainsResponse response) { return new ListAuthorizedDomainsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListAuthorizedDomainsRequest, ListAuthorizedDomainsResponse, AuthorizedDomain> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -403,7 +410,7 @@ public static class ListAuthorizedDomainsFixedSizeCollection ListAuthorizedDomainsFixedSizeCollection> { private ListAuthorizedDomainsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -413,7 +420,7 @@ private static ListAuthorizedDomainsFixedSizeCollection createEmptyCollection() @Override protected ListAuthorizedDomainsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthorizedDomainsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsSettings.java index 377cfe1140b4..c7f7f46cbbc9 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/AuthorizedDomainsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AuthorizedDomainsStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsClient.java index 120d4d23e97d..fd2d702a88d7 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsClient.java @@ -38,6 +38,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. /** @@ -201,7 +202,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DomainMappingsClient implements BackgroundResource { - private final DomainMappingsSettings settings; + private final @Nullable DomainMappingsSettings settings; private final DomainMappingsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -249,7 +250,7 @@ protected DomainMappingsClient(DomainMappingsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DomainMappingsSettings getSettings() { + public final @Nullable DomainMappingsSettings getSettings() { return settings; } @@ -773,8 +774,9 @@ public static class ListDomainMappingsPage ListDomainMappingsPage> { private ListDomainMappingsPage( - PageContext context, - ListDomainMappingsResponse response) { + @Nullable PageContext + context, + @Nullable ListDomainMappingsResponse response) { super(context, response); } @@ -784,14 +786,16 @@ private static ListDomainMappingsPage createEmptyPage() { @Override protected ListDomainMappingsPage createPage( - PageContext context, - ListDomainMappingsResponse response) { + @Nullable PageContext + context, + @Nullable ListDomainMappingsResponse response) { return new ListDomainMappingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -806,7 +810,7 @@ public static class ListDomainMappingsFixedSizeCollection ListDomainMappingsFixedSizeCollection> { private ListDomainMappingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -816,7 +820,7 @@ private static ListDomainMappingsFixedSizeCollection createEmptyCollection() { @Override protected ListDomainMappingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDomainMappingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsSettings.java index f17c508cbf2b..c268cac76f2e 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/DomainMappingsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -240,7 +241,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DomainMappingsStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallClient.java index 7ef3941019a4..09b314f7b20a 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallClient.java @@ -34,6 +34,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. /** @@ -219,7 +220,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirewallClient implements BackgroundResource { - private final FirewallSettings settings; + private final @Nullable FirewallSettings settings; private final FirewallStub stub; /** Constructs an instance of FirewallClient with default settings. */ @@ -257,7 +258,7 @@ protected FirewallClient(FirewallStub stub) { this.stub = stub; } - public final FirewallSettings getSettings() { + public final @Nullable FirewallSettings getSettings() { return settings; } @@ -719,8 +720,9 @@ public static class ListIngressRulesPage ListIngressRulesRequest, ListIngressRulesResponse, FirewallRule, ListIngressRulesPage> { private ListIngressRulesPage( - PageContext context, - ListIngressRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListIngressRulesResponse response) { super(context, response); } @@ -730,14 +732,16 @@ private static ListIngressRulesPage createEmptyPage() { @Override protected ListIngressRulesPage createPage( - PageContext context, - ListIngressRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListIngressRulesResponse response) { return new ListIngressRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -752,7 +756,7 @@ public static class ListIngressRulesFixedSizeCollection ListIngressRulesFixedSizeCollection> { private ListIngressRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -762,7 +766,7 @@ private static ListIngressRulesFixedSizeCollection createEmptyCollection() { @Override protected ListIngressRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIngressRulesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallSettings.java index 86973f4d0ada..0622f04bb920 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/FirewallSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -199,7 +200,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirewallStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesClient.java index 16f57845a3a0..200010becfdc 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesClient.java @@ -38,6 +38,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. /** @@ -188,7 +189,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstancesClient implements BackgroundResource { - private final InstancesSettings settings; + private final @Nullable InstancesSettings settings; private final InstancesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -234,7 +235,7 @@ protected InstancesClient(InstancesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final InstancesSettings getSettings() { + public final @Nullable InstancesSettings getSettings() { return settings; } @@ -696,8 +697,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -707,14 +708,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -728,7 +729,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -738,7 +740,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesSettings.java index 0630a5b1f10a..c1d5b971d4e8 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/InstancesSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstancesStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesClient.java index 5b115d9668b0..f8bc87f9f2b3 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesClient.java @@ -38,6 +38,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. /** @@ -184,7 +185,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServicesClient implements BackgroundResource { - private final ServicesSettings settings; + private final @Nullable ServicesSettings settings; private final ServicesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -230,7 +231,7 @@ protected ServicesClient(ServicesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ServicesSettings getSettings() { + public final @Nullable ServicesSettings getSettings() { return settings; } @@ -637,8 +638,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -648,14 +649,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -669,7 +670,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -679,7 +681,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesSettings.java index 6d1453cfd9d3..e4ad37ab8404 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/ServicesSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsClient.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsClient.java index 0def9c60684e..4af161b019d8 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsClient.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsClient.java @@ -38,6 +38,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. /** @@ -236,7 +237,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VersionsClient implements BackgroundResource { - private final VersionsSettings settings; + private final @Nullable VersionsSettings settings; private final VersionsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -282,7 +283,7 @@ protected VersionsClient(VersionsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VersionsSettings getSettings() { + public final @Nullable VersionsSettings getSettings() { return settings; } @@ -925,8 +926,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -936,14 +937,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -957,7 +958,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -967,7 +969,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsSettings.java index eb4c42f297ff..3f60f54a02a5 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/VersionsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStub.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStub.java index 59ccebe1a77b..4572b7dab4de 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStub.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,11 +41,12 @@ @Generated("by gapic-generator-java") public abstract class ApplicationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java index 16d0f9546060..7d34b12ef8b0 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ApplicationsStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -293,7 +294,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); } @@ -377,7 +378,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java index 7064a3d1b4f9..e1fdd4cc2e6a 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedCertificatesStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -348,7 +349,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); } @@ -430,7 +431,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAuthorizedCertificatesSettings = diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java index 91a138f35998..a7ea3bbca5ed 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/AuthorizedDomainsStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,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); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAuthorizedDomainsSettings = diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStub.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStub.java index b1fe402a0ccd..5c7a2f2ae2d2 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStub.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStub.java @@ -34,6 +34,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class DomainMappingsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java index debeac6f00fe..8ef607c7d647 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/DomainMappingsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,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); } @@ -467,7 +468,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDomainMappingsSettings = PagedCallSettings.newBuilder(LIST_DOMAIN_MAPPINGS_PAGE_STR_FACT); diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java index f0898c43be03..3d8dba6fc726 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/FirewallStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -323,7 +324,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); } @@ -400,7 +401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listIngressRulesSettings = PagedCallSettings.newBuilder(LIST_INGRESS_RULES_PAGE_STR_FACT); diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStub.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStub.java index 2f049bb4dac5..a73279dfbacd 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStub.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStub.java @@ -33,6 +33,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class InstancesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java index b0d5946b7b29..d4f1fc7d2b3a 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/InstancesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,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); } @@ -420,7 +421,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStub.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStub.java index cabc6aa0321e..07c8c43ef2a3 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStub.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStub.java @@ -33,6 +33,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class ServicesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java index 3ba55bdef100..fefbc03cf6e4 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/ServicesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,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); } @@ -419,7 +420,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStub.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStub.java index 252732651627..af1bc41fff41 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStub.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStub.java @@ -35,6 +35,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class VersionsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java index 28ee30e4c8e8..9c738b99fb91 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/VersionsStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -362,7 +363,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); } @@ -441,7 +442,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVersionsSettings = PagedCallSettings.newBuilder(LIST_VERSIONS_PAGE_STR_FACT); diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java index efbbedf43fd4..e439e19a583c 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java @@ -48,6 +48,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. /** @@ -735,7 +736,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AppHubClient implements BackgroundResource { - private final AppHubSettings settings; + private final @Nullable AppHubSettings settings; private final AppHubStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -781,7 +782,7 @@ protected AppHubClient(AppHubStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AppHubSettings getSettings() { + public final @Nullable AppHubSettings getSettings() { return settings; } @@ -832,7 +833,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachment( - LocationName name) { + @Nullable LocationName name) { LookupServiceProjectAttachmentRequest request = LookupServiceProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -959,7 +960,7 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttachments( - LocationName parent) { + @Nullable LocationName parent) { ListServiceProjectAttachmentsRequest request = ListServiceProjectAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1150,7 +1151,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach */ public final OperationFuture createServiceProjectAttachmentAsync( - LocationName parent, + @Nullable LocationName parent, ServiceProjectAttachment serviceProjectAttachment, String serviceProjectAttachmentId) { CreateServiceProjectAttachmentRequest request = @@ -1334,7 +1335,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceProjectAttachment getServiceProjectAttachment( - ServiceProjectAttachmentName name) { + @Nullable ServiceProjectAttachmentName name) { GetServiceProjectAttachmentRequest request = GetServiceProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1463,7 +1464,7 @@ public final ServiceProjectAttachment getServiceProjectAttachment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceProjectAttachmentAsync( - ServiceProjectAttachmentName name) { + @Nullable ServiceProjectAttachmentName name) { DeleteServiceProjectAttachmentRequest request = DeleteServiceProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1627,7 +1628,7 @@ public final OperationFuture deleteServiceProjectAttac * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachment( - LocationName name) { + @Nullable LocationName name) { DetachServiceProjectAttachmentRequest request = DetachServiceProjectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1751,7 +1752,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDiscoveredServicesPagedResponse listDiscoveredServices(LocationName parent) { + public final ListDiscoveredServicesPagedResponse listDiscoveredServices( + @Nullable LocationName parent) { ListDiscoveredServicesRequest request = ListDiscoveredServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1924,7 +1926,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices( * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscoveredService getDiscoveredService(DiscoveredServiceName name) { + public final DiscoveredService getDiscoveredService(@Nullable DiscoveredServiceName name) { GetDiscoveredServiceRequest request = GetDiscoveredServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2048,7 +2050,7 @@ public final DiscoveredService getDiscoveredService(GetDiscoveredServiceRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredServiceResponse lookupDiscoveredService( - LocationName parent, String uri) { + @Nullable LocationName parent, String uri) { LookupDiscoveredServiceRequest request = LookupDiscoveredServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2172,7 +2174,7 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(ApplicationName parent) { + public final ListServicesPagedResponse listServices(@Nullable ApplicationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2346,7 +2348,7 @@ public final UnaryCallable listServic * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - ApplicationName parent, Service service, String serviceId) { + @Nullable ApplicationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2511,7 +2513,7 @@ public final UnaryCallable createServiceCallabl * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -2753,7 +2755,8 @@ public final UnaryCallable updateServiceCallabl * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -2906,7 +2909,8 @@ public final UnaryCallable deleteServiceCallabl * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(LocationName parent) { + public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( + @Nullable LocationName parent) { ListDiscoveredWorkloadsRequest request = ListDiscoveredWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3080,7 +3084,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( * format: `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscoveredWorkload getDiscoveredWorkload(DiscoveredWorkloadName name) { + public final DiscoveredWorkload getDiscoveredWorkload(@Nullable DiscoveredWorkloadName name) { GetDiscoveredWorkloadRequest request = GetDiscoveredWorkloadRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3205,7 +3209,7 @@ public final DiscoveredWorkload getDiscoveredWorkload(GetDiscoveredWorkloadReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( - LocationName parent, String uri) { + @Nullable LocationName parent, String uri) { LookupDiscoveredWorkloadRequest request = LookupDiscoveredWorkloadRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3331,7 +3335,7 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(ApplicationName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable ApplicationName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3505,7 +3509,7 @@ public final UnaryCallable listWork * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkloadAsync( - ApplicationName parent, Workload workload, String workloadId) { + @Nullable ApplicationName parent, Workload workload, String workloadId) { CreateWorkloadRequest request = CreateWorkloadRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3670,7 +3674,7 @@ public final UnaryCallable createWorkloadCalla * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workload getWorkload(WorkloadName name) { + public final Workload getWorkload(@Nullable WorkloadName name) { GetWorkloadRequest request = GetWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkload(request); @@ -3912,7 +3916,8 @@ public final UnaryCallable updateWorkloadCalla * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteWorkloadAsync(WorkloadName name) { + public final OperationFuture deleteWorkloadAsync( + @Nullable WorkloadName name) { DeleteWorkloadRequest request = DeleteWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWorkloadAsync(request); @@ -4065,7 +4070,7 @@ public final UnaryCallable deleteWorkloadCalla * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApplicationsPagedResponse listApplications(LocationName parent) { + public final ListApplicationsPagedResponse listApplications(@Nullable LocationName parent) { ListApplicationsRequest request = ListApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4243,7 +4248,7 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createApplicationAsync( - LocationName parent, Application application, String applicationId) { + @Nullable LocationName parent, Application application, String applicationId) { CreateApplicationRequest request = CreateApplicationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4409,7 +4414,7 @@ public final UnaryCallable createApplicatio * `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Application getApplication(ApplicationName name) { + public final Application getApplication(@Nullable ApplicationName name) { GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApplication(request); @@ -4649,7 +4654,7 @@ public final UnaryCallable updateApplicatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApplicationAsync( - ApplicationName name) { + @Nullable ApplicationName name) { DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5190,12 +5195,13 @@ public static class ListServiceProjectAttachmentsPage ListServiceProjectAttachmentsPage> { private ListServiceProjectAttachmentsPage( - PageContext< + @Nullable + PageContext< ListServiceProjectAttachmentsRequest, ListServiceProjectAttachmentsResponse, ServiceProjectAttachment> context, - ListServiceProjectAttachmentsResponse response) { + @Nullable ListServiceProjectAttachmentsResponse response) { super(context, response); } @@ -5205,18 +5211,20 @@ private static ListServiceProjectAttachmentsPage createEmptyPage() { @Override protected ListServiceProjectAttachmentsPage createPage( - PageContext< + @Nullable + PageContext< ListServiceProjectAttachmentsRequest, ListServiceProjectAttachmentsResponse, ServiceProjectAttachment> context, - ListServiceProjectAttachmentsResponse response) { + @Nullable ListServiceProjectAttachmentsResponse response) { return new ListServiceProjectAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListServiceProjectAttachmentsRequest, ListServiceProjectAttachmentsResponse, ServiceProjectAttachment> @@ -5235,7 +5243,7 @@ public static class ListServiceProjectAttachmentsFixedSizeCollection ListServiceProjectAttachmentsFixedSizeCollection> { private ListServiceProjectAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5245,7 +5253,7 @@ private static ListServiceProjectAttachmentsFixedSizeCollection createEmptyColle @Override protected ListServiceProjectAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceProjectAttachmentsFixedSizeCollection(pages, collectionSize); } } @@ -5284,10 +5292,11 @@ public static class ListDiscoveredServicesPage ListDiscoveredServicesPage> { private ListDiscoveredServicesPage( - PageContext< + @Nullable + PageContext< ListDiscoveredServicesRequest, ListDiscoveredServicesResponse, DiscoveredService> context, - ListDiscoveredServicesResponse response) { + @Nullable ListDiscoveredServicesResponse response) { super(context, response); } @@ -5297,16 +5306,18 @@ private static ListDiscoveredServicesPage createEmptyPage() { @Override protected ListDiscoveredServicesPage createPage( - PageContext< + @Nullable + PageContext< ListDiscoveredServicesRequest, ListDiscoveredServicesResponse, DiscoveredService> context, - ListDiscoveredServicesResponse response) { + @Nullable ListDiscoveredServicesResponse response) { return new ListDiscoveredServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDiscoveredServicesRequest, ListDiscoveredServicesResponse, DiscoveredService> context, ApiFuture futureResponse) { @@ -5323,7 +5334,7 @@ public static class ListDiscoveredServicesFixedSizeCollection ListDiscoveredServicesFixedSizeCollection> { private ListDiscoveredServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5333,7 +5344,7 @@ private static ListDiscoveredServicesFixedSizeCollection createEmptyCollection() @Override protected ListDiscoveredServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiscoveredServicesFixedSizeCollection(pages, collectionSize); } } @@ -5366,8 +5377,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -5377,14 +5388,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5398,7 +5409,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5408,7 +5420,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -5447,10 +5459,11 @@ public static class ListDiscoveredWorkloadsPage ListDiscoveredWorkloadsPage> { private ListDiscoveredWorkloadsPage( - PageContext< + @Nullable + PageContext< ListDiscoveredWorkloadsRequest, ListDiscoveredWorkloadsResponse, DiscoveredWorkload> context, - ListDiscoveredWorkloadsResponse response) { + @Nullable ListDiscoveredWorkloadsResponse response) { super(context, response); } @@ -5460,16 +5473,18 @@ private static ListDiscoveredWorkloadsPage createEmptyPage() { @Override protected ListDiscoveredWorkloadsPage createPage( - PageContext< + @Nullable + PageContext< ListDiscoveredWorkloadsRequest, ListDiscoveredWorkloadsResponse, DiscoveredWorkload> context, - ListDiscoveredWorkloadsResponse response) { + @Nullable ListDiscoveredWorkloadsResponse response) { return new ListDiscoveredWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDiscoveredWorkloadsRequest, ListDiscoveredWorkloadsResponse, DiscoveredWorkload> context, ApiFuture futureResponse) { @@ -5486,7 +5501,7 @@ public static class ListDiscoveredWorkloadsFixedSizeCollection ListDiscoveredWorkloadsFixedSizeCollection> { private ListDiscoveredWorkloadsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5496,7 +5511,7 @@ private static ListDiscoveredWorkloadsFixedSizeCollection createEmptyCollection( @Override protected ListDiscoveredWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiscoveredWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -5530,8 +5545,8 @@ public static class ListWorkloadsPage ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage> { private ListWorkloadsPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -5541,14 +5556,14 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5562,7 +5577,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5572,7 +5588,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -5606,8 +5622,9 @@ public static class ListApplicationsPage ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { private ListApplicationsPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { super(context, response); } @@ -5617,14 +5634,16 @@ private static ListApplicationsPage createEmptyPage() { @Override protected ListApplicationsPage createPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { return new ListApplicationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5639,7 +5658,7 @@ public static class ListApplicationsFixedSizeCollection ListApplicationsFixedSizeCollection> { private ListApplicationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5649,7 +5668,7 @@ private static ListApplicationsFixedSizeCollection createEmptyCollection() { @Override protected ListApplicationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApplicationsFixedSizeCollection(pages, collectionSize); } } @@ -5683,8 +5702,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5694,14 +5713,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5715,7 +5734,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5725,7 +5745,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubSettings.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubSettings.java index f3f52cdc8bdd..225f8c5079ae 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubSettings.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -445,7 +446,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); } @@ -465,7 +466,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppHubStubSettings.newBuilder(clientContext)); } diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStub.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStub.java index 672f18022447..8edf9777dca3 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStub.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStub.java @@ -85,6 +85,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,11 +97,12 @@ @Generated("by gapic-generator-java") public abstract class AppHubStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java index 3c05858b0394..a65316106563 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/AppHubStubSettings.java @@ -119,6 +119,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1071,7 +1072,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); } @@ -1299,7 +1300,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); lookupServiceProjectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationName.java index 053cb2a8040f..7e9fd2106135 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String application) .toString(); } - public static ApplicationName parse(String formattedString) { + public static @Nullable ApplicationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApplicationName> values) { List list = new ArrayList<>(values.size()); for (ApplicationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredServiceName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredServiceName.java index 688cdf6d289d..6a16446d91e8 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredServiceName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String discoveredSe .toString(); } - public static DiscoveredServiceName parse(String formattedString) { + public static @Nullable DiscoveredServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiscoveredServiceName> values) { List list = new ArrayList<>(values.size()); for (DiscoveredServiceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredWorkloadName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredWorkloadName.java index db89381488c7..1a13727f5a96 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredWorkloadName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DiscoveredWorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String discoveredWo .toString(); } - public static DiscoveredWorkloadName parse(String formattedString) { + public static @Nullable DiscoveredWorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiscoveredWorkloadName> values) { List list = new ArrayList<>(values.size()); for (DiscoveredWorkloadName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LocationName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LocationName.java index 2940bdbb867d..b08cfe376afb 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LocationName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceName.java index 30addc1140cd..4ac42f03dd19 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String application, .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceProjectAttachmentName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceProjectAttachmentName.java index 2a0d3e3265bb..d03cc0fae1b2 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceProjectAttachmentName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ServiceProjectAttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String serviceProje .toString(); } - public static ServiceProjectAttachmentName parse(String formattedString) { + public static @Nullable ServiceProjectAttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceProjectAttachmentName> values) { List list = new ArrayList<>(values.size()); for (ServiceProjectAttachmentName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/WorkloadName.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/WorkloadName.java index c73e034289ac..e49028cac13f 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/WorkloadName.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/WorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkloadName parse(String formattedString) { + public static @Nullable WorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkloadName> values) { List list = new ArrayList<>(values.size()); for (WorkloadName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeClient.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeClient.java index 03aad04b8c2e..83c17be1bf62 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeClient.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeClient.java @@ -43,6 +43,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. /** @@ -262,7 +263,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AppOptimizeClient implements BackgroundResource { - private final AppOptimizeSettings settings; + private final @Nullable AppOptimizeSettings settings; private final AppOptimizeStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -309,7 +310,7 @@ protected AppOptimizeClient(AppOptimizeStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AppOptimizeSettings getSettings() { + public final @Nullable AppOptimizeSettings getSettings() { return settings; } @@ -369,7 +370,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReportAsync( - LocationName parent, Report report, String reportId) { + @Nullable LocationName parent, Report report, String reportId) { CreateReportRequest request = CreateReportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -546,7 +547,7 @@ public final UnaryCallable createReportCallable( *

Format: `projects/{project}/locations/{location}/reports/{report_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Report getReport(ReportName name) { + public final Report getReport(@Nullable ReportName name) { GetReportRequest request = GetReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReport(request); @@ -658,7 +659,7 @@ public final UnaryCallable getReportCallable() { *

Format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportsPagedResponse listReports(LocationName parent) { + public final ListReportsPagedResponse listReports(@Nullable LocationName parent) { ListReportsRequest request = ListReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final UnaryCallable listReportsC *

Format: `projects/{project}/locations/{location}/reports/{report_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReport(ReportName name) { + public final void deleteReport(@Nullable ReportName name) { DeleteReportRequest request = DeleteReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteReport(request); @@ -933,7 +934,7 @@ public final UnaryCallable deleteReportCallable() { *

Format: `projects/{project}/locations/{location}/reports/{report_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReadReportPagedResponse readReport(ReportName name) { + public final ReadReportPagedResponse readReport(@Nullable ReportName name) { ReadReportRequest request = ReadReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return readReport(request); @@ -1319,8 +1320,8 @@ public static class ListReportsPage extends AbstractPage { private ListReportsPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { super(context, response); } @@ -1330,14 +1331,14 @@ private static ListReportsPage createEmptyPage() { @Override protected ListReportsPage createPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { return new ListReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1351,7 +1352,8 @@ public static class ListReportsFixedSizeCollection ListReportsPage, ListReportsFixedSizeCollection> { - private ListReportsFixedSizeCollection(List pages, int collectionSize) { + private ListReportsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1361,7 +1363,7 @@ private static ListReportsFixedSizeCollection createEmptyCollection() { @Override protected ListReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportsFixedSizeCollection(pages, collectionSize); } } @@ -1392,8 +1394,8 @@ public static class ReadReportPage extends AbstractPage { private ReadReportPage( - PageContext context, - ReadReportResponse response) { + @Nullable PageContext context, + @Nullable ReadReportResponse response) { super(context, response); } @@ -1403,14 +1405,14 @@ private static ReadReportPage createEmptyPage() { @Override protected ReadReportPage createPage( - PageContext context, - ReadReportResponse response) { + @Nullable PageContext context, + @Nullable ReadReportResponse response) { return new ReadReportPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1424,7 +1426,8 @@ public static class ReadReportFixedSizeCollection ReadReportPage, ReadReportFixedSizeCollection> { - private ReadReportFixedSizeCollection(List pages, int collectionSize) { + private ReadReportFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1434,7 +1437,7 @@ private static ReadReportFixedSizeCollection createEmptyCollection() { @Override protected ReadReportFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ReadReportFixedSizeCollection(pages, collectionSize); } } @@ -1468,8 +1471,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1479,14 +1482,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1500,7 +1503,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1510,7 +1514,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeSettings.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeSettings.java index 2fab844d61c2..46058b6a63cb 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeSettings.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/AppOptimizeSettings.java @@ -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. /** @@ -223,7 +224,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppOptimizeStubSettings.newBuilder(clientContext)); } diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStub.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStub.java index de5fe55c05a0..0839a39db61d 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStub.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class AppOptimizeStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStubSettings.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStubSettings.java index 0c4c2e2ef6b0..a75c6e9b2139 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStubSettings.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/AppOptimizeStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -472,7 +473,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); } @@ -569,7 +570,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/LocationName.java b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/LocationName.java index dd9bcb740f32..682b00a696d9 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/LocationName.java +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/ReportName.java b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/ReportName.java index ee9f734e42e8..8249ceeec633 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/ReportName.java +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/src/main/java/com/google/cloud/appoptimize/v1beta/ReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String report) { .toString(); } - public static ReportName parse(String formattedString) { + public static @Nullable ReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportName> values) { List list = new ArrayList<>(values.size()); for (ReportName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceClient.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceClient.java index 18cc3528d8f4..1ebedb69992d 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceClient.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceClient.java @@ -58,6 +58,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. /** @@ -360,7 +361,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TablesServiceClient implements BackgroundResource { - private final TablesServiceSettings settings; + private final @Nullable TablesServiceSettings settings; private final TablesServiceStub stub; /** Constructs an instance of TablesServiceClient with default settings. */ @@ -400,7 +401,7 @@ protected TablesServiceClient(TablesServiceStub stub) { this.stub = stub; } - public final TablesServiceSettings getSettings() { + public final @Nullable TablesServiceSettings getSettings() { return settings; } @@ -429,7 +430,7 @@ public TablesServiceStub getStub() { * @param name Required. The name of the table to retrieve. Format: tables/{table} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table getTable(TableName name) { + public final Table getTable(@Nullable TableName name) { GetTableRequest request = GetTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTable(request); @@ -631,7 +632,7 @@ public final UnaryCallable listTablesCall * @param name Required. The name of the workspace to retrieve. Format: workspaces/{workspace} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { + public final Workspace getWorkspace(@Nullable WorkspaceName name) { GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkspace(request); @@ -841,7 +842,7 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * @param name Required. The name of the row to retrieve. Format: tables/{table}/rows/{row} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Row getRow(RowName name) { + public final Row getRow(@Nullable RowName name) { GetRowRequest request = GetRowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRow(request); @@ -1379,7 +1380,7 @@ public final BatchUpdateRowsResponse batchUpdateRows(BatchUpdateRowsRequest requ * @param name Required. The name of the row to delete. Format: tables/{table}/rows/{row} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRow(RowName name) { + public final void deleteRow(@Nullable RowName name) { DeleteRowRequest request = DeleteRowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRow(request); @@ -1575,8 +1576,8 @@ public static class ListTablesPage extends AbstractPage { private ListTablesPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { super(context, response); } @@ -1586,14 +1587,14 @@ private static ListTablesPage createEmptyPage() { @Override protected ListTablesPage createPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { return new ListTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1607,7 +1608,8 @@ public static class ListTablesFixedSizeCollection ListTablesPage, ListTablesFixedSizeCollection> { - private ListTablesFixedSizeCollection(List pages, int collectionSize) { + private ListTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1617,7 +1619,7 @@ private static ListTablesFixedSizeCollection createEmptyCollection() { @Override protected ListTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTablesFixedSizeCollection(pages, collectionSize); } } @@ -1651,8 +1653,8 @@ public static class ListWorkspacesPage ListWorkspacesRequest, ListWorkspacesResponse, Workspace, ListWorkspacesPage> { private ListWorkspacesPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { super(context, response); } @@ -1662,14 +1664,14 @@ private static ListWorkspacesPage createEmptyPage() { @Override protected ListWorkspacesPage createPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { return new ListWorkspacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1683,7 +1685,8 @@ public static class ListWorkspacesFixedSizeCollection ListWorkspacesPage, ListWorkspacesFixedSizeCollection> { - private ListWorkspacesFixedSizeCollection(List pages, int collectionSize) { + private ListWorkspacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1693,7 +1696,7 @@ private static ListWorkspacesFixedSizeCollection createEmptyCollection() { @Override protected ListWorkspacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkspacesFixedSizeCollection(pages, collectionSize); } } @@ -1720,7 +1723,8 @@ public static class ListRowsPage extends AbstractPage { private ListRowsPage( - PageContext context, ListRowsResponse response) { + @Nullable PageContext context, + @Nullable ListRowsResponse response) { super(context, response); } @@ -1730,13 +1734,14 @@ private static ListRowsPage createEmptyPage() { @Override protected ListRowsPage createPage( - PageContext context, ListRowsResponse response) { + @Nullable PageContext context, + @Nullable ListRowsResponse response) { return new ListRowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1746,7 +1751,7 @@ public static class ListRowsFixedSizeCollection extends AbstractFixedSizeCollection< ListRowsRequest, ListRowsResponse, Row, ListRowsPage, ListRowsFixedSizeCollection> { - private ListRowsFixedSizeCollection(List pages, int collectionSize) { + private ListRowsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1756,7 +1761,7 @@ private static ListRowsFixedSizeCollection createEmptyCollection() { @Override protected ListRowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRowsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceSettings.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceSettings.java index e5460f891585..5700b8164632 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceSettings.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/TablesServiceSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,7 +236,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); } @@ -255,7 +256,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TablesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java index f12af7d6da80..efaeff305248 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/TablesServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -481,7 +482,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); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/RowName.java b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/RowName.java index 8e21f6cec32b..552d39146506 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/RowName.java +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/RowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String table, String row) { return newBuilder().setTable(table).setRow(row).build().toString(); } - public static RowName parse(String formattedString) { + public static @Nullable RowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RowName> values) { List list = new ArrayList<>(values.size()); for (RowName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TableName.java b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TableName.java index 654cbbecb848..c8cf28b5bb00 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TableName.java +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String table) { return newBuilder().setTable(table).build().toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -82,7 +83,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -124,7 +125,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/WorkspaceName.java b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/WorkspaceName.java index d34918dc3cb4..0551a9ed6da8 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/WorkspaceName.java +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/src/main/java/com/google/area120/tables/v1alpha1/WorkspaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String workspace) { return newBuilder().setWorkspace(workspace).build().toString(); } - public static WorkspaceName parse(String formattedString) { + public static @Nullable WorkspaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkspaceName> values) { List list = new ArrayList<>(values.size()); for (WorkspaceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java index d83b7f4df995..0549d6ceab2f 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java @@ -48,6 +48,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. /** @@ -1110,7 +1111,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ArtifactRegistryClient implements BackgroundResource { - private final ArtifactRegistrySettings settings; + private final @Nullable ArtifactRegistrySettings settings; private final ArtifactRegistryStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1158,7 +1159,7 @@ protected ArtifactRegistryClient(ArtifactRegistryStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ArtifactRegistrySettings getSettings() { + public final @Nullable ArtifactRegistrySettings getSettings() { return settings; } @@ -1342,7 +1343,7 @@ public final ListDockerImagesPagedResponse listDockerImages(ListDockerImagesRequ * @param name Required. The name of the docker images. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DockerImage getDockerImage(DockerImageName name) { + public final DockerImage getDockerImage(@Nullable DockerImageName name) { GetDockerImageRequest request = GetDockerImageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDockerImage(request); @@ -1459,7 +1460,7 @@ public final UnaryCallable getDockerImageCal * @param parent Required. The name of the parent resource whose maven artifacts will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMavenArtifactsPagedResponse listMavenArtifacts(RepositoryName parent) { + public final ListMavenArtifactsPagedResponse listMavenArtifacts(@Nullable RepositoryName parent) { ListMavenArtifactsRequest request = ListMavenArtifactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1625,7 +1626,7 @@ public final ListMavenArtifactsPagedResponse listMavenArtifacts( * @param name Required. The name of the maven artifact. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MavenArtifact getMavenArtifact(MavenArtifactName name) { + public final MavenArtifact getMavenArtifact(@Nullable MavenArtifactName name) { GetMavenArtifactRequest request = GetMavenArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMavenArtifact(request); @@ -1744,7 +1745,7 @@ public final UnaryCallable getMavenArtif * @param parent Required. The name of the parent resource whose npm packages will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNpmPackagesPagedResponse listNpmPackages(RepositoryName parent) { + public final ListNpmPackagesPagedResponse listNpmPackages(@Nullable RepositoryName parent) { ListNpmPackagesRequest request = ListNpmPackagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1907,7 +1908,7 @@ public final ListNpmPackagesPagedResponse listNpmPackages(ListNpmPackagesRequest * @param name Required. The name of the npm package. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NpmPackage getNpmPackage(NpmPackageName name) { + public final NpmPackage getNpmPackage(@Nullable NpmPackageName name) { GetNpmPackageRequest request = GetNpmPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNpmPackage(request); @@ -2023,7 +2024,7 @@ public final UnaryCallable getNpmPackageCallab * @param parent Required. The name of the parent resource whose python packages will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPythonPackagesPagedResponse listPythonPackages(RepositoryName parent) { + public final ListPythonPackagesPagedResponse listPythonPackages(@Nullable RepositoryName parent) { ListPythonPackagesRequest request = ListPythonPackagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2189,7 +2190,7 @@ public final ListPythonPackagesPagedResponse listPythonPackages( * @param name Required. The name of the python package. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PythonPackage getPythonPackage(PythonPackageName name) { + public final PythonPackage getPythonPackage(@Nullable PythonPackageName name) { GetPythonPackageRequest request = GetPythonPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPythonPackage(request); @@ -2484,7 +2485,7 @@ public final UnaryCallable importYumArtifa * @param parent Required. The name of the parent resource whose repositories will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable LocationName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2653,7 +2654,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * @param name Required. The name of the repository to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -2769,7 +2770,7 @@ public final UnaryCallable getRepositoryCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRepositoryAsync( - LocationName parent, Repository repository, String repositoryId) { + @Nullable LocationName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3027,7 +3028,7 @@ public final UnaryCallable updateRepository * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRepositoryAsync( - RepositoryName name) { + @Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRepositoryAsync(request); @@ -3176,7 +3177,7 @@ public final UnaryCallable deleteRepositoryC * @param parent Required. The name of the parent resource whose packages will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPackagesPagedResponse listPackages(RepositoryName parent) { + public final ListPackagesPagedResponse listPackages(@Nullable RepositoryName parent) { ListPackagesRequest request = ListPackagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3342,7 +3343,7 @@ public final UnaryCallable listPackag * @param name Required. The name of the package to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Package getPackage(PackageName name) { + public final Package getPackage(@Nullable PackageName name) { GetPackageRequest request = GetPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPackage(request); @@ -3454,7 +3455,8 @@ public final UnaryCallable getPackageCallable() { * @param name Required. The name of the package to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePackageAsync(PackageName name) { + public final OperationFuture deletePackageAsync( + @Nullable PackageName name) { DeletePackageRequest request = DeletePackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deletePackageAsync(request); @@ -3940,7 +3942,7 @@ public final UnaryCallable deleteVersionCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteVersionsAsync( - PackageName parent, List names) { + @Nullable PackageName parent, List names) { BatchDeleteVersionsRequest request = BatchDeleteVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4193,7 +4195,7 @@ public final UnaryCallable updateVersionCallable( * "projects/p1/locations/us-central1/repositories/repo1 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFilesPagedResponse listFiles(RepositoryName parent) { + public final ListFilesPagedResponse listFiles(@Nullable RepositoryName parent) { ListFilesRequest request = ListFilesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFiles(request); @@ -4356,7 +4358,7 @@ public final UnaryCallable listFilesCallabl * @param name Required. The name of the file to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final File getFile(FileName name) { + public final File getFile(@Nullable FileName name) { GetFileRequest request = GetFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFile(request); @@ -4465,7 +4467,7 @@ public final UnaryCallable getFileCallable() { * @param name Required. The name of the file to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFileAsync(FileName name) { + public final OperationFuture deleteFileAsync(@Nullable FileName name) { DeleteFileRequest request = DeleteFileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFileAsync(request); @@ -5159,7 +5161,7 @@ public final UnaryCallable deleteTagCallable() { * @param ruleId The rule id to use for this repository. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rule createRule(RepositoryName parent, Rule rule, String ruleId) { + public final Rule createRule(@Nullable RepositoryName parent, Rule rule, String ruleId) { CreateRuleRequest request = CreateRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5283,7 +5285,7 @@ public final UnaryCallable createRuleCallable() { * example: `projects/p1/locations/us-central1/repositories/repo1`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRulesPagedResponse listRules(RepositoryName parent) { + public final ListRulesPagedResponse listRules(@Nullable RepositoryName parent) { ListRulesRequest request = ListRulesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRules(request); @@ -5440,7 +5442,7 @@ public final UnaryCallable listRulesCallabl * @param name Required. The name of the rule to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rule getRule(RuleName name) { + public final Rule getRule(@Nullable RuleName name) { GetRuleRequest request = GetRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRule(request); @@ -5635,7 +5637,7 @@ public final UnaryCallable updateRuleCallable() { * @param name Required. The name of the rule to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRule(RuleName name) { + public final void deleteRule(@Nullable RuleName name) { DeleteRuleRequest request = DeleteRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRule(request); @@ -5918,7 +5920,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @param name Required. The name of the projectSettings resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings getProjectSettings(ProjectSettingsName name) { + public final ProjectSettings getProjectSettings(@Nullable ProjectSettingsName name) { GetProjectSettingsRequest request = GetProjectSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6124,7 +6126,7 @@ public final ProjectSettings updateProjectSettings(UpdateProjectSettingsRequest * @param name Required. The name of the VPCSCConfig resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VPCSCConfig getVPCSCConfig(VpcscConfigName name) { + public final VPCSCConfig getVPCSCConfig(@Nullable VpcscConfigName name) { GetVPCSCConfigRequest request = GetVPCSCConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVPCSCConfig(request); @@ -6413,7 +6415,7 @@ public final UnaryCallable updatePackageCallable( * @param parent Required. The name of the parent resource whose attachments will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttachmentsPagedResponse listAttachments(RepositoryName parent) { + public final ListAttachmentsPagedResponse listAttachments(@Nullable RepositoryName parent) { ListAttachmentsRequest request = ListAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6579,7 +6581,7 @@ public final ListAttachmentsPagedResponse listAttachments(ListAttachmentsRequest * @param name Required. The name of the attachment to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attachment getAttachment(AttachmentName name) { + public final Attachment getAttachment(@Nullable AttachmentName name) { GetAttachmentRequest request = GetAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttachment(request); @@ -6700,7 +6702,7 @@ public final UnaryCallable getAttachmentCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAttachmentAsync( - RepositoryName parent, Attachment attachment, String attachmentId) { + @Nullable RepositoryName parent, Attachment attachment, String attachmentId) { CreateAttachmentRequest request = CreateAttachmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6868,7 +6870,7 @@ public final UnaryCallable createAttachmentC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAttachmentAsync( - AttachmentName name) { + @Nullable AttachmentName name) { DeleteAttachmentRequest request = DeleteAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAttachmentAsync(request); @@ -7324,8 +7326,9 @@ public static class ListDockerImagesPage ListDockerImagesRequest, ListDockerImagesResponse, DockerImage, ListDockerImagesPage> { private ListDockerImagesPage( - PageContext context, - ListDockerImagesResponse response) { + @Nullable PageContext + context, + @Nullable ListDockerImagesResponse response) { super(context, response); } @@ -7335,14 +7338,16 @@ private static ListDockerImagesPage createEmptyPage() { @Override protected ListDockerImagesPage createPage( - PageContext context, - ListDockerImagesResponse response) { + @Nullable PageContext + context, + @Nullable ListDockerImagesResponse response) { return new ListDockerImagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7357,7 +7362,7 @@ public static class ListDockerImagesFixedSizeCollection ListDockerImagesFixedSizeCollection> { private ListDockerImagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7367,7 +7372,7 @@ private static ListDockerImagesFixedSizeCollection createEmptyCollection() { @Override protected ListDockerImagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDockerImagesFixedSizeCollection(pages, collectionSize); } } @@ -7404,8 +7409,9 @@ public static class ListMavenArtifactsPage ListMavenArtifactsPage> { private ListMavenArtifactsPage( - PageContext context, - ListMavenArtifactsResponse response) { + @Nullable PageContext + context, + @Nullable ListMavenArtifactsResponse response) { super(context, response); } @@ -7415,14 +7421,16 @@ private static ListMavenArtifactsPage createEmptyPage() { @Override protected ListMavenArtifactsPage createPage( - PageContext context, - ListMavenArtifactsResponse response) { + @Nullable PageContext + context, + @Nullable ListMavenArtifactsResponse response) { return new ListMavenArtifactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7437,7 +7445,7 @@ public static class ListMavenArtifactsFixedSizeCollection ListMavenArtifactsFixedSizeCollection> { private ListMavenArtifactsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7447,7 +7455,7 @@ private static ListMavenArtifactsFixedSizeCollection createEmptyCollection() { @Override protected ListMavenArtifactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMavenArtifactsFixedSizeCollection(pages, collectionSize); } } @@ -7481,8 +7489,8 @@ public static class ListNpmPackagesPage ListNpmPackagesRequest, ListNpmPackagesResponse, NpmPackage, ListNpmPackagesPage> { private ListNpmPackagesPage( - PageContext context, - ListNpmPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListNpmPackagesResponse response) { super(context, response); } @@ -7492,14 +7500,14 @@ private static ListNpmPackagesPage createEmptyPage() { @Override protected ListNpmPackagesPage createPage( - PageContext context, - ListNpmPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListNpmPackagesResponse response) { return new ListNpmPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7514,7 +7522,7 @@ public static class ListNpmPackagesFixedSizeCollection ListNpmPackagesFixedSizeCollection> { private ListNpmPackagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7524,7 +7532,7 @@ private static ListNpmPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListNpmPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNpmPackagesFixedSizeCollection(pages, collectionSize); } } @@ -7561,8 +7569,9 @@ public static class ListPythonPackagesPage ListPythonPackagesPage> { private ListPythonPackagesPage( - PageContext context, - ListPythonPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListPythonPackagesResponse response) { super(context, response); } @@ -7572,14 +7581,16 @@ private static ListPythonPackagesPage createEmptyPage() { @Override protected ListPythonPackagesPage createPage( - PageContext context, - ListPythonPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListPythonPackagesResponse response) { return new ListPythonPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7594,7 +7605,7 @@ public static class ListPythonPackagesFixedSizeCollection ListPythonPackagesFixedSizeCollection> { private ListPythonPackagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7604,7 +7615,7 @@ private static ListPythonPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListPythonPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPythonPackagesFixedSizeCollection(pages, collectionSize); } } @@ -7638,8 +7649,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -7649,14 +7661,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7671,7 +7685,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7681,7 +7695,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -7714,8 +7728,8 @@ public static class ListPackagesPage extends AbstractPage { private ListPackagesPage( - PageContext context, - ListPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListPackagesResponse response) { super(context, response); } @@ -7725,14 +7739,14 @@ private static ListPackagesPage createEmptyPage() { @Override protected ListPackagesPage createPage( - PageContext context, - ListPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListPackagesResponse response) { return new ListPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7746,7 +7760,8 @@ public static class ListPackagesFixedSizeCollection ListPackagesPage, ListPackagesFixedSizeCollection> { - private ListPackagesFixedSizeCollection(List pages, int collectionSize) { + private ListPackagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7756,7 +7771,7 @@ private static ListPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPackagesFixedSizeCollection(pages, collectionSize); } } @@ -7789,8 +7804,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -7800,14 +7815,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7821,7 +7836,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7831,7 +7847,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -7858,8 +7874,8 @@ public static class ListFilesPage extends AbstractPage { private ListFilesPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { super(context, response); } @@ -7869,14 +7885,14 @@ private static ListFilesPage createEmptyPage() { @Override protected ListFilesPage createPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { return new ListFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7886,7 +7902,7 @@ public static class ListFilesFixedSizeCollection extends AbstractFixedSizeCollection< ListFilesRequest, ListFilesResponse, File, ListFilesPage, ListFilesFixedSizeCollection> { - private ListFilesFixedSizeCollection(List pages, int collectionSize) { + private ListFilesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7896,7 +7912,7 @@ private static ListFilesFixedSizeCollection createEmptyCollection() { @Override protected ListFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFilesFixedSizeCollection(pages, collectionSize); } } @@ -7923,7 +7939,8 @@ public static class ListTagsPage extends AbstractPage { private ListTagsPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { super(context, response); } @@ -7933,13 +7950,14 @@ private static ListTagsPage createEmptyPage() { @Override protected ListTagsPage createPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { return new ListTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7949,7 +7967,7 @@ public static class ListTagsFixedSizeCollection extends AbstractFixedSizeCollection< ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - private ListTagsFixedSizeCollection(List pages, int collectionSize) { + private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7959,7 +7977,7 @@ private static ListTagsFixedSizeCollection createEmptyCollection() { @Override protected ListTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagsFixedSizeCollection(pages, collectionSize); } } @@ -7986,8 +8004,8 @@ public static class ListRulesPage extends AbstractPage { private ListRulesPage( - PageContext context, - ListRulesResponse response) { + @Nullable PageContext context, + @Nullable ListRulesResponse response) { super(context, response); } @@ -7997,14 +8015,14 @@ private static ListRulesPage createEmptyPage() { @Override protected ListRulesPage createPage( - PageContext context, - ListRulesResponse response) { + @Nullable PageContext context, + @Nullable ListRulesResponse response) { return new ListRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8014,7 +8032,7 @@ public static class ListRulesFixedSizeCollection extends AbstractFixedSizeCollection< ListRulesRequest, ListRulesResponse, Rule, ListRulesPage, ListRulesFixedSizeCollection> { - private ListRulesFixedSizeCollection(List pages, int collectionSize) { + private ListRulesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8024,7 +8042,7 @@ private static ListRulesFixedSizeCollection createEmptyCollection() { @Override protected ListRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRulesFixedSizeCollection(pages, collectionSize); } } @@ -8058,8 +8076,8 @@ public static class ListAttachmentsPage ListAttachmentsRequest, ListAttachmentsResponse, Attachment, ListAttachmentsPage> { private ListAttachmentsPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { super(context, response); } @@ -8069,14 +8087,14 @@ private static ListAttachmentsPage createEmptyPage() { @Override protected ListAttachmentsPage createPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { return new ListAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8091,7 +8109,7 @@ public static class ListAttachmentsFixedSizeCollection ListAttachmentsFixedSizeCollection> { private ListAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8101,7 +8119,7 @@ private static ListAttachmentsFixedSizeCollection createEmptyCollection() { @Override protected ListAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttachmentsFixedSizeCollection(pages, collectionSize); } } @@ -8135,8 +8153,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8146,14 +8164,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8167,7 +8185,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8177,7 +8196,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java index 61079a53b441..88c28a15a87d 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -547,7 +548,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); } @@ -567,7 +568,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ArtifactRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java index 28c364dd56be..c56d27a2a062 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java @@ -125,6 +125,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -136,11 +137,12 @@ @Generated("by gapic-generator-java") public abstract class ArtifactRegistryStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java index 9a1d71566e0a..7a922756556f 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java @@ -159,6 +159,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1445,7 +1446,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); } @@ -1689,7 +1690,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDockerImagesSettings = PagedCallSettings.newBuilder(LIST_DOCKER_IMAGES_PAGE_STR_FACT); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryClient.java index f842043dc5eb..c89184cfd7db 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistryClient.java @@ -48,6 +48,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. /** @@ -629,7 +630,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ArtifactRegistryClient implements BackgroundResource { - private final ArtifactRegistrySettings settings; + private final @Nullable ArtifactRegistrySettings settings; private final ArtifactRegistryStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -677,7 +678,7 @@ protected ArtifactRegistryClient(ArtifactRegistryStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ArtifactRegistrySettings getSettings() { + public final @Nullable ArtifactRegistrySettings getSettings() { return settings; } @@ -901,7 +902,7 @@ public final UnaryCallable importYumArtifa * @param parent Required. The name of the parent resource whose repositories will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable LocationName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1064,7 +1065,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * @param name Required. The name of the repository to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -1180,7 +1181,7 @@ public final UnaryCallable getRepositoryCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRepositoryAsync( - LocationName parent, Repository repository, String repositoryId) { + @Nullable LocationName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1438,7 +1439,7 @@ public final UnaryCallable updateRepository * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRepositoryAsync( - RepositoryName name) { + @Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRepositoryAsync(request); @@ -3073,7 +3074,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @param name Required. The name of the projectSettings resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectSettings getProjectSettings(ProjectSettingsName name) { + public final ProjectSettings getProjectSettings(@Nullable ProjectSettingsName name) { GetProjectSettingsRequest request = GetProjectSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3473,8 +3474,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -3484,14 +3486,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3506,7 +3510,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3516,7 +3520,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -3549,8 +3553,8 @@ public static class ListPackagesPage extends AbstractPage { private ListPackagesPage( - PageContext context, - ListPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListPackagesResponse response) { super(context, response); } @@ -3560,14 +3564,14 @@ private static ListPackagesPage createEmptyPage() { @Override protected ListPackagesPage createPage( - PageContext context, - ListPackagesResponse response) { + @Nullable PageContext context, + @Nullable ListPackagesResponse response) { return new ListPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3581,7 +3585,8 @@ public static class ListPackagesFixedSizeCollection ListPackagesPage, ListPackagesFixedSizeCollection> { - private ListPackagesFixedSizeCollection(List pages, int collectionSize) { + private ListPackagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3591,7 +3596,7 @@ private static ListPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPackagesFixedSizeCollection(pages, collectionSize); } } @@ -3624,8 +3629,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -3635,14 +3640,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3656,7 +3661,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3666,7 +3672,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -3693,8 +3699,8 @@ public static class ListFilesPage extends AbstractPage { private ListFilesPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { super(context, response); } @@ -3704,14 +3710,14 @@ private static ListFilesPage createEmptyPage() { @Override protected ListFilesPage createPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { return new ListFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3721,7 +3727,7 @@ public static class ListFilesFixedSizeCollection extends AbstractFixedSizeCollection< ListFilesRequest, ListFilesResponse, File, ListFilesPage, ListFilesFixedSizeCollection> { - private ListFilesFixedSizeCollection(List pages, int collectionSize) { + private ListFilesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3731,7 +3737,7 @@ private static ListFilesFixedSizeCollection createEmptyCollection() { @Override protected ListFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFilesFixedSizeCollection(pages, collectionSize); } } @@ -3758,7 +3764,8 @@ public static class ListTagsPage extends AbstractPage { private ListTagsPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { super(context, response); } @@ -3768,13 +3775,14 @@ private static ListTagsPage createEmptyPage() { @Override protected ListTagsPage createPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { return new ListTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3784,7 +3792,7 @@ public static class ListTagsFixedSizeCollection extends AbstractFixedSizeCollection< ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - private ListTagsFixedSizeCollection(List pages, int collectionSize) { + private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3794,7 +3802,7 @@ private static ListTagsFixedSizeCollection createEmptyCollection() { @Override protected ListTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagsFixedSizeCollection(pages, collectionSize); } } @@ -3828,8 +3836,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3839,14 +3847,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3860,7 +3868,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3870,7 +3879,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistrySettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistrySettings.java index 810f13c06956..1a874868e4db 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistrySettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/ArtifactRegistrySettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -374,7 +375,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); } @@ -394,7 +395,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ArtifactRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStub.java index a01b1ee27459..96561b9bb67d 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStub.java @@ -79,6 +79,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -91,11 +92,12 @@ @Generated("by gapic-generator-java") public abstract class ArtifactRegistryStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java index 61a3d123a0ff..bd6799c31db9 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/ArtifactRegistryStubSettings.java @@ -112,6 +112,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -849,7 +850,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); } @@ -1020,7 +1021,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); importAptArtifactsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java index 0fd49054078a..8b13ed13056f 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/AttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AttachmentName parse(String formattedString) { + public static @Nullable AttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachmentName> values) { List list = new ArrayList<>(values.size()); for (AttachmentName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageName.java index 5a71b80e8bf6..c431b8b53e86 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DockerImageName parse(String formattedString) { + public static @Nullable DockerImageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DockerImageName> values) { List list = new ArrayList<>(values.size()); for (DockerImageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileName.java index 77077e827b03..a961d0e3627e 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String repository, .toString(); } - public static FileName parse(String formattedString) { + public static @Nullable FileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FileName> values) { List list = new ArrayList<>(values.size()); for (FileName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java index 20ad3a290969..584d46d0bf04 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/MavenArtifactName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/MavenArtifactName.java index 9f1169c93959..39acfdacadd4 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/MavenArtifactName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/MavenArtifactName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MavenArtifactName parse(String formattedString) { + public static @Nullable MavenArtifactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MavenArtifactName> values) { List list = new ArrayList<>(values.size()); for (MavenArtifactName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/NpmPackageName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/NpmPackageName.java index 87c1b24eefac..47c0c07f24b3 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/NpmPackageName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/NpmPackageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static NpmPackageName parse(String formattedString) { + public static @Nullable NpmPackageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NpmPackageName> values) { List list = new ArrayList<>(values.size()); for (NpmPackageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageName.java index 5b0a87887613..47823b2624c2 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PackageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String repository, .toString(); } - public static PackageName parse(String formattedString) { + public static @Nullable PackageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PackageName> values) { List list = new ArrayList<>(values.size()); for (PackageName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsName.java index c3752938eded..6915375f3140 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ProjectSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectSettingsName parse(String formattedString) { + public static @Nullable ProjectSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectSettingsName> values) { List list = new ArrayList<>(values.size()); for (ProjectSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PythonPackageName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PythonPackageName.java index cd7b917a7a17..529d5d986f94 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PythonPackageName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/PythonPackageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static PythonPackageName parse(String formattedString) { + public static @Nullable PythonPackageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PythonPackageName> values) { List list = new ArrayList<>(values.size()); for (PythonPackageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryName.java index a2c598f8d8cc..0a5f1ca71f21 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String repository) .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java index d1c784ec2ca0..0c41ca7d19ad 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String repository, .toString(); } - public static RuleName parse(String formattedString) { + public static @Nullable RuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleName> values) { List list = new ArrayList<>(values.size()); for (RuleName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java index ca301b02211d..720c7a5d72d1 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TagName parse(String formattedString) { + public static @Nullable TagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagName> values) { List list = new ArrayList<>(values.size()); for (TagName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionName.java index 1f8086ca1935..7eeeab4829c4 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VpcscConfigName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VpcscConfigName.java index df7cbec3dca0..56bdb9e30a1b 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VpcscConfigName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/VpcscConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static VpcscConfigName parse(String formattedString) { + public static @Nullable VpcscConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VpcscConfigName> values) { List list = new ArrayList<>(values.size()); for (VpcscConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/LocationName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/LocationName.java index 63b4c3f5da86..3306d1327e78 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/LocationName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ProjectSettingsName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ProjectSettingsName.java index e00af05ee61c..33294827bf5c 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ProjectSettingsName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/ProjectSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectSettingsName parse(String formattedString) { + public static @Nullable ProjectSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectSettingsName> values) { List list = new ArrayList<>(values.size()); for (ProjectSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/RepositoryName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/RepositoryName.java index c562dc0ec921..52ae2e4b5ebe 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/RepositoryName.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/src/main/java/com/google/devtools/artifactregistry/v1beta2/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String repository) .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 10a1997dec2b..a30239114dd1 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -40,6 +40,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. /** @@ -587,7 +588,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -634,7 +635,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } @@ -806,7 +807,7 @@ public final UnaryCallable exportAssetsCallable( * (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(ResourceName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable ResourceName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -1141,7 +1142,7 @@ public final UnaryCallable createFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feed getFeed(FeedName name) { + public final Feed getFeed(@Nullable FeedName name) { GetFeedRequest request = GetFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeed(request); @@ -1418,7 +1419,7 @@ public final UnaryCallable updateFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFeed(FeedName name) { + public final void deleteFeed(@Nullable FeedName name) { DeleteFeedRequest request = DeleteFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFeed(request); @@ -2341,7 +2342,7 @@ public final UnaryCallable queryAssetsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - FolderName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable FolderName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2385,7 +2386,7 @@ public final SavedQuery createSavedQuery( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - OrganizationName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable OrganizationName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2429,7 +2430,7 @@ public final SavedQuery createSavedQuery( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - ProjectName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable ProjectName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2570,7 +2571,7 @@ public final UnaryCallable createSavedQuery * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SavedQuery getSavedQuery(SavedQueryName name) { + public final SavedQuery getSavedQuery(@Nullable SavedQueryName name) { GetSavedQueryRequest request = GetSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSavedQuery(request); @@ -2690,7 +2691,7 @@ public final UnaryCallable getSavedQueryCallab * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(FolderName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable FolderName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2723,7 +2724,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(FolderName parent) { * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(OrganizationName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable OrganizationName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2756,7 +2757,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(OrganizationName par * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(ProjectName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable ProjectName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3028,7 +3029,7 @@ public final UnaryCallable updateSavedQuery * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSavedQuery(SavedQueryName name) { + public final void deleteSavedQuery(@Nullable SavedQueryName name) { DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSavedQuery(request); @@ -3971,8 +3972,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -3982,14 +3983,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4003,7 +4004,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4013,7 +4015,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -4051,9 +4053,10 @@ public static class SearchAllResourcesPage SearchAllResourcesPage> { private SearchAllResourcesPage( - PageContext + @Nullable + PageContext context, - SearchAllResourcesResponse response) { + @Nullable SearchAllResourcesResponse response) { super(context, response); } @@ -4063,15 +4066,17 @@ private static SearchAllResourcesPage createEmptyPage() { @Override protected SearchAllResourcesPage createPage( - PageContext + @Nullable + PageContext context, - SearchAllResourcesResponse response) { + @Nullable SearchAllResourcesResponse response) { return new SearchAllResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4087,7 +4092,7 @@ public static class SearchAllResourcesFixedSizeCollection SearchAllResourcesFixedSizeCollection> { private SearchAllResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4097,7 +4102,7 @@ private static SearchAllResourcesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllResourcesFixedSizeCollection(pages, collectionSize); } } @@ -4136,10 +4141,11 @@ public static class SearchAllIamPoliciesPage SearchAllIamPoliciesPage> { private SearchAllIamPoliciesPage( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, - SearchAllIamPoliciesResponse response) { + @Nullable SearchAllIamPoliciesResponse response) { super(context, response); } @@ -4149,16 +4155,18 @@ private static SearchAllIamPoliciesPage createEmptyPage() { @Override protected SearchAllIamPoliciesPage createPage( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, - SearchAllIamPoliciesResponse response) { + @Nullable SearchAllIamPoliciesResponse response) { return new SearchAllIamPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, ApiFuture futureResponse) { @@ -4175,7 +4183,7 @@ public static class SearchAllIamPoliciesFixedSizeCollection SearchAllIamPoliciesFixedSizeCollection> { private SearchAllIamPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4185,7 +4193,7 @@ private static SearchAllIamPoliciesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllIamPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllIamPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -4219,8 +4227,9 @@ public static class ListSavedQueriesPage ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { private ListSavedQueriesPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { super(context, response); } @@ -4230,14 +4239,16 @@ private static ListSavedQueriesPage createEmptyPage() { @Override protected ListSavedQueriesPage createPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSavedQueriesResponse response) { return new ListSavedQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4252,7 +4263,7 @@ public static class ListSavedQueriesFixedSizeCollection ListSavedQueriesFixedSizeCollection> { private ListSavedQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4262,7 +4273,7 @@ private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSavedQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); } } @@ -4303,12 +4314,13 @@ public static class AnalyzeOrgPoliciesPage AnalyzeOrgPoliciesPage> { private AnalyzeOrgPoliciesPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesResponse.OrgPolicyResult> context, - AnalyzeOrgPoliciesResponse response) { + @Nullable AnalyzeOrgPoliciesResponse response) { super(context, response); } @@ -4318,18 +4330,20 @@ private static AnalyzeOrgPoliciesPage createEmptyPage() { @Override protected AnalyzeOrgPoliciesPage createPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesResponse.OrgPolicyResult> context, - AnalyzeOrgPoliciesResponse response) { + @Nullable AnalyzeOrgPoliciesResponse response) { return new AnalyzeOrgPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesResponse.OrgPolicyResult> @@ -4348,7 +4362,7 @@ public static class AnalyzeOrgPoliciesFixedSizeCollection AnalyzeOrgPoliciesFixedSizeCollection> { private AnalyzeOrgPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4358,7 +4372,7 @@ private static AnalyzeOrgPoliciesFixedSizeCollection createEmptyCollection() { @Override protected AnalyzeOrgPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AnalyzeOrgPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -4401,12 +4415,13 @@ public static class AnalyzeOrgPolicyGovernedContainersPage AnalyzeOrgPolicyGovernedContainersPage> { private AnalyzeOrgPolicyGovernedContainersPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedContainersRequest, AnalyzeOrgPolicyGovernedContainersResponse, AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer> context, - AnalyzeOrgPolicyGovernedContainersResponse response) { + @Nullable AnalyzeOrgPolicyGovernedContainersResponse response) { super(context, response); } @@ -4416,18 +4431,20 @@ private static AnalyzeOrgPolicyGovernedContainersPage createEmptyPage() { @Override protected AnalyzeOrgPolicyGovernedContainersPage createPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedContainersRequest, AnalyzeOrgPolicyGovernedContainersResponse, AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer> context, - AnalyzeOrgPolicyGovernedContainersResponse response) { + @Nullable AnalyzeOrgPolicyGovernedContainersResponse response) { return new AnalyzeOrgPolicyGovernedContainersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedContainersRequest, AnalyzeOrgPolicyGovernedContainersResponse, AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer> @@ -4446,7 +4463,7 @@ public static class AnalyzeOrgPolicyGovernedContainersFixedSizeCollection AnalyzeOrgPolicyGovernedContainersFixedSizeCollection> { private AnalyzeOrgPolicyGovernedContainersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4456,7 +4473,7 @@ private static AnalyzeOrgPolicyGovernedContainersFixedSizeCollection createEmpty @Override protected AnalyzeOrgPolicyGovernedContainersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AnalyzeOrgPolicyGovernedContainersFixedSizeCollection(pages, collectionSize); } } @@ -4498,12 +4515,13 @@ public static class AnalyzeOrgPolicyGovernedAssetsPage AnalyzeOrgPolicyGovernedAssetsPage> { private AnalyzeOrgPolicyGovernedAssetsPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedAssetsRequest, AnalyzeOrgPolicyGovernedAssetsResponse, AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> context, - AnalyzeOrgPolicyGovernedAssetsResponse response) { + @Nullable AnalyzeOrgPolicyGovernedAssetsResponse response) { super(context, response); } @@ -4513,18 +4531,20 @@ private static AnalyzeOrgPolicyGovernedAssetsPage createEmptyPage() { @Override protected AnalyzeOrgPolicyGovernedAssetsPage createPage( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedAssetsRequest, AnalyzeOrgPolicyGovernedAssetsResponse, AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> context, - AnalyzeOrgPolicyGovernedAssetsResponse response) { + @Nullable AnalyzeOrgPolicyGovernedAssetsResponse response) { return new AnalyzeOrgPolicyGovernedAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AnalyzeOrgPolicyGovernedAssetsRequest, AnalyzeOrgPolicyGovernedAssetsResponse, AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset> @@ -4543,7 +4563,7 @@ public static class AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection> { private AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4553,7 +4573,7 @@ private static AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection createEmptyColl @Override protected AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AnalyzeOrgPolicyGovernedAssetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java index eec741d842a1..bd4831fa610f 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -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. /** @@ -335,7 +336,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); } @@ -355,7 +356,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java index e9fb3c96b21a..2f0a4694a422 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java @@ -73,6 +73,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -84,11 +85,12 @@ @Generated("by gapic-generator-java") public abstract class AssetServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index b777d191025e..261c6fb344bf 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -110,6 +110,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -965,7 +966,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); } @@ -1189,7 +1190,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAssetsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java index da6956018f56..477c1b1ed0b3 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java @@ -33,6 +33,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. /** @@ -164,7 +165,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; /** Constructs an instance of AssetServiceClient with default settings. */ @@ -203,7 +204,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.stub = stub; } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } @@ -625,9 +626,11 @@ public static class SearchAllResourcesPage SearchAllResourcesPage> { private SearchAllResourcesPage( - PageContext + @Nullable + PageContext< + SearchAllResourcesRequest, SearchAllResourcesResponse, StandardResourceMetadata> context, - SearchAllResourcesResponse response) { + @Nullable SearchAllResourcesResponse response) { super(context, response); } @@ -637,15 +640,19 @@ private static SearchAllResourcesPage createEmptyPage() { @Override protected SearchAllResourcesPage createPage( - PageContext + @Nullable + PageContext< + SearchAllResourcesRequest, SearchAllResourcesResponse, StandardResourceMetadata> context, - SearchAllResourcesResponse response) { + @Nullable SearchAllResourcesResponse response) { return new SearchAllResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SearchAllResourcesRequest, SearchAllResourcesResponse, StandardResourceMetadata> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -661,7 +668,7 @@ public static class SearchAllResourcesFixedSizeCollection SearchAllResourcesFixedSizeCollection> { private SearchAllResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -671,7 +678,7 @@ private static SearchAllResourcesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllResourcesFixedSizeCollection(pages, collectionSize); } } @@ -710,10 +717,11 @@ public static class SearchAllIamPoliciesPage SearchAllIamPoliciesPage> { private SearchAllIamPoliciesPage( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, - SearchAllIamPoliciesResponse response) { + @Nullable SearchAllIamPoliciesResponse response) { super(context, response); } @@ -723,16 +731,18 @@ private static SearchAllIamPoliciesPage createEmptyPage() { @Override protected SearchAllIamPoliciesPage createPage( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, - SearchAllIamPoliciesResponse response) { + @Nullable SearchAllIamPoliciesResponse response) { return new SearchAllIamPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> context, ApiFuture futureResponse) { @@ -749,7 +759,7 @@ public static class SearchAllIamPoliciesFixedSizeCollection SearchAllIamPoliciesFixedSizeCollection> { private SearchAllIamPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -759,7 +769,7 @@ private static SearchAllIamPoliciesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllIamPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllIamPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java index ffc7cee53bd4..9ce976d35db6 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java index d80feb758fac..2d2a48bb7cbb 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -373,7 +374,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); } @@ -446,7 +447,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchAllResourcesSettings = PagedCallSettings.newBuilder(SEARCH_ALL_RESOURCES_PAGE_STR_FACT); diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java index aa92480c8536..05754b208d15 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java @@ -26,6 +26,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. /** @@ -206,7 +207,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; /** Constructs an instance of AssetServiceClient with default settings. */ @@ -245,7 +246,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.stub = stub; } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } @@ -364,7 +365,7 @@ public final UnaryCallable createFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feed getFeed(FeedName name) { + public final Feed getFeed(@Nullable FeedName name) { GetFeedRequest request = GetFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeed(request); @@ -641,7 +642,7 @@ public final UnaryCallable updateFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFeed(FeedName name) { + public final void deleteFeed(@Nullable FeedName name) { DeleteFeedRequest request = DeleteFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFeed(request); diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java index 68f5fa6aa551..4299b9e9270f 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,7 +170,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); } @@ -189,7 +190,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java index 891bed6301ab..4380a17cf1ce 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,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); } @@ -326,7 +327,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFeedSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java index 876705b76b7d..41ed408c1235 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java @@ -34,6 +34,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. /** @@ -162,7 +163,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; /** Constructs an instance of AssetServiceClient with default settings. */ @@ -201,7 +202,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.stub = stub; } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } @@ -253,7 +254,7 @@ public AssetServiceStub getStub() { * (such as "projects/12345"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(ResourceName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable ResourceName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -474,8 +475,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -485,14 +486,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -506,7 +507,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -516,7 +518,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java index 25b8b4e6fe53..08d6eb74e84a 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java index a3e11679bb22..dc626f4c8c4f 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -343,7 +344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAssetsSettings = PagedCallSettings.newBuilder(LIST_ASSETS_PAGE_STR_FACT); diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java index 3c2afa116658..51f8d6f94fa0 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java @@ -29,6 +29,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. /** @@ -127,7 +128,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; private final OperationsClient operationsClient; @@ -169,7 +170,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java index fb8b368ebec2..b975d54eeaad 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java index f084e9a529f1..8472588f4d23 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -38,7 +39,7 @@ @Generated("by gapic-generator-java") public abstract class AssetServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java index d47e28e859e9..5e1dd24855e7 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -289,7 +290,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAssetsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java index 32ec89a94285..a7a6a45ce4bc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatOrganizationFeedName(String organization, String feed .toString(); } - public static FeedName parse(String formattedString) { + public static @Nullable FeedName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeedName> values) { List list = new ArrayList<>(values.size()); for (FeedName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java index 29369cb83590..30599d73e61a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java index 0cadf25e6184..98c09c52f224 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java index 9692dc4e38e0..2a774cf44f19 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatOrganizationSavedQueryName(String organization, Strin .toString(); } - public static SavedQueryName parse(String formattedString) { + public static @Nullable SavedQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -185,7 +186,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SavedQueryName> values) { List list = new ArrayList<>(values.size()); for (SavedQueryName value : values) { if (value == null) { @@ -238,7 +239,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java index c21d326cdba3..b9c1b702b528 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatOrganizationFeedName(String organization, String feed .toString(); } - public static FeedName parse(String formattedString) { + public static @Nullable FeedName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeedName> values) { List list = new ArrayList<>(values.size()); for (FeedName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java index 4c5914cda8db..caa73b67b82b 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java @@ -39,6 +39,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. /** @@ -296,7 +297,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AssuredWorkloadsServiceClient implements BackgroundResource { - private final AssuredWorkloadsServiceSettings settings; + private final @Nullable AssuredWorkloadsServiceSettings settings; private final AssuredWorkloadsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -345,7 +346,7 @@ protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AssuredWorkloadsServiceSettings getSettings() { + public final @Nullable AssuredWorkloadsServiceSettings getSettings() { return settings; } @@ -396,7 +397,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkloadAsync( - LocationName parent, Workload workload) { + @Nullable LocationName parent, Workload workload) { CreateWorkloadRequest request = CreateWorkloadRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -717,7 +718,7 @@ public final RestrictAllowedResourcesResponse restrictAllowedResources( * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkload(WorkloadName name) { + public final void deleteWorkload(@Nullable WorkloadName name) { DeleteWorkloadRequest request = DeleteWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWorkload(request); @@ -839,7 +840,7 @@ public final UnaryCallable deleteWorkloadCallable( * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workload getWorkload(WorkloadName name) { + public final Workload getWorkload(@Nullable WorkloadName name) { GetWorkloadRequest request = GetWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkload(request); @@ -958,7 +959,7 @@ public final UnaryCallable getWorkloadCallable() { * `organizations/{org_id}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(LocationName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable LocationName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1134,7 +1135,7 @@ public final UnaryCallable listWork * `organizations/{org_id}/locations/{location}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListViolationsPagedResponse listViolations(WorkloadName parent) { + public final ListViolationsPagedResponse listViolations(@Nullable WorkloadName parent) { ListViolationsRequest request = ListViolationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1322,7 +1323,7 @@ public final ListViolationsPagedResponse listViolations(ListViolationsRequest re * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Violation getViolation(ViolationName name) { + public final Violation getViolation(@Nullable ViolationName name) { GetViolationRequest request = GetViolationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getViolation(request); @@ -1547,8 +1548,8 @@ public static class ListWorkloadsPage ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage> { private ListWorkloadsPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -1558,14 +1559,14 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1579,7 +1580,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1589,7 +1591,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -1623,8 +1625,8 @@ public static class ListViolationsPage ListViolationsRequest, ListViolationsResponse, Violation, ListViolationsPage> { private ListViolationsPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { super(context, response); } @@ -1634,14 +1636,14 @@ private static ListViolationsPage createEmptyPage() { @Override protected ListViolationsPage createPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { return new ListViolationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1655,7 +1657,8 @@ public static class ListViolationsFixedSizeCollection ListViolationsPage, ListViolationsFixedSizeCollection> { - private ListViolationsFixedSizeCollection(List pages, int collectionSize) { + private ListViolationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1665,7 +1668,7 @@ private static ListViolationsFixedSizeCollection createEmptyCollection() { @Override protected ListViolationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViolationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java index 4fbf055c5295..13ae8590611b 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -258,7 +259,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssuredWorkloadsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java index 5c3170975d55..25b1892baee8 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class AssuredWorkloadsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java index 08425b1c6c85..f6d30ba5a820 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/AssuredWorkloadsServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -442,7 +443,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); } @@ -531,7 +532,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java index 064e815cc497..de8b43f7fe2f 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java @@ -39,6 +39,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. /** @@ -262,7 +263,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssuredWorkloadsServiceClient implements BackgroundResource { - private final AssuredWorkloadsServiceSettings settings; + private final @Nullable AssuredWorkloadsServiceSettings settings; private final AssuredWorkloadsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -311,7 +312,7 @@ protected AssuredWorkloadsServiceClient(AssuredWorkloadsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AssuredWorkloadsServiceSettings getSettings() { + public final @Nullable AssuredWorkloadsServiceSettings getSettings() { return settings; } @@ -362,7 +363,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkloadAsync( - LocationName parent, Workload workload) { + @Nullable LocationName parent, Workload workload) { CreateWorkloadRequest request = CreateWorkloadRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -685,7 +686,7 @@ public final RestrictAllowedResourcesResponse restrictAllowedResources( * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkload(WorkloadName name) { + public final void deleteWorkload(@Nullable WorkloadName name) { DeleteWorkloadRequest request = DeleteWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWorkload(request); @@ -813,7 +814,7 @@ public final UnaryCallable deleteWorkloadCallable( * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workload getWorkload(WorkloadName name) { + public final Workload getWorkload(@Nullable WorkloadName name) { GetWorkloadRequest request = GetWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkload(request); @@ -1026,7 +1027,7 @@ public final AnalyzeWorkloadMoveResponse analyzeWorkloadMove(AnalyzeWorkloadMove * `organizations/{org_id}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(LocationName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable LocationName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1233,8 +1234,8 @@ public static class ListWorkloadsPage ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage> { private ListWorkloadsPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -1244,14 +1245,14 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1265,7 +1266,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1275,7 +1277,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java index a381f9abfa0a..4d3803e9a5c1 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssuredWorkloadsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java index c4c1d05aa1aa..692bbed5df83 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class AssuredWorkloadsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java index ab96e6d882b1..192c5b2cab9e 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -370,7 +371,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); } @@ -469,7 +470,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java index 16f3d02764f0..4d97d2e96a5a 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ViolationName.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ViolationName.java index 9fc66cbd7b6e..3390768b0b2f 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ViolationName.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ViolationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ViolationName parse(String formattedString) { + public static @Nullable ViolationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ViolationName> values) { List list = new ArrayList<>(values.size()); for (ViolationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java index c7bdf045bc30..36255b8dbc00 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/WorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String organization, String location, String workloa .toString(); } - public static WorkloadName parse(String formattedString) { + public static @Nullable WorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkloadName> values) { List list = new ArrayList<>(values.size()); for (WorkloadName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java index 34968ee03740..3c2b6f6317a2 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java index b9a3af778b34..34971f78f35c 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String organization, String location, String workloa .toString(); } - public static WorkloadName parse(String formattedString) { + public static @Nullable WorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkloadName> values) { List list = new ArrayList<>(values.size()); for (WorkloadName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java index 3b3390b0c7cc..6222a4f48dec 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerClient.java @@ -41,6 +41,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. /** @@ -313,7 +314,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AuditManagerClient implements BackgroundResource { - private final AuditManagerSettings settings; + private final @Nullable AuditManagerSettings settings; private final AuditManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -360,7 +361,7 @@ protected AuditManagerClient(AuditManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AuditManagerSettings getSettings() { + public final @Nullable AuditManagerSettings getSettings() { return settings; } @@ -767,7 +768,8 @@ public final UnaryCallable generateAuditR * @param parent Required. The parent scope for which to list the reports. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuditReportsPagedResponse listAuditReports(EnrollmentStatusScopeName parent) { + public final ListAuditReportsPagedResponse listAuditReports( + @Nullable EnrollmentStatusScopeName parent) { ListAuditReportsRequest request = ListAuditReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -798,7 +800,7 @@ public final ListAuditReportsPagedResponse listAuditReports(EnrollmentStatusScop * @param parent Required. The parent scope for which to list the reports. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuditReportsPagedResponse listAuditReports(LocationName parent) { + public final ListAuditReportsPagedResponse listAuditReports(@Nullable LocationName parent) { ListAuditReportsRequest request = ListAuditReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -965,7 +967,7 @@ public final ListAuditReportsPagedResponse listAuditReports(ListAuditReportsRequ * folders/{folder}/locations/{location}/auditReports/{audit_report} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuditReport getAuditReport(AuditReportName name) { + public final AuditReport getAuditReport(@Nullable AuditReportName name) { GetAuditReportRequest request = GetAuditReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAuditReport(request); @@ -1091,7 +1093,7 @@ public final UnaryCallable getAuditReportCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ResourceEnrollmentStatus getResourceEnrollmentStatus( - ResourceEnrollmentStatusName name) { + @Nullable ResourceEnrollmentStatusName name) { GetResourceEnrollmentStatusRequest request = GetResourceEnrollmentStatusRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1223,7 +1225,7 @@ public final ResourceEnrollmentStatus getResourceEnrollmentStatus( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListResourceEnrollmentStatusesPagedResponse listResourceEnrollmentStatuses( - EnrollmentStatusScopeName parent) { + @Nullable EnrollmentStatusScopeName parent) { ListResourceEnrollmentStatusesRequest request = ListResourceEnrollmentStatusesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1408,7 +1410,7 @@ public final ListResourceEnrollmentStatusesPagedResponse listResourceEnrollmentS * folders/{folder}/locations/{location}/standards/{standard} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(StandardName parent) { + public final ListControlsPagedResponse listControls(@Nullable StandardName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1791,8 +1793,9 @@ public static class ListAuditReportsPage ListAuditReportsRequest, ListAuditReportsResponse, AuditReport, ListAuditReportsPage> { private ListAuditReportsPage( - PageContext context, - ListAuditReportsResponse response) { + @Nullable PageContext + context, + @Nullable ListAuditReportsResponse response) { super(context, response); } @@ -1802,14 +1805,16 @@ private static ListAuditReportsPage createEmptyPage() { @Override protected ListAuditReportsPage createPage( - PageContext context, - ListAuditReportsResponse response) { + @Nullable PageContext + context, + @Nullable ListAuditReportsResponse response) { return new ListAuditReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1824,7 +1829,7 @@ public static class ListAuditReportsFixedSizeCollection ListAuditReportsFixedSizeCollection> { private ListAuditReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1834,7 +1839,7 @@ private static ListAuditReportsFixedSizeCollection createEmptyCollection() { @Override protected ListAuditReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuditReportsFixedSizeCollection(pages, collectionSize); } } @@ -1876,12 +1881,13 @@ public static class ListResourceEnrollmentStatusesPage ListResourceEnrollmentStatusesPage> { private ListResourceEnrollmentStatusesPage( - PageContext< + @Nullable + PageContext< ListResourceEnrollmentStatusesRequest, ListResourceEnrollmentStatusesResponse, ResourceEnrollmentStatus> context, - ListResourceEnrollmentStatusesResponse response) { + @Nullable ListResourceEnrollmentStatusesResponse response) { super(context, response); } @@ -1891,18 +1897,20 @@ private static ListResourceEnrollmentStatusesPage createEmptyPage() { @Override protected ListResourceEnrollmentStatusesPage createPage( - PageContext< + @Nullable + PageContext< ListResourceEnrollmentStatusesRequest, ListResourceEnrollmentStatusesResponse, ResourceEnrollmentStatus> context, - ListResourceEnrollmentStatusesResponse response) { + @Nullable ListResourceEnrollmentStatusesResponse response) { return new ListResourceEnrollmentStatusesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceEnrollmentStatusesRequest, ListResourceEnrollmentStatusesResponse, ResourceEnrollmentStatus> @@ -1921,7 +1929,7 @@ public static class ListResourceEnrollmentStatusesFixedSizeCollection ListResourceEnrollmentStatusesFixedSizeCollection> { private ListResourceEnrollmentStatusesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1931,7 +1939,7 @@ private static ListResourceEnrollmentStatusesFixedSizeCollection createEmptyColl @Override protected ListResourceEnrollmentStatusesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceEnrollmentStatusesFixedSizeCollection(pages, collectionSize); } } @@ -1964,8 +1972,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -1975,14 +1983,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1996,7 +2004,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2006,7 +2015,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } @@ -2040,8 +2049,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2051,14 +2060,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2072,7 +2081,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2082,7 +2092,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerSettings.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerSettings.java index 9f9a4fb61a69..03531da4c073 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerSettings.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/AuditManagerSettings.java @@ -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. /** @@ -245,7 +246,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); } @@ -265,7 +266,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AuditManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStub.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStub.java index b3b712a11867..58743ceb60ef 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStub.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStub.java @@ -48,6 +48,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class AuditManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java index 0aef223450c2..eea56dced59d 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/AuditManagerStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -598,7 +599,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); } @@ -715,7 +716,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); enrollResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportName.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportName.java index 71fbb9e095f3..389721687e60 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportName.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatFolderLocationAuditReportName( .toString(); } - public static AuditReportName parse(String formattedString) { + public static @Nullable AuditReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuditReportName> values) { List list = new ArrayList<>(values.size()); for (AuditReportName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/EnrollmentStatusScopeName.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/EnrollmentStatusScopeName.java index fc92c9adaca7..68112225c031 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/EnrollmentStatusScopeName.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/EnrollmentStatusScopeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -124,7 +125,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static EnrollmentStatusScopeName parse(String formattedString) { + public static @Nullable EnrollmentStatusScopeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -147,7 +148,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnrollmentStatusScopeName> values) { List list = new ArrayList<>(values.size()); for (EnrollmentStatusScopeName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/LocationName.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/LocationName.java index bb3c63d32ce3..c482122dc5e0 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/LocationName.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusName.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusName.java index e831db28cead..04a174927612 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusName.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -204,7 +205,7 @@ public static String formatOrganizationLocationResourceEnrollmentStatusName( .toString(); } - public static ResourceEnrollmentStatusName parse(String formattedString) { + public static @Nullable ResourceEnrollmentStatusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -242,7 +243,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceEnrollmentStatusName> values) { List list = new ArrayList<>(values.size()); for (ResourceEnrollmentStatusName value : values) { if (value == null) { @@ -298,7 +299,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StandardName.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StandardName.java index 6c62ad6b6919..952466b4e8bf 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StandardName.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/StandardName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -192,7 +193,7 @@ public static String formatOrganizationLocationStandardName( .toString(); } - public static StandardName parse(String formattedString) { + public static @Nullable StandardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -220,7 +221,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StandardName> values) { List list = new ArrayList<>(values.size()); for (StandardName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java index 27e2de795e73..20890c7c083b 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlClient.java @@ -39,6 +39,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. /** @@ -498,7 +499,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutoMlClient implements BackgroundResource { - private final AutoMlSettings settings; + private final @Nullable AutoMlSettings settings; private final AutoMlStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -544,7 +545,7 @@ protected AutoMlClient(AutoMlStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AutoMlSettings getSettings() { + public final @Nullable AutoMlSettings getSettings() { return settings; } @@ -593,7 +594,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetAsync( - LocationName parent, Dataset dataset) { + @Nullable LocationName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -741,7 +742,7 @@ public final UnaryCallable createDatasetCallabl * @param name Required. The resource name of the dataset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -851,7 +852,7 @@ public final UnaryCallable getDatasetCallable() { * @param parent Required. The resource name of the project from which to list datasets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(LocationName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable LocationName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1101,7 +1102,8 @@ public final UnaryCallable updateDatasetCallable( * @param name Required. The resource name of the dataset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDatasetAsync(DatasetName name) { + public final OperationFuture deleteDatasetAsync( + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -1260,7 +1262,7 @@ public final UnaryCallable deleteDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDataAsync( - DatasetName name, InputConfig inputConfig) { + @Nullable DatasetName name, InputConfig inputConfig) { ImportDataRequest request = ImportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1446,7 +1448,7 @@ public final UnaryCallable importDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportDataAsync( - DatasetName name, OutputConfig outputConfig) { + @Nullable DatasetName name, OutputConfig outputConfig) { ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1599,7 +1601,7 @@ public final UnaryCallable exportDataCallable() { * @param name Required. The resource name of the annotation spec to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { + public final AnnotationSpec getAnnotationSpec(@Nullable AnnotationSpecName name) { GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1721,7 +1723,7 @@ public final UnaryCallable getAnnotati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - LocationName parent, Model model) { + @Nullable LocationName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1877,7 +1879,7 @@ public final UnaryCallable createModelCallable() * @param name Required. Resource name of the model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -1987,7 +1989,7 @@ public final UnaryCallable getModelCallable() { * @param parent Required. Resource name of the project, from which to list the models. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(LocationName parent) { + public final ListModelsPagedResponse listModels(@Nullable LocationName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -2148,7 +2150,8 @@ public final UnaryCallable listModelsCall * @param name Required. Resource name of the model being deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -2389,7 +2392,8 @@ public final UnaryCallable updateModelCallable() { * @param name Required. Resource name of the model to deploy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deployModelAsync(ModelName name) { + public final OperationFuture deployModelAsync( + @Nullable ModelName name) { DeployModelRequest request = DeployModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deployModelAsync(request); @@ -2569,7 +2573,8 @@ public final UnaryCallable deployModelCallable() * @param name Required. Resource name of the model to undeploy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture undeployModelAsync(ModelName name) { + public final OperationFuture undeployModelAsync( + @Nullable ModelName name) { UndeployModelRequest request = UndeployModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeployModelAsync(request); @@ -2739,7 +2744,7 @@ public final UnaryCallable undeployModelCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportModelAsync( - ModelName name, ModelExportOutputConfig outputConfig) { + @Nullable ModelName name, ModelExportOutputConfig outputConfig) { ExportModelRequest request = ExportModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2908,7 +2913,7 @@ public final UnaryCallable exportModelCallable() * @param name Required. Resource name for the model evaluation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { + public final ModelEvaluation getModelEvaluation(@Nullable ModelEvaluationName name) { GetModelEvaluationRequest request = GetModelEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3040,7 +3045,7 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListModelEvaluationsPagedResponse listModelEvaluations( - ModelName parent, String filter) { + @Nullable ModelName parent, String filter) { ListModelEvaluationsRequest request = ListModelEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3256,8 +3261,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -3267,14 +3272,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3288,7 +3293,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3298,7 +3304,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -3329,8 +3335,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -3340,14 +3346,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3361,7 +3367,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3371,7 +3378,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } @@ -3409,9 +3416,10 @@ public static class ListModelEvaluationsPage ListModelEvaluationsPage> { private ListModelEvaluationsPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { super(context, response); } @@ -3421,15 +3429,17 @@ private static ListModelEvaluationsPage createEmptyPage() { @Override protected ListModelEvaluationsPage createPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { return new ListModelEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3445,7 +3455,7 @@ public static class ListModelEvaluationsFixedSizeCollection ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3455,7 +3465,7 @@ private static ListModelEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListModelEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java index cd566dfee46b..9ea829efe5b2 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/AutoMlSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -345,7 +346,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutoMlStubSettings.newBuilder(clientContext)); } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java index b374b9515ad4..9b97925ca12a 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceClient.java @@ -30,6 +30,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -251,7 +252,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } @@ -366,7 +367,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( - ModelName name, ExamplePayload payload, Map params) { + @Nullable ModelName name, ExamplePayload payload, Map params) { PredictRequest request = PredictRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -718,7 +719,7 @@ public final UnaryCallable predictCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchPredictAsync( - ModelName name, + @Nullable ModelName name, BatchPredictInputConfig inputConfig, BatchPredictOutputConfig outputConfig, Map params) { diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java index dd9f27b0d841..eb4127746092 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/PredictionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java index 26953bd52ac4..21a5b64f544d 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,11 +66,12 @@ @Generated("by gapic-generator-java") public abstract class AutoMlStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java index fbeb427e1e36..59a20d0c2ff9 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/AutoMlStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -630,7 +631,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); } @@ -776,7 +777,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java index e4847b4c786e..d56fe6f86fa6 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStub.java @@ -28,6 +28,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class PredictionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java index 1fcde76c1f34..1f98d8f3b0c7 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/PredictionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -261,7 +262,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); } @@ -326,7 +327,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java index f8ecbd1fcdf0..7937fde829d9 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java @@ -38,6 +38,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. /** @@ -619,7 +620,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AutoMlClient implements BackgroundResource { - private final AutoMlSettings settings; + private final @Nullable AutoMlSettings settings; private final AutoMlStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -665,7 +666,7 @@ protected AutoMlClient(AutoMlStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AutoMlSettings getSettings() { + public final @Nullable AutoMlSettings getSettings() { return settings; } @@ -713,7 +714,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param dataset Required. The dataset to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset createDataset(LocationName parent, Dataset dataset) { + public final Dataset createDataset(@Nullable LocationName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -829,7 +830,7 @@ public final UnaryCallable createDatasetCallable( * @param name Required. The resource name of the dataset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -939,7 +940,7 @@ public final UnaryCallable getDatasetCallable() { * @param parent Required. The resource name of the project from which to list datasets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(LocationName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable LocationName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1186,7 +1187,8 @@ public final UnaryCallable updateDatasetCallable( * @param name Required. The resource name of the dataset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDatasetAsync(DatasetName name) { + public final OperationFuture deleteDatasetAsync( + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -1345,7 +1347,7 @@ public final UnaryCallable deleteDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDataAsync( - DatasetName name, InputConfig inputConfig) { + @Nullable DatasetName name, InputConfig inputConfig) { ImportDataRequest request = ImportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1531,7 +1533,7 @@ public final UnaryCallable importDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportDataAsync( - DatasetName name, OutputConfig outputConfig) { + @Nullable DatasetName name, OutputConfig outputConfig) { ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1684,7 +1686,7 @@ public final UnaryCallable exportDataCallable() { * @param name Required. The resource name of the annotation spec to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { + public final AnnotationSpec getAnnotationSpec(@Nullable AnnotationSpecName name) { GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1801,7 +1803,7 @@ public final UnaryCallable getAnnotati * @param name Required. The resource name of the table spec to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TableSpec getTableSpec(TableSpecName name) { + public final TableSpec getTableSpec(@Nullable TableSpecName name) { GetTableSpecRequest request = GetTableSpecRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTableSpec(request); @@ -1918,7 +1920,7 @@ public final UnaryCallable getTableSpecCallable( * @param parent Required. The resource name of the dataset to list table specs from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTableSpecsPagedResponse listTableSpecs(DatasetName parent) { + public final ListTableSpecsPagedResponse listTableSpecs(@Nullable DatasetName parent) { ListTableSpecsRequest request = ListTableSpecsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2170,7 +2172,7 @@ public final UnaryCallable updateTableSpecCal * @param name Required. The resource name of the column spec to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ColumnSpec getColumnSpec(ColumnSpecName name) { + public final ColumnSpec getColumnSpec(@Nullable ColumnSpecName name) { GetColumnSpecRequest request = GetColumnSpecRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getColumnSpec(request); @@ -2291,7 +2293,7 @@ public final UnaryCallable getColumnSpecCallab * @param parent Required. The resource name of the table spec to list column specs from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListColumnSpecsPagedResponse listColumnSpecs(TableSpecName parent) { + public final ListColumnSpecsPagedResponse listColumnSpecs(@Nullable TableSpecName parent) { ListColumnSpecsRequest request = ListColumnSpecsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2554,7 +2556,7 @@ public final UnaryCallable updateColumnSpec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - LocationName parent, Model model) { + @Nullable LocationName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2710,7 +2712,7 @@ public final UnaryCallable createModelCallable() * @param name Required. Resource name of the model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -2820,7 +2822,7 @@ public final UnaryCallable getModelCallable() { * @param parent Required. Resource name of the project, from which to list the models. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(LocationName parent) { + public final ListModelsPagedResponse listModels(@Nullable LocationName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -2981,7 +2983,8 @@ public final UnaryCallable listModelsCall * @param name Required. Resource name of the model being deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -3137,7 +3140,8 @@ public final UnaryCallable deleteModelCallable() * @param name Required. Resource name of the model to deploy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deployModelAsync(ModelName name) { + public final OperationFuture deployModelAsync( + @Nullable ModelName name) { DeployModelRequest request = DeployModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deployModelAsync(request); @@ -3321,7 +3325,8 @@ public final UnaryCallable deployModelCallable() * @param name Required. Resource name of the model to undeploy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture undeployModelAsync(ModelName name) { + public final OperationFuture undeployModelAsync( + @Nullable ModelName name) { UndeployModelRequest request = UndeployModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeployModelAsync(request); @@ -3492,7 +3497,7 @@ public final UnaryCallable undeployModelCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportModelAsync( - ModelName name, ModelExportOutputConfig outputConfig) { + @Nullable ModelName name, ModelExportOutputConfig outputConfig) { ExportModelRequest request = ExportModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3679,7 +3684,7 @@ public final UnaryCallable exportModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportEvaluatedExamplesAsync( - ModelName name, ExportEvaluatedExamplesOutputConfig outputConfig) { + @Nullable ModelName name, ExportEvaluatedExamplesOutputConfig outputConfig) { ExportEvaluatedExamplesRequest request = ExportEvaluatedExamplesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3875,7 +3880,7 @@ public final OperationFuture exportEvaluatedExamplesAs * @param name Required. Resource name for the model evaluation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { + public final ModelEvaluation getModelEvaluation(@Nullable ModelEvaluationName name) { GetModelEvaluationRequest request = GetModelEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3998,7 +4003,7 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques * parent location. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationsPagedResponse listModelEvaluations(ModelName parent) { + public final ListModelEvaluationsPagedResponse listModelEvaluations(@Nullable ModelName parent) { ListModelEvaluationsRequest request = ListModelEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4204,8 +4209,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -4215,14 +4220,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4236,7 +4241,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4246,7 +4252,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -4280,8 +4286,8 @@ public static class ListTableSpecsPage ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage> { private ListTableSpecsPage( - PageContext context, - ListTableSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListTableSpecsResponse response) { super(context, response); } @@ -4291,14 +4297,14 @@ private static ListTableSpecsPage createEmptyPage() { @Override protected ListTableSpecsPage createPage( - PageContext context, - ListTableSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListTableSpecsResponse response) { return new ListTableSpecsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4312,7 +4318,8 @@ public static class ListTableSpecsFixedSizeCollection ListTableSpecsPage, ListTableSpecsFixedSizeCollection> { - private ListTableSpecsFixedSizeCollection(List pages, int collectionSize) { + private ListTableSpecsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4322,7 +4329,7 @@ private static ListTableSpecsFixedSizeCollection createEmptyCollection() { @Override protected ListTableSpecsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTableSpecsFixedSizeCollection(pages, collectionSize); } } @@ -4356,8 +4363,8 @@ public static class ListColumnSpecsPage ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage> { private ListColumnSpecsPage( - PageContext context, - ListColumnSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListColumnSpecsResponse response) { super(context, response); } @@ -4367,14 +4374,14 @@ private static ListColumnSpecsPage createEmptyPage() { @Override protected ListColumnSpecsPage createPage( - PageContext context, - ListColumnSpecsResponse response) { + @Nullable PageContext context, + @Nullable ListColumnSpecsResponse response) { return new ListColumnSpecsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4389,7 +4396,7 @@ public static class ListColumnSpecsFixedSizeCollection ListColumnSpecsFixedSizeCollection> { private ListColumnSpecsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4399,7 +4406,7 @@ private static ListColumnSpecsFixedSizeCollection createEmptyCollection() { @Override protected ListColumnSpecsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListColumnSpecsFixedSizeCollection(pages, collectionSize); } } @@ -4430,8 +4437,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -4441,14 +4448,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4462,7 +4469,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4472,7 +4480,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } @@ -4510,9 +4518,10 @@ public static class ListModelEvaluationsPage ListModelEvaluationsPage> { private ListModelEvaluationsPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { super(context, response); } @@ -4522,15 +4531,17 @@ private static ListModelEvaluationsPage createEmptyPage() { @Override protected ListModelEvaluationsPage createPage( - PageContext + @Nullable + PageContext context, - ListModelEvaluationsResponse response) { + @Nullable ListModelEvaluationsResponse response) { return new ListModelEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4546,7 +4557,7 @@ public static class ListModelEvaluationsFixedSizeCollection ListModelEvaluationsFixedSizeCollection> { private ListModelEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4556,7 +4567,7 @@ private static ListModelEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListModelEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelEvaluationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java index 70d3805292ec..439e937d1d97 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -363,7 +364,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); } @@ -383,7 +384,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutoMlStubSettings.newBuilder(clientContext)); } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java index ddb7cd057afc..5e7498037b3b 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java @@ -30,6 +30,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. /** @@ -186,7 +187,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -234,7 +235,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } @@ -321,7 +322,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( - ModelName name, ExamplePayload payload, Map params) { + @Nullable ModelName name, ExamplePayload payload, Map params) { PredictRequest request = PredictRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -594,7 +595,7 @@ public final UnaryCallable predictCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchPredictAsync( - ModelName name, + @Nullable ModelName name, BatchPredictInputConfig inputConfig, BatchPredictOutputConfig outputConfig, Map params) { diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java index 50b4f94cd6ea..27d50ec2e988 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java index 30686edd8676..72a37f8fcc44 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java @@ -67,6 +67,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,11 +80,12 @@ @Generated("by gapic-generator-java") public abstract class AutoMlStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java index 0f68ade2fafa..4946dc98b1a2 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -795,7 +796,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); } @@ -962,7 +963,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java index 77176f1328cc..c468de03c6f1 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class PredictionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java index ca21714f1c29..7579154f0814 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java index 8cd22962bfbc..0d9e167f4a99 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/AnnotationSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AnnotationSpecName parse(String formattedString) { + public static @Nullable AnnotationSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationSpecName> values) { List list = new ArrayList<>(values.size()); for (AnnotationSpecName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java index 7531e922d928..bc1f6749fa53 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java index acba50c2d868..cbc66a545082 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java index f9ba60888240..bae210801534 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ModelEvaluationName parse(String formattedString) { + public static @Nullable ModelEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java index aa1e040a56d4..e7367c154d26 100644 --- a/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java +++ b/java-automl/proto-google-cloud-automl-v1/src/main/java/com/google/cloud/automl/v1/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String model) { .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java index 5a266270b5bd..7d2d23f66dda 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AnnotationSpecName parse(String formattedString) { + public static @Nullable AnnotationSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationSpecName> values) { List list = new ArrayList<>(values.size()); for (AnnotationSpecName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java index 85034509eb73..02205a15576e 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ColumnSpecName parse(String formattedString) { + public static @Nullable ColumnSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ColumnSpecName> values) { List list = new ArrayList<>(values.size()); for (ColumnSpecName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java index ba5360b1fc1f..caefbdff0650 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java index 840e40941165..6921ce080122 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java index b970a1a5da89..2db690854443 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ModelEvaluationName parse(String formattedString) { + public static @Nullable ModelEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelEvaluationName> values) { List list = new ArrayList<>(values.size()); for (ModelEvaluationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java index c5b21ce01270..9fa47d3d5ad6 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String model) { .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java index dbb6a12315d5..ccb4ba4cc3ed 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java +++ b/java-automl/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static TableSpecName parse(String formattedString) { + public static @Nullable TableSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableSpecName> values) { List list = new ArrayList<>(values.size()); for (TableSpecName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java index ff3d52b30ce4..51eb7b5e1cdd 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java @@ -48,6 +48,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. /** @@ -931,7 +932,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BackupDRClient implements BackgroundResource { - private final BackupDRSettings settings; + private final @Nullable BackupDRSettings settings; private final BackupDRStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -977,7 +978,7 @@ protected BackupDRClient(BackupDRStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BackupDRSettings getSettings() { + public final @Nullable BackupDRSettings getSettings() { return settings; } @@ -1032,7 +1033,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListManagementServersPagedResponse listManagementServers(LocationName parent) { + public final ListManagementServersPagedResponse listManagementServers( + @Nullable LocationName parent) { ListManagementServersRequest request = ListManagementServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1211,7 +1213,7 @@ public final ListManagementServersPagedResponse listManagementServers( * 'projects/{project_id}/locations/{location}/managementServers/{resource_name}' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ManagementServer getManagementServer(ManagementServerName name) { + public final ManagementServer getManagementServer(@Nullable ManagementServerName name) { GetManagementServerRequest request = GetManagementServerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1342,7 +1344,7 @@ public final ManagementServer getManagementServer(GetManagementServerRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createManagementServerAsync( - LocationName parent, ManagementServer managementServer, String managementServerId) { + @Nullable LocationName parent, ManagementServer managementServer, String managementServerId) { CreateManagementServerRequest request = CreateManagementServerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1514,7 +1516,7 @@ public final OperationFuture createManageme * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteManagementServerAsync( - ManagementServerName name) { + @Nullable ManagementServerName name) { DeleteManagementServerRequest request = DeleteManagementServerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1674,7 +1676,7 @@ public final OperationFuture deleteManagementServerAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( - LocationName parent, BackupVault backupVault, String backupVaultId) { + @Nullable LocationName parent, BackupVault backupVault, String backupVaultId) { CreateBackupVaultRequest request = CreateBackupVaultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1849,7 +1851,7 @@ public final UnaryCallable createBackupVaul * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupVaultsPagedResponse listBackupVaults(LocationName parent) { + public final ListBackupVaultsPagedResponse listBackupVaults(@Nullable LocationName parent) { ListBackupVaultsRequest request = ListBackupVaultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2037,7 +2039,8 @@ public final ListBackupVaultsPagedResponse listBackupVaults(ListBackupVaultsRequ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults(LocationName parent) { + public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults( + @Nullable LocationName parent) { FetchUsableBackupVaultsRequest request = FetchUsableBackupVaultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2219,7 +2222,7 @@ public final FetchUsableBackupVaultsPagedResponse fetchUsableBackupVaults( * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupVault getBackupVault(BackupVaultName name) { + public final BackupVault getBackupVault(@Nullable BackupVaultName name) { GetBackupVaultRequest request = GetBackupVaultRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupVault(request); @@ -2467,7 +2470,7 @@ public final UnaryCallable updateBackupVaul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupVaultAsync( - BackupVaultName name) { + @Nullable BackupVaultName name) { DeleteBackupVaultRequest request = DeleteBackupVaultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2630,7 +2633,7 @@ public final UnaryCallable deleteBackupVaul * To retrieve data sources for all locations, use "-" for the '{location}' value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourcesPagedResponse listDataSources(BackupVaultName parent) { + public final ListDataSourcesPagedResponse listDataSources(@Nullable BackupVaultName parent) { ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2802,7 +2805,7 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest * 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource getDataSource(DataSourceName name) { + public final DataSource getDataSource(@Nullable DataSourceName name) { GetDataSourceRequest request = GetDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataSource(request); @@ -3052,7 +3055,7 @@ public final UnaryCallable updateDataSourceC * sources for all locations, use "-" for the '{location}' value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(DataSourceName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable DataSourceName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3239,7 +3242,7 @@ public final UnaryCallable listBackupsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceType( - DataSourceName parent, String resourceType) { + @Nullable DataSourceName parent, String resourceType) { FetchBackupsForResourceTypeRequest request = FetchBackupsForResourceTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3436,7 +3439,7 @@ public final FetchBackupsForResourceTypePagedResponse fetchBackupsForResourceTyp * 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -3680,7 +3683,8 @@ public final UnaryCallable updateBackupCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3835,7 +3839,7 @@ public final UnaryCallable deleteBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreBackupAsync( - BackupName name) { + @Nullable BackupName name) { RestoreBackupRequest request = RestoreBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return restoreBackupAsync(request); @@ -4002,7 +4006,7 @@ public final UnaryCallable restoreBackupCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPlanAsync( - LocationName parent, BackupPlan backupPlan, String backupPlanId) { + @Nullable LocationName parent, BackupPlan backupPlan, String backupPlanId) { CreateBackupPlanRequest request = CreateBackupPlanRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4298,7 +4302,7 @@ public final UnaryCallable updateBackupPlanC *

Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPlan getBackupPlan(BackupPlanName name) { + public final BackupPlan getBackupPlan(@Nullable BackupPlanName name) { GetBackupPlanRequest request = GetBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupPlan(request); @@ -4412,7 +4416,7 @@ public final UnaryCallable getBackupPlanCallab * plans for all locations, use "-" for the `{location}` value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupPlansPagedResponse listBackupPlans(LocationName parent) { + public final ListBackupPlansPagedResponse listBackupPlans(@Nullable LocationName parent) { ListBackupPlansRequest request = ListBackupPlansRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4584,7 +4588,7 @@ public final ListBackupPlansPagedResponse listBackupPlans(ListBackupPlansRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupPlanAsync( - BackupPlanName name) { + @Nullable BackupPlanName name) { DeleteBackupPlanRequest request = DeleteBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupPlanAsync(request); @@ -4729,7 +4733,7 @@ public final UnaryCallable deleteBackupPlanC * `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPlanRevision getBackupPlanRevision(BackupPlanRevisionName name) { + public final BackupPlanRevision getBackupPlanRevision(@Nullable BackupPlanRevisionName name) { GetBackupPlanRevisionRequest request = GetBackupPlanRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4857,7 +4861,8 @@ public final BackupPlanRevision getBackupPlanRevision(GetBackupPlanRevisionReque * In Cloud BackupDR, locations map to GCP regions, for e.g. **us-central1**. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions(BackupPlanName parent) { + public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions( + @Nullable BackupPlanName parent) { ListBackupPlanRevisionsRequest request = ListBackupPlanRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5038,7 +5043,7 @@ public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions( */ public final OperationFuture createBackupPlanAssociationAsync( - LocationName parent, + @Nullable LocationName parent, BackupPlanAssociation backupPlanAssociation, String backupPlanAssociationId) { CreateBackupPlanAssociationRequest request = @@ -5352,7 +5357,8 @@ public final ListBackupPlanRevisionsPagedResponse listBackupPlanRevisions( * `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPlanAssociation getBackupPlanAssociation(BackupPlanAssociationName name) { + public final BackupPlanAssociation getBackupPlanAssociation( + @Nullable BackupPlanAssociationName name) { GetBackupPlanAssociationRequest request = GetBackupPlanAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5482,7 +5488,7 @@ public final BackupPlanAssociation getBackupPlanAssociation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations( - LocationName parent) { + @Nullable LocationName parent) { ListBackupPlanAssociationsRequest request = ListBackupPlanAssociationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5664,7 +5670,8 @@ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchBackupPlanAssociationsForResourceTypePagedResponse - fetchBackupPlanAssociationsForResourceType(LocationName parent, String resourceType) { + fetchBackupPlanAssociationsForResourceType( + @Nullable LocationName parent, String resourceType) { FetchBackupPlanAssociationsForResourceTypeRequest request = FetchBackupPlanAssociationsForResourceTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5859,7 +5866,7 @@ public final ListBackupPlanAssociationsPagedResponse listBackupPlanAssociations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupPlanAssociationAsync( - BackupPlanAssociationName name) { + @Nullable BackupPlanAssociationName name) { DeleteBackupPlanAssociationRequest request = DeleteBackupPlanAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6023,7 +6030,7 @@ public final OperationFuture deleteBackupPlanAssociati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture triggerBackupAsync( - BackupPlanAssociationName name, String ruleId) { + @Nullable BackupPlanAssociationName name, String ruleId) { TriggerBackupRequest request = TriggerBackupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6188,7 +6195,7 @@ public final UnaryCallable triggerBackupCallabl * projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSourceReference getDataSourceReference(DataSourceReferenceName name) { + public final DataSourceReference getDataSourceReference(@Nullable DataSourceReferenceName name) { GetDataSourceReferenceRequest request = GetDataSourceReferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6312,7 +6319,8 @@ public final DataSourceReference getDataSourceReference(GetDataSourceReferenceRe * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourceReferencesPagedResponse listDataSourceReferences(LocationName parent) { + public final ListDataSourceReferencesPagedResponse listDataSourceReferences( + @Nullable LocationName parent) { ListDataSourceReferencesRequest request = ListDataSourceReferencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6494,7 +6502,7 @@ public final ListDataSourceReferencesPagedResponse listDataSourceReferences( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchDataSourceReferencesForResourceTypePagedResponse - fetchDataSourceReferencesForResourceType(LocationName parent, String resourceType) { + fetchDataSourceReferencesForResourceType(@Nullable LocationName parent, String resourceType) { FetchDataSourceReferencesForResourceTypeRequest request = FetchDataSourceReferencesForResourceTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7177,9 +7185,11 @@ public static class ListManagementServersPage ListManagementServersPage> { private ListManagementServersPage( - PageContext + @Nullable + PageContext< + ListManagementServersRequest, ListManagementServersResponse, ManagementServer> context, - ListManagementServersResponse response) { + @Nullable ListManagementServersResponse response) { super(context, response); } @@ -7189,15 +7199,19 @@ private static ListManagementServersPage createEmptyPage() { @Override protected ListManagementServersPage createPage( - PageContext + @Nullable + PageContext< + ListManagementServersRequest, ListManagementServersResponse, ManagementServer> context, - ListManagementServersResponse response) { + @Nullable ListManagementServersResponse response) { return new ListManagementServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListManagementServersRequest, ListManagementServersResponse, ManagementServer> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7213,7 +7227,7 @@ public static class ListManagementServersFixedSizeCollection ListManagementServersFixedSizeCollection> { private ListManagementServersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7223,7 +7237,7 @@ private static ListManagementServersFixedSizeCollection createEmptyCollection() @Override protected ListManagementServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListManagementServersFixedSizeCollection(pages, collectionSize); } } @@ -7257,8 +7271,9 @@ public static class ListBackupVaultsPage ListBackupVaultsRequest, ListBackupVaultsResponse, BackupVault, ListBackupVaultsPage> { private ListBackupVaultsPage( - PageContext context, - ListBackupVaultsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupVaultsResponse response) { super(context, response); } @@ -7268,14 +7283,16 @@ private static ListBackupVaultsPage createEmptyPage() { @Override protected ListBackupVaultsPage createPage( - PageContext context, - ListBackupVaultsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupVaultsResponse response) { return new ListBackupVaultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7290,7 +7307,7 @@ public static class ListBackupVaultsFixedSizeCollection ListBackupVaultsFixedSizeCollection> { private ListBackupVaultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7300,7 +7317,7 @@ private static ListBackupVaultsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupVaultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupVaultsFixedSizeCollection(pages, collectionSize); } } @@ -7338,9 +7355,11 @@ public static class FetchUsableBackupVaultsPage FetchUsableBackupVaultsPage> { private FetchUsableBackupVaultsPage( - PageContext + @Nullable + PageContext< + FetchUsableBackupVaultsRequest, FetchUsableBackupVaultsResponse, BackupVault> context, - FetchUsableBackupVaultsResponse response) { + @Nullable FetchUsableBackupVaultsResponse response) { super(context, response); } @@ -7350,15 +7369,19 @@ private static FetchUsableBackupVaultsPage createEmptyPage() { @Override protected FetchUsableBackupVaultsPage createPage( - PageContext + @Nullable + PageContext< + FetchUsableBackupVaultsRequest, FetchUsableBackupVaultsResponse, BackupVault> context, - FetchUsableBackupVaultsResponse response) { + @Nullable FetchUsableBackupVaultsResponse response) { return new FetchUsableBackupVaultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + FetchUsableBackupVaultsRequest, FetchUsableBackupVaultsResponse, BackupVault> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7374,7 +7397,7 @@ public static class FetchUsableBackupVaultsFixedSizeCollection FetchUsableBackupVaultsFixedSizeCollection> { private FetchUsableBackupVaultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7384,7 +7407,7 @@ private static FetchUsableBackupVaultsFixedSizeCollection createEmptyCollection( @Override protected FetchUsableBackupVaultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchUsableBackupVaultsFixedSizeCollection(pages, collectionSize); } } @@ -7418,8 +7441,8 @@ public static class ListDataSourcesPage ListDataSourcesRequest, ListDataSourcesResponse, DataSource, ListDataSourcesPage> { private ListDataSourcesPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { super(context, response); } @@ -7429,14 +7452,14 @@ private static ListDataSourcesPage createEmptyPage() { @Override protected ListDataSourcesPage createPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { return new ListDataSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7451,7 +7474,7 @@ public static class ListDataSourcesFixedSizeCollection ListDataSourcesFixedSizeCollection> { private ListDataSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7461,7 +7484,7 @@ private static ListDataSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListDataSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSourcesFixedSizeCollection(pages, collectionSize); } } @@ -7492,8 +7515,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -7503,14 +7526,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7524,7 +7547,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7534,7 +7558,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -7573,9 +7597,11 @@ public static class FetchBackupsForResourceTypePage FetchBackupsForResourceTypePage> { private FetchBackupsForResourceTypePage( - PageContext + @Nullable + PageContext< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse, Backup> context, - FetchBackupsForResourceTypeResponse response) { + @Nullable FetchBackupsForResourceTypeResponse response) { super(context, response); } @@ -7585,15 +7611,19 @@ private static FetchBackupsForResourceTypePage createEmptyPage() { @Override protected FetchBackupsForResourceTypePage createPage( - PageContext + @Nullable + PageContext< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse, Backup> context, - FetchBackupsForResourceTypeResponse response) { + @Nullable FetchBackupsForResourceTypeResponse response) { return new FetchBackupsForResourceTypePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + FetchBackupsForResourceTypeRequest, FetchBackupsForResourceTypeResponse, Backup> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7609,7 +7639,7 @@ public static class FetchBackupsForResourceTypeFixedSizeCollection FetchBackupsForResourceTypeFixedSizeCollection> { private FetchBackupsForResourceTypeFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7619,7 +7649,7 @@ private static FetchBackupsForResourceTypeFixedSizeCollection createEmptyCollect @Override protected FetchBackupsForResourceTypeFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchBackupsForResourceTypeFixedSizeCollection(pages, collectionSize); } } @@ -7653,8 +7683,8 @@ public static class ListBackupPlansPage ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage> { private ListBackupPlansPage( - PageContext context, - ListBackupPlansResponse response) { + @Nullable PageContext context, + @Nullable ListBackupPlansResponse response) { super(context, response); } @@ -7664,14 +7694,14 @@ private static ListBackupPlansPage createEmptyPage() { @Override protected ListBackupPlansPage createPage( - PageContext context, - ListBackupPlansResponse response) { + @Nullable PageContext context, + @Nullable ListBackupPlansResponse response) { return new ListBackupPlansPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7686,7 +7716,7 @@ public static class ListBackupPlansFixedSizeCollection ListBackupPlansFixedSizeCollection> { private ListBackupPlansFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7696,7 +7726,7 @@ private static ListBackupPlansFixedSizeCollection createEmptyCollection() { @Override protected ListBackupPlansFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPlansFixedSizeCollection(pages, collectionSize); } } @@ -7735,10 +7765,11 @@ public static class ListBackupPlanRevisionsPage ListBackupPlanRevisionsPage> { private ListBackupPlanRevisionsPage( - PageContext< + @Nullable + PageContext< ListBackupPlanRevisionsRequest, ListBackupPlanRevisionsResponse, BackupPlanRevision> context, - ListBackupPlanRevisionsResponse response) { + @Nullable ListBackupPlanRevisionsResponse response) { super(context, response); } @@ -7748,16 +7779,18 @@ private static ListBackupPlanRevisionsPage createEmptyPage() { @Override protected ListBackupPlanRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListBackupPlanRevisionsRequest, ListBackupPlanRevisionsResponse, BackupPlanRevision> context, - ListBackupPlanRevisionsResponse response) { + @Nullable ListBackupPlanRevisionsResponse response) { return new ListBackupPlanRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBackupPlanRevisionsRequest, ListBackupPlanRevisionsResponse, BackupPlanRevision> context, ApiFuture futureResponse) { @@ -7774,7 +7807,7 @@ public static class ListBackupPlanRevisionsFixedSizeCollection ListBackupPlanRevisionsFixedSizeCollection> { private ListBackupPlanRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7784,7 +7817,7 @@ private static ListBackupPlanRevisionsFixedSizeCollection createEmptyCollection( @Override protected ListBackupPlanRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPlanRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -7825,12 +7858,13 @@ public static class ListBackupPlanAssociationsPage ListBackupPlanAssociationsPage> { private ListBackupPlanAssociationsPage( - PageContext< + @Nullable + PageContext< ListBackupPlanAssociationsRequest, ListBackupPlanAssociationsResponse, BackupPlanAssociation> context, - ListBackupPlanAssociationsResponse response) { + @Nullable ListBackupPlanAssociationsResponse response) { super(context, response); } @@ -7840,18 +7874,20 @@ private static ListBackupPlanAssociationsPage createEmptyPage() { @Override protected ListBackupPlanAssociationsPage createPage( - PageContext< + @Nullable + PageContext< ListBackupPlanAssociationsRequest, ListBackupPlanAssociationsResponse, BackupPlanAssociation> context, - ListBackupPlanAssociationsResponse response) { + @Nullable ListBackupPlanAssociationsResponse response) { return new ListBackupPlanAssociationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBackupPlanAssociationsRequest, ListBackupPlanAssociationsResponse, BackupPlanAssociation> @@ -7870,7 +7906,7 @@ public static class ListBackupPlanAssociationsFixedSizeCollection ListBackupPlanAssociationsFixedSizeCollection> { private ListBackupPlanAssociationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7880,7 +7916,7 @@ private static ListBackupPlanAssociationsFixedSizeCollection createEmptyCollecti @Override protected ListBackupPlanAssociationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPlanAssociationsFixedSizeCollection(pages, collectionSize); } } @@ -7925,12 +7961,13 @@ public static class FetchBackupPlanAssociationsForResourceTypePage FetchBackupPlanAssociationsForResourceTypePage> { private FetchBackupPlanAssociationsForResourceTypePage( - PageContext< + @Nullable + PageContext< FetchBackupPlanAssociationsForResourceTypeRequest, FetchBackupPlanAssociationsForResourceTypeResponse, BackupPlanAssociation> context, - FetchBackupPlanAssociationsForResourceTypeResponse response) { + @Nullable FetchBackupPlanAssociationsForResourceTypeResponse response) { super(context, response); } @@ -7940,18 +7977,20 @@ private static FetchBackupPlanAssociationsForResourceTypePage createEmptyPage() @Override protected FetchBackupPlanAssociationsForResourceTypePage createPage( - PageContext< + @Nullable + PageContext< FetchBackupPlanAssociationsForResourceTypeRequest, FetchBackupPlanAssociationsForResourceTypeResponse, BackupPlanAssociation> context, - FetchBackupPlanAssociationsForResourceTypeResponse response) { + @Nullable FetchBackupPlanAssociationsForResourceTypeResponse response) { return new FetchBackupPlanAssociationsForResourceTypePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchBackupPlanAssociationsForResourceTypeRequest, FetchBackupPlanAssociationsForResourceTypeResponse, BackupPlanAssociation> @@ -7970,7 +8009,7 @@ public static class FetchBackupPlanAssociationsForResourceTypeFixedSizeCollectio FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection> { private FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7981,7 +8020,7 @@ private FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection( @Override protected FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchBackupPlanAssociationsForResourceTypeFixedSizeCollection( pages, collectionSize); } @@ -8023,12 +8062,13 @@ public static class ListDataSourceReferencesPage ListDataSourceReferencesPage> { private ListDataSourceReferencesPage( - PageContext< + @Nullable + PageContext< ListDataSourceReferencesRequest, ListDataSourceReferencesResponse, DataSourceReference> context, - ListDataSourceReferencesResponse response) { + @Nullable ListDataSourceReferencesResponse response) { super(context, response); } @@ -8038,18 +8078,20 @@ private static ListDataSourceReferencesPage createEmptyPage() { @Override protected ListDataSourceReferencesPage createPage( - PageContext< + @Nullable + PageContext< ListDataSourceReferencesRequest, ListDataSourceReferencesResponse, DataSourceReference> context, - ListDataSourceReferencesResponse response) { + @Nullable ListDataSourceReferencesResponse response) { return new ListDataSourceReferencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDataSourceReferencesRequest, ListDataSourceReferencesResponse, DataSourceReference> @@ -8068,7 +8110,7 @@ public static class ListDataSourceReferencesFixedSizeCollection ListDataSourceReferencesFixedSizeCollection> { private ListDataSourceReferencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8078,7 +8120,7 @@ private static ListDataSourceReferencesFixedSizeCollection createEmptyCollection @Override protected ListDataSourceReferencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSourceReferencesFixedSizeCollection(pages, collectionSize); } } @@ -8123,12 +8165,13 @@ public static class FetchDataSourceReferencesForResourceTypePage FetchDataSourceReferencesForResourceTypePage> { private FetchDataSourceReferencesForResourceTypePage( - PageContext< + @Nullable + PageContext< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, DataSourceReference> context, - FetchDataSourceReferencesForResourceTypeResponse response) { + @Nullable FetchDataSourceReferencesForResourceTypeResponse response) { super(context, response); } @@ -8138,18 +8181,20 @@ private static FetchDataSourceReferencesForResourceTypePage createEmptyPage() { @Override protected FetchDataSourceReferencesForResourceTypePage createPage( - PageContext< + @Nullable + PageContext< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, DataSourceReference> context, - FetchDataSourceReferencesForResourceTypeResponse response) { + @Nullable FetchDataSourceReferencesForResourceTypeResponse response) { return new FetchDataSourceReferencesForResourceTypePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchDataSourceReferencesForResourceTypeRequest, FetchDataSourceReferencesForResourceTypeResponse, DataSourceReference> @@ -8168,7 +8213,7 @@ public static class FetchDataSourceReferencesForResourceTypeFixedSizeCollection FetchDataSourceReferencesForResourceTypeFixedSizeCollection> { private FetchDataSourceReferencesForResourceTypeFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8179,7 +8224,7 @@ private FetchDataSourceReferencesForResourceTypeFixedSizeCollection( @Override protected FetchDataSourceReferencesForResourceTypeFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchDataSourceReferencesForResourceTypeFixedSizeCollection(pages, collectionSize); } } @@ -8213,8 +8258,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8224,14 +8269,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8245,7 +8290,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8255,7 +8301,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java index 6d35171f0dfe..2c4430fd8244 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -569,7 +570,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); } @@ -589,7 +590,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BackupDRStubSettings.newBuilder(clientContext)); } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummaryClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummaryClient.java index 4b2989339bb3..c60dcf74f5f1 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummaryClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummaryClient.java @@ -41,6 +41,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. /** @@ -227,7 +228,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BackupDrProtectionSummaryClient implements BackgroundResource { - private final BackupDrProtectionSummarySettings settings; + private final @Nullable BackupDrProtectionSummarySettings settings; private final BackupDrProtectionSummaryStub stub; /** Constructs an instance of BackupDrProtectionSummaryClient with default settings. */ @@ -269,7 +270,7 @@ protected BackupDrProtectionSummaryClient(BackupDrProtectionSummaryStub stub) { this.stub = stub; } - public final BackupDrProtectionSummarySettings getSettings() { + public final @Nullable BackupDrProtectionSummarySettings getSettings() { return settings; } @@ -309,7 +310,7 @@ public BackupDrProtectionSummaryStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListResourceBackupConfigsPagedResponse listResourceBackupConfigs( - LocationName parent) { + @Nullable LocationName parent) { ListResourceBackupConfigsRequest request = ListResourceBackupConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -913,12 +914,13 @@ public static class ListResourceBackupConfigsPage ListResourceBackupConfigsPage> { private ListResourceBackupConfigsPage( - PageContext< + @Nullable + PageContext< ListResourceBackupConfigsRequest, ListResourceBackupConfigsResponse, ResourceBackupConfig> context, - ListResourceBackupConfigsResponse response) { + @Nullable ListResourceBackupConfigsResponse response) { super(context, response); } @@ -928,18 +930,20 @@ private static ListResourceBackupConfigsPage createEmptyPage() { @Override protected ListResourceBackupConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListResourceBackupConfigsRequest, ListResourceBackupConfigsResponse, ResourceBackupConfig> context, - ListResourceBackupConfigsResponse response) { + @Nullable ListResourceBackupConfigsResponse response) { return new ListResourceBackupConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceBackupConfigsRequest, ListResourceBackupConfigsResponse, ResourceBackupConfig> @@ -958,7 +962,7 @@ public static class ListResourceBackupConfigsFixedSizeCollection ListResourceBackupConfigsFixedSizeCollection> { private ListResourceBackupConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -968,7 +972,7 @@ private static ListResourceBackupConfigsFixedSizeCollection createEmptyCollectio @Override protected ListResourceBackupConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceBackupConfigsFixedSizeCollection(pages, collectionSize); } } @@ -1002,8 +1006,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1013,14 +1017,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1034,7 +1038,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1044,7 +1049,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummarySettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummarySettings.java index bab9196fac0f..936509c34dff 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummarySettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDrProtectionSummarySettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -195,7 +196,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); } @@ -216,7 +217,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BackupDrProtectionSummaryStubSettings.newBuilder(clientContext)); } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java index 4d25f348c78a..c671730d3330 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java @@ -107,6 +107,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -118,11 +119,12 @@ @Generated("by gapic-generator-java") public abstract class BackupDRStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index 1e347cd455c2..9bd6a0e5fb21 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java @@ -141,6 +141,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1678,7 +1679,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); } @@ -1977,7 +1978,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listManagementServersSettings = diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java index f4b8f2f37820..5e353cef8ba6 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDrProtectionSummaryStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -401,7 +402,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); } @@ -485,7 +486,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listResourceBackupConfigsSettings = diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupName.java index 1682b7802878..1ed9df93233c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationName.java index 3c7b0e2b7049..0488f3d84fc9 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String backupPlanAs .toString(); } - public static BackupPlanAssociationName parse(String formattedString) { + public static @Nullable BackupPlanAssociationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -110,7 +111,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPlanAssociationName> values) { List list = new ArrayList<>(values.size()); for (BackupPlanAssociationName value : values) { if (value == null) { @@ -159,7 +160,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanName.java index 3f4be8ff2b8b..0c8b1529c10e 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backupPlan) .toString(); } - public static BackupPlanName parse(String formattedString) { + public static @Nullable BackupPlanName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPlanName> values) { List list = new ArrayList<>(values.size()); for (BackupPlanName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanRevisionName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanRevisionName.java index c5bd28a08ff2..0cf49cb05d52 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanRevisionName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanRevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String backupPlan, .toString(); } - public static BackupPlanRevisionName parse(String formattedString) { + public static @Nullable BackupPlanRevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPlanRevisionName> values) { List list = new ArrayList<>(values.size()); for (BackupPlanRevisionName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultName.java index adc3bd1f7aba..9d913420ffee 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupvault) .toString(); } - public static BackupVaultName parse(String formattedString) { + public static @Nullable BackupVaultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupVaultName> values) { List list = new ArrayList<>(values.size()); for (BackupVaultName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceName.java index bf6da8f22690..3ffefbe04d14 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataSourceName parse(String formattedString) { + public static @Nullable DataSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSourceName> values) { List list = new ArrayList<>(values.size()); for (DataSourceName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceName.java index 643aacfed9ed..305404a77f27 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DataSourceReferenceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String dataSourceRe .toString(); } - public static DataSourceReferenceName parse(String formattedString) { + public static @Nullable DataSourceReferenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSourceReferenceName> values) { List list = new ArrayList<>(values.size()); for (DataSourceReferenceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/LocationName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/LocationName.java index bda3b9de7144..ca7bcde67a9b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/LocationName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerName.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerName.java index 09b2a21e6023..8fa452b0d75c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerName.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String managementse .toString(); } - public static ManagementServerName parse(String formattedString) { + public static @Nullable ManagementServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ManagementServerName> values) { List list = new ArrayList<>(values.size()); for (ManagementServerName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java index d1b75ca2e2d8..ea15638077df 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java @@ -43,6 +43,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. /** @@ -1028,7 +1029,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BareMetalSolutionClient implements BackgroundResource { - private final BareMetalSolutionSettings settings; + private final @Nullable BareMetalSolutionSettings settings; private final BareMetalSolutionStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1076,7 +1077,7 @@ protected BareMetalSolutionClient(BareMetalSolutionStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BareMetalSolutionSettings getSettings() { + public final @Nullable BareMetalSolutionSettings getSettings() { return settings; } @@ -1124,7 +1125,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListInstancesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1288,7 +1289,7 @@ public final UnaryCallable listInst * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1523,7 +1524,7 @@ public final UnaryCallable updateInstanceCalla * @param newInstanceId Required. The new `id` of the instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance renameInstance(InstanceName name, String newInstanceId) { + public final Instance renameInstance(@Nullable InstanceName name, String newInstanceId) { RenameInstanceRequest request = RenameInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1646,7 +1647,7 @@ public final UnaryCallable renameInstanceCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resetInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { ResetInstanceRequest request = ResetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resetInstanceAsync(request); @@ -1791,7 +1792,7 @@ public final UnaryCallable resetInstanceCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { StartInstanceRequest request = StartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startInstanceAsync(request); @@ -1932,7 +1933,7 @@ public final UnaryCallable startInstanceCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopInstanceAsync( - InstanceName name) { + @Nullable InstanceName name) { StopInstanceRequest request = StopInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopInstanceAsync(request); @@ -2074,7 +2075,7 @@ public final UnaryCallable stopInstanceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - enableInteractiveSerialConsoleAsync(InstanceName name) { + enableInteractiveSerialConsoleAsync(@Nullable InstanceName name) { EnableInteractiveSerialConsoleRequest request = EnableInteractiveSerialConsoleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2227,7 +2228,7 @@ public final UnaryCallable stopInstanceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - disableInteractiveSerialConsoleAsync(InstanceName name) { + disableInteractiveSerialConsoleAsync(@Nullable InstanceName name) { DisableInteractiveSerialConsoleRequest request = DisableInteractiveSerialConsoleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2381,7 +2382,7 @@ public final UnaryCallable stopInstanceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture detachLunAsync( - InstanceName instance, LunName lun) { + @Nullable InstanceName instance, @Nullable LunName lun) { DetachLunRequest request = DetachLunRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -2414,7 +2415,7 @@ public final OperationFuture detachLunAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture detachLunAsync( - InstanceName instance, String lun) { + @Nullable InstanceName instance, String lun) { DetachLunRequest request = DetachLunRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -2447,7 +2448,7 @@ public final OperationFuture detachLunAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture detachLunAsync( - String instance, LunName lun) { + String instance, @Nullable LunName lun) { DetachLunRequest request = DetachLunRequest.newBuilder() .setInstance(instance) @@ -2602,7 +2603,7 @@ public final UnaryCallable detachLunCallable() { * the location is "global". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSSHKeysPagedResponse listSSHKeys(LocationName parent) { + public final ListSSHKeysPagedResponse listSSHKeys(@Nullable LocationName parent) { ListSSHKeysRequest request = ListSSHKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2774,7 +2775,7 @@ public final UnaryCallable listSSHKeysC *

This value must match the regex: [a-zA-Z0-9{@literal @}.\\-_]{1,64} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SSHKey createSSHKey(LocationName parent, SSHKey sshKey, String sshKeyId) { + public final SSHKey createSSHKey(@Nullable LocationName parent, SSHKey sshKey, String sshKeyId) { CreateSSHKeyRequest request = CreateSSHKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2905,7 +2906,7 @@ public final UnaryCallable createSSHKeyCallable() { * the location is "global". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSSHKey(SshKeyName name) { + public final void deleteSSHKey(@Nullable SshKeyName name) { DeleteSSHKeyRequest request = DeleteSSHKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSSHKey(request); @@ -3016,7 +3017,7 @@ public final UnaryCallable deleteSSHKeyCallable() { * @param parent Required. Parent value for ListVolumesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumesPagedResponse listVolumes(LocationName parent) { + public final ListVolumesPagedResponse listVolumes(@Nullable LocationName parent) { ListVolumesRequest request = ListVolumesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3179,7 +3180,7 @@ public final UnaryCallable listVolumesC * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume getVolume(VolumeName name) { + public final Volume getVolume(@Nullable VolumeName name) { GetVolumeRequest request = GetVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVolume(request); @@ -3413,7 +3414,7 @@ public final UnaryCallable updateVolumeCallable( * @param newVolumeId Required. The new `id` of the volume. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume renameVolume(VolumeName name, String newVolumeId) { + public final Volume renameVolume(@Nullable VolumeName name, String newVolumeId) { RenameVolumeRequest request = RenameVolumeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3533,7 +3534,8 @@ public final UnaryCallable renameVolumeCallable() { * @param name Required. The name of the Volume. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture evictVolumeAsync(VolumeName name) { + public final OperationFuture evictVolumeAsync( + @Nullable VolumeName name) { EvictVolumeRequest request = EvictVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return evictVolumeAsync(request); @@ -3675,7 +3677,7 @@ public final UnaryCallable evictVolumeCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resizeVolumeAsync( - VolumeName volume, long sizeGib) { + @Nullable VolumeName volume, long sizeGib) { ResizeVolumeRequest request = ResizeVolumeRequest.newBuilder() .setVolume(volume == null ? null : volume.toString()) @@ -3826,7 +3828,7 @@ public final UnaryCallable resizeVolumeCallable( * @param parent Required. Parent value for ListNetworksRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworksPagedResponse listNetworks(LocationName parent) { + public final ListNetworksPagedResponse listNetworks(@Nullable LocationName parent) { ListNetworksRequest request = ListNetworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3991,7 +3993,7 @@ public final UnaryCallable listNetwor * @param location Required. Parent value (project and location). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworkUsageResponse listNetworkUsage(LocationName location) { + public final ListNetworkUsageResponse listNetworkUsage(@Nullable LocationName location) { ListNetworkUsageRequest request = ListNetworkUsageRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -4107,7 +4109,7 @@ public final ListNetworkUsageResponse listNetworkUsage(ListNetworkUsageRequest r * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(NetworkName name) { + public final Network getNetwork(@Nullable NetworkName name) { GetNetworkRequest request = GetNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNetwork(request); @@ -4341,7 +4343,7 @@ public final UnaryCallable updateNetworkCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VolumeSnapshot createVolumeSnapshot( - VolumeName parent, VolumeSnapshot volumeSnapshot) { + @Nullable VolumeName parent, VolumeSnapshot volumeSnapshot) { CreateVolumeSnapshotRequest request = CreateVolumeSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4468,7 +4470,7 @@ public final VolumeSnapshot createVolumeSnapshot(CreateVolumeSnapshotRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreVolumeSnapshotAsync( - VolumeSnapshotName volumeSnapshot) { + @Nullable VolumeSnapshotName volumeSnapshot) { RestoreVolumeSnapshotRequest request = RestoreVolumeSnapshotRequest.newBuilder() .setVolumeSnapshot(volumeSnapshot == null ? null : volumeSnapshot.toString()) @@ -4626,7 +4628,7 @@ public final OperationFuture restoreVolumeSna * @param name Required. The name of the snapshot to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVolumeSnapshot(VolumeSnapshotName name) { + public final void deleteVolumeSnapshot(@Nullable VolumeSnapshotName name) { DeleteVolumeSnapshotRequest request = DeleteVolumeSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4745,7 +4747,7 @@ public final UnaryCallable deleteVolumeSnaps * @param name Required. The name of the snapshot. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeSnapshot getVolumeSnapshot(VolumeSnapshotName name) { + public final VolumeSnapshot getVolumeSnapshot(@Nullable VolumeSnapshotName name) { GetVolumeSnapshotRequest request = GetVolumeSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4868,7 +4870,7 @@ public final UnaryCallable getVolumeSn * @param parent Required. Parent value for ListVolumesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(VolumeName parent) { + public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots(@Nullable VolumeName parent) { ListVolumeSnapshotsRequest request = ListVolumeSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5038,7 +5040,7 @@ public final ListVolumeSnapshotsPagedResponse listVolumeSnapshots( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lun getLun(LunName name) { + public final Lun getLun(@Nullable LunName name) { GetLunRequest request = GetLunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLun(request); @@ -5148,7 +5150,7 @@ public final UnaryCallable getLunCallable() { * @param parent Required. Parent value for ListLunsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLunsPagedResponse listLuns(VolumeName parent) { + public final ListLunsPagedResponse listLuns(@Nullable VolumeName parent) { ListLunsRequest request = ListLunsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLuns(request); @@ -5304,7 +5306,7 @@ public final UnaryCallable listLunsCallable() * @param name Required. The name of the lun. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture evictLunAsync(LunName name) { + public final OperationFuture evictLunAsync(@Nullable LunName name) { EvictLunRequest request = EvictLunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return evictLunAsync(request); @@ -5441,7 +5443,7 @@ public final UnaryCallable evictLunCallable() { * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NfsShare getNfsShare(NFSShareName name) { + public final NfsShare getNfsShare(@Nullable NFSShareName name) { GetNfsShareRequest request = GetNfsShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNfsShare(request); @@ -5552,7 +5554,7 @@ public final UnaryCallable getNfsShareCallable() { * @param parent Required. Parent value for ListNfsSharesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNfsSharesPagedResponse listNfsShares(LocationName parent) { + public final ListNfsSharesPagedResponse listNfsShares(@Nullable LocationName parent) { ListNfsSharesRequest request = ListNfsSharesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5841,7 +5843,7 @@ public final UnaryCallable updateNfsShareCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNfsShareAsync( - LocationName parent, NfsShare nfsShare) { + @Nullable LocationName parent, NfsShare nfsShare) { CreateNfsShareRequest request = CreateNfsShareRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5994,7 +5996,7 @@ public final UnaryCallable createNfsShareCalla * @param newNfsshareId Required. The new `id` of the nfsshare. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NfsShare renameNfsShare(NFSShareName name, String newNfsshareId) { + public final NfsShare renameNfsShare(@Nullable NFSShareName name, String newNfsshareId) { RenameNfsShareRequest request = RenameNfsShareRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6115,7 +6117,8 @@ public final UnaryCallable renameNfsShareCallab * @param name Required. The name of the NFS share to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNfsShareAsync(NFSShareName name) { + public final OperationFuture deleteNfsShareAsync( + @Nullable NFSShareName name) { DeleteNfsShareRequest request = DeleteNfsShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNfsShareAsync(request); @@ -6257,7 +6260,8 @@ public final UnaryCallable deleteNfsShareCalla * @param parent Required. Parent value for ListProvisioningQuotasRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProvisioningQuotasPagedResponse listProvisioningQuotas(LocationName parent) { + public final ListProvisioningQuotasPagedResponse listProvisioningQuotas( + @Nullable LocationName parent) { ListProvisioningQuotasRequest request = ListProvisioningQuotasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6427,7 +6431,7 @@ public final ListProvisioningQuotasPagedResponse listProvisioningQuotas( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SubmitProvisioningConfigResponse submitProvisioningConfig( - LocationName parent, ProvisioningConfig provisioningConfig) { + @Nullable LocationName parent, ProvisioningConfig provisioningConfig) { SubmitProvisioningConfigRequest request = SubmitProvisioningConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6555,7 +6559,7 @@ public final SubmitProvisioningConfigResponse submitProvisioningConfig( * @param name Required. Name of the ProvisioningConfig. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProvisioningConfig getProvisioningConfig(ProvisioningConfigName name) { + public final ProvisioningConfig getProvisioningConfig(@Nullable ProvisioningConfigName name) { GetProvisioningConfigRequest request = GetProvisioningConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6677,7 +6681,7 @@ public final ProvisioningConfig getProvisioningConfig(GetProvisioningConfigReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ProvisioningConfig createProvisioningConfig( - LocationName parent, ProvisioningConfig provisioningConfig) { + @Nullable LocationName parent, ProvisioningConfig provisioningConfig) { CreateProvisioningConfigRequest request = CreateProvisioningConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6903,7 +6907,7 @@ public final ProvisioningConfig updateProvisioningConfig( * @param newNetworkId Required. The new `id` of the network. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network renameNetwork(NetworkName name, String newNetworkId) { + public final Network renameNetwork(@Nullable NetworkName name, String newNetworkId) { RenameNetworkRequest request = RenameNetworkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7026,7 +7030,7 @@ public final UnaryCallable renameNetworkCallable( * @param parent Required. Parent value for ListProvisioningQuotasRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOSImagesPagedResponse listOSImages(LocationName parent) { + public final ListOSImagesPagedResponse listOSImages(@Nullable LocationName parent) { ListOSImagesRequest request = ListOSImagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7382,8 +7386,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -7393,14 +7397,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7414,7 +7418,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7424,7 +7429,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -7455,8 +7460,8 @@ public static class ListSSHKeysPage extends AbstractPage { private ListSSHKeysPage( - PageContext context, - ListSSHKeysResponse response) { + @Nullable PageContext context, + @Nullable ListSSHKeysResponse response) { super(context, response); } @@ -7466,14 +7471,14 @@ private static ListSSHKeysPage createEmptyPage() { @Override protected ListSSHKeysPage createPage( - PageContext context, - ListSSHKeysResponse response) { + @Nullable PageContext context, + @Nullable ListSSHKeysResponse response) { return new ListSSHKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7487,7 +7492,8 @@ public static class ListSSHKeysFixedSizeCollection ListSSHKeysPage, ListSSHKeysFixedSizeCollection> { - private ListSSHKeysFixedSizeCollection(List pages, int collectionSize) { + private ListSSHKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7497,7 +7503,7 @@ private static ListSSHKeysFixedSizeCollection createEmptyCollection() { @Override protected ListSSHKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSSHKeysFixedSizeCollection(pages, collectionSize); } } @@ -7528,8 +7534,8 @@ public static class ListVolumesPage extends AbstractPage { private ListVolumesPage( - PageContext context, - ListVolumesResponse response) { + @Nullable PageContext context, + @Nullable ListVolumesResponse response) { super(context, response); } @@ -7539,14 +7545,14 @@ private static ListVolumesPage createEmptyPage() { @Override protected ListVolumesPage createPage( - PageContext context, - ListVolumesResponse response) { + @Nullable PageContext context, + @Nullable ListVolumesResponse response) { return new ListVolumesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7560,7 +7566,8 @@ public static class ListVolumesFixedSizeCollection ListVolumesPage, ListVolumesFixedSizeCollection> { - private ListVolumesFixedSizeCollection(List pages, int collectionSize) { + private ListVolumesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7570,7 +7577,7 @@ private static ListVolumesFixedSizeCollection createEmptyCollection() { @Override protected ListVolumesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVolumesFixedSizeCollection(pages, collectionSize); } } @@ -7603,8 +7610,8 @@ public static class ListNetworksPage extends AbstractPage { private ListNetworksPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { super(context, response); } @@ -7614,14 +7621,14 @@ private static ListNetworksPage createEmptyPage() { @Override protected ListNetworksPage createPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { return new ListNetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7635,7 +7642,8 @@ public static class ListNetworksFixedSizeCollection ListNetworksPage, ListNetworksFixedSizeCollection> { - private ListNetworksFixedSizeCollection(List pages, int collectionSize) { + private ListNetworksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7645,7 +7653,7 @@ private static ListNetworksFixedSizeCollection createEmptyCollection() { @Override protected ListNetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworksFixedSizeCollection(pages, collectionSize); } } @@ -7683,9 +7691,10 @@ public static class ListVolumeSnapshotsPage ListVolumeSnapshotsPage> { private ListVolumeSnapshotsPage( - PageContext + @Nullable + PageContext context, - ListVolumeSnapshotsResponse response) { + @Nullable ListVolumeSnapshotsResponse response) { super(context, response); } @@ -7695,15 +7704,17 @@ private static ListVolumeSnapshotsPage createEmptyPage() { @Override protected ListVolumeSnapshotsPage createPage( - PageContext + @Nullable + PageContext context, - ListVolumeSnapshotsResponse response) { + @Nullable ListVolumeSnapshotsResponse response) { return new ListVolumeSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7719,7 +7730,7 @@ public static class ListVolumeSnapshotsFixedSizeCollection ListVolumeSnapshotsFixedSizeCollection> { private ListVolumeSnapshotsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7729,7 +7740,7 @@ private static ListVolumeSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListVolumeSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVolumeSnapshotsFixedSizeCollection(pages, collectionSize); } } @@ -7756,7 +7767,8 @@ public static class ListLunsPage extends AbstractPage { private ListLunsPage( - PageContext context, ListLunsResponse response) { + @Nullable PageContext context, + @Nullable ListLunsResponse response) { super(context, response); } @@ -7766,13 +7778,14 @@ private static ListLunsPage createEmptyPage() { @Override protected ListLunsPage createPage( - PageContext context, ListLunsResponse response) { + @Nullable PageContext context, + @Nullable ListLunsResponse response) { return new ListLunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7782,7 +7795,7 @@ public static class ListLunsFixedSizeCollection extends AbstractFixedSizeCollection< ListLunsRequest, ListLunsResponse, Lun, ListLunsPage, ListLunsFixedSizeCollection> { - private ListLunsFixedSizeCollection(List pages, int collectionSize) { + private ListLunsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7792,7 +7805,7 @@ private static ListLunsFixedSizeCollection createEmptyCollection() { @Override protected ListLunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLunsFixedSizeCollection(pages, collectionSize); } } @@ -7826,8 +7839,8 @@ public static class ListNfsSharesPage ListNfsSharesRequest, ListNfsSharesResponse, NfsShare, ListNfsSharesPage> { private ListNfsSharesPage( - PageContext context, - ListNfsSharesResponse response) { + @Nullable PageContext context, + @Nullable ListNfsSharesResponse response) { super(context, response); } @@ -7837,14 +7850,14 @@ private static ListNfsSharesPage createEmptyPage() { @Override protected ListNfsSharesPage createPage( - PageContext context, - ListNfsSharesResponse response) { + @Nullable PageContext context, + @Nullable ListNfsSharesResponse response) { return new ListNfsSharesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7858,7 +7871,8 @@ public static class ListNfsSharesFixedSizeCollection ListNfsSharesPage, ListNfsSharesFixedSizeCollection> { - private ListNfsSharesFixedSizeCollection(List pages, int collectionSize) { + private ListNfsSharesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7868,7 +7882,7 @@ private static ListNfsSharesFixedSizeCollection createEmptyCollection() { @Override protected ListNfsSharesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNfsSharesFixedSizeCollection(pages, collectionSize); } } @@ -7907,10 +7921,11 @@ public static class ListProvisioningQuotasPage ListProvisioningQuotasPage> { private ListProvisioningQuotasPage( - PageContext< + @Nullable + PageContext< ListProvisioningQuotasRequest, ListProvisioningQuotasResponse, ProvisioningQuota> context, - ListProvisioningQuotasResponse response) { + @Nullable ListProvisioningQuotasResponse response) { super(context, response); } @@ -7920,16 +7935,18 @@ private static ListProvisioningQuotasPage createEmptyPage() { @Override protected ListProvisioningQuotasPage createPage( - PageContext< + @Nullable + PageContext< ListProvisioningQuotasRequest, ListProvisioningQuotasResponse, ProvisioningQuota> context, - ListProvisioningQuotasResponse response) { + @Nullable ListProvisioningQuotasResponse response) { return new ListProvisioningQuotasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListProvisioningQuotasRequest, ListProvisioningQuotasResponse, ProvisioningQuota> context, ApiFuture futureResponse) { @@ -7946,7 +7963,7 @@ public static class ListProvisioningQuotasFixedSizeCollection ListProvisioningQuotasFixedSizeCollection> { private ListProvisioningQuotasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7956,7 +7973,7 @@ private static ListProvisioningQuotasFixedSizeCollection createEmptyCollection() @Override protected ListProvisioningQuotasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProvisioningQuotasFixedSizeCollection(pages, collectionSize); } } @@ -7989,8 +8006,8 @@ public static class ListOSImagesPage extends AbstractPage { private ListOSImagesPage( - PageContext context, - ListOSImagesResponse response) { + @Nullable PageContext context, + @Nullable ListOSImagesResponse response) { super(context, response); } @@ -8000,14 +8017,14 @@ private static ListOSImagesPage createEmptyPage() { @Override protected ListOSImagesPage createPage( - PageContext context, - ListOSImagesResponse response) { + @Nullable PageContext context, + @Nullable ListOSImagesResponse response) { return new ListOSImagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8021,7 +8038,8 @@ public static class ListOSImagesFixedSizeCollection ListOSImagesPage, ListOSImagesFixedSizeCollection> { - private ListOSImagesFixedSizeCollection(List pages, int collectionSize) { + private ListOSImagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8031,7 +8049,7 @@ private static ListOSImagesFixedSizeCollection createEmptyCollection() { @Override protected ListOSImagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSImagesFixedSizeCollection(pages, collectionSize); } } @@ -8065,8 +8083,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8076,14 +8094,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8097,7 +8115,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8107,7 +8126,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java index d1c5e15be64e..3d6227a372f7 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -549,7 +550,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); } @@ -569,7 +570,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BareMetalSolutionStubSettings.newBuilder(clientContext)); } diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java index d821698ef615..ee99866d182e 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStub.java @@ -108,6 +108,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -119,11 +120,12 @@ @Generated("by gapic-generator-java") public abstract class BareMetalSolutionStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java index f0a52d641d73..57695db41eb2 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java @@ -144,6 +144,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1336,7 +1337,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); } @@ -1588,7 +1589,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java index aaa5e639d576..bf9f48e1bcbd 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java index 8ba4c08a3e41..193775fe6850 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java index 2becbcff10a9..d040df7e6ddf 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/LunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String volume, Stri .toString(); } - public static LunName parse(String formattedString) { + public static @Nullable LunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LunName> values) { List list = new ArrayList<>(values.size()); for (LunName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java index bec082bb2f31..45d4a3f081cc 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NFSShareName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String nfsShare) { .toString(); } - public static NFSShareName parse(String formattedString) { + public static @Nullable NFSShareName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NFSShareName> values) { List list = new ArrayList<>(values.size()); for (NFSShareName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java index 4192cdae9162..1b8bc612e786 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/NetworkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String network) { .toString(); } - public static NetworkName parse(String formattedString) { + public static @Nullable NetworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NetworkName> values) { List list = new ArrayList<>(values.size()); for (NetworkName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ProvisioningConfigName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ProvisioningConfigName.java index ed10ef3da865..058365014a50 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ProvisioningConfigName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/ProvisioningConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String provisioning .toString(); } - public static ProvisioningConfigName parse(String formattedString) { + public static @Nullable ProvisioningConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProvisioningConfigName> values) { List list = new ArrayList<>(values.size()); for (ProvisioningConfigName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SshKeyName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SshKeyName.java index 8bb3679a9764..ab8a8d568e16 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SshKeyName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/SshKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String sshKey) { .toString(); } - public static SshKeyName parse(String formattedString) { + public static @Nullable SshKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SshKeyName> values) { List list = new ArrayList<>(values.size()); for (SshKeyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java index e796cad167fe..8df12ab686e5 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String volume) { .toString(); } - public static VolumeName parse(String formattedString) { + public static @Nullable VolumeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VolumeName> values) { List list = new ArrayList<>(values.size()); for (VolumeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java index 6153417ad1a4..4a78bba310d6 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/src/main/java/com/google/cloud/baremetalsolution/v2/VolumeSnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String volume, Stri .toString(); } - public static VolumeSnapshotName parse(String formattedString) { + public static @Nullable VolumeSnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VolumeSnapshotName> values) { List list = new ArrayList<>(values.size()); for (VolumeSnapshotName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java index 682dcde66c59..5de228a19a02 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java @@ -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. /** @@ -296,7 +297,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BatchServiceClient implements BackgroundResource { - private final BatchServiceSettings settings; + private final @Nullable BatchServiceSettings settings; private final BatchServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -343,7 +344,7 @@ protected BatchServiceClient(BatchServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BatchServiceSettings getSettings() { + public final @Nullable BatchServiceSettings getSettings() { return settings; } @@ -399,7 +400,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(LocationName parent, Job job, String jobId) { + public final Job createJob(@Nullable LocationName parent, Job job, String jobId) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -528,7 +529,7 @@ public final UnaryCallable createJobCallable() { * @param name Required. Job name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -752,7 +753,8 @@ public final UnaryCallable deleteJobCallable() { * @param name Required. Job name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture cancelJobAsync(JobName name) { + public final OperationFuture cancelJobAsync( + @Nullable JobName name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelJobAsync(request); @@ -1028,7 +1030,7 @@ public final UnaryCallable listJobsCallable() * @param name Required. Task name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -1144,7 +1146,7 @@ public final UnaryCallable getTaskCallable() { * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(TaskGroupName parent) { + public final ListTasksPagedResponse listTasks(@Nullable TaskGroupName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -1494,7 +1496,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1504,13 +1507,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1520,7 +1524,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1530,7 +1534,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -1557,8 +1561,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -1568,14 +1572,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1585,7 +1589,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1595,7 +1599,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -1629,8 +1633,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1640,14 +1644,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1661,7 +1665,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1671,7 +1676,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java index 9774f20a270c..5cbb9deb002b 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceSettings.java @@ -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. /** @@ -239,7 +240,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); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BatchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java index f39fa0f24800..425fd4dc0d49 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class BatchServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java index dbc7bed89055..7e0d9564474d 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -493,7 +494,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); } @@ -598,7 +599,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java index 753d91b817ab..8c43e19f8ea9 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java @@ -43,6 +43,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. /** @@ -412,7 +413,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BatchServiceClient implements BackgroundResource { - private final BatchServiceSettings settings; + private final @Nullable BatchServiceSettings settings; private final BatchServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -459,7 +460,7 @@ protected BatchServiceClient(BatchServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BatchServiceSettings getSettings() { + public final @Nullable BatchServiceSettings getSettings() { return settings; } @@ -515,7 +516,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(LocationName parent, Job job, String jobId) { + public final Job createJob(@Nullable LocationName parent, Job job, String jobId) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -644,7 +645,7 @@ public final UnaryCallable createJobCallable() { * @param name Required. Job name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -868,7 +869,8 @@ public final UnaryCallable deleteJobCallable() { * @param name Required. Job name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture cancelJobAsync(JobName name) { + public final OperationFuture cancelJobAsync( + @Nullable JobName name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelJobAsync(request); @@ -1238,7 +1240,7 @@ public final UnaryCallable listJobsCallable() * @param name Required. Task name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -1354,7 +1356,7 @@ public final UnaryCallable getTaskCallable() { * "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(TaskGroupName parent) { + public final ListTasksPagedResponse listTasks(@Nullable TaskGroupName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -1536,7 +1538,9 @@ public final UnaryCallable listTasksCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ResourceAllowance createResourceAllowance( - LocationName parent, ResourceAllowance resourceAllowance, String resourceAllowanceId) { + @Nullable LocationName parent, + ResourceAllowance resourceAllowance, + String resourceAllowanceId) { CreateResourceAllowanceRequest request = CreateResourceAllowanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1677,7 +1681,7 @@ public final ResourceAllowance createResourceAllowance(CreateResourceAllowanceRe * @param name Required. ResourceAllowance name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceAllowance getResourceAllowance(ResourceAllowanceName name) { + public final ResourceAllowance getResourceAllowance(@Nullable ResourceAllowanceName name) { GetResourceAllowanceRequest request = GetResourceAllowanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1797,7 +1801,7 @@ public final ResourceAllowance getResourceAllowance(GetResourceAllowanceRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteResourceAllowanceAsync( - ResourceAllowanceName name) { + @Nullable ResourceAllowanceName name) { DeleteResourceAllowanceRequest request = DeleteResourceAllowanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1956,7 +1960,8 @@ public final OperationFuture deleteResourceAllowanceAs * @param parent Required. Parent path. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceAllowancesPagedResponse listResourceAllowances(LocationName parent) { + public final ListResourceAllowancesPagedResponse listResourceAllowances( + @Nullable LocationName parent) { ListResourceAllowancesRequest request = ListResourceAllowancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2409,7 +2414,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -2419,13 +2425,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2435,7 +2442,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2445,7 +2452,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -2472,8 +2479,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -2483,14 +2490,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2500,7 +2507,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2510,7 +2517,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -2549,10 +2556,11 @@ public static class ListResourceAllowancesPage ListResourceAllowancesPage> { private ListResourceAllowancesPage( - PageContext< + @Nullable + PageContext< ListResourceAllowancesRequest, ListResourceAllowancesResponse, ResourceAllowance> context, - ListResourceAllowancesResponse response) { + @Nullable ListResourceAllowancesResponse response) { super(context, response); } @@ -2562,16 +2570,18 @@ private static ListResourceAllowancesPage createEmptyPage() { @Override protected ListResourceAllowancesPage createPage( - PageContext< + @Nullable + PageContext< ListResourceAllowancesRequest, ListResourceAllowancesResponse, ResourceAllowance> context, - ListResourceAllowancesResponse response) { + @Nullable ListResourceAllowancesResponse response) { return new ListResourceAllowancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceAllowancesRequest, ListResourceAllowancesResponse, ResourceAllowance> context, ApiFuture futureResponse) { @@ -2588,7 +2598,7 @@ public static class ListResourceAllowancesFixedSizeCollection ListResourceAllowancesFixedSizeCollection> { private ListResourceAllowancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2598,7 +2608,7 @@ private static ListResourceAllowancesFixedSizeCollection createEmptyCollection() @Override protected ListResourceAllowancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceAllowancesFixedSizeCollection(pages, collectionSize); } } @@ -2632,8 +2642,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2643,14 +2653,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2664,7 +2674,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2674,7 +2685,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java index c9d4f1441e6b..e3ad9e3162fc 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,7 +287,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); } @@ -306,7 +307,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BatchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java index 7d807d3634fb..9c3b48d64f19 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,11 +68,12 @@ @Generated("by gapic-generator-java") public abstract class BatchServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java index ac9d30bbfb36..c24d85dcf312 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -631,7 +632,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); } @@ -761,7 +762,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java index e43850b18a5d..dbe88e048242 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java index c4a169c46b3b..f2f99e9d2d96 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java index afd3d00119e3..96d6ed9dfa96 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String job, String .toString(); } - public static TaskGroupName parse(String formattedString) { + public static @Nullable TaskGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskGroupName> values) { List list = new ArrayList<>(values.size()); for (TaskGroupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskName.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskName.java index a59f14aacb9f..8efa42706939 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskName.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java index 4e5bfe95532c..e88d047b7f1c 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java index 91b1b3ccacef..f1d16fc1350e 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceAllowanceName.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceAllowanceName.java index 69d2d03b4b52..dec043c5d7ce 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceAllowanceName.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ResourceAllowanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String resourceAllo .toString(); } - public static ResourceAllowanceName parse(String formattedString) { + public static @Nullable ResourceAllowanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceAllowanceName> values) { List list = new ArrayList<>(values.size()); for (ResourceAllowanceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java index 018ce0dda219..86f629ba6103 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String job, String .toString(); } - public static TaskGroupName parse(String formattedString) { + public static @Nullable TaskGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskGroupName> values) { List list = new ArrayList<>(values.size()); for (TaskGroupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java index 22b0c0dfaa92..02cf7d11dd80 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceClient.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceClient.java index 7759e63a7e61..49e13cbd6408 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceClient.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceClient.java @@ -47,6 +47,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. /** @@ -330,7 +331,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AppConnectionsServiceClient implements BackgroundResource { - private final AppConnectionsServiceSettings settings; + private final @Nullable AppConnectionsServiceSettings settings; private final AppConnectionsServiceStub stub; private final OperationsClient operationsClient; @@ -373,7 +374,7 @@ protected AppConnectionsServiceClient(AppConnectionsServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final AppConnectionsServiceSettings getSettings() { + public final @Nullable AppConnectionsServiceSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppConnectionsPagedResponse listAppConnections(LocationName parent) { + public final ListAppConnectionsPagedResponse listAppConnections(@Nullable LocationName parent) { ListAppConnectionsRequest request = ListAppConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -594,7 +595,7 @@ public final ListAppConnectionsPagedResponse listAppConnections( * `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppConnection getAppConnection(AppConnectionName name) { + public final AppConnection getAppConnection(@Nullable AppConnectionName name) { GetAppConnectionRequest request = GetAppConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppConnection(request); @@ -722,7 +723,7 @@ public final UnaryCallable getAppConnect */ public final OperationFuture createAppConnectionAsync( - LocationName parent, AppConnection appConnection, String appConnectionId) { + @Nullable LocationName parent, AppConnection appConnection, String appConnectionId) { CreateAppConnectionRequest request = CreateAppConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1048,7 +1049,7 @@ public final UnaryCallable updateAppConne * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAppConnectionAsync( - AppConnectionName name) { + @Nullable AppConnectionName name) { DeleteAppConnectionRequest request = DeleteAppConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1211,7 +1212,8 @@ public final UnaryCallable deleteAppConne * `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResolveAppConnectionsPagedResponse resolveAppConnections(LocationName parent) { + public final ResolveAppConnectionsPagedResponse resolveAppConnections( + @Nullable LocationName parent) { ResolveAppConnectionsRequest request = ResolveAppConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1801,8 +1803,9 @@ public static class ListAppConnectionsPage ListAppConnectionsPage> { private ListAppConnectionsPage( - PageContext context, - ListAppConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAppConnectionsResponse response) { super(context, response); } @@ -1812,14 +1815,16 @@ private static ListAppConnectionsPage createEmptyPage() { @Override protected ListAppConnectionsPage createPage( - PageContext context, - ListAppConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAppConnectionsResponse response) { return new ListAppConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1834,7 +1839,7 @@ public static class ListAppConnectionsFixedSizeCollection ListAppConnectionsFixedSizeCollection> { private ListAppConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1844,7 +1849,7 @@ private static ListAppConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListAppConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -1885,12 +1890,13 @@ public static class ResolveAppConnectionsPage ResolveAppConnectionsPage> { private ResolveAppConnectionsPage( - PageContext< + @Nullable + PageContext< ResolveAppConnectionsRequest, ResolveAppConnectionsResponse, ResolveAppConnectionsResponse.AppConnectionDetails> context, - ResolveAppConnectionsResponse response) { + @Nullable ResolveAppConnectionsResponse response) { super(context, response); } @@ -1900,18 +1906,20 @@ private static ResolveAppConnectionsPage createEmptyPage() { @Override protected ResolveAppConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ResolveAppConnectionsRequest, ResolveAppConnectionsResponse, ResolveAppConnectionsResponse.AppConnectionDetails> context, - ResolveAppConnectionsResponse response) { + @Nullable ResolveAppConnectionsResponse response) { return new ResolveAppConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ResolveAppConnectionsRequest, ResolveAppConnectionsResponse, ResolveAppConnectionsResponse.AppConnectionDetails> @@ -1930,7 +1938,7 @@ public static class ResolveAppConnectionsFixedSizeCollection ResolveAppConnectionsFixedSizeCollection> { private ResolveAppConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1940,7 +1948,7 @@ private static ResolveAppConnectionsFixedSizeCollection createEmptyCollection() @Override protected ResolveAppConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ResolveAppConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -1974,8 +1982,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1985,14 +1993,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2006,7 +2014,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2016,7 +2025,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceSettings.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceSettings.java index 8897701a7c53..c1224072f358 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceSettings.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionsServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -259,7 +260,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -280,7 +281,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppConnectionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStub.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStub.java index ae1cbe2a6062..50d3388cb307 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStub.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStub.java @@ -47,6 +47,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,7 +59,7 @@ @Generated("by gapic-generator-java") public abstract class AppConnectionsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java index 7dbf6fe257a7..42feafc31e22 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/AppConnectionsServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -528,7 +529,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -629,7 +630,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAppConnectionsSettings = PagedCallSettings.newBuilder(LIST_APP_CONNECTIONS_PAGE_STR_FACT); diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionName.java b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionName.java index 9e4f12379628..86707a6dc8b6 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionName.java +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String appConnectio .toString(); } - public static AppConnectionName parse(String formattedString) { + public static @Nullable AppConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppConnectionName> values) { List list = new ArrayList<>(values.size()); for (AppConnectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectorName.java b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectorName.java index 845ab5378cc4..34c10118573d 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectorName.java +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/AppConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String appConnector .toString(); } - public static AppConnectorName parse(String formattedString) { + public static @Nullable AppConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppConnectorName> values) { List list = new ArrayList<>(values.size()); for (AppConnectorName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/LocationName.java b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/LocationName.java index 02df0e3caacb..7b9892a86149 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/LocationName.java +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceClient.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceClient.java index 90f2525dbbb2..838c85053fe1 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceClient.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceClient.java @@ -47,6 +47,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. /** @@ -330,7 +331,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AppConnectorsServiceClient implements BackgroundResource { - private final AppConnectorsServiceSettings settings; + private final @Nullable AppConnectorsServiceSettings settings; private final AppConnectorsServiceStub stub; private final OperationsClient operationsClient; @@ -373,7 +374,7 @@ protected AppConnectorsServiceClient(AppConnectorsServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final AppConnectorsServiceSettings getSettings() { + public final @Nullable AppConnectorsServiceSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppConnectorsPagedResponse listAppConnectors(LocationName parent) { + public final ListAppConnectorsPagedResponse listAppConnectors(@Nullable LocationName parent) { ListAppConnectorsRequest request = ListAppConnectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -593,7 +594,7 @@ public final ListAppConnectorsPagedResponse listAppConnectors(ListAppConnectorsR * `projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppConnector getAppConnector(AppConnectorName name) { + public final AppConnector getAppConnector(@Nullable AppConnectorName name) { GetAppConnectorRequest request = GetAppConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppConnector(request); @@ -718,7 +719,7 @@ public final UnaryCallable getAppConnector * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppConnectorAsync( - LocationName parent, AppConnector appConnector, String appConnectorId) { + @Nullable LocationName parent, AppConnector appConnector, String appConnectorId) { CreateAppConnectorRequest request = CreateAppConnectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1039,7 +1040,7 @@ public final UnaryCallable updateAppConnec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAppConnectorAsync( - AppConnectorName name) { + @Nullable AppConnectorName name) { DeleteAppConnectorRequest request = DeleteAppConnectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1200,7 +1201,7 @@ public final UnaryCallable deleteAppConnec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reportStatusAsync( - AppConnectorName appConnector, ResourceInfo resourceInfo) { + @Nullable AppConnectorName appConnector, ResourceInfo resourceInfo) { ReportStatusRequest request = ReportStatusRequest.newBuilder() .setAppConnector(appConnector == null ? null : appConnector.toString()) @@ -1776,8 +1777,9 @@ public static class ListAppConnectorsPage ListAppConnectorsPage> { private ListAppConnectorsPage( - PageContext context, - ListAppConnectorsResponse response) { + @Nullable PageContext + context, + @Nullable ListAppConnectorsResponse response) { super(context, response); } @@ -1787,14 +1789,16 @@ private static ListAppConnectorsPage createEmptyPage() { @Override protected ListAppConnectorsPage createPage( - PageContext context, - ListAppConnectorsResponse response) { + @Nullable PageContext + context, + @Nullable ListAppConnectorsResponse response) { return new ListAppConnectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1809,7 +1813,7 @@ public static class ListAppConnectorsFixedSizeCollection ListAppConnectorsFixedSizeCollection> { private ListAppConnectorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1819,7 +1823,7 @@ private static ListAppConnectorsFixedSizeCollection createEmptyCollection() { @Override protected ListAppConnectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppConnectorsFixedSizeCollection(pages, collectionSize); } } @@ -1853,8 +1857,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1864,14 +1868,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1885,7 +1889,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1895,7 +1900,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceSettings.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceSettings.java index 1e0a754b641b..d8d9411eb458 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceSettings.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorsServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -260,7 +261,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -281,7 +282,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppConnectorsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStub.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStub.java index 0aaa14ab361d..9562da229527 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStub.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,7 +57,7 @@ @Generated("by gapic-generator-java") public abstract class AppConnectorsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java index 85e0ce857cc5..0f9d1ae86f61 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/AppConnectorsServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -455,7 +456,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -556,7 +557,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAppConnectorsSettings = PagedCallSettings.newBuilder(LIST_APP_CONNECTORS_PAGE_STR_FACT); diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorName.java b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorName.java index dc9219315e68..e6da370a8c78 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorName.java +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/AppConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String appConnector .toString(); } - public static AppConnectorName parse(String formattedString) { + public static @Nullable AppConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppConnectorName> values) { List list = new ArrayList<>(values.size()); for (AppConnectorName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/LocationName.java b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/LocationName.java index 492ea555f0e8..b867e71f56d8 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/LocationName.java +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceClient.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceClient.java index 1c00883d9d16..48fb02cd3644 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceClient.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceClient.java @@ -46,6 +46,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. /** @@ -289,7 +290,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AppGatewaysServiceClient implements BackgroundResource { - private final AppGatewaysServiceSettings settings; + private final @Nullable AppGatewaysServiceSettings settings; private final AppGatewaysServiceStub stub; private final OperationsClient operationsClient; @@ -332,7 +333,7 @@ protected AppGatewaysServiceClient(AppGatewaysServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final AppGatewaysServiceSettings getSettings() { + public final @Nullable AppGatewaysServiceSettings getSettings() { return settings; } @@ -372,7 +373,7 @@ public final OperationsClient getOperationsClient() { * `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppGatewaysPagedResponse listAppGateways(LocationName parent) { + public final ListAppGatewaysPagedResponse listAppGateways(@Nullable LocationName parent) { ListAppGatewaysRequest request = ListAppGatewaysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +543,7 @@ public final ListAppGatewaysPagedResponse listAppGateways(ListAppGatewaysRequest * `projects/{project_id}/locations/{location_id}/appGateways/{app_gateway_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppGateway getAppGateway(AppGatewayName name) { + public final AppGateway getAppGateway(@Nullable AppGatewayName name) { GetAppGatewayRequest request = GetAppGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppGateway(request); @@ -661,7 +662,7 @@ public final UnaryCallable getAppGatewayCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppGatewayAsync( - LocationName parent, AppGateway appGateway, String appGatewayId) { + @Nullable LocationName parent, AppGateway appGateway, String appGatewayId) { CreateAppGatewayRequest request = CreateAppGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -832,7 +833,7 @@ public final UnaryCallable createAppGatewayC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAppGatewayAsync( - AppGatewayName name) { + @Nullable AppGatewayName name) { DeleteAppGatewayRequest request = DeleteAppGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAppGatewayAsync(request); @@ -1367,8 +1368,8 @@ public static class ListAppGatewaysPage ListAppGatewaysRequest, ListAppGatewaysResponse, AppGateway, ListAppGatewaysPage> { private ListAppGatewaysPage( - PageContext context, - ListAppGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListAppGatewaysResponse response) { super(context, response); } @@ -1378,14 +1379,14 @@ private static ListAppGatewaysPage createEmptyPage() { @Override protected ListAppGatewaysPage createPage( - PageContext context, - ListAppGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListAppGatewaysResponse response) { return new ListAppGatewaysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1400,7 +1401,7 @@ public static class ListAppGatewaysFixedSizeCollection ListAppGatewaysFixedSizeCollection> { private ListAppGatewaysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1410,7 +1411,7 @@ private static ListAppGatewaysFixedSizeCollection createEmptyCollection() { @Override protected ListAppGatewaysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppGatewaysFixedSizeCollection(pages, collectionSize); } } @@ -1444,8 +1445,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1455,14 +1456,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1476,7 +1477,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1488,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceSettings.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceSettings.java index ee3c3a724c70..b6a54bf25ec2 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceSettings.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewaysServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppGatewaysServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStub.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStub.java index e43ce5a6ae9f..aa59aa05e59b 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStub.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,7 +55,7 @@ @Generated("by gapic-generator-java") public abstract class AppGatewaysServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java index 8d003a14054d..37c7cc5e8aa4 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/AppGatewaysServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -414,7 +415,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -498,7 +499,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAppGatewaysSettings = PagedCallSettings.newBuilder(LIST_APP_GATEWAYS_PAGE_STR_FACT); diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewayName.java b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewayName.java index 4736d3650a1d..4f3faedc7e4d 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewayName.java +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/AppGatewayName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String appGateway) .toString(); } - public static AppGatewayName parse(String formattedString) { + public static @Nullable AppGatewayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppGatewayName> values) { List list = new ArrayList<>(values.size()); for (AppGatewayName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/LocationName.java b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/LocationName.java index c03b12268120..7cab6c0dce40 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/LocationName.java +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceClient.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceClient.java index 0f6f14219cfb..d35a66b4eecb 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceClient.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceClient.java @@ -47,6 +47,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. /** @@ -309,7 +310,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ClientConnectorServicesServiceClient implements BackgroundResource { - private final ClientConnectorServicesServiceSettings settings; + private final @Nullable ClientConnectorServicesServiceSettings settings; private final ClientConnectorServicesServiceStub stub; private final OperationsClient operationsClient; @@ -357,7 +358,7 @@ protected ClientConnectorServicesServiceClient(ClientConnectorServicesServiceStu this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ClientConnectorServicesServiceSettings getSettings() { + public final @Nullable ClientConnectorServicesServiceSettings getSettings() { return settings; } @@ -399,7 +400,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListClientConnectorServicesPagedResponse listClientConnectorServices( - LocationName parent) { + @Nullable LocationName parent) { ListClientConnectorServicesRequest request = ListClientConnectorServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -584,7 +585,8 @@ public final ListClientConnectorServicesPagedResponse listClientConnectorService * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientConnectorService getClientConnectorService(ClientConnectorServiceName name) { + public final ClientConnectorService getClientConnectorService( + @Nullable ClientConnectorServiceName name) { GetClientConnectorServiceRequest request = GetClientConnectorServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -727,7 +729,7 @@ public final ClientConnectorService getClientConnectorService( */ public final OperationFuture createClientConnectorServiceAsync( - LocationName parent, + @Nullable LocationName parent, ClientConnectorService clientConnectorService, String clientConnectorServiceId) { CreateClientConnectorServiceRequest request = @@ -1072,7 +1074,7 @@ public final ClientConnectorService getClientConnectorService( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteClientConnectorServiceAsync(ClientConnectorServiceName name) { + deleteClientConnectorServiceAsync(@Nullable ClientConnectorServiceName name) { DeleteClientConnectorServiceRequest request = DeleteClientConnectorServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1669,12 +1671,13 @@ public static class ListClientConnectorServicesPage ListClientConnectorServicesPage> { private ListClientConnectorServicesPage( - PageContext< + @Nullable + PageContext< ListClientConnectorServicesRequest, ListClientConnectorServicesResponse, ClientConnectorService> context, - ListClientConnectorServicesResponse response) { + @Nullable ListClientConnectorServicesResponse response) { super(context, response); } @@ -1684,18 +1687,20 @@ private static ListClientConnectorServicesPage createEmptyPage() { @Override protected ListClientConnectorServicesPage createPage( - PageContext< + @Nullable + PageContext< ListClientConnectorServicesRequest, ListClientConnectorServicesResponse, ClientConnectorService> context, - ListClientConnectorServicesResponse response) { + @Nullable ListClientConnectorServicesResponse response) { return new ListClientConnectorServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListClientConnectorServicesRequest, ListClientConnectorServicesResponse, ClientConnectorService> @@ -1714,7 +1719,7 @@ public static class ListClientConnectorServicesFixedSizeCollection ListClientConnectorServicesFixedSizeCollection> { private ListClientConnectorServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1724,7 +1729,7 @@ private static ListClientConnectorServicesFixedSizeCollection createEmptyCollect @Override protected ListClientConnectorServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClientConnectorServicesFixedSizeCollection(pages, collectionSize); } } @@ -1758,8 +1763,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1769,14 +1774,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1790,7 +1795,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1800,7 +1806,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceSettings.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceSettings.java index 0fb514253205..7389bded5766 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceSettings.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServicesServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ClientConnectorServicesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStub.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStub.java index 345c50363207..abea7f2865f0 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStub.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class ClientConnectorServicesServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java index d130ee9250e2..25c58eea0fc0 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/ClientConnectorServicesServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -480,7 +481,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -586,7 +587,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClientConnectorServicesSettings = diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServiceName.java b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServiceName.java index f8aa19de03ef..d0a6ebac3bad 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServiceName.java +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/ClientConnectorServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String clientConnec .toString(); } - public static ClientConnectorServiceName parse(String formattedString) { + public static @Nullable ClientConnectorServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClientConnectorServiceName> values) { List list = new ArrayList<>(values.size()); for (ClientConnectorServiceName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/LocationName.java b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/LocationName.java index 8df3b01212c3..c4fe6116c749 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/LocationName.java +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceClient.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceClient.java index 54550dc6eb9e..a8d4060fe2e6 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceClient.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceClient.java @@ -46,6 +46,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. /** @@ -287,7 +288,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ClientGatewaysServiceClient implements BackgroundResource { - private final ClientGatewaysServiceSettings settings; + private final @Nullable ClientGatewaysServiceSettings settings; private final ClientGatewaysServiceStub stub; private final OperationsClient operationsClient; @@ -330,7 +331,7 @@ protected ClientGatewaysServiceClient(ClientGatewaysServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ClientGatewaysServiceSettings getSettings() { + public final @Nullable ClientGatewaysServiceSettings getSettings() { return settings; } @@ -371,7 +372,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. Parent value for ListClientGatewaysRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientGatewaysPagedResponse listClientGateways(LocationName parent) { + public final ListClientGatewaysPagedResponse listClientGateways(@Nullable LocationName parent) { ListClientGatewaysRequest request = ListClientGatewaysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,7 +549,7 @@ public final ListClientGatewaysPagedResponse listClientGateways( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientGateway getClientGateway(ClientGatewayName name) { + public final ClientGateway getClientGateway(@Nullable ClientGatewayName name) { GetClientGatewayRequest request = GetClientGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getClientGateway(request); @@ -674,7 +675,7 @@ public final UnaryCallable getClientGate */ public final OperationFuture createClientGatewayAsync( - LocationName parent, ClientGateway clientGateway, String clientGatewayId) { + @Nullable LocationName parent, ClientGateway clientGateway, String clientGatewayId) { CreateClientGatewayRequest request = CreateClientGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -851,7 +852,7 @@ public final UnaryCallable createClientGa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteClientGatewayAsync( - ClientGatewayName name) { + @Nullable ClientGatewayName name) { DeleteClientGatewayRequest request = DeleteClientGatewayRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1415,8 +1416,9 @@ public static class ListClientGatewaysPage ListClientGatewaysPage> { private ListClientGatewaysPage( - PageContext context, - ListClientGatewaysResponse response) { + @Nullable PageContext + context, + @Nullable ListClientGatewaysResponse response) { super(context, response); } @@ -1426,14 +1428,16 @@ private static ListClientGatewaysPage createEmptyPage() { @Override protected ListClientGatewaysPage createPage( - PageContext context, - ListClientGatewaysResponse response) { + @Nullable PageContext + context, + @Nullable ListClientGatewaysResponse response) { return new ListClientGatewaysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1448,7 +1452,7 @@ public static class ListClientGatewaysFixedSizeCollection ListClientGatewaysFixedSizeCollection> { private ListClientGatewaysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1458,7 +1462,7 @@ private static ListClientGatewaysFixedSizeCollection createEmptyCollection() { @Override protected ListClientGatewaysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClientGatewaysFixedSizeCollection(pages, collectionSize); } } @@ -1492,8 +1496,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1503,14 +1507,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1524,7 +1528,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1534,7 +1539,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceSettings.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceSettings.java index 67fd87c79a65..491a3cf02273 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceSettings.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewaysServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ClientGatewaysServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStub.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStub.java index 2aae5e9fab8f..2f468cbc5135 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStub.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,7 +55,7 @@ @Generated("by gapic-generator-java") public abstract class ClientGatewaysServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java index 018b5da5c95b..665a8a01ab82 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/ClientGatewaysServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -424,7 +425,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -511,7 +512,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClientGatewaysSettings = PagedCallSettings.newBuilder(LIST_CLIENT_GATEWAYS_PAGE_STR_FACT); diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewayName.java b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewayName.java index 00ca2370d925..e490abb5c786 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewayName.java +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/ClientGatewayName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String clientGatewa .toString(); } - public static ClientGatewayName parse(String formattedString) { + public static @Nullable ClientGatewayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClientGatewayName> values) { List list = new ArrayList<>(values.size()); for (ClientGatewayName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/LocationName.java b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/LocationName.java index 9cc855affe4f..3ee29cdca7ea 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/LocationName.java +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceClient.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceClient.java index 1edcf82d44b5..1b7dbab0254a 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceClient.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceClient.java @@ -36,6 +36,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. /** @@ -498,7 +499,7 @@ @BetaApi @Generated("by gapic-generator-java") public class HiveMetastoreServiceClient implements BackgroundResource { - private final HiveMetastoreServiceSettings settings; + private final @Nullable HiveMetastoreServiceSettings settings; private final HiveMetastoreServiceStub stub; /** Constructs an instance of HiveMetastoreServiceClient with default settings. */ @@ -538,7 +539,7 @@ protected HiveMetastoreServiceClient(HiveMetastoreServiceStub stub) { this.stub = stub; } - public final HiveMetastoreServiceSettings getSettings() { + public final @Nullable HiveMetastoreServiceSettings getSettings() { return settings; } @@ -577,7 +578,7 @@ public HiveMetastoreServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HiveCatalog createHiveCatalog( - ProjectName parent, HiveCatalog hiveCatalog, String hiveCatalogId) { + @Nullable ProjectName parent, HiveCatalog hiveCatalog, String hiveCatalogId) { CreateHiveCatalogRequest request = CreateHiveCatalogRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -715,7 +716,7 @@ public final UnaryCallable createHiveCata * projects/{project_id_or_number}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HiveCatalog getHiveCatalog(CatalogName name) { + public final HiveCatalog getHiveCatalog(@Nullable CatalogName name) { GetHiveCatalogRequest request = GetHiveCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHiveCatalog(request); @@ -832,7 +833,7 @@ public final UnaryCallable getHiveCatalogCal * projects/{project_id_or_number} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHiveCatalogsPagedResponse listHiveCatalogs(ProjectName parent) { + public final ListHiveCatalogsPagedResponse listHiveCatalogs(@Nullable ProjectName parent) { ListHiveCatalogsRequest request = ListHiveCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1101,7 +1102,7 @@ public final UnaryCallable updateHiveCata * projects/{project_id_or_number}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteHiveCatalog(CatalogName name) { + public final void deleteHiveCatalog(@Nullable CatalogName name) { DeleteHiveCatalogRequest request = DeleteHiveCatalogRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1229,7 +1230,7 @@ public final UnaryCallable deleteHiveCatalogCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HiveDatabase createHiveDatabase( - CatalogName parent, HiveDatabase hiveDatabase, String hiveDatabaseId) { + @Nullable CatalogName parent, HiveDatabase hiveDatabase, String hiveDatabaseId) { CreateHiveDatabaseRequest request = CreateHiveDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1365,7 +1366,7 @@ public final UnaryCallable createHiveDa * projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HiveDatabase getHiveDatabase(NamespaceName name) { + public final HiveDatabase getHiveDatabase(@Nullable NamespaceName name) { GetHiveDatabaseRequest request = GetHiveDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHiveDatabase(request); @@ -1483,7 +1484,7 @@ public final UnaryCallable getHiveDatabase * projects/{project_id_or_number}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHiveDatabasesPagedResponse listHiveDatabases(CatalogName parent) { + public final ListHiveDatabasesPagedResponse listHiveDatabases(@Nullable CatalogName parent) { ListHiveDatabasesRequest request = ListHiveDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1751,7 +1752,7 @@ public final UnaryCallable updateHiveDa * projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteHiveDatabase(NamespaceName name) { + public final void deleteHiveDatabase(@Nullable NamespaceName name) { DeleteHiveDatabaseRequest request = DeleteHiveDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1877,7 +1878,7 @@ public final UnaryCallable deleteHiveDatabaseC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HiveTable createHiveTable( - NamespaceName parent, HiveTable hiveTable, String hiveTableId) { + @Nullable NamespaceName parent, HiveTable hiveTable, String hiveTableId) { CreateHiveTableRequest request = CreateHiveTableRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2012,7 +2013,7 @@ public final UnaryCallable createHiveTableCal * projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HiveTable getHiveTable(TableName name) { + public final HiveTable getHiveTable(@Nullable TableName name) { GetHiveTableRequest request = GetHiveTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHiveTable(request); @@ -2129,7 +2130,7 @@ public final UnaryCallable getHiveTableCallable( * projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHiveTablesPagedResponse listHiveTables(NamespaceName parent) { + public final ListHiveTablesPagedResponse listHiveTables(@Nullable NamespaceName parent) { ListHiveTablesRequest request = ListHiveTablesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2393,7 +2394,7 @@ public final UnaryCallable updateHiveTableCal * projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteHiveTable(TableName name) { + public final void deleteHiveTable(@Nullable TableName name) { DeleteHiveTableRequest request = DeleteHiveTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteHiveTable(request); @@ -2509,7 +2510,7 @@ public final UnaryCallable deleteHiveTableCallabl * format of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchCreatePartitionsResponse batchCreatePartitions(TableName parent) { + public final BatchCreatePartitionsResponse batchCreatePartitions(@Nullable TableName parent) { BatchCreatePartitionsRequest request = BatchCreatePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2635,7 +2636,7 @@ public final BatchCreatePartitionsResponse batchCreatePartitions( * of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeletePartitions(TableName parent) { + public final void batchDeletePartitions(@Nullable TableName parent) { BatchDeletePartitionsRequest request = BatchDeletePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2756,7 +2757,7 @@ public final UnaryCallable batchDeleteParti * of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchUpdatePartitionsResponse batchUpdatePartitions(TableName parent) { + public final BatchUpdatePartitionsResponse batchUpdatePartitions(@Nullable TableName parent) { BatchUpdatePartitionsRequest request = BatchUpdatePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2948,8 +2949,9 @@ public static class ListHiveCatalogsPage ListHiveCatalogsRequest, ListHiveCatalogsResponse, HiveCatalog, ListHiveCatalogsPage> { private ListHiveCatalogsPage( - PageContext context, - ListHiveCatalogsResponse response) { + @Nullable PageContext + context, + @Nullable ListHiveCatalogsResponse response) { super(context, response); } @@ -2959,14 +2961,16 @@ private static ListHiveCatalogsPage createEmptyPage() { @Override protected ListHiveCatalogsPage createPage( - PageContext context, - ListHiveCatalogsResponse response) { + @Nullable PageContext + context, + @Nullable ListHiveCatalogsResponse response) { return new ListHiveCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2981,7 +2985,7 @@ public static class ListHiveCatalogsFixedSizeCollection ListHiveCatalogsFixedSizeCollection> { private ListHiveCatalogsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2991,7 +2995,7 @@ private static ListHiveCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListHiveCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHiveCatalogsFixedSizeCollection(pages, collectionSize); } } @@ -3028,8 +3032,9 @@ public static class ListHiveDatabasesPage ListHiveDatabasesPage> { private ListHiveDatabasesPage( - PageContext context, - ListHiveDatabasesResponse response) { + @Nullable PageContext + context, + @Nullable ListHiveDatabasesResponse response) { super(context, response); } @@ -3039,14 +3044,16 @@ private static ListHiveDatabasesPage createEmptyPage() { @Override protected ListHiveDatabasesPage createPage( - PageContext context, - ListHiveDatabasesResponse response) { + @Nullable PageContext + context, + @Nullable ListHiveDatabasesResponse response) { return new ListHiveDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3061,7 +3068,7 @@ public static class ListHiveDatabasesFixedSizeCollection ListHiveDatabasesFixedSizeCollection> { private ListHiveDatabasesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3071,7 +3078,7 @@ private static ListHiveDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListHiveDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHiveDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -3105,8 +3112,8 @@ public static class ListHiveTablesPage ListHiveTablesRequest, ListHiveTablesResponse, HiveTable, ListHiveTablesPage> { private ListHiveTablesPage( - PageContext context, - ListHiveTablesResponse response) { + @Nullable PageContext context, + @Nullable ListHiveTablesResponse response) { super(context, response); } @@ -3116,14 +3123,14 @@ private static ListHiveTablesPage createEmptyPage() { @Override protected ListHiveTablesPage createPage( - PageContext context, - ListHiveTablesResponse response) { + @Nullable PageContext context, + @Nullable ListHiveTablesResponse response) { return new ListHiveTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3137,7 +3144,8 @@ public static class ListHiveTablesFixedSizeCollection ListHiveTablesPage, ListHiveTablesFixedSizeCollection> { - private ListHiveTablesFixedSizeCollection(List pages, int collectionSize) { + private ListHiveTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3147,7 +3155,7 @@ private static ListHiveTablesFixedSizeCollection createEmptyCollection() { @Override protected ListHiveTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHiveTablesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceSettings.java index 6fdc2a5f0d52..5e96dfd8cb5e 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/HiveMetastoreServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -277,7 +278,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HiveMetastoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HiveMetastoreServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HiveMetastoreServiceStubSettings.java index 40e72a3deb2f..9532f30b16ab 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HiveMetastoreServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/HiveMetastoreServiceStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -554,7 +555,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); } @@ -678,7 +679,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createHiveCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java index 5e2aab34c7a7..3d223c1b016f 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceClient.java @@ -33,6 +33,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IcebergCatalogServiceClient implements BackgroundResource { - private final IcebergCatalogServiceSettings settings; + private final @Nullable IcebergCatalogServiceSettings settings; private final IcebergCatalogServiceStub stub; /** Constructs an instance of IcebergCatalogServiceClient with default settings. */ @@ -265,7 +266,7 @@ protected IcebergCatalogServiceClient(IcebergCatalogServiceStub stub) { this.stub = stub; } - public final IcebergCatalogServiceSettings getSettings() { + public final @Nullable IcebergCatalogServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public IcebergCatalogServiceStub getStub() { * @param name Required. The catalog to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IcebergCatalog getIcebergCatalog(CatalogName name) { + public final IcebergCatalog getIcebergCatalog(@Nullable CatalogName name) { GetIcebergCatalogRequest request = GetIcebergCatalogRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -414,7 +415,7 @@ public final UnaryCallable getIcebergC * projects/{project_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIcebergCatalogsPagedResponse listIcebergCatalogs(ProjectName parent) { + public final ListIcebergCatalogsPagedResponse listIcebergCatalogs(@Nullable ProjectName parent) { ListIcebergCatalogsRequest request = ListIcebergCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -696,7 +697,7 @@ public final IcebergCatalog updateIcebergCatalog(UpdateIcebergCatalogRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IcebergCatalog createIcebergCatalog( - ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId) { + @Nullable ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId) { CreateIcebergCatalogRequest request = CreateIcebergCatalogRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -798,7 +799,7 @@ public final IcebergCatalog createIcebergCatalog( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IcebergCatalog createIcebergCatalog( - ProjectName parent, + @Nullable ProjectName parent, IcebergCatalog icebergCatalog, String icebergCatalogId, String primaryLocation) { @@ -1113,9 +1114,10 @@ public static class ListIcebergCatalogsPage ListIcebergCatalogsPage> { private ListIcebergCatalogsPage( - PageContext + @Nullable + PageContext context, - ListIcebergCatalogsResponse response) { + @Nullable ListIcebergCatalogsResponse response) { super(context, response); } @@ -1125,15 +1127,17 @@ private static ListIcebergCatalogsPage createEmptyPage() { @Override protected ListIcebergCatalogsPage createPage( - PageContext + @Nullable + PageContext context, - ListIcebergCatalogsResponse response) { + @Nullable ListIcebergCatalogsResponse response) { return new ListIcebergCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1149,7 +1153,7 @@ public static class ListIcebergCatalogsFixedSizeCollection ListIcebergCatalogsFixedSizeCollection> { private ListIcebergCatalogsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1159,7 +1163,7 @@ private static ListIcebergCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListIcebergCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIcebergCatalogsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java index 14895d56c398..77df61e3fd29 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/IcebergCatalogServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,7 +178,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); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IcebergCatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java index bb1842efb1f0..9e5a5427aae2 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/IcebergCatalogServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -395,7 +396,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getIcebergCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceClient.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceClient.java index a78649d188a0..ecb36477105f 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceClient.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceClient.java @@ -33,6 +33,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. /** @@ -426,7 +427,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetastoreServiceClient implements BackgroundResource { - private final MetastoreServiceSettings settings; + private final @Nullable MetastoreServiceSettings settings; private final MetastoreServiceStub stub; /** Constructs an instance of MetastoreServiceClient with default settings. */ @@ -466,7 +467,7 @@ protected MetastoreServiceClient(MetastoreServiceStub stub) { this.stub = stub; } - public final MetastoreServiceSettings getSettings() { + public final @Nullable MetastoreServiceSettings getSettings() { return settings; } @@ -501,7 +502,8 @@ public MetastoreServiceStub getStub() { * of the catalog's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog createCatalog(LocationName parent, Catalog catalog, String catalogId) { + public final Catalog createCatalog( + @Nullable LocationName parent, Catalog catalog, String catalogId) { CreateCatalogRequest request = CreateCatalogRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -630,7 +632,7 @@ public final UnaryCallable createCatalogCallable( * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog deleteCatalog(CatalogName name) { + public final Catalog deleteCatalog(@Nullable CatalogName name) { DeleteCatalogRequest request = DeleteCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCatalog(request); @@ -741,7 +743,7 @@ public final UnaryCallable deleteCatalogCallable( * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog getCatalog(CatalogName name) { + public final Catalog getCatalog(@Nullable CatalogName name) { GetCatalogRequest request = GetCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCatalog(request); @@ -853,7 +855,7 @@ public final UnaryCallable getCatalogCallable() { * projects/{project_id_or_number}/locations/{location_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogsPagedResponse listCatalogs(LocationName parent) { + public final ListCatalogsPagedResponse listCatalogs(@Nullable LocationName parent) { ListCatalogsRequest request = ListCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1021,7 +1023,8 @@ public final UnaryCallable listCatalo * component of the database's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database createDatabase(CatalogName parent, Database database, String databaseId) { + public final Database createDatabase( + @Nullable CatalogName parent, Database database, String databaseId) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1151,7 +1154,7 @@ public final UnaryCallable createDatabaseCallab * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database deleteDatabase(DatabaseName name) { + public final Database deleteDatabase(@Nullable DatabaseName name) { DeleteDatabaseRequest request = DeleteDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatabase(request); @@ -1357,7 +1360,7 @@ public final UnaryCallable updateDatabaseCallab * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database getDatabase(DatabaseName name) { + public final Database getDatabase(@Nullable DatabaseName name) { GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatabase(request); @@ -1472,7 +1475,7 @@ public final UnaryCallable getDatabaseCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(CatalogName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable CatalogName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1641,7 +1644,7 @@ public final UnaryCallable listData * the table's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table createTable(DatabaseName parent, Table table, String tableId) { + public final Table createTable(@Nullable DatabaseName parent, Table table, String tableId) { CreateTableRequest request = CreateTableRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1774,7 +1777,7 @@ public final UnaryCallable createTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table deleteTable(TableName name) { + public final Table deleteTable(@Nullable TableName name) { DeleteTableRequest request = DeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTable(request); @@ -1986,7 +1989,7 @@ public final UnaryCallable updateTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(TableName name, TableName newName) { + public final Table renameTable(@Nullable TableName name, @Nullable TableName newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2023,7 +2026,7 @@ public final Table renameTable(TableName name, TableName newName) { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(TableName name, String newName) { + public final Table renameTable(@Nullable TableName name, String newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2060,7 +2063,7 @@ public final Table renameTable(TableName name, String newName) { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(String name, TableName newName) { + public final Table renameTable(String name, @Nullable TableName newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name) @@ -2191,7 +2194,7 @@ public final UnaryCallable renameTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table getTable(TableName name) { + public final Table getTable(@Nullable TableName name) { GetTableRequest request = GetTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTable(request); @@ -2308,7 +2311,7 @@ public final UnaryCallable getTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTablesPagedResponse listTables(DatabaseName parent) { + public final ListTablesPagedResponse listTables(@Nullable DatabaseName parent) { ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTables(request); @@ -2510,8 +2513,8 @@ public static class ListCatalogsPage extends AbstractPage { private ListCatalogsPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { super(context, response); } @@ -2521,14 +2524,14 @@ private static ListCatalogsPage createEmptyPage() { @Override protected ListCatalogsPage createPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { return new ListCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2542,7 +2545,8 @@ public static class ListCatalogsFixedSizeCollection ListCatalogsPage, ListCatalogsFixedSizeCollection> { - private ListCatalogsFixedSizeCollection(List pages, int collectionSize) { + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2552,7 +2556,7 @@ private static ListCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogsFixedSizeCollection(pages, collectionSize); } } @@ -2586,8 +2590,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -2597,14 +2601,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2618,7 +2622,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2628,7 +2633,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -2659,8 +2664,8 @@ public static class ListTablesPage extends AbstractPage { private ListTablesPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { super(context, response); } @@ -2670,14 +2675,14 @@ private static ListTablesPage createEmptyPage() { @Override protected ListTablesPage createPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { return new ListTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2691,7 +2696,8 @@ public static class ListTablesFixedSizeCollection ListTablesPage, ListTablesFixedSizeCollection> { - private ListTablesFixedSizeCollection(List pages, int collectionSize) { + private ListTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2701,7 +2707,7 @@ private static ListTablesFixedSizeCollection createEmptyCollection() { @Override protected ListTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTablesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceSettings.java index 8e96523ab85d..e8af86eee4b2 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/MetastoreServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetastoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java index 7de00a75d624..4b4f9911e963 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/MetastoreServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -490,7 +491,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); } @@ -589,7 +590,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceClient.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceClient.java index 03112d2c7106..dc130d10bfaf 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceClient.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceClient.java @@ -35,6 +35,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. /** @@ -506,7 +507,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MetastoreServiceClient implements BackgroundResource { - private final MetastoreServiceSettings settings; + private final @Nullable MetastoreServiceSettings settings; private final MetastoreServiceStub stub; /** Constructs an instance of MetastoreServiceClient with default settings. */ @@ -546,7 +547,7 @@ protected MetastoreServiceClient(MetastoreServiceStub stub) { this.stub = stub; } - public final MetastoreServiceSettings getSettings() { + public final @Nullable MetastoreServiceSettings getSettings() { return settings; } @@ -581,7 +582,8 @@ public MetastoreServiceStub getStub() { * of the catalog's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog createCatalog(LocationName parent, Catalog catalog, String catalogId) { + public final Catalog createCatalog( + @Nullable LocationName parent, Catalog catalog, String catalogId) { CreateCatalogRequest request = CreateCatalogRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -710,7 +712,7 @@ public final UnaryCallable createCatalogCallable( * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog deleteCatalog(CatalogName name) { + public final Catalog deleteCatalog(@Nullable CatalogName name) { DeleteCatalogRequest request = DeleteCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCatalog(request); @@ -821,7 +823,7 @@ public final UnaryCallable deleteCatalogCallable( * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Catalog getCatalog(CatalogName name) { + public final Catalog getCatalog(@Nullable CatalogName name) { GetCatalogRequest request = GetCatalogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCatalog(request); @@ -933,7 +935,7 @@ public final UnaryCallable getCatalogCallable() { * projects/{project_id_or_number}/locations/{location_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogsPagedResponse listCatalogs(LocationName parent) { + public final ListCatalogsPagedResponse listCatalogs(@Nullable LocationName parent) { ListCatalogsRequest request = ListCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1101,7 +1103,8 @@ public final UnaryCallable listCatalo * component of the database's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database createDatabase(CatalogName parent, Database database, String databaseId) { + public final Database createDatabase( + @Nullable CatalogName parent, Database database, String databaseId) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1231,7 +1234,7 @@ public final UnaryCallable createDatabaseCallab * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database deleteDatabase(DatabaseName name) { + public final Database deleteDatabase(@Nullable DatabaseName name) { DeleteDatabaseRequest request = DeleteDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatabase(request); @@ -1437,7 +1440,7 @@ public final UnaryCallable updateDatabaseCallab * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database getDatabase(DatabaseName name) { + public final Database getDatabase(@Nullable DatabaseName name) { GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatabase(request); @@ -1552,7 +1555,7 @@ public final UnaryCallable getDatabaseCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(CatalogName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable CatalogName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1721,7 +1724,7 @@ public final UnaryCallable listData * the table's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table createTable(DatabaseName parent, Table table, String tableId) { + public final Table createTable(@Nullable DatabaseName parent, Table table, String tableId) { CreateTableRequest request = CreateTableRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1854,7 +1857,7 @@ public final UnaryCallable createTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table deleteTable(TableName name) { + public final Table deleteTable(@Nullable TableName name) { DeleteTableRequest request = DeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTable(request); @@ -2066,7 +2069,7 @@ public final UnaryCallable updateTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(TableName name, TableName newName) { + public final Table renameTable(@Nullable TableName name, @Nullable TableName newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2103,7 +2106,7 @@ public final Table renameTable(TableName name, TableName newName) { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(TableName name, String newName) { + public final Table renameTable(@Nullable TableName name, String newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2140,7 +2143,7 @@ public final Table renameTable(TableName name, String newName) { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table renameTable(String name, TableName newName) { + public final Table renameTable(String name, @Nullable TableName newName) { RenameTableRequest request = RenameTableRequest.newBuilder() .setName(name) @@ -2271,7 +2274,7 @@ public final UnaryCallable renameTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table getTable(TableName name) { + public final Table getTable(@Nullable TableName name) { GetTableRequest request = GetTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTable(request); @@ -2388,7 +2391,7 @@ public final UnaryCallable getTableCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTablesPagedResponse listTables(DatabaseName parent) { + public final ListTablesPagedResponse listTables(@Nullable DatabaseName parent) { ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTables(request); @@ -2557,7 +2560,7 @@ public final UnaryCallable listTablesCall * lock creation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lock createLock(DatabaseName parent, Lock lock) { + public final Lock createLock(@Nullable DatabaseName parent, Lock lock) { CreateLockRequest request = CreateLockRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2679,7 +2682,7 @@ public final UnaryCallable createLockCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLock(LockName name) { + public final void deleteLock(@Nullable LockName name) { DeleteLockRequest request = DeleteLockRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteLock(request); @@ -2794,7 +2797,7 @@ public final UnaryCallable deleteLockCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lock checkLock(LockName name) { + public final Lock checkLock(@Nullable LockName name) { CheckLockRequest request = CheckLockRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return checkLock(request); @@ -2911,7 +2914,7 @@ public final UnaryCallable checkLockCallable() { * projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocksPagedResponse listLocks(DatabaseName parent) { + public final ListLocksPagedResponse listLocks(@Nullable DatabaseName parent) { ListLocksRequest request = ListLocksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLocks(request); @@ -3109,8 +3112,8 @@ public static class ListCatalogsPage extends AbstractPage { private ListCatalogsPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { super(context, response); } @@ -3120,14 +3123,14 @@ private static ListCatalogsPage createEmptyPage() { @Override protected ListCatalogsPage createPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { return new ListCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3141,7 +3144,8 @@ public static class ListCatalogsFixedSizeCollection ListCatalogsPage, ListCatalogsFixedSizeCollection> { - private ListCatalogsFixedSizeCollection(List pages, int collectionSize) { + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3151,7 +3155,7 @@ private static ListCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogsFixedSizeCollection(pages, collectionSize); } } @@ -3185,8 +3189,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -3196,14 +3200,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3217,7 +3221,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3227,7 +3232,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -3258,8 +3263,8 @@ public static class ListTablesPage extends AbstractPage { private ListTablesPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { super(context, response); } @@ -3269,14 +3274,14 @@ private static ListTablesPage createEmptyPage() { @Override protected ListTablesPage createPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { return new ListTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3290,7 +3295,8 @@ public static class ListTablesFixedSizeCollection ListTablesPage, ListTablesFixedSizeCollection> { - private ListTablesFixedSizeCollection(List pages, int collectionSize) { + private ListTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3300,7 +3306,7 @@ private static ListTablesFixedSizeCollection createEmptyCollection() { @Override protected ListTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTablesFixedSizeCollection(pages, collectionSize); } } @@ -3327,8 +3333,8 @@ public static class ListLocksPage extends AbstractPage { private ListLocksPage( - PageContext context, - ListLocksResponse response) { + @Nullable PageContext context, + @Nullable ListLocksResponse response) { super(context, response); } @@ -3338,14 +3344,14 @@ private static ListLocksPage createEmptyPage() { @Override protected ListLocksPage createPage( - PageContext context, - ListLocksResponse response) { + @Nullable PageContext context, + @Nullable ListLocksResponse response) { return new ListLocksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3355,7 +3361,7 @@ public static class ListLocksFixedSizeCollection extends AbstractFixedSizeCollection< ListLocksRequest, ListLocksResponse, Lock, ListLocksPage, ListLocksFixedSizeCollection> { - private ListLocksFixedSizeCollection(List pages, int collectionSize) { + private ListLocksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3365,7 +3371,7 @@ private static ListLocksFixedSizeCollection createEmptyCollection() { @Override protected ListLocksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceSettings.java index 0d11d9f234b5..a246df082adf 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/MetastoreServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -250,7 +251,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); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetastoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java index 3a6832799bb2..a77e4c95b386 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/MetastoreServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -576,7 +577,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); } @@ -685,7 +686,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCatalogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java index d3cbc2e83767..53b5a5c751b0 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String catalog) { return newBuilder().setProject(project).setCatalog(catalog).build().toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java index 5cda0c61a25a..34e6538412df 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/biglake/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/CatalogName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/CatalogName.java index 3cc65b52fe30..311f44d07c49 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/CatalogName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/DatabaseName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/DatabaseName.java index 822aebb62f7b..efae2bfdc2b1 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/DatabaseName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/LocationName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/LocationName.java index c5e04770cead..d88ebcba8499 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/LocationName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/TableName.java b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/TableName.java index 4f86c15982c9..a78389aa405a 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/TableName.java +++ b/java-biglake/proto-google-cloud-biglake-v1/src/main/java/com/google/cloud/bigquery/biglake/v1/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/CatalogName.java b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/CatalogName.java index e6299bb0024a..707287e6f94f 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/CatalogName.java +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/DatabaseName.java b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/DatabaseName.java index 1dc8a0f44a99..2038b6df67e5 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/DatabaseName.java +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LocationName.java b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LocationName.java index c3d172f3127f..ee54ddd78448 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LocationName.java +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LockName.java b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LockName.java index a214dd93cede..ea11c367187e 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LockName.java +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/LockName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static LockName parse(String formattedString) { + public static @Nullable LockName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LockName> values) { List list = new ArrayList<>(values.size()); for (LockName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/TableName.java b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/TableName.java index df018f76ffe4..c10351973048 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/TableName.java +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/CatalogName.java b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/CatalogName.java index b622e988db1d..708a8dc01757 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/CatalogName.java +++ b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String catalog) { return newBuilder().setProject(project).setCatalog(catalog).build().toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/NamespaceName.java b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/NamespaceName.java index a25d1a4a37fa..b5dd9e88f0d1 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/NamespaceName.java +++ b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/NamespaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String catalog, String database) { .toString(); } - public static NamespaceName parse(String formattedString) { + public static @Nullable NamespaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NamespaceName> values) { List list = new ArrayList<>(values.size()); for (NamespaceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/ProjectName.java b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/ProjectName.java index e83cef9a9d28..6edd273ae7a0 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/ProjectName.java +++ b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/TableName.java b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/TableName.java index 7c6960272dfc..008aa4acaf93 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/TableName.java +++ b/java-biglake/proto-google-cloud-biglake-v1beta/src/main/java/com/google/cloud/biglake/hive/v1beta/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String catalog, String database, Str .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java index b4a0a75a0ca1..3ede01f8306f 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java @@ -44,6 +44,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. /** @@ -441,7 +442,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnalyticsHubServiceClient implements BackgroundResource { - private final AnalyticsHubServiceSettings settings; + private final @Nullable AnalyticsHubServiceSettings settings; private final AnalyticsHubServiceStub stub; /** Constructs an instance of AnalyticsHubServiceClient with default settings. */ @@ -481,7 +482,7 @@ protected AnalyticsHubServiceClient(AnalyticsHubServiceStub stub) { this.stub = stub; } - public final AnalyticsHubServiceSettings getSettings() { + public final @Nullable AnalyticsHubServiceSettings getSettings() { return settings; } @@ -514,7 +515,7 @@ public AnalyticsHubServiceStub getStub() { * `projects/myproject/locations/US`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataExchangesPagedResponse listDataExchanges(LocationName parent) { + public final ListDataExchangesPagedResponse listDataExchanges(@Nullable LocationName parent) { ListDataExchangesRequest request = ListDataExchangesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( * `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataExchange getDataExchange(DataExchangeName name) { + public final DataExchange getDataExchange(@Nullable DataExchangeName name) { GetDataExchangeRequest request = GetDataExchangeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataExchange(request); @@ -932,7 +933,8 @@ public final UnaryCallable getDataExchange * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataExchange createDataExchange(LocationName parent, DataExchange dataExchange) { + public final DataExchange createDataExchange( + @Nullable LocationName parent, DataExchange dataExchange) { CreateDataExchangeRequest request = CreateDataExchangeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1149,7 +1151,7 @@ public final UnaryCallable updateDataEx * example, `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataExchange(DataExchangeName name) { + public final void deleteDataExchange(@Nullable DataExchangeName name) { DeleteDataExchangeRequest request = DeleteDataExchangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1265,7 +1267,7 @@ public final UnaryCallable deleteDataExchangeC * `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListListingsPagedResponse listListings(DataExchangeName parent) { + public final ListListingsPagedResponse listListings(@Nullable DataExchangeName parent) { ListListingsRequest request = ListListingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1431,7 +1433,7 @@ public final UnaryCallable listListin * `projects/myproject/locations/US/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Listing getListing(ListingName name) { + public final Listing getListing(@Nullable ListingName name) { GetListingRequest request = GetListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getListing(request); @@ -1549,7 +1551,7 @@ public final UnaryCallable getListingCallable() { * @param listing Required. The listing to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Listing createListing(DataExchangeName parent, Listing listing) { + public final Listing createListing(@Nullable DataExchangeName parent, Listing listing) { CreateListingRequest request = CreateListingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1761,7 +1763,7 @@ public final UnaryCallable updateListingCallable( * `projects/myproject/locations/US/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteListing(ListingName name) { + public final void deleteListing(@Nullable ListingName name) { DeleteListingRequest request = DeleteListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteListing(request); @@ -1881,7 +1883,7 @@ public final UnaryCallable deleteListingCallable() * `projects/myproject/locations/US/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubscribeListingResponse subscribeListing(ListingName name) { + public final SubscribeListingResponse subscribeListing(@Nullable ListingName name) { SubscribeListingRequest request = SubscribeListingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return subscribeListing(request); @@ -2390,8 +2392,9 @@ public static class ListDataExchangesPage ListDataExchangesPage> { private ListDataExchangesPage( - PageContext context, - ListDataExchangesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataExchangesResponse response) { super(context, response); } @@ -2401,14 +2404,16 @@ private static ListDataExchangesPage createEmptyPage() { @Override protected ListDataExchangesPage createPage( - PageContext context, - ListDataExchangesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataExchangesResponse response) { return new ListDataExchangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2423,7 +2428,7 @@ public static class ListDataExchangesFixedSizeCollection ListDataExchangesFixedSizeCollection> { private ListDataExchangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2433,7 +2438,7 @@ private static ListDataExchangesFixedSizeCollection createEmptyCollection() { @Override protected ListDataExchangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataExchangesFixedSizeCollection(pages, collectionSize); } } @@ -2471,9 +2476,10 @@ public static class ListOrgDataExchangesPage ListOrgDataExchangesPage> { private ListOrgDataExchangesPage( - PageContext + @Nullable + PageContext context, - ListOrgDataExchangesResponse response) { + @Nullable ListOrgDataExchangesResponse response) { super(context, response); } @@ -2483,15 +2489,17 @@ private static ListOrgDataExchangesPage createEmptyPage() { @Override protected ListOrgDataExchangesPage createPage( - PageContext + @Nullable + PageContext context, - ListOrgDataExchangesResponse response) { + @Nullable ListOrgDataExchangesResponse response) { return new ListOrgDataExchangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2507,7 +2515,7 @@ public static class ListOrgDataExchangesFixedSizeCollection ListOrgDataExchangesFixedSizeCollection> { private ListOrgDataExchangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2517,7 +2525,7 @@ private static ListOrgDataExchangesFixedSizeCollection createEmptyCollection() { @Override protected ListOrgDataExchangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrgDataExchangesFixedSizeCollection(pages, collectionSize); } } @@ -2550,8 +2558,8 @@ public static class ListListingsPage extends AbstractPage { private ListListingsPage( - PageContext context, - ListListingsResponse response) { + @Nullable PageContext context, + @Nullable ListListingsResponse response) { super(context, response); } @@ -2561,14 +2569,14 @@ private static ListListingsPage createEmptyPage() { @Override protected ListListingsPage createPage( - PageContext context, - ListListingsResponse response) { + @Nullable PageContext context, + @Nullable ListListingsResponse response) { return new ListListingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2582,7 +2590,8 @@ public static class ListListingsFixedSizeCollection ListListingsPage, ListListingsFixedSizeCollection> { - private ListListingsFixedSizeCollection(List pages, int collectionSize) { + private ListListingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2592,7 +2601,7 @@ private static ListListingsFixedSizeCollection createEmptyCollection() { @Override protected ListListingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListListingsFixedSizeCollection(pages, collectionSize); } } @@ -2626,8 +2635,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2637,14 +2646,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2658,7 +2667,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2668,7 +2678,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java index 390ea351a3bb..119fbb554004 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -276,7 +277,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsHubServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java index 4642faa3de2b..d40c15d4f461 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -597,7 +598,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); } @@ -711,7 +712,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDataExchangesSettings = PagedCallSettings.newBuilder(LIST_DATA_EXCHANGES_PAGE_STR_FACT); diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java index c3b5239ea6c4..676093ba65ce 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataExchange .toString(); } - public static DataExchangeName parse(String formattedString) { + public static @Nullable DataExchangeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataExchangeName> values) { List list = new ArrayList<>(values.size()); for (DataExchangeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java index 7c6e39e67267..dbd7eaa0853b 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ListingName parse(String formattedString) { + public static @Nullable ListingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ListingName> values) { List list = new ArrayList<>(values.size()); for (ListingName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java index d99b73b3df2a..abcfebfabbc0 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java index 24f44e76ff31..e4f08dd4ae53 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java @@ -36,6 +36,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. /** @@ -304,7 +305,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConnectionServiceClient implements BackgroundResource { - private final ConnectionServiceSettings settings; + private final @Nullable ConnectionServiceSettings settings; private final ConnectionServiceStub stub; /** Constructs an instance of ConnectionServiceClient with default settings. */ @@ -344,7 +345,7 @@ protected ConnectionServiceClient(ConnectionServiceStub stub) { this.stub = stub; } - public final ConnectionServiceSettings getSettings() { + public final @Nullable ConnectionServiceSettings getSettings() { return settings; } @@ -380,7 +381,7 @@ public ConnectionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConnectionProto.Connection createConnection( - LocationName parent, ConnectionProto.Connection connection, String connectionId) { + @Nullable LocationName parent, ConnectionProto.Connection connection, String connectionId) { ConnectionProto.CreateConnectionRequest request = ConnectionProto.CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -512,7 +513,7 @@ public final ConnectionProto.Connection createConnection( * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionProto.Connection getConnection(ConnectionName name) { + public final ConnectionProto.Connection getConnection(@Nullable ConnectionName name) { ConnectionProto.GetConnectionRequest request = ConnectionProto.GetConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -632,7 +633,7 @@ public final ConnectionProto.Connection getConnection( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConnectionProto.ListConnectionsResponse listConnections( - LocationName parent, UInt32Value maxResults) { + @Nullable LocationName parent, UInt32Value maxResults) { ConnectionProto.ListConnectionsRequest request = ConnectionProto.ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -769,7 +770,7 @@ public final ConnectionProto.ListConnectionsResponse listConnections( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConnectionProto.Connection updateConnection( - ConnectionName name, ConnectionProto.Connection connection, FieldMask updateMask) { + @Nullable ConnectionName name, ConnectionProto.Connection connection, FieldMask updateMask) { ConnectionProto.UpdateConnectionRequest request = ConnectionProto.UpdateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -999,7 +1000,7 @@ public final void updateConnectionCredential( * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConnection(ConnectionName name) { + public final void deleteConnection(@Nullable ConnectionName name) { ConnectionProto.DeleteConnectionRequest request = ConnectionProto.DeleteConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1117,7 +1118,7 @@ public final void deleteConnection(ConnectionProto.DeleteConnectionRequest reque * @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options) { + public final Policy getIamPolicy(@Nullable ResourceName resource, GetPolicyOptions options) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1244,7 +1245,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1383,7 +1384,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index aac05bfcacdd..ac4b718cbc45 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -204,7 +205,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); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConnectionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java index c9d5b14c2656..9d433773e7f2 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -289,7 +290,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); } @@ -393,7 +394,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java index faae677975fe..40535e88aaf6 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java @@ -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. /** @@ -300,7 +301,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConnectionServiceClient implements BackgroundResource { - private final ConnectionServiceSettings settings; + private final @Nullable ConnectionServiceSettings settings; private final ConnectionServiceStub stub; /** Constructs an instance of ConnectionServiceClient with default settings. */ @@ -340,7 +341,7 @@ protected ConnectionServiceClient(ConnectionServiceStub stub) { this.stub = stub; } - public final ConnectionServiceSettings getSettings() { + public final @Nullable ConnectionServiceSettings getSettings() { return settings; } @@ -376,7 +377,7 @@ public ConnectionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Connection createConnection( - LocationName parent, Connection connection, String connectionId) { + @Nullable LocationName parent, Connection connection, String connectionId) { CreateConnectionRequest request = CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -506,7 +507,7 @@ public final UnaryCallable createConnection * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection getConnection(ConnectionName name) { + public final Connection getConnection(@Nullable ConnectionName name) { GetConnectionRequest request = GetConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnection(request); @@ -619,7 +620,7 @@ public final UnaryCallable getConnectionCallab * `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(LocationName parent) { + public final ListConnectionsPagedResponse listConnections(@Nullable LocationName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -789,7 +790,7 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Connection updateConnection( - ConnectionName name, Connection connection, FieldMask updateMask) { + @Nullable ConnectionName name, Connection connection, FieldMask updateMask) { UpdateConnectionRequest request = UpdateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -921,7 +922,7 @@ public final UnaryCallable updateConnection * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConnection(ConnectionName name) { + public final void deleteConnection(@Nullable ConnectionName name) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteConnection(request); @@ -1035,7 +1036,7 @@ public final UnaryCallable deleteConnectionCalla * @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options) { + public final Policy getIamPolicy(@Nullable ResourceName resource, GetPolicyOptions options) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1162,7 +1163,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1301,7 +1302,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1480,8 +1481,8 @@ public static class ListConnectionsPage ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -1491,14 +1492,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1513,7 +1514,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1523,7 +1524,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index ed8935b5bf07..d26df0585598 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -203,7 +204,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); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConnectionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java index 9f320c3a0745..5ffd0cc6d06f 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,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); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java index 50c4b19b6291..3f4508ba2f3e 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String connection) .toString(); } - public static ConnectionName parse(String formattedString) { + public static @Nullable ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionName> values) { List list = new ArrayList<>(values.size()); for (ConnectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java index 97595a1ebac5..3275123784b8 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java index 642f4484e0fa..b57824e6d4d6 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String connection) .toString(); } - public static ConnectionName parse(String formattedString) { + public static @Nullable ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionName> values) { List list = new ArrayList<>(values.size()); for (ConnectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java index 458d418e9742..e54a543e505a 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceClient.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceClient.java index 5cc8c59e37aa..2b6ca2f7f10a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceClient.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceClient.java @@ -39,6 +39,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. /** @@ -287,7 +288,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataPolicyServiceClient implements BackgroundResource { - private final DataPolicyServiceSettings settings; + private final @Nullable DataPolicyServiceSettings settings; private final DataPolicyServiceStub stub; /** Constructs an instance of DataPolicyServiceClient with default settings. */ @@ -327,7 +328,7 @@ protected DataPolicyServiceClient(DataPolicyServiceStub stub) { this.stub = stub; } - public final DataPolicyServiceSettings getSettings() { + public final @Nullable DataPolicyServiceSettings getSettings() { return settings; } @@ -361,7 +362,7 @@ public DataPolicyServiceStub getStub() { * provided for the data policy creation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy createDataPolicy(LocationName parent, DataPolicy dataPolicy) { + public final DataPolicy createDataPolicy(@Nullable LocationName parent, DataPolicy dataPolicy) { CreateDataPolicyRequest request = CreateDataPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -673,7 +674,7 @@ public final UnaryCallable renameDataPolicy * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataPolicy(DataPolicyName name) { + public final void deleteDataPolicy(@Nullable DataPolicyName name) { DeleteDataPolicyRequest request = DeleteDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataPolicy(request); @@ -784,7 +785,7 @@ public final UnaryCallable deleteDataPolicyCalla * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy getDataPolicy(DataPolicyName name) { + public final DataPolicy getDataPolicy(@Nullable DataPolicyName name) { GetDataPolicyRequest request = GetDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataPolicy(request); @@ -897,7 +898,7 @@ public final UnaryCallable getDataPolicyCallab * `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataPoliciesPagedResponse listDataPolicies(LocationName parent) { + public final ListDataPoliciesPagedResponse listDataPolicies(@Nullable LocationName parent) { ListDataPoliciesRequest request = ListDataPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1277,8 +1278,9 @@ public static class ListDataPoliciesPage ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy, ListDataPoliciesPage> { private ListDataPoliciesPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { super(context, response); } @@ -1288,14 +1290,16 @@ private static ListDataPoliciesPage createEmptyPage() { @Override protected ListDataPoliciesPage createPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { return new ListDataPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1310,7 +1314,7 @@ public static class ListDataPoliciesFixedSizeCollection ListDataPoliciesFixedSizeCollection> { private ListDataPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1320,7 +1324,7 @@ private static ListDataPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListDataPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceSettings.java index 309f5a55e230..f391cb158203 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,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); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java index c3aa23bc12a7..0cfc61c3e598 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/DataPolicyServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -348,7 +349,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); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceClient.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceClient.java index d9beec4f6b56..e8870b1177fb 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceClient.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceClient.java @@ -40,6 +40,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. /** @@ -271,7 +272,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataPolicyServiceClient implements BackgroundResource { - private final DataPolicyServiceSettings settings; + private final @Nullable DataPolicyServiceSettings settings; private final DataPolicyServiceStub stub; /** Constructs an instance of DataPolicyServiceClient with default settings. */ @@ -311,7 +312,7 @@ protected DataPolicyServiceClient(DataPolicyServiceStub stub) { this.stub = stub; } - public final DataPolicyServiceSettings getSettings() { + public final @Nullable DataPolicyServiceSettings getSettings() { return settings; } @@ -345,7 +346,7 @@ public DataPolicyServiceStub getStub() { * provided for the data policy creation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy createDataPolicy(LocationName parent, DataPolicy dataPolicy) { + public final DataPolicy createDataPolicy(@Nullable LocationName parent, DataPolicy dataPolicy) { CreateDataPolicyRequest request = CreateDataPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -566,7 +567,7 @@ public final UnaryCallable updateDataPolicy * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataPolicy(DataPolicyName name) { + public final void deleteDataPolicy(@Nullable DataPolicyName name) { DeleteDataPolicyRequest request = DeleteDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataPolicy(request); @@ -677,7 +678,7 @@ public final UnaryCallable deleteDataPolicyCalla * `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy getDataPolicy(DataPolicyName name) { + public final DataPolicy getDataPolicy(@Nullable DataPolicyName name) { GetDataPolicyRequest request = GetDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataPolicy(request); @@ -790,7 +791,7 @@ public final UnaryCallable getDataPolicyCallab * `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataPoliciesPagedResponse listDataPolicies(LocationName parent) { + public final ListDataPoliciesPagedResponse listDataPolicies(@Nullable LocationName parent) { ListDataPoliciesRequest request = ListDataPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1167,8 +1168,9 @@ public static class ListDataPoliciesPage ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy, ListDataPoliciesPage> { private ListDataPoliciesPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { super(context, response); } @@ -1178,14 +1180,16 @@ private static ListDataPoliciesPage createEmptyPage() { @Override protected ListDataPoliciesPage createPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { return new ListDataPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1200,7 +1204,7 @@ public static class ListDataPoliciesFixedSizeCollection ListDataPoliciesFixedSizeCollection> { private ListDataPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1210,7 +1214,7 @@ private static ListDataPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListDataPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceSettings.java index 2e1f76a58ecf..3a72019a1f14 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,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); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java index 55b34a4edfdc..0c3cf001a1c8 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/DataPolicyServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -425,7 +426,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceClient.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceClient.java index 567b1c9de6df..72cf637fde1c 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceClient.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceClient.java @@ -39,6 +39,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. /** @@ -309,7 +310,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataPolicyServiceClient implements BackgroundResource { - private final DataPolicyServiceSettings settings; + private final @Nullable DataPolicyServiceSettings settings; private final DataPolicyServiceStub stub; /** Constructs an instance of DataPolicyServiceClient with default settings. */ @@ -349,7 +350,7 @@ protected DataPolicyServiceClient(DataPolicyServiceStub stub) { this.stub = stub; } - public final DataPolicyServiceSettings getSettings() { + public final @Nullable DataPolicyServiceSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public DataPolicyServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataPolicy createDataPolicy( - LocationName parent, DataPolicy dataPolicy, String dataPolicyId) { + @Nullable LocationName parent, DataPolicy dataPolicy, String dataPolicyId) { CreateDataPolicyRequest request = CreateDataPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -538,7 +539,7 @@ public final UnaryCallable createDataPolicy * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy addGrantees(DataPolicyName dataPolicy, List grantees) { + public final DataPolicy addGrantees(@Nullable DataPolicyName dataPolicy, List grantees) { AddGranteesRequest request = AddGranteesRequest.newBuilder() .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) @@ -690,7 +691,8 @@ public final UnaryCallable addGranteesCallable() * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy removeGrantees(DataPolicyName dataPolicy, List grantees) { + public final DataPolicy removeGrantees( + @Nullable DataPolicyName dataPolicy, List grantees) { RemoveGranteesRequest request = RemoveGranteesRequest.newBuilder() .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) @@ -929,7 +931,7 @@ public final UnaryCallable updateDataPolicy * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataPolicy(DataPolicyName name) { + public final void deleteDataPolicy(@Nullable DataPolicyName name) { DeleteDataPolicyRequest request = DeleteDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataPolicy(request); @@ -1040,7 +1042,7 @@ public final UnaryCallable deleteDataPolicyCalla * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy getDataPolicy(DataPolicyName name) { + public final DataPolicy getDataPolicy(@Nullable DataPolicyName name) { GetDataPolicyRequest request = GetDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataPolicy(request); @@ -1153,7 +1155,7 @@ public final UnaryCallable getDataPolicyCallab * `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataPoliciesPagedResponse listDataPolicies(LocationName parent) { + public final ListDataPoliciesPagedResponse listDataPolicies(@Nullable LocationName parent) { ListDataPoliciesRequest request = ListDataPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1533,8 +1535,9 @@ public static class ListDataPoliciesPage ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy, ListDataPoliciesPage> { private ListDataPoliciesPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { super(context, response); } @@ -1544,14 +1547,16 @@ private static ListDataPoliciesPage createEmptyPage() { @Override protected ListDataPoliciesPage createPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { return new ListDataPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1566,7 +1571,7 @@ public static class ListDataPoliciesFixedSizeCollection ListDataPoliciesFixedSizeCollection> { private ListDataPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1576,7 +1581,7 @@ private static ListDataPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListDataPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceSettings.java index 90ce03540755..7747baa3433a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -206,7 +207,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); } @@ -226,7 +227,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/DataPolicyServiceStubSettings.java index e16480ecbb17..600a64264f47 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/DataPolicyServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -355,7 +356,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); } @@ -447,7 +448,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java index 111897201f37..245539805b65 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceClient.java @@ -40,6 +40,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. /** @@ -311,7 +312,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataPolicyServiceClient implements BackgroundResource { - private final DataPolicyServiceSettings settings; + private final @Nullable DataPolicyServiceSettings settings; private final DataPolicyServiceStub stub; /** Constructs an instance of DataPolicyServiceClient with default settings. */ @@ -351,7 +352,7 @@ protected DataPolicyServiceClient(DataPolicyServiceStub stub) { this.stub = stub; } - public final DataPolicyServiceSettings getSettings() { + public final @Nullable DataPolicyServiceSettings getSettings() { return settings; } @@ -390,7 +391,7 @@ public DataPolicyServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataPolicy createDataPolicy( - LocationName parent, DataPolicy dataPolicy, String dataPolicyId) { + @Nullable LocationName parent, DataPolicy dataPolicy, String dataPolicyId) { CreateDataPolicyRequest request = CreateDataPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -540,7 +541,7 @@ public final UnaryCallable createDataPolicy * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy addGrantees(DataPolicyName dataPolicy, List grantees) { + public final DataPolicy addGrantees(@Nullable DataPolicyName dataPolicy, List grantees) { AddGranteesRequest request = AddGranteesRequest.newBuilder() .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) @@ -692,7 +693,8 @@ public final UnaryCallable addGranteesCallable() * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy removeGrantees(DataPolicyName dataPolicy, List grantees) { + public final DataPolicy removeGrantees( + @Nullable DataPolicyName dataPolicy, List grantees) { RemoveGranteesRequest request = RemoveGranteesRequest.newBuilder() .setDataPolicy(dataPolicy == null ? null : dataPolicy.toString()) @@ -929,7 +931,7 @@ public final UnaryCallable updateDataPolicy * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataPolicy(DataPolicyName name) { + public final void deleteDataPolicy(@Nullable DataPolicyName name) { DeleteDataPolicyRequest request = DeleteDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataPolicy(request); @@ -1040,7 +1042,7 @@ public final UnaryCallable deleteDataPolicyCalla * `projects/{project_number}/locations/{location_id}/dataPolicies/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPolicy getDataPolicy(DataPolicyName name) { + public final DataPolicy getDataPolicy(@Nullable DataPolicyName name) { GetDataPolicyRequest request = GetDataPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataPolicy(request); @@ -1153,7 +1155,7 @@ public final UnaryCallable getDataPolicyCallab * `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataPoliciesPagedResponse listDataPolicies(LocationName parent) { + public final ListDataPoliciesPagedResponse listDataPolicies(@Nullable LocationName parent) { ListDataPoliciesRequest request = ListDataPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1530,8 +1532,9 @@ public static class ListDataPoliciesPage ListDataPoliciesRequest, ListDataPoliciesResponse, DataPolicy, ListDataPoliciesPage> { private ListDataPoliciesPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { super(context, response); } @@ -1541,14 +1544,16 @@ private static ListDataPoliciesPage createEmptyPage() { @Override protected ListDataPoliciesPage createPage( - PageContext context, - ListDataPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataPoliciesResponse response) { return new ListDataPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1563,7 +1568,7 @@ public static class ListDataPoliciesFixedSizeCollection ListDataPoliciesFixedSizeCollection> { private ListDataPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1573,7 +1578,7 @@ private static ListDataPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListDataPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java index ccb577eb2378..48f00476f774 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java index 93d300f3677f..e62749865c8b 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/DataPolicyServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -356,7 +357,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); } @@ -448,7 +449,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyName.java index 5a796ea2c186..5e3decb6975f 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/DataPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataPolicy) .toString(); } - public static DataPolicyName parse(String formattedString) { + public static @Nullable DataPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataPolicyName> values) { List list = new ArrayList<>(values.size()); for (DataPolicyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/LocationName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/LocationName.java index 1041a3ebce27..efa7bfb9ab53 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/LocationName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/src/main/java/com/google/cloud/bigquery/datapolicies/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyName.java index bd3ccf8469fe..0b496e0844e2 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/DataPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataPolicy) .toString(); } - public static DataPolicyName parse(String formattedString) { + public static @Nullable DataPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataPolicyName> values) { List list = new ArrayList<>(values.size()); for (DataPolicyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/LocationName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/LocationName.java index f57e2dbcd157..2006ad047808 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/LocationName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyName.java index a2ae5ef7ed4a..0e19a1ee6b94 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/DataPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataPolicy) .toString(); } - public static DataPolicyName parse(String formattedString) { + public static @Nullable DataPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataPolicyName> values) { List list = new ArrayList<>(values.size()); for (DataPolicyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/LocationName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/LocationName.java index bf190e82dbaf..9a3aa6bbd328 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/LocationName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/src/main/java/com/google/cloud/bigquery/datapolicies/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java index bab422bb63e8..2ba07b6ba57d 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/DataPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataPolicy) .toString(); } - public static DataPolicyName parse(String formattedString) { + public static @Nullable DataPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataPolicyName> values) { List list = new ArrayList<>(values.size()); for (DataPolicyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java index e20ddb9a0f5d..e44a936cffbf 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java index f228cc7fc87a..f50ab8fcb0df 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceClient.java @@ -39,6 +39,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. /** @@ -457,7 +458,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataTransferServiceClient implements BackgroundResource { - private final DataTransferServiceSettings settings; + private final @Nullable DataTransferServiceSettings settings; private final DataTransferServiceStub stub; /** Constructs an instance of DataTransferServiceClient with default settings. */ @@ -497,7 +498,7 @@ protected DataTransferServiceClient(DataTransferServiceStub stub) { this.stub = stub; } - public final DataTransferServiceSettings getSettings() { + public final @Nullable DataTransferServiceSettings getSettings() { return settings; } @@ -530,7 +531,7 @@ public DataTransferServiceStub getStub() { * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource getDataSource(DataSourceName name) { + public final DataSource getDataSource(@Nullable DataSourceName name) { GetDataSourceRequest request = GetDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataSource(request); @@ -650,7 +651,7 @@ public final UnaryCallable getDataSourceCallab * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourcesPagedResponse listDataSources(LocationName parent) { + public final ListDataSourcesPagedResponse listDataSources(@Nullable LocationName parent) { ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -682,7 +683,7 @@ public final ListDataSourcesPagedResponse listDataSources(LocationName parent) { * be in the form: `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourcesPagedResponse listDataSources(ProjectName parent) { + public final ListDataSourcesPagedResponse listDataSources(@Nullable ProjectName parent) { ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -852,7 +853,7 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransferConfig createTransferConfig( - LocationName parent, TransferConfig transferConfig) { + @Nullable LocationName parent, TransferConfig transferConfig) { CreateTransferConfigRequest request = CreateTransferConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -889,7 +890,7 @@ public final TransferConfig createTransferConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransferConfig createTransferConfig( - ProjectName parent, TransferConfig transferConfig) { + @Nullable ProjectName parent, TransferConfig transferConfig) { CreateTransferConfigRequest request = CreateTransferConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1123,7 +1124,7 @@ public final TransferConfig updateTransferConfig(UpdateTransferConfigRequest req * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTransferConfig(TransferConfigName name) { + public final void deleteTransferConfig(@Nullable TransferConfigName name) { DeleteTransferConfigRequest request = DeleteTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1249,7 +1250,7 @@ public final UnaryCallable deleteTransferCon * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TransferConfig getTransferConfig(TransferConfigName name) { + public final TransferConfig getTransferConfig(@Nullable TransferConfigName name) { GetTransferConfigRequest request = GetTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1374,7 +1375,7 @@ public final UnaryCallable getTransfer * `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransferConfigsPagedResponse listTransferConfigs(LocationName parent) { + public final ListTransferConfigsPagedResponse listTransferConfigs(@Nullable LocationName parent) { ListTransferConfigsRequest request = ListTransferConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1407,7 +1408,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs(LocationName p * `projects/{project_id}` or `projects/{project_id}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransferConfigsPagedResponse listTransferConfigs(ProjectName parent) { + public final ListTransferConfigsPagedResponse listTransferConfigs(@Nullable ProjectName parent) { ListTransferConfigsRequest request = ListTransferConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1594,7 +1595,7 @@ public final ListTransferConfigsPagedResponse listTransferConfigs( */ @Deprecated public final ScheduleTransferRunsResponse scheduleTransferRuns( - TransferConfigName parent, Timestamp startTime, Timestamp endTime) { + @Nullable TransferConfigName parent, Timestamp startTime, Timestamp endTime) { ScheduleTransferRunsRequest request = ScheduleTransferRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1826,7 +1827,7 @@ public final StartManualTransferRunsResponse startManualTransferRuns( * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TransferRun getTransferRun(RunName name) { + public final TransferRun getTransferRun(@Nullable RunName name) { GetTransferRunRequest request = GetTransferRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTransferRun(request); @@ -1949,7 +1950,7 @@ public final UnaryCallable getTransferRunCal * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTransferRun(RunName name) { + public final void deleteTransferRun(@Nullable RunName name) { DeleteTransferRunRequest request = DeleteTransferRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2077,7 +2078,7 @@ public final UnaryCallable deleteTransferRunCal * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransferRunsPagedResponse listTransferRuns(TransferConfigName parent) { + public final ListTransferRunsPagedResponse listTransferRuns(@Nullable TransferConfigName parent) { ListTransferRunsRequest request = ListTransferRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2264,7 +2265,7 @@ public final ListTransferRunsPagedResponse listTransferRuns(ListTransferRunsRequ * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransferLogsPagedResponse listTransferLogs(RunName parent) { + public final ListTransferLogsPagedResponse listTransferLogs(@Nullable RunName parent) { ListTransferLogsRequest request = ListTransferLogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2449,7 +2450,7 @@ public final ListTransferLogsPagedResponse listTransferLogs(ListTransferLogsRequ * `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CheckValidCredsResponse checkValidCreds(DataSourceName name) { + public final CheckValidCredsResponse checkValidCreds(@Nullable DataSourceName name) { CheckValidCredsRequest request = CheckValidCredsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return checkValidCreds(request); @@ -2892,8 +2893,8 @@ public static class ListDataSourcesPage ListDataSourcesRequest, ListDataSourcesResponse, DataSource, ListDataSourcesPage> { private ListDataSourcesPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { super(context, response); } @@ -2903,14 +2904,14 @@ private static ListDataSourcesPage createEmptyPage() { @Override protected ListDataSourcesPage createPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { return new ListDataSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2925,7 +2926,7 @@ public static class ListDataSourcesFixedSizeCollection ListDataSourcesFixedSizeCollection> { private ListDataSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2935,7 +2936,7 @@ private static ListDataSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListDataSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSourcesFixedSizeCollection(pages, collectionSize); } } @@ -2973,9 +2974,10 @@ public static class ListTransferConfigsPage ListTransferConfigsPage> { private ListTransferConfigsPage( - PageContext + @Nullable + PageContext context, - ListTransferConfigsResponse response) { + @Nullable ListTransferConfigsResponse response) { super(context, response); } @@ -2985,15 +2987,17 @@ private static ListTransferConfigsPage createEmptyPage() { @Override protected ListTransferConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListTransferConfigsResponse response) { + @Nullable ListTransferConfigsResponse response) { return new ListTransferConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3009,7 +3013,7 @@ public static class ListTransferConfigsFixedSizeCollection ListTransferConfigsFixedSizeCollection> { private ListTransferConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3019,7 +3023,7 @@ private static ListTransferConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListTransferConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferConfigsFixedSizeCollection(pages, collectionSize); } } @@ -3053,8 +3057,9 @@ public static class ListTransferRunsPage ListTransferRunsRequest, ListTransferRunsResponse, TransferRun, ListTransferRunsPage> { private ListTransferRunsPage( - PageContext context, - ListTransferRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListTransferRunsResponse response) { super(context, response); } @@ -3064,14 +3069,16 @@ private static ListTransferRunsPage createEmptyPage() { @Override protected ListTransferRunsPage createPage( - PageContext context, - ListTransferRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListTransferRunsResponse response) { return new ListTransferRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3086,7 +3093,7 @@ public static class ListTransferRunsFixedSizeCollection ListTransferRunsFixedSizeCollection> { private ListTransferRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3096,7 +3103,7 @@ private static ListTransferRunsFixedSizeCollection createEmptyCollection() { @Override protected ListTransferRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferRunsFixedSizeCollection(pages, collectionSize); } } @@ -3133,8 +3140,9 @@ public static class ListTransferLogsPage ListTransferLogsPage> { private ListTransferLogsPage( - PageContext context, - ListTransferLogsResponse response) { + @Nullable PageContext + context, + @Nullable ListTransferLogsResponse response) { super(context, response); } @@ -3144,14 +3152,16 @@ private static ListTransferLogsPage createEmptyPage() { @Override protected ListTransferLogsPage createPage( - PageContext context, - ListTransferLogsResponse response) { + @Nullable PageContext + context, + @Nullable ListTransferLogsResponse response) { return new ListTransferLogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3166,7 +3176,7 @@ public static class ListTransferLogsFixedSizeCollection ListTransferLogsFixedSizeCollection> { private ListTransferLogsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3176,7 +3186,7 @@ private static ListTransferLogsFixedSizeCollection createEmptyCollection() { @Override protected ListTransferLogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferLogsFixedSizeCollection(pages, collectionSize); } } @@ -3210,8 +3220,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3221,14 +3231,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3242,7 +3252,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3252,7 +3263,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java index b18b0bc9719a..c4736252bd88 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataTransferServiceSettings.java @@ -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. /** @@ -266,7 +267,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); } @@ -286,7 +287,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataTransferServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java index a43c44f206f7..e9924a54d3e3 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/DataTransferServiceStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -672,7 +673,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); } @@ -810,7 +811,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDataSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerydatatransfer/owlbot.py b/java-bigquerydatatransfer/owlbot.py index 943fcaa30d10..9edac350d5fd 100644 --- a/java-bigquerydatatransfer/owlbot.py +++ b/java-bigquerydatatransfer/owlbot.py @@ -22,11 +22,11 @@ # Ensure backwards-compat for Java-microgenerator migration # Details: https://github.com/googleapis/synthtool/pull/883 java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java', 'public static List toStringList(List values)') + java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java', 'public static List toStringList(List<@Nullable DataSourceName> values)') java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java', 'public static List toStringList(List values)') + java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java', 'public static List toStringList(List<@Nullable TransferConfigName> values)') java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java', 'public static List toStringList(List values)') + java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java', 'public static List toStringList(List<@Nullable RunName> values)') s.move(library) diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java index 262447b4701a..7a46dd7cd1e4 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -126,7 +127,7 @@ public static String formatProjectLocationDataSourceName( .toString(); } - public static DataSourceName parse(String formattedString) { + public static @Nullable DataSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -178,7 +179,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java index 9e1a87d2c48b..3d03edf6eecf 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java index 5f5fb60bd2a2..b0cb5d9eae5f 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java index 5746f7410743..a49dfcb42bac 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatProjectLocationTransferConfigRunName( .toString(); } - public static RunName parse(String formattedString) { + public static @Nullable RunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -209,7 +210,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java index d2c997e3a75e..bcfaf833c628 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -127,7 +128,7 @@ public static String formatProjectLocationTransferConfigName( .toString(); } - public static TransferConfigName parse(String formattedString) { + public static @Nullable TransferConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java index 489f8f91565a..5c42a1445968 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java @@ -33,6 +33,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. /** @@ -262,7 +263,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MigrationServiceClient implements BackgroundResource { - private final MigrationServiceSettings settings; + private final @Nullable MigrationServiceSettings settings; private final MigrationServiceStub stub; /** Constructs an instance of MigrationServiceClient with default settings. */ @@ -302,7 +303,7 @@ protected MigrationServiceClient(MigrationServiceStub stub) { this.stub = stub; } - public final MigrationServiceSettings getSettings() { + public final @Nullable MigrationServiceSettings getSettings() { return settings; } @@ -336,7 +337,7 @@ public MigrationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MigrationWorkflow createMigrationWorkflow( - LocationName parent, MigrationWorkflow migrationWorkflow) { + @Nullable LocationName parent, MigrationWorkflow migrationWorkflow) { CreateMigrationWorkflowRequest request = CreateMigrationWorkflowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -462,7 +463,7 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigrationWorkflow getMigrationWorkflow(MigrationWorkflowName name) { + public final MigrationWorkflow getMigrationWorkflow(@Nullable MigrationWorkflowName name) { GetMigrationWorkflowRequest request = GetMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -582,7 +583,8 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest * `projects/123/locations/us` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(LocationName parent) { + public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( + @Nullable LocationName parent) { ListMigrationWorkflowsRequest request = ListMigrationWorkflowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -754,7 +756,7 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMigrationWorkflow(MigrationWorkflowName name) { + public final void deleteMigrationWorkflow(@Nullable MigrationWorkflowName name) { DeleteMigrationWorkflowRequest request = DeleteMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -872,7 +874,7 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest request * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void startMigrationWorkflow(MigrationWorkflowName name) { + public final void startMigrationWorkflow(@Nullable MigrationWorkflowName name) { StartMigrationWorkflowRequest request = StartMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -994,7 +996,7 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest request) * `projects/123/locations/us/workflows/1234/subtasks/543` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigrationSubtask getMigrationSubtask(MigrationSubtaskName name) { + public final MigrationSubtask getMigrationSubtask(@Nullable MigrationSubtaskName name) { GetMigrationSubtaskRequest request = GetMigrationSubtaskRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1121,7 +1123,7 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( - MigrationWorkflowName parent) { + @Nullable MigrationWorkflowName parent) { ListMigrationSubtasksRequest request = ListMigrationSubtasksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1340,10 +1342,11 @@ public static class ListMigrationWorkflowsPage ListMigrationWorkflowsPage> { private ListMigrationWorkflowsPage( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, - ListMigrationWorkflowsResponse response) { + @Nullable ListMigrationWorkflowsResponse response) { super(context, response); } @@ -1353,16 +1356,18 @@ private static ListMigrationWorkflowsPage createEmptyPage() { @Override protected ListMigrationWorkflowsPage createPage( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, - ListMigrationWorkflowsResponse response) { + @Nullable ListMigrationWorkflowsResponse response) { return new ListMigrationWorkflowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, ApiFuture futureResponse) { @@ -1379,7 +1384,7 @@ public static class ListMigrationWorkflowsFixedSizeCollection ListMigrationWorkflowsFixedSizeCollection> { private ListMigrationWorkflowsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1389,7 +1394,7 @@ private static ListMigrationWorkflowsFixedSizeCollection createEmptyCollection() @Override protected ListMigrationWorkflowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigrationWorkflowsFixedSizeCollection(pages, collectionSize); } } @@ -1427,9 +1432,11 @@ public static class ListMigrationSubtasksPage ListMigrationSubtasksPage> { private ListMigrationSubtasksPage( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, - ListMigrationSubtasksResponse response) { + @Nullable ListMigrationSubtasksResponse response) { super(context, response); } @@ -1439,15 +1446,19 @@ private static ListMigrationSubtasksPage createEmptyPage() { @Override protected ListMigrationSubtasksPage createPage( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, - ListMigrationSubtasksResponse response) { + @Nullable ListMigrationSubtasksResponse response) { return new ListMigrationSubtasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1463,7 +1474,7 @@ public static class ListMigrationSubtasksFixedSizeCollection ListMigrationSubtasksFixedSizeCollection> { private ListMigrationSubtasksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1473,7 +1484,7 @@ private static ListMigrationSubtasksFixedSizeCollection createEmptyCollection() @Override protected ListMigrationSubtasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigrationSubtasksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java index d6b9fa6c805e..0eafa57cebd0 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -196,7 +197,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); } @@ -216,7 +217,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MigrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java index 74ce202c2bed..bcdaaa3801b8 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -425,7 +426,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); } @@ -526,7 +527,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMigrationWorkflowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java index 3336e464e847..a434723dd400 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java @@ -34,6 +34,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. /** @@ -264,7 +265,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MigrationServiceClient implements BackgroundResource { - private final MigrationServiceSettings settings; + private final @Nullable MigrationServiceSettings settings; private final MigrationServiceStub stub; /** Constructs an instance of MigrationServiceClient with default settings. */ @@ -304,7 +305,7 @@ protected MigrationServiceClient(MigrationServiceStub stub) { this.stub = stub; } - public final MigrationServiceSettings getSettings() { + public final @Nullable MigrationServiceSettings getSettings() { return settings; } @@ -338,7 +339,7 @@ public MigrationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MigrationWorkflow createMigrationWorkflow( - LocationName parent, MigrationWorkflow migrationWorkflow) { + @Nullable LocationName parent, MigrationWorkflow migrationWorkflow) { CreateMigrationWorkflowRequest request = CreateMigrationWorkflowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -464,7 +465,7 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigrationWorkflow getMigrationWorkflow(MigrationWorkflowName name) { + public final MigrationWorkflow getMigrationWorkflow(@Nullable MigrationWorkflowName name) { GetMigrationWorkflowRequest request = GetMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -584,7 +585,8 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest * `projects/123/locations/us` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(LocationName parent) { + public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( + @Nullable LocationName parent) { ListMigrationWorkflowsRequest request = ListMigrationWorkflowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -756,7 +758,7 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMigrationWorkflow(MigrationWorkflowName name) { + public final void deleteMigrationWorkflow(@Nullable MigrationWorkflowName name) { DeleteMigrationWorkflowRequest request = DeleteMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -874,7 +876,7 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest request * `projects/123/locations/us/workflows/1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void startMigrationWorkflow(MigrationWorkflowName name) { + public final void startMigrationWorkflow(@Nullable MigrationWorkflowName name) { StartMigrationWorkflowRequest request = StartMigrationWorkflowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -996,7 +998,7 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest request) * `projects/123/locations/us/workflows/1234/subtasks/543` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigrationSubtask getMigrationSubtask(MigrationSubtaskName name) { + public final MigrationSubtask getMigrationSubtask(@Nullable MigrationSubtaskName name) { GetMigrationSubtaskRequest request = GetMigrationSubtaskRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1123,7 +1125,7 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( - MigrationWorkflowName parent) { + @Nullable MigrationWorkflowName parent) { ListMigrationSubtasksRequest request = ListMigrationSubtasksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1342,10 +1344,11 @@ public static class ListMigrationWorkflowsPage ListMigrationWorkflowsPage> { private ListMigrationWorkflowsPage( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, - ListMigrationWorkflowsResponse response) { + @Nullable ListMigrationWorkflowsResponse response) { super(context, response); } @@ -1355,16 +1358,18 @@ private static ListMigrationWorkflowsPage createEmptyPage() { @Override protected ListMigrationWorkflowsPage createPage( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, - ListMigrationWorkflowsResponse response) { + @Nullable ListMigrationWorkflowsResponse response) { return new ListMigrationWorkflowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMigrationWorkflowsRequest, ListMigrationWorkflowsResponse, MigrationWorkflow> context, ApiFuture futureResponse) { @@ -1381,7 +1386,7 @@ public static class ListMigrationWorkflowsFixedSizeCollection ListMigrationWorkflowsFixedSizeCollection> { private ListMigrationWorkflowsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1391,7 +1396,7 @@ private static ListMigrationWorkflowsFixedSizeCollection createEmptyCollection() @Override protected ListMigrationWorkflowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigrationWorkflowsFixedSizeCollection(pages, collectionSize); } } @@ -1429,9 +1434,11 @@ public static class ListMigrationSubtasksPage ListMigrationSubtasksPage> { private ListMigrationSubtasksPage( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, - ListMigrationSubtasksResponse response) { + @Nullable ListMigrationSubtasksResponse response) { super(context, response); } @@ -1441,15 +1448,19 @@ private static ListMigrationSubtasksPage createEmptyPage() { @Override protected ListMigrationSubtasksPage createPage( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, - ListMigrationSubtasksResponse response) { + @Nullable ListMigrationSubtasksResponse response) { return new ListMigrationSubtasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListMigrationSubtasksRequest, ListMigrationSubtasksResponse, MigrationSubtask> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1465,7 +1476,7 @@ public static class ListMigrationSubtasksFixedSizeCollection ListMigrationSubtasksFixedSizeCollection> { private ListMigrationSubtasksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1475,7 +1486,7 @@ private static ListMigrationSubtasksFixedSizeCollection createEmptyCollection() @Override protected ListMigrationSubtasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigrationSubtasksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java index 68f60c71a4dd..aec9dd6b8306 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,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); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MigrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java index c7d9768aaa79..46b3ded96b1b 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceClient.java @@ -25,6 +25,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. /** @@ -142,7 +143,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SqlTranslationServiceClient implements BackgroundResource { - private final SqlTranslationServiceSettings settings; + private final @Nullable SqlTranslationServiceSettings settings; private final SqlTranslationServiceStub stub; /** Constructs an instance of SqlTranslationServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected SqlTranslationServiceClient(SqlTranslationServiceStub stub) { this.stub = stub; } - public final SqlTranslationServiceSettings getSettings() { + public final @Nullable SqlTranslationServiceSettings getSettings() { return settings; } @@ -220,7 +221,7 @@ public SqlTranslationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TranslateQueryResponse translateQuery( - LocationName parent, + @Nullable LocationName parent, TranslateQueryRequest.SqlTranslationSourceDialect sourceDialect, String query) { TranslateQueryRequest request = diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java index 50d7c72e2f22..2a3886ff7dd8 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/SqlTranslationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SqlTranslationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java index db131acd683c..d3808d95eb02 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -426,7 +427,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); } @@ -524,7 +525,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMigrationWorkflowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java index 78f52440b8de..5cab88fdbe87 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/SqlTranslationServiceStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -270,7 +271,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); translateQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java index 709bd68e1e5c..f3b7b686edd8 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java index e48364257632..93b323a347db 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationSubtaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String workflow, St .toString(); } - public static MigrationSubtaskName parse(String formattedString) { + public static @Nullable MigrationSubtaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigrationSubtaskName> values) { List list = new ArrayList<>(values.size()); for (MigrationSubtaskName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java index 1fa66ea9240d..bd060f393b5a 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationWorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static MigrationWorkflowName parse(String formattedString) { + public static @Nullable MigrationWorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigrationWorkflowName> values) { List list = new ArrayList<>(values.size()); for (MigrationWorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java index bb6fb7edbae4..946a82e1d2e7 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java index 317815472138..cf448a606f9b 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationSubtaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String workflow, St .toString(); } - public static MigrationSubtaskName parse(String formattedString) { + public static @Nullable MigrationSubtaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigrationSubtaskName> values) { List list = new ArrayList<>(values.size()); for (MigrationSubtaskName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java index a31e91883666..52b2af9dc9e7 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationWorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static MigrationWorkflowName parse(String formattedString) { + public static @Nullable MigrationWorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigrationWorkflowName> values) { List list = new ArrayList<>(values.size()); for (MigrationWorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java index 5ff03e92da45..7a91f64a71af 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceClient.java @@ -40,6 +40,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. /** @@ -748,7 +749,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReservationServiceClient implements BackgroundResource { - private final ReservationServiceSettings settings; + private final @Nullable ReservationServiceSettings settings; private final ReservationServiceStub stub; /** Constructs an instance of ReservationServiceClient with default settings. */ @@ -788,7 +789,7 @@ protected ReservationServiceClient(ReservationServiceStub stub) { this.stub = stub; } - public final ReservationServiceSettings getSettings() { + public final @Nullable ReservationServiceSettings getSettings() { return settings; } @@ -825,7 +826,7 @@ public ReservationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Reservation createReservation( - LocationName parent, Reservation reservation, String reservationId) { + @Nullable LocationName parent, Reservation reservation, String reservationId) { CreateReservationRequest request = CreateReservationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -958,7 +959,7 @@ public final UnaryCallable createReservat * `projects/myproject/locations/US` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReservationsPagedResponse listReservations(LocationName parent) { + public final ListReservationsPagedResponse listReservations(@Nullable LocationName parent) { ListReservationsRequest request = ListReservationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1123,7 +1124,7 @@ public final ListReservationsPagedResponse listReservations(ListReservationsRequ * `projects/myproject/locations/US/reservations/team1-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Reservation getReservation(ReservationName name) { + public final Reservation getReservation(@Nullable ReservationName name) { GetReservationRequest request = GetReservationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReservation(request); @@ -1235,7 +1236,7 @@ public final UnaryCallable getReservationCal * `projects/myproject/locations/US/reservations/team1-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReservation(ReservationName name) { + public final void deleteReservation(@Nullable ReservationName name) { DeleteReservationRequest request = DeleteReservationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1510,7 +1511,7 @@ public final Reservation failoverReservation(FailoverReservationRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CapacityCommitment createCapacityCommitment( - LocationName parent, CapacityCommitment capacityCommitment) { + @Nullable LocationName parent, CapacityCommitment capacityCommitment) { CreateCapacityCommitmentRequest request = CreateCapacityCommitmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1643,7 +1644,8 @@ public final CapacityCommitment createCapacityCommitment( * `projects/myproject/locations/US` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCapacityCommitmentsPagedResponse listCapacityCommitments(LocationName parent) { + public final ListCapacityCommitmentsPagedResponse listCapacityCommitments( + @Nullable LocationName parent) { ListCapacityCommitmentsRequest request = ListCapacityCommitmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1812,7 +1814,7 @@ public final ListCapacityCommitmentsPagedResponse listCapacityCommitments( * `projects/myproject/locations/US/capacityCommitments/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CapacityCommitment getCapacityCommitment(CapacityCommitmentName name) { + public final CapacityCommitment getCapacityCommitment(@Nullable CapacityCommitmentName name) { GetCapacityCommitmentRequest request = GetCapacityCommitmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1934,7 +1936,7 @@ public final CapacityCommitment getCapacityCommitment(GetCapacityCommitmentReque * `projects/myproject/locations/US/capacityCommitments/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCapacityCommitment(CapacityCommitmentName name) { + public final void deleteCapacityCommitment(@Nullable CapacityCommitmentName name) { DeleteCapacityCommitmentRequest request = DeleteCapacityCommitmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2182,7 +2184,7 @@ public final CapacityCommitment updateCapacityCommitment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SplitCapacityCommitmentResponse splitCapacityCommitment( - CapacityCommitmentName name, long slotCount) { + @Nullable CapacityCommitmentName name, long slotCount) { SplitCapacityCommitmentRequest request = SplitCapacityCommitmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2342,7 +2344,7 @@ public final SplitCapacityCommitmentResponse splitCapacityCommitment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CapacityCommitment mergeCapacityCommitments( - LocationName parent, List capacityCommitmentIds) { + @Nullable LocationName parent, List capacityCommitmentIds) { MergeCapacityCommitmentsRequest request = MergeCapacityCommitmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2523,7 +2525,8 @@ public final CapacityCommitment mergeCapacityCommitments( * @param assignment Assignment resource to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assignment createAssignment(ReservationName parent, Assignment assignment) { + public final Assignment createAssignment( + @Nullable ReservationName parent, Assignment assignment) { CreateAssignmentRequest request = CreateAssignmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2757,7 +2760,7 @@ public final UnaryCallable createAssignment *

`projects/myproject/locations/US/reservations/-` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssignmentsPagedResponse listAssignments(ReservationName parent) { + public final ListAssignmentsPagedResponse listAssignments(@Nullable ReservationName parent) { ListAssignmentsRequest request = ListAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3013,7 +3016,7 @@ public final ListAssignmentsPagedResponse listAssignments(ListAssignmentsRequest * `projects/myproject/locations/US/reservations/team1-prod/assignments/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAssignment(AssignmentName name) { + public final void deleteAssignment(@Nullable AssignmentName name) { DeleteAssignmentRequest request = DeleteAssignmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAssignment(request); @@ -3201,7 +3204,8 @@ public final UnaryCallable deleteAssignmentCalla * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final SearchAssignmentsPagedResponse searchAssignments(LocationName parent, String query) { + public final SearchAssignmentsPagedResponse searchAssignments( + @Nullable LocationName parent, String query) { SearchAssignmentsRequest request = SearchAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3496,7 +3500,7 @@ public final SearchAssignmentsPagedResponse searchAssignments(SearchAssignmentsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchAllAssignmentsPagedResponse searchAllAssignments( - LocationName parent, String query) { + @Nullable LocationName parent, String query) { SearchAllAssignmentsRequest request = SearchAllAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3753,7 +3757,8 @@ public final SearchAllAssignmentsPagedResponse searchAllAssignments( * `projects/myotherproject/locations/US/reservations/team2-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assignment moveAssignment(AssignmentName name, ReservationName destinationId) { + public final Assignment moveAssignment( + @Nullable AssignmentName name, @Nullable ReservationName destinationId) { MoveAssignmentRequest request = MoveAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3792,7 +3797,7 @@ public final Assignment moveAssignment(AssignmentName name, ReservationName dest * `projects/myotherproject/locations/US/reservations/team2-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assignment moveAssignment(AssignmentName name, String destinationId) { + public final Assignment moveAssignment(@Nullable AssignmentName name, String destinationId) { MoveAssignmentRequest request = MoveAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3831,7 +3836,7 @@ public final Assignment moveAssignment(AssignmentName name, String destinationId * `projects/myotherproject/locations/US/reservations/team2-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assignment moveAssignment(String name, ReservationName destinationId) { + public final Assignment moveAssignment(String name, @Nullable ReservationName destinationId) { MoveAssignmentRequest request = MoveAssignmentRequest.newBuilder() .setName(name) @@ -4066,7 +4071,7 @@ public final UnaryCallable updateAssignment * `projects/{project_id}/locations/{location_id}/biReservation` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BiReservation getBiReservation(BiReservationName name) { + public final BiReservation getBiReservation(@Nullable BiReservationName name) { GetBiReservationRequest request = GetBiReservationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBiReservation(request); @@ -4301,7 +4306,7 @@ public final BiReservation updateBiReservation(UpdateBiReservationRequest reques * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4468,7 +4473,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4749,7 +4754,7 @@ public final ReservationGroup createReservationGroup(CreateReservationGroupReque * `projects/myproject/locations/US/reservationGroups/team1-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReservationGroup getReservationGroup(ReservationGroupName name) { + public final ReservationGroup getReservationGroup(@Nullable ReservationGroupName name) { GetReservationGroupRequest request = GetReservationGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4871,7 +4876,7 @@ public final ReservationGroup getReservationGroup(GetReservationGroupRequest req * `projects/myproject/locations/US/reservationGroups/team1-prod` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReservationGroup(ReservationGroupName name) { + public final void deleteReservationGroup(@Nullable ReservationGroupName name) { DeleteReservationGroupRequest request = DeleteReservationGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4997,7 +5002,8 @@ public final void deleteReservationGroup(DeleteReservationGroupRequest request) * `projects/myproject/locations/US` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReservationGroupsPagedResponse listReservationGroups(LocationName parent) { + public final ListReservationGroupsPagedResponse listReservationGroups( + @Nullable LocationName parent) { ListReservationGroupsRequest request = ListReservationGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5202,8 +5208,9 @@ public static class ListReservationsPage ListReservationsRequest, ListReservationsResponse, Reservation, ListReservationsPage> { private ListReservationsPage( - PageContext context, - ListReservationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReservationsResponse response) { super(context, response); } @@ -5213,14 +5220,16 @@ private static ListReservationsPage createEmptyPage() { @Override protected ListReservationsPage createPage( - PageContext context, - ListReservationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReservationsResponse response) { return new ListReservationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5235,7 +5244,7 @@ public static class ListReservationsFixedSizeCollection ListReservationsFixedSizeCollection> { private ListReservationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5245,7 +5254,7 @@ private static ListReservationsFixedSizeCollection createEmptyCollection() { @Override protected ListReservationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReservationsFixedSizeCollection(pages, collectionSize); } } @@ -5284,10 +5293,11 @@ public static class ListCapacityCommitmentsPage ListCapacityCommitmentsPage> { private ListCapacityCommitmentsPage( - PageContext< + @Nullable + PageContext< ListCapacityCommitmentsRequest, ListCapacityCommitmentsResponse, CapacityCommitment> context, - ListCapacityCommitmentsResponse response) { + @Nullable ListCapacityCommitmentsResponse response) { super(context, response); } @@ -5297,16 +5307,18 @@ private static ListCapacityCommitmentsPage createEmptyPage() { @Override protected ListCapacityCommitmentsPage createPage( - PageContext< + @Nullable + PageContext< ListCapacityCommitmentsRequest, ListCapacityCommitmentsResponse, CapacityCommitment> context, - ListCapacityCommitmentsResponse response) { + @Nullable ListCapacityCommitmentsResponse response) { return new ListCapacityCommitmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCapacityCommitmentsRequest, ListCapacityCommitmentsResponse, CapacityCommitment> context, ApiFuture futureResponse) { @@ -5323,7 +5335,7 @@ public static class ListCapacityCommitmentsFixedSizeCollection ListCapacityCommitmentsFixedSizeCollection> { private ListCapacityCommitmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5333,7 +5345,7 @@ private static ListCapacityCommitmentsFixedSizeCollection createEmptyCollection( @Override protected ListCapacityCommitmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCapacityCommitmentsFixedSizeCollection(pages, collectionSize); } } @@ -5367,8 +5379,8 @@ public static class ListAssignmentsPage ListAssignmentsRequest, ListAssignmentsResponse, Assignment, ListAssignmentsPage> { private ListAssignmentsPage( - PageContext context, - ListAssignmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAssignmentsResponse response) { super(context, response); } @@ -5378,14 +5390,14 @@ private static ListAssignmentsPage createEmptyPage() { @Override protected ListAssignmentsPage createPage( - PageContext context, - ListAssignmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAssignmentsResponse response) { return new ListAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5400,7 +5412,7 @@ public static class ListAssignmentsFixedSizeCollection ListAssignmentsFixedSizeCollection> { private ListAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5410,7 +5422,7 @@ private static ListAssignmentsFixedSizeCollection createEmptyCollection() { @Override protected ListAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -5444,8 +5456,9 @@ public static class SearchAssignmentsPage SearchAssignmentsRequest, SearchAssignmentsResponse, Assignment, SearchAssignmentsPage> { private SearchAssignmentsPage( - PageContext context, - SearchAssignmentsResponse response) { + @Nullable PageContext + context, + @Nullable SearchAssignmentsResponse response) { super(context, response); } @@ -5455,14 +5468,16 @@ private static SearchAssignmentsPage createEmptyPage() { @Override protected SearchAssignmentsPage createPage( - PageContext context, - SearchAssignmentsResponse response) { + @Nullable PageContext + context, + @Nullable SearchAssignmentsResponse response) { return new SearchAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5477,7 +5492,7 @@ public static class SearchAssignmentsFixedSizeCollection SearchAssignmentsFixedSizeCollection> { private SearchAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5487,7 +5502,7 @@ private static SearchAssignmentsFixedSizeCollection createEmptyCollection() { @Override protected SearchAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -5524,8 +5539,9 @@ public static class SearchAllAssignmentsPage SearchAllAssignmentsPage> { private SearchAllAssignmentsPage( - PageContext context, - SearchAllAssignmentsResponse response) { + @Nullable PageContext + context, + @Nullable SearchAllAssignmentsResponse response) { super(context, response); } @@ -5535,14 +5551,16 @@ private static SearchAllAssignmentsPage createEmptyPage() { @Override protected SearchAllAssignmentsPage createPage( - PageContext context, - SearchAllAssignmentsResponse response) { + @Nullable PageContext + context, + @Nullable SearchAllAssignmentsResponse response) { return new SearchAllAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5557,7 +5575,7 @@ public static class SearchAllAssignmentsFixedSizeCollection SearchAllAssignmentsFixedSizeCollection> { private SearchAllAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5567,7 +5585,7 @@ private static SearchAllAssignmentsFixedSizeCollection createEmptyCollection() { @Override protected SearchAllAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -5605,9 +5623,11 @@ public static class ListReservationGroupsPage ListReservationGroupsPage> { private ListReservationGroupsPage( - PageContext + @Nullable + PageContext< + ListReservationGroupsRequest, ListReservationGroupsResponse, ReservationGroup> context, - ListReservationGroupsResponse response) { + @Nullable ListReservationGroupsResponse response) { super(context, response); } @@ -5617,15 +5637,19 @@ private static ListReservationGroupsPage createEmptyPage() { @Override protected ListReservationGroupsPage createPage( - PageContext + @Nullable + PageContext< + ListReservationGroupsRequest, ListReservationGroupsResponse, ReservationGroup> context, - ListReservationGroupsResponse response) { + @Nullable ListReservationGroupsResponse response) { return new ListReservationGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListReservationGroupsRequest, ListReservationGroupsResponse, ReservationGroup> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5641,7 +5665,7 @@ public static class ListReservationGroupsFixedSizeCollection ListReservationGroupsFixedSizeCollection> { private ListReservationGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5651,7 +5675,7 @@ private static ListReservationGroupsFixedSizeCollection createEmptyCollection() @Override protected ListReservationGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReservationGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java index bf8b501b7661..236580e5aa06 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -337,7 +338,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); } @@ -357,7 +358,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReservationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java index caf01042e898..cf3b6e998bee 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/ReservationServiceStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -868,7 +869,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); } @@ -1043,7 +1044,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createReservationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentName.java index 2ac9071b9fe7..f7f2033482af 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/AssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AssignmentName parse(String formattedString) { + public static @Nullable AssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssignmentName> values) { List list = new ArrayList<>(values.size()); for (AssignmentName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationName.java index 09ff760aab6d..0714138c7712 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/BiReservationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static BiReservationName parse(String formattedString) { + public static @Nullable BiReservationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BiReservationName> values) { List list = new ArrayList<>(values.size()); for (BiReservationName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentName.java index 63b4190c2f54..072eb2804d28 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/CapacityCommitmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String capacityComm .toString(); } - public static CapacityCommitmentName parse(String formattedString) { + public static @Nullable CapacityCommitmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CapacityCommitmentName> values) { List list = new ArrayList<>(values.size()); for (CapacityCommitmentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/LocationName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/LocationName.java index c6c80d02c9d1..8a248894b61d 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/LocationName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationGroupName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationGroupName.java index 764b3c040eca..7ed82175f6e7 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationGroupName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reservationG .toString(); } - public static ReservationGroupName parse(String formattedString) { + public static @Nullable ReservationGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReservationGroupName> values) { List list = new ArrayList<>(values.size()); for (ReservationGroupName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationName.java b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationName.java index a34d13565091..ca6723a1fa45 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationName.java +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/src/main/java/com/google/cloud/bigquery/reservation/v1/ReservationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reservation) .toString(); } - public static ReservationName parse(String formattedString) { + public static @Nullable ReservationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReservationName> values) { List list = new ArrayList<>(values.size()); for (ReservationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java index 3dc10c6ef0c9..c4aba68e5c45 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java @@ -25,6 +25,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. /** @@ -155,7 +156,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BaseBigQueryReadClient implements BackgroundResource { - private final BaseBigQueryReadSettings settings; + private final @Nullable BaseBigQueryReadSettings settings; private final BigQueryReadStub stub; /** Constructs an instance of BaseBigQueryReadClient with default settings. */ @@ -195,7 +196,7 @@ protected BaseBigQueryReadClient(BigQueryReadStub stub) { this.stub = stub; } - public final BaseBigQueryReadSettings getSettings() { + public final @Nullable BaseBigQueryReadSettings getSettings() { return settings; } @@ -252,7 +253,7 @@ public BigQueryReadStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadSession createReadSession( - ProjectName parent, ReadSession readSession, int maxStreamCount) { + @Nullable ProjectName parent, ReadSession readSession, int maxStreamCount) { CreateReadSessionRequest request = CreateReadSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java index 2b61187183ac..12281a444178 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -147,7 +148,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryReadStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java index 9f5e0c1a49e0..e63d755a4311 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java @@ -25,6 +25,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. /** @@ -226,7 +227,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BigQueryWriteClient implements BackgroundResource { - private final BigQueryWriteSettings settings; + private final @Nullable BigQueryWriteSettings settings; private final BigQueryWriteStub stub; /** Constructs an instance of BigQueryWriteClient with default settings. */ @@ -266,7 +267,7 @@ protected BigQueryWriteClient(BigQueryWriteStub stub) { this.stub = stub; } - public final BigQueryWriteSettings getSettings() { + public final @Nullable BigQueryWriteSettings getSettings() { return settings; } @@ -301,7 +302,7 @@ public BigQueryWriteStub getStub() { * @param writeStream Required. Stream to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WriteStream createWriteStream(TableName parent, WriteStream writeStream) { + public final WriteStream createWriteStream(@Nullable TableName parent, WriteStream writeStream) { CreateWriteStreamRequest request = CreateWriteStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -496,7 +497,7 @@ public final BidiStreamingCallable append * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WriteStream getWriteStream(WriteStreamName name) { + public final WriteStream getWriteStream(@Nullable WriteStreamName name) { GetWriteStreamRequest request = GetWriteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWriteStream(request); @@ -612,7 +613,7 @@ public final UnaryCallable getWriteStreamCal * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName name) { + public final FinalizeWriteStreamResponse finalizeWriteStream(@Nullable WriteStreamName name) { FinalizeWriteStreamRequest request = FinalizeWriteStreamRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -736,7 +737,7 @@ public final FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStream * `projects/{project}/datasets/{dataset}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(TableName parent) { + public final BatchCommitWriteStreamsResponse batchCommitWriteStreams(@Nullable TableName parent) { BatchCommitWriteStreamsRequest request = BatchCommitWriteStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -871,7 +872,7 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams( * @param writeStream Required. The stream that is the target of the flush operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FlushRowsResponse flushRows(WriteStreamName writeStream) { + public final FlushRowsResponse flushRows(@Nullable WriteStreamName writeStream) { FlushRowsRequest request = FlushRowsRequest.newBuilder() .setWriteStream(writeStream == null ? null : writeStream.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java index e0c5f14b7ec2..dadeec0d3b17 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -182,7 +183,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryWriteStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java index b85cef7d5094..5fbf13cd027c 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -342,7 +343,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWriteStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java index b8ed54dc50ad..233e38710c38 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceClient.java @@ -27,6 +27,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. /** @@ -185,7 +186,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MetastorePartitionServiceClient implements BackgroundResource { - private final MetastorePartitionServiceSettings settings; + private final @Nullable MetastorePartitionServiceSettings settings; private final MetastorePartitionServiceStub stub; /** Constructs an instance of MetastorePartitionServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected MetastorePartitionServiceClient(MetastorePartitionServiceStub stub) { this.stub = stub; } - public final MetastorePartitionServiceSettings getSettings() { + public final @Nullable MetastorePartitionServiceSettings getSettings() { return settings; } @@ -462,7 +463,7 @@ public final BatchUpdateMetastorePartitionsResponse batchUpdateMetastorePartitio * the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetastorePartitionsResponse listMetastorePartitions(TableName parent) { + public final ListMetastorePartitionsResponse listMetastorePartitions(@Nullable TableName parent) { ListMetastorePartitionsRequest request = ListMetastorePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java index d6780bd095d8..755ee4160e8d 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/MetastorePartitionServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetastorePartitionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java index f6dd02cbc872..455ac47d7f0e 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/MetastorePartitionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchCreateMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceClient.java index cbf3e9995a06..57f8dd0a5a5a 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceClient.java @@ -27,6 +27,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. /** @@ -185,7 +186,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MetastorePartitionServiceClient implements BackgroundResource { - private final MetastorePartitionServiceSettings settings; + private final @Nullable MetastorePartitionServiceSettings settings; private final MetastorePartitionServiceStub stub; /** Constructs an instance of MetastorePartitionServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected MetastorePartitionServiceClient(MetastorePartitionServiceStub stub) { this.stub = stub; } - public final MetastorePartitionServiceSettings getSettings() { + public final @Nullable MetastorePartitionServiceSettings getSettings() { return settings; } @@ -462,7 +463,7 @@ public final BatchUpdateMetastorePartitionsResponse batchUpdateMetastorePartitio * the format of projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetastorePartitionsResponse listMetastorePartitions(TableName parent) { + public final ListMetastorePartitionsResponse listMetastorePartitions(@Nullable TableName parent) { ListMetastorePartitionsRequest request = ListMetastorePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceSettings.java index f40ebc7304a9..c83260778f65 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/MetastorePartitionServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetastorePartitionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/MetastorePartitionServiceStubSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/MetastorePartitionServiceStubSettings.java index c3023cb3a55b..5ca0722ae4dc 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/MetastorePartitionServiceStubSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/MetastorePartitionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchCreateMetastorePartitionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java index a5ddef0b6782..3f2e6b5f067d 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java @@ -27,6 +27,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. /** @@ -199,7 +200,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BaseBigQueryStorageClient implements BackgroundResource { - private final BaseBigQueryStorageSettings settings; + private final @Nullable BaseBigQueryStorageSettings settings; private final BigQueryStorageStub stub; /** Constructs an instance of BaseBigQueryStorageClient with default settings. */ @@ -239,7 +240,7 @@ protected BaseBigQueryStorageClient(BigQueryStorageStub stub) { this.stub = stub; } - public final BaseBigQueryStorageSettings getSettings() { + public final @Nullable BaseBigQueryStorageSettings getSettings() { return settings; } @@ -289,7 +290,9 @@ public BigQueryStorageStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Storage.ReadSession createReadSession( - TableReferenceProto.TableReference tableReference, ProjectName parent, int requestedStreams) { + TableReferenceProto.TableReference tableReference, + @Nullable ProjectName parent, + int requestedStreams) { Storage.CreateReadSessionRequest request = Storage.CreateReadSessionRequest.newBuilder() .setTableReference(tableReference) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java index 43c6593a7899..7e8e2ce593af 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryStorageStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java index 01196d5a636b..092fd07e2bdd 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -335,7 +336,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createReadSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java index e389e97ae3c7..d32c15869004 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java @@ -26,6 +26,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. /** @@ -160,7 +161,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BaseBigQueryReadClient implements BackgroundResource { - private final BaseBigQueryReadSettings settings; + private final @Nullable BaseBigQueryReadSettings settings; private final BigQueryReadStub stub; /** Constructs an instance of BaseBigQueryReadClient with default settings. */ @@ -200,7 +201,7 @@ protected BaseBigQueryReadClient(BigQueryReadStub stub) { this.stub = stub; } - public final BaseBigQueryReadSettings getSettings() { + public final @Nullable BaseBigQueryReadSettings getSettings() { return settings; } @@ -256,7 +257,7 @@ public BigQueryReadStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadSession createReadSession( - ProjectName parent, ReadSession readSession, int maxStreamCount) { + @Nullable ProjectName parent, ReadSession readSession, int maxStreamCount) { CreateReadSessionRequest request = CreateReadSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java index 125a3fc97f77..403cdc632dff 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryReadStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java index b5d1649dabbd..8d5ad082db9e 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java @@ -26,6 +26,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. /** @@ -218,7 +219,7 @@ @Deprecated @Generated("by gapic-generator-java") public class BigQueryWriteClient implements BackgroundResource { - private final BigQueryWriteSettings settings; + private final @Nullable BigQueryWriteSettings settings; private final BigQueryWriteStub stub; /** Constructs an instance of BigQueryWriteClient with default settings. */ @@ -258,7 +259,7 @@ protected BigQueryWriteClient(BigQueryWriteStub stub) { this.stub = stub; } - public final BigQueryWriteSettings getSettings() { + public final @Nullable BigQueryWriteSettings getSettings() { return settings; } @@ -296,7 +297,7 @@ public BigQueryWriteStub getStub() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final WriteStream createWriteStream(TableName parent, WriteStream writeStream) { + public final WriteStream createWriteStream(@Nullable TableName parent, WriteStream writeStream) { CreateWriteStreamRequest request = CreateWriteStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -487,7 +488,7 @@ public final BidiStreamingCallable append * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final WriteStream getWriteStream(WriteStreamName name) { + public final WriteStream getWriteStream(@Nullable WriteStreamName name) { GetWriteStreamRequest request = GetWriteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWriteStream(request); @@ -610,7 +611,7 @@ public final UnaryCallable getWriteStreamCal * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final FinalizeWriteStreamResponse finalizeWriteStream(WriteStreamName name) { + public final FinalizeWriteStreamResponse finalizeWriteStream(@Nullable WriteStreamName name) { FinalizeWriteStreamRequest request = FinalizeWriteStreamRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -845,7 +846,7 @@ public final BatchCommitWriteStreamsResponse batchCommitWriteStreams( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final FlushRowsResponse flushRows(WriteStreamName writeStream) { + public final FlushRowsResponse flushRows(@Nullable WriteStreamName writeStream) { FlushRowsRequest request = FlushRowsRequest.newBuilder() .setWriteStream(writeStream == null ? null : writeStream.toString()) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java index cba80f833ba5..dd2dc764d409 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryWriteStubSettings.newBuilder(clientContext)); } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java index 65996fc9200d..8ec64150a561 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -377,7 +378,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWriteStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java index df776b7cb872..1ec30cdc4182 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java index c6726450f82e..57e40fd1e711 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String session, Str .toString(); } - public static ReadStreamName parse(String formattedString) { + public static @Nullable ReadStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReadStreamName> values) { List list = new ArrayList<>(values.size()); for (ReadStreamName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java index 4cc3a4fff4e3..1456b81456ff 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String dataset, String table) { return newBuilder().setProject(project).setDataset(dataset).setTable(table).build().toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java index 7dcc3577024f..e653083ebc6e 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String dataset, String table, String .toString(); } - public static WriteStreamName parse(String formattedString) { + public static @Nullable WriteStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WriteStreamName> values) { List list = new ArrayList<>(values.size()); for (WriteStreamName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java index deec78e3b5b3..0af7a78d82a3 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/src/main/java/com/google/cloud/bigquery/storage/v1alpha/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String dataset, String table) { return newBuilder().setProject(project).setDataset(dataset).setTable(table).build().toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/TableName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/TableName.java index 24946b38a459..77210d6720da 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/TableName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/src/main/java/com/google/cloud/bigquery/storage/v1beta/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String dataset, String table) { return newBuilder().setProject(project).setDataset(dataset).setTable(table).build().toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java index 5fa5ce28a903..fabf87cc9812 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java index bfd5bacd3759..d38105feae4b 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java index 18171c2ae996..f9747f8d5c12 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String session, Str .toString(); } - public static ReadStreamName parse(String formattedString) { + public static @Nullable ReadStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReadStreamName> values) { List list = new ArrayList<>(values.size()); for (ReadStreamName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java index 4f931921c4fd..4000dadca448 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String dataset, String table) { return newBuilder().setProject(project).setDataset(dataset).setTable(table).build().toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java index fefb0214615c..70ee9b4054c4 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String dataset, String table, String .toString(); } - public static WriteStreamName parse(String formattedString) { + public static @Nullable WriteStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WriteStreamName> values) { List list = new ArrayList<>(values.size()); for (WriteStreamName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java index 982b7c285747..ad29f679277c 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminClient.java @@ -99,6 +99,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. /** @@ -774,7 +775,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BaseBigtableInstanceAdminClient implements BackgroundResource { - private final BaseBigtableInstanceAdminSettings settings; + private final @Nullable BaseBigtableInstanceAdminSettings settings; private final BigtableInstanceAdminStub stub; private final OperationsClient operationsClient; @@ -819,7 +820,7 @@ protected BaseBigtableInstanceAdminClient(BigtableInstanceAdminStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final BaseBigtableInstanceAdminSettings getSettings() { + public final @Nullable BaseBigtableInstanceAdminSettings getSettings() { return settings; } @@ -878,7 +879,10 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - ProjectName parent, String instanceId, Instance instance, Map clusters) { + @Nullable ProjectName parent, + String instanceId, + Instance instance, + Map clusters) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1079,7 +1083,7 @@ public final UnaryCallable createInstanceCalla * `projects/{project}/instances/{instance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1194,7 +1198,7 @@ public final UnaryCallable getInstanceCallable() { * requested. Values are of the form `projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesResponse listInstances(ProjectName parent) { + public final ListInstancesResponse listInstances(@Nullable ProjectName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1520,7 +1524,7 @@ public final OperationFuture partialUpdateInst * `projects/{project}/instances/{instance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInstance(InstanceName name) { + public final void deleteInstance(@Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteInstance(request); @@ -1649,7 +1653,7 @@ public final UnaryCallable deleteInstanceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - InstanceName parent, String clusterId, Cluster cluster) { + @Nullable InstanceName parent, String clusterId, Cluster cluster) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1839,7 +1843,7 @@ public final UnaryCallable createClusterCallabl * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1956,7 +1960,7 @@ public final UnaryCallable getClusterCallable() { * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersResponse listClusters(InstanceName parent) { + public final ListClustersResponse listClusters(@Nullable InstanceName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2357,7 +2361,7 @@ public final OperationFuture partialUpdat * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCluster(ClusterName name) { + public final void deleteCluster(@Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCluster(request); @@ -2481,7 +2485,7 @@ public final UnaryCallable deleteClusterCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AppProfile createAppProfile( - InstanceName parent, String appProfileId, AppProfile appProfile) { + @Nullable InstanceName parent, String appProfileId, AppProfile appProfile) { CreateAppProfileRequest request = CreateAppProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2620,7 +2624,7 @@ public final UnaryCallable createAppProfile * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppProfile getAppProfile(AppProfileName name) { + public final AppProfile getAppProfile(@Nullable AppProfileName name) { GetAppProfileRequest request = GetAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppProfile(request); @@ -2740,7 +2744,7 @@ public final UnaryCallable getAppProfileCallab * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppProfilesPagedResponse listAppProfiles(InstanceName parent) { + public final ListAppProfilesPagedResponse listAppProfiles(@Nullable InstanceName parent) { ListAppProfilesRequest request = ListAppProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3044,7 +3048,7 @@ public final UnaryCallable updateAppProfileC * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAppProfile(AppProfileName name) { + public final void deleteAppProfile(@Nullable AppProfileName name) { DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAppProfile(request); @@ -3103,7 +3107,7 @@ public final void deleteAppProfile(String name) { * @param ignoreWarnings Required. If true, ignore safety checks when deleting the app profile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAppProfile(AppProfileName name, boolean ignoreWarnings) { + public final void deleteAppProfile(@Nullable AppProfileName name, boolean ignoreWarnings) { DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3230,7 +3234,7 @@ public final UnaryCallable deleteAppProfileCalla * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3356,7 +3360,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3489,7 +3493,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3625,7 +3629,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHotTabletsPagedResponse listHotTablets(ClusterName parent) { + public final ListHotTabletsPagedResponse listHotTablets(@Nullable ClusterName parent) { ListHotTabletsRequest request = ListHotTabletsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3815,7 +3819,7 @@ public final ListHotTabletsPagedResponse listHotTablets(ListHotTabletsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLogicalViewAsync( - InstanceName parent, LogicalView logicalView, String logicalViewId) { + @Nullable InstanceName parent, LogicalView logicalView, String logicalViewId) { CreateLogicalViewRequest request = CreateLogicalViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3985,7 +3989,7 @@ public final UnaryCallable createLogicalVie * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogicalView getLogicalView(LogicalViewName name) { + public final LogicalView getLogicalView(@Nullable LogicalViewName name) { GetLogicalViewRequest request = GetLogicalViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLogicalView(request); @@ -4103,7 +4107,7 @@ public final UnaryCallable getLogicalViewCal * requested. Values are of the form `projects/{project}/instances/{instance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogicalViewsPagedResponse listLogicalViews(InstanceName parent) { + public final ListLogicalViewsPagedResponse listLogicalViews(@Nullable InstanceName parent) { ListLogicalViewsRequest request = ListLogicalViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4404,7 +4408,7 @@ public final UnaryCallable updateLogicalVie * `projects/{project}/instances/{instance}/logicalViews/{logical_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLogicalView(LogicalViewName name) { + public final void deleteLogicalView(@Nullable LogicalViewName name) { DeleteLogicalViewRequest request = DeleteLogicalViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4533,7 +4537,9 @@ public final UnaryCallable deleteLogicalViewCal */ public final OperationFuture createMaterializedViewAsync( - InstanceName parent, MaterializedView materializedView, String materializedViewId) { + @Nullable InstanceName parent, + MaterializedView materializedView, + String materializedViewId) { CreateMaterializedViewRequest request = CreateMaterializedViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4710,7 +4716,7 @@ public final UnaryCallable deleteLogicalViewCal * form `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MaterializedView getMaterializedView(MaterializedViewName name) { + public final MaterializedView getMaterializedView(@Nullable MaterializedViewName name) { GetMaterializedViewRequest request = GetMaterializedViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4837,7 +4843,8 @@ public final MaterializedView getMaterializedView(GetMaterializedViewRequest req * views is requested. Values are of the form `projects/{project}/instances/{instance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMaterializedViewsPagedResponse listMaterializedViews(InstanceName parent) { + public final ListMaterializedViewsPagedResponse listMaterializedViews( + @Nullable InstanceName parent) { ListMaterializedViewsRequest request = ListMaterializedViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5147,7 +5154,7 @@ public final ListMaterializedViewsPagedResponse listMaterializedViews( * `projects/{project}/instances/{instance}/materializedViews/{materialized_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMaterializedView(MaterializedViewName name) { + public final void deleteMaterializedView(@Nullable MaterializedViewName name) { DeleteMaterializedViewRequest request = DeleteMaterializedViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5309,8 +5316,8 @@ public static class ListAppProfilesPage ListAppProfilesRequest, ListAppProfilesResponse, AppProfile, ListAppProfilesPage> { private ListAppProfilesPage( - PageContext context, - ListAppProfilesResponse response) { + @Nullable PageContext context, + @Nullable ListAppProfilesResponse response) { super(context, response); } @@ -5320,14 +5327,14 @@ private static ListAppProfilesPage createEmptyPage() { @Override protected ListAppProfilesPage createPage( - PageContext context, - ListAppProfilesResponse response) { + @Nullable PageContext context, + @Nullable ListAppProfilesResponse response) { return new ListAppProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5342,7 +5349,7 @@ public static class ListAppProfilesFixedSizeCollection ListAppProfilesFixedSizeCollection> { private ListAppProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5352,7 +5359,7 @@ private static ListAppProfilesFixedSizeCollection createEmptyCollection() { @Override protected ListAppProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppProfilesFixedSizeCollection(pages, collectionSize); } } @@ -5386,8 +5393,8 @@ public static class ListHotTabletsPage ListHotTabletsRequest, ListHotTabletsResponse, HotTablet, ListHotTabletsPage> { private ListHotTabletsPage( - PageContext context, - ListHotTabletsResponse response) { + @Nullable PageContext context, + @Nullable ListHotTabletsResponse response) { super(context, response); } @@ -5397,14 +5404,14 @@ private static ListHotTabletsPage createEmptyPage() { @Override protected ListHotTabletsPage createPage( - PageContext context, - ListHotTabletsResponse response) { + @Nullable PageContext context, + @Nullable ListHotTabletsResponse response) { return new ListHotTabletsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5418,7 +5425,8 @@ public static class ListHotTabletsFixedSizeCollection ListHotTabletsPage, ListHotTabletsFixedSizeCollection> { - private ListHotTabletsFixedSizeCollection(List pages, int collectionSize) { + private ListHotTabletsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5428,7 +5436,7 @@ private static ListHotTabletsFixedSizeCollection createEmptyCollection() { @Override protected ListHotTabletsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHotTabletsFixedSizeCollection(pages, collectionSize); } } @@ -5462,8 +5470,9 @@ public static class ListLogicalViewsPage ListLogicalViewsRequest, ListLogicalViewsResponse, LogicalView, ListLogicalViewsPage> { private ListLogicalViewsPage( - PageContext context, - ListLogicalViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListLogicalViewsResponse response) { super(context, response); } @@ -5473,14 +5482,16 @@ private static ListLogicalViewsPage createEmptyPage() { @Override protected ListLogicalViewsPage createPage( - PageContext context, - ListLogicalViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListLogicalViewsResponse response) { return new ListLogicalViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5495,7 +5506,7 @@ public static class ListLogicalViewsFixedSizeCollection ListLogicalViewsFixedSizeCollection> { private ListLogicalViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5505,7 +5516,7 @@ private static ListLogicalViewsFixedSizeCollection createEmptyCollection() { @Override protected ListLogicalViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogicalViewsFixedSizeCollection(pages, collectionSize); } } @@ -5543,9 +5554,11 @@ public static class ListMaterializedViewsPage ListMaterializedViewsPage> { private ListMaterializedViewsPage( - PageContext + @Nullable + PageContext< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView> context, - ListMaterializedViewsResponse response) { + @Nullable ListMaterializedViewsResponse response) { super(context, response); } @@ -5555,15 +5568,19 @@ private static ListMaterializedViewsPage createEmptyPage() { @Override protected ListMaterializedViewsPage createPage( - PageContext + @Nullable + PageContext< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView> context, - ListMaterializedViewsResponse response) { + @Nullable ListMaterializedViewsResponse response) { return new ListMaterializedViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListMaterializedViewsRequest, ListMaterializedViewsResponse, MaterializedView> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5579,7 +5596,7 @@ public static class ListMaterializedViewsFixedSizeCollection ListMaterializedViewsFixedSizeCollection> { private ListMaterializedViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5589,7 +5606,7 @@ private static ListMaterializedViewsFixedSizeCollection createEmptyCollection() @Override protected ListMaterializedViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMaterializedViewsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java index 4a0ab29af8ce..7a6f5ded1255 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableInstanceAdminSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -458,7 +459,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -479,7 +480,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigtableInstanceAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java index f906c3b66921..a6a91cbdf751 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java @@ -107,6 +107,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. /** @@ -867,7 +868,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BaseBigtableTableAdminClient implements BackgroundResource { - private final BaseBigtableTableAdminSettings settings; + private final @Nullable BaseBigtableTableAdminSettings settings; private final BigtableTableAdminStub stub; private final OperationsClient operationsClient; @@ -911,7 +912,7 @@ protected BaseBigtableTableAdminClient(BigtableTableAdminStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final BaseBigtableTableAdminSettings getSettings() { + public final @Nullable BaseBigtableTableAdminSettings getSettings() { return settings; } @@ -957,7 +958,7 @@ public final OperationsClient getOperationsClient() { * @param table Required. The Table to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table createTable(InstanceName parent, String tableId, Table table) { + public final Table createTable(@Nullable InstanceName parent, String tableId, Table table) { CreateTableRequest request = CreateTableRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1114,7 +1115,7 @@ public final UnaryCallable createTableCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTableFromSnapshotAsync( - InstanceName parent, String tableId, SnapshotName sourceSnapshot) { + @Nullable InstanceName parent, String tableId, @Nullable SnapshotName sourceSnapshot) { CreateTableFromSnapshotRequest request = CreateTableFromSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1165,7 +1166,7 @@ public final OperationFuture createTable * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTableFromSnapshotAsync( - InstanceName parent, String tableId, String sourceSnapshot) { + @Nullable InstanceName parent, String tableId, String sourceSnapshot) { CreateTableFromSnapshotRequest request = CreateTableFromSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1216,7 +1217,7 @@ public final OperationFuture createTable * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTableFromSnapshotAsync( - String parent, String tableId, SnapshotName sourceSnapshot) { + String parent, String tableId, @Nullable SnapshotName sourceSnapshot) { CreateTableFromSnapshotRequest request = CreateTableFromSnapshotRequest.newBuilder() .setParent(parent) @@ -1422,7 +1423,7 @@ public final OperationFuture createTable * Values are of the form `projects/{project}/instances/{instance}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTablesPagedResponse listTables(InstanceName parent) { + public final ListTablesPagedResponse listTables(@Nullable InstanceName parent) { ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTables(request); @@ -1587,7 +1588,7 @@ public final UnaryCallable listTablesCall * `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Table getTable(TableName name) { + public final Table getTable(@Nullable TableName name) { GetTableRequest request = GetTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTable(request); @@ -1838,7 +1839,7 @@ public final UnaryCallable updateTableCallable() * `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTable(TableName name) { + public final void deleteTable(@Nullable TableName name) { DeleteTableRequest request = DeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTable(request); @@ -1953,7 +1954,8 @@ public final UnaryCallable deleteTableCallable() { * `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture undeleteTableAsync(TableName name) { + public final OperationFuture undeleteTableAsync( + @Nullable TableName name) { UndeleteTableRequest request = UndeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeleteTableAsync(request); @@ -2111,7 +2113,7 @@ public final UnaryCallable undeleteTableCallabl */ public final OperationFuture createAuthorizedViewAsync( - TableName parent, AuthorizedView authorizedView, String authorizedViewId) { + @Nullable TableName parent, AuthorizedView authorizedView, String authorizedViewId) { CreateAuthorizedViewRequest request = CreateAuthorizedViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2290,7 +2292,7 @@ public final UnaryCallable undeleteTableCallabl * listed. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthorizedViewsPagedResponse listAuthorizedViews(TableName parent) { + public final ListAuthorizedViewsPagedResponse listAuthorizedViews(@Nullable TableName parent) { ListAuthorizedViewsRequest request = ListAuthorizedViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2464,7 +2466,7 @@ public final ListAuthorizedViewsPagedResponse listAuthorizedViews( * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizedView getAuthorizedView(AuthorizedViewName name) { + public final AuthorizedView getAuthorizedView(@Nullable AuthorizedViewName name) { GetAuthorizedViewRequest request = GetAuthorizedViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2728,7 +2730,7 @@ public final UnaryCallable getAuthoriz * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAuthorizedView(AuthorizedViewName name) { + public final void deleteAuthorizedView(@Nullable AuthorizedViewName name) { DeleteAuthorizedViewRequest request = DeleteAuthorizedViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2862,7 +2864,7 @@ public final UnaryCallable deleteAuthorizedV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Table modifyColumnFamilies( - TableName name, List modifications) { + @Nullable TableName name, List modifications) { ModifyColumnFamiliesRequest request = ModifyColumnFamiliesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3062,7 +3064,7 @@ public final UnaryCallable dropRowRangeCallable() { * Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateConsistencyTokenResponse generateConsistencyToken(TableName name) { + public final GenerateConsistencyTokenResponse generateConsistencyToken(@Nullable TableName name) { GenerateConsistencyTokenRequest request = GenerateConsistencyTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3195,7 +3197,8 @@ public final GenerateConsistencyTokenResponse generateConsistencyToken( * Table. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CheckConsistencyResponse checkConsistency(TableName name, String consistencyToken) { + public final CheckConsistencyResponse checkConsistency( + @Nullable TableName name, String consistencyToken) { CheckConsistencyRequest request = CheckConsistencyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3346,7 +3349,10 @@ public final CheckConsistencyResponse checkConsistency(CheckConsistencyRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture snapshotTableAsync( - TableName name, ClusterName cluster, String snapshotId, String description) { + @Nullable TableName name, + @Nullable ClusterName cluster, + String snapshotId, + String description) { SnapshotTableRequest request = SnapshotTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3399,7 +3405,7 @@ public final OperationFuture snapshotTableAsync * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture snapshotTableAsync( - TableName name, String cluster, String snapshotId, String description) { + @Nullable TableName name, String cluster, String snapshotId, String description) { SnapshotTableRequest request = SnapshotTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3452,7 +3458,7 @@ public final OperationFuture snapshotTableAsync * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture snapshotTableAsync( - String name, ClusterName cluster, String snapshotId, String description) { + String name, @Nullable ClusterName cluster, String snapshotId, String description) { SnapshotTableRequest request = SnapshotTableRequest.newBuilder() .setName(name) @@ -3663,7 +3669,7 @@ public final UnaryCallable snapshotTableCallabl * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName name) { + public final Snapshot getSnapshot(@Nullable SnapshotName name) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSnapshot(request); @@ -3805,7 +3811,7 @@ public final UnaryCallable getSnapshotCallable() { * `projects/{project}/instances/{instance}/clusters/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(ClusterName parent) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable ClusterName parent) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4000,7 +4006,7 @@ public final UnaryCallable listSnap * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshot(SnapshotName name) { + public final void deleteSnapshot(@Nullable SnapshotName name) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSnapshot(request); @@ -4151,7 +4157,7 @@ public final UnaryCallable deleteSnapshotCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - ClusterName parent, String backupId, Backup backup) { + @Nullable ClusterName parent, String backupId, Backup backup) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4348,7 +4354,7 @@ public final UnaryCallable createBackupCallable( * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -4559,7 +4565,7 @@ public final UnaryCallable updateBackupCallable() { * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBackup(BackupName name) { + public final void deleteBackup(@Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBackup(request); @@ -4678,7 +4684,7 @@ public final UnaryCallable deleteBackupCallable() { * `projects/{project}/instances/{instance}/clusters/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ClusterName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable ClusterName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4984,7 +4990,10 @@ public final UnaryCallable restoreTableCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - ClusterName parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + @Nullable ClusterName parent, + String backupId, + @Nullable BackupName sourceBackup, + Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5042,7 +5051,7 @@ public final OperationFuture copyBackupAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - ClusterName parent, String backupId, String sourceBackup, Timestamp expireTime) { + @Nullable ClusterName parent, String backupId, String sourceBackup, Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5099,7 +5108,7 @@ public final OperationFuture copyBackupAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - String parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + String parent, String backupId, @Nullable BackupName sourceBackup, Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent) @@ -5297,7 +5306,7 @@ public final UnaryCallable copyBackupCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -5428,7 +5437,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -5566,7 +5575,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -5711,7 +5720,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSchemaBundleAsync( - TableName parent, String schemaBundleId, SchemaBundle schemaBundle) { + @Nullable TableName parent, String schemaBundleId, SchemaBundle schemaBundle) { CreateSchemaBundleRequest request = CreateSchemaBundleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6017,7 +6026,7 @@ public final UnaryCallable updateSchemaBun * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SchemaBundle getSchemaBundle(SchemaBundleName name) { + public final SchemaBundle getSchemaBundle(@Nullable SchemaBundleName name) { GetSchemaBundleRequest request = GetSchemaBundleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchemaBundle(request); @@ -6140,7 +6149,7 @@ public final UnaryCallable getSchemaBundle * the form `projects/{project}/instances/{instance}/tables/{table}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemaBundlesPagedResponse listSchemaBundles(TableName parent) { + public final ListSchemaBundlesPagedResponse listSchemaBundles(@Nullable TableName parent) { ListSchemaBundlesRequest request = ListSchemaBundlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6313,7 +6322,7 @@ public final ListSchemaBundlesPagedResponse listSchemaBundles(ListSchemaBundlesR * `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSchemaBundle(SchemaBundleName name) { + public final void deleteSchemaBundle(@Nullable SchemaBundleName name) { DeleteSchemaBundleRequest request = DeleteSchemaBundleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6471,8 +6480,8 @@ public static class ListTablesPage extends AbstractPage { private ListTablesPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { super(context, response); } @@ -6482,14 +6491,14 @@ private static ListTablesPage createEmptyPage() { @Override protected ListTablesPage createPage( - PageContext context, - ListTablesResponse response) { + @Nullable PageContext context, + @Nullable ListTablesResponse response) { return new ListTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6503,7 +6512,8 @@ public static class ListTablesFixedSizeCollection ListTablesPage, ListTablesFixedSizeCollection> { - private ListTablesFixedSizeCollection(List pages, int collectionSize) { + private ListTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6513,7 +6523,7 @@ private static ListTablesFixedSizeCollection createEmptyCollection() { @Override protected ListTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTablesFixedSizeCollection(pages, collectionSize); } } @@ -6551,9 +6561,10 @@ public static class ListAuthorizedViewsPage ListAuthorizedViewsPage> { private ListAuthorizedViewsPage( - PageContext + @Nullable + PageContext context, - ListAuthorizedViewsResponse response) { + @Nullable ListAuthorizedViewsResponse response) { super(context, response); } @@ -6563,15 +6574,17 @@ private static ListAuthorizedViewsPage createEmptyPage() { @Override protected ListAuthorizedViewsPage createPage( - PageContext + @Nullable + PageContext context, - ListAuthorizedViewsResponse response) { + @Nullable ListAuthorizedViewsResponse response) { return new ListAuthorizedViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6587,7 +6600,7 @@ public static class ListAuthorizedViewsFixedSizeCollection ListAuthorizedViewsFixedSizeCollection> { private ListAuthorizedViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6597,7 +6610,7 @@ private static ListAuthorizedViewsFixedSizeCollection createEmptyCollection() { @Override protected ListAuthorizedViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthorizedViewsFixedSizeCollection(pages, collectionSize); } } @@ -6631,8 +6644,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -6642,14 +6655,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6663,7 +6676,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6673,7 +6687,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } @@ -6704,8 +6718,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -6715,14 +6729,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6736,7 +6750,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6746,7 +6761,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -6783,8 +6798,9 @@ public static class ListSchemaBundlesPage ListSchemaBundlesPage> { private ListSchemaBundlesPage( - PageContext context, - ListSchemaBundlesResponse response) { + @Nullable PageContext + context, + @Nullable ListSchemaBundlesResponse response) { super(context, response); } @@ -6794,14 +6810,16 @@ private static ListSchemaBundlesPage createEmptyPage() { @Override protected ListSchemaBundlesPage createPage( - PageContext context, - ListSchemaBundlesResponse response) { + @Nullable PageContext + context, + @Nullable ListSchemaBundlesResponse response) { return new ListSchemaBundlesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6816,7 +6834,7 @@ public static class ListSchemaBundlesFixedSizeCollection ListSchemaBundlesFixedSizeCollection> { private ListSchemaBundlesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6826,7 +6844,7 @@ private static ListSchemaBundlesFixedSizeCollection createEmptyCollection() { @Override protected ListSchemaBundlesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemaBundlesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java index 6dd4a01a10e3..723a29114653 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -486,7 +487,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -507,7 +508,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigtableTableAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java index 177d7c3927c6..2b13da56d307 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStub.java @@ -81,6 +81,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -92,7 +93,7 @@ @Generated("by gapic-generator-java") public abstract class BigtableInstanceAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java index 5541fd843fdf..7d924e87d67e 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java @@ -112,6 +112,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -810,7 +811,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1031,7 +1032,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java index 954d870951d4..74de577253bf 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java @@ -90,6 +90,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -101,7 +102,7 @@ @Generated("by gapic-generator-java") public abstract class BigtableTableAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java index 7c3ae9071ac5..783e94604e99 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java @@ -120,6 +120,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -886,7 +887,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1139,7 +1140,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index b37017d38e7b..064fe2acce62 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -64,6 +64,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** For internal use only. */ @@ -235,7 +236,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -413,7 +414,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); readRowsSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileName.java index 94eab5320cd2..53020bbe65cc 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AppProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String appProfile) .toString(); } - public static AppProfileName parse(String formattedString) { + public static @Nullable AppProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppProfileName> values) { List list = new ArrayList<>(values.size()); for (AppProfileName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AuthorizedViewName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AuthorizedViewName.java index ae2e74bde87c..7980000f7856 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AuthorizedViewName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AuthorizedViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AuthorizedViewName parse(String formattedString) { + public static @Nullable AuthorizedViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthorizedViewName> values) { List list = new ArrayList<>(values.size()); for (AuthorizedViewName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupName.java index 4f7b1fe9ea59..93939788b6d5 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String instance, String cluster, Str .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterName.java index 9c0617dc1752..33d589ae94bf 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceName.java index 7a27ac0ccf4e..b0d2494c2092 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LocationName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LocationName.java index 4bc823b3eccd..2ec16293e6f9 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LocationName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java index 128445a69f82..f99ef5fda7bc 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/LogicalViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String instance, String logicalView) .toString(); } - public static LogicalViewName parse(String formattedString) { + public static @Nullable LogicalViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogicalViewName> values) { List list = new ArrayList<>(values.size()); for (LogicalViewName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java index 3640271ef978..3e7a58de0b10 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/MaterializedViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String instance, String materialized .toString(); } - public static MaterializedViewName parse(String formattedString) { + public static @Nullable MaterializedViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MaterializedViewName> values) { List list = new ArrayList<>(values.size()); for (MaterializedViewName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ProjectName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ProjectName.java index bf50a0845183..de327b973c3c 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ProjectName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SchemaBundleName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SchemaBundleName.java index f1b1ee0eec55..722e5a6ecf9a 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SchemaBundleName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SchemaBundleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String instance, String table, Strin .toString(); } - public static SchemaBundleName parse(String formattedString) { + public static @Nullable SchemaBundleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaBundleName> values) { List list = new ArrayList<>(values.size()); for (SchemaBundleName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotName.java index 50d6872fe7f9..38334c5f96d8 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String instance, String cluster, Str .toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableName.java b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableName.java index 0e75b41d9694..700a6abeaa9c 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableName.java +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String table) { .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewName.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewName.java index 58a368ef8734..a1526598db53 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewName.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AuthorizedViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AuthorizedViewName parse(String formattedString) { + public static @Nullable AuthorizedViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthorizedViewName> values) { List list = new ArrayList<>(values.size()); for (AuthorizedViewName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/InstanceName.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/InstanceName.java index 6e36641b3114..d4d1d63139a0 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/InstanceName.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java index 512f881a69b4..fddf33c2795b 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MaterializedViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String instance, String materialized .toString(); } - public static MaterializedViewName parse(String formattedString) { + public static @Nullable MaterializedViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MaterializedViewName> values) { List list = new ArrayList<>(values.size()); for (MaterializedViewName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableName.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableName.java index 200ca73023f9..cc55186e0751 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableName.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String table) { .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java index c19d2d5db57e..069a18a8321f 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java @@ -38,6 +38,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. /** @@ -340,7 +341,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudBillingClient implements BackgroundResource { - private final CloudBillingSettings settings; + private final @Nullable CloudBillingSettings settings; private final CloudBillingStub stub; /** Constructs an instance of CloudBillingClient with default settings. */ @@ -379,7 +380,7 @@ protected CloudBillingClient(CloudBillingStub stub) { this.stub = stub; } - public final CloudBillingSettings getSettings() { + public final @Nullable CloudBillingSettings getSettings() { return settings; } @@ -410,7 +411,7 @@ public CloudBillingStub getStub() { * `billingAccounts/012345-567890-ABCDEF`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BillingAccount getBillingAccount(BillingAccountName name) { + public final BillingAccount getBillingAccount(@Nullable BillingAccountName name) { GetBillingAccountRequest request = GetBillingAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -704,7 +705,7 @@ public final ListBillingAccountsPagedResponse listBillingAccounts( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BillingAccount updateBillingAccount( - BillingAccountName name, BillingAccount account) { + @Nullable BillingAccountName name, BillingAccount account) { UpdateBillingAccountRequest request = UpdateBillingAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1013,7 +1014,8 @@ public final BillingAccount createBillingAccount(CreateBillingAccountRequest req * that you want to list. For example, `billingAccounts/012345-567890-ABCDEF`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProjectBillingInfoPagedResponse listProjectBillingInfo(BillingAccountName name) { + public final ListProjectBillingInfoPagedResponse listProjectBillingInfo( + @Nullable BillingAccountName name) { ListProjectBillingInfoRequest request = ListProjectBillingInfoRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1192,7 +1194,7 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo( * retrieved. For example, `projects/tokyo-rain-123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectBillingInfo getProjectBillingInfo(ProjectName name) { + public final ProjectBillingInfo getProjectBillingInfo(@Nullable ProjectName name) { GetProjectBillingInfoRequest request = GetProjectBillingInfoRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1498,7 +1500,7 @@ public final ProjectBillingInfo updateProjectBillingInfo( * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1625,7 +1627,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1764,7 +1766,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1997,9 +1999,10 @@ public static class ListBillingAccountsPage ListBillingAccountsPage> { private ListBillingAccountsPage( - PageContext + @Nullable + PageContext context, - ListBillingAccountsResponse response) { + @Nullable ListBillingAccountsResponse response) { super(context, response); } @@ -2009,15 +2012,17 @@ private static ListBillingAccountsPage createEmptyPage() { @Override protected ListBillingAccountsPage createPage( - PageContext + @Nullable + PageContext context, - ListBillingAccountsResponse response) { + @Nullable ListBillingAccountsResponse response) { return new ListBillingAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2033,7 +2038,7 @@ public static class ListBillingAccountsFixedSizeCollection ListBillingAccountsFixedSizeCollection> { private ListBillingAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2043,7 +2048,7 @@ private static ListBillingAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListBillingAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBillingAccountsFixedSizeCollection(pages, collectionSize); } } @@ -2082,10 +2087,11 @@ public static class ListProjectBillingInfoPage ListProjectBillingInfoPage> { private ListProjectBillingInfoPage( - PageContext< + @Nullable + PageContext< ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo> context, - ListProjectBillingInfoResponse response) { + @Nullable ListProjectBillingInfoResponse response) { super(context, response); } @@ -2095,16 +2101,18 @@ private static ListProjectBillingInfoPage createEmptyPage() { @Override protected ListProjectBillingInfoPage createPage( - PageContext< + @Nullable + PageContext< ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo> context, - ListProjectBillingInfoResponse response) { + @Nullable ListProjectBillingInfoResponse response) { return new ListProjectBillingInfoPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo> context, ApiFuture futureResponse) { @@ -2121,7 +2129,7 @@ public static class ListProjectBillingInfoFixedSizeCollection ListProjectBillingInfoFixedSizeCollection> { private ListProjectBillingInfoFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2131,7 +2139,7 @@ private static ListProjectBillingInfoFixedSizeCollection createEmptyCollection() @Override protected ListProjectBillingInfoFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProjectBillingInfoFixedSizeCollection(pages, collectionSize); } } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java index e1af2e882d1e..64c1dab4e168 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudBillingStubSettings.newBuilder(clientContext)); } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java index db1ffdc83bdc..d5ee348fdb9d 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java @@ -32,6 +32,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. /** @@ -160,7 +161,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudCatalogClient implements BackgroundResource { - private final CloudCatalogSettings settings; + private final @Nullable CloudCatalogSettings settings; private final CloudCatalogStub stub; /** Constructs an instance of CloudCatalogClient with default settings. */ @@ -199,7 +200,7 @@ protected CloudCatalogClient(CloudCatalogStub stub) { this.stub = stub; } - public final CloudCatalogSettings getSettings() { + public final @Nullable CloudCatalogSettings getSettings() { return settings; } @@ -357,7 +358,7 @@ public final UnaryCallable listServic * @param parent Required. The name of the service. Example: "services/6F81-5844-456A" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSkusPagedResponse listSkus(ServiceName parent) { + public final ListSkusPagedResponse listSkus(@Nullable ServiceName parent) { ListSkusRequest request = ListSkusRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSkus(request); @@ -559,8 +560,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -570,14 +571,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -591,7 +592,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -601,7 +603,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -628,7 +630,8 @@ public static class ListSkusPage extends AbstractPage { private ListSkusPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { super(context, response); } @@ -638,13 +641,14 @@ private static ListSkusPage createEmptyPage() { @Override protected ListSkusPage createPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { return new ListSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -654,7 +658,7 @@ public static class ListSkusFixedSizeCollection extends AbstractFixedSizeCollection< ListSkusRequest, ListSkusResponse, Sku, ListSkusPage, ListSkusFixedSizeCollection> { - private ListSkusFixedSizeCollection(List pages, int collectionSize) { + private ListSkusFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -664,7 +668,7 @@ private static ListSkusFixedSizeCollection createEmptyCollection() { @Override protected ListSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSkusFixedSizeCollection(pages, collectionSize); } } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java index 021efb0e4c96..30046ccf22e7 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudCatalogStubSettings.newBuilder(clientContext)); } diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java index 9880ba37ee71..789aa0d9def2 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,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); } @@ -565,7 +566,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBillingAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java index 77867517b41e..e87a1db7f55f 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -407,7 +408,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java index 0ef312228b37..0056e2243a80 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String formatOrganizationBillingAccountName( .toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java index 7ac34dba8512..6de7b2a86f29 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java index 242fbee9526b..7672c2ca5378 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java index fdcc19e10de0..66562057e914 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String service) { return newBuilder().setService(service).build().toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java index 46902a25fe72..c060b696e953 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceClient.java @@ -34,6 +34,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BudgetServiceClient implements BackgroundResource { - private final BudgetServiceSettings settings; + private final @Nullable BudgetServiceSettings settings; private final BudgetServiceStub stub; /** Constructs an instance of BudgetServiceClient with default settings. */ @@ -262,7 +263,7 @@ protected BudgetServiceClient(BudgetServiceStub stub) { this.stub = stub; } - public final BudgetServiceSettings getSettings() { + public final @Nullable BudgetServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public BudgetServiceStub getStub() { * @param budget Required. Budget to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Budget createBudget(BillingAccountName parent, Budget budget) { + public final Budget createBudget(@Nullable BillingAccountName parent, Budget budget) { CreateBudgetRequest request = CreateBudgetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -520,7 +521,7 @@ public final UnaryCallable updateBudgetCallable() { * `billingAccounts/{billingAccountId}/budgets/{budgetId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Budget getBudget(BudgetName name) { + public final Budget getBudget(@Nullable BudgetName name) { GetBudgetRequest request = GetBudgetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBudget(request); @@ -648,7 +649,7 @@ public final UnaryCallable getBudgetCallable() { * `billingAccounts/{billingAccountId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBudgetsPagedResponse listBudgets(BillingAccountName parent) { + public final ListBudgetsPagedResponse listBudgets(@Nullable BillingAccountName parent) { ListBudgetsRequest request = ListBudgetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -828,7 +829,7 @@ public final UnaryCallable listBudgetsC * `billingAccounts/{billingAccountId}/budgets/{budgetId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBudget(BudgetName name) { + public final void deleteBudget(@Nullable BudgetName name) { DeleteBudgetRequest request = DeleteBudgetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBudget(request); @@ -972,8 +973,8 @@ public static class ListBudgetsPage extends AbstractPage { private ListBudgetsPage( - PageContext context, - ListBudgetsResponse response) { + @Nullable PageContext context, + @Nullable ListBudgetsResponse response) { super(context, response); } @@ -983,14 +984,14 @@ private static ListBudgetsPage createEmptyPage() { @Override protected ListBudgetsPage createPage( - PageContext context, - ListBudgetsResponse response) { + @Nullable PageContext context, + @Nullable ListBudgetsResponse response) { return new ListBudgetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1004,7 +1005,8 @@ public static class ListBudgetsFixedSizeCollection ListBudgetsPage, ListBudgetsFixedSizeCollection> { - private ListBudgetsFixedSizeCollection(List pages, int collectionSize) { + private ListBudgetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1014,7 +1016,7 @@ private static ListBudgetsFixedSizeCollection createEmptyCollection() { @Override protected ListBudgetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBudgetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java index a71f2d934978..81a1d63d2f7f 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BudgetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java index fa043b29960a..e621502b4fbc 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -308,7 +309,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); } @@ -393,7 +394,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createBudgetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java index 4b64627b1f36..6c256fd3c993 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java @@ -34,6 +34,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. /** @@ -188,7 +189,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BudgetServiceClient implements BackgroundResource { - private final BudgetServiceSettings settings; + private final @Nullable BudgetServiceSettings settings; private final BudgetServiceStub stub; /** Constructs an instance of BudgetServiceClient with default settings. */ @@ -228,7 +229,7 @@ protected BudgetServiceClient(BudgetServiceStub stub) { this.stub = stub; } - public final BudgetServiceSettings getSettings() { + public final @Nullable BudgetServiceSettings getSettings() { return settings; } @@ -649,8 +650,8 @@ public static class ListBudgetsPage extends AbstractPage { private ListBudgetsPage( - PageContext context, - ListBudgetsResponse response) { + @Nullable PageContext context, + @Nullable ListBudgetsResponse response) { super(context, response); } @@ -660,14 +661,14 @@ private static ListBudgetsPage createEmptyPage() { @Override protected ListBudgetsPage createPage( - PageContext context, - ListBudgetsResponse response) { + @Nullable PageContext context, + @Nullable ListBudgetsResponse response) { return new ListBudgetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -681,7 +682,8 @@ public static class ListBudgetsFixedSizeCollection ListBudgetsPage, ListBudgetsFixedSizeCollection> { - private ListBudgetsFixedSizeCollection(List pages, int collectionSize) { + private ListBudgetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -691,7 +693,7 @@ private static ListBudgetsFixedSizeCollection createEmptyCollection() { @Override protected ListBudgetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBudgetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java index 8618167d750c..6fb0d499c85c 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -161,7 +162,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BudgetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java index d62455528cec..8e157d63f9aa 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createBudgetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java index 1cba35fe481f..7aab284721b6 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BillingAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String billingAccount) { return newBuilder().setBillingAccount(billingAccount).build().toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java index ba0736c0582c..da147b480a67 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/src/main/java/com/google/cloud/billing/budgets/v1/BudgetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String billingAccount, String budget) { return newBuilder().setBillingAccount(billingAccount).setBudget(budget).build().toString(); } - public static BudgetName parse(String formattedString) { + public static @Nullable BudgetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BudgetName> values) { List list = new ArrayList<>(values.size()); for (BudgetName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java index aa63431c936b..0dbd960ae303 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String billingAccount, String budget) { return newBuilder().setBillingAccount(billingAccount).setBudget(budget).build().toString(); } - public static BudgetName parse(String formattedString) { + public static @Nullable BudgetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BudgetName> values) { List list = new ArrayList<>(values.size()); for (BudgetName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java index 48fb2f8270df..86d27abc0821 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java @@ -34,6 +34,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. /** @@ -269,7 +270,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BinauthzManagementServiceV1Beta1Client implements BackgroundResource { - private final BinauthzManagementServiceV1Beta1Settings settings; + private final @Nullable BinauthzManagementServiceV1Beta1Settings settings; private final BinauthzManagementServiceV1Beta1Stub stub; /** Constructs an instance of BinauthzManagementServiceV1Beta1Client with default settings. */ @@ -314,7 +315,7 @@ protected BinauthzManagementServiceV1Beta1Client(BinauthzManagementServiceV1Beta this.stub = stub; } - public final BinauthzManagementServiceV1Beta1Settings getSettings() { + public final @Nullable BinauthzManagementServiceV1Beta1Settings getSettings() { return settings; } @@ -353,7 +354,7 @@ public BinauthzManagementServiceV1Beta1Stub getStub() { * `projects/*/policy`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getPolicy(PolicyName name) { + public final Policy getPolicy(@Nullable PolicyName name) { GetPolicyRequest request = GetPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicy(request); @@ -598,7 +599,8 @@ public final UnaryCallable updatePolicyCallable() { * with the resource name, in the format `projects/*/attestors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attestor createAttestor(ProjectName parent, String attestorId, Attestor attestor) { + public final Attestor createAttestor( + @Nullable ProjectName parent, String attestorId, Attestor attestor) { CreateAttestorRequest request = CreateAttestorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -746,7 +748,7 @@ public final UnaryCallable createAttestorCallab * `projects/*/attestors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attestor getAttestor(AttestorName name) { + public final Attestor getAttestor(@Nullable AttestorName name) { GetAttestorRequest request = GetAttestorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttestor(request); @@ -958,7 +960,7 @@ public final UnaryCallable updateAttestorCallab * `projects/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttestorsPagedResponse listAttestors(ProjectName parent) { + public final ListAttestorsPagedResponse listAttestors(@Nullable ProjectName parent) { ListAttestorsRequest request = ListAttestorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1135,7 +1137,7 @@ public final UnaryCallable listAtte * `projects/*/attestors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAttestor(AttestorName name) { + public final void deleteAttestor(@Nullable AttestorName name) { DeleteAttestorRequest request = DeleteAttestorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAttestor(request); @@ -1290,8 +1292,8 @@ public static class ListAttestorsPage ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage> { private ListAttestorsPage( - PageContext context, - ListAttestorsResponse response) { + @Nullable PageContext context, + @Nullable ListAttestorsResponse response) { super(context, response); } @@ -1301,14 +1303,14 @@ private static ListAttestorsPage createEmptyPage() { @Override protected ListAttestorsPage createPage( - PageContext context, - ListAttestorsResponse response) { + @Nullable PageContext context, + @Nullable ListAttestorsResponse response) { return new ListAttestorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1322,7 +1324,8 @@ public static class ListAttestorsFixedSizeCollection ListAttestorsPage, ListAttestorsFixedSizeCollection> { - private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { + private ListAttestorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1332,7 +1335,7 @@ private static ListAttestorsFixedSizeCollection createEmptyCollection() { @Override protected ListAttestorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttestorsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java index ed7a5293711a..2e570a2616c2 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BinauthzManagementServiceV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java index b1d1995e2089..92c8a6853e2b 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java @@ -25,6 +25,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. /** @@ -137,7 +138,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SystemPolicyV1Beta1Client implements BackgroundResource { - private final SystemPolicyV1Beta1Settings settings; + private final @Nullable SystemPolicyV1Beta1Settings settings; private final SystemPolicyV1Beta1Stub stub; /** Constructs an instance of SystemPolicyV1Beta1Client with default settings. */ @@ -177,7 +178,7 @@ protected SystemPolicyV1Beta1Client(SystemPolicyV1Beta1Stub stub) { this.stub = stub; } - public final SystemPolicyV1Beta1Settings getSettings() { + public final @Nullable SystemPolicyV1Beta1Settings getSettings() { return settings; } @@ -207,7 +208,7 @@ public SystemPolicyV1Beta1Stub getStub() { * system policy is not associated with a project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getSystemPolicy(PolicyName name) { + public final Policy getSystemPolicy(@Nullable PolicyName name) { GetSystemPolicyRequest request = GetSystemPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSystemPolicy(request); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java index 7fc23f3a8b1c..363d4fff72a8 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SystemPolicyV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java index c88f8178aa7c..89ab8656d4f3 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -327,7 +328,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); } @@ -418,7 +419,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java index aae9c00b9586..48ab305e05f9 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -267,7 +268,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSystemPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java index eee7de3453e4..09f57b5cb27b 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java @@ -33,6 +33,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. /** @@ -267,7 +268,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BinauthzManagementServiceV1Client implements BackgroundResource { - private final BinauthzManagementServiceV1Settings settings; + private final @Nullable BinauthzManagementServiceV1Settings settings; private final BinauthzManagementServiceV1Stub stub; /** Constructs an instance of BinauthzManagementServiceV1Client with default settings. */ @@ -310,7 +311,7 @@ protected BinauthzManagementServiceV1Client(BinauthzManagementServiceV1Stub stub this.stub = stub; } - public final BinauthzManagementServiceV1Settings getSettings() { + public final @Nullable BinauthzManagementServiceV1Settings getSettings() { return settings; } @@ -348,7 +349,7 @@ public BinauthzManagementServiceV1Stub getStub() { * `projects/*/policy`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Resources.Policy getPolicy(PolicyName name) { + public final Resources.Policy getPolicy(@Nullable PolicyName name) { Service.GetPolicyRequest request = Service.GetPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -597,7 +598,7 @@ public final UnaryCallable update * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Resources.Attestor createAttestor( - ProjectName parent, String attestorId, Resources.Attestor attestor) { + @Nullable ProjectName parent, String attestorId, Resources.Attestor attestor) { Service.CreateAttestorRequest request = Service.CreateAttestorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -745,7 +746,7 @@ public final Resources.Attestor createAttestor(Service.CreateAttestorRequest req * to retrieve, in the format `projects/*/attestors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Resources.Attestor getAttestor(AttestorName name) { + public final Resources.Attestor getAttestor(@Nullable AttestorName name) { Service.GetAttestorRequest request = Service.GetAttestorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -963,7 +964,7 @@ public final Resources.Attestor updateAttestor(Service.UpdateAttestorRequest req * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttestorsPagedResponse listAttestors(ProjectName parent) { + public final ListAttestorsPagedResponse listAttestors(@Nullable ProjectName parent) { Service.ListAttestorsRequest request = Service.ListAttestorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1140,7 +1141,7 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque * to delete, in the format `projects/*/attestors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAttestor(AttestorName name) { + public final void deleteAttestor(@Nullable AttestorName name) { Service.DeleteAttestorRequest request = Service.DeleteAttestorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1301,9 +1302,11 @@ public static class ListAttestorsPage ListAttestorsPage> { private ListAttestorsPage( - PageContext + @Nullable + PageContext< + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor> context, - Service.ListAttestorsResponse response) { + Service.@Nullable ListAttestorsResponse response) { super(context, response); } @@ -1313,15 +1316,19 @@ private static ListAttestorsPage createEmptyPage() { @Override protected ListAttestorsPage createPage( - PageContext + @Nullable + PageContext< + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor> context, - Service.ListAttestorsResponse response) { + Service.@Nullable ListAttestorsResponse response) { return new ListAttestorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1336,7 +1343,8 @@ public static class ListAttestorsFixedSizeCollection ListAttestorsPage, ListAttestorsFixedSizeCollection> { - private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { + private ListAttestorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1346,7 +1354,7 @@ private static ListAttestorsFixedSizeCollection createEmptyCollection() { @Override protected ListAttestorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttestorsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java index fe2dd05642d3..d77040ab29f6 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BinauthzManagementServiceV1StubSettings.newBuilder(clientContext)); } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java index 3eb6b312e018..fb5586fcf82b 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java @@ -24,6 +24,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. /** @@ -131,7 +132,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SystemPolicyV1Client implements BackgroundResource { - private final SystemPolicyV1Settings settings; + private final @Nullable SystemPolicyV1Settings settings; private final SystemPolicyV1Stub stub; /** Constructs an instance of SystemPolicyV1Client with default settings. */ @@ -171,7 +172,7 @@ protected SystemPolicyV1Client(SystemPolicyV1Stub stub) { this.stub = stub; } - public final SystemPolicyV1Settings getSettings() { + public final @Nullable SystemPolicyV1Settings getSettings() { return settings; } @@ -201,7 +202,7 @@ public SystemPolicyV1Stub getStub() { * system policy is not associated with a project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Resources.Policy getSystemPolicy(PolicyName name) { + public final Resources.Policy getSystemPolicy(@Nullable PolicyName name) { Service.GetSystemPolicyRequest request = Service.GetSystemPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java index 8962ce661972..b43bcb32e32e 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SystemPolicyV1StubSettings.newBuilder(clientContext)); } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java index 44842d9b8d15..23b6b3d0058b 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java @@ -24,6 +24,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. /** @@ -137,7 +138,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ValidationHelperV1Client implements BackgroundResource { - private final ValidationHelperV1Settings settings; + private final @Nullable ValidationHelperV1Settings settings; private final ValidationHelperV1Stub stub; /** Constructs an instance of ValidationHelperV1Client with default settings. */ @@ -177,7 +178,7 @@ protected ValidationHelperV1Client(ValidationHelperV1Stub stub) { this.stub = stub; } - public final ValidationHelperV1Settings getSettings() { + public final @Nullable ValidationHelperV1Settings getSettings() { return settings; } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java index e19d1ebe1c67..fc5aae89a271 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ValidationHelperV1StubSettings.newBuilder(clientContext)); } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java index da8026ceb317..628ab10c98fc 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -429,7 +430,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java index 41237c3271d8..5df3a44dbf53 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -267,7 +268,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSystemPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java index 4b3872a0f9da..85e2a3543329 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); validateAttestationOccurrenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java index 101d755c8b47..b9d2f78b800e 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String attestor) { return newBuilder().setProject(project).setAttestor(attestor).build().toString(); } - public static AttestorName parse(String formattedString) { + public static @Nullable AttestorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttestorName> values) { List list = new ArrayList<>(values.size()); for (AttestorName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java index 9544fc575e21..aed50e0f8ac5 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatLocationName(String location) { return newLocationBuilder().setLocation(location).build().toString(); } - public static PolicyName parse(String formattedString) { + public static @Nullable PolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyName> values) { List list = new ArrayList<>(values.size()); for (PolicyName value : values) { if (value == null) { @@ -175,7 +176,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java index afbf6cef3427..21dac7a65cef 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java index 1978a394c628..b8fccf5115f0 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String attestor) { return newBuilder().setProject(project).setAttestor(attestor).build().toString(); } - public static AttestorName parse(String formattedString) { + public static @Nullable AttestorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttestorName> values) { List list = new ArrayList<>(values.size()); for (AttestorName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java index e15e5cf45e1e..b328ac32352d 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatLocationName(String location) { return newLocationBuilder().setLocation(location).build().toString(); } - public static PolicyName parse(String formattedString) { + public static @Nullable PolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyName> values) { List list = new ArrayList<>(values.size()); for (PolicyName value : values) { if (value == null) { @@ -175,7 +176,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java index 316b51aecb91..9af4144a0fac 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceClient.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceClient.java index 845ca0d91d89..2569d73c4dd7 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceClient.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceClient.java @@ -29,6 +29,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. /** @@ -222,7 +223,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UsageServiceClient implements BackgroundResource { - private final UsageServiceSettings settings; + private final @Nullable UsageServiceSettings settings; private final UsageServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -269,7 +270,7 @@ protected UsageServiceClient(UsageServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UsageServiceSettings getSettings() { + public final @Nullable UsageServiceSettings getSettings() { return settings; } @@ -471,7 +472,7 @@ public final QueryForecastsResponse queryForecasts(QueryForecastsRequest request * organizations/{organization}/locations/{location} or folders/{folder}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryReservationsResponse queryReservations(LocationName parent) { + public final QueryReservationsResponse queryReservations(@Nullable LocationName parent) { QueryReservationsRequest request = QueryReservationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceSettings.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceSettings.java index a5120b92f093..039e543db7b6 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceSettings.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/UsageServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UsageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStub.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStub.java index 1c10eee06e9d..0d4bf1d5efd5 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStub.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class UsageServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStubSettings.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStubSettings.java index 44b315efc491..f1b6b23732b9 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStubSettings.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/UsageServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -326,7 +327,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); } @@ -423,7 +424,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); queryUsageHistoriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/LocationName.java b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/LocationName.java index 64a8a6431fa8..800617af0b9d 100644 --- a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/LocationName.java +++ b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/src/main/java/com/google/cloud/capacityplanner/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java index 76a03fe38990..66be3f6ac4c6 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java @@ -43,6 +43,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. /** @@ -757,7 +758,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CertificateManagerClient implements BackgroundResource { - private final CertificateManagerSettings settings; + private final @Nullable CertificateManagerSettings settings; private final CertificateManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -805,7 +806,7 @@ protected CertificateManagerClient(CertificateManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CertificateManagerSettings getSettings() { + public final @Nullable CertificateManagerSettings getSettings() { return settings; } @@ -854,7 +855,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCertificatesPagedResponse listCertificates(LocationName parent) { + public final ListCertificatesPagedResponse listCertificates(@Nullable LocationName parent) { ListCertificatesRequest request = ListCertificatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1025,7 +1026,7 @@ public final ListCertificatesPagedResponse listCertificates(ListCertificatesRequ * `projects/*/locations/*/certificates/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Certificate getCertificate(CertificateName name) { + public final Certificate getCertificate(@Nullable CertificateName name) { GetCertificateRequest request = GetCertificateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCertificate(request); @@ -1142,7 +1143,7 @@ public final UnaryCallable getCertificateCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCertificateAsync( - LocationName parent, Certificate certificate, String certificateId) { + @Nullable LocationName parent, Certificate certificate, String certificateId) { CreateCertificateRequest request = CreateCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1430,7 +1431,7 @@ public final UnaryCallable updateCertificat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCertificateAsync( - CertificateName name) { + @Nullable CertificateName name) { DeleteCertificateRequest request = DeleteCertificateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1576,7 +1577,7 @@ public final UnaryCallable deleteCertificat * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCertificateMapsPagedResponse listCertificateMaps(LocationName parent) { + public final ListCertificateMapsPagedResponse listCertificateMaps(@Nullable LocationName parent) { ListCertificateMapsRequest request = ListCertificateMapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1751,7 +1752,7 @@ public final ListCertificateMapsPagedResponse listCertificateMaps( * `projects/*/locations/*/certificateMaps/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateMap getCertificateMap(CertificateMapName name) { + public final CertificateMap getCertificateMap(@Nullable CertificateMapName name) { GetCertificateMapRequest request = GetCertificateMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1875,7 +1876,7 @@ public final UnaryCallable getCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCertificateMapAsync( - LocationName parent, CertificateMap certificateMap, String certificateMapId) { + @Nullable LocationName parent, CertificateMap certificateMap, String certificateMapId) { CreateCertificateMapRequest request = CreateCertificateMapRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2169,7 +2170,7 @@ public final OperationFuture updateCertificat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCertificateMapAsync( - CertificateMapName name) { + @Nullable CertificateMapName name) { DeleteCertificateMapRequest request = DeleteCertificateMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2328,7 +2329,7 @@ public final OperationFuture deleteCertificateMapAsync * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateMapEntriesPagedResponse listCertificateMapEntries( - CertificateMapName parent) { + @Nullable CertificateMapName parent) { ListCertificateMapEntriesRequest request = ListCertificateMapEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2510,7 +2511,7 @@ public final ListCertificateMapEntriesPagedResponse listCertificateMapEntries( * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateMapEntry getCertificateMapEntry(CertificateMapEntryName name) { + public final CertificateMapEntry getCertificateMapEntry(@Nullable CertificateMapEntryName name) { GetCertificateMapEntryRequest request = GetCertificateMapEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2644,7 +2645,7 @@ public final CertificateMapEntry getCertificateMapEntry(GetCertificateMapEntryRe */ public final OperationFuture createCertificateMapEntryAsync( - CertificateMapName parent, + @Nullable CertificateMapName parent, CertificateMapEntry certificateMapEntry, String certificateMapEntryId) { CreateCertificateMapEntryRequest request = @@ -2953,7 +2954,7 @@ public final CertificateMapEntry getCertificateMapEntry(GetCertificateMapEntryRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCertificateMapEntryAsync( - CertificateMapEntryName name) { + @Nullable CertificateMapEntryName name) { DeleteCertificateMapEntryRequest request = DeleteCertificateMapEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3114,7 +3115,8 @@ public final OperationFuture deleteCertificateMapEntry * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDnsAuthorizationsPagedResponse listDnsAuthorizations(LocationName parent) { + public final ListDnsAuthorizationsPagedResponse listDnsAuthorizations( + @Nullable LocationName parent) { ListDnsAuthorizationsRequest request = ListDnsAuthorizationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3289,7 +3291,7 @@ public final ListDnsAuthorizationsPagedResponse listDnsAuthorizations( * `projects/*/locations/*/dnsAuthorizations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DnsAuthorization getDnsAuthorization(DnsAuthorizationName name) { + public final DnsAuthorization getDnsAuthorization(@Nullable DnsAuthorizationName name) { GetDnsAuthorizationRequest request = GetDnsAuthorizationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3417,7 +3419,7 @@ public final DnsAuthorization getDnsAuthorization(GetDnsAuthorizationRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDnsAuthorizationAsync( - LocationName parent, DnsAuthorization dnsAuthorization, String dnsAuthorizationId) { + @Nullable LocationName parent, DnsAuthorization dnsAuthorization, String dnsAuthorizationId) { CreateDnsAuthorizationRequest request = CreateDnsAuthorizationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3712,7 +3714,7 @@ public final OperationFuture updateDnsAutho * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDnsAuthorizationAsync( - DnsAuthorizationName name) { + @Nullable DnsAuthorizationName name) { DeleteDnsAuthorizationRequest request = DeleteDnsAuthorizationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3868,7 +3870,7 @@ public final OperationFuture deleteDnsAuthorizationAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( - LocationName parent) { + @Nullable LocationName parent) { ListCertificateIssuanceConfigsRequest request = ListCertificateIssuanceConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4051,7 +4053,7 @@ public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuance * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CertificateIssuanceConfig getCertificateIssuanceConfig( - CertificateIssuanceConfigName name) { + @Nullable CertificateIssuanceConfigName name) { GetCertificateIssuanceConfigRequest request = GetCertificateIssuanceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4190,7 +4192,7 @@ public final CertificateIssuanceConfig getCertificateIssuanceConfig( */ public final OperationFuture createCertificateIssuanceConfigAsync( - LocationName parent, + @Nullable LocationName parent, CertificateIssuanceConfig certificateIssuanceConfig, String certificateIssuanceConfigId) { CreateCertificateIssuanceConfigRequest request = @@ -4370,7 +4372,7 @@ public final CertificateIssuanceConfig getCertificateIssuanceConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCertificateIssuanceConfigAsync( - CertificateIssuanceConfigName name) { + @Nullable CertificateIssuanceConfigName name) { DeleteCertificateIssuanceConfigRequest request = DeleteCertificateIssuanceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4532,7 +4534,7 @@ public final OperationFuture deleteCertificateIssuance * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTrustConfigsPagedResponse listTrustConfigs(LocationName parent) { + public final ListTrustConfigsPagedResponse listTrustConfigs(@Nullable LocationName parent) { ListTrustConfigsRequest request = ListTrustConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4703,7 +4705,7 @@ public final ListTrustConfigsPagedResponse listTrustConfigs(ListTrustConfigsRequ * `projects/*/locations/*/trustConfigs/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TrustConfig getTrustConfig(TrustConfigName name) { + public final TrustConfig getTrustConfig(@Nullable TrustConfigName name) { GetTrustConfigRequest request = GetTrustConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTrustConfig(request); @@ -4821,7 +4823,7 @@ public final UnaryCallable getTrustConfigCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTrustConfigAsync( - LocationName parent, TrustConfig trustConfig, String trustConfigId) { + @Nullable LocationName parent, TrustConfig trustConfig, String trustConfigId) { CreateTrustConfigRequest request = CreateTrustConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5110,7 +5112,7 @@ public final UnaryCallable updateTrustConfi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTrustConfigAsync( - TrustConfigName name) { + @Nullable TrustConfigName name) { DeleteTrustConfigRequest request = DeleteTrustConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5450,8 +5452,9 @@ public static class ListCertificatesPage ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage> { private ListCertificatesPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { super(context, response); } @@ -5461,14 +5464,16 @@ private static ListCertificatesPage createEmptyPage() { @Override protected ListCertificatesPage createPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { return new ListCertificatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5483,7 +5488,7 @@ public static class ListCertificatesFixedSizeCollection ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5493,7 +5498,7 @@ private static ListCertificatesFixedSizeCollection createEmptyCollection() { @Override protected ListCertificatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificatesFixedSizeCollection(pages, collectionSize); } } @@ -5531,9 +5536,10 @@ public static class ListCertificateMapsPage ListCertificateMapsPage> { private ListCertificateMapsPage( - PageContext + @Nullable + PageContext context, - ListCertificateMapsResponse response) { + @Nullable ListCertificateMapsResponse response) { super(context, response); } @@ -5543,15 +5549,17 @@ private static ListCertificateMapsPage createEmptyPage() { @Override protected ListCertificateMapsPage createPage( - PageContext + @Nullable + PageContext context, - ListCertificateMapsResponse response) { + @Nullable ListCertificateMapsResponse response) { return new ListCertificateMapsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5567,7 +5575,7 @@ public static class ListCertificateMapsFixedSizeCollection ListCertificateMapsFixedSizeCollection> { private ListCertificateMapsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5577,7 +5585,7 @@ private static ListCertificateMapsFixedSizeCollection createEmptyCollection() { @Override protected ListCertificateMapsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateMapsFixedSizeCollection(pages, collectionSize); } } @@ -5618,12 +5626,13 @@ public static class ListCertificateMapEntriesPage ListCertificateMapEntriesPage> { private ListCertificateMapEntriesPage( - PageContext< + @Nullable + PageContext< ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse, CertificateMapEntry> context, - ListCertificateMapEntriesResponse response) { + @Nullable ListCertificateMapEntriesResponse response) { super(context, response); } @@ -5633,18 +5642,20 @@ private static ListCertificateMapEntriesPage createEmptyPage() { @Override protected ListCertificateMapEntriesPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse, CertificateMapEntry> context, - ListCertificateMapEntriesResponse response) { + @Nullable ListCertificateMapEntriesResponse response) { return new ListCertificateMapEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse, CertificateMapEntry> @@ -5663,7 +5674,7 @@ public static class ListCertificateMapEntriesFixedSizeCollection ListCertificateMapEntriesFixedSizeCollection> { private ListCertificateMapEntriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5673,7 +5684,7 @@ private static ListCertificateMapEntriesFixedSizeCollection createEmptyCollectio @Override protected ListCertificateMapEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateMapEntriesFixedSizeCollection(pages, collectionSize); } } @@ -5711,9 +5722,11 @@ public static class ListDnsAuthorizationsPage ListDnsAuthorizationsPage> { private ListDnsAuthorizationsPage( - PageContext + @Nullable + PageContext< + ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, DnsAuthorization> context, - ListDnsAuthorizationsResponse response) { + @Nullable ListDnsAuthorizationsResponse response) { super(context, response); } @@ -5723,15 +5736,19 @@ private static ListDnsAuthorizationsPage createEmptyPage() { @Override protected ListDnsAuthorizationsPage createPage( - PageContext + @Nullable + PageContext< + ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, DnsAuthorization> context, - ListDnsAuthorizationsResponse response) { + @Nullable ListDnsAuthorizationsResponse response) { return new ListDnsAuthorizationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, DnsAuthorization> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5747,7 +5764,7 @@ public static class ListDnsAuthorizationsFixedSizeCollection ListDnsAuthorizationsFixedSizeCollection> { private ListDnsAuthorizationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5757,7 +5774,7 @@ private static ListDnsAuthorizationsFixedSizeCollection createEmptyCollection() @Override protected ListDnsAuthorizationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDnsAuthorizationsFixedSizeCollection(pages, collectionSize); } } @@ -5799,12 +5816,13 @@ public static class ListCertificateIssuanceConfigsPage ListCertificateIssuanceConfigsPage> { private ListCertificateIssuanceConfigsPage( - PageContext< + @Nullable + PageContext< ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse, CertificateIssuanceConfig> context, - ListCertificateIssuanceConfigsResponse response) { + @Nullable ListCertificateIssuanceConfigsResponse response) { super(context, response); } @@ -5814,18 +5832,20 @@ private static ListCertificateIssuanceConfigsPage createEmptyPage() { @Override protected ListCertificateIssuanceConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse, CertificateIssuanceConfig> context, - ListCertificateIssuanceConfigsResponse response) { + @Nullable ListCertificateIssuanceConfigsResponse response) { return new ListCertificateIssuanceConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse, CertificateIssuanceConfig> @@ -5844,7 +5864,7 @@ public static class ListCertificateIssuanceConfigsFixedSizeCollection ListCertificateIssuanceConfigsFixedSizeCollection> { private ListCertificateIssuanceConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5854,7 +5874,7 @@ private static ListCertificateIssuanceConfigsFixedSizeCollection createEmptyColl @Override protected ListCertificateIssuanceConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateIssuanceConfigsFixedSizeCollection(pages, collectionSize); } } @@ -5888,8 +5908,9 @@ public static class ListTrustConfigsPage ListTrustConfigsRequest, ListTrustConfigsResponse, TrustConfig, ListTrustConfigsPage> { private ListTrustConfigsPage( - PageContext context, - ListTrustConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListTrustConfigsResponse response) { super(context, response); } @@ -5899,14 +5920,16 @@ private static ListTrustConfigsPage createEmptyPage() { @Override protected ListTrustConfigsPage createPage( - PageContext context, - ListTrustConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListTrustConfigsResponse response) { return new ListTrustConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5921,7 +5944,7 @@ public static class ListTrustConfigsFixedSizeCollection ListTrustConfigsFixedSizeCollection> { private ListTrustConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5931,7 +5954,7 @@ private static ListTrustConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListTrustConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTrustConfigsFixedSizeCollection(pages, collectionSize); } } @@ -5965,8 +5988,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5976,14 +5999,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5997,7 +6020,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6007,7 +6031,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java index aea28149883d..5f5d3c417d0c 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -498,7 +499,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); } @@ -518,7 +519,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CertificateManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java index ca74059bc91d..f0b827acc5ed 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java @@ -78,6 +78,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -89,11 +90,12 @@ @Generated("by gapic-generator-java") public abstract class CertificateManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java index 619cc5f111d6..c9c61d7e3089 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java @@ -112,6 +112,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1137,7 +1138,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); } @@ -1397,7 +1398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCertificatesSettings = PagedCallSettings.newBuilder(LIST_CERTIFICATES_PAGE_STR_FACT); diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java index 003b2756f288..5d9b663cbc3f 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String certificateI .toString(); } - public static CertificateIssuanceConfigName parse(String formattedString) { + public static @Nullable CertificateIssuanceConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateIssuanceConfigName> values) { List list = new ArrayList<>(values.size()); for (CertificateIssuanceConfigName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java index f0d3f80d0a70..083f9b0fbfe7 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CertificateMapEntryName parse(String formattedString) { + public static @Nullable CertificateMapEntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateMapEntryName> values) { List list = new ArrayList<>(values.size()); for (CertificateMapEntryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java index edd81c600706..6a4a3d4f2c9a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String certificateM .toString(); } - public static CertificateMapName parse(String formattedString) { + public static @Nullable CertificateMapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateMapName> values) { List list = new ArrayList<>(values.size()); for (CertificateMapName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java index ffefcdfab4c5..0dabf0fa191c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String certificate) .toString(); } - public static CertificateName parse(String formattedString) { + public static @Nullable CertificateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateName> values) { List list = new ArrayList<>(values.size()); for (CertificateName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java index 87ff462c7037..b2a671a6d96a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dnsAuthoriza .toString(); } - public static DnsAuthorizationName parse(String formattedString) { + public static @Nullable DnsAuthorizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DnsAuthorizationName> values) { List list = new ArrayList<>(values.size()); for (DnsAuthorizationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java index 50348cfc0a2e..6915f1b8969f 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/TrustConfigName.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/TrustConfigName.java index a5e8b6ada38c..885516b5f4ea 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/TrustConfigName.java +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/TrustConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String trustConfig) .toString(); } - public static TrustConfigName parse(String formattedString) { + public static @Nullable TrustConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TrustConfigName> values) { List list = new ArrayList<>(values.size()); for (TrustConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java index 736e4a48c19e..86437e2a8218 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java @@ -43,6 +43,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. /** @@ -1099,7 +1100,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AgentServiceClient implements BackgroundResource { - private final AgentServiceSettings settings; + private final @Nullable AgentServiceSettings settings; private final AgentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1146,7 +1147,7 @@ protected AgentServiceClient(AgentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentServiceSettings getSettings() { + public final @Nullable AgentServiceSettings getSettings() { return settings; } @@ -1194,7 +1195,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The resource name of the location to list apps from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppsPagedResponse listApps(LocationName parent) { + public final ListAppsPagedResponse listApps(@Nullable LocationName parent) { ListAppsRequest request = ListAppsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listApps(request); @@ -1356,7 +1357,7 @@ public final UnaryCallable listAppsCallable() * @param name Required. The resource name of the app to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final App getApp(AppName name) { + public final App getApp(@Nullable AppName name) { GetAppRequest request = GetAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApp(request); @@ -1467,7 +1468,7 @@ public final UnaryCallable getAppCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppAsync( - LocationName parent, App app) { + @Nullable LocationName parent, App app) { CreateAppRequest request = CreateAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1532,7 +1533,7 @@ public final OperationFuture createAppAsync(String paren * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppAsync( - LocationName parent, App app, String appId) { + @Nullable LocationName parent, App app, String appId) { CreateAppRequest request = CreateAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1774,7 +1775,7 @@ public final UnaryCallable updateAppCallable() { * @param name Required. The resource name of the app to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAppAsync(AppName name) { + public final OperationFuture deleteAppAsync(@Nullable AppName name) { DeleteAppRequest request = DeleteAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAppAsync(request); @@ -1914,7 +1915,8 @@ public final UnaryCallable deleteAppCallable() { * @param name Required. The resource name of the app to export. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAppAsync(AppName name) { + public final OperationFuture exportAppAsync( + @Nullable AppName name) { ExportAppRequest request = ExportAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return exportAppAsync(request); @@ -2082,7 +2084,7 @@ public final UnaryCallable exportAppCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importAppAsync( - LocationName parent, String displayName, String appId) { + @Nullable LocationName parent, String displayName, String appId) { ImportAppRequest request = ImportAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2264,7 +2266,7 @@ public final UnaryCallable importAppCallable() { * @param parent Required. The resource name of the app to list agents from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentsPagedResponse listAgents(AppName parent) { + public final ListAgentsPagedResponse listAgents(@Nullable AppName parent) { ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAgents(request); @@ -2426,7 +2428,7 @@ public final UnaryCallable listAgentsCall * @param name Required. The resource name of the agent to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(AgentName name) { + public final Agent getAgent(@Nullable AgentName name) { GetAgentRequest request = GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgent(request); @@ -2536,7 +2538,7 @@ public final UnaryCallable getAgentCallable() { * @param agent Required. The agent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(AppName parent, Agent agent) { + public final Agent createAgent(@Nullable AppName parent, Agent agent) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2601,7 +2603,7 @@ public final Agent createAgent(String parent, Agent agent) { * the agent. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(AppName parent, Agent agent, String agentId) { + public final Agent createAgent(@Nullable AppName parent, Agent agent, String agentId) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2815,7 +2817,7 @@ public final UnaryCallable updateAgentCallable() { * @param name Required. The resource name of the agent to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(AgentName name) { + public final void deleteAgent(@Nullable AgentName name) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAgent(request); @@ -2929,7 +2931,7 @@ public final UnaryCallable deleteAgentCallable() { * @param parent Required. The resource name of the app to list examples from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(AppName parent) { + public final ListExamplesPagedResponse listExamples(@Nullable AppName parent) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3095,7 +3097,7 @@ public final UnaryCallable listExampl * @param name Required. The resource name of the example to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example getExample(ExampleName name) { + public final Example getExample(@Nullable ExampleName name) { GetExampleRequest request = GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExample(request); @@ -3205,7 +3207,7 @@ public final UnaryCallable getExampleCallable() { * @param example Required. The example to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(AppName parent, Example example) { + public final Example createExample(@Nullable AppName parent, Example example) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3270,7 +3272,7 @@ public final Example createExample(String parent, Example example) { * for the example. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(AppName parent, Example example, String exampleId) { + public final Example createExample(@Nullable AppName parent, Example example, String exampleId) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3484,7 +3486,7 @@ public final UnaryCallable updateExampleCallable( * @param name Required. The resource name of the example to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExample(ExampleName name) { + public final void deleteExample(@Nullable ExampleName name) { DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExample(request); @@ -3596,7 +3598,7 @@ public final UnaryCallable deleteExampleCallable() * @param parent Required. The resource name of the app to list tools from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(AppName parent) { + public final ListToolsPagedResponse listTools(@Nullable AppName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -3758,7 +3760,7 @@ public final UnaryCallable listToolsCallabl * @param name Required. The resource name of the tool to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -3868,7 +3870,7 @@ public final UnaryCallable getToolCallable() { * @param parent Required. The resource name of the app to list conversations from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(AppName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable AppName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4038,7 +4040,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * @param name Required. The resource name of the conversation to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -4153,7 +4155,7 @@ public final UnaryCallable getConversation * @param name Required. The resource name of the conversation to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4272,7 +4274,7 @@ public final UnaryCallable deleteConversationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchDeleteConversationsAsync(AppName parent) { + batchDeleteConversationsAsync(@Nullable AppName parent) { BatchDeleteConversationsRequest request = BatchDeleteConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4425,7 +4427,7 @@ public final UnaryCallable deleteConversationC * @param tool Required. The tool to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AppName parent, Tool tool) { + public final Tool createTool(@Nullable AppName parent, Tool tool) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4490,7 +4492,7 @@ public final Tool createTool(String parent, Tool tool) { * the tool. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AppName parent, Tool tool, String toolId) { + public final Tool createTool(@Nullable AppName parent, Tool tool, String toolId) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4700,7 +4702,7 @@ public final UnaryCallable updateToolCallable() { * @param name Required. The resource name of the tool to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -4814,7 +4816,7 @@ public final UnaryCallable deleteToolCallable() { * @param parent Required. The resource name of the app to list guardrails from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGuardrailsPagedResponse listGuardrails(AppName parent) { + public final ListGuardrailsPagedResponse listGuardrails(@Nullable AppName parent) { ListGuardrailsRequest request = ListGuardrailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4981,7 +4983,7 @@ public final ListGuardrailsPagedResponse listGuardrails(ListGuardrailsRequest re * @param name Required. The resource name of the guardrail to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail getGuardrail(GuardrailName name) { + public final Guardrail getGuardrail(@Nullable GuardrailName name) { GetGuardrailRequest request = GetGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGuardrail(request); @@ -5093,7 +5095,7 @@ public final UnaryCallable getGuardrailCallable( * @param guardrail Required. The guardrail to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail createGuardrail(AppName parent, Guardrail guardrail) { + public final Guardrail createGuardrail(@Nullable AppName parent, Guardrail guardrail) { CreateGuardrailRequest request = CreateGuardrailRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5158,7 +5160,8 @@ public final Guardrail createGuardrail(String parent, Guardrail guardrail) { * automatically assigned for the guardrail. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail createGuardrail(AppName parent, Guardrail guardrail, String guardrailId) { + public final Guardrail createGuardrail( + @Nullable AppName parent, Guardrail guardrail, String guardrailId) { CreateGuardrailRequest request = CreateGuardrailRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5377,7 +5380,7 @@ public final UnaryCallable updateGuardrailCal * @param name Required. The resource name of the guardrail to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGuardrail(GuardrailName name) { + public final void deleteGuardrail(@Nullable GuardrailName name) { DeleteGuardrailRequest request = DeleteGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGuardrail(request); @@ -5494,7 +5497,7 @@ public final UnaryCallable deleteGuardrailCallabl * `projects/{project}/locations/{location}/apps/{app}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(AppName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable AppName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5661,7 +5664,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -5776,7 +5779,7 @@ public final UnaryCallable getDeploymentCallab * @param deployment Required. The deployment to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment createDeployment(AppName parent, Deployment deployment) { + public final Deployment createDeployment(@Nullable AppName parent, Deployment deployment) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5844,7 +5847,7 @@ public final Deployment createDeployment(String parent, Deployment deployment) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - AppName parent, Deployment deployment, String deploymentId) { + @Nullable AppName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6065,7 +6068,7 @@ public final UnaryCallable updateDeployment * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeployment(DeploymentName name) { + public final void deleteDeployment(@Nullable DeploymentName name) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDeployment(request); @@ -6181,7 +6184,7 @@ public final UnaryCallable deleteDeploymentCalla * @param parent Required. The resource name of the app to list toolsets from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsetsPagedResponse listToolsets(AppName parent) { + public final ListToolsetsPagedResponse listToolsets(@Nullable AppName parent) { ListToolsetsRequest request = ListToolsetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6347,7 +6350,7 @@ public final UnaryCallable listToolse * @param name Required. The resource name of the toolset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset getToolset(ToolsetName name) { + public final Toolset getToolset(@Nullable ToolsetName name) { GetToolsetRequest request = GetToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getToolset(request); @@ -6457,7 +6460,7 @@ public final UnaryCallable getToolsetCallable() { * @param toolset Required. The toolset to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset createToolset(AppName parent, Toolset toolset) { + public final Toolset createToolset(@Nullable AppName parent, Toolset toolset) { CreateToolsetRequest request = CreateToolsetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6522,7 +6525,7 @@ public final Toolset createToolset(String parent, Toolset toolset) { * for the toolset. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset createToolset(AppName parent, Toolset toolset, String toolsetId) { + public final Toolset createToolset(@Nullable AppName parent, Toolset toolset, String toolsetId) { CreateToolsetRequest request = CreateToolsetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6736,7 +6739,7 @@ public final UnaryCallable updateToolsetCallable( * @param name Required. The resource name of the toolset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteToolset(ToolsetName name) { + public final void deleteToolset(@Nullable ToolsetName name) { DeleteToolsetRequest request = DeleteToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteToolset(request); @@ -6850,7 +6853,7 @@ public final UnaryCallable deleteToolsetCallable() * @param parent Required. The resource name of the app to list app versions from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppVersionsPagedResponse listAppVersions(AppName parent) { + public final ListAppVersionsPagedResponse listAppVersions(@Nullable AppName parent) { ListAppVersionsRequest request = ListAppVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7018,7 +7021,7 @@ public final ListAppVersionsPagedResponse listAppVersions(ListAppVersionsRequest * @param name Required. The resource name of the app version to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppVersion getAppVersion(AppVersionName name) { + public final AppVersion getAppVersion(@Nullable AppVersionName name) { GetAppVersionRequest request = GetAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppVersion(request); @@ -7130,7 +7133,7 @@ public final UnaryCallable getAppVersionCallab * @param appVersion Required. The app version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppVersion createAppVersion(AppName parent, AppVersion appVersion) { + public final AppVersion createAppVersion(@Nullable AppName parent, AppVersion appVersion) { CreateAppVersionRequest request = CreateAppVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7196,7 +7199,7 @@ public final AppVersion createAppVersion(String parent, AppVersion appVersion) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AppVersion createAppVersion( - AppName parent, AppVersion appVersion, String appVersionId) { + @Nullable AppName parent, AppVersion appVersion, String appVersionId) { CreateAppVersionRequest request = CreateAppVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7325,7 +7328,7 @@ public final UnaryCallable createAppVersion * @param name Required. The resource name of the app version to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAppVersion(AppVersionName name) { + public final void deleteAppVersion(@Nullable AppVersionName name) { DeleteAppVersionRequest request = DeleteAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAppVersion(request); @@ -7439,7 +7442,7 @@ public final UnaryCallable deleteAppVersionCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreAppVersionAsync( - AppVersionName name) { + @Nullable AppVersionName name) { RestoreAppVersionRequest request = RestoreAppVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7591,7 +7594,7 @@ public final UnaryCallable restoreAppVersio * @param parent Required. The resource name of the app to list changelogs from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChangelogsPagedResponse listChangelogs(AppName parent) { + public final ListChangelogsPagedResponse listChangelogs(@Nullable AppName parent) { ListChangelogsRequest request = ListChangelogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7758,7 +7761,7 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re * @param name Required. The resource name of the changelog to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Changelog getChangelog(ChangelogName name) { + public final Changelog getChangelog(@Nullable ChangelogName name) { GetChangelogRequest request = GetChangelogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChangelog(request); @@ -8090,7 +8093,8 @@ public static class ListAppsPage extends AbstractPage { private ListAppsPage( - PageContext context, ListAppsResponse response) { + @Nullable PageContext context, + @Nullable ListAppsResponse response) { super(context, response); } @@ -8100,13 +8104,14 @@ private static ListAppsPage createEmptyPage() { @Override protected ListAppsPage createPage( - PageContext context, ListAppsResponse response) { + @Nullable PageContext context, + @Nullable ListAppsResponse response) { return new ListAppsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8116,7 +8121,7 @@ public static class ListAppsFixedSizeCollection extends AbstractFixedSizeCollection< ListAppsRequest, ListAppsResponse, App, ListAppsPage, ListAppsFixedSizeCollection> { - private ListAppsFixedSizeCollection(List pages, int collectionSize) { + private ListAppsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8126,7 +8131,7 @@ private static ListAppsFixedSizeCollection createEmptyCollection() { @Override protected ListAppsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppsFixedSizeCollection(pages, collectionSize); } } @@ -8157,8 +8162,8 @@ public static class ListAgentsPage extends AbstractPage { private ListAgentsPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { super(context, response); } @@ -8168,14 +8173,14 @@ private static ListAgentsPage createEmptyPage() { @Override protected ListAgentsPage createPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { return new ListAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8189,7 +8194,8 @@ public static class ListAgentsFixedSizeCollection ListAgentsPage, ListAgentsFixedSizeCollection> { - private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8199,7 +8205,7 @@ private static ListAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentsFixedSizeCollection(pages, collectionSize); } } @@ -8232,8 +8238,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -8243,14 +8249,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8264,7 +8270,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8274,7 +8281,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -8301,8 +8308,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -8312,14 +8319,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8329,7 +8336,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8339,7 +8346,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -8376,8 +8383,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -8387,14 +8395,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8409,7 +8419,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8419,7 +8429,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -8453,8 +8463,8 @@ public static class ListGuardrailsPage ListGuardrailsRequest, ListGuardrailsResponse, Guardrail, ListGuardrailsPage> { private ListGuardrailsPage( - PageContext context, - ListGuardrailsResponse response) { + @Nullable PageContext context, + @Nullable ListGuardrailsResponse response) { super(context, response); } @@ -8464,14 +8474,14 @@ private static ListGuardrailsPage createEmptyPage() { @Override protected ListGuardrailsPage createPage( - PageContext context, - ListGuardrailsResponse response) { + @Nullable PageContext context, + @Nullable ListGuardrailsResponse response) { return new ListGuardrailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8485,7 +8495,8 @@ public static class ListGuardrailsFixedSizeCollection ListGuardrailsPage, ListGuardrailsFixedSizeCollection> { - private ListGuardrailsFixedSizeCollection(List pages, int collectionSize) { + private ListGuardrailsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8495,7 +8506,7 @@ private static ListGuardrailsFixedSizeCollection createEmptyCollection() { @Override protected ListGuardrailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGuardrailsFixedSizeCollection(pages, collectionSize); } } @@ -8529,8 +8540,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -8540,14 +8551,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8562,7 +8573,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8572,7 +8583,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -8605,8 +8616,8 @@ public static class ListToolsetsPage extends AbstractPage { private ListToolsetsPage( - PageContext context, - ListToolsetsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsetsResponse response) { super(context, response); } @@ -8616,14 +8627,14 @@ private static ListToolsetsPage createEmptyPage() { @Override protected ListToolsetsPage createPage( - PageContext context, - ListToolsetsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsetsResponse response) { return new ListToolsetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8637,7 +8648,8 @@ public static class ListToolsetsFixedSizeCollection ListToolsetsPage, ListToolsetsFixedSizeCollection> { - private ListToolsetsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8647,7 +8659,7 @@ private static ListToolsetsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsetsFixedSizeCollection(pages, collectionSize); } } @@ -8681,8 +8693,8 @@ public static class ListAppVersionsPage ListAppVersionsRequest, ListAppVersionsResponse, AppVersion, ListAppVersionsPage> { private ListAppVersionsPage( - PageContext context, - ListAppVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListAppVersionsResponse response) { super(context, response); } @@ -8692,14 +8704,14 @@ private static ListAppVersionsPage createEmptyPage() { @Override protected ListAppVersionsPage createPage( - PageContext context, - ListAppVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListAppVersionsResponse response) { return new ListAppVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8714,7 +8726,7 @@ public static class ListAppVersionsFixedSizeCollection ListAppVersionsFixedSizeCollection> { private ListAppVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8724,7 +8736,7 @@ private static ListAppVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListAppVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppVersionsFixedSizeCollection(pages, collectionSize); } } @@ -8758,8 +8770,8 @@ public static class ListChangelogsPage ListChangelogsRequest, ListChangelogsResponse, Changelog, ListChangelogsPage> { private ListChangelogsPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { super(context, response); } @@ -8769,14 +8781,14 @@ private static ListChangelogsPage createEmptyPage() { @Override protected ListChangelogsPage createPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { return new ListChangelogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8790,7 +8802,8 @@ public static class ListChangelogsFixedSizeCollection ListChangelogsPage, ListChangelogsFixedSizeCollection> { - private ListChangelogsFixedSizeCollection(List pages, int collectionSize) { + private ListChangelogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8800,7 +8813,7 @@ private static ListChangelogsFixedSizeCollection createEmptyCollection() { @Override protected ListChangelogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChangelogsFixedSizeCollection(pages, collectionSize); } } @@ -8834,8 +8847,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8845,14 +8858,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8866,7 +8879,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8876,7 +8890,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java index 329c443fc5f8..5b8819338bdb 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -493,7 +494,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); } @@ -513,7 +514,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java index efd88fab1e47..8b311acb143b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java @@ -38,6 +38,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. /** @@ -206,7 +207,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; /** Constructs an instance of SessionServiceClient with default settings. */ @@ -246,7 +247,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.stub = stub; } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -673,8 +674,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -684,14 +685,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -705,7 +706,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -715,7 +717,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java index 40db52af6f20..20b84b23d517 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java index 64bec73b19b1..ae5aed84c8c4 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceClient.java @@ -36,6 +36,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. /** @@ -201,7 +202,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ToolServiceClient implements BackgroundResource { - private final ToolServiceSettings settings; + private final @Nullable ToolServiceSettings settings; private final ToolServiceStub stub; /** Constructs an instance of ToolServiceClient with default settings. */ @@ -240,7 +241,7 @@ protected ToolServiceClient(ToolServiceStub stub) { this.stub = stub; } - public final ToolServiceSettings getSettings() { + public final @Nullable ToolServiceSettings getSettings() { return settings; } @@ -679,8 +680,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -690,14 +691,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -711,7 +712,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -721,7 +723,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java index 50e3bae614e4..d657476ba2b2 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/ToolServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java index 6fae2cce19b9..7b57d73ba842 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java @@ -36,6 +36,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. /** @@ -176,7 +177,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WidgetServiceClient implements BackgroundResource { - private final WidgetServiceSettings settings; + private final @Nullable WidgetServiceSettings settings; private final WidgetServiceStub stub; /** Constructs an instance of WidgetServiceClient with default settings. */ @@ -216,7 +217,7 @@ protected WidgetServiceClient(WidgetServiceStub stub) { this.stub = stub; } - public final WidgetServiceSettings getSettings() { + public final @Nullable WidgetServiceSettings getSettings() { return settings; } @@ -539,8 +540,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -550,14 +551,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -571,7 +572,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -581,7 +583,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java index 63315922be73..2af163be912b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WidgetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java index 0ed0576d8d7c..90f2646ac1ee 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStub.java @@ -113,6 +113,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -124,11 +125,12 @@ @Generated("by gapic-generator-java") public abstract class AgentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java index 3bebfb8b1244..eab5ce54e00c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java @@ -147,6 +147,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1300,7 +1301,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); } @@ -1520,7 +1521,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAppsSettings = PagedCallSettings.newBuilder(LIST_APPS_PAGE_STR_FACT); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java index dcd5c342a3bf..2c5acc29abc9 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/SessionServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -314,7 +315,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); } @@ -418,7 +419,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java index 5b6895da051d..7af2f236b35e 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/ToolServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -391,7 +392,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executeToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java index 8e11d6de6155..0647961f3b93 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/WidgetServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,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); } @@ -354,7 +355,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateChatTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java index 48bf9c9d8d7b..800d23198481 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java @@ -43,6 +43,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. /** @@ -1157,7 +1158,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AgentServiceClient implements BackgroundResource { - private final AgentServiceSettings settings; + private final @Nullable AgentServiceSettings settings; private final AgentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1204,7 +1205,7 @@ protected AgentServiceClient(AgentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentServiceSettings getSettings() { + public final @Nullable AgentServiceSettings getSettings() { return settings; } @@ -1252,7 +1253,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The resource name of the location to list apps from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppsPagedResponse listApps(LocationName parent) { + public final ListAppsPagedResponse listApps(@Nullable LocationName parent) { ListAppsRequest request = ListAppsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listApps(request); @@ -1414,7 +1415,7 @@ public final UnaryCallable listAppsCallable() * @param name Required. The resource name of the app to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final App getApp(AppName name) { + public final App getApp(@Nullable AppName name) { GetAppRequest request = GetAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApp(request); @@ -1525,7 +1526,7 @@ public final UnaryCallable getAppCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppAsync( - LocationName parent, App app) { + @Nullable LocationName parent, App app) { CreateAppRequest request = CreateAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1590,7 +1591,7 @@ public final OperationFuture createAppAsync(String paren * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAppAsync( - LocationName parent, App app, String appId) { + @Nullable LocationName parent, App app, String appId) { CreateAppRequest request = CreateAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1832,7 +1833,7 @@ public final UnaryCallable updateAppCallable() { * @param name Required. The resource name of the app to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAppAsync(AppName name) { + public final OperationFuture deleteAppAsync(@Nullable AppName name) { DeleteAppRequest request = DeleteAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAppAsync(request); @@ -1972,7 +1973,8 @@ public final UnaryCallable deleteAppCallable() { * @param name Required. The resource name of the app to export. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAppAsync(AppName name) { + public final OperationFuture exportAppAsync( + @Nullable AppName name) { ExportAppRequest request = ExportAppRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return exportAppAsync(request); @@ -2140,7 +2142,7 @@ public final UnaryCallable exportAppCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importAppAsync( - LocationName parent, String displayName, String appId) { + @Nullable LocationName parent, String displayName, String appId) { ImportAppRequest request = ImportAppRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2321,7 +2323,7 @@ public final UnaryCallable importAppCallable() { * `projects/{project}/locations/{location}/securitySettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecuritySettings getSecuritySettings(SecuritySettingsName name) { + public final SecuritySettings getSecuritySettings(@Nullable SecuritySettingsName name) { GetSecuritySettingsRequest request = GetSecuritySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2531,7 +2533,7 @@ public final SecuritySettings updateSecuritySettings(UpdateSecuritySettingsReque * @param parent Required. The resource name of the app to list agents from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentsPagedResponse listAgents(AppName parent) { + public final ListAgentsPagedResponse listAgents(@Nullable AppName parent) { ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAgents(request); @@ -2693,7 +2695,7 @@ public final UnaryCallable listAgentsCall * @param name Required. The resource name of the agent to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(AgentName name) { + public final Agent getAgent(@Nullable AgentName name) { GetAgentRequest request = GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgent(request); @@ -2803,7 +2805,7 @@ public final UnaryCallable getAgentCallable() { * @param agent Required. The agent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(AppName parent, Agent agent) { + public final Agent createAgent(@Nullable AppName parent, Agent agent) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2868,7 +2870,7 @@ public final Agent createAgent(String parent, Agent agent) { * the agent. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(AppName parent, Agent agent, String agentId) { + public final Agent createAgent(@Nullable AppName parent, Agent agent, String agentId) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3082,7 +3084,7 @@ public final UnaryCallable updateAgentCallable() { * @param name Required. The resource name of the agent to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(AgentName name) { + public final void deleteAgent(@Nullable AgentName name) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAgent(request); @@ -3196,7 +3198,7 @@ public final UnaryCallable deleteAgentCallable() { * @param parent Required. The resource name of the app to list examples from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(AppName parent) { + public final ListExamplesPagedResponse listExamples(@Nullable AppName parent) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3362,7 +3364,7 @@ public final UnaryCallable listExampl * @param name Required. The resource name of the example to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example getExample(ExampleName name) { + public final Example getExample(@Nullable ExampleName name) { GetExampleRequest request = GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExample(request); @@ -3472,7 +3474,7 @@ public final UnaryCallable getExampleCallable() { * @param example Required. The example to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(AppName parent, Example example) { + public final Example createExample(@Nullable AppName parent, Example example) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3537,7 +3539,7 @@ public final Example createExample(String parent, Example example) { * for the example. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(AppName parent, Example example, String exampleId) { + public final Example createExample(@Nullable AppName parent, Example example, String exampleId) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3751,7 +3753,7 @@ public final UnaryCallable updateExampleCallable( * @param name Required. The resource name of the example to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExample(ExampleName name) { + public final void deleteExample(@Nullable ExampleName name) { DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExample(request); @@ -3863,7 +3865,7 @@ public final UnaryCallable deleteExampleCallable() * @param parent Required. The resource name of the app to list tools from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(AppName parent) { + public final ListToolsPagedResponse listTools(@Nullable AppName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -4025,7 +4027,7 @@ public final UnaryCallable listToolsCallabl * @param name Required. The resource name of the tool to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -4135,7 +4137,7 @@ public final UnaryCallable getToolCallable() { * @param parent Required. The resource name of the app to list conversations from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(AppName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable AppName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4305,7 +4307,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * @param name Required. The resource name of the conversation to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -4420,7 +4422,7 @@ public final UnaryCallable getConversation * @param name Required. The resource name of the conversation to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4539,7 +4541,7 @@ public final UnaryCallable deleteConversationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchDeleteConversationsAsync(AppName parent) { + batchDeleteConversationsAsync(@Nullable AppName parent) { BatchDeleteConversationsRequest request = BatchDeleteConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4692,7 +4694,7 @@ public final UnaryCallable deleteConversationC * @param tool Required. The tool to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AppName parent, Tool tool) { + public final Tool createTool(@Nullable AppName parent, Tool tool) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4757,7 +4759,7 @@ public final Tool createTool(String parent, Tool tool) { * the tool. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AppName parent, Tool tool, String toolId) { + public final Tool createTool(@Nullable AppName parent, Tool tool, String toolId) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4967,7 +4969,7 @@ public final UnaryCallable updateToolCallable() { * @param name Required. The resource name of the tool to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -5081,7 +5083,7 @@ public final UnaryCallable deleteToolCallable() { * @param parent Required. The resource name of the app to list guardrails from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGuardrailsPagedResponse listGuardrails(AppName parent) { + public final ListGuardrailsPagedResponse listGuardrails(@Nullable AppName parent) { ListGuardrailsRequest request = ListGuardrailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5248,7 +5250,7 @@ public final ListGuardrailsPagedResponse listGuardrails(ListGuardrailsRequest re * @param name Required. The resource name of the guardrail to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail getGuardrail(GuardrailName name) { + public final Guardrail getGuardrail(@Nullable GuardrailName name) { GetGuardrailRequest request = GetGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGuardrail(request); @@ -5360,7 +5362,7 @@ public final UnaryCallable getGuardrailCallable( * @param guardrail Required. The guardrail to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail createGuardrail(AppName parent, Guardrail guardrail) { + public final Guardrail createGuardrail(@Nullable AppName parent, Guardrail guardrail) { CreateGuardrailRequest request = CreateGuardrailRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5425,7 +5427,8 @@ public final Guardrail createGuardrail(String parent, Guardrail guardrail) { * automatically assigned for the guardrail. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Guardrail createGuardrail(AppName parent, Guardrail guardrail, String guardrailId) { + public final Guardrail createGuardrail( + @Nullable AppName parent, Guardrail guardrail, String guardrailId) { CreateGuardrailRequest request = CreateGuardrailRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5644,7 +5647,7 @@ public final UnaryCallable updateGuardrailCal * @param name Required. The resource name of the guardrail to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGuardrail(GuardrailName name) { + public final void deleteGuardrail(@Nullable GuardrailName name) { DeleteGuardrailRequest request = DeleteGuardrailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGuardrail(request); @@ -5761,7 +5764,7 @@ public final UnaryCallable deleteGuardrailCallabl * `projects/{project}/locations/{location}/apps/{app}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(AppName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable AppName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5928,7 +5931,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -6043,7 +6046,7 @@ public final UnaryCallable getDeploymentCallab * @param deployment Required. The deployment to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment createDeployment(AppName parent, Deployment deployment) { + public final Deployment createDeployment(@Nullable AppName parent, Deployment deployment) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6111,7 +6114,7 @@ public final Deployment createDeployment(String parent, Deployment deployment) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - AppName parent, Deployment deployment, String deploymentId) { + @Nullable AppName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6332,7 +6335,7 @@ public final UnaryCallable updateDeployment * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeployment(DeploymentName name) { + public final void deleteDeployment(@Nullable DeploymentName name) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDeployment(request); @@ -6448,7 +6451,7 @@ public final UnaryCallable deleteDeploymentCalla * @param parent Required. The resource name of the app to list toolsets from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsetsPagedResponse listToolsets(AppName parent) { + public final ListToolsetsPagedResponse listToolsets(@Nullable AppName parent) { ListToolsetsRequest request = ListToolsetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6614,7 +6617,7 @@ public final UnaryCallable listToolse * @param name Required. The resource name of the toolset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset getToolset(ToolsetName name) { + public final Toolset getToolset(@Nullable ToolsetName name) { GetToolsetRequest request = GetToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getToolset(request); @@ -6724,7 +6727,7 @@ public final UnaryCallable getToolsetCallable() { * @param toolset Required. The toolset to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset createToolset(AppName parent, Toolset toolset) { + public final Toolset createToolset(@Nullable AppName parent, Toolset toolset) { CreateToolsetRequest request = CreateToolsetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6789,7 +6792,7 @@ public final Toolset createToolset(String parent, Toolset toolset) { * for the toolset. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Toolset createToolset(AppName parent, Toolset toolset, String toolsetId) { + public final Toolset createToolset(@Nullable AppName parent, Toolset toolset, String toolsetId) { CreateToolsetRequest request = CreateToolsetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7003,7 +7006,7 @@ public final UnaryCallable updateToolsetCallable( * @param name Required. The resource name of the toolset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteToolset(ToolsetName name) { + public final void deleteToolset(@Nullable ToolsetName name) { DeleteToolsetRequest request = DeleteToolsetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteToolset(request); @@ -7117,7 +7120,7 @@ public final UnaryCallable deleteToolsetCallable() * @param parent Required. The resource name of the app to list app versions from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAppVersionsPagedResponse listAppVersions(AppName parent) { + public final ListAppVersionsPagedResponse listAppVersions(@Nullable AppName parent) { ListAppVersionsRequest request = ListAppVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7285,7 +7288,7 @@ public final ListAppVersionsPagedResponse listAppVersions(ListAppVersionsRequest * @param name Required. The resource name of the app version to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppVersion getAppVersion(AppVersionName name) { + public final AppVersion getAppVersion(@Nullable AppVersionName name) { GetAppVersionRequest request = GetAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAppVersion(request); @@ -7397,7 +7400,7 @@ public final UnaryCallable getAppVersionCallab * @param appVersion Required. The app version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AppVersion createAppVersion(AppName parent, AppVersion appVersion) { + public final AppVersion createAppVersion(@Nullable AppName parent, AppVersion appVersion) { CreateAppVersionRequest request = CreateAppVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7463,7 +7466,7 @@ public final AppVersion createAppVersion(String parent, AppVersion appVersion) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AppVersion createAppVersion( - AppName parent, AppVersion appVersion, String appVersionId) { + @Nullable AppName parent, AppVersion appVersion, String appVersionId) { CreateAppVersionRequest request = CreateAppVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7592,7 +7595,7 @@ public final UnaryCallable createAppVersion * @param name Required. The resource name of the app version to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAppVersion(AppVersionName name) { + public final void deleteAppVersion(@Nullable AppVersionName name) { DeleteAppVersionRequest request = DeleteAppVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAppVersion(request); @@ -7706,7 +7709,7 @@ public final UnaryCallable deleteAppVersionCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreAppVersionAsync( - AppVersionName name) { + @Nullable AppVersionName name) { RestoreAppVersionRequest request = RestoreAppVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7858,7 +7861,7 @@ public final UnaryCallable restoreAppVersio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - generateAppResourceAsync(AppName parent) { + generateAppResourceAsync(@Nullable AppName parent) { GenerateAppResourceRequest request = GenerateAppResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8053,7 +8056,7 @@ public final UnaryCallable generateAppRes * @param parent Required. The resource name of the app to list changelogs from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChangelogsPagedResponse listChangelogs(AppName parent) { + public final ListChangelogsPagedResponse listChangelogs(@Nullable AppName parent) { ListChangelogsRequest request = ListChangelogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8220,7 +8223,7 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re * @param name Required. The resource name of the changelog to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Changelog getChangelog(ChangelogName name) { + public final Changelog getChangelog(@Nullable ChangelogName name) { GetChangelogRequest request = GetChangelogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChangelog(request); @@ -8552,7 +8555,8 @@ public static class ListAppsPage extends AbstractPage { private ListAppsPage( - PageContext context, ListAppsResponse response) { + @Nullable PageContext context, + @Nullable ListAppsResponse response) { super(context, response); } @@ -8562,13 +8566,14 @@ private static ListAppsPage createEmptyPage() { @Override protected ListAppsPage createPage( - PageContext context, ListAppsResponse response) { + @Nullable PageContext context, + @Nullable ListAppsResponse response) { return new ListAppsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8578,7 +8583,7 @@ public static class ListAppsFixedSizeCollection extends AbstractFixedSizeCollection< ListAppsRequest, ListAppsResponse, App, ListAppsPage, ListAppsFixedSizeCollection> { - private ListAppsFixedSizeCollection(List pages, int collectionSize) { + private ListAppsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8588,7 +8593,7 @@ private static ListAppsFixedSizeCollection createEmptyCollection() { @Override protected ListAppsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppsFixedSizeCollection(pages, collectionSize); } } @@ -8619,8 +8624,8 @@ public static class ListAgentsPage extends AbstractPage { private ListAgentsPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { super(context, response); } @@ -8630,14 +8635,14 @@ private static ListAgentsPage createEmptyPage() { @Override protected ListAgentsPage createPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { return new ListAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8651,7 +8656,8 @@ public static class ListAgentsFixedSizeCollection ListAgentsPage, ListAgentsFixedSizeCollection> { - private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8661,7 +8667,7 @@ private static ListAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentsFixedSizeCollection(pages, collectionSize); } } @@ -8694,8 +8700,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -8705,14 +8711,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8726,7 +8732,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8736,7 +8743,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -8763,8 +8770,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -8774,14 +8781,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8791,7 +8798,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8801,7 +8808,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -8838,8 +8845,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -8849,14 +8857,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8871,7 +8881,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8881,7 +8891,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -8915,8 +8925,8 @@ public static class ListGuardrailsPage ListGuardrailsRequest, ListGuardrailsResponse, Guardrail, ListGuardrailsPage> { private ListGuardrailsPage( - PageContext context, - ListGuardrailsResponse response) { + @Nullable PageContext context, + @Nullable ListGuardrailsResponse response) { super(context, response); } @@ -8926,14 +8936,14 @@ private static ListGuardrailsPage createEmptyPage() { @Override protected ListGuardrailsPage createPage( - PageContext context, - ListGuardrailsResponse response) { + @Nullable PageContext context, + @Nullable ListGuardrailsResponse response) { return new ListGuardrailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8947,7 +8957,8 @@ public static class ListGuardrailsFixedSizeCollection ListGuardrailsPage, ListGuardrailsFixedSizeCollection> { - private ListGuardrailsFixedSizeCollection(List pages, int collectionSize) { + private ListGuardrailsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8957,7 +8968,7 @@ private static ListGuardrailsFixedSizeCollection createEmptyCollection() { @Override protected ListGuardrailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGuardrailsFixedSizeCollection(pages, collectionSize); } } @@ -8991,8 +9002,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -9002,14 +9013,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9024,7 +9035,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9034,7 +9045,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -9067,8 +9078,8 @@ public static class ListToolsetsPage extends AbstractPage { private ListToolsetsPage( - PageContext context, - ListToolsetsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsetsResponse response) { super(context, response); } @@ -9078,14 +9089,14 @@ private static ListToolsetsPage createEmptyPage() { @Override protected ListToolsetsPage createPage( - PageContext context, - ListToolsetsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsetsResponse response) { return new ListToolsetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9099,7 +9110,8 @@ public static class ListToolsetsFixedSizeCollection ListToolsetsPage, ListToolsetsFixedSizeCollection> { - private ListToolsetsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9109,7 +9121,7 @@ private static ListToolsetsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsetsFixedSizeCollection(pages, collectionSize); } } @@ -9143,8 +9155,8 @@ public static class ListAppVersionsPage ListAppVersionsRequest, ListAppVersionsResponse, AppVersion, ListAppVersionsPage> { private ListAppVersionsPage( - PageContext context, - ListAppVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListAppVersionsResponse response) { super(context, response); } @@ -9154,14 +9166,14 @@ private static ListAppVersionsPage createEmptyPage() { @Override protected ListAppVersionsPage createPage( - PageContext context, - ListAppVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListAppVersionsResponse response) { return new ListAppVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9176,7 +9188,7 @@ public static class ListAppVersionsFixedSizeCollection ListAppVersionsFixedSizeCollection> { private ListAppVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9186,7 +9198,7 @@ private static ListAppVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListAppVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAppVersionsFixedSizeCollection(pages, collectionSize); } } @@ -9220,8 +9232,8 @@ public static class ListChangelogsPage ListChangelogsRequest, ListChangelogsResponse, Changelog, ListChangelogsPage> { private ListChangelogsPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { super(context, response); } @@ -9231,14 +9243,14 @@ private static ListChangelogsPage createEmptyPage() { @Override protected ListChangelogsPage createPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { return new ListChangelogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9252,7 +9264,8 @@ public static class ListChangelogsFixedSizeCollection ListChangelogsPage, ListChangelogsFixedSizeCollection> { - private ListChangelogsFixedSizeCollection(List pages, int collectionSize) { + private ListChangelogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9262,7 +9275,7 @@ private static ListChangelogsFixedSizeCollection createEmptyCollection() { @Override protected ListChangelogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChangelogsFixedSizeCollection(pages, collectionSize); } } @@ -9296,8 +9309,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -9307,14 +9320,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9328,7 +9341,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9338,7 +9352,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java index 0bbe5f61785c..a7dbe6f0b0f4 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -520,7 +521,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); } @@ -540,7 +541,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java index 8264b461a9eb..b42ea51fae7e 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java @@ -44,6 +44,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. /** @@ -853,7 +854,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EvaluationServiceClient implements BackgroundResource { - private final EvaluationServiceSettings settings; + private final @Nullable EvaluationServiceSettings settings; private final EvaluationServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -901,7 +902,7 @@ protected EvaluationServiceClient(EvaluationServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EvaluationServiceSettings getSettings() { + public final @Nullable EvaluationServiceSettings getSettings() { return settings; } @@ -949,7 +950,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - runEvaluationAsync(AppName app) { + runEvaluationAsync(@Nullable AppName app) { RunEvaluationRequest request = RunEvaluationRequest.newBuilder().setApp(app == null ? null : app.toString()).build(); return runEvaluationAsync(request); @@ -1157,7 +1158,7 @@ public final UnaryCallable runEvaluationCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UploadEvaluationAudioResponse uploadEvaluationAudio( - EvaluationName name, ByteString audioContent) { + @Nullable EvaluationName name, ByteString audioContent) { UploadEvaluationAudioRequest request = UploadEvaluationAudioRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1299,7 +1300,7 @@ public final UploadEvaluationAudioResponse uploadEvaluationAudio( * @param evaluation Required. The evaluation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation createEvaluation(AppName parent, Evaluation evaluation) { + public final Evaluation createEvaluation(@Nullable AppName parent, Evaluation evaluation) { CreateEvaluationRequest request = CreateEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1368,7 +1369,7 @@ public final Evaluation createEvaluation(String parent, Evaluation evaluation) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Evaluation createEvaluation( - AppName parent, Evaluation evaluation, String evaluationId) { + @Nullable AppName parent, Evaluation evaluation, String evaluationId) { CreateEvaluationRequest request = CreateEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1502,7 +1503,7 @@ public final UnaryCallable createEvaluation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - generateEvaluationAsync(ConversationName conversation) { + generateEvaluationAsync(@Nullable ConversationName conversation) { GenerateEvaluationRequest request = GenerateEvaluationRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -1657,7 +1658,7 @@ public final UnaryCallable generateEvaluat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importEvaluationsAsync(AppName parent) { + importEvaluationsAsync(@Nullable AppName parent) { ImportEvaluationsRequest request = ImportEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1812,7 +1813,7 @@ public final UnaryCallable importEvaluation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationDataset createEvaluationDataset( - AppName parent, EvaluationDataset evaluationDataset) { + @Nullable AppName parent, EvaluationDataset evaluationDataset) { CreateEvaluationDatasetRequest request = CreateEvaluationDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1887,7 +1888,7 @@ public final EvaluationDataset createEvaluationDataset( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationDataset createEvaluationDataset( - AppName parent, EvaluationDataset evaluationDataset, String evaluationDatasetId) { + @Nullable AppName parent, EvaluationDataset evaluationDataset, String evaluationDatasetId) { CreateEvaluationDatasetRequest request = CreateEvaluationDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2205,7 +2206,7 @@ public final EvaluationDataset updateEvaluationDataset(UpdateEvaluationDatasetRe * @param name Required. The resource name of the evaluation to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvaluation(EvaluationName name) { + public final void deleteEvaluation(@Nullable EvaluationName name) { DeleteEvaluationRequest request = DeleteEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEvaluation(request); @@ -2323,7 +2324,7 @@ public final UnaryCallable deleteEvaluationCalla * @param name Required. The resource name of the evaluation result to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvaluationResult(EvaluationResultName name) { + public final void deleteEvaluationResult(@Nullable EvaluationResultName name) { DeleteEvaluationResultRequest request = DeleteEvaluationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2446,7 +2447,7 @@ public final void deleteEvaluationResult(DeleteEvaluationResultRequest request) * @param name Required. The resource name of the evaluation dataset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvaluationDataset(EvaluationDatasetName name) { + public final void deleteEvaluationDataset(@Nullable EvaluationDatasetName name) { DeleteEvaluationDatasetRequest request = DeleteEvaluationDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2571,7 +2572,7 @@ public final void deleteEvaluationDataset(DeleteEvaluationDatasetRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteEvaluationRunAsync(EvaluationRunName name) { + deleteEvaluationRunAsync(@Nullable EvaluationRunName name) { DeleteEvaluationRunRequest request = DeleteEvaluationRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2722,7 +2723,7 @@ public final UnaryCallable deleteEvaluati * @param name Required. The resource name of the evaluation to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -2836,7 +2837,7 @@ public final UnaryCallable getEvaluationCallab * @param name Required. The resource name of the evaluation result to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationResult getEvaluationResult(EvaluationResultName name) { + public final EvaluationResult getEvaluationResult(@Nullable EvaluationResultName name) { GetEvaluationResultRequest request = GetEvaluationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2959,7 +2960,7 @@ public final EvaluationResult getEvaluationResult(GetEvaluationResultRequest req * @param name Required. The resource name of the evaluation dataset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationDataset getEvaluationDataset(EvaluationDatasetName name) { + public final EvaluationDataset getEvaluationDataset(@Nullable EvaluationDatasetName name) { GetEvaluationDatasetRequest request = GetEvaluationDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3081,7 +3082,7 @@ public final EvaluationDataset getEvaluationDataset(GetEvaluationDatasetRequest * @param name Required. The resource name of the evaluation run to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationRun getEvaluationRun(EvaluationRunName name) { + public final EvaluationRun getEvaluationRun(@Nullable EvaluationRunName name) { GetEvaluationRunRequest request = GetEvaluationRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluationRun(request); @@ -3197,7 +3198,7 @@ public final UnaryCallable getEvaluation * @param parent Required. The resource name of the app to list evaluations from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(AppName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable AppName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3379,7 +3380,8 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest * the filter. For example: `projects/{project}/locations/{location}/apps/{app}/evaluations/-` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName parent) { + public final ListEvaluationResultsPagedResponse listEvaluationResults( + @Nullable EvaluationName parent) { ListEvaluationResultsRequest request = ListEvaluationResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3560,7 +3562,8 @@ public final ListEvaluationResultsPagedResponse listEvaluationResults( * @param parent Required. The resource name of the app to list evaluation datasets from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationDatasetsPagedResponse listEvaluationDatasets(AppName parent) { + public final ListEvaluationDatasetsPagedResponse listEvaluationDatasets( + @Nullable AppName parent) { ListEvaluationDatasetsRequest request = ListEvaluationDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3735,7 +3738,7 @@ public final ListEvaluationDatasetsPagedResponse listEvaluationDatasets( * @param parent Required. The resource name of the app to list evaluation runs from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationRunsPagedResponse listEvaluationRuns(AppName parent) { + public final ListEvaluationRunsPagedResponse listEvaluationRuns(@Nullable AppName parent) { ListEvaluationRunsRequest request = ListEvaluationRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3910,7 +3913,8 @@ public final ListEvaluationRunsPagedResponse listEvaluationRuns( * @param parent Required. The resource name of the app to list evaluation expectations from. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationExpectationsPagedResponse listEvaluationExpectations(AppName parent) { + public final ListEvaluationExpectationsPagedResponse listEvaluationExpectations( + @Nullable AppName parent) { ListEvaluationExpectationsRequest request = ListEvaluationExpectationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4085,7 +4089,8 @@ public final ListEvaluationExpectationsPagedResponse listEvaluationExpectations( * @param name Required. The resource name of the evaluation expectation to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationExpectation getEvaluationExpectation(EvaluationExpectationName name) { + public final EvaluationExpectation getEvaluationExpectation( + @Nullable EvaluationExpectationName name) { GetEvaluationExpectationRequest request = GetEvaluationExpectationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4213,7 +4218,7 @@ public final EvaluationExpectation getEvaluationExpectation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationExpectation createEvaluationExpectation( - AppName parent, EvaluationExpectation evaluationExpectation) { + @Nullable AppName parent, EvaluationExpectation evaluationExpectation) { CreateEvaluationExpectationRequest request = CreateEvaluationExpectationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4288,7 +4293,9 @@ public final EvaluationExpectation createEvaluationExpectation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationExpectation createEvaluationExpectation( - AppName parent, EvaluationExpectation evaluationExpectation, String evaluationExpectationId) { + @Nullable AppName parent, + EvaluationExpectation evaluationExpectation, + String evaluationExpectationId) { CreateEvaluationExpectationRequest request = CreateEvaluationExpectationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4519,7 +4526,7 @@ public final EvaluationExpectation updateEvaluationExpectation( * @param name Required. The resource name of the evaluation expectation to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvaluationExpectation(EvaluationExpectationName name) { + public final void deleteEvaluationExpectation(@Nullable EvaluationExpectationName name) { DeleteEvaluationExpectationRequest request = DeleteEvaluationExpectationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4648,7 +4655,7 @@ public final void deleteEvaluationExpectation(DeleteEvaluationExpectationRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScheduledEvaluationRun createScheduledEvaluationRun( - AppName parent, ScheduledEvaluationRun scheduledEvaluationRun) { + @Nullable AppName parent, ScheduledEvaluationRun scheduledEvaluationRun) { CreateScheduledEvaluationRunRequest request = CreateScheduledEvaluationRunRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4723,7 +4730,7 @@ public final ScheduledEvaluationRun createScheduledEvaluationRun( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ScheduledEvaluationRun createScheduledEvaluationRun( - AppName parent, + @Nullable AppName parent, ScheduledEvaluationRun scheduledEvaluationRun, String scheduledEvaluationRunId) { CreateScheduledEvaluationRunRequest request = @@ -4864,7 +4871,8 @@ public final ScheduledEvaluationRun createScheduledEvaluationRun( * @param name Required. The resource name of the scheduled evaluation run to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScheduledEvaluationRun getScheduledEvaluationRun(ScheduledEvaluationRunName name) { + public final ScheduledEvaluationRun getScheduledEvaluationRun( + @Nullable ScheduledEvaluationRunName name) { GetScheduledEvaluationRunRequest request = GetScheduledEvaluationRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4991,7 +4999,7 @@ public final ScheduledEvaluationRun getScheduledEvaluationRun( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListScheduledEvaluationRunsPagedResponse listScheduledEvaluationRuns( - AppName parent) { + @Nullable AppName parent) { ListScheduledEvaluationRunsRequest request = ListScheduledEvaluationRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5263,7 +5271,7 @@ public final ScheduledEvaluationRun updateScheduledEvaluationRun( * @param name Required. The resource name of the scheduled evaluation run to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteScheduledEvaluationRun(ScheduledEvaluationRunName name) { + public final void deleteScheduledEvaluationRun(@Nullable ScheduledEvaluationRunName name) { DeleteScheduledEvaluationRunRequest request = DeleteScheduledEvaluationRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5388,7 +5396,7 @@ public final void deleteScheduledEvaluationRun(DeleteScheduledEvaluationRunReque * `projects/{project}/locations/{location}/apps/{app}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestPersonaVoiceResponse testPersonaVoice(AppName app) { + public final TestPersonaVoiceResponse testPersonaVoice(@Nullable AppName app) { TestPersonaVoiceRequest request = TestPersonaVoiceRequest.newBuilder().setApp(app == null ? null : app.toString()).build(); return testPersonaVoice(request); @@ -5506,7 +5514,7 @@ public final TestPersonaVoiceResponse testPersonaVoice(TestPersonaVoiceRequest r * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportEvaluationsAsync( - AppName parent) { + @Nullable AppName parent) { ExportEvaluationsRequest request = ExportEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5670,7 +5678,7 @@ public final UnaryCallable exportEvaluation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportEvaluationRunsAsync(AppName parent, List names) { + exportEvaluationRunsAsync(@Nullable AppName parent, List names) { ExportEvaluationRunsRequest request = ExportEvaluationRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5835,7 +5843,7 @@ public final UnaryCallable exportEvaluation */ public final OperationFuture< ExportEvaluationResultsResponse, ExportEvaluationResultsOperationMetadata> - exportEvaluationResultsAsync(EvaluationName parent, List names) { + exportEvaluationResultsAsync(@Nullable EvaluationName parent, List names) { ExportEvaluationResultsRequest request = ExportEvaluationResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6009,7 +6017,7 @@ public final UnaryCallable exportEvaluation */ public final OperationFuture< RunEvaluationResultMetricsResponse, RunEvaluationResultMetricsOperationMetadata> - runEvaluationResultMetricsAsync(EvaluationResultName evaluationResultId) { + runEvaluationResultMetricsAsync(@Nullable EvaluationResultName evaluationResultId) { RunEvaluationResultMetricsRequest request = RunEvaluationResultMetricsRequest.newBuilder() .setEvaluationResultId( @@ -6411,8 +6419,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -6422,14 +6430,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6444,7 +6452,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6454,7 +6462,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -6492,9 +6500,11 @@ public static class ListEvaluationResultsPage ListEvaluationResultsPage> { private ListEvaluationResultsPage( - PageContext + @Nullable + PageContext< + ListEvaluationResultsRequest, ListEvaluationResultsResponse, EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { super(context, response); } @@ -6504,15 +6514,19 @@ private static ListEvaluationResultsPage createEmptyPage() { @Override protected ListEvaluationResultsPage createPage( - PageContext + @Nullable + PageContext< + ListEvaluationResultsRequest, ListEvaluationResultsResponse, EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { return new ListEvaluationResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListEvaluationResultsRequest, ListEvaluationResultsResponse, EvaluationResult> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6528,7 +6542,7 @@ public static class ListEvaluationResultsFixedSizeCollection ListEvaluationResultsFixedSizeCollection> { private ListEvaluationResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6538,7 +6552,7 @@ private static ListEvaluationResultsFixedSizeCollection createEmptyCollection() @Override protected ListEvaluationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationResultsFixedSizeCollection(pages, collectionSize); } } @@ -6577,10 +6591,11 @@ public static class ListEvaluationDatasetsPage ListEvaluationDatasetsPage> { private ListEvaluationDatasetsPage( - PageContext< + @Nullable + PageContext< ListEvaluationDatasetsRequest, ListEvaluationDatasetsResponse, EvaluationDataset> context, - ListEvaluationDatasetsResponse response) { + @Nullable ListEvaluationDatasetsResponse response) { super(context, response); } @@ -6590,16 +6605,18 @@ private static ListEvaluationDatasetsPage createEmptyPage() { @Override protected ListEvaluationDatasetsPage createPage( - PageContext< + @Nullable + PageContext< ListEvaluationDatasetsRequest, ListEvaluationDatasetsResponse, EvaluationDataset> context, - ListEvaluationDatasetsResponse response) { + @Nullable ListEvaluationDatasetsResponse response) { return new ListEvaluationDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEvaluationDatasetsRequest, ListEvaluationDatasetsResponse, EvaluationDataset> context, ApiFuture futureResponse) { @@ -6616,7 +6633,7 @@ public static class ListEvaluationDatasetsFixedSizeCollection ListEvaluationDatasetsFixedSizeCollection> { private ListEvaluationDatasetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6626,7 +6643,7 @@ private static ListEvaluationDatasetsFixedSizeCollection createEmptyCollection() @Override protected ListEvaluationDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -6663,8 +6680,9 @@ public static class ListEvaluationRunsPage ListEvaluationRunsPage> { private ListEvaluationRunsPage( - PageContext context, - ListEvaluationRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListEvaluationRunsResponse response) { super(context, response); } @@ -6674,14 +6692,16 @@ private static ListEvaluationRunsPage createEmptyPage() { @Override protected ListEvaluationRunsPage createPage( - PageContext context, - ListEvaluationRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListEvaluationRunsResponse response) { return new ListEvaluationRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6696,7 +6716,7 @@ public static class ListEvaluationRunsFixedSizeCollection ListEvaluationRunsFixedSizeCollection> { private ListEvaluationRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6706,7 +6726,7 @@ private static ListEvaluationRunsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationRunsFixedSizeCollection(pages, collectionSize); } } @@ -6747,12 +6767,13 @@ public static class ListEvaluationExpectationsPage ListEvaluationExpectationsPage> { private ListEvaluationExpectationsPage( - PageContext< + @Nullable + PageContext< ListEvaluationExpectationsRequest, ListEvaluationExpectationsResponse, EvaluationExpectation> context, - ListEvaluationExpectationsResponse response) { + @Nullable ListEvaluationExpectationsResponse response) { super(context, response); } @@ -6762,18 +6783,20 @@ private static ListEvaluationExpectationsPage createEmptyPage() { @Override protected ListEvaluationExpectationsPage createPage( - PageContext< + @Nullable + PageContext< ListEvaluationExpectationsRequest, ListEvaluationExpectationsResponse, EvaluationExpectation> context, - ListEvaluationExpectationsResponse response) { + @Nullable ListEvaluationExpectationsResponse response) { return new ListEvaluationExpectationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEvaluationExpectationsRequest, ListEvaluationExpectationsResponse, EvaluationExpectation> @@ -6792,7 +6815,7 @@ public static class ListEvaluationExpectationsFixedSizeCollection ListEvaluationExpectationsFixedSizeCollection> { private ListEvaluationExpectationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6802,7 +6825,7 @@ private static ListEvaluationExpectationsFixedSizeCollection createEmptyCollecti @Override protected ListEvaluationExpectationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationExpectationsFixedSizeCollection(pages, collectionSize); } } @@ -6844,12 +6867,13 @@ public static class ListScheduledEvaluationRunsPage ListScheduledEvaluationRunsPage> { private ListScheduledEvaluationRunsPage( - PageContext< + @Nullable + PageContext< ListScheduledEvaluationRunsRequest, ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> context, - ListScheduledEvaluationRunsResponse response) { + @Nullable ListScheduledEvaluationRunsResponse response) { super(context, response); } @@ -6859,18 +6883,20 @@ private static ListScheduledEvaluationRunsPage createEmptyPage() { @Override protected ListScheduledEvaluationRunsPage createPage( - PageContext< + @Nullable + PageContext< ListScheduledEvaluationRunsRequest, ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> context, - ListScheduledEvaluationRunsResponse response) { + @Nullable ListScheduledEvaluationRunsResponse response) { return new ListScheduledEvaluationRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListScheduledEvaluationRunsRequest, ListScheduledEvaluationRunsResponse, ScheduledEvaluationRun> @@ -6889,7 +6915,7 @@ public static class ListScheduledEvaluationRunsFixedSizeCollection ListScheduledEvaluationRunsFixedSizeCollection> { private ListScheduledEvaluationRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6899,7 +6925,7 @@ private static ListScheduledEvaluationRunsFixedSizeCollection createEmptyCollect @Override protected ListScheduledEvaluationRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScheduledEvaluationRunsFixedSizeCollection(pages, collectionSize); } } @@ -6933,8 +6959,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6944,14 +6970,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6965,7 +6991,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6975,7 +7002,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java index 07ab3d4c3400..9750dc19d06f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -483,7 +484,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); } @@ -503,7 +504,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EvaluationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java index 428d3c07b171..af277f8e7382 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java @@ -39,6 +39,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. /** @@ -208,7 +209,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; /** Constructs an instance of SessionServiceClient with default settings. */ @@ -248,7 +249,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.stub = stub; } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -677,8 +678,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -688,14 +689,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -709,7 +710,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -719,7 +721,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java index 2f064f3700f3..561e295586b5 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java index 38d5445bec24..733a4e04b21b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java @@ -37,6 +37,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. /** @@ -203,7 +204,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ToolServiceClient implements BackgroundResource { - private final ToolServiceSettings settings; + private final @Nullable ToolServiceSettings settings; private final ToolServiceStub stub; /** Constructs an instance of ToolServiceClient with default settings. */ @@ -242,7 +243,7 @@ protected ToolServiceClient(ToolServiceStub stub) { this.stub = stub; } - public final ToolServiceSettings getSettings() { + public final @Nullable ToolServiceSettings getSettings() { return settings; } @@ -681,8 +682,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -692,14 +693,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -713,7 +714,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -723,7 +725,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceSettings.java index a203fa3941b7..af1e6248b274 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -176,7 +177,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); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java index 61ed04edef3b..30ae1a60c8bf 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceClient.java @@ -37,6 +37,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. /** @@ -178,7 +179,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WidgetServiceClient implements BackgroundResource { - private final WidgetServiceSettings settings; + private final @Nullable WidgetServiceSettings settings; private final WidgetServiceStub stub; /** Constructs an instance of WidgetServiceClient with default settings. */ @@ -218,7 +219,7 @@ protected WidgetServiceClient(WidgetServiceStub stub) { this.stub = stub; } - public final WidgetServiceSettings getSettings() { + public final @Nullable WidgetServiceSettings getSettings() { return settings; } @@ -541,8 +542,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -552,14 +553,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -573,7 +574,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -583,7 +585,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceSettings.java index 6ad7af346bf5..2b4777363d83 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/WidgetServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WidgetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java index 01f6cab737fa..a3e28884d741 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java @@ -120,6 +120,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -132,11 +133,12 @@ @Generated("by gapic-generator-java") public abstract class AgentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java index fe997706480d..57a60ada8bd6 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java @@ -153,6 +153,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1344,7 +1345,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); } @@ -1580,7 +1581,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAppsSettings = PagedCallSettings.newBuilder(LIST_APPS_PAGE_STR_FACT); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java index 306e2b813cb1..e77961b3f729 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java @@ -100,6 +100,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -112,11 +113,12 @@ @Generated("by gapic-generator-java") public abstract class EvaluationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java index 3e3454c364ca..071c955a0406 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java @@ -133,6 +133,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1163,7 +1164,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); } @@ -1409,7 +1410,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java index 0c007ad4719f..379dd5d2ea1c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -315,7 +316,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); } @@ -419,7 +420,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java index a1bd8ae5f665..cf957231f0b8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/ToolServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -314,7 +315,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); } @@ -392,7 +393,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executeToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java index 9ae8bd4d7db0..e788f0cf183a 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/WidgetServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -296,7 +297,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); } @@ -355,7 +356,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateChatTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java index fd492c682e23..447e1e67f4f7 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java index c66843509a18..68684d0d120d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String app) { return newBuilder().setProject(project).setLocation(location).setApp(app).build().toString(); } - public static AppName parse(String formattedString) { + public static @Nullable AppName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppName> values) { List list = new ArrayList<>(values.size()); for (AppName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java index 52a299b1807c..34fc4df6b486 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/AppVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static AppVersionName parse(String formattedString) { + public static @Nullable AppVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppVersionName> values) { List list = new ArrayList<>(values.size()); for (AppVersionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java index c649e82b2265..472b6a53d609 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ChangelogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ChangelogName parse(String formattedString) { + public static @Nullable ChangelogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChangelogName> values) { List list = new ArrayList<>(values.size()); for (ChangelogName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java index 868334f503ae..3a8133e4742f 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ConversationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java index 1d9967f6e2d0..3c53ed71a4da 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java index 53610cced7e5..e6648d219448 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ExampleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ExampleName parse(String formattedString) { + public static @Nullable ExampleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleName> values) { List list = new ArrayList<>(values.size()); for (ExampleName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java index 337a5488f414..41d5844c618d 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/GuardrailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static GuardrailName parse(String formattedString) { + public static @Nullable GuardrailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GuardrailName> values) { List list = new ArrayList<>(values.size()); for (GuardrailName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java index ab9c98265762..e5c243d77b7a 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java index 7ebadace06bf..67e9ebf4b8be 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java index 7714043d0d77..13ec06048d29 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -93,7 +94,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java index 28e8d0cb89b9..161857f5184f 100644 --- a/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java +++ b/java-ces/proto-google-cloud-ces-v1/src/main/java/com/google/cloud/ces/v1/ToolsetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ToolsetName parse(String formattedString) { + public static @Nullable ToolsetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolsetName> values) { List list = new ArrayList<>(values.size()); for (ToolsetName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentName.java index 10633eeb88f7..1629ee5e886c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppName.java index 0c77584aa7b4..0bbf6318c35a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String app) { return newBuilder().setProject(project).setLocation(location).setApp(app).build().toString(); } - public static AppName parse(String formattedString) { + public static @Nullable AppName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppName> values) { List list = new ArrayList<>(values.size()); for (AppName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionName.java index c66eda0f4fda..b32d34684a6d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static AppVersionName parse(String formattedString) { + public static @Nullable AppVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AppVersionName> values) { List list = new ArrayList<>(values.size()); for (AppVersionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChangelogName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChangelogName.java index 2a01bdecfbe0..655ebbbfdc32 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChangelogName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChangelogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ChangelogName parse(String formattedString) { + public static @Nullable ChangelogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChangelogName> values) { List list = new ArrayList<>(values.size()); for (ChangelogName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationName.java index 89d24f3fb50c..ee8f80673cf0 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentName.java index 9577062cfe2e..de87d5285dfa 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationDatasetName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationDatasetName.java index f4a252c7fd29..d095e22ca42a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationDatasetName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationDatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EvaluationDatasetName parse(String formattedString) { + public static @Nullable EvaluationDatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationDatasetName> values) { List list = new ArrayList<>(values.size()); for (EvaluationDatasetName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationExpectationName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationExpectationName.java index ec9859c93915..041acde83f6c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationExpectationName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationExpectationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EvaluationExpectationName parse(String formattedString) { + public static @Nullable EvaluationExpectationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationExpectationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationExpectationName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationName.java index 9e6f0fd39391..c0d814d32b76 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultName.java index 053db0fc22dd..20b2d5fa6bc0 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static EvaluationResultName parse(String formattedString) { + public static @Nullable EvaluationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationResultName> values) { List list = new ArrayList<>(values.size()); for (EvaluationResultName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunName.java index 1cf857a73140..46a1dd9aac97 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static EvaluationRunName parse(String formattedString) { + public static @Nullable EvaluationRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationRunName> values) { List list = new ArrayList<>(values.size()); for (EvaluationRunName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleName.java index 69425a3916ff..1bd3e3ea70a2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ExampleName parse(String formattedString) { + public static @Nullable ExampleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleName> values) { List list = new ArrayList<>(values.size()); for (ExampleName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailName.java index 520ff14d858e..93362b00914c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static GuardrailName parse(String formattedString) { + public static @Nullable GuardrailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GuardrailName> values) { List list = new ArrayList<>(values.size()); for (GuardrailName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LocationName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LocationName.java index 6f18a880ae0e..0bc910f51d5e 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LocationName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ScheduledEvaluationRunName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ScheduledEvaluationRunName.java index 8b53841f3bc7..3b3b56d0b8da 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ScheduledEvaluationRunName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ScheduledEvaluationRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ScheduledEvaluationRunName parse(String formattedString) { + public static @Nullable ScheduledEvaluationRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScheduledEvaluationRunName> values) { List list = new ArrayList<>(values.size()); for (ScheduledEvaluationRunName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SecuritySettingsName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SecuritySettingsName.java index 5cf2811bda00..572f26c187c0 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SecuritySettingsName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SecuritySettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SecuritySettingsName parse(String formattedString) { + public static @Nullable SecuritySettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecuritySettingsName> values) { List list = new ArrayList<>(values.size()); for (SecuritySettingsName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionName.java index 3b591cce8b0b..c97dfb18b4d5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolName.java index 0e473e0b5f17..5b3ff574defa 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -93,7 +94,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetName.java index eeb367851152..911155679633 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetName.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolsetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String app, String .toString(); } - public static ToolsetName parse(String formattedString) { + public static @Nullable ToolsetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolsetName> values) { List list = new ArrayList<>(values.size()); for (ToolsetName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceClient.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceClient.java index e7d4a6fd7c47..ac676b4a89f4 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceClient.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceClient.java @@ -37,6 +37,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. /** @@ -213,7 +214,7 @@ @Deprecated @Generated("by gapic-generator-java") public class CloudChannelReportsServiceClient implements BackgroundResource { - private final CloudChannelReportsServiceSettings settings; + private final @Nullable CloudChannelReportsServiceSettings settings; private final CloudChannelReportsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -263,7 +264,7 @@ protected CloudChannelReportsServiceClient(CloudChannelReportsServiceStub stub) this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudChannelReportsServiceSettings getSettings() { + public final @Nullable CloudChannelReportsServiceSettings getSettings() { return settings; } @@ -509,7 +510,8 @@ public final UnaryCallable runReportJobCallable( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final FetchReportResultsPagedResponse fetchReportResults(ReportJobName reportJob) { + public final FetchReportResultsPagedResponse fetchReportResults( + @Nullable ReportJobName reportJob) { FetchReportResultsRequest request = FetchReportResultsRequest.newBuilder() .setReportJob(reportJob == null ? null : reportJob.toString()) @@ -914,8 +916,8 @@ public static class FetchReportResultsPage FetchReportResultsRequest, FetchReportResultsResponse, Row, FetchReportResultsPage> { private FetchReportResultsPage( - PageContext context, - FetchReportResultsResponse response) { + @Nullable PageContext context, + @Nullable FetchReportResultsResponse response) { super(context, response); } @@ -925,14 +927,14 @@ private static FetchReportResultsPage createEmptyPage() { @Override protected FetchReportResultsPage createPage( - PageContext context, - FetchReportResultsResponse response) { + @Nullable PageContext context, + @Nullable FetchReportResultsResponse response) { return new FetchReportResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -947,7 +949,7 @@ public static class FetchReportResultsFixedSizeCollection FetchReportResultsFixedSizeCollection> { private FetchReportResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -957,7 +959,7 @@ private static FetchReportResultsFixedSizeCollection createEmptyCollection() { @Override protected FetchReportResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchReportResultsFixedSizeCollection(pages, collectionSize); } } @@ -988,8 +990,8 @@ public static class ListReportsPage extends AbstractPage { private ListReportsPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { super(context, response); } @@ -999,14 +1001,14 @@ private static ListReportsPage createEmptyPage() { @Override protected ListReportsPage createPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { return new ListReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1020,7 +1022,8 @@ public static class ListReportsFixedSizeCollection ListReportsPage, ListReportsFixedSizeCollection> { - private ListReportsFixedSizeCollection(List pages, int collectionSize) { + private ListReportsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1030,7 +1033,7 @@ private static ListReportsFixedSizeCollection createEmptyCollection() { @Override protected ListReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceSettings.java index a8847a1e76ad..8fceae5fef62 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelReportsServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudChannelReportsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java index 39ac75e0bf48..a710d9e1c76b 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java @@ -38,6 +38,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. /** @@ -1376,7 +1377,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudChannelServiceClient implements BackgroundResource { - private final CloudChannelServiceSettings settings; + private final @Nullable CloudChannelServiceSettings settings; private final CloudChannelServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1424,7 +1425,7 @@ protected CloudChannelServiceClient(CloudChannelServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudChannelServiceSettings getSettings() { + public final @Nullable CloudChannelServiceSettings getSettings() { return settings; } @@ -1623,7 +1624,7 @@ public final UnaryCallable listCust * accounts/{account_id}/customers/{customer_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Customer getCustomer(CustomerName name) { + public final Customer getCustomer(@Nullable CustomerName name) { GetCustomerRequest request = GetCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomer(request); @@ -2047,7 +2048,7 @@ public final UnaryCallable updateCustomerCallab * @param name Required. The resource name of the customer to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomer(CustomerName name) { + public final void deleteCustomer(@Nullable CustomerName name) { DeleteCustomerRequest request = DeleteCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCustomer(request); @@ -5111,7 +5112,7 @@ public final ChannelPartnerLink updateChannelPartnerLink( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomerRepricingConfig getCustomerRepricingConfig( - CustomerRepricingConfigName name) { + @Nullable CustomerRepricingConfigName name) { GetCustomerRepricingConfigRequest request = GetCustomerRepricingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5310,7 +5311,7 @@ public final CustomerRepricingConfig getCustomerRepricingConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomerRepricingConfigsPagedResponse listCustomerRepricingConfigs( - CustomerName parent) { + @Nullable CustomerName parent) { ListCustomerRepricingConfigsRequest request = ListCustomerRepricingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5627,7 +5628,7 @@ public final ListCustomerRepricingConfigsPagedResponse listCustomerRepricingConf * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomerRepricingConfig createCustomerRepricingConfig( - CustomerName parent, CustomerRepricingConfig customerRepricingConfig) { + @Nullable CustomerName parent, CustomerRepricingConfig customerRepricingConfig) { CreateCustomerRepricingConfigRequest request = CreateCustomerRepricingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6078,7 +6079,7 @@ public final CustomerRepricingConfig updateCustomerRepricingConfig( * Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomerRepricingConfig(CustomerRepricingConfigName name) { + public final void deleteCustomerRepricingConfig(@Nullable CustomerRepricingConfigName name) { DeleteCustomerRepricingConfigRequest request = DeleteCustomerRepricingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6267,7 +6268,7 @@ public final void deleteCustomerRepricingConfig(DeleteCustomerRepricingConfigReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ChannelPartnerRepricingConfig getChannelPartnerRepricingConfig( - ChannelPartnerRepricingConfigName name) { + @Nullable ChannelPartnerRepricingConfigName name) { GetChannelPartnerRepricingConfigRequest request = GetChannelPartnerRepricingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6477,7 +6478,7 @@ public final ChannelPartnerRepricingConfig getChannelPartnerRepricingConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListChannelPartnerRepricingConfigsPagedResponse listChannelPartnerRepricingConfigs( - ChannelPartnerLinkName parent) { + @Nullable ChannelPartnerLinkName parent) { ListChannelPartnerRepricingConfigsRequest request = ListChannelPartnerRepricingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6810,7 +6811,8 @@ public final ListChannelPartnerRepricingConfigsPagedResponse listChannelPartnerR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ChannelPartnerRepricingConfig createChannelPartnerRepricingConfig( - ChannelPartnerLinkName parent, ChannelPartnerRepricingConfig channelPartnerRepricingConfig) { + @Nullable ChannelPartnerLinkName parent, + ChannelPartnerRepricingConfig channelPartnerRepricingConfig) { CreateChannelPartnerRepricingConfigRequest request = CreateChannelPartnerRepricingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7279,7 +7281,8 @@ public final ChannelPartnerRepricingConfig updateChannelPartnerRepricingConfig( * @param name Required. The resource name of the channel partner repricing config rule to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteChannelPartnerRepricingConfig(ChannelPartnerRepricingConfigName name) { + public final void deleteChannelPartnerRepricingConfig( + @Nullable ChannelPartnerRepricingConfigName name) { DeleteChannelPartnerRepricingConfigRequest request = DeleteChannelPartnerRepricingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7675,7 +7678,8 @@ public final UnaryCallable listSkuG * accounts/{account}/skuGroups/{sku_group}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSkuGroupBillableSkusPagedResponse listSkuGroupBillableSkus(SkuGroupName parent) { + public final ListSkuGroupBillableSkusPagedResponse listSkuGroupBillableSkus( + @Nullable SkuGroupName parent) { ListSkuGroupBillableSkusRequest request = ListSkuGroupBillableSkusRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9110,7 +9114,8 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest * accounts/{account_id}/customers/{customer_id}/entitlements/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementChangesPagedResponse listEntitlementChanges(EntitlementName parent) { + public final ListEntitlementChangesPagedResponse listEntitlementChanges( + @Nullable EntitlementName parent) { ListEntitlementChangesRequest request = ListEntitlementChangesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9384,8 +9389,8 @@ public static class ListCustomersPage ListCustomersRequest, ListCustomersResponse, Customer, ListCustomersPage> { private ListCustomersPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { super(context, response); } @@ -9395,14 +9400,14 @@ private static ListCustomersPage createEmptyPage() { @Override protected ListCustomersPage createPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { return new ListCustomersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9416,7 +9421,8 @@ public static class ListCustomersFixedSizeCollection ListCustomersPage, ListCustomersFixedSizeCollection> { - private ListCustomersFixedSizeCollection(List pages, int collectionSize) { + private ListCustomersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9426,7 +9432,7 @@ private static ListCustomersFixedSizeCollection createEmptyCollection() { @Override protected ListCustomersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomersFixedSizeCollection(pages, collectionSize); } } @@ -9460,8 +9466,9 @@ public static class ListEntitlementsPage ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { private ListEntitlementsPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { super(context, response); } @@ -9471,14 +9478,16 @@ private static ListEntitlementsPage createEmptyPage() { @Override protected ListEntitlementsPage createPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { return new ListEntitlementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9493,7 +9502,7 @@ public static class ListEntitlementsFixedSizeCollection ListEntitlementsFixedSizeCollection> { private ListEntitlementsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9503,7 +9512,7 @@ private static ListEntitlementsFixedSizeCollection createEmptyCollection() { @Override protected ListEntitlementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitlementsFixedSizeCollection(pages, collectionSize); } } @@ -9541,9 +9550,10 @@ public static class ListTransferableSkusPage ListTransferableSkusPage> { private ListTransferableSkusPage( - PageContext + @Nullable + PageContext context, - ListTransferableSkusResponse response) { + @Nullable ListTransferableSkusResponse response) { super(context, response); } @@ -9553,15 +9563,17 @@ private static ListTransferableSkusPage createEmptyPage() { @Override protected ListTransferableSkusPage createPage( - PageContext + @Nullable + PageContext context, - ListTransferableSkusResponse response) { + @Nullable ListTransferableSkusResponse response) { return new ListTransferableSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -9577,7 +9589,7 @@ public static class ListTransferableSkusFixedSizeCollection ListTransferableSkusFixedSizeCollection> { private ListTransferableSkusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9587,7 +9599,7 @@ private static ListTransferableSkusFixedSizeCollection createEmptyCollection() { @Override protected ListTransferableSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferableSkusFixedSizeCollection(pages, collectionSize); } } @@ -9626,10 +9638,11 @@ public static class ListTransferableOffersPage ListTransferableOffersPage> { private ListTransferableOffersPage( - PageContext< + @Nullable + PageContext< ListTransferableOffersRequest, ListTransferableOffersResponse, TransferableOffer> context, - ListTransferableOffersResponse response) { + @Nullable ListTransferableOffersResponse response) { super(context, response); } @@ -9639,16 +9652,18 @@ private static ListTransferableOffersPage createEmptyPage() { @Override protected ListTransferableOffersPage createPage( - PageContext< + @Nullable + PageContext< ListTransferableOffersRequest, ListTransferableOffersResponse, TransferableOffer> context, - ListTransferableOffersResponse response) { + @Nullable ListTransferableOffersResponse response) { return new ListTransferableOffersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTransferableOffersRequest, ListTransferableOffersResponse, TransferableOffer> context, ApiFuture futureResponse) { @@ -9665,7 +9680,7 @@ public static class ListTransferableOffersFixedSizeCollection ListTransferableOffersFixedSizeCollection> { private ListTransferableOffersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9675,7 +9690,7 @@ private static ListTransferableOffersFixedSizeCollection createEmptyCollection() @Override protected ListTransferableOffersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferableOffersFixedSizeCollection(pages, collectionSize); } } @@ -9714,10 +9729,11 @@ public static class ListChannelPartnerLinksPage ListChannelPartnerLinksPage> { private ListChannelPartnerLinksPage( - PageContext< + @Nullable + PageContext< ListChannelPartnerLinksRequest, ListChannelPartnerLinksResponse, ChannelPartnerLink> context, - ListChannelPartnerLinksResponse response) { + @Nullable ListChannelPartnerLinksResponse response) { super(context, response); } @@ -9727,16 +9743,18 @@ private static ListChannelPartnerLinksPage createEmptyPage() { @Override protected ListChannelPartnerLinksPage createPage( - PageContext< + @Nullable + PageContext< ListChannelPartnerLinksRequest, ListChannelPartnerLinksResponse, ChannelPartnerLink> context, - ListChannelPartnerLinksResponse response) { + @Nullable ListChannelPartnerLinksResponse response) { return new ListChannelPartnerLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListChannelPartnerLinksRequest, ListChannelPartnerLinksResponse, ChannelPartnerLink> context, ApiFuture futureResponse) { @@ -9753,7 +9771,7 @@ public static class ListChannelPartnerLinksFixedSizeCollection ListChannelPartnerLinksFixedSizeCollection> { private ListChannelPartnerLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9763,7 +9781,7 @@ private static ListChannelPartnerLinksFixedSizeCollection createEmptyCollection( @Override protected ListChannelPartnerLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelPartnerLinksFixedSizeCollection(pages, collectionSize); } } @@ -9805,12 +9823,13 @@ public static class ListCustomerRepricingConfigsPage ListCustomerRepricingConfigsPage> { private ListCustomerRepricingConfigsPage( - PageContext< + @Nullable + PageContext< ListCustomerRepricingConfigsRequest, ListCustomerRepricingConfigsResponse, CustomerRepricingConfig> context, - ListCustomerRepricingConfigsResponse response) { + @Nullable ListCustomerRepricingConfigsResponse response) { super(context, response); } @@ -9820,18 +9839,20 @@ private static ListCustomerRepricingConfigsPage createEmptyPage() { @Override protected ListCustomerRepricingConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListCustomerRepricingConfigsRequest, ListCustomerRepricingConfigsResponse, CustomerRepricingConfig> context, - ListCustomerRepricingConfigsResponse response) { + @Nullable ListCustomerRepricingConfigsResponse response) { return new ListCustomerRepricingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCustomerRepricingConfigsRequest, ListCustomerRepricingConfigsResponse, CustomerRepricingConfig> @@ -9850,7 +9871,7 @@ public static class ListCustomerRepricingConfigsFixedSizeCollection ListCustomerRepricingConfigsFixedSizeCollection> { private ListCustomerRepricingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9860,7 +9881,7 @@ private static ListCustomerRepricingConfigsFixedSizeCollection createEmptyCollec @Override protected ListCustomerRepricingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomerRepricingConfigsFixedSizeCollection(pages, collectionSize); } } @@ -9903,12 +9924,13 @@ public static class ListChannelPartnerRepricingConfigsPage ListChannelPartnerRepricingConfigsPage> { private ListChannelPartnerRepricingConfigsPage( - PageContext< + @Nullable + PageContext< ListChannelPartnerRepricingConfigsRequest, ListChannelPartnerRepricingConfigsResponse, ChannelPartnerRepricingConfig> context, - ListChannelPartnerRepricingConfigsResponse response) { + @Nullable ListChannelPartnerRepricingConfigsResponse response) { super(context, response); } @@ -9918,18 +9940,20 @@ private static ListChannelPartnerRepricingConfigsPage createEmptyPage() { @Override protected ListChannelPartnerRepricingConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListChannelPartnerRepricingConfigsRequest, ListChannelPartnerRepricingConfigsResponse, ChannelPartnerRepricingConfig> context, - ListChannelPartnerRepricingConfigsResponse response) { + @Nullable ListChannelPartnerRepricingConfigsResponse response) { return new ListChannelPartnerRepricingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListChannelPartnerRepricingConfigsRequest, ListChannelPartnerRepricingConfigsResponse, ChannelPartnerRepricingConfig> @@ -9948,7 +9972,7 @@ public static class ListChannelPartnerRepricingConfigsFixedSizeCollection ListChannelPartnerRepricingConfigsFixedSizeCollection> { private ListChannelPartnerRepricingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9958,7 +9982,7 @@ private static ListChannelPartnerRepricingConfigsFixedSizeCollection createEmpty @Override protected ListChannelPartnerRepricingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelPartnerRepricingConfigsFixedSizeCollection(pages, collectionSize); } } @@ -9992,8 +10016,8 @@ public static class ListSkuGroupsPage ListSkuGroupsRequest, ListSkuGroupsResponse, SkuGroup, ListSkuGroupsPage> { private ListSkuGroupsPage( - PageContext context, - ListSkuGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListSkuGroupsResponse response) { super(context, response); } @@ -10003,14 +10027,14 @@ private static ListSkuGroupsPage createEmptyPage() { @Override protected ListSkuGroupsPage createPage( - PageContext context, - ListSkuGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListSkuGroupsResponse response) { return new ListSkuGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10024,7 +10048,8 @@ public static class ListSkuGroupsFixedSizeCollection ListSkuGroupsPage, ListSkuGroupsFixedSizeCollection> { - private ListSkuGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListSkuGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10034,7 +10059,7 @@ private static ListSkuGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListSkuGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSkuGroupsFixedSizeCollection(pages, collectionSize); } } @@ -10072,9 +10097,11 @@ public static class ListSkuGroupBillableSkusPage ListSkuGroupBillableSkusPage> { private ListSkuGroupBillableSkusPage( - PageContext + @Nullable + PageContext< + ListSkuGroupBillableSkusRequest, ListSkuGroupBillableSkusResponse, BillableSku> context, - ListSkuGroupBillableSkusResponse response) { + @Nullable ListSkuGroupBillableSkusResponse response) { super(context, response); } @@ -10084,15 +10111,19 @@ private static ListSkuGroupBillableSkusPage createEmptyPage() { @Override protected ListSkuGroupBillableSkusPage createPage( - PageContext + @Nullable + PageContext< + ListSkuGroupBillableSkusRequest, ListSkuGroupBillableSkusResponse, BillableSku> context, - ListSkuGroupBillableSkusResponse response) { + @Nullable ListSkuGroupBillableSkusResponse response) { return new ListSkuGroupBillableSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListSkuGroupBillableSkusRequest, ListSkuGroupBillableSkusResponse, BillableSku> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10108,7 +10139,7 @@ public static class ListSkuGroupBillableSkusFixedSizeCollection ListSkuGroupBillableSkusFixedSizeCollection> { private ListSkuGroupBillableSkusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10118,7 +10149,7 @@ private static ListSkuGroupBillableSkusFixedSizeCollection createEmptyCollection @Override protected ListSkuGroupBillableSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSkuGroupBillableSkusFixedSizeCollection(pages, collectionSize); } } @@ -10151,8 +10182,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -10162,14 +10193,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10183,7 +10214,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10193,7 +10225,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } @@ -10220,7 +10252,8 @@ public static class ListSkusPage extends AbstractPage { private ListSkusPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { super(context, response); } @@ -10230,13 +10263,14 @@ private static ListSkusPage createEmptyPage() { @Override protected ListSkusPage createPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { return new ListSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10246,7 +10280,7 @@ public static class ListSkusFixedSizeCollection extends AbstractFixedSizeCollection< ListSkusRequest, ListSkusResponse, Sku, ListSkusPage, ListSkusFixedSizeCollection> { - private ListSkusFixedSizeCollection(List pages, int collectionSize) { + private ListSkusFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10256,7 +10290,7 @@ private static ListSkusFixedSizeCollection createEmptyCollection() { @Override protected ListSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSkusFixedSizeCollection(pages, collectionSize); } } @@ -10287,8 +10321,8 @@ public static class ListOffersPage extends AbstractPage { private ListOffersPage( - PageContext context, - ListOffersResponse response) { + @Nullable PageContext context, + @Nullable ListOffersResponse response) { super(context, response); } @@ -10298,14 +10332,14 @@ private static ListOffersPage createEmptyPage() { @Override protected ListOffersPage createPage( - PageContext context, - ListOffersResponse response) { + @Nullable PageContext context, + @Nullable ListOffersResponse response) { return new ListOffersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10319,7 +10353,8 @@ public static class ListOffersFixedSizeCollection ListOffersPage, ListOffersFixedSizeCollection> { - private ListOffersFixedSizeCollection(List pages, int collectionSize) { + private ListOffersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10329,7 +10364,7 @@ private static ListOffersFixedSizeCollection createEmptyCollection() { @Override protected ListOffersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOffersFixedSizeCollection(pages, collectionSize); } } @@ -10367,9 +10402,10 @@ public static class ListPurchasableSkusPage ListPurchasableSkusPage> { private ListPurchasableSkusPage( - PageContext + @Nullable + PageContext context, - ListPurchasableSkusResponse response) { + @Nullable ListPurchasableSkusResponse response) { super(context, response); } @@ -10379,15 +10415,17 @@ private static ListPurchasableSkusPage createEmptyPage() { @Override protected ListPurchasableSkusPage createPage( - PageContext + @Nullable + PageContext context, - ListPurchasableSkusResponse response) { + @Nullable ListPurchasableSkusResponse response) { return new ListPurchasableSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10403,7 +10441,7 @@ public static class ListPurchasableSkusFixedSizeCollection ListPurchasableSkusFixedSizeCollection> { private ListPurchasableSkusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10413,7 +10451,7 @@ private static ListPurchasableSkusFixedSizeCollection createEmptyCollection() { @Override protected ListPurchasableSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPurchasableSkusFixedSizeCollection(pages, collectionSize); } } @@ -10451,9 +10489,11 @@ public static class ListPurchasableOffersPage ListPurchasableOffersPage> { private ListPurchasableOffersPage( - PageContext + @Nullable + PageContext< + ListPurchasableOffersRequest, ListPurchasableOffersResponse, PurchasableOffer> context, - ListPurchasableOffersResponse response) { + @Nullable ListPurchasableOffersResponse response) { super(context, response); } @@ -10463,15 +10503,19 @@ private static ListPurchasableOffersPage createEmptyPage() { @Override protected ListPurchasableOffersPage createPage( - PageContext + @Nullable + PageContext< + ListPurchasableOffersRequest, ListPurchasableOffersResponse, PurchasableOffer> context, - ListPurchasableOffersResponse response) { + @Nullable ListPurchasableOffersResponse response) { return new ListPurchasableOffersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListPurchasableOffersRequest, ListPurchasableOffersResponse, PurchasableOffer> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10487,7 +10531,7 @@ public static class ListPurchasableOffersFixedSizeCollection ListPurchasableOffersFixedSizeCollection> { private ListPurchasableOffersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10497,7 +10541,7 @@ private static ListPurchasableOffersFixedSizeCollection createEmptyCollection() @Override protected ListPurchasableOffersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPurchasableOffersFixedSizeCollection(pages, collectionSize); } } @@ -10531,8 +10575,8 @@ public static class ListSubscribersPage ListSubscribersRequest, ListSubscribersResponse, String, ListSubscribersPage> { private ListSubscribersPage( - PageContext context, - ListSubscribersResponse response) { + @Nullable PageContext context, + @Nullable ListSubscribersResponse response) { super(context, response); } @@ -10542,14 +10586,14 @@ private static ListSubscribersPage createEmptyPage() { @Override protected ListSubscribersPage createPage( - PageContext context, - ListSubscribersResponse response) { + @Nullable PageContext context, + @Nullable ListSubscribersResponse response) { return new ListSubscribersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10564,7 +10608,7 @@ public static class ListSubscribersFixedSizeCollection ListSubscribersFixedSizeCollection> { private ListSubscribersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10574,7 +10618,7 @@ private static ListSubscribersFixedSizeCollection createEmptyCollection() { @Override protected ListSubscribersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscribersFixedSizeCollection(pages, collectionSize); } } @@ -10613,10 +10657,11 @@ public static class ListEntitlementChangesPage ListEntitlementChangesPage> { private ListEntitlementChangesPage( - PageContext< + @Nullable + PageContext< ListEntitlementChangesRequest, ListEntitlementChangesResponse, EntitlementChange> context, - ListEntitlementChangesResponse response) { + @Nullable ListEntitlementChangesResponse response) { super(context, response); } @@ -10626,16 +10671,18 @@ private static ListEntitlementChangesPage createEmptyPage() { @Override protected ListEntitlementChangesPage createPage( - PageContext< + @Nullable + PageContext< ListEntitlementChangesRequest, ListEntitlementChangesResponse, EntitlementChange> context, - ListEntitlementChangesResponse response) { + @Nullable ListEntitlementChangesResponse response) { return new ListEntitlementChangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEntitlementChangesRequest, ListEntitlementChangesResponse, EntitlementChange> context, ApiFuture futureResponse) { @@ -10652,7 +10699,7 @@ public static class ListEntitlementChangesFixedSizeCollection ListEntitlementChangesFixedSizeCollection> { private ListEntitlementChangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10662,7 +10709,7 @@ private static ListEntitlementChangesFixedSizeCollection createEmptyCollection() @Override protected ListEntitlementChangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitlementChangesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java index c3ca822b5f31..d2fc329677f6 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -591,7 +592,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); } @@ -611,7 +612,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudChannelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStub.java index f31ff880a16c..7a32eac925fd 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStub.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class CloudChannelReportsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java index 3155638b1e4f..086f5696e8e9 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelReportsServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -416,7 +417,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); } @@ -481,7 +482,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runReportJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java index a978c7fec09a..84b4fa0efc6f 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStub.java @@ -118,6 +118,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -129,11 +130,12 @@ @Generated("by gapic-generator-java") public abstract class CloudChannelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java index 33c9551c153b..6f94e1d7c6b0 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/CloudChannelServiceStubSettings.java @@ -161,6 +161,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1852,7 +1853,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); } @@ -2170,7 +2171,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCustomersSettings = PagedCallSettings.newBuilder(LIST_CUSTOMERS_PAGE_STR_FACT); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java index 047ee1fe851f..11d9e950b46e 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerLinkName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerLinkName.java index 05813b026fce..3c227df37d1d 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerLinkName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String channelPartnerLink) { .toString(); } - public static ChannelPartnerLinkName parse(String formattedString) { + public static @Nullable ChannelPartnerLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChannelPartnerLinkName> values) { List list = new ArrayList<>(values.size()); for (ChannelPartnerLinkName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerRepricingConfigName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerRepricingConfigName.java index dc67056068e6..6637aa830332 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerRepricingConfigName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerRepricingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static ChannelPartnerRepricingConfigName parse(String formattedString) { + public static @Nullable ChannelPartnerRepricingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable ChannelPartnerRepricingConfigName> values) { List list = new ArrayList<>(values.size()); for (ChannelPartnerRepricingConfigName value : values) { if (value == null) { @@ -168,7 +170,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerName.java index c2e049035854..0c584ace0b10 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String customer) { return newBuilder().setAccount(account).setCustomer(customer).build().toString(); } - public static CustomerName parse(String formattedString) { + public static @Nullable CustomerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomerName> values) { List list = new ArrayList<>(values.size()); for (CustomerName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerRepricingConfigName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerRepricingConfigName.java index fd64247ebf6d..ebe693641cf7 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerRepricingConfigName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerRepricingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String account, String customer, String customerRepr .toString(); } - public static CustomerRepricingConfigName parse(String formattedString) { + public static @Nullable CustomerRepricingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomerRepricingConfigName> values) { List list = new ArrayList<>(values.size()); for (CustomerRepricingConfigName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementName.java index abf426746088..9e073e3f5056 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String customer, String entitlement) .toString(); } - public static EntitlementName parse(String formattedString) { + public static @Nullable EntitlementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntitlementName> values) { List list = new ArrayList<>(values.size()); for (EntitlementName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OfferName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OfferName.java index f5b88b0ecb58..67ee5797442a 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OfferName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OfferName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String offer) { return newBuilder().setAccount(account).setOffer(offer).build().toString(); } - public static OfferName parse(String formattedString) { + public static @Nullable OfferName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OfferName> values) { List list = new ArrayList<>(values.size()); for (OfferName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProductName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProductName.java index 9e609c540ec8..c4b11c119652 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProductName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String product) { return newBuilder().setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportJobName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportJobName.java index a8440c952ca9..afd67105ee94 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportJobName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String reportJob) { return newBuilder().setAccount(account).setReportJob(reportJob).build().toString(); } - public static ReportJobName parse(String formattedString) { + public static @Nullable ReportJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportJobName> values) { List list = new ArrayList<>(values.size()); for (ReportJobName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportName.java index 51b193f41feb..1b82c083fb3c 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String report) { return newBuilder().setAccount(account).setReport(report).build().toString(); } - public static ReportName parse(String formattedString) { + public static @Nullable ReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportName> values) { List list = new ArrayList<>(values.size()); for (ReportName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuGroupName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuGroupName.java index e37894c7bfea..dbb989d87079 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuGroupName.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/SkuGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String skuGroup) { return newBuilder().setAccount(account).setSkuGroup(skuGroup).build().toString(); } - public static SkuGroupName parse(String formattedString) { + public static @Nullable SkuGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SkuGroupName> values) { List list = new ArrayList<>(values.size()); for (SkuGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index 8998dda34f72..9e27038ec72d 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -34,6 +34,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. /** @@ -1168,7 +1169,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ChatServiceClient implements BackgroundResource { - private final ChatServiceSettings settings; + private final @Nullable ChatServiceSettings settings; private final ChatServiceStub stub; /** Constructs an instance of ChatServiceClient with default settings. */ @@ -1207,7 +1208,7 @@ protected ChatServiceClient(ChatServiceStub stub) { this.stub = stub; } - public final ChatServiceSettings getSettings() { + public final @Nullable ChatServiceSettings getSettings() { return settings; } @@ -1289,7 +1290,8 @@ public ChatServiceStub getStub() { * message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Message createMessage(SpaceName parent, Message message, String messageId) { + public final Message createMessage( + @Nullable SpaceName parent, Message message, String messageId) { CreateMessageRequest request = CreateMessageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1567,7 +1569,7 @@ public final UnaryCallable createMessageCallable( *

Format: `spaces/{space}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessagesPagedResponse listMessages(SpaceName parent) { + public final ListMessagesPagedResponse listMessages(@Nullable SpaceName parent) { ListMessagesRequest request = ListMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1850,7 +1852,7 @@ public final UnaryCallable listMessag *

Format: spaces/{space} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMembershipsPagedResponse listMemberships(SpaceName parent) { + public final ListMembershipsPagedResponse listMemberships(@Nullable SpaceName parent) { ListMembershipsRequest request = ListMembershipsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2160,7 +2162,7 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * is the email of the Google Chat user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(MembershipName name) { + public final Membership getMembership(@Nullable MembershipName name) { GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMembership(request); @@ -2363,7 +2365,7 @@ public final UnaryCallable getMembershipCallab * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Message getMessage(MessageName name) { + public final Message getMessage(@Nullable MessageName name) { GetMessageRequest request = GetMessageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMessage(request); @@ -2716,7 +2718,7 @@ public final UnaryCallable updateMessageCallable( * (https://developers.google.com/workspace/chat/create-messages#name_a_created_message). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMessage(MessageName name) { + public final void deleteMessage(@Nullable MessageName name) { DeleteMessageRequest request = DeleteMessageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteMessage(request); @@ -2892,7 +2894,7 @@ public final UnaryCallable deleteMessageCallable() * `spaces/{space}/messages/{message}/attachments/{attachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attachment getAttachment(AttachmentName name) { + public final Attachment getAttachment(@Nullable AttachmentName name) { GetAttachmentRequest request = GetAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttachment(request); @@ -3524,7 +3526,7 @@ public final UnaryCallable searchSpac *

Format: `spaces/{space}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Space getSpace(SpaceName name) { + public final Space getSpace(@Nullable SpaceName name) { GetSpaceRequest request = GetSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpace(request); @@ -4312,7 +4314,7 @@ public final UnaryCallable updateSpaceCallable() { *

Format: `spaces/{space}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSpace(SpaceName name) { + public final void deleteSpace(@Nullable SpaceName name) { DeleteSpaceRequest request = DeleteSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSpace(request); @@ -4879,7 +4881,7 @@ public final FindGroupChatsPagedResponse findGroupChats(FindGroupChatsRequest re * `users/app`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership createMembership(SpaceName parent, Membership membership) { + public final Membership createMembership(@Nullable SpaceName parent, Membership membership) { CreateMembershipRequest request = CreateMembershipRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5323,7 +5325,7 @@ public final UnaryCallable updateMembership *

Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership deleteMembership(MembershipName name) { + public final Membership deleteMembership(@Nullable MembershipName name) { DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteMembership(request); @@ -5543,7 +5545,7 @@ public final UnaryCallable deleteMembership * @param reaction Required. The reaction to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Reaction createReaction(MessageName parent, Reaction reaction) { + public final Reaction createReaction(@Nullable MessageName parent, Reaction reaction) { CreateReactionRequest request = CreateReactionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5707,7 +5709,7 @@ public final UnaryCallable createReactionCallab *

Format: `spaces/{space}/messages/{message}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReactionsPagedResponse listReactions(MessageName parent) { + public final ListReactionsPagedResponse listReactions(@Nullable MessageName parent) { ListReactionsRequest request = ListReactionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5926,7 +5928,7 @@ public final UnaryCallable listReac *

Format: `spaces/{space}/messages/{message}/reactions/{reaction}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReaction(ReactionName name) { + public final void deleteReaction(@Nullable ReactionName name) { DeleteReactionRequest request = DeleteReactionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteReaction(request); @@ -6201,7 +6203,7 @@ public final UnaryCallable createCustomEm * emoji. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomEmoji getCustomEmoji(CustomEmojiName name) { + public final CustomEmoji getCustomEmoji(@Nullable CustomEmojiName name) { GetCustomEmojiRequest request = GetCustomEmojiRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomEmoji(request); @@ -6556,7 +6558,7 @@ public final ListCustomEmojisPagedResponse listCustomEmojis(ListCustomEmojisRequ * emoji. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomEmoji(CustomEmojiName name) { + public final void deleteCustomEmoji(@Nullable CustomEmojiName name) { DeleteCustomEmojiRequest request = DeleteCustomEmojiRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6732,7 +6734,7 @@ public final UnaryCallable deleteCustomEmojiCal *

Format: users/{user}/spaces/{space}/spaceReadState * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SpaceReadState getSpaceReadState(SpaceReadStateName name) { + public final SpaceReadState getSpaceReadState(@Nullable SpaceReadStateName name) { GetSpaceReadStateRequest request = GetSpaceReadStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7033,7 +7035,7 @@ public final SpaceReadState updateSpaceReadState(UpdateSpaceReadStateRequest req *

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ThreadReadState getThreadReadState(ThreadReadStateName name) { + public final ThreadReadState getThreadReadState(@Nullable ThreadReadStateName name) { GetThreadReadStateRequest request = GetThreadReadStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7201,7 +7203,7 @@ public final ThreadReadState getThreadReadState(GetThreadReadStateRequest reques * For example, `users/user{@literal @}example.com` or `users/me`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Availability getAvailability(AvailabilityName name) { + public final Availability getAvailability(@Nullable AvailabilityName name) { GetAvailabilityRequest request = GetAvailabilityRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAvailability(request); @@ -7743,7 +7745,7 @@ public final UnaryCallable updateAvaila *

Format: `spaces/{space}/spaceEvents/{spaceEvent}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SpaceEvent getSpaceEvent(SpaceEventName name) { + public final SpaceEvent getSpaceEvent(@Nullable SpaceEventName name) { GetSpaceEventRequest request = GetSpaceEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpaceEvent(request); @@ -8041,7 +8043,8 @@ public final UnaryCallable getSpaceEventCallab *

Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpaceEventsPagedResponse listSpaceEvents(SpaceName parent, String filter) { + public final ListSpaceEventsPagedResponse listSpaceEvents( + @Nullable SpaceName parent, String filter) { ListSpaceEventsRequest request = ListSpaceEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8402,7 +8405,7 @@ public final ListSpaceEventsPagedResponse listSpaceEvents(ListSpaceEventsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SpaceNotificationSetting getSpaceNotificationSetting( - SpaceNotificationSettingName name) { + @Nullable SpaceNotificationSettingName name) { GetSpaceNotificationSettingRequest request = GetSpaceNotificationSettingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8683,7 +8686,7 @@ public final SpaceNotificationSetting updateSpaceNotificationSetting( * @param section Required. The section to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Section createSection(UserName parent, Section section) { + public final Section createSection(@Nullable UserName parent, Section section) { CreateSectionRequest request = CreateSectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8844,7 +8847,7 @@ public final UnaryCallable createSectionCallable( *

Format: `users/{user}/sections/{section}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSection(SectionName name) { + public final void deleteSection(@Nullable SectionName name) { DeleteSectionRequest request = DeleteSectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSection(request); @@ -9122,7 +9125,7 @@ public final UnaryCallable updateSectionCallable( *

Format: `users/{user}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSectionsPagedResponse listSections(UserName parent) { + public final ListSectionsPagedResponse listSections(@Nullable UserName parent) { ListSectionsRequest request = ListSectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9417,7 +9420,7 @@ public final PositionSectionResponse positionSection(PositionSectionRequest requ *

Format: `users/{user}/sections/{section}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSectionItemsPagedResponse listSectionItems(SectionName parent) { + public final ListSectionItemsPagedResponse listSectionItems(@Nullable SectionName parent) { ListSectionItemsRequest request = ListSectionItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9645,7 +9648,7 @@ public final ListSectionItemsPagedResponse listSectionItems(ListSectionItemsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MoveSectionItemResponse moveSectionItem( - SectionItemName name, SectionName targetSection) { + @Nullable SectionItemName name, @Nullable SectionName targetSection) { MoveSectionItemRequest request = MoveSectionItemRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9688,7 +9691,8 @@ public final MoveSectionItemResponse moveSectionItem( *

Format: `users/{user}/sections/{section}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveSectionItemResponse moveSectionItem(SectionItemName name, String targetSection) { + public final MoveSectionItemResponse moveSectionItem( + @Nullable SectionItemName name, String targetSection) { MoveSectionItemRequest request = MoveSectionItemRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9731,7 +9735,8 @@ public final MoveSectionItemResponse moveSectionItem(SectionItemName name, Strin *

Format: `users/{user}/sections/{section}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MoveSectionItemResponse moveSectionItem(String name, SectionName targetSection) { + public final MoveSectionItemResponse moveSectionItem( + String name, @Nullable SectionName targetSection) { MoveSectionItemRequest request = MoveSectionItemRequest.newBuilder() .setName(name) @@ -9915,8 +9920,8 @@ public static class ListMessagesPage extends AbstractPage { private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { super(context, response); } @@ -9926,14 +9931,14 @@ private static ListMessagesPage createEmptyPage() { @Override protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { return new ListMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9947,7 +9952,8 @@ public static class ListMessagesFixedSizeCollection ListMessagesPage, ListMessagesFixedSizeCollection> { - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { + private ListMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9957,7 +9963,7 @@ private static ListMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessagesFixedSizeCollection(pages, collectionSize); } } @@ -9991,8 +9997,8 @@ public static class ListMembershipsPage ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { private ListMembershipsPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { super(context, response); } @@ -10002,14 +10008,14 @@ private static ListMembershipsPage createEmptyPage() { @Override protected ListMembershipsPage createPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { return new ListMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10024,7 +10030,7 @@ public static class ListMembershipsFixedSizeCollection ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10034,7 +10040,7 @@ private static ListMembershipsFixedSizeCollection createEmptyCollection() { @Override protected ListMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembershipsFixedSizeCollection(pages, collectionSize); } } @@ -10065,8 +10071,8 @@ public static class ListSpacesPage extends AbstractPage { private ListSpacesPage( - PageContext context, - ListSpacesResponse response) { + @Nullable PageContext context, + @Nullable ListSpacesResponse response) { super(context, response); } @@ -10076,14 +10082,14 @@ private static ListSpacesPage createEmptyPage() { @Override protected ListSpacesPage createPage( - PageContext context, - ListSpacesResponse response) { + @Nullable PageContext context, + @Nullable ListSpacesResponse response) { return new ListSpacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10097,7 +10103,8 @@ public static class ListSpacesFixedSizeCollection ListSpacesPage, ListSpacesFixedSizeCollection> { - private ListSpacesFixedSizeCollection(List pages, int collectionSize) { + private ListSpacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10107,7 +10114,7 @@ private static ListSpacesFixedSizeCollection createEmptyCollection() { @Override protected ListSpacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpacesFixedSizeCollection(pages, collectionSize); } } @@ -10140,8 +10147,8 @@ public static class SearchSpacesPage extends AbstractPage { private SearchSpacesPage( - PageContext context, - SearchSpacesResponse response) { + @Nullable PageContext context, + @Nullable SearchSpacesResponse response) { super(context, response); } @@ -10151,14 +10158,14 @@ private static SearchSpacesPage createEmptyPage() { @Override protected SearchSpacesPage createPage( - PageContext context, - SearchSpacesResponse response) { + @Nullable PageContext context, + @Nullable SearchSpacesResponse response) { return new SearchSpacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10172,7 +10179,8 @@ public static class SearchSpacesFixedSizeCollection SearchSpacesPage, SearchSpacesFixedSizeCollection> { - private SearchSpacesFixedSizeCollection(List pages, int collectionSize) { + private SearchSpacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10182,7 +10190,7 @@ private static SearchSpacesFixedSizeCollection createEmptyCollection() { @Override protected SearchSpacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchSpacesFixedSizeCollection(pages, collectionSize); } } @@ -10216,8 +10224,8 @@ public static class FindGroupChatsPage FindGroupChatsRequest, FindGroupChatsResponse, Space, FindGroupChatsPage> { private FindGroupChatsPage( - PageContext context, - FindGroupChatsResponse response) { + @Nullable PageContext context, + @Nullable FindGroupChatsResponse response) { super(context, response); } @@ -10227,14 +10235,14 @@ private static FindGroupChatsPage createEmptyPage() { @Override protected FindGroupChatsPage createPage( - PageContext context, - FindGroupChatsResponse response) { + @Nullable PageContext context, + @Nullable FindGroupChatsResponse response) { return new FindGroupChatsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10248,7 +10256,8 @@ public static class FindGroupChatsFixedSizeCollection FindGroupChatsPage, FindGroupChatsFixedSizeCollection> { - private FindGroupChatsFixedSizeCollection(List pages, int collectionSize) { + private FindGroupChatsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10258,7 +10267,7 @@ private static FindGroupChatsFixedSizeCollection createEmptyCollection() { @Override protected FindGroupChatsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FindGroupChatsFixedSizeCollection(pages, collectionSize); } } @@ -10292,8 +10301,8 @@ public static class ListReactionsPage ListReactionsRequest, ListReactionsResponse, Reaction, ListReactionsPage> { private ListReactionsPage( - PageContext context, - ListReactionsResponse response) { + @Nullable PageContext context, + @Nullable ListReactionsResponse response) { super(context, response); } @@ -10303,14 +10312,14 @@ private static ListReactionsPage createEmptyPage() { @Override protected ListReactionsPage createPage( - PageContext context, - ListReactionsResponse response) { + @Nullable PageContext context, + @Nullable ListReactionsResponse response) { return new ListReactionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10324,7 +10333,8 @@ public static class ListReactionsFixedSizeCollection ListReactionsPage, ListReactionsFixedSizeCollection> { - private ListReactionsFixedSizeCollection(List pages, int collectionSize) { + private ListReactionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10334,7 +10344,7 @@ private static ListReactionsFixedSizeCollection createEmptyCollection() { @Override protected ListReactionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReactionsFixedSizeCollection(pages, collectionSize); } } @@ -10368,8 +10378,9 @@ public static class ListCustomEmojisPage ListCustomEmojisRequest, ListCustomEmojisResponse, CustomEmoji, ListCustomEmojisPage> { private ListCustomEmojisPage( - PageContext context, - ListCustomEmojisResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomEmojisResponse response) { super(context, response); } @@ -10379,14 +10390,16 @@ private static ListCustomEmojisPage createEmptyPage() { @Override protected ListCustomEmojisPage createPage( - PageContext context, - ListCustomEmojisResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomEmojisResponse response) { return new ListCustomEmojisPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10401,7 +10414,7 @@ public static class ListCustomEmojisFixedSizeCollection ListCustomEmojisFixedSizeCollection> { private ListCustomEmojisFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10411,7 +10424,7 @@ private static ListCustomEmojisFixedSizeCollection createEmptyCollection() { @Override protected ListCustomEmojisFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomEmojisFixedSizeCollection(pages, collectionSize); } } @@ -10445,8 +10458,8 @@ public static class ListSpaceEventsPage ListSpaceEventsRequest, ListSpaceEventsResponse, SpaceEvent, ListSpaceEventsPage> { private ListSpaceEventsPage( - PageContext context, - ListSpaceEventsResponse response) { + @Nullable PageContext context, + @Nullable ListSpaceEventsResponse response) { super(context, response); } @@ -10456,14 +10469,14 @@ private static ListSpaceEventsPage createEmptyPage() { @Override protected ListSpaceEventsPage createPage( - PageContext context, - ListSpaceEventsResponse response) { + @Nullable PageContext context, + @Nullable ListSpaceEventsResponse response) { return new ListSpaceEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10478,7 +10491,7 @@ public static class ListSpaceEventsFixedSizeCollection ListSpaceEventsFixedSizeCollection> { private ListSpaceEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10488,7 +10501,7 @@ private static ListSpaceEventsFixedSizeCollection createEmptyCollection() { @Override protected ListSpaceEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpaceEventsFixedSizeCollection(pages, collectionSize); } } @@ -10521,8 +10534,8 @@ public static class ListSectionsPage extends AbstractPage { private ListSectionsPage( - PageContext context, - ListSectionsResponse response) { + @Nullable PageContext context, + @Nullable ListSectionsResponse response) { super(context, response); } @@ -10532,14 +10545,14 @@ private static ListSectionsPage createEmptyPage() { @Override protected ListSectionsPage createPage( - PageContext context, - ListSectionsResponse response) { + @Nullable PageContext context, + @Nullable ListSectionsResponse response) { return new ListSectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10553,7 +10566,8 @@ public static class ListSectionsFixedSizeCollection ListSectionsPage, ListSectionsFixedSizeCollection> { - private ListSectionsFixedSizeCollection(List pages, int collectionSize) { + private ListSectionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10563,7 +10577,7 @@ private static ListSectionsFixedSizeCollection createEmptyCollection() { @Override protected ListSectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSectionsFixedSizeCollection(pages, collectionSize); } } @@ -10597,8 +10611,9 @@ public static class ListSectionItemsPage ListSectionItemsRequest, ListSectionItemsResponse, SectionItem, ListSectionItemsPage> { private ListSectionItemsPage( - PageContext context, - ListSectionItemsResponse response) { + @Nullable PageContext + context, + @Nullable ListSectionItemsResponse response) { super(context, response); } @@ -10608,14 +10623,16 @@ private static ListSectionItemsPage createEmptyPage() { @Override protected ListSectionItemsPage createPage( - PageContext context, - ListSectionItemsResponse response) { + @Nullable PageContext + context, + @Nullable ListSectionItemsResponse response) { return new ListSectionItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10630,7 +10647,7 @@ public static class ListSectionItemsFixedSizeCollection ListSectionItemsFixedSizeCollection> { private ListSectionItemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10640,7 +10657,7 @@ private static ListSectionItemsFixedSizeCollection createEmptyCollection() { @Override protected ListSectionItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSectionItemsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index 5f241cc445a3..3d4b7387930b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -417,7 +418,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); } @@ -437,7 +438,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ChatServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index 8eec371a707e..fd76824f035f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -139,6 +139,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1205,7 +1206,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); } @@ -1405,7 +1406,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentName.java index 8d1141b0657d..cd485a46617c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String space, String message, String attachment) { .toString(); } - public static AttachmentName parse(String formattedString) { + public static @Nullable AttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachmentName> values) { List list = new ArrayList<>(values.size()); for (AttachmentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java index 98ee9d1be608..e7e8f0f95239 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AvailabilityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static AvailabilityName parse(String formattedString) { + public static @Nullable AvailabilityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AvailabilityName> values) { List list = new ArrayList<>(values.size()); for (AvailabilityName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiName.java index 6e2c3c12ce1d..249a375a0b54 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String customEmoji) { return newBuilder().setCustomEmoji(customEmoji).build().toString(); } - public static CustomEmojiName parse(String formattedString) { + public static @Nullable CustomEmojiName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomEmojiName> values) { List list = new ArrayList<>(values.size()); for (CustomEmojiName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipName.java index 208389ada6e0..cc88b3946253 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MembershipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String space, String member) { return newBuilder().setSpace(space).setMember(member).build().toString(); } - public static MembershipName parse(String formattedString) { + public static @Nullable MembershipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MembershipName> values) { List list = new ArrayList<>(values.size()); for (MembershipName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageName.java index a0a802b5ef04..c47c618af9d6 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String space, String message) { return newBuilder().setSpace(space).setMessage(message).build().toString(); } - public static MessageName parse(String formattedString) { + public static @Nullable MessageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MessageName> values) { List list = new ArrayList<>(values.size()); for (MessageName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionName.java index c29e6aa195e6..009e34bcce62 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReactionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String space, String message, String reaction) { .toString(); } - public static ReactionName parse(String formattedString) { + public static @Nullable ReactionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReactionName> values) { List list = new ArrayList<>(values.size()); for (ReactionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionItemName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionItemName.java index 04d9a6cfbd03..2d9f596d1512 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionItemName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionItemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String user, String section, String item) { return newBuilder().setUser(user).setSection(section).setItem(item).build().toString(); } - public static SectionItemName parse(String formattedString) { + public static @Nullable SectionItemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SectionItemName> values) { List list = new ArrayList<>(values.size()); for (SectionItemName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionName.java index 18c52f53acb6..4fdf97489797 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String section) { return newBuilder().setUser(user).setSection(section).build().toString(); } - public static SectionName parse(String formattedString) { + public static @Nullable SectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SectionName> values) { List list = new ArrayList<>(values.size()); for (SectionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java index 0663ed40a27e..f768d858e740 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String space, String spaceEvent) { return newBuilder().setSpace(space).setSpaceEvent(spaceEvent).build().toString(); } - public static SpaceEventName parse(String formattedString) { + public static @Nullable SpaceEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceEventName> values) { List list = new ArrayList<>(values.size()); for (SpaceEventName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceName.java index 0b1c24c0bc47..ca07dde7307e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String space) { return newBuilder().setSpace(space).build().toString(); } - public static SpaceName parse(String formattedString) { + public static @Nullable SpaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -82,7 +83,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceName> values) { List list = new ArrayList<>(values.size()); for (SpaceName value : values) { if (value == null) { @@ -124,7 +125,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceNotificationSettingName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceNotificationSettingName.java index 80bb635590c0..99e730dc740d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceNotificationSettingName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceNotificationSettingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String space) { return newBuilder().setUser(user).setSpace(space).build().toString(); } - public static SpaceNotificationSettingName parse(String formattedString) { + public static @Nullable SpaceNotificationSettingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceNotificationSettingName> values) { List list = new ArrayList<>(values.size()); for (SpaceNotificationSettingName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceReadStateName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceReadStateName.java index 18429eaf8367..47f4f6d2d33b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceReadStateName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceReadStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String space) { return newBuilder().setUser(user).setSpace(space).build().toString(); } - public static SpaceReadStateName parse(String formattedString) { + public static @Nullable SpaceReadStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceReadStateName> values) { List list = new ArrayList<>(values.size()); for (SpaceReadStateName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateName.java index c6ae9f2f0ebc..58bfe2c40e58 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String user, String space, String thread) { return newBuilder().setUser(user).setSpace(space).setThread(thread).build().toString(); } - public static ThreadReadStateName parse(String formattedString) { + public static @Nullable ThreadReadStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ThreadReadStateName> values) { List list = new ArrayList<>(values.size()); for (ThreadReadStateName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UserName.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UserName.java index cd62a26f3bda..ab8e2794b6d9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UserName.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java index de7359f4b5dc..6005c9251726 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceClient.java @@ -25,6 +25,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. /** @@ -174,7 +175,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BigQueryExportServiceClient implements BackgroundResource { - private final BigQueryExportServiceSettings settings; + private final @Nullable BigQueryExportServiceSettings settings; private final BigQueryExportServiceStub stub; /** Constructs an instance of BigQueryExportServiceClient with default settings. */ @@ -214,7 +215,7 @@ protected BigQueryExportServiceClient(BigQueryExportServiceStub stub) { this.stub = stub; } - public final BigQueryExportServiceSettings getSettings() { + public final @Nullable BigQueryExportServiceSettings getSettings() { return settings; } @@ -245,7 +246,7 @@ public BigQueryExportServiceStub getStub() { * projects/{project}/locations/{location}/instances/{instance}/bigQueryExport * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryExport getBigQueryExport(BigQueryExportName name) { + public final BigQueryExport getBigQueryExport(@Nullable BigQueryExportName name) { GetBigQueryExportRequest request = GetBigQueryExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -461,7 +462,7 @@ public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest req * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryExport provisionBigQueryExport(InstanceName parent) { + public final BigQueryExport provisionBigQueryExport(@Nullable InstanceName parent) { ProvisionBigQueryExportRequest request = ProvisionBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java index d3ec926a66a7..7af054e9bbc4 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigQueryExportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java index 1449cd224788..8da2606b886c 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceClient.java @@ -25,6 +25,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. /** @@ -157,7 +158,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DashboardChartServiceClient implements BackgroundResource { - private final DashboardChartServiceSettings settings; + private final @Nullable DashboardChartServiceSettings settings; private final DashboardChartServiceStub stub; /** Constructs an instance of DashboardChartServiceClient with default settings. */ @@ -197,7 +198,7 @@ protected DashboardChartServiceClient(DashboardChartServiceStub stub) { this.stub = stub; } - public final DashboardChartServiceSettings getSettings() { + public final @Nullable DashboardChartServiceSettings getSettings() { return settings; } @@ -229,7 +230,7 @@ public DashboardChartServiceStub getStub() { * projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DashboardChart getDashboardChart(DashboardChartName name) { + public final DashboardChart getDashboardChart(@Nullable DashboardChartName name) { GetDashboardChartRequest request = GetDashboardChartRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -356,7 +357,7 @@ public final UnaryCallable getDashboar * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchGetDashboardChartsResponse batchGetDashboardCharts( - InstanceName parent, List names) { + @Nullable InstanceName parent, List names) { BatchGetDashboardChartsRequest request = BatchGetDashboardChartsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java index bce395befc57..c1c72ad4c067 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardChartServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -156,7 +157,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); } @@ -177,7 +178,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DashboardChartServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java index 98d37b9deba0..b063db96897f 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceClient.java @@ -24,6 +24,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DashboardQueryServiceClient implements BackgroundResource { - private final DashboardQueryServiceSettings settings; + private final @Nullable DashboardQueryServiceSettings settings; private final DashboardQueryServiceStub stub; /** Constructs an instance of DashboardQueryServiceClient with default settings. */ @@ -196,7 +197,7 @@ protected DashboardQueryServiceClient(DashboardQueryServiceStub stub) { this.stub = stub; } - public final DashboardQueryServiceSettings getSettings() { + public final @Nullable DashboardQueryServiceSettings getSettings() { return settings; } @@ -228,7 +229,7 @@ public DashboardQueryServiceStub getStub() { * projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DashboardQuery getDashboardQuery(DashboardQueryName name) { + public final DashboardQuery getDashboardQuery(@Nullable DashboardQueryName name) { GetDashboardQueryRequest request = GetDashboardQueryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -356,7 +357,7 @@ public final UnaryCallable getDashboar * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExecuteDashboardQueryResponse executeDashboardQuery( - InstanceName parent, DashboardQuery query) { + @Nullable InstanceName parent, DashboardQuery query) { ExecuteDashboardQueryRequest request = ExecuteDashboardQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java index 16126bf15ac8..4dbfd7a2d2b9 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -176,7 +177,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DashboardQueryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceClient.java index 6efd199f6d4c..e9f3568f39df 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceClient.java @@ -34,6 +34,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. /** @@ -322,7 +323,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataAccessControlServiceClient implements BackgroundResource { - private final DataAccessControlServiceSettings settings; + private final @Nullable DataAccessControlServiceSettings settings; private final DataAccessControlServiceStub stub; /** Constructs an instance of DataAccessControlServiceClient with default settings. */ @@ -364,7 +365,7 @@ protected DataAccessControlServiceClient(DataAccessControlServiceStub stub) { this.stub = stub; } - public final DataAccessControlServiceSettings getSettings() { + public final @Nullable DataAccessControlServiceSettings getSettings() { return settings; } @@ -408,7 +409,7 @@ public DataAccessControlServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataAccessLabel createDataAccessLabel( - InstanceName parent, DataAccessLabel dataAccessLabel, String dataAccessLabelId) { + @Nullable InstanceName parent, DataAccessLabel dataAccessLabel, String dataAccessLabelId) { CreateDataAccessLabelRequest request = CreateDataAccessLabelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -557,7 +558,7 @@ public final DataAccessLabel createDataAccessLabel(CreateDataAccessLabelRequest * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataAccessLabel getDataAccessLabel(DataAccessLabelName name) { + public final DataAccessLabel getDataAccessLabel(@Nullable DataAccessLabelName name) { GetDataAccessLabelRequest request = GetDataAccessLabelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -687,7 +688,8 @@ public final DataAccessLabel getDataAccessLabel(GetDataAccessLabelRequest reques * Format: `projects/{project}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataAccessLabelsPagedResponse listDataAccessLabels(InstanceName parent) { + public final ListDataAccessLabelsPagedResponse listDataAccessLabels( + @Nullable InstanceName parent) { ListDataAccessLabelsRequest request = ListDataAccessLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -966,7 +968,7 @@ public final DataAccessLabel updateDataAccessLabel(UpdateDataAccessLabelRequest * `projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataAccessLabel(DataAccessLabelName name) { + public final void deleteDataAccessLabel(@Nullable DataAccessLabelName name) { DeleteDataAccessLabelRequest request = DeleteDataAccessLabelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1106,7 +1108,7 @@ public final UnaryCallable deleteDataAccess * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataAccessScope createDataAccessScope( - InstanceName parent, DataAccessScope dataAccessScope, String dataAccessScopeId) { + @Nullable InstanceName parent, DataAccessScope dataAccessScope, String dataAccessScopeId) { CreateDataAccessScopeRequest request = CreateDataAccessScopeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1253,7 +1255,7 @@ public final DataAccessScope createDataAccessScope(CreateDataAccessScopeRequest * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataAccessScope getDataAccessScope(DataAccessScopeName name) { + public final DataAccessScope getDataAccessScope(@Nullable DataAccessScopeName name) { GetDataAccessScopeRequest request = GetDataAccessScopeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1383,7 +1385,8 @@ public final DataAccessScope getDataAccessScope(GetDataAccessScopeRequest reques * Format: `projects/{project}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataAccessScopesPagedResponse listDataAccessScopes(InstanceName parent) { + public final ListDataAccessScopesPagedResponse listDataAccessScopes( + @Nullable InstanceName parent) { ListDataAccessScopesRequest request = ListDataAccessScopesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1661,7 +1664,7 @@ public final DataAccessScope updateDataAccessScope(UpdateDataAccessScopeRequest * `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{data_access_scope}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataAccessScope(DataAccessScopeName name) { + public final void deleteDataAccessScope(@Nullable DataAccessScopeName name) { DeleteDataAccessScopeRequest request = DeleteDataAccessScopeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1827,9 +1830,10 @@ public static class ListDataAccessLabelsPage ListDataAccessLabelsPage> { private ListDataAccessLabelsPage( - PageContext + @Nullable + PageContext context, - ListDataAccessLabelsResponse response) { + @Nullable ListDataAccessLabelsResponse response) { super(context, response); } @@ -1839,15 +1843,17 @@ private static ListDataAccessLabelsPage createEmptyPage() { @Override protected ListDataAccessLabelsPage createPage( - PageContext + @Nullable + PageContext context, - ListDataAccessLabelsResponse response) { + @Nullable ListDataAccessLabelsResponse response) { return new ListDataAccessLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1863,7 +1869,7 @@ public static class ListDataAccessLabelsFixedSizeCollection ListDataAccessLabelsFixedSizeCollection> { private ListDataAccessLabelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1873,7 +1879,7 @@ private static ListDataAccessLabelsFixedSizeCollection createEmptyCollection() { @Override protected ListDataAccessLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAccessLabelsFixedSizeCollection(pages, collectionSize); } } @@ -1911,9 +1917,10 @@ public static class ListDataAccessScopesPage ListDataAccessScopesPage> { private ListDataAccessScopesPage( - PageContext + @Nullable + PageContext context, - ListDataAccessScopesResponse response) { + @Nullable ListDataAccessScopesResponse response) { super(context, response); } @@ -1923,15 +1930,17 @@ private static ListDataAccessScopesPage createEmptyPage() { @Override protected ListDataAccessScopesPage createPage( - PageContext + @Nullable + PageContext context, - ListDataAccessScopesResponse response) { + @Nullable ListDataAccessScopesResponse response) { return new ListDataAccessScopesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1947,7 +1956,7 @@ public static class ListDataAccessScopesFixedSizeCollection ListDataAccessScopesFixedSizeCollection> { private ListDataAccessScopesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1957,7 +1966,7 @@ private static ListDataAccessScopesFixedSizeCollection createEmptyCollection() { @Override protected ListDataAccessScopesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAccessScopesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceSettings.java index 3735c38214fa..c62a1b3c023f 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataAccessControlServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataAccessControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java index 6ef69b721e0c..1f9a592c9359 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceClient.java @@ -34,6 +34,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. /** @@ -401,7 +402,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataTableServiceClient implements BackgroundResource { - private final DataTableServiceSettings settings; + private final @Nullable DataTableServiceSettings settings; private final DataTableServiceStub stub; /** Constructs an instance of DataTableServiceClient with default settings. */ @@ -441,7 +442,7 @@ protected DataTableServiceClient(DataTableServiceStub stub) { this.stub = stub; } - public final DataTableServiceSettings getSettings() { + public final @Nullable DataTableServiceSettings getSettings() { return settings; } @@ -478,7 +479,7 @@ public DataTableServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataTable createDataTable( - InstanceName parent, DataTable dataTable, String dataTableId) { + @Nullable InstanceName parent, DataTable dataTable, String dataTableId) { CreateDataTableRequest request = CreateDataTableRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -610,7 +611,7 @@ public final UnaryCallable createDataTableCal * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataTablesPagedResponse listDataTables(InstanceName parent) { + public final ListDataTablesPagedResponse listDataTables(@Nullable InstanceName parent) { ListDataTablesRequest request = ListDataTablesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -778,7 +779,7 @@ public final ListDataTablesPagedResponse listDataTables(ListDataTablesRequest re * projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataTable getDataTable(DataTableName name) { + public final DataTable getDataTable(@Nullable DataTableName name) { GetDataTableRequest request = GetDataTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataTable(request); @@ -992,7 +993,7 @@ public final UnaryCallable updateDataTableCal * (Otherwise, the request will only work if the data table has no rows.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataTable(DataTableName name, boolean force) { + public final void deleteDataTable(@Nullable DataTableName name, boolean force) { DeleteDataTableRequest request = DeleteDataTableRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1120,7 +1121,8 @@ public final UnaryCallable deleteDataTableCallabl * @param dataTableRow Required. The data table row to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataTableRow createDataTableRow(DataTableName parent, DataTableRow dataTableRow) { + public final DataTableRow createDataTableRow( + @Nullable DataTableName parent, DataTableRow dataTableRow) { CreateDataTableRowRequest request = CreateDataTableRowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1343,7 +1345,7 @@ public final UnaryCallable updateDataTa * projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataTableRowsPagedResponse listDataTableRows(DataTableName parent) { + public final ListDataTableRowsPagedResponse listDataTableRows(@Nullable DataTableName parent) { ListDataTableRowsRequest request = ListDataTableRowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1523,7 +1525,7 @@ public final ListDataTableRowsPagedResponse listDataTableRows(ListDataTableRowsR * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataTableRow getDataTableRow(DataTableRowName name) { + public final DataTableRow getDataTableRow(@Nullable DataTableRowName name) { GetDataTableRowRequest request = GetDataTableRowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataTableRow(request); @@ -1653,7 +1655,7 @@ public final UnaryCallable getDataTableRow * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataTableRow(DataTableRowName name) { + public final void deleteDataTableRow(@Nullable DataTableRowName name) { DeleteDataTableRowRequest request = DeleteDataTableRowRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1791,7 +1793,7 @@ public final UnaryCallable deleteDataTableRowC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows( - DataTableName parent, List requests) { + @Nullable DataTableName parent, List requests) { BulkCreateDataTableRowsRequest request = BulkCreateDataTableRowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1930,7 +1932,7 @@ public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BulkGetDataTableRowsResponse bulkGetDataTableRows( - DataTableName parent, List requests) { + @Nullable DataTableName parent, List requests) { BulkGetDataTableRowsRequest request = BulkGetDataTableRowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2065,7 +2067,7 @@ public final BulkGetDataTableRowsResponse bulkGetDataTableRows( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( - DataTableName parent, List requests) { + @Nullable DataTableName parent, List requests) { BulkReplaceDataTableRowsRequest request = BulkReplaceDataTableRowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2205,7 +2207,7 @@ public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( - DataTableName parent, List requests) { + @Nullable DataTableName parent, List requests) { BulkUpdateDataTableRowsRequest request = BulkUpdateDataTableRowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2341,7 +2343,7 @@ public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataTableOperationErrors getDataTableOperationErrors( - DataTableOperationErrorsName name) { + @Nullable DataTableOperationErrorsName name) { GetDataTableOperationErrorsRequest request = GetDataTableOperationErrorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2504,8 +2506,8 @@ public static class ListDataTablesPage ListDataTablesRequest, ListDataTablesResponse, DataTable, ListDataTablesPage> { private ListDataTablesPage( - PageContext context, - ListDataTablesResponse response) { + @Nullable PageContext context, + @Nullable ListDataTablesResponse response) { super(context, response); } @@ -2515,14 +2517,14 @@ private static ListDataTablesPage createEmptyPage() { @Override protected ListDataTablesPage createPage( - PageContext context, - ListDataTablesResponse response) { + @Nullable PageContext context, + @Nullable ListDataTablesResponse response) { return new ListDataTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2536,7 +2538,8 @@ public static class ListDataTablesFixedSizeCollection ListDataTablesPage, ListDataTablesFixedSizeCollection> { - private ListDataTablesFixedSizeCollection(List pages, int collectionSize) { + private ListDataTablesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2546,7 +2549,7 @@ private static ListDataTablesFixedSizeCollection createEmptyCollection() { @Override protected ListDataTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataTablesFixedSizeCollection(pages, collectionSize); } } @@ -2583,8 +2586,9 @@ public static class ListDataTableRowsPage ListDataTableRowsPage> { private ListDataTableRowsPage( - PageContext context, - ListDataTableRowsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataTableRowsResponse response) { super(context, response); } @@ -2594,14 +2598,16 @@ private static ListDataTableRowsPage createEmptyPage() { @Override protected ListDataTableRowsPage createPage( - PageContext context, - ListDataTableRowsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataTableRowsResponse response) { return new ListDataTableRowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2616,7 +2622,7 @@ public static class ListDataTableRowsFixedSizeCollection ListDataTableRowsFixedSizeCollection> { private ListDataTableRowsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2626,7 +2632,7 @@ private static ListDataTableRowsFixedSizeCollection createEmptyCollection() { @Override protected ListDataTableRowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataTableRowsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java index cac44454d7b0..8654a396083a 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/DataTableServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,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); } @@ -252,7 +253,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataTableServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceClient.java index bf0513dec9c6..0ebed1aba6fc 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceClient.java @@ -34,6 +34,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. /** @@ -217,7 +218,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EntityServiceClient implements BackgroundResource { - private final EntityServiceSettings settings; + private final @Nullable EntityServiceSettings settings; private final EntityServiceStub stub; /** Constructs an instance of EntityServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected EntityServiceClient(EntityServiceStub stub) { this.stub = stub; } - public final EntityServiceSettings getSettings() { + public final @Nullable EntityServiceSettings getSettings() { return settings; } @@ -288,7 +289,7 @@ public EntityServiceStub getStub() { * `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Watchlist getWatchlist(WatchlistName name) { + public final Watchlist getWatchlist(@Nullable WatchlistName name) { GetWatchlistRequest request = GetWatchlistRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWatchlist(request); @@ -406,7 +407,7 @@ public final UnaryCallable getWatchlistCallable( * `projects/{project}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWatchlistsPagedResponse listWatchlists(InstanceName parent) { + public final ListWatchlistsPagedResponse listWatchlists(@Nullable InstanceName parent) { ListWatchlistsRequest request = ListWatchlistsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -581,7 +582,7 @@ public final ListWatchlistsPagedResponse listWatchlists(ListWatchlistsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Watchlist createWatchlist( - InstanceName parent, Watchlist watchlist, String watchlistId) { + @Nullable InstanceName parent, Watchlist watchlist, String watchlistId) { CreateWatchlistRequest request = CreateWatchlistRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -809,7 +810,7 @@ public final UnaryCallable updateWatchlistCal * (Otherwise, the request will only work if the watchlist has no entities.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWatchlist(WatchlistName name, boolean force) { + public final void deleteWatchlist(@Nullable WatchlistName name, boolean force) { DeleteWatchlistRequest request = DeleteWatchlistRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -970,8 +971,8 @@ public static class ListWatchlistsPage ListWatchlistsRequest, ListWatchlistsResponse, Watchlist, ListWatchlistsPage> { private ListWatchlistsPage( - PageContext context, - ListWatchlistsResponse response) { + @Nullable PageContext context, + @Nullable ListWatchlistsResponse response) { super(context, response); } @@ -981,14 +982,14 @@ private static ListWatchlistsPage createEmptyPage() { @Override protected ListWatchlistsPage createPage( - PageContext context, - ListWatchlistsResponse response) { + @Nullable PageContext context, + @Nullable ListWatchlistsResponse response) { return new ListWatchlistsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1002,7 +1003,8 @@ public static class ListWatchlistsFixedSizeCollection ListWatchlistsPage, ListWatchlistsFixedSizeCollection> { - private ListWatchlistsFixedSizeCollection(List pages, int collectionSize) { + private ListWatchlistsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1012,7 +1014,7 @@ private static ListWatchlistsFixedSizeCollection createEmptyCollection() { @Override protected ListWatchlistsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWatchlistsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceSettings.java index 294902026e73..d278431a4089 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/EntityServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java index d1fa294ce3a5..8d085faf79f1 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceClient.java @@ -32,6 +32,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. /** @@ -190,7 +191,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FeaturedContentNativeDashboardServiceClient implements BackgroundResource { - private final FeaturedContentNativeDashboardServiceSettings settings; + private final @Nullable FeaturedContentNativeDashboardServiceSettings settings; private final FeaturedContentNativeDashboardServiceStub stub; /** @@ -239,7 +240,7 @@ protected FeaturedContentNativeDashboardServiceClient( this.stub = stub; } - public final FeaturedContentNativeDashboardServiceSettings getSettings() { + public final @Nullable FeaturedContentNativeDashboardServiceSettings getSettings() { return settings; } @@ -275,7 +276,7 @@ public FeaturedContentNativeDashboardServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FeaturedContentNativeDashboard getFeaturedContentNativeDashboard( - FeaturedContentNativeDashboardName name) { + @Nullable FeaturedContentNativeDashboardName name) { GetFeaturedContentNativeDashboardRequest request = GetFeaturedContentNativeDashboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -423,7 +424,7 @@ public final FeaturedContentNativeDashboard getFeaturedContentNativeDashboard( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFeaturedContentNativeDashboardsPagedResponse listFeaturedContentNativeDashboards( - ContentHubName parent) { + @Nullable ContentHubName parent) { ListFeaturedContentNativeDashboardsRequest request = ListFeaturedContentNativeDashboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -618,7 +619,7 @@ public final ListFeaturedContentNativeDashboardsPagedResponse listFeaturedConten * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InstallFeaturedContentNativeDashboardResponse installFeaturedContentNativeDashboard( - FeaturedContentNativeDashboardName name) { + @Nullable FeaturedContentNativeDashboardName name) { InstallFeaturedContentNativeDashboardRequest request = InstallFeaturedContentNativeDashboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -811,12 +812,13 @@ public static class ListFeaturedContentNativeDashboardsPage ListFeaturedContentNativeDashboardsPage> { private ListFeaturedContentNativeDashboardsPage( - PageContext< + @Nullable + PageContext< ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> context, - ListFeaturedContentNativeDashboardsResponse response) { + @Nullable ListFeaturedContentNativeDashboardsResponse response) { super(context, response); } @@ -826,18 +828,20 @@ private static ListFeaturedContentNativeDashboardsPage createEmptyPage() { @Override protected ListFeaturedContentNativeDashboardsPage createPage( - PageContext< + @Nullable + PageContext< ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> context, - ListFeaturedContentNativeDashboardsResponse response) { + @Nullable ListFeaturedContentNativeDashboardsResponse response) { return new ListFeaturedContentNativeDashboardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFeaturedContentNativeDashboardsRequest, ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> @@ -856,7 +860,7 @@ public static class ListFeaturedContentNativeDashboardsFixedSizeCollection ListFeaturedContentNativeDashboardsFixedSizeCollection> { private ListFeaturedContentNativeDashboardsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -866,7 +870,7 @@ private static ListFeaturedContentNativeDashboardsFixedSizeCollection createEmpt @Override protected ListFeaturedContentNativeDashboardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturedContentNativeDashboardsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java index f67f94180aa1..75260e223808 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeaturedContentNativeDashboardServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java index b79132c1d6ad..cff59416c8ab 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceClient.java @@ -33,6 +33,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. /** @@ -300,7 +301,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FindingsRefinementServiceClient implements BackgroundResource { - private final FindingsRefinementServiceSettings settings; + private final @Nullable FindingsRefinementServiceSettings settings; private final FindingsRefinementServiceStub stub; /** Constructs an instance of FindingsRefinementServiceClient with default settings. */ @@ -342,7 +343,7 @@ protected FindingsRefinementServiceClient(FindingsRefinementServiceStub stub) { this.stub = stub; } - public final FindingsRefinementServiceSettings getSettings() { + public final @Nullable FindingsRefinementServiceSettings getSettings() { return settings; } @@ -375,7 +376,7 @@ public FindingsRefinementServiceStub getStub() { * projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FindingsRefinement getFindingsRefinement(FindingsRefinementName name) { + public final FindingsRefinement getFindingsRefinement(@Nullable FindingsRefinementName name) { GetFindingsRefinementRequest request = GetFindingsRefinementRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -506,7 +507,8 @@ public final FindingsRefinement getFindingsRefinement(GetFindingsRefinementReque * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsRefinementsPagedResponse listFindingsRefinements(InstanceName parent) { + public final ListFindingsRefinementsPagedResponse listFindingsRefinements( + @Nullable InstanceName parent) { ListFindingsRefinementsRequest request = ListFindingsRefinementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -685,7 +687,7 @@ public final ListFindingsRefinementsPagedResponse listFindingsRefinements( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FindingsRefinement createFindingsRefinement( - InstanceName parent, FindingsRefinement findingsRefinement) { + @Nullable InstanceName parent, FindingsRefinement findingsRefinement) { CreateFindingsRefinementRequest request = CreateFindingsRefinementRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -922,7 +924,7 @@ public final FindingsRefinement updateFindingsRefinement( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FindingsRefinementDeployment getFindingsRefinementDeployment( - FindingsRefinementDeploymentName name) { + @Nullable FindingsRefinementDeploymentName name) { GetFindingsRefinementDeploymentRequest request = GetFindingsRefinementDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1169,7 +1171,7 @@ public final FindingsRefinementDeployment updateFindingsRefinementDeployment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAllFindingsRefinementDeploymentsPagedResponse - listAllFindingsRefinementDeployments(InstanceName instance) { + listAllFindingsRefinementDeployments(@Nullable InstanceName instance) { ListAllFindingsRefinementDeploymentsRequest request = ListAllFindingsRefinementDeploymentsRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -1364,7 +1366,7 @@ public final FindingsRefinementDeployment updateFindingsRefinementDeployment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ComputeFindingsRefinementActivityResponse computeFindingsRefinementActivity( - FindingsRefinementName name) { + @Nullable FindingsRefinementName name) { ComputeFindingsRefinementActivityRequest request = ComputeFindingsRefinementActivityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1504,7 +1506,7 @@ public final ComputeFindingsRefinementActivityResponse computeFindingsRefinement * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ComputeAllFindingsRefinementActivitiesResponse - computeAllFindingsRefinementActivities(InstanceName instance) { + computeAllFindingsRefinementActivities(@Nullable InstanceName instance) { ComputeAllFindingsRefinementActivitiesRequest request = ComputeAllFindingsRefinementActivitiesRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -1675,10 +1677,11 @@ public static class ListFindingsRefinementsPage ListFindingsRefinementsPage> { private ListFindingsRefinementsPage( - PageContext< + @Nullable + PageContext< ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> context, - ListFindingsRefinementsResponse response) { + @Nullable ListFindingsRefinementsResponse response) { super(context, response); } @@ -1688,16 +1691,18 @@ private static ListFindingsRefinementsPage createEmptyPage() { @Override protected ListFindingsRefinementsPage createPage( - PageContext< + @Nullable + PageContext< ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> context, - ListFindingsRefinementsResponse response) { + @Nullable ListFindingsRefinementsResponse response) { return new ListFindingsRefinementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFindingsRefinementsRequest, ListFindingsRefinementsResponse, FindingsRefinement> context, ApiFuture futureResponse) { @@ -1714,7 +1719,7 @@ public static class ListFindingsRefinementsFixedSizeCollection ListFindingsRefinementsFixedSizeCollection> { private ListFindingsRefinementsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1724,7 +1729,7 @@ private static ListFindingsRefinementsFixedSizeCollection createEmptyCollection( @Override protected ListFindingsRefinementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsRefinementsFixedSizeCollection(pages, collectionSize); } } @@ -1767,12 +1772,13 @@ public static class ListAllFindingsRefinementDeploymentsPage ListAllFindingsRefinementDeploymentsPage> { private ListAllFindingsRefinementDeploymentsPage( - PageContext< + @Nullable + PageContext< ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse, FindingsRefinementDeployment> context, - ListAllFindingsRefinementDeploymentsResponse response) { + @Nullable ListAllFindingsRefinementDeploymentsResponse response) { super(context, response); } @@ -1782,18 +1788,20 @@ private static ListAllFindingsRefinementDeploymentsPage createEmptyPage() { @Override protected ListAllFindingsRefinementDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse, FindingsRefinementDeployment> context, - ListAllFindingsRefinementDeploymentsResponse response) { + @Nullable ListAllFindingsRefinementDeploymentsResponse response) { return new ListAllFindingsRefinementDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAllFindingsRefinementDeploymentsRequest, ListAllFindingsRefinementDeploymentsResponse, FindingsRefinementDeployment> @@ -1812,7 +1820,7 @@ public static class ListAllFindingsRefinementDeploymentsFixedSizeCollection ListAllFindingsRefinementDeploymentsFixedSizeCollection> { private ListAllFindingsRefinementDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1822,7 +1830,7 @@ private static ListAllFindingsRefinementDeploymentsFixedSizeCollection createEmp @Override protected ListAllFindingsRefinementDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAllFindingsRefinementDeploymentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java index a41659f0f763..dd0a527f02bf 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FindingsRefinementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceClient.java index 3558057497ce..ff3bdcbb41a7 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceClient.java @@ -24,6 +24,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. /** @@ -135,7 +136,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceServiceClient implements BackgroundResource { - private final InstanceServiceSettings settings; + private final @Nullable InstanceServiceSettings settings; private final InstanceServiceStub stub; /** Constructs an instance of InstanceServiceClient with default settings. */ @@ -175,7 +176,7 @@ protected InstanceServiceClient(InstanceServiceStub stub) { this.stub = stub; } - public final InstanceServiceSettings getSettings() { + public final @Nullable InstanceServiceSettings getSettings() { return settings; } @@ -205,7 +206,7 @@ public InstanceServiceStub getStub() { * `projects/{project_id}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceSettings.java index a60de0aca92b..2386d850d2df 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/InstanceServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java index 04d851b2670b..1c25a3a0a96f 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceClient.java @@ -34,6 +34,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. /** @@ -357,7 +358,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NativeDashboardServiceClient implements BackgroundResource { - private final NativeDashboardServiceSettings settings; + private final @Nullable NativeDashboardServiceSettings settings; private final NativeDashboardServiceStub stub; /** Constructs an instance of NativeDashboardServiceClient with default settings. */ @@ -398,7 +399,7 @@ protected NativeDashboardServiceClient(NativeDashboardServiceStub stub) { this.stub = stub; } - public final NativeDashboardServiceSettings getSettings() { + public final @Nullable NativeDashboardServiceSettings getSettings() { return settings; } @@ -433,7 +434,7 @@ public NativeDashboardServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NativeDashboard createNativeDashboard( - InstanceName parent, NativeDashboard nativeDashboard) { + @Nullable InstanceName parent, NativeDashboard nativeDashboard) { CreateNativeDashboardRequest request = CreateNativeDashboardRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -563,7 +564,7 @@ public final NativeDashboard createNativeDashboard(CreateNativeDashboardRequest * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NativeDashboard getNativeDashboard(NativeDashboardName name) { + public final NativeDashboard getNativeDashboard(@Nullable NativeDashboardName name) { GetNativeDashboardRequest request = GetNativeDashboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -692,7 +693,8 @@ public final NativeDashboard getNativeDashboard(GetNativeDashboardRequest reques * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNativeDashboardsPagedResponse listNativeDashboards(InstanceName parent) { + public final ListNativeDashboardsPagedResponse listNativeDashboards( + @Nullable InstanceName parent) { ListNativeDashboardsRequest request = ListNativeDashboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -974,7 +976,7 @@ public final NativeDashboard updateNativeDashboard(UpdateNativeDashboardRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NativeDashboard duplicateNativeDashboard( - NativeDashboardName name, NativeDashboard nativeDashboard) { + @Nullable NativeDashboardName name, NativeDashboard nativeDashboard) { DuplicateNativeDashboardRequest request = DuplicateNativeDashboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1110,7 +1112,7 @@ public final NativeDashboard duplicateNativeDashboard(DuplicateNativeDashboardRe * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNativeDashboard(NativeDashboardName name) { + public final void deleteNativeDashboard(@Nullable NativeDashboardName name) { DeleteNativeDashboardRequest request = DeleteNativeDashboardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1240,7 +1242,9 @@ public final UnaryCallable deleteNativeDash * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddChartResponse addChart( - NativeDashboardName name, DashboardQuery dashboardQuery, DashboardChart dashboardChart) { + @Nullable NativeDashboardName name, + DashboardQuery dashboardQuery, + DashboardChart dashboardChart) { AddChartRequest request = AddChartRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1382,7 +1386,7 @@ public final UnaryCallable addChartCallable() * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NativeDashboard removeChart(NativeDashboardName name) { + public final NativeDashboard removeChart(@Nullable NativeDashboardName name) { RemoveChartRequest request = RemoveChartRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return removeChart(request); @@ -1522,7 +1526,7 @@ public final UnaryCallable removeChartCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EditChartResponse editChart( - NativeDashboardName name, + @Nullable NativeDashboardName name, DashboardQuery dashboardQuery, DashboardChart dashboardChart, FieldMask editMask) { @@ -1681,7 +1685,7 @@ public final UnaryCallable editChartCallabl * projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DuplicateChartResponse duplicateChart(NativeDashboardName name) { + public final DuplicateChartResponse duplicateChart(@Nullable NativeDashboardName name) { DuplicateChartRequest request = DuplicateChartRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return duplicateChart(request); @@ -1812,7 +1816,7 @@ public final DuplicateChartResponse duplicateChart(DuplicateChartRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExportNativeDashboardsResponse exportNativeDashboards( - InstanceName parent, List names) { + @Nullable InstanceName parent, List names) { ExportNativeDashboardsRequest request = ExportNativeDashboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1945,7 +1949,7 @@ public final ExportNativeDashboardsResponse exportNativeDashboards( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ImportNativeDashboardsResponse importNativeDashboards( - InstanceName parent, ImportNativeDashboardsInlineSource source) { + @Nullable InstanceName parent, ImportNativeDashboardsInlineSource source) { ImportNativeDashboardsRequest request = ImportNativeDashboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2114,9 +2118,10 @@ public static class ListNativeDashboardsPage ListNativeDashboardsPage> { private ListNativeDashboardsPage( - PageContext + @Nullable + PageContext context, - ListNativeDashboardsResponse response) { + @Nullable ListNativeDashboardsResponse response) { super(context, response); } @@ -2126,15 +2131,17 @@ private static ListNativeDashboardsPage createEmptyPage() { @Override protected ListNativeDashboardsPage createPage( - PageContext + @Nullable + PageContext context, - ListNativeDashboardsResponse response) { + @Nullable ListNativeDashboardsResponse response) { return new ListNativeDashboardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2150,7 +2157,7 @@ public static class ListNativeDashboardsFixedSizeCollection ListNativeDashboardsFixedSizeCollection> { private ListNativeDashboardsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2160,7 +2167,7 @@ private static ListNativeDashboardsFixedSizeCollection createEmptyCollection() { @Override protected ListNativeDashboardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNativeDashboardsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java index 15a985d74927..c2fc7ae4279b 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NativeDashboardServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java index d96b3d8fef31..ad44f3669a6f 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java @@ -33,6 +33,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. /** @@ -217,7 +218,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReferenceListServiceClient implements BackgroundResource { - private final ReferenceListServiceSettings settings; + private final @Nullable ReferenceListServiceSettings settings; private final ReferenceListServiceStub stub; /** Constructs an instance of ReferenceListServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected ReferenceListServiceClient(ReferenceListServiceStub stub) { this.stub = stub; } - public final ReferenceListServiceSettings getSettings() { + public final @Nullable ReferenceListServiceSettings getSettings() { return settings; } @@ -289,7 +290,7 @@ public ReferenceListServiceStub getStub() { * `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReferenceList getReferenceList(ReferenceListName name) { + public final ReferenceList getReferenceList(@Nullable ReferenceListName name) { GetReferenceListRequest request = GetReferenceListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReferenceList(request); @@ -415,7 +416,7 @@ public final UnaryCallable getReferenceL * `projects/{project}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReferenceListsPagedResponse listReferenceLists(InstanceName parent) { + public final ListReferenceListsPagedResponse listReferenceLists(@Nullable InstanceName parent) { ListReferenceListsRequest request = ListReferenceListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -600,7 +601,7 @@ public final ListReferenceListsPagedResponse listReferenceLists( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReferenceList createReferenceList( - InstanceName parent, ReferenceList referenceList, String referenceListId) { + @Nullable InstanceName parent, ReferenceList referenceList, String referenceListId) { CreateReferenceListRequest request = CreateReferenceListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -942,8 +943,9 @@ public static class ListReferenceListsPage ListReferenceListsPage> { private ListReferenceListsPage( - PageContext context, - ListReferenceListsResponse response) { + @Nullable PageContext + context, + @Nullable ListReferenceListsResponse response) { super(context, response); } @@ -953,14 +955,16 @@ private static ListReferenceListsPage createEmptyPage() { @Override protected ListReferenceListsPage createPage( - PageContext context, - ListReferenceListsResponse response) { + @Nullable PageContext + context, + @Nullable ListReferenceListsResponse response) { return new ListReferenceListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -975,7 +979,7 @@ public static class ListReferenceListsFixedSizeCollection ListReferenceListsFixedSizeCollection> { private ListReferenceListsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -985,7 +989,7 @@ private static ListReferenceListsFixedSizeCollection createEmptyCollection() { @Override protected ListReferenceListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReferenceListsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java index 1ad73d6708e8..33a73c7af19a 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,7 +178,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); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReferenceListServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java index 7122065d5525..255803c2a82a 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RuleExecutionErrorServiceClient implements BackgroundResource { - private final RuleExecutionErrorServiceSettings settings; + private final @Nullable RuleExecutionErrorServiceSettings settings; private final RuleExecutionErrorServiceStub stub; /** Constructs an instance of RuleExecutionErrorServiceClient with default settings. */ @@ -191,7 +192,7 @@ protected RuleExecutionErrorServiceClient(RuleExecutionErrorServiceStub stub) { this.stub = stub; } - public final RuleExecutionErrorServiceSettings getSettings() { + public final @Nullable RuleExecutionErrorServiceSettings getSettings() { return settings; } @@ -225,7 +226,8 @@ public RuleExecutionErrorServiceStub getStub() { * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuleExecutionErrorsPagedResponse listRuleExecutionErrors(InstanceName parent) { + public final ListRuleExecutionErrorsPagedResponse listRuleExecutionErrors( + @Nullable InstanceName parent) { ListRuleExecutionErrorsRequest request = ListRuleExecutionErrorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -444,10 +446,11 @@ public static class ListRuleExecutionErrorsPage ListRuleExecutionErrorsPage> { private ListRuleExecutionErrorsPage( - PageContext< + @Nullable + PageContext< ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> context, - ListRuleExecutionErrorsResponse response) { + @Nullable ListRuleExecutionErrorsResponse response) { super(context, response); } @@ -457,16 +460,18 @@ private static ListRuleExecutionErrorsPage createEmptyPage() { @Override protected ListRuleExecutionErrorsPage createPage( - PageContext< + @Nullable + PageContext< ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> context, - ListRuleExecutionErrorsResponse response) { + @Nullable ListRuleExecutionErrorsResponse response) { return new ListRuleExecutionErrorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> context, ApiFuture futureResponse) { @@ -483,7 +488,7 @@ public static class ListRuleExecutionErrorsFixedSizeCollection ListRuleExecutionErrorsFixedSizeCollection> { private ListRuleExecutionErrorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -493,7 +498,7 @@ private static ListRuleExecutionErrorsFixedSizeCollection createEmptyCollection( @Override protected ListRuleExecutionErrorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuleExecutionErrorsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java index bcf40ac90a91..ab703908f638 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RuleExecutionErrorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java index 1d6a5ce5fbae..2985d0b1e17e 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java @@ -39,6 +39,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. /** @@ -377,7 +378,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RuleServiceClient implements BackgroundResource { - private final RuleServiceSettings settings; + private final @Nullable RuleServiceSettings settings; private final RuleServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -424,7 +425,7 @@ protected RuleServiceClient(RuleServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final RuleServiceSettings getSettings() { + public final @Nullable RuleServiceSettings getSettings() { return settings; } @@ -473,7 +474,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param rule Required. The rule to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rule createRule(InstanceName parent, Rule rule) { + public final Rule createRule(@Nullable InstanceName parent, Rule rule) { CreateRuleRequest request = CreateRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -591,7 +592,7 @@ public final UnaryCallable createRuleCallable() { * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rule getRule(RuleName name) { + public final Rule getRule(@Nullable RuleName name) { GetRuleRequest request = GetRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRule(request); @@ -705,7 +706,7 @@ public final UnaryCallable getRuleCallable() { * `projects/{project}/locations/{location}/instances/{instance}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRulesPagedResponse listRules(InstanceName parent) { + public final ListRulesPagedResponse listRules(@Nullable InstanceName parent) { ListRulesRequest request = ListRulesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRules(request); @@ -959,7 +960,7 @@ public final UnaryCallable updateRuleCallable() { * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRule(RuleName name) { + public final void deleteRule(@Nullable RuleName name) { DeleteRuleRequest request = DeleteRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRule(request); @@ -1075,7 +1076,8 @@ public final UnaryCallable deleteRuleCallable() { * @param ruleText Required. The rule text to verify as a UTF-8 string. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VerifyRuleTextResponse verifyRuleText(InstanceName instance, String ruleText) { + public final VerifyRuleTextResponse verifyRuleText( + @Nullable InstanceName instance, String ruleText) { VerifyRuleTextRequest request = VerifyRuleTextRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -1198,7 +1200,7 @@ public final VerifyRuleTextResponse verifyRuleText(VerifyRuleTextRequest request * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuleRevisionsPagedResponse listRuleRevisions(RuleName name) { + public final ListRuleRevisionsPagedResponse listRuleRevisions(@Nullable RuleName name) { ListRuleRevisionsRequest request = ListRuleRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1368,7 +1370,7 @@ public final ListRuleRevisionsPagedResponse listRuleRevisions(ListRuleRevisionsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRetrohuntAsync( - RuleName parent, Retrohunt retrohunt) { + @Nullable RuleName parent, Retrohunt retrohunt) { CreateRetrohuntRequest request = CreateRetrohuntRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1519,7 +1521,7 @@ public final UnaryCallable createRetrohuntCal * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Retrohunt getRetrohunt(RetrohuntName name) { + public final Retrohunt getRetrohunt(@Nullable RetrohuntName name) { GetRetrohuntRequest request = GetRetrohuntRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRetrohunt(request); @@ -1637,7 +1639,7 @@ public final UnaryCallable getRetrohuntCallable( * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRetrohuntsPagedResponse listRetrohunts(RuleName parent) { + public final ListRetrohuntsPagedResponse listRetrohunts(@Nullable RuleName parent) { ListRetrohuntsRequest request = ListRetrohuntsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1804,7 +1806,7 @@ public final ListRetrohuntsPagedResponse listRetrohunts(ListRetrohuntsRequest re * `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuleDeployment getRuleDeployment(RuleDeploymentName name) { + public final RuleDeployment getRuleDeployment(@Nullable RuleDeploymentName name) { GetRuleDeploymentRequest request = GetRuleDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1925,7 +1927,7 @@ public final UnaryCallable getRuleDepl * `projects/{project}/locations/{location}/instances/{instance}/rules/-` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuleDeploymentsPagedResponse listRuleDeployments(RuleName parent) { + public final ListRuleDeploymentsPagedResponse listRuleDeployments(@Nullable RuleName parent) { ListRuleDeploymentsRequest request = ListRuleDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2226,8 +2228,8 @@ public static class ListRulesPage extends AbstractPage { private ListRulesPage( - PageContext context, - ListRulesResponse response) { + @Nullable PageContext context, + @Nullable ListRulesResponse response) { super(context, response); } @@ -2237,14 +2239,14 @@ private static ListRulesPage createEmptyPage() { @Override protected ListRulesPage createPage( - PageContext context, - ListRulesResponse response) { + @Nullable PageContext context, + @Nullable ListRulesResponse response) { return new ListRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2254,7 +2256,7 @@ public static class ListRulesFixedSizeCollection extends AbstractFixedSizeCollection< ListRulesRequest, ListRulesResponse, Rule, ListRulesPage, ListRulesFixedSizeCollection> { - private ListRulesFixedSizeCollection(List pages, int collectionSize) { + private ListRulesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2264,7 +2266,7 @@ private static ListRulesFixedSizeCollection createEmptyCollection() { @Override protected ListRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRulesFixedSizeCollection(pages, collectionSize); } } @@ -2298,8 +2300,8 @@ public static class ListRuleRevisionsPage ListRuleRevisionsRequest, ListRuleRevisionsResponse, Rule, ListRuleRevisionsPage> { private ListRuleRevisionsPage( - PageContext context, - ListRuleRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRuleRevisionsResponse response) { super(context, response); } @@ -2309,14 +2311,14 @@ private static ListRuleRevisionsPage createEmptyPage() { @Override protected ListRuleRevisionsPage createPage( - PageContext context, - ListRuleRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRuleRevisionsResponse response) { return new ListRuleRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2331,7 +2333,7 @@ public static class ListRuleRevisionsFixedSizeCollection ListRuleRevisionsFixedSizeCollection> { private ListRuleRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2341,7 +2343,7 @@ private static ListRuleRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListRuleRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuleRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -2375,8 +2377,8 @@ public static class ListRetrohuntsPage ListRetrohuntsRequest, ListRetrohuntsResponse, Retrohunt, ListRetrohuntsPage> { private ListRetrohuntsPage( - PageContext context, - ListRetrohuntsResponse response) { + @Nullable PageContext context, + @Nullable ListRetrohuntsResponse response) { super(context, response); } @@ -2386,14 +2388,14 @@ private static ListRetrohuntsPage createEmptyPage() { @Override protected ListRetrohuntsPage createPage( - PageContext context, - ListRetrohuntsResponse response) { + @Nullable PageContext context, + @Nullable ListRetrohuntsResponse response) { return new ListRetrohuntsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2407,7 +2409,8 @@ public static class ListRetrohuntsFixedSizeCollection ListRetrohuntsPage, ListRetrohuntsFixedSizeCollection> { - private ListRetrohuntsFixedSizeCollection(List pages, int collectionSize) { + private ListRetrohuntsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2417,7 +2420,7 @@ private static ListRetrohuntsFixedSizeCollection createEmptyCollection() { @Override protected ListRetrohuntsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRetrohuntsFixedSizeCollection(pages, collectionSize); } } @@ -2455,9 +2458,10 @@ public static class ListRuleDeploymentsPage ListRuleDeploymentsPage> { private ListRuleDeploymentsPage( - PageContext + @Nullable + PageContext context, - ListRuleDeploymentsResponse response) { + @Nullable ListRuleDeploymentsResponse response) { super(context, response); } @@ -2467,15 +2471,17 @@ private static ListRuleDeploymentsPage createEmptyPage() { @Override protected ListRuleDeploymentsPage createPage( - PageContext + @Nullable + PageContext context, - ListRuleDeploymentsResponse response) { + @Nullable ListRuleDeploymentsResponse response) { return new ListRuleDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2491,7 +2497,7 @@ public static class ListRuleDeploymentsFixedSizeCollection ListRuleDeploymentsFixedSizeCollection> { private ListRuleDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2501,7 +2507,7 @@ private static ListRuleDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListRuleDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuleDeploymentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java index efd14db069c2..ddb11624fa8a 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -254,7 +255,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); } @@ -274,7 +275,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RuleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java index dc0b4c09bafd..7caf31839b6c 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/BigQueryExportServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java index 4bd5aa03da87..81c736ebe18a 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardChartServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,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); } @@ -298,7 +299,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDashboardChartSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java index a21ddd62afea..7c3ea109db01 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DashboardQueryServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,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); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDashboardQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java index dd77cc69ad52..58b82b93c0d5 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataAccessControlServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,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); } @@ -555,7 +556,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataAccessLabelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java index 9b0a4b7d5d0a..8058147e7ce3 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/DataTableServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -586,7 +587,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/EntityServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/EntityServiceStubSettings.java index 97d95cba088f..52e1b8236755 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/EntityServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/EntityServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -307,7 +308,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); } @@ -392,7 +393,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getWatchlistSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java index 9cdbad72cc92..b181d35fbd32 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FeaturedContentNativeDashboardServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -350,7 +351,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); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFeaturedContentNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java index 53e11e580b77..0e348449b1da 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/FindingsRefinementServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -482,7 +483,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); } @@ -639,7 +640,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFindingsRefinementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/InstanceServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/InstanceServiceStubSettings.java index 9d4a3b1903c3..5a679f2dd586 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/InstanceServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/InstanceServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java index 2e89f5696216..c96de4815915 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/NativeDashboardServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -396,7 +397,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); } @@ -507,7 +508,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNativeDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java index cf5b11ff9719..7d6eb38e424b 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -326,7 +327,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); } @@ -414,7 +415,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getReferenceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java index 85fce3b23159..fc7bdb7a2c76 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -374,7 +375,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRuleExecutionErrorsSettings = diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java index b9993189651f..554a5f42e609 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -62,11 +63,12 @@ @Generated("by gapic-generator-java") public abstract class RuleServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java index 7f2478a2cedb..66845534e1d3 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -596,7 +597,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); } @@ -735,7 +736,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java index e9a5fbbe335c..c641fd4c1319 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/BigQueryExportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static BigQueryExportName parse(String formattedString) { + public static @Nullable BigQueryExportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BigQueryExportName> values) { List list = new ArrayList<>(values.size()); for (BigQueryExportName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ContentHubName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ContentHubName.java index c02bd5708578..e1679a253f99 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ContentHubName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ContentHubName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static ContentHubName parse(String formattedString) { + public static @Nullable ContentHubName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContentHubName> values) { List list = new ArrayList<>(values.size()); for (ContentHubName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartName.java index d00b1a1b9b44..824d3079f241 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardChartName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static DashboardChartName parse(String formattedString) { + public static @Nullable DashboardChartName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DashboardChartName> values) { List list = new ArrayList<>(values.size()); for (DashboardChartName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryName.java index 40e5c7c07b34..1e2adbaf618f 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DashboardQueryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static DashboardQueryName parse(String formattedString) { + public static @Nullable DashboardQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DashboardQueryName> values) { List list = new ArrayList<>(values.size()); for (DashboardQueryName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessLabelName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessLabelName.java index a303d1e9565c..6b904fe22fff 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessLabelName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessLabelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataAccessLabelName parse(String formattedString) { + public static @Nullable DataAccessLabelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAccessLabelName> values) { List list = new ArrayList<>(values.size()); for (DataAccessLabelName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessScopeName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessScopeName.java index e37a3d2d3805..fedcb87cb391 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessScopeName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataAccessScopeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataAccessScopeName parse(String formattedString) { + public static @Nullable DataAccessScopeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAccessScopeName> values) { List list = new ArrayList<>(values.size()); for (DataAccessScopeName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java index db8bd12104cb..9145e45c4a13 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static DataTableName parse(String formattedString) { + public static @Nullable DataTableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataTableName> values) { List list = new ArrayList<>(values.size()); for (DataTableName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java index 83a3f51fca9a..b90b91cd759b 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableOperationErrorsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataTableOperationErrorsName parse(String formattedString) { + public static @Nullable DataTableOperationErrorsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataTableOperationErrorsName> values) { List list = new ArrayList<>(values.size()); for (DataTableOperationErrorsName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java index 16c8bcfe1b88..f5b55e7b6664 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/DataTableRowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static DataTableRowName parse(String formattedString) { + public static @Nullable DataTableRowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataTableRowName> values) { List list = new ArrayList<>(values.size()); for (DataTableRowName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardName.java index 93d8d79abd2c..f6ee943f8361 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FeaturedContentNativeDashboardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -101,7 +102,7 @@ public static String format( .toString(); } - public static FeaturedContentNativeDashboardName parse(String formattedString) { + public static @Nullable FeaturedContentNativeDashboardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -124,7 +125,8 @@ public static List parseList(List fo return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable FeaturedContentNativeDashboardName> values) { List list = new ArrayList<>(values.size()); for (FeaturedContentNativeDashboardName value : values) { if (value == null) { @@ -184,7 +186,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java index c6548808f204..c8b0d7bf7a2a 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FindingsRefinementDeploymentName parse(String formattedString) { + public static @Nullable FindingsRefinementDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingsRefinementDeploymentName> values) { List list = new ArrayList<>(values.size()); for (FindingsRefinementDeploymentName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java index e1f5966edd88..6f574fa36f0d 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/FindingsRefinementName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static FindingsRefinementName parse(String formattedString) { + public static @Nullable FindingsRefinementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingsRefinementName> values) { List list = new ArrayList<>(values.size()); for (FindingsRefinementName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceName.java index 1c192e95226e..9e83c6030850 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardName.java index 1637721aa35a..92b1f5965ffb 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/NativeDashboardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static NativeDashboardName parse(String formattedString) { + public static @Nullable NativeDashboardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NativeDashboardName> values) { List list = new ArrayList<>(values.size()); for (NativeDashboardName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListName.java index 609d7ba1f90b..1eed43a8e0c1 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReferenceListName parse(String formattedString) { + public static @Nullable ReferenceListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReferenceListName> values) { List list = new ArrayList<>(values.size()); for (ReferenceListName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RetrohuntName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RetrohuntName.java index c0e9814bd5b4..0b2313c5b833 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RetrohuntName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RetrohuntName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static RetrohuntName parse(String formattedString) { + public static @Nullable RetrohuntName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RetrohuntName> values) { List list = new ArrayList<>(values.size()); for (RetrohuntName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleDeploymentName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleDeploymentName.java index d04f640e8352..b350dd258df1 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleDeploymentName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static RuleDeploymentName parse(String formattedString) { + public static @Nullable RuleDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleDeploymentName> values) { List list = new ArrayList<>(values.size()); for (RuleDeploymentName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java index 8cbe83ed8681..8945e2ca8ece 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RuleExecutionErrorName parse(String formattedString) { + public static @Nullable RuleExecutionErrorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleExecutionErrorName> values) { List list = new ArrayList<>(values.size()); for (RuleExecutionErrorName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleName.java index 675240f0e5c5..62a07cb50561 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static RuleName parse(String formattedString) { + public static @Nullable RuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleName> values) { List list = new ArrayList<>(values.size()); for (RuleName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/WatchlistName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/WatchlistName.java index 77a52c390d65..f19d0fbae01d 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/WatchlistName.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/WatchlistName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static WatchlistName parse(String formattedString) { + public static @Nullable WatchlistName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WatchlistName> values) { List list = new ArrayList<>(values.size()); for (WatchlistName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistryClient.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistryClient.java index 32bf3c724137..3d4dae8ab5ab 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistryClient.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistryClient.java @@ -36,6 +36,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. /** @@ -237,7 +238,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudApiRegistryClient implements BackgroundResource { - private final CloudApiRegistrySettings settings; + private final @Nullable CloudApiRegistrySettings settings; private final CloudApiRegistryStub stub; /** Constructs an instance of CloudApiRegistryClient with default settings. */ @@ -277,7 +278,7 @@ protected CloudApiRegistryClient(CloudApiRegistryStub stub) { this.stub = stub; } - public final CloudApiRegistrySettings getSettings() { + public final @Nullable CloudApiRegistrySettings getSettings() { return settings; } @@ -308,7 +309,7 @@ public CloudApiRegistryStub getStub() { * projects/{project}/locations/{location}/mcpServers/{mcp_server} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpServer getMcpServer(McpServerName name) { + public final McpServer getMcpServer(@Nullable McpServerName name) { GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMcpServer(request); @@ -429,7 +430,7 @@ public final UnaryCallable getMcpServerCallable( * @param parent Required. Parent value for ListMcpServersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpServersPagedResponse listMcpServers(LocationName parent) { + public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) { ListMcpServersRequest request = ListMcpServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -600,7 +601,7 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re * projects/{project}/locations/{location}/mcpServers/{mcp_server}/mcpTools/{mcp_tool} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpTool getMcpTool(McpToolName name) { + public final McpTool getMcpTool(@Nullable McpToolName name) { GetMcpToolRequest request = GetMcpToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMcpTool(request); @@ -721,7 +722,7 @@ public final UnaryCallable getMcpToolCallable() { * @param parent Required. Parent value for ListMcpToolsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpToolsPagedResponse listMcpTools(McpServerName parent) { + public final ListMcpToolsPagedResponse listMcpTools(@Nullable McpServerName parent) { ListMcpToolsRequest request = ListMcpToolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1093,8 +1094,8 @@ public static class ListMcpServersPage ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { private ListMcpServersPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { super(context, response); } @@ -1104,14 +1105,14 @@ private static ListMcpServersPage createEmptyPage() { @Override protected ListMcpServersPage createPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { return new ListMcpServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1125,7 +1126,8 @@ public static class ListMcpServersFixedSizeCollection ListMcpServersPage, ListMcpServersFixedSizeCollection> { - private ListMcpServersFixedSizeCollection(List pages, int collectionSize) { + private ListMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1135,7 +1137,7 @@ private static ListMcpServersFixedSizeCollection createEmptyCollection() { @Override protected ListMcpServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMcpServersFixedSizeCollection(pages, collectionSize); } } @@ -1168,8 +1170,8 @@ public static class ListMcpToolsPage extends AbstractPage { private ListMcpToolsPage( - PageContext context, - ListMcpToolsResponse response) { + @Nullable PageContext context, + @Nullable ListMcpToolsResponse response) { super(context, response); } @@ -1179,14 +1181,14 @@ private static ListMcpToolsPage createEmptyPage() { @Override protected ListMcpToolsPage createPage( - PageContext context, - ListMcpToolsResponse response) { + @Nullable PageContext context, + @Nullable ListMcpToolsResponse response) { return new ListMcpToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1200,7 +1202,8 @@ public static class ListMcpToolsFixedSizeCollection ListMcpToolsPage, ListMcpToolsFixedSizeCollection> { - private ListMcpToolsFixedSizeCollection(List pages, int collectionSize) { + private ListMcpToolsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1210,7 +1213,7 @@ private static ListMcpToolsFixedSizeCollection createEmptyCollection() { @Override protected ListMcpToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMcpToolsFixedSizeCollection(pages, collectionSize); } } @@ -1244,8 +1247,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1255,14 +1258,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1276,7 +1279,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1286,7 +1290,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistrySettings.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistrySettings.java index 7bf7d8630337..9451d38bd13b 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistrySettings.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/CloudApiRegistrySettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudApiRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/CloudApiRegistryStubSettings.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/CloudApiRegistryStubSettings.java index 847f8f3818e0..568a742952d8 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/CloudApiRegistryStubSettings.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/CloudApiRegistryStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -428,7 +429,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); } @@ -510,7 +511,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMcpServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistryClient.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistryClient.java index e4a470a3acd0..6099e5905180 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistryClient.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistryClient.java @@ -37,6 +37,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. /** @@ -239,7 +240,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudApiRegistryClient implements BackgroundResource { - private final CloudApiRegistrySettings settings; + private final @Nullable CloudApiRegistrySettings settings; private final CloudApiRegistryStub stub; /** Constructs an instance of CloudApiRegistryClient with default settings. */ @@ -279,7 +280,7 @@ protected CloudApiRegistryClient(CloudApiRegistryStub stub) { this.stub = stub; } - public final CloudApiRegistrySettings getSettings() { + public final @Nullable CloudApiRegistrySettings getSettings() { return settings; } @@ -309,7 +310,7 @@ public CloudApiRegistryStub getStub() { * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpServer getMcpServer(McpServerName name) { + public final McpServer getMcpServer(@Nullable McpServerName name) { GetMcpServerRequest request = GetMcpServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMcpServer(request); @@ -429,7 +430,7 @@ public final UnaryCallable getMcpServerCallable( * @param parent Required. Parent value for ListMcpServersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpServersPagedResponse listMcpServers(LocationName parent) { + public final ListMcpServersPagedResponse listMcpServers(@Nullable LocationName parent) { ListMcpServersRequest request = ListMcpServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -599,7 +600,7 @@ public final ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest re * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final McpTool getMcpTool(McpToolName name) { + public final McpTool getMcpTool(@Nullable McpToolName name) { GetMcpToolRequest request = GetMcpToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMcpTool(request); @@ -719,7 +720,7 @@ public final UnaryCallable getMcpToolCallable() { * @param parent Required. Parent value for ListMcpToolsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMcpToolsPagedResponse listMcpTools(McpServerName parent) { + public final ListMcpToolsPagedResponse listMcpTools(@Nullable McpServerName parent) { ListMcpToolsRequest request = ListMcpToolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1091,8 +1092,8 @@ public static class ListMcpServersPage ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { private ListMcpServersPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { super(context, response); } @@ -1102,14 +1103,14 @@ private static ListMcpServersPage createEmptyPage() { @Override protected ListMcpServersPage createPage( - PageContext context, - ListMcpServersResponse response) { + @Nullable PageContext context, + @Nullable ListMcpServersResponse response) { return new ListMcpServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1123,7 +1124,8 @@ public static class ListMcpServersFixedSizeCollection ListMcpServersPage, ListMcpServersFixedSizeCollection> { - private ListMcpServersFixedSizeCollection(List pages, int collectionSize) { + private ListMcpServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1133,7 +1135,7 @@ private static ListMcpServersFixedSizeCollection createEmptyCollection() { @Override protected ListMcpServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMcpServersFixedSizeCollection(pages, collectionSize); } } @@ -1166,8 +1168,8 @@ public static class ListMcpToolsPage extends AbstractPage { private ListMcpToolsPage( - PageContext context, - ListMcpToolsResponse response) { + @Nullable PageContext context, + @Nullable ListMcpToolsResponse response) { super(context, response); } @@ -1177,14 +1179,14 @@ private static ListMcpToolsPage createEmptyPage() { @Override protected ListMcpToolsPage createPage( - PageContext context, - ListMcpToolsResponse response) { + @Nullable PageContext context, + @Nullable ListMcpToolsResponse response) { return new ListMcpToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1198,7 +1200,8 @@ public static class ListMcpToolsFixedSizeCollection ListMcpToolsPage, ListMcpToolsFixedSizeCollection> { - private ListMcpToolsFixedSizeCollection(List pages, int collectionSize) { + private ListMcpToolsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1208,7 +1211,7 @@ private static ListMcpToolsFixedSizeCollection createEmptyCollection() { @Override protected ListMcpToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMcpToolsFixedSizeCollection(pages, collectionSize); } } @@ -1242,8 +1245,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1253,14 +1256,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1274,7 +1277,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1284,7 +1288,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistrySettings.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistrySettings.java index cc236ae7eecd..0ec1d24d7d47 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistrySettings.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/CloudApiRegistrySettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudApiRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/CloudApiRegistryStubSettings.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/CloudApiRegistryStubSettings.java index 7661feae8546..84199381c9e4 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/CloudApiRegistryStubSettings.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/CloudApiRegistryStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -429,7 +430,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); } @@ -511,7 +512,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMcpServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/LocationName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/LocationName.java index 03a16e036fa7..d8ab2eb0ac78 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/LocationName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpServerName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpServerName.java index 21bfd22d39ad..0e9e1c25fec4 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpServerName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpServerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -163,7 +164,7 @@ public static String formatProjectLocationMcpServerName( .toString(); } - public static McpServerName parse(String formattedString) { + public static @Nullable McpServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -191,7 +192,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable McpServerName> values) { List list = new ArrayList<>(values.size()); for (McpServerName value : values) { if (value == null) { @@ -243,7 +244,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpToolName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpToolName.java index 0f38550f03d6..caea9732aeec 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpToolName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/src/main/java/com/google/cloud/apiregistry/v1/McpToolName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -177,7 +178,7 @@ public static String formatProjectLocationMcpServerMcpToolName( .toString(); } - public static McpToolName parse(String formattedString) { + public static @Nullable McpToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -209,7 +210,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable McpToolName> values) { List list = new ArrayList<>(values.size()); for (McpToolName value : values) { if (value == null) { @@ -264,7 +265,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/LocationName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/LocationName.java index 1d26a5bd017f..3f97cad11fdb 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/LocationName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpServerName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpServerName.java index 0e8eafc928fe..f9abbd7ac580 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpServerName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpServerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -163,7 +164,7 @@ public static String formatProjectLocationMcpServerName( .toString(); } - public static McpServerName parse(String formattedString) { + public static @Nullable McpServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -191,7 +192,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable McpServerName> values) { List list = new ArrayList<>(values.size()); for (McpServerName value : values) { if (value == null) { @@ -243,7 +244,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpToolName.java b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpToolName.java index ca089be6586f..93e87befc958 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpToolName.java +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/src/main/java/com/google/cloud/apiregistry/v1beta/McpToolName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -177,7 +178,7 @@ public static String formatProjectLocationMcpServerMcpToolName( .toString(); } - public static McpToolName parse(String formattedString) { + public static @Nullable McpToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -209,7 +210,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable McpToolName> values) { List list = new ArrayList<>(values.size()); for (McpToolName value : values) { if (value == null) { @@ -264,7 +265,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java index 937f97677ed9..33e962a74996 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java @@ -78,6 +78,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. /** @@ -561,7 +562,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudBuildClient implements BackgroundResource { - private final CloudBuildSettings settings; + private final @Nullable CloudBuildSettings settings; private final CloudBuildStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -607,7 +608,7 @@ protected CloudBuildClient(CloudBuildStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudBuildSettings getSettings() { + public final @Nullable CloudBuildSettings getSettings() { return settings; } @@ -658,7 +659,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBuildAsync( - LocationName parent) { + @Nullable LocationName parent) { CreateBuildRequest request = CreateBuildRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -691,7 +692,8 @@ public final OperationFuture createBuildAsync( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createBuildAsync(ProjectName parent) { + public final OperationFuture createBuildAsync( + @Nullable ProjectName parent) { CreateBuildRequest request = CreateBuildRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -887,7 +889,7 @@ public final UnaryCallable createBuildCallable() * `projects/{project}/locations/{location}/builds/{build}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Build getBuild(BuildName name) { + public final Build getBuild(@Nullable BuildName name) { GetBuildRequest request = GetBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBuild(request); @@ -1192,7 +1194,7 @@ public final UnaryCallable listBuildsCall * `projects/{project}/locations/{location}/builds/{build}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Build cancelBuild(BuildName name) { + public final Build cancelBuild(@Nullable BuildName name) { CancelBuildRequest request = CancelBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelBuild(request); @@ -1365,7 +1367,8 @@ public final UnaryCallable cancelBuildCallable() { * `projects/{project}/locations/{location}/builds/{build}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture retryBuildAsync(BuildName name) { + public final OperationFuture retryBuildAsync( + @Nullable BuildName name) { RetryBuildRequest request = RetryBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return retryBuildAsync(request); @@ -1830,7 +1833,7 @@ public final UnaryCallable approveBuildCallable( * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BuildTrigger createBuildTrigger(LocationName parent) { + public final BuildTrigger createBuildTrigger(@Nullable LocationName parent) { CreateBuildTriggerRequest request = CreateBuildTriggerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1860,7 +1863,7 @@ public final BuildTrigger createBuildTrigger(LocationName parent) { * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BuildTrigger createBuildTrigger(ProjectName parent) { + public final BuildTrigger createBuildTrigger(@Nullable ProjectName parent) { CreateBuildTriggerRequest request = CreateBuildTriggerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2007,7 +2010,7 @@ public final UnaryCallable createBuildT * `projects/{project}/locations/{location}/triggers/{trigger}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BuildTrigger getBuildTrigger(BuildTriggerName name) { + public final BuildTrigger getBuildTrigger(@Nullable BuildTriggerName name) { GetBuildTriggerRequest request = GetBuildTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBuildTrigger(request); @@ -2288,7 +2291,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR * `projects/{project}/locations/{location}/triggers/{trigger}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBuildTrigger(BuildTriggerName name) { + public final void deleteBuildTrigger(@Nullable BuildTriggerName name) { DeleteBuildTriggerRequest request = DeleteBuildTriggerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2762,7 +2765,7 @@ public final ReceiveTriggerWebhookResponse receiveTriggerWebhook( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkerPoolAsync( - LocationName parent, WorkerPool workerPool, String workerPoolId) { + @Nullable LocationName parent, WorkerPool workerPool, String workerPoolId) { CreateWorkerPoolRequest request = CreateWorkerPoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2929,7 +2932,7 @@ public final UnaryCallable createWorkerPoolC * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkerPool getWorkerPool(WorkerPoolName name) { + public final WorkerPool getWorkerPool(@Nullable WorkerPoolName name) { GetWorkerPoolRequest request = GetWorkerPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkerPool(request); @@ -3040,7 +3043,7 @@ public final UnaryCallable getWorkerPoolCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkerPoolAsync( - WorkerPoolName name) { + @Nullable WorkerPoolName name) { DeleteWorkerPoolRequest request = DeleteWorkerPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWorkerPoolAsync(request); @@ -3319,7 +3322,7 @@ public final UnaryCallable updateWorkerPoolC * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkerPoolsPagedResponse listWorkerPools(LocationName parent) { + public final ListWorkerPoolsPagedResponse listWorkerPools(@Nullable LocationName parent) { ListWorkerPoolsRequest request = ListWorkerPoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3482,7 +3485,8 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest * `projects/{project}/locations/{location}/defaultServiceAccount` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DefaultServiceAccount getDefaultServiceAccount(DefaultServiceAccountName name) { + public final DefaultServiceAccount getDefaultServiceAccount( + @Nullable DefaultServiceAccountName name) { GetDefaultServiceAccountRequest request = GetDefaultServiceAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3632,8 +3636,8 @@ public static class ListBuildsPage extends AbstractPage { private ListBuildsPage( - PageContext context, - ListBuildsResponse response) { + @Nullable PageContext context, + @Nullable ListBuildsResponse response) { super(context, response); } @@ -3643,14 +3647,14 @@ private static ListBuildsPage createEmptyPage() { @Override protected ListBuildsPage createPage( - PageContext context, - ListBuildsResponse response) { + @Nullable PageContext context, + @Nullable ListBuildsResponse response) { return new ListBuildsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3664,7 +3668,8 @@ public static class ListBuildsFixedSizeCollection ListBuildsPage, ListBuildsFixedSizeCollection> { - private ListBuildsFixedSizeCollection(List pages, int collectionSize) { + private ListBuildsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3674,7 +3679,7 @@ private static ListBuildsFixedSizeCollection createEmptyCollection() { @Override protected ListBuildsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBuildsFixedSizeCollection(pages, collectionSize); } } @@ -3711,8 +3716,9 @@ public static class ListBuildTriggersPage ListBuildTriggersPage> { private ListBuildTriggersPage( - PageContext context, - ListBuildTriggersResponse response) { + @Nullable PageContext + context, + @Nullable ListBuildTriggersResponse response) { super(context, response); } @@ -3722,14 +3728,16 @@ private static ListBuildTriggersPage createEmptyPage() { @Override protected ListBuildTriggersPage createPage( - PageContext context, - ListBuildTriggersResponse response) { + @Nullable PageContext + context, + @Nullable ListBuildTriggersResponse response) { return new ListBuildTriggersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3744,7 +3752,7 @@ public static class ListBuildTriggersFixedSizeCollection ListBuildTriggersFixedSizeCollection> { private ListBuildTriggersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3754,7 +3762,7 @@ private static ListBuildTriggersFixedSizeCollection createEmptyCollection() { @Override protected ListBuildTriggersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBuildTriggersFixedSizeCollection(pages, collectionSize); } } @@ -3788,8 +3796,8 @@ public static class ListWorkerPoolsPage ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage> { private ListWorkerPoolsPage( - PageContext context, - ListWorkerPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkerPoolsResponse response) { super(context, response); } @@ -3799,14 +3807,14 @@ private static ListWorkerPoolsPage createEmptyPage() { @Override protected ListWorkerPoolsPage createPage( - PageContext context, - ListWorkerPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkerPoolsResponse response) { return new ListWorkerPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3821,7 +3829,7 @@ public static class ListWorkerPoolsFixedSizeCollection ListWorkerPoolsFixedSizeCollection> { private ListWorkerPoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3831,7 +3839,7 @@ private static ListWorkerPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkerPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkerPoolsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java index 45eaefeea864..d702f2f64813 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -351,7 +352,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); } @@ -371,7 +372,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudBuildStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java index af5e6effc177..1dcbf61709af 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java @@ -59,6 +59,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class CloudBuildStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java index ae47b5a4e81f..5f90c8a3a8ad 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java @@ -93,6 +93,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -631,7 +632,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); } @@ -787,7 +788,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createBuildSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerClient.java index 0ee5a9af3853..64e78c83407c 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerClient.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerClient.java @@ -71,6 +71,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. /** @@ -473,7 +474,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RepositoryManagerClient implements BackgroundResource { - private final RepositoryManagerSettings settings; + private final @Nullable RepositoryManagerSettings settings; private final RepositoryManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -521,7 +522,7 @@ protected RepositoryManagerClient(RepositoryManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final RepositoryManagerSettings getSettings() { + public final @Nullable RepositoryManagerSettings getSettings() { return settings; } @@ -576,7 +577,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionAsync( - LocationName parent, Connection connection, String connectionId) { + @Nullable LocationName parent, Connection connection, String connectionId) { CreateConnectionRequest request = CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -740,7 +741,7 @@ public final UnaryCallable createConnectionC * `projects/*/locations/*/connections/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection getConnection(ConnectionName name) { + public final Connection getConnection(@Nullable ConnectionName name) { GetConnectionRequest request = GetConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnection(request); @@ -853,7 +854,7 @@ public final UnaryCallable getConnectionCallab * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(LocationName parent) { + public final ListConnectionsPagedResponse listConnections(@Nullable LocationName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1147,7 +1148,7 @@ public final UnaryCallable updateConnectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectionAsync( - ConnectionName name) { + @Nullable ConnectionName name) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteConnectionAsync(request); @@ -1303,7 +1304,7 @@ public final UnaryCallable deleteConnectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRepositoryAsync( - ConnectionName parent, Repository repository, String repositoryId) { + @Nullable ConnectionName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1473,7 +1474,8 @@ public final UnaryCallable createRepositoryC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateRepositoriesAsync(ConnectionName parent, List requests) { + batchCreateRepositoriesAsync( + @Nullable ConnectionName parent, List requests) { BatchCreateRepositoriesRequest request = BatchCreateRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1633,7 +1635,7 @@ public final UnaryCallable createRepositoryC * `projects/*/locations/*/connections/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -1751,7 +1753,7 @@ public final UnaryCallable getRepositoryCallab * `projects/*/locations/*/connections/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(ConnectionName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable ConnectionName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1921,7 +1923,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRepositoryAsync( - RepositoryName name) { + @Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRepositoryAsync(request); @@ -2077,7 +2079,8 @@ public final UnaryCallable deleteRepositoryC * `projects/*/locations/*/connections/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchReadWriteTokenResponse fetchReadWriteToken(RepositoryName repository) { + public final FetchReadWriteTokenResponse fetchReadWriteToken( + @Nullable RepositoryName repository) { FetchReadWriteTokenRequest request = FetchReadWriteTokenRequest.newBuilder() .setRepository(repository == null ? null : repository.toString()) @@ -2199,7 +2202,7 @@ public final FetchReadWriteTokenResponse fetchReadWriteToken(FetchReadWriteToken * `projects/*/locations/*/connections/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchReadTokenResponse fetchReadToken(RepositoryName repository) { + public final FetchReadTokenResponse fetchReadToken(@Nullable RepositoryName repository) { FetchReadTokenRequest request = FetchReadTokenRequest.newBuilder() .setRepository(repository == null ? null : repository.toString()) @@ -2434,7 +2437,7 @@ public final FetchLinkableRepositoriesPagedResponse fetchLinkableRepositories( * `projects/*/locations/*/connections/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchGitRefsResponse fetchGitRefs(RepositoryName repository) { + public final FetchGitRefsResponse fetchGitRefs(@Nullable RepositoryName repository) { FetchGitRefsRequest request = FetchGitRefsRequest.newBuilder() .setRepository(repository == null ? null : repository.toString()) @@ -2781,8 +2784,8 @@ public static class ListConnectionsPage ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -2792,14 +2795,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2814,7 +2817,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2824,7 +2827,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -2858,8 +2861,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -2869,14 +2873,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2891,7 +2897,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2901,7 +2907,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -2939,9 +2945,11 @@ public static class FetchLinkableRepositoriesPage FetchLinkableRepositoriesPage> { private FetchLinkableRepositoriesPage( - PageContext + @Nullable + PageContext< + FetchLinkableRepositoriesRequest, FetchLinkableRepositoriesResponse, Repository> context, - FetchLinkableRepositoriesResponse response) { + @Nullable FetchLinkableRepositoriesResponse response) { super(context, response); } @@ -2951,15 +2959,19 @@ private static FetchLinkableRepositoriesPage createEmptyPage() { @Override protected FetchLinkableRepositoriesPage createPage( - PageContext + @Nullable + PageContext< + FetchLinkableRepositoriesRequest, FetchLinkableRepositoriesResponse, Repository> context, - FetchLinkableRepositoriesResponse response) { + @Nullable FetchLinkableRepositoriesResponse response) { return new FetchLinkableRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + FetchLinkableRepositoriesRequest, FetchLinkableRepositoriesResponse, Repository> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2975,7 +2987,7 @@ public static class FetchLinkableRepositoriesFixedSizeCollection FetchLinkableRepositoriesFixedSizeCollection> { private FetchLinkableRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2985,7 +2997,7 @@ private static FetchLinkableRepositoriesFixedSizeCollection createEmptyCollectio @Override protected FetchLinkableRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchLinkableRepositoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerSettings.java index c0c627e526ce..69b68d4272b1 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/RepositoryManagerSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -340,7 +341,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); } @@ -360,7 +361,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RepositoryManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStub.java index 1ed8bf88358f..825c2c429b27 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStub.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,11 +69,12 @@ @Generated("by gapic-generator-java") public abstract class RepositoryManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java index 25a9f4f190cb..482560beaa18 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/RepositoryManagerStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -633,7 +634,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); } @@ -782,7 +783,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java index 3ec73e0c6c70..6ba35bb7e144 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationBuildName( .toString(); } - public static BuildName parse(String formattedString) { + public static @Nullable BuildName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BuildName> values) { List list = new ArrayList<>(values.size()); for (BuildName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java index f0516fcae78f..d929bc48e81e 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTriggerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationTriggerName( .toString(); } - public static BuildTriggerName parse(String formattedString) { + public static @Nullable BuildTriggerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BuildTriggerName> values) { List list = new ArrayList<>(values.size()); for (BuildTriggerName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java index 733b723a29ed..05fc12a8f727 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static DefaultServiceAccountName parse(String formattedString) { + public static @Nullable DefaultServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DefaultServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (DefaultServiceAccountName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java index c8404f2c228c..6ab1e1927246 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java index 31ccf419abd4..83227438ebf8 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolName.java index dee4541954a0..d548b92b7c28 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolName.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workerPool) .toString(); } - public static WorkerPoolName parse(String formattedString) { + public static @Nullable WorkerPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkerPoolName> values) { List list = new ArrayList<>(values.size()); for (WorkerPoolName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/ConnectionName.java b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/ConnectionName.java index ca335eefb47a..d57f9ec64e3e 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/ConnectionName.java +++ b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/ConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String connection) .toString(); } - public static ConnectionName parse(String formattedString) { + public static @Nullable ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionName> values) { List list = new ArrayList<>(values.size()); for (ConnectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/LocationName.java b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/LocationName.java index a81f38092cdf..d0af27f2aad7 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/LocationName.java +++ b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryName.java b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryName.java index 4c82c6efd267..1a53c88b1fbe 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryName.java +++ b/java-cloudbuild/proto-google-cloud-build-v2/src/main/java/com/google/cloudbuild/v2/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java index 2537f6aee7a7..bc485a68bb13 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceClient.java @@ -37,6 +37,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. /** @@ -220,7 +221,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConsumerProcurementServiceClient implements BackgroundResource { - private final ConsumerProcurementServiceSettings settings; + private final @Nullable ConsumerProcurementServiceSettings settings; private final ConsumerProcurementServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -270,7 +271,7 @@ protected ConsumerProcurementServiceClient(ConsumerProcurementServiceStub stub) this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConsumerProcurementServiceSettings getSettings() { + public final @Nullable ConsumerProcurementServiceSettings getSettings() { return settings; } @@ -879,8 +880,8 @@ public static class ListOrdersPage extends AbstractPage { private ListOrdersPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { super(context, response); } @@ -890,14 +891,14 @@ private static ListOrdersPage createEmptyPage() { @Override protected ListOrdersPage createPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { return new ListOrdersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -911,7 +912,8 @@ public static class ListOrdersFixedSizeCollection ListOrdersPage, ListOrdersFixedSizeCollection> { - private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + private ListOrdersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -921,7 +923,7 @@ private static ListOrdersFixedSizeCollection createEmptyCollection() { @Override protected ListOrdersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrdersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java index 09e425334b00..f3e12fdabcbe 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/ConsumerProcurementServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConsumerProcurementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceClient.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceClient.java index 4a058c3de8d8..72aaa1024739 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceClient.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceClient.java @@ -33,6 +33,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. /** @@ -217,7 +218,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LicenseManagementServiceClient implements BackgroundResource { - private final LicenseManagementServiceSettings settings; + private final @Nullable LicenseManagementServiceSettings settings; private final LicenseManagementServiceStub stub; /** Constructs an instance of LicenseManagementServiceClient with default settings. */ @@ -259,7 +260,7 @@ protected LicenseManagementServiceClient(LicenseManagementServiceStub stub) { this.stub = stub; } - public final LicenseManagementServiceSettings getSettings() { + public final @Nullable LicenseManagementServiceSettings getSettings() { return settings; } @@ -829,9 +830,10 @@ public static class EnumerateLicensedUsersPage EnumerateLicensedUsersPage> { private EnumerateLicensedUsersPage( - PageContext + @Nullable + PageContext context, - EnumerateLicensedUsersResponse response) { + @Nullable EnumerateLicensedUsersResponse response) { super(context, response); } @@ -841,15 +843,17 @@ private static EnumerateLicensedUsersPage createEmptyPage() { @Override protected EnumerateLicensedUsersPage createPage( - PageContext + @Nullable + PageContext context, - EnumerateLicensedUsersResponse response) { + @Nullable EnumerateLicensedUsersResponse response) { return new EnumerateLicensedUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -865,7 +869,7 @@ public static class EnumerateLicensedUsersFixedSizeCollection EnumerateLicensedUsersFixedSizeCollection> { private EnumerateLicensedUsersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -875,7 +879,7 @@ private static EnumerateLicensedUsersFixedSizeCollection createEmptyCollection() @Override protected EnumerateLicensedUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new EnumerateLicensedUsersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceSettings.java index 4a36973c5c03..73ef9d0c2dbb 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/LicenseManagementServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LicenseManagementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java index 847cfa2b7715..3986345d2556 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStub.java @@ -35,6 +35,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class ConsumerProcurementServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java index 3b460e90f5f1..96f55fbc7fec 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/ConsumerProcurementServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -364,7 +365,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); } @@ -460,7 +461,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); placeOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/LicenseManagementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/LicenseManagementServiceStubSettings.java index a85fa90a1a30..460a43e13f98 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/LicenseManagementServiceStubSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/LicenseManagementServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -328,7 +329,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); } @@ -395,7 +396,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLicensePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java index 3a97bd9d0b5d..82defe9b8b52 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java @@ -37,6 +37,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. /** @@ -191,7 +192,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConsumerProcurementServiceClient implements BackgroundResource { - private final ConsumerProcurementServiceSettings settings; + private final @Nullable ConsumerProcurementServiceSettings settings; private final ConsumerProcurementServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -241,7 +242,7 @@ protected ConsumerProcurementServiceClient(ConsumerProcurementServiceStub stub) this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConsumerProcurementServiceSettings getSettings() { + public final @Nullable ConsumerProcurementServiceSettings getSettings() { return settings; } @@ -669,8 +670,8 @@ public static class ListOrdersPage extends AbstractPage { private ListOrdersPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { super(context, response); } @@ -680,14 +681,14 @@ private static ListOrdersPage createEmptyPage() { @Override protected ListOrdersPage createPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { return new ListOrdersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -701,7 +702,8 @@ public static class ListOrdersFixedSizeCollection ListOrdersPage, ListOrdersFixedSizeCollection> { - private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + private ListOrdersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -711,7 +713,7 @@ private static ListOrdersFixedSizeCollection createEmptyCollection() { @Override protected ListOrdersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrdersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java index 4cbd3fa467d6..c8607d702e75 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,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); } @@ -222,7 +223,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConsumerProcurementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java index 41bfad2c3ee3..d9c25a8d2ea3 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class ConsumerProcurementServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java index 3d0e4d8e38e6..99686ea74878 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -416,7 +417,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); placeOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java index 2a410176daa2..b446bfc96dbf 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/BillingAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String billingAccount) { return newBuilder().setBillingAccount(billingAccount).build().toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java index d8e533280b44..567ee79e7326 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/BillingAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String billingAccount) { return newBuilder().setBillingAccount(billingAccount).build().toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java index fb9cf126aa04..cb003008564b 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java @@ -34,6 +34,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. /** @@ -339,7 +340,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudControlsPartnerCoreClient implements BackgroundResource { - private final CloudControlsPartnerCoreSettings settings; + private final @Nullable CloudControlsPartnerCoreSettings settings; private final CloudControlsPartnerCoreStub stub; /** Constructs an instance of CloudControlsPartnerCoreClient with default settings. */ @@ -381,7 +382,7 @@ protected CloudControlsPartnerCoreClient(CloudControlsPartnerCoreStub stub) { this.stub = stub; } - public final CloudControlsPartnerCoreSettings getSettings() { + public final @Nullable CloudControlsPartnerCoreSettings getSettings() { return settings; } @@ -413,7 +414,7 @@ public CloudControlsPartnerCoreStub getStub() { * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workload getWorkload(WorkloadName name) { + public final Workload getWorkload(@Nullable WorkloadName name) { GetWorkloadRequest request = GetWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkload(request); @@ -535,7 +536,7 @@ public final UnaryCallable getWorkloadCallable() { * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(CustomerName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable CustomerName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -709,7 +710,7 @@ public final UnaryCallable listWork * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Customer getCustomer(CustomerName name) { + public final Customer getCustomer(@Nullable CustomerName name) { GetCustomerRequest request = GetCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomer(request); @@ -826,7 +827,7 @@ public final UnaryCallable getCustomerCallable() { * `organizations/{organization}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomersPagedResponse listCustomers(OrganizationLocationName parent) { + public final ListCustomersPagedResponse listCustomers(@Nullable OrganizationLocationName parent) { ListCustomersRequest request = ListCustomersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1001,7 +1002,7 @@ public final UnaryCallable listCust * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EkmConnections getEkmConnections(EkmConnectionsName name) { + public final EkmConnections getEkmConnections(@Nullable EkmConnectionsName name) { GetEkmConnectionsRequest request = GetEkmConnectionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1125,7 +1126,7 @@ public final UnaryCallable getEkmConne * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PartnerPermissions getPartnerPermissions(PartnerPermissionsName name) { + public final PartnerPermissions getPartnerPermissions(@Nullable PartnerPermissionsName name) { GetPartnerPermissionsRequest request = GetPartnerPermissionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1260,7 +1261,7 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque */ @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( - WorkloadName parent) { + @Nullable WorkloadName parent) { ListAccessApprovalRequestsRequest request = ListAccessApprovalRequestsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1462,7 +1463,7 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * @param name Required. Format: `organizations/{organization}/locations/{location}/partner` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Partner getPartner(PartnerName name) { + public final Partner getPartner(@Nullable PartnerName name) { GetPartnerRequest request = GetPartnerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPartner(request); @@ -1584,7 +1585,7 @@ public final UnaryCallable getPartnerCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Customer createCustomer( - OrganizationLocationName parent, Customer customer, String customerId) { + @Nullable OrganizationLocationName parent, Customer customer, String customerId) { CreateCustomerRequest request = CreateCustomerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1810,7 +1811,7 @@ public final UnaryCallable updateCustomerCallab * name=organizations/*/locations/*/customers/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomer(CustomerName name) { + public final void deleteCustomer(@Nullable CustomerName name) { DeleteCustomerRequest request = DeleteCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCustomer(request); @@ -1961,8 +1962,8 @@ public static class ListWorkloadsPage ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage> { private ListWorkloadsPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -1972,14 +1973,14 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1993,7 +1994,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2003,7 +2005,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -2037,8 +2039,8 @@ public static class ListCustomersPage ListCustomersRequest, ListCustomersResponse, Customer, ListCustomersPage> { private ListCustomersPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { super(context, response); } @@ -2048,14 +2050,14 @@ private static ListCustomersPage createEmptyPage() { @Override protected ListCustomersPage createPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { return new ListCustomersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2069,7 +2071,8 @@ public static class ListCustomersFixedSizeCollection ListCustomersPage, ListCustomersFixedSizeCollection> { - private ListCustomersFixedSizeCollection(List pages, int collectionSize) { + private ListCustomersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2079,7 +2082,7 @@ private static ListCustomersFixedSizeCollection createEmptyCollection() { @Override protected ListCustomersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomersFixedSizeCollection(pages, collectionSize); } } @@ -2120,12 +2123,13 @@ public static class ListAccessApprovalRequestsPage ListAccessApprovalRequestsPage> { private ListAccessApprovalRequestsPage( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> context, - ListAccessApprovalRequestsResponse response) { + @Nullable ListAccessApprovalRequestsResponse response) { super(context, response); } @@ -2135,18 +2139,20 @@ private static ListAccessApprovalRequestsPage createEmptyPage() { @Override protected ListAccessApprovalRequestsPage createPage( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> context, - ListAccessApprovalRequestsResponse response) { + @Nullable ListAccessApprovalRequestsResponse response) { return new ListAccessApprovalRequestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> @@ -2165,7 +2171,7 @@ public static class ListAccessApprovalRequestsFixedSizeCollection ListAccessApprovalRequestsFixedSizeCollection> { private ListAccessApprovalRequestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2175,7 +2181,7 @@ private static ListAccessApprovalRequestsFixedSizeCollection createEmptyCollecti @Override protected ListAccessApprovalRequestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessApprovalRequestsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java index eb6ecc6b9503..4db3ccd93b9c 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudControlsPartnerCoreStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringClient.java index 352ac816687a..35dca55a223a 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringClient.java @@ -32,6 +32,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudControlsPartnerMonitoringClient implements BackgroundResource { - private final CloudControlsPartnerMonitoringSettings settings; + private final @Nullable CloudControlsPartnerMonitoringSettings settings; private final CloudControlsPartnerMonitoringStub stub; /** Constructs an instance of CloudControlsPartnerMonitoringClient with default settings. */ @@ -211,7 +212,7 @@ protected CloudControlsPartnerMonitoringClient(CloudControlsPartnerMonitoringStu this.stub = stub; } - public final CloudControlsPartnerMonitoringSettings getSettings() { + public final @Nullable CloudControlsPartnerMonitoringSettings getSettings() { return settings; } @@ -249,7 +250,7 @@ public CloudControlsPartnerMonitoringStub getStub() { * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListViolationsPagedResponse listViolations(WorkloadName parent) { + public final ListViolationsPagedResponse listViolations(@Nullable WorkloadName parent) { ListViolationsRequest request = ListViolationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -450,7 +451,7 @@ public final ListViolationsPagedResponse listViolations(ListViolationsRequest re * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Violation getViolation(ViolationName name) { + public final Violation getViolation(@Nullable ViolationName name) { GetViolationRequest request = GetViolationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getViolation(request); @@ -610,8 +611,8 @@ public static class ListViolationsPage ListViolationsRequest, ListViolationsResponse, Violation, ListViolationsPage> { private ListViolationsPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { super(context, response); } @@ -621,14 +622,14 @@ private static ListViolationsPage createEmptyPage() { @Override protected ListViolationsPage createPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { return new ListViolationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -642,7 +643,8 @@ public static class ListViolationsFixedSizeCollection ListViolationsPage, ListViolationsFixedSizeCollection> { - private ListViolationsFixedSizeCollection(List pages, int collectionSize) { + private ListViolationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -652,7 +654,7 @@ private static ListViolationsFixedSizeCollection createEmptyCollection() { @Override protected ListViolationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViolationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringSettings.java index d77742a63bbd..1b404cb52ef7 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerMonitoringSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudControlsPartnerMonitoringStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java index 837810746eec..d40d9153a25c 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -504,7 +505,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); } @@ -602,7 +603,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java index 496aa1b49173..986d38b77014 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerMonitoringStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -359,7 +360,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listViolationsSettings = PagedCallSettings.newBuilder(LIST_VIOLATIONS_PAGE_STR_FACT); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java index dca8ac671bec..dfce3e0d5325 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java @@ -35,6 +35,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. /** @@ -341,7 +342,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudControlsPartnerCoreClient implements BackgroundResource { - private final CloudControlsPartnerCoreSettings settings; + private final @Nullable CloudControlsPartnerCoreSettings settings; private final CloudControlsPartnerCoreStub stub; /** Constructs an instance of CloudControlsPartnerCoreClient with default settings. */ @@ -383,7 +384,7 @@ protected CloudControlsPartnerCoreClient(CloudControlsPartnerCoreStub stub) { this.stub = stub; } - public final CloudControlsPartnerCoreSettings getSettings() { + public final @Nullable CloudControlsPartnerCoreSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public CloudControlsPartnerCoreStub getStub() { * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workload getWorkload(WorkloadName name) { + public final Workload getWorkload(@Nullable WorkloadName name) { GetWorkloadRequest request = GetWorkloadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkload(request); @@ -537,7 +538,7 @@ public final UnaryCallable getWorkloadCallable() { * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(CustomerName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable CustomerName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -711,7 +712,7 @@ public final UnaryCallable listWork * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Customer getCustomer(CustomerName name) { + public final Customer getCustomer(@Nullable CustomerName name) { GetCustomerRequest request = GetCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomer(request); @@ -828,7 +829,7 @@ public final UnaryCallable getCustomerCallable() { * `organizations/{organization}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomersPagedResponse listCustomers(OrganizationLocationName parent) { + public final ListCustomersPagedResponse listCustomers(@Nullable OrganizationLocationName parent) { ListCustomersRequest request = ListCustomersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1003,7 +1004,7 @@ public final UnaryCallable listCust * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EkmConnections getEkmConnections(EkmConnectionsName name) { + public final EkmConnections getEkmConnections(@Nullable EkmConnectionsName name) { GetEkmConnectionsRequest request = GetEkmConnectionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1127,7 +1128,7 @@ public final UnaryCallable getEkmConne * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PartnerPermissions getPartnerPermissions(PartnerPermissionsName name) { + public final PartnerPermissions getPartnerPermissions(@Nullable PartnerPermissionsName name) { GetPartnerPermissionsRequest request = GetPartnerPermissionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1262,7 +1263,7 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque */ @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( - WorkloadName parent) { + @Nullable WorkloadName parent) { ListAccessApprovalRequestsRequest request = ListAccessApprovalRequestsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1464,7 +1465,7 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * @param name Required. Format: `organizations/{organization}/locations/{location}/partner` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Partner getPartner(PartnerName name) { + public final Partner getPartner(@Nullable PartnerName name) { GetPartnerRequest request = GetPartnerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPartner(request); @@ -1586,7 +1587,7 @@ public final UnaryCallable getPartnerCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Customer createCustomer( - OrganizationLocationName parent, Customer customer, String customerId) { + @Nullable OrganizationLocationName parent, Customer customer, String customerId) { CreateCustomerRequest request = CreateCustomerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1812,7 +1813,7 @@ public final UnaryCallable updateCustomerCallab * name=organizations/*/locations/*/customers/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomer(CustomerName name) { + public final void deleteCustomer(@Nullable CustomerName name) { DeleteCustomerRequest request = DeleteCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCustomer(request); @@ -1963,8 +1964,8 @@ public static class ListWorkloadsPage ListWorkloadsRequest, ListWorkloadsResponse, Workload, ListWorkloadsPage> { private ListWorkloadsPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -1974,14 +1975,14 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext context, - ListWorkloadsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1995,7 +1996,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2005,7 +2007,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -2039,8 +2041,8 @@ public static class ListCustomersPage ListCustomersRequest, ListCustomersResponse, Customer, ListCustomersPage> { private ListCustomersPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { super(context, response); } @@ -2050,14 +2052,14 @@ private static ListCustomersPage createEmptyPage() { @Override protected ListCustomersPage createPage( - PageContext context, - ListCustomersResponse response) { + @Nullable PageContext context, + @Nullable ListCustomersResponse response) { return new ListCustomersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2071,7 +2073,8 @@ public static class ListCustomersFixedSizeCollection ListCustomersPage, ListCustomersFixedSizeCollection> { - private ListCustomersFixedSizeCollection(List pages, int collectionSize) { + private ListCustomersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2081,7 +2084,7 @@ private static ListCustomersFixedSizeCollection createEmptyCollection() { @Override protected ListCustomersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomersFixedSizeCollection(pages, collectionSize); } } @@ -2122,12 +2125,13 @@ public static class ListAccessApprovalRequestsPage ListAccessApprovalRequestsPage> { private ListAccessApprovalRequestsPage( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> context, - ListAccessApprovalRequestsResponse response) { + @Nullable ListAccessApprovalRequestsResponse response) { super(context, response); } @@ -2137,18 +2141,20 @@ private static ListAccessApprovalRequestsPage createEmptyPage() { @Override protected ListAccessApprovalRequestsPage createPage( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> context, - ListAccessApprovalRequestsResponse response) { + @Nullable ListAccessApprovalRequestsResponse response) { return new ListAccessApprovalRequestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, AccessApprovalRequest> @@ -2167,7 +2173,7 @@ public static class ListAccessApprovalRequestsFixedSizeCollection ListAccessApprovalRequestsFixedSizeCollection> { private ListAccessApprovalRequestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2177,7 +2183,7 @@ private static ListAccessApprovalRequestsFixedSizeCollection createEmptyCollecti @Override protected ListAccessApprovalRequestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessApprovalRequestsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java index d2fef6a0b856..e02dd2eb8d6b 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudControlsPartnerCoreStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java index d37ba6d8a785..33cd4bec6269 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java @@ -33,6 +33,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. /** @@ -168,7 +169,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudControlsPartnerMonitoringClient implements BackgroundResource { - private final CloudControlsPartnerMonitoringSettings settings; + private final @Nullable CloudControlsPartnerMonitoringSettings settings; private final CloudControlsPartnerMonitoringStub stub; /** Constructs an instance of CloudControlsPartnerMonitoringClient with default settings. */ @@ -213,7 +214,7 @@ protected CloudControlsPartnerMonitoringClient(CloudControlsPartnerMonitoringStu this.stub = stub; } - public final CloudControlsPartnerMonitoringSettings getSettings() { + public final @Nullable CloudControlsPartnerMonitoringSettings getSettings() { return settings; } @@ -251,7 +252,7 @@ public CloudControlsPartnerMonitoringStub getStub() { * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListViolationsPagedResponse listViolations(WorkloadName parent) { + public final ListViolationsPagedResponse listViolations(@Nullable WorkloadName parent) { ListViolationsRequest request = ListViolationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -452,7 +453,7 @@ public final ListViolationsPagedResponse listViolations(ListViolationsRequest re * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Violation getViolation(ViolationName name) { + public final Violation getViolation(@Nullable ViolationName name) { GetViolationRequest request = GetViolationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getViolation(request); @@ -612,8 +613,8 @@ public static class ListViolationsPage ListViolationsRequest, ListViolationsResponse, Violation, ListViolationsPage> { private ListViolationsPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { super(context, response); } @@ -623,14 +624,14 @@ private static ListViolationsPage createEmptyPage() { @Override protected ListViolationsPage createPage( - PageContext context, - ListViolationsResponse response) { + @Nullable PageContext context, + @Nullable ListViolationsResponse response) { return new ListViolationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -644,7 +645,8 @@ public static class ListViolationsFixedSizeCollection ListViolationsPage, ListViolationsFixedSizeCollection> { - private ListViolationsFixedSizeCollection(List pages, int collectionSize) { + private ListViolationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -654,7 +656,7 @@ private static ListViolationsFixedSizeCollection createEmptyCollection() { @Override protected ListViolationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViolationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringSettings.java index c6696d4584a1..83a6924c090d 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -184,7 +185,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudControlsPartnerMonitoringStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java index 15b665c1bfd4..1f71fa71d455 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -505,7 +506,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); } @@ -603,7 +604,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java index bb8407d74579..40f313a5c929 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerMonitoringStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -292,7 +293,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); } @@ -360,7 +361,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listViolationsSettings = PagedCallSettings.newBuilder(LIST_VIOLATIONS_PAGE_STR_FACT); diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/AccessApprovalRequestName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/AccessApprovalRequestName.java index 5149ce360f47..9da2d108acaf 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/AccessApprovalRequestName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/AccessApprovalRequestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static AccessApprovalRequestName parse(String formattedString) { + public static @Nullable AccessApprovalRequestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessApprovalRequestName> values) { List list = new ArrayList<>(values.size()); for (AccessApprovalRequestName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CustomerName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CustomerName.java index 55609212c4e4..39be5264bf6b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CustomerName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CustomerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String organization, String location, String custome .toString(); } - public static CustomerName parse(String formattedString) { + public static @Nullable CustomerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomerName> values) { List list = new ArrayList<>(values.size()); for (CustomerName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/EkmConnectionsName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/EkmConnectionsName.java index dbeaeabf7d70..1eb46d6d07ef 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/EkmConnectionsName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/EkmConnectionsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EkmConnectionsName parse(String formattedString) { + public static @Nullable EkmConnectionsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EkmConnectionsName> values) { List list = new ArrayList<>(values.size()); for (EkmConnectionsName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/OrganizationLocationName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/OrganizationLocationName.java index 2c94f9b49245..ec1d539d4900 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/OrganizationLocationName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerName.java index b3994f64d064..b86c9d6b4a3c 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static PartnerName parse(String formattedString) { + public static @Nullable PartnerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartnerName> values) { List list = new ArrayList<>(values.size()); for (PartnerName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerPermissionsName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerPermissionsName.java index c6b9f634f39b..597d8e00ef5c 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerPermissionsName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/PartnerPermissionsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static PartnerPermissionsName parse(String formattedString) { + public static @Nullable PartnerPermissionsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartnerPermissionsName> values) { List list = new ArrayList<>(values.size()); for (PartnerPermissionsName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/ViolationName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/ViolationName.java index c47d4bdc7de7..54eae415a0ba 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/ViolationName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/ViolationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ViolationName parse(String formattedString) { + public static @Nullable ViolationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ViolationName> values) { List list = new ArrayList<>(values.size()); for (ViolationName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/WorkloadName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/WorkloadName.java index 4f879406313b..7685391bac21 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/WorkloadName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/WorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkloadName parse(String formattedString) { + public static @Nullable WorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkloadName> values) { List list = new ArrayList<>(values.size()); for (WorkloadName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestName.java index 303141dcf398..7c126f6edead 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static AccessApprovalRequestName parse(String formattedString) { + public static @Nullable AccessApprovalRequestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessApprovalRequestName> values) { List list = new ArrayList<>(values.size()); for (AccessApprovalRequestName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerName.java index 01496994b4a7..4e2e1a666092 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String organization, String location, String custome .toString(); } - public static CustomerName parse(String formattedString) { + public static @Nullable CustomerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomerName> values) { List list = new ArrayList<>(values.size()); for (CustomerName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsName.java index 6b8f92cadbb7..5b9538251b0b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EkmConnectionsName parse(String formattedString) { + public static @Nullable EkmConnectionsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EkmConnectionsName> values) { List list = new ArrayList<>(values.size()); for (EkmConnectionsName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OrganizationLocationName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OrganizationLocationName.java index 34b18b81cbc2..3038eccffe48 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OrganizationLocationName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerName.java index 5c6f29c8b9e9..bf192277ad25 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static PartnerName parse(String formattedString) { + public static @Nullable PartnerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartnerName> values) { List list = new ArrayList<>(values.size()); for (PartnerName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsName.java index 90bcb40dc698..eb08f96b9d32 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static PartnerPermissionsName parse(String formattedString) { + public static @Nullable PartnerPermissionsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartnerPermissionsName> values) { List list = new ArrayList<>(values.size()); for (PartnerPermissionsName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationName.java index 3846f782ba94..f718a27e8613 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ViolationName parse(String formattedString) { + public static @Nullable ViolationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ViolationName> values) { List list = new ArrayList<>(values.size()); for (ViolationName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadName.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadName.java index d821a1aaf286..693ecf781ee1 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadName.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkloadName parse(String formattedString) { + public static @Nullable WorkloadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkloadName> values) { List list = new ArrayList<>(values.size()); for (WorkloadName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasClient.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasClient.java index 0695c230ac57..b6f6dae1dfde 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasClient.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasClient.java @@ -33,6 +33,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudQuotasClient implements BackgroundResource { - private final CloudQuotasSettings settings; + private final @Nullable CloudQuotasSettings settings; private final CloudQuotasStub stub; /** Constructs an instance of CloudQuotasClient with default settings. */ @@ -283,7 +284,7 @@ protected CloudQuotasClient(CloudQuotasStub stub) { this.stub = stub; } - public final CloudQuotasSettings getSettings() { + public final @Nullable CloudQuotasSettings getSettings() { return settings; } @@ -319,7 +320,7 @@ public CloudQuotasStub getStub() { * `organizations/345/locations/global/services/compute.googleapis.com` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaInfosPagedResponse listQuotaInfos(ServiceName parent) { + public final ListQuotaInfosPagedResponse listQuotaInfos(@Nullable ServiceName parent) { ListQuotaInfosRequest request = ListQuotaInfosRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -496,7 +497,7 @@ public final ListQuotaInfosPagedResponse listQuotaInfos(ListQuotaInfosRequest re * `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaInfo getQuotaInfo(QuotaInfoName name) { + public final QuotaInfo getQuotaInfo(@Nullable QuotaInfoName name) { GetQuotaInfoRequest request = GetQuotaInfoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQuotaInfo(request); @@ -622,7 +623,8 @@ public final UnaryCallable getQuotaInfoCallable( *

Example parents: `projects/123/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaPreferencesPagedResponse listQuotaPreferences(LocationName parent) { + public final ListQuotaPreferencesPagedResponse listQuotaPreferences( + @Nullable LocationName parent) { ListQuotaPreferencesRequest request = ListQuotaPreferencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -800,7 +802,7 @@ public final ListQuotaPreferencesPagedResponse listQuotaPreferences( *

Example name: `projects/123/locations/global/quota_preferences/my-config-for-us-east1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaPreference getQuotaPreference(QuotaPreferenceName name) { + public final QuotaPreference getQuotaPreference(@Nullable QuotaPreferenceName name) { GetQuotaPreferenceRequest request = GetQuotaPreferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -927,7 +929,7 @@ public final QuotaPreference getQuotaPreference(GetQuotaPreferenceRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QuotaPreference createQuotaPreference( - LocationName parent, QuotaPreference quotaPreference) { + @Nullable LocationName parent, QuotaPreference quotaPreference) { CreateQuotaPreferenceRequest request = CreateQuotaPreferenceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -999,7 +1001,7 @@ public final QuotaPreference createQuotaPreference( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QuotaPreference createQuotaPreference( - LocationName parent, QuotaPreference quotaPreference, String quotaPreferenceId) { + @Nullable LocationName parent, QuotaPreference quotaPreference, String quotaPreferenceId) { CreateQuotaPreferenceRequest request = CreateQuotaPreferenceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1275,8 +1277,8 @@ public static class ListQuotaInfosPage ListQuotaInfosRequest, ListQuotaInfosResponse, QuotaInfo, ListQuotaInfosPage> { private ListQuotaInfosPage( - PageContext context, - ListQuotaInfosResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaInfosResponse response) { super(context, response); } @@ -1286,14 +1288,14 @@ private static ListQuotaInfosPage createEmptyPage() { @Override protected ListQuotaInfosPage createPage( - PageContext context, - ListQuotaInfosResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaInfosResponse response) { return new ListQuotaInfosPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1307,7 +1309,8 @@ public static class ListQuotaInfosFixedSizeCollection ListQuotaInfosPage, ListQuotaInfosFixedSizeCollection> { - private ListQuotaInfosFixedSizeCollection(List pages, int collectionSize) { + private ListQuotaInfosFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1317,7 +1320,7 @@ private static ListQuotaInfosFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaInfosFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaInfosFixedSizeCollection(pages, collectionSize); } } @@ -1355,9 +1358,10 @@ public static class ListQuotaPreferencesPage ListQuotaPreferencesPage> { private ListQuotaPreferencesPage( - PageContext + @Nullable + PageContext context, - ListQuotaPreferencesResponse response) { + @Nullable ListQuotaPreferencesResponse response) { super(context, response); } @@ -1367,15 +1371,17 @@ private static ListQuotaPreferencesPage createEmptyPage() { @Override protected ListQuotaPreferencesPage createPage( - PageContext + @Nullable + PageContext context, - ListQuotaPreferencesResponse response) { + @Nullable ListQuotaPreferencesResponse response) { return new ListQuotaPreferencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1391,7 +1397,7 @@ public static class ListQuotaPreferencesFixedSizeCollection ListQuotaPreferencesFixedSizeCollection> { private ListQuotaPreferencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1401,7 +1407,7 @@ private static ListQuotaPreferencesFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaPreferencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaPreferencesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasSettings.java index a16dfca330ce..58f6d4bff0b8 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/CloudQuotasSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudQuotasStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java index 2d2534f5dcf2..5c595f18f7d4 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/CloudQuotasStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -393,7 +394,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); } @@ -475,7 +476,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQuotaInfosSettings = PagedCallSettings.newBuilder(LIST_QUOTA_INFOS_PAGE_STR_FACT); diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasClient.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasClient.java index 9c9e236738d2..31979deae8af 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasClient.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasClient.java @@ -34,6 +34,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. /** @@ -246,7 +247,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudQuotasClient implements BackgroundResource { - private final CloudQuotasSettings settings; + private final @Nullable CloudQuotasSettings settings; private final CloudQuotasStub stub; /** Constructs an instance of CloudQuotasClient with default settings. */ @@ -285,7 +286,7 @@ protected CloudQuotasClient(CloudQuotasStub stub) { this.stub = stub; } - public final CloudQuotasSettings getSettings() { + public final @Nullable CloudQuotasSettings getSettings() { return settings; } @@ -321,7 +322,7 @@ public CloudQuotasStub getStub() { * `organizations/345/locations/global/services/compute.googleapis.com` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaInfosPagedResponse listQuotaInfos(ServiceName parent) { + public final ListQuotaInfosPagedResponse listQuotaInfos(@Nullable ServiceName parent) { ListQuotaInfosRequest request = ListQuotaInfosRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -498,7 +499,7 @@ public final ListQuotaInfosPagedResponse listQuotaInfos(ListQuotaInfosRequest re * `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaInfo getQuotaInfo(QuotaInfoName name) { + public final QuotaInfo getQuotaInfo(@Nullable QuotaInfoName name) { GetQuotaInfoRequest request = GetQuotaInfoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQuotaInfo(request); @@ -624,7 +625,8 @@ public final UnaryCallable getQuotaInfoCallable( *

Example parents: `projects/123/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaPreferencesPagedResponse listQuotaPreferences(LocationName parent) { + public final ListQuotaPreferencesPagedResponse listQuotaPreferences( + @Nullable LocationName parent) { ListQuotaPreferencesRequest request = ListQuotaPreferencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -802,7 +804,7 @@ public final ListQuotaPreferencesPagedResponse listQuotaPreferences( *

Example name: `projects/123/locations/global/quota_preferences/my-config-for-us-east1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaPreference getQuotaPreference(QuotaPreferenceName name) { + public final QuotaPreference getQuotaPreference(@Nullable QuotaPreferenceName name) { GetQuotaPreferenceRequest request = GetQuotaPreferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -929,7 +931,7 @@ public final QuotaPreference getQuotaPreference(GetQuotaPreferenceRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QuotaPreference createQuotaPreference( - LocationName parent, QuotaPreference quotaPreference) { + @Nullable LocationName parent, QuotaPreference quotaPreference) { CreateQuotaPreferenceRequest request = CreateQuotaPreferenceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1001,7 +1003,7 @@ public final QuotaPreference createQuotaPreference( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QuotaPreference createQuotaPreference( - LocationName parent, QuotaPreference quotaPreference, String quotaPreferenceId) { + @Nullable LocationName parent, QuotaPreference quotaPreference, String quotaPreferenceId) { CreateQuotaPreferenceRequest request = CreateQuotaPreferenceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1277,8 +1279,8 @@ public static class ListQuotaInfosPage ListQuotaInfosRequest, ListQuotaInfosResponse, QuotaInfo, ListQuotaInfosPage> { private ListQuotaInfosPage( - PageContext context, - ListQuotaInfosResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaInfosResponse response) { super(context, response); } @@ -1288,14 +1290,14 @@ private static ListQuotaInfosPage createEmptyPage() { @Override protected ListQuotaInfosPage createPage( - PageContext context, - ListQuotaInfosResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaInfosResponse response) { return new ListQuotaInfosPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1309,7 +1311,8 @@ public static class ListQuotaInfosFixedSizeCollection ListQuotaInfosPage, ListQuotaInfosFixedSizeCollection> { - private ListQuotaInfosFixedSizeCollection(List pages, int collectionSize) { + private ListQuotaInfosFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1319,7 +1322,7 @@ private static ListQuotaInfosFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaInfosFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaInfosFixedSizeCollection(pages, collectionSize); } } @@ -1357,9 +1360,10 @@ public static class ListQuotaPreferencesPage ListQuotaPreferencesPage> { private ListQuotaPreferencesPage( - PageContext + @Nullable + PageContext context, - ListQuotaPreferencesResponse response) { + @Nullable ListQuotaPreferencesResponse response) { super(context, response); } @@ -1369,15 +1373,17 @@ private static ListQuotaPreferencesPage createEmptyPage() { @Override protected ListQuotaPreferencesPage createPage( - PageContext + @Nullable + PageContext context, - ListQuotaPreferencesResponse response) { + @Nullable ListQuotaPreferencesResponse response) { return new ListQuotaPreferencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1393,7 +1399,7 @@ public static class ListQuotaPreferencesFixedSizeCollection ListQuotaPreferencesFixedSizeCollection> { private ListQuotaPreferencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1403,7 +1409,7 @@ private static ListQuotaPreferencesFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaPreferencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaPreferencesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasSettings.java index 3dc4778d73c8..483ef041286f 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/CloudQuotasSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,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); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudQuotasStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java index 888e489dbc15..327f9147ec43 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerClient.java @@ -26,6 +26,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. /** @@ -163,7 +164,7 @@ @BetaApi @Generated("by gapic-generator-java") public class QuotaAdjusterSettingsManagerClient implements BackgroundResource { - private final QuotaAdjusterSettingsManagerSettings settings; + private final @Nullable QuotaAdjusterSettingsManagerSettings settings; private final QuotaAdjusterSettingsManagerStub stub; /** Constructs an instance of QuotaAdjusterSettingsManagerClient with default settings. */ @@ -207,7 +208,7 @@ protected QuotaAdjusterSettingsManagerClient(QuotaAdjusterSettingsManagerStub st this.stub = stub; } - public final QuotaAdjusterSettingsManagerSettings getSettings() { + public final @Nullable QuotaAdjusterSettingsManagerSettings getSettings() { return settings; } @@ -343,7 +344,8 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( * per project is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaAdjusterSettings getQuotaAdjusterSettings(QuotaAdjusterSettingsName name) { + public final QuotaAdjusterSettings getQuotaAdjusterSettings( + @Nullable QuotaAdjusterSettingsName name) { GetQuotaAdjusterSettingsRequest request = GetQuotaAdjusterSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerSettings.java index 33c596a65bf1..189d5db7bd79 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QuotaAdjusterSettingsManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/CloudQuotasStubSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/CloudQuotasStubSettings.java index 608e0d1e7425..7ffab1912d81 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/CloudQuotasStubSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/CloudQuotasStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -394,7 +395,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); } @@ -476,7 +477,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQuotaInfosSettings = PagedCallSettings.newBuilder(LIST_QUOTA_INFOS_PAGE_STR_FACT); diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/QuotaAdjusterSettingsManagerStubSettings.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/QuotaAdjusterSettingsManagerStubSettings.java index 5541727f2b0c..43754f505485 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/QuotaAdjusterSettingsManagerStubSettings.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/QuotaAdjusterSettingsManagerStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,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); } @@ -298,7 +299,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateQuotaAdjusterSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/LocationName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/LocationName.java index 7ccf073a9e1d..16afe12f6a91 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/LocationName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/LocationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -153,7 +154,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -178,7 +179,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaInfoName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaInfoName.java index 6e349d371dd5..d8e771e8c7ef 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaInfoName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaInfoName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -219,7 +220,7 @@ public static String formatOrganizationLocationServiceQuotaInfoName( .toString(); } - public static QuotaInfoName parse(String formattedString) { + public static @Nullable QuotaInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -257,7 +258,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaInfoName> values) { List list = new ArrayList<>(values.size()); for (QuotaInfoName value : values) { if (value == null) { @@ -316,7 +317,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaPreferenceName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaPreferenceName.java index 657bb7be3ba5..422562d35a8d 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaPreferenceName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/QuotaPreferenceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -201,7 +202,7 @@ public static String formatOrganizationLocationQuotaPreferenceName( .toString(); } - public static QuotaPreferenceName parse(String formattedString) { + public static @Nullable QuotaPreferenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -229,7 +230,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaPreferenceName> values) { List list = new ArrayList<>(values.size()); for (QuotaPreferenceName value : values) { if (value == null) { @@ -285,7 +286,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ServiceName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ServiceName.java index d745132266f3..85ab1212a59c 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ServiceName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ServiceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -192,7 +193,7 @@ public static String formatOrganizationLocationServiceName( .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -220,7 +221,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/LocationName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/LocationName.java index 26b0e6ee3350..cb6765dc7381 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/LocationName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/LocationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -153,7 +154,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -178,7 +179,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsName.java index 6fa963fc5504..0531178afe67 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatFolderLocationName(String folder, String location) { return newFolderLocationBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static QuotaAdjusterSettingsName parse(String formattedString) { + public static @Nullable QuotaAdjusterSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -183,7 +184,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaAdjusterSettingsName> values) { List list = new ArrayList<>(values.size()); for (QuotaAdjusterSettingsName value : values) { if (value == null) { @@ -236,7 +237,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaInfoName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaInfoName.java index 2d41493a029c..f7f59cc37657 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaInfoName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaInfoName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -219,7 +220,7 @@ public static String formatOrganizationLocationServiceQuotaInfoName( .toString(); } - public static QuotaInfoName parse(String formattedString) { + public static @Nullable QuotaInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -257,7 +258,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaInfoName> values) { List list = new ArrayList<>(values.size()); for (QuotaInfoName value : values) { if (value == null) { @@ -316,7 +317,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaPreferenceName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaPreferenceName.java index 7cf8767f09da..1a4575e80617 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaPreferenceName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaPreferenceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -201,7 +202,7 @@ public static String formatOrganizationLocationQuotaPreferenceName( .toString(); } - public static QuotaPreferenceName parse(String formattedString) { + public static @Nullable QuotaPreferenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -229,7 +230,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaPreferenceName> values) { List list = new ArrayList<>(values.size()); for (QuotaPreferenceName value : values) { if (value == null) { @@ -285,7 +286,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/ServiceName.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/ServiceName.java index ba36732ffe2c..798a6894dd9c 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/ServiceName.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/ServiceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -192,7 +193,7 @@ public static String formatOrganizationLocationServiceName( .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -220,7 +221,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java index a59fb64d0a36..76cf9ad5e517 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java @@ -41,6 +41,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. /** @@ -241,7 +242,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AuditClient implements BackgroundResource { - private final AuditSettings settings; + private final @Nullable AuditSettings settings; private final AuditStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -287,7 +288,7 @@ protected AuditClient(AuditStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AuditSettings getSettings() { + public final @Nullable AuditSettings getSettings() { return settings; } @@ -458,7 +459,7 @@ public final GenerateFrameworkAuditScopeReportResponse generateFrameworkAuditSco * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFrameworkAuditAsync( - LocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { + @Nullable LocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { CreateFrameworkAuditRequest request = CreateFrameworkAuditRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -504,7 +505,9 @@ public final OperationFuture createFrameworkA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFrameworkAuditAsync( - OrganizationLocationName parent, FrameworkAudit frameworkAudit, String frameworkAuditId) { + @Nullable OrganizationLocationName parent, + FrameworkAudit frameworkAudit, + String frameworkAuditId) { CreateFrameworkAuditRequest request = CreateFrameworkAuditRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -682,7 +685,7 @@ public final OperationFuture createFrameworkA * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFrameworkAuditsPagedResponse listFrameworkAudits(LocationName parent) { + public final ListFrameworkAuditsPagedResponse listFrameworkAudits(@Nullable LocationName parent) { ListFrameworkAuditsRequest request = ListFrameworkAuditsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -721,7 +724,7 @@ public final ListFrameworkAuditsPagedResponse listFrameworkAudits(LocationName p * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkAuditsPagedResponse listFrameworkAudits( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFrameworkAuditsRequest request = ListFrameworkAuditsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -904,7 +907,7 @@ public final ListFrameworkAuditsPagedResponse listFrameworkAudits( * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FrameworkAudit getFrameworkAudit(FrameworkAuditName name) { + public final FrameworkAudit getFrameworkAudit(@Nullable FrameworkAuditName name) { GetFrameworkAuditRequest request = GetFrameworkAuditRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1263,9 +1266,10 @@ public static class ListFrameworkAuditsPage ListFrameworkAuditsPage> { private ListFrameworkAuditsPage( - PageContext + @Nullable + PageContext context, - ListFrameworkAuditsResponse response) { + @Nullable ListFrameworkAuditsResponse response) { super(context, response); } @@ -1275,15 +1279,17 @@ private static ListFrameworkAuditsPage createEmptyPage() { @Override protected ListFrameworkAuditsPage createPage( - PageContext + @Nullable + PageContext context, - ListFrameworkAuditsResponse response) { + @Nullable ListFrameworkAuditsResponse response) { return new ListFrameworkAuditsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1299,7 +1305,7 @@ public static class ListFrameworkAuditsFixedSizeCollection ListFrameworkAuditsFixedSizeCollection> { private ListFrameworkAuditsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1309,7 +1315,7 @@ private static ListFrameworkAuditsFixedSizeCollection createEmptyCollection() { @Override protected ListFrameworkAuditsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFrameworkAuditsFixedSizeCollection(pages, collectionSize); } } @@ -1343,8 +1349,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1354,14 +1360,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1375,7 +1381,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1385,7 +1392,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java index 1d2e2f58db84..a4344ad7504c 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AuditStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java index 5f949ab9c5f7..4ef6df997dd6 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java @@ -37,6 +37,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. /** @@ -199,7 +200,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CmEnrollmentServiceClient implements BackgroundResource { - private final CmEnrollmentServiceSettings settings; + private final @Nullable CmEnrollmentServiceSettings settings; private final CmEnrollmentServiceStub stub; /** Constructs an instance of CmEnrollmentServiceClient with default settings. */ @@ -239,7 +240,7 @@ protected CmEnrollmentServiceClient(CmEnrollmentServiceStub stub) { this.stub = stub; } - public final CmEnrollmentServiceSettings getSettings() { + public final @Nullable CmEnrollmentServiceSettings getSettings() { return settings; } @@ -378,7 +379,7 @@ public final UnaryCallable updateCmEnro * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CalculateEffectiveCmEnrollmentResponse calculateEffectiveCmEnrollment( - CmEnrollmentName name) { + @Nullable CmEnrollmentName name) { CalculateEffectiveCmEnrollmentRequest request = CalculateEffectiveCmEnrollmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -744,8 +745,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -755,14 +756,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -776,7 +777,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -786,7 +788,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java index c91043736f39..f2ba692af79b 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -176,7 +177,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); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmEnrollmentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java index 84b9a15218c9..e6b10fc812bf 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java @@ -38,6 +38,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. /** @@ -360,7 +361,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigClient implements BackgroundResource { - private final ConfigSettings settings; + private final @Nullable ConfigSettings settings; private final ConfigStub stub; /** Constructs an instance of ConfigClient with default settings. */ @@ -398,7 +399,7 @@ protected ConfigClient(ConfigStub stub) { this.stub = stub; } - public final ConfigSettings getSettings() { + public final @Nullable ConfigSettings getSettings() { return settings; } @@ -433,7 +434,7 @@ public ConfigStub getStub() { *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFrameworksPagedResponse listFrameworks(LocationName parent) { + public final ListFrameworksPagedResponse listFrameworks(@Nullable LocationName parent) { ListFrameworksRequest request = ListFrameworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -468,7 +469,8 @@ public final ListFrameworksPagedResponse listFrameworks(LocationName parent) { *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName parent) { + public final ListFrameworksPagedResponse listFrameworks( + @Nullable OrganizationLocationName parent) { ListFrameworksRequest request = ListFrameworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -643,7 +645,7 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Framework getFramework(FrameworkName name) { + public final Framework getFramework(@Nullable FrameworkName name) { GetFrameworkRequest request = GetFrameworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFramework(request); @@ -784,7 +786,7 @@ public final UnaryCallable getFrameworkCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework createFramework( - LocationName parent, Framework framework, String frameworkId) { + @Nullable LocationName parent, Framework framework, String frameworkId) { CreateFrameworkRequest request = CreateFrameworkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -825,7 +827,7 @@ public final Framework createFramework( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework createFramework( - OrganizationLocationName parent, Framework framework, String frameworkId) { + @Nullable OrganizationLocationName parent, Framework framework, String frameworkId) { CreateFrameworkRequest request = CreateFrameworkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1085,7 +1087,7 @@ public final UnaryCallable updateFrameworkCal *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFramework(FrameworkName name) { + public final void deleteFramework(@Nullable FrameworkName name) { DeleteFrameworkRequest request = DeleteFrameworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFramework(request); @@ -1227,7 +1229,7 @@ public final UnaryCallable deleteFrameworkCallabl *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudControlsPagedResponse listCloudControls(LocationName parent) { + public final ListCloudControlsPagedResponse listCloudControls(@Nullable LocationName parent) { ListCloudControlsRequest request = ListCloudControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1263,7 +1265,8 @@ public final ListCloudControlsPagedResponse listCloudControls(LocationName paren *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocationName parent) { + public final ListCloudControlsPagedResponse listCloudControls( + @Nullable OrganizationLocationName parent) { ListCloudControlsRequest request = ListCloudControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1445,7 +1448,7 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudControl getCloudControl(CloudControlName name) { + public final CloudControl getCloudControl(@Nullable CloudControlName name) { GetCloudControlRequest request = GetCloudControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCloudControl(request); @@ -1589,7 +1592,7 @@ public final UnaryCallable getCloudControl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl createCloudControl( - LocationName parent, CloudControl cloudControl, String cloudControlId) { + @Nullable LocationName parent, CloudControl cloudControl, String cloudControlId) { CreateCloudControlRequest request = CreateCloudControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1630,7 +1633,7 @@ public final CloudControl createCloudControl( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl createCloudControl( - OrganizationLocationName parent, CloudControl cloudControl, String cloudControlId) { + @Nullable OrganizationLocationName parent, CloudControl cloudControl, String cloudControlId) { CreateCloudControlRequest request = CreateCloudControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1893,7 +1896,7 @@ public final UnaryCallable updateCloudC *

The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCloudControl(CloudControlName name) { + public final void deleteCloudControl(@Nullable CloudControlName name) { DeleteCloudControlRequest request = DeleteCloudControlRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2259,8 +2262,8 @@ public static class ListFrameworksPage ListFrameworksRequest, ListFrameworksResponse, Framework, ListFrameworksPage> { private ListFrameworksPage( - PageContext context, - ListFrameworksResponse response) { + @Nullable PageContext context, + @Nullable ListFrameworksResponse response) { super(context, response); } @@ -2270,14 +2273,14 @@ private static ListFrameworksPage createEmptyPage() { @Override protected ListFrameworksPage createPage( - PageContext context, - ListFrameworksResponse response) { + @Nullable PageContext context, + @Nullable ListFrameworksResponse response) { return new ListFrameworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2291,7 +2294,8 @@ public static class ListFrameworksFixedSizeCollection ListFrameworksPage, ListFrameworksFixedSizeCollection> { - private ListFrameworksFixedSizeCollection(List pages, int collectionSize) { + private ListFrameworksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2301,7 +2305,7 @@ private static ListFrameworksFixedSizeCollection createEmptyCollection() { @Override protected ListFrameworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFrameworksFixedSizeCollection(pages, collectionSize); } } @@ -2338,8 +2342,9 @@ public static class ListCloudControlsPage ListCloudControlsPage> { private ListCloudControlsPage( - PageContext context, - ListCloudControlsResponse response) { + @Nullable PageContext + context, + @Nullable ListCloudControlsResponse response) { super(context, response); } @@ -2349,14 +2354,16 @@ private static ListCloudControlsPage createEmptyPage() { @Override protected ListCloudControlsPage createPage( - PageContext context, - ListCloudControlsResponse response) { + @Nullable PageContext + context, + @Nullable ListCloudControlsResponse response) { return new ListCloudControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2371,7 +2378,7 @@ public static class ListCloudControlsFixedSizeCollection ListCloudControlsFixedSizeCollection> { private ListCloudControlsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2381,7 +2388,7 @@ private static ListCloudControlsFixedSizeCollection createEmptyCollection() { @Override protected ListCloudControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloudControlsFixedSizeCollection(pages, collectionSize); } } @@ -2415,8 +2422,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2426,14 +2433,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2447,7 +2454,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2457,7 +2465,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigSettings.java index 04138c97be4d..6f5112b50df2 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java index d180cf89e97e..715c3b98772b 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java @@ -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. /** @@ -284,7 +285,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeploymentClient implements BackgroundResource { - private final DeploymentSettings settings; + private final @Nullable DeploymentSettings settings; private final DeploymentStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -330,7 +331,7 @@ protected DeploymentClient(DeploymentStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DeploymentSettings getSettings() { + public final @Nullable DeploymentSettings getSettings() { return settings; } @@ -390,7 +391,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createFrameworkDeploymentAsync( - LocationName parent, + @Nullable LocationName parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId) { CreateFrameworkDeploymentRequest request = @@ -437,7 +438,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createFrameworkDeploymentAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId) { CreateFrameworkDeploymentRequest request = @@ -622,7 +623,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFrameworkDeploymentAsync( - FrameworkDeploymentName name) { + @Nullable FrameworkDeploymentName name) { DeleteFrameworkDeploymentRequest request = DeleteFrameworkDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -790,7 +791,7 @@ public final OperationFuture deleteFrameworkDeployment * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName name) { + public final FrameworkDeployment getFrameworkDeployment(@Nullable FrameworkDeploymentName name) { GetFrameworkDeploymentRequest request = GetFrameworkDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -920,7 +921,8 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe * `projects/{project}/locations/{location}`. The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(LocationName parent) { + public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( + @Nullable LocationName parent) { ListFrameworkDeploymentsRequest request = ListFrameworkDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -955,7 +957,7 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(Loca * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFrameworkDeploymentsRequest request = ListFrameworkDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1135,7 +1137,8 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploymentName name) { + public final CloudControlDeployment getCloudControlDeployment( + @Nullable CloudControlDeploymentName name) { GetCloudControlDeploymentRequest request = GetCloudControlDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1268,7 +1271,7 @@ public final CloudControlDeployment getCloudControlDeployment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments( - LocationName parent) { + @Nullable LocationName parent) { ListCloudControlDeploymentsRequest request = ListCloudControlDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1303,7 +1306,7 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListCloudControlDeploymentsRequest request = ListCloudControlDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1715,12 +1718,13 @@ public static class ListFrameworkDeploymentsPage ListFrameworkDeploymentsPage> { private ListFrameworkDeploymentsPage( - PageContext< + @Nullable + PageContext< ListFrameworkDeploymentsRequest, ListFrameworkDeploymentsResponse, FrameworkDeployment> context, - ListFrameworkDeploymentsResponse response) { + @Nullable ListFrameworkDeploymentsResponse response) { super(context, response); } @@ -1730,18 +1734,20 @@ private static ListFrameworkDeploymentsPage createEmptyPage() { @Override protected ListFrameworkDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListFrameworkDeploymentsRequest, ListFrameworkDeploymentsResponse, FrameworkDeployment> context, - ListFrameworkDeploymentsResponse response) { + @Nullable ListFrameworkDeploymentsResponse response) { return new ListFrameworkDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFrameworkDeploymentsRequest, ListFrameworkDeploymentsResponse, FrameworkDeployment> @@ -1760,7 +1766,7 @@ public static class ListFrameworkDeploymentsFixedSizeCollection ListFrameworkDeploymentsFixedSizeCollection> { private ListFrameworkDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1770,7 +1776,7 @@ private static ListFrameworkDeploymentsFixedSizeCollection createEmptyCollection @Override protected ListFrameworkDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFrameworkDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -1812,12 +1818,13 @@ public static class ListCloudControlDeploymentsPage ListCloudControlDeploymentsPage> { private ListCloudControlDeploymentsPage( - PageContext< + @Nullable + PageContext< ListCloudControlDeploymentsRequest, ListCloudControlDeploymentsResponse, CloudControlDeployment> context, - ListCloudControlDeploymentsResponse response) { + @Nullable ListCloudControlDeploymentsResponse response) { super(context, response); } @@ -1827,18 +1834,20 @@ private static ListCloudControlDeploymentsPage createEmptyPage() { @Override protected ListCloudControlDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListCloudControlDeploymentsRequest, ListCloudControlDeploymentsResponse, CloudControlDeployment> context, - ListCloudControlDeploymentsResponse response) { + @Nullable ListCloudControlDeploymentsResponse response) { return new ListCloudControlDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCloudControlDeploymentsRequest, ListCloudControlDeploymentsResponse, CloudControlDeployment> @@ -1857,7 +1866,7 @@ public static class ListCloudControlDeploymentsFixedSizeCollection ListCloudControlDeploymentsFixedSizeCollection> { private ListCloudControlDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1867,7 +1876,7 @@ private static ListCloudControlDeploymentsFixedSizeCollection createEmptyCollect @Override protected ListCloudControlDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloudControlDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -1901,8 +1910,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1912,14 +1921,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1933,7 +1942,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1943,7 +1953,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentSettings.java index a935585b3ed3..6c89911f0d5d 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentSettings.java @@ -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. /** @@ -247,7 +248,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); } @@ -267,7 +268,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeploymentStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java index 68370674afc0..cd396c283f59 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java @@ -36,6 +36,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. /** @@ -258,7 +259,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MonitoringClient implements BackgroundResource { - private final MonitoringSettings settings; + private final @Nullable MonitoringSettings settings; private final MonitoringStub stub; /** Constructs an instance of MonitoringClient with default settings. */ @@ -296,7 +297,7 @@ protected MonitoringClient(MonitoringStub stub) { this.stub = stub; } - public final MonitoringSettings getSettings() { + public final @Nullable MonitoringSettings getSettings() { return settings; } @@ -329,7 +330,7 @@ public MonitoringStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( - FolderLocationName parent) { + @Nullable FolderLocationName parent) { ListFrameworkComplianceSummariesRequest request = ListFrameworkComplianceSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -362,7 +363,7 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( - LocationName parent) { + @Nullable LocationName parent) { ListFrameworkComplianceSummariesRequest request = ListFrameworkComplianceSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -395,7 +396,7 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplianceSummaries( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFrameworkComplianceSummariesRequest request = ListFrameworkComplianceSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -572,7 +573,8 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * @param parent Required. The parent scope for the framework overview page. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingSummariesPagedResponse listFindingSummaries(FolderLocationName parent) { + public final ListFindingSummariesPagedResponse listFindingSummaries( + @Nullable FolderLocationName parent) { ListFindingSummariesRequest request = ListFindingSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -603,7 +605,8 @@ public final ListFindingSummariesPagedResponse listFindingSummaries(FolderLocati * @param parent Required. The parent scope for the framework overview page. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingSummariesPagedResponse listFindingSummaries(LocationName parent) { + public final ListFindingSummariesPagedResponse listFindingSummaries( + @Nullable LocationName parent) { ListFindingSummariesRequest request = ListFindingSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -635,7 +638,7 @@ public final ListFindingSummariesPagedResponse listFindingSummaries(LocationName * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFindingSummariesPagedResponse listFindingSummaries( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFindingSummariesRequest request = ListFindingSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -808,7 +811,7 @@ public final ListFindingSummariesPagedResponse listFindingSummaries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FrameworkComplianceReport fetchFrameworkComplianceReport( - FrameworkComplianceReportName name) { + @Nullable FrameworkComplianceReportName name) { FetchFrameworkComplianceReportRequest request = FetchFrameworkComplianceReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -941,7 +944,7 @@ public final FrameworkComplianceReport fetchFrameworkComplianceReport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListControlComplianceSummariesPagedResponse listControlComplianceSummaries( - FrameworkComplianceReportName parent) { + @Nullable FrameworkComplianceReportName parent) { ListControlComplianceSummariesRequest request = ListControlComplianceSummariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1134,7 +1137,7 @@ public final ListControlComplianceSummariesPagedResponse listControlComplianceSu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AggregateFrameworkComplianceReportResponse aggregateFrameworkComplianceReport( - FrameworkComplianceReportName name) { + @Nullable FrameworkComplianceReportName name) { AggregateFrameworkComplianceReportRequest request = AggregateFrameworkComplianceReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1505,12 +1508,13 @@ public static class ListFrameworkComplianceSummariesPage ListFrameworkComplianceSummariesPage> { private ListFrameworkComplianceSummariesPage( - PageContext< + @Nullable + PageContext< ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> context, - ListFrameworkComplianceSummariesResponse response) { + @Nullable ListFrameworkComplianceSummariesResponse response) { super(context, response); } @@ -1520,18 +1524,20 @@ private static ListFrameworkComplianceSummariesPage createEmptyPage() { @Override protected ListFrameworkComplianceSummariesPage createPage( - PageContext< + @Nullable + PageContext< ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> context, - ListFrameworkComplianceSummariesResponse response) { + @Nullable ListFrameworkComplianceSummariesResponse response) { return new ListFrameworkComplianceSummariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFrameworkComplianceSummariesRequest, ListFrameworkComplianceSummariesResponse, FrameworkComplianceSummary> @@ -1550,7 +1556,7 @@ public static class ListFrameworkComplianceSummariesFixedSizeCollection ListFrameworkComplianceSummariesFixedSizeCollection> { private ListFrameworkComplianceSummariesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1560,7 +1566,7 @@ private static ListFrameworkComplianceSummariesFixedSizeCollection createEmptyCo @Override protected ListFrameworkComplianceSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFrameworkComplianceSummariesFixedSizeCollection(pages, collectionSize); } } @@ -1598,9 +1604,10 @@ public static class ListFindingSummariesPage ListFindingSummariesPage> { private ListFindingSummariesPage( - PageContext + @Nullable + PageContext context, - ListFindingSummariesResponse response) { + @Nullable ListFindingSummariesResponse response) { super(context, response); } @@ -1610,15 +1617,17 @@ private static ListFindingSummariesPage createEmptyPage() { @Override protected ListFindingSummariesPage createPage( - PageContext + @Nullable + PageContext context, - ListFindingSummariesResponse response) { + @Nullable ListFindingSummariesResponse response) { return new ListFindingSummariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1634,7 +1643,7 @@ public static class ListFindingSummariesFixedSizeCollection ListFindingSummariesFixedSizeCollection> { private ListFindingSummariesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1644,7 +1653,7 @@ private static ListFindingSummariesFixedSizeCollection createEmptyCollection() { @Override protected ListFindingSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingSummariesFixedSizeCollection(pages, collectionSize); } } @@ -1686,12 +1695,13 @@ public static class ListControlComplianceSummariesPage ListControlComplianceSummariesPage> { private ListControlComplianceSummariesPage( - PageContext< + @Nullable + PageContext< ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse, ControlComplianceSummary> context, - ListControlComplianceSummariesResponse response) { + @Nullable ListControlComplianceSummariesResponse response) { super(context, response); } @@ -1701,18 +1711,20 @@ private static ListControlComplianceSummariesPage createEmptyPage() { @Override protected ListControlComplianceSummariesPage createPage( - PageContext< + @Nullable + PageContext< ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse, ControlComplianceSummary> context, - ListControlComplianceSummariesResponse response) { + @Nullable ListControlComplianceSummariesResponse response) { return new ListControlComplianceSummariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListControlComplianceSummariesRequest, ListControlComplianceSummariesResponse, ControlComplianceSummary> @@ -1731,7 +1743,7 @@ public static class ListControlComplianceSummariesFixedSizeCollection ListControlComplianceSummariesFixedSizeCollection> { private ListControlComplianceSummariesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1741,7 +1753,7 @@ private static ListControlComplianceSummariesFixedSizeCollection createEmptyColl @Override protected ListControlComplianceSummariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlComplianceSummariesFixedSizeCollection(pages, collectionSize); } } @@ -1775,8 +1787,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1786,14 +1798,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1807,7 +1819,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1817,7 +1830,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java index eadf8f5c121e..33cbc3441eec 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -204,7 +205,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); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MonitoringStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java index cf1a2489dc17..7878461a5f97 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class AuditStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java index f8f892d9f292..25b6bd6742a6 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/AuditStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -422,7 +423,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); } @@ -524,7 +525,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateFrameworkAuditScopeReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java index fda568b0a68f..eeb2ed5878b2 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/CmEnrollmentServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -385,7 +386,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateCmEnrollmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStubSettings.java index 209321bfc5ec..7b56b18fee33 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStubSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/ConfigStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,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); } @@ -589,7 +590,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFrameworksSettings = PagedCallSettings.newBuilder(LIST_FRAMEWORKS_PAGE_STR_FACT); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStub.java index 123840babd5c..30dbd100b632 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class DeploymentStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStubSettings.java index dea90ef78f28..526dc56ccf93 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStubSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/DeploymentStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -553,7 +554,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); } @@ -669,7 +670,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFrameworkDeploymentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java index 92da2c7d5005..fa783a616877 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/MonitoringStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -580,7 +581,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); } @@ -680,7 +681,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFrameworkComplianceSummariesSettings = diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java index 94e1aca26daf..32d46a443cb2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationCloudControlDeploymentName( .toString(); } - public static CloudControlDeploymentName parse(String formattedString) { + public static @Nullable CloudControlDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -190,7 +191,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudControlDeploymentName> values) { List list = new ArrayList<>(values.size()); for (CloudControlDeploymentName value : values) { if (value == null) { @@ -242,7 +243,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java index db4c5d07cdb1..b60d9e7ce427 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectLocationCloudControlName( .toString(); } - public static CloudControlName parse(String formattedString) { + public static @Nullable CloudControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudControlName> values) { List list = new ArrayList<>(values.size()); for (CloudControlName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java index ca55632949be..d1ab40ed5deb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static CmEnrollmentName parse(String formattedString) { + public static @Nullable CmEnrollmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -139,7 +140,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmEnrollmentName> values) { List list = new ArrayList<>(values.size()); for (CmEnrollmentName value : values) { if (value == null) { @@ -188,7 +189,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java index 46e092df23b8..d5b8933af861 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlComplianceSummaryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -255,7 +256,7 @@ public static String formatFolderLocationFrameworkComplianceReportControlComplia .toString(); } - public static ControlComplianceSummaryName parse(String formattedString) { + public static @Nullable ControlComplianceSummaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -302,7 +303,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlComplianceSummaryName> values) { List list = new ArrayList<>(values.size()); for (ControlComplianceSummaryName value : values) { if (value == null) { @@ -364,7 +365,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java index 88a4ea67fd0e..365be66519d5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FindingSummaryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -201,7 +202,7 @@ public static String formatOrganizationLocationFindingSummaryName( .toString(); } - public static FindingSummaryName parse(String formattedString) { + public static @Nullable FindingSummaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -229,7 +230,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingSummaryName> values) { List list = new ArrayList<>(values.size()); for (FindingSummaryName value : values) { if (value == null) { @@ -285,7 +286,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java index 9db808622022..7b862d45e386 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java index 95354882c713..9ca8ee1e97bd 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkAuditName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatOrganizationLocationFrameworkAuditName( .toString(); } - public static FrameworkAuditName parse(String formattedString) { + public static @Nullable FrameworkAuditName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FrameworkAuditName> values) { List list = new ArrayList<>(values.size()); for (FrameworkAuditName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java index 84b0df0d9a2c..d1a5a43a26d4 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceReportName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -204,7 +205,7 @@ public static String formatOrganizationLocationFrameworkComplianceReportName( .toString(); } - public static FrameworkComplianceReportName parse(String formattedString) { + public static @Nullable FrameworkComplianceReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -242,7 +243,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FrameworkComplianceReportName> values) { List list = new ArrayList<>(values.size()); for (FrameworkComplianceReportName value : values) { if (value == null) { @@ -298,7 +299,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java index bb45715fc425..9eb762875d61 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -207,7 +208,7 @@ public static String formatOrganizationLocationFrameworkComplianceSummaryName( .toString(); } - public static FrameworkComplianceSummaryName parse(String formattedString) { + public static @Nullable FrameworkComplianceSummaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -245,7 +246,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FrameworkComplianceSummaryName> values) { List list = new ArrayList<>(values.size()); for (FrameworkComplianceSummaryName value : values) { if (value == null) { @@ -301,7 +302,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java index 6f2feb898a5a..8d969b249e61 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationFrameworkDeploymentName( .toString(); } - public static FrameworkDeploymentName parse(String formattedString) { + public static @Nullable FrameworkDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FrameworkDeploymentName> values) { List list = new ArrayList<>(values.size()); for (FrameworkDeploymentName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java index be8c7f27f3bc..94c7780caa65 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectLocationFrameworkName( .toString(); } - public static FrameworkName parse(String formattedString) { + public static @Nullable FrameworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FrameworkName> values) { List list = new ArrayList<>(values.size()); for (FrameworkName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java index 14ce5e42d632..73aa2c712bb5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OrganizationLocationName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OrganizationLocationName.java index 7ade94fc7c29..c9cca3705746 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OrganizationLocationName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceClient.java index 85136d847af3..7ccfc98dadcd 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceClient.java @@ -32,6 +32,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. /** @@ -172,7 +173,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CaseAttachmentServiceClient implements BackgroundResource { - private final CaseAttachmentServiceSettings settings; + private final @Nullable CaseAttachmentServiceSettings settings; private final CaseAttachmentServiceStub stub; /** Constructs an instance of CaseAttachmentServiceClient with default settings. */ @@ -212,7 +213,7 @@ protected CaseAttachmentServiceClient(CaseAttachmentServiceStub stub) { this.stub = stub; } - public final CaseAttachmentServiceSettings getSettings() { + public final @Nullable CaseAttachmentServiceSettings getSettings() { return settings; } @@ -244,7 +245,7 @@ public CaseAttachmentServiceStub getStub() { * @param parent Required. The name of the case for which attachments should be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttachmentsPagedResponse listAttachments(CaseName parent) { + public final ListAttachmentsPagedResponse listAttachments(@Nullable CaseName parent) { ListAttachmentsRequest request = ListAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -432,7 +433,7 @@ public final ListAttachmentsPagedResponse listAttachments(ListAttachmentsRequest * @param name Required. The name of the attachment to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attachment getAttachment(AttachmentName name) { + public final Attachment getAttachment(@Nullable AttachmentName name) { GetAttachmentRequest request = GetAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttachment(request); @@ -648,8 +649,8 @@ public static class ListAttachmentsPage ListAttachmentsRequest, ListAttachmentsResponse, Attachment, ListAttachmentsPage> { private ListAttachmentsPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { super(context, response); } @@ -659,14 +660,14 @@ private static ListAttachmentsPage createEmptyPage() { @Override protected ListAttachmentsPage createPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { return new ListAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -681,7 +682,7 @@ public static class ListAttachmentsFixedSizeCollection ListAttachmentsFixedSizeCollection> { private ListAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -691,7 +692,7 @@ private static ListAttachmentsFixedSizeCollection createEmptyCollection() { @Override protected ListAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttachmentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceSettings.java index 3a1dd0919d39..702c24184170 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseAttachmentServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CaseAttachmentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceClient.java index 351968e7a8f5..af30fc4b5d02 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceClient.java @@ -33,6 +33,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. /** @@ -261,7 +262,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CaseServiceClient implements BackgroundResource { - private final CaseServiceSettings settings; + private final @Nullable CaseServiceSettings settings; private final CaseServiceStub stub; /** Constructs an instance of CaseServiceClient with default settings. */ @@ -300,7 +301,7 @@ protected CaseServiceClient(CaseServiceStub stub) { this.stub = stub; } - public final CaseServiceSettings getSettings() { + public final @Nullable CaseServiceSettings getSettings() { return settings; } @@ -329,7 +330,7 @@ public CaseServiceStub getStub() { * @param name Required. The full name of a case to be retrieved. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case getCase(CaseName name) { + public final Case getCase(@Nullable CaseName name) { GetCaseRequest request = GetCaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCase(request); @@ -443,7 +444,7 @@ public final UnaryCallable getCaseCallable() { * @param parent Required. The name of a parent to list cases under. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCasesPagedResponse listCases(OrganizationName parent) { + public final ListCasesPagedResponse listCases(@Nullable OrganizationName parent) { ListCasesRequest request = ListCasesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listCases(request); @@ -476,7 +477,7 @@ public final ListCasesPagedResponse listCases(OrganizationName parent) { * @param parent Required. The name of a parent to list cases under. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCasesPagedResponse listCases(ProjectName parent) { + public final ListCasesPagedResponse listCases(@Nullable ProjectName parent) { ListCasesRequest request = ListCasesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listCases(request); @@ -762,7 +763,7 @@ public final UnaryCallable searchCasesC * @param case_ Required. The case to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case createCase(OrganizationName parent, Case case_) { + public final Case createCase(@Nullable OrganizationName parent, Case case_) { CreateCaseRequest request = CreateCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -798,7 +799,7 @@ public final Case createCase(OrganizationName parent, Case case_) { * @param case_ Required. The case to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case createCase(ProjectName parent, Case case_) { + public final Case createCase(@Nullable ProjectName parent, Case case_) { CreateCaseRequest request = CreateCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1300,8 +1301,8 @@ public static class ListCasesPage extends AbstractPage { private ListCasesPage( - PageContext context, - ListCasesResponse response) { + @Nullable PageContext context, + @Nullable ListCasesResponse response) { super(context, response); } @@ -1311,14 +1312,14 @@ private static ListCasesPage createEmptyPage() { @Override protected ListCasesPage createPage( - PageContext context, - ListCasesResponse response) { + @Nullable PageContext context, + @Nullable ListCasesResponse response) { return new ListCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1328,7 +1329,7 @@ public static class ListCasesFixedSizeCollection extends AbstractFixedSizeCollection< ListCasesRequest, ListCasesResponse, Case, ListCasesPage, ListCasesFixedSizeCollection> { - private ListCasesFixedSizeCollection(List pages, int collectionSize) { + private ListCasesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1338,7 +1339,7 @@ private static ListCasesFixedSizeCollection createEmptyCollection() { @Override protected ListCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCasesFixedSizeCollection(pages, collectionSize); } } @@ -1369,8 +1370,8 @@ public static class SearchCasesPage extends AbstractPage { private SearchCasesPage( - PageContext context, - SearchCasesResponse response) { + @Nullable PageContext context, + @Nullable SearchCasesResponse response) { super(context, response); } @@ -1380,14 +1381,14 @@ private static SearchCasesPage createEmptyPage() { @Override protected SearchCasesPage createPage( - PageContext context, - SearchCasesResponse response) { + @Nullable PageContext context, + @Nullable SearchCasesResponse response) { return new SearchCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1401,7 +1402,8 @@ public static class SearchCasesFixedSizeCollection SearchCasesPage, SearchCasesFixedSizeCollection> { - private SearchCasesFixedSizeCollection(List pages, int collectionSize) { + private SearchCasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1411,7 +1413,7 @@ private static SearchCasesFixedSizeCollection createEmptyCollection() { @Override protected SearchCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCasesFixedSizeCollection(pages, collectionSize); } } @@ -1452,12 +1454,13 @@ public static class SearchCaseClassificationsPage SearchCaseClassificationsPage> { private SearchCaseClassificationsPage( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> context, - SearchCaseClassificationsResponse response) { + @Nullable SearchCaseClassificationsResponse response) { super(context, response); } @@ -1467,18 +1470,20 @@ private static SearchCaseClassificationsPage createEmptyPage() { @Override protected SearchCaseClassificationsPage createPage( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> context, - SearchCaseClassificationsResponse response) { + @Nullable SearchCaseClassificationsResponse response) { return new SearchCaseClassificationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> @@ -1497,7 +1502,7 @@ public static class SearchCaseClassificationsFixedSizeCollection SearchCaseClassificationsFixedSizeCollection> { private SearchCaseClassificationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1507,7 +1512,7 @@ private static SearchCaseClassificationsFixedSizeCollection createEmptyCollectio @Override protected SearchCaseClassificationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCaseClassificationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceSettings.java index 2aadaf883b8d..b9bcd8d8de75 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CaseServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CaseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceClient.java index 930b845e83a6..ecec6c6fc785 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceClient.java @@ -32,6 +32,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CommentServiceClient implements BackgroundResource { - private final CommentServiceSettings settings; + private final @Nullable CommentServiceSettings settings; private final CommentServiceStub stub; /** Constructs an instance of CommentServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected CommentServiceClient(CommentServiceStub stub) { this.stub = stub; } - public final CommentServiceSettings getSettings() { + public final @Nullable CommentServiceSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public CommentServiceStub getStub() { * @param parent Required. The name of the case for which to list comments. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCommentsPagedResponse listComments(CaseName parent) { + public final ListCommentsPagedResponse listComments(@Nullable CaseName parent) { ListCommentsRequest request = ListCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -422,7 +423,7 @@ public final UnaryCallable listCommen * @param comment Required. The comment to be added. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Comment createComment(CaseName parent, Comment comment) { + public final Comment createComment(@Nullable CaseName parent, Comment comment) { CreateCommentRequest request = CreateCommentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,7 +566,7 @@ public final UnaryCallable createCommentCallable( * @param name Required. The name of the comment to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Comment getComment(CommentName name) { + public final Comment getComment(@Nullable CommentName name) { GetCommentRequest request = GetCommentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getComment(request); @@ -776,8 +777,8 @@ public static class ListCommentsPage extends AbstractPage { private ListCommentsPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { super(context, response); } @@ -787,14 +788,14 @@ private static ListCommentsPage createEmptyPage() { @Override protected ListCommentsPage createPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { return new ListCommentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -808,7 +809,8 @@ public static class ListCommentsFixedSizeCollection ListCommentsPage, ListCommentsFixedSizeCollection> { - private ListCommentsFixedSizeCollection(List pages, int collectionSize) { + private ListCommentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -818,7 +820,7 @@ private static ListCommentsFixedSizeCollection createEmptyCollection() { @Override protected ListCommentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCommentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceSettings.java index d7e7ac37cc7e..254d92976804 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/CommentServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,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); } @@ -182,7 +183,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CommentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceClient.java index ea920d26d381..1045477cc6bb 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceClient.java @@ -33,6 +33,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. /** @@ -239,7 +240,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SupportEventSubscriptionServiceClient implements BackgroundResource { - private final SupportEventSubscriptionServiceSettings settings; + private final @Nullable SupportEventSubscriptionServiceSettings settings; private final SupportEventSubscriptionServiceStub stub; /** Constructs an instance of SupportEventSubscriptionServiceClient with default settings. */ @@ -284,7 +285,7 @@ protected SupportEventSubscriptionServiceClient(SupportEventSubscriptionServiceS this.stub = stub; } - public final SupportEventSubscriptionServiceSettings getSettings() { + public final @Nullable SupportEventSubscriptionServiceSettings getSettings() { return settings; } @@ -321,7 +322,7 @@ public SupportEventSubscriptionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription createSupportEventSubscription( - OrganizationName parent, SupportEventSubscription supportEventSubscription) { + @Nullable OrganizationName parent, SupportEventSubscription supportEventSubscription) { CreateSupportEventSubscriptionRequest request = CreateSupportEventSubscriptionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -459,7 +460,7 @@ public final SupportEventSubscription createSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription getSupportEventSubscription( - SupportEventSubscriptionName name) { + @Nullable SupportEventSubscriptionName name) { GetSupportEventSubscriptionRequest request = GetSupportEventSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -595,7 +596,7 @@ public final SupportEventSubscription getSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSupportEventSubscriptionsPagedResponse listSupportEventSubscriptions( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListSupportEventSubscriptionsRequest request = ListSupportEventSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -892,7 +893,7 @@ public final SupportEventSubscription updateSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription deleteSupportEventSubscription( - SupportEventSubscriptionName name) { + @Nullable SupportEventSubscriptionName name) { DeleteSupportEventSubscriptionRequest request = DeleteSupportEventSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1133,12 +1134,13 @@ public static class ListSupportEventSubscriptionsPage ListSupportEventSubscriptionsPage> { private ListSupportEventSubscriptionsPage( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> context, - ListSupportEventSubscriptionsResponse response) { + @Nullable ListSupportEventSubscriptionsResponse response) { super(context, response); } @@ -1148,18 +1150,20 @@ private static ListSupportEventSubscriptionsPage createEmptyPage() { @Override protected ListSupportEventSubscriptionsPage createPage( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> context, - ListSupportEventSubscriptionsResponse response) { + @Nullable ListSupportEventSubscriptionsResponse response) { return new ListSupportEventSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> @@ -1178,7 +1182,7 @@ public static class ListSupportEventSubscriptionsFixedSizeCollection ListSupportEventSubscriptionsFixedSizeCollection> { private ListSupportEventSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1188,7 +1192,7 @@ private static ListSupportEventSubscriptionsFixedSizeCollection createEmptyColle @Override protected ListSupportEventSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSupportEventSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceSettings.java index 5a33ab10c1d2..85d3fc685a00 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SupportEventSubscriptionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java index 8280c237370a..5ace916683e1 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseAttachmentServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -289,7 +290,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); } @@ -360,7 +361,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAttachmentsSettings = PagedCallSettings.newBuilder(LIST_ATTACHMENTS_PAGE_STR_FACT); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java index 8f80067a1913..f6275e64eb54 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CaseServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -463,7 +464,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); } @@ -558,7 +559,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java index 6a88c471979e..285a3a5a7668 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/CommentServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -372,7 +373,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCommentsSettings = PagedCallSettings.newBuilder(LIST_COMMENTS_PAGE_STR_FACT); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/SupportEventSubscriptionServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/SupportEventSubscriptionServiceStubSettings.java index 35169a281564..65e4115247b8 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/SupportEventSubscriptionServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/SupportEventSubscriptionServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,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); } @@ -442,7 +443,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSupportEventSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceClient.java index ecd4f806aaba..b7776ec30b96 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceClient.java @@ -33,6 +33,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. /** @@ -168,7 +169,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CaseAttachmentServiceClient implements BackgroundResource { - private final CaseAttachmentServiceSettings settings; + private final @Nullable CaseAttachmentServiceSettings settings; private final CaseAttachmentServiceStub stub; /** Constructs an instance of CaseAttachmentServiceClient with default settings. */ @@ -208,7 +209,7 @@ protected CaseAttachmentServiceClient(CaseAttachmentServiceStub stub) { this.stub = stub; } - public final CaseAttachmentServiceSettings getSettings() { + public final @Nullable CaseAttachmentServiceSettings getSettings() { return settings; } @@ -240,7 +241,7 @@ public CaseAttachmentServiceStub getStub() { * @param parent Required. The name of the case for which attachments should be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttachmentsPagedResponse listAttachments(CaseName parent) { + public final ListAttachmentsPagedResponse listAttachments(@Nullable CaseName parent) { ListAttachmentsRequest request = ListAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -409,7 +410,7 @@ public final ListAttachmentsPagedResponse listAttachments(ListAttachmentsRequest * @param name Required. The name of the attachment to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Attachment getAttachment(AttachmentName name) { + public final Attachment getAttachment(@Nullable AttachmentName name) { GetAttachmentRequest request = GetAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAttachment(request); @@ -568,8 +569,8 @@ public static class ListAttachmentsPage ListAttachmentsRequest, ListAttachmentsResponse, Attachment, ListAttachmentsPage> { private ListAttachmentsPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { super(context, response); } @@ -579,14 +580,14 @@ private static ListAttachmentsPage createEmptyPage() { @Override protected ListAttachmentsPage createPage( - PageContext context, - ListAttachmentsResponse response) { + @Nullable PageContext context, + @Nullable ListAttachmentsResponse response) { return new ListAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -601,7 +602,7 @@ public static class ListAttachmentsFixedSizeCollection ListAttachmentsFixedSizeCollection> { private ListAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -611,7 +612,7 @@ private static ListAttachmentsFixedSizeCollection createEmptyCollection() { @Override protected ListAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttachmentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceSettings.java index 48955a741908..5289631f5012 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseAttachmentServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CaseAttachmentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceClient.java index 9039d3152ea5..7da4223832c4 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceClient.java @@ -34,6 +34,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. /** @@ -263,7 +264,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CaseServiceClient implements BackgroundResource { - private final CaseServiceSettings settings; + private final @Nullable CaseServiceSettings settings; private final CaseServiceStub stub; /** Constructs an instance of CaseServiceClient with default settings. */ @@ -302,7 +303,7 @@ protected CaseServiceClient(CaseServiceStub stub) { this.stub = stub; } - public final CaseServiceSettings getSettings() { + public final @Nullable CaseServiceSettings getSettings() { return settings; } @@ -331,7 +332,7 @@ public CaseServiceStub getStub() { * @param name Required. The full name of a case to be retrieved. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case getCase(CaseName name) { + public final Case getCase(@Nullable CaseName name) { GetCaseRequest request = GetCaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCase(request); @@ -445,7 +446,7 @@ public final UnaryCallable getCaseCallable() { * @param parent Required. The name of a parent to list cases under. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCasesPagedResponse listCases(OrganizationName parent) { + public final ListCasesPagedResponse listCases(@Nullable OrganizationName parent) { ListCasesRequest request = ListCasesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listCases(request); @@ -478,7 +479,7 @@ public final ListCasesPagedResponse listCases(OrganizationName parent) { * @param parent Required. The name of a parent to list cases under. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCasesPagedResponse listCases(ProjectName parent) { + public final ListCasesPagedResponse listCases(@Nullable ProjectName parent) { ListCasesRequest request = ListCasesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listCases(request); @@ -767,7 +768,7 @@ public final UnaryCallable searchCasesC * @param case_ Required. The case to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case createCase(OrganizationName parent, Case case_) { + public final Case createCase(@Nullable OrganizationName parent, Case case_) { CreateCaseRequest request = CreateCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -803,7 +804,7 @@ public final Case createCase(OrganizationName parent, Case case_) { * @param case_ Required. The case to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Case createCase(ProjectName parent, Case case_) { + public final Case createCase(@Nullable ProjectName parent, Case case_) { CreateCaseRequest request = CreateCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1308,8 +1309,8 @@ public static class ListCasesPage extends AbstractPage { private ListCasesPage( - PageContext context, - ListCasesResponse response) { + @Nullable PageContext context, + @Nullable ListCasesResponse response) { super(context, response); } @@ -1319,14 +1320,14 @@ private static ListCasesPage createEmptyPage() { @Override protected ListCasesPage createPage( - PageContext context, - ListCasesResponse response) { + @Nullable PageContext context, + @Nullable ListCasesResponse response) { return new ListCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1336,7 +1337,7 @@ public static class ListCasesFixedSizeCollection extends AbstractFixedSizeCollection< ListCasesRequest, ListCasesResponse, Case, ListCasesPage, ListCasesFixedSizeCollection> { - private ListCasesFixedSizeCollection(List pages, int collectionSize) { + private ListCasesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1346,7 +1347,7 @@ private static ListCasesFixedSizeCollection createEmptyCollection() { @Override protected ListCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCasesFixedSizeCollection(pages, collectionSize); } } @@ -1377,8 +1378,8 @@ public static class SearchCasesPage extends AbstractPage { private SearchCasesPage( - PageContext context, - SearchCasesResponse response) { + @Nullable PageContext context, + @Nullable SearchCasesResponse response) { super(context, response); } @@ -1388,14 +1389,14 @@ private static SearchCasesPage createEmptyPage() { @Override protected SearchCasesPage createPage( - PageContext context, - SearchCasesResponse response) { + @Nullable PageContext context, + @Nullable SearchCasesResponse response) { return new SearchCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1409,7 +1410,8 @@ public static class SearchCasesFixedSizeCollection SearchCasesPage, SearchCasesFixedSizeCollection> { - private SearchCasesFixedSizeCollection(List pages, int collectionSize) { + private SearchCasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1419,7 +1421,7 @@ private static SearchCasesFixedSizeCollection createEmptyCollection() { @Override protected SearchCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCasesFixedSizeCollection(pages, collectionSize); } } @@ -1460,12 +1462,13 @@ public static class SearchCaseClassificationsPage SearchCaseClassificationsPage> { private SearchCaseClassificationsPage( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> context, - SearchCaseClassificationsResponse response) { + @Nullable SearchCaseClassificationsResponse response) { super(context, response); } @@ -1475,18 +1478,20 @@ private static SearchCaseClassificationsPage createEmptyPage() { @Override protected SearchCaseClassificationsPage createPage( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> context, - SearchCaseClassificationsResponse response) { + @Nullable SearchCaseClassificationsResponse response) { return new SearchCaseClassificationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchCaseClassificationsRequest, SearchCaseClassificationsResponse, CaseClassification> @@ -1505,7 +1510,7 @@ public static class SearchCaseClassificationsFixedSizeCollection SearchCaseClassificationsFixedSizeCollection> { private SearchCaseClassificationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1515,7 +1520,7 @@ private static SearchCaseClassificationsFixedSizeCollection createEmptyCollectio @Override protected SearchCaseClassificationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCaseClassificationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceSettings.java index 0aca6a450c4e..b8ca1a5a98c2 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CaseServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CaseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceClient.java index 26903cf1713a..fb4825058dfd 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceClient.java @@ -33,6 +33,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. /** @@ -182,7 +183,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CommentServiceClient implements BackgroundResource { - private final CommentServiceSettings settings; + private final @Nullable CommentServiceSettings settings; private final CommentServiceStub stub; /** Constructs an instance of CommentServiceClient with default settings. */ @@ -222,7 +223,7 @@ protected CommentServiceClient(CommentServiceStub stub) { this.stub = stub; } - public final CommentServiceSettings getSettings() { + public final @Nullable CommentServiceSettings getSettings() { return settings; } @@ -253,7 +254,7 @@ public CommentServiceStub getStub() { * @param parent Required. The name of the case for which to list comments. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCommentsPagedResponse listComments(CaseName parent) { + public final ListCommentsPagedResponse listComments(@Nullable CaseName parent) { ListCommentsRequest request = ListCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -417,7 +418,7 @@ public final UnaryCallable listCommen * @param comment Required. The comment to be added. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Comment createComment(CaseName parent, Comment comment) { + public final Comment createComment(@Nullable CaseName parent, Comment comment) { CreateCommentRequest request = CreateCommentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -540,7 +541,7 @@ public final UnaryCallable createCommentCallable( * @param name Required. The name of the comment to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Comment getComment(CommentName name) { + public final Comment getComment(@Nullable CommentName name) { GetCommentRequest request = GetCommentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getComment(request); @@ -691,8 +692,8 @@ public static class ListCommentsPage extends AbstractPage { private ListCommentsPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { super(context, response); } @@ -702,14 +703,14 @@ private static ListCommentsPage createEmptyPage() { @Override protected ListCommentsPage createPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { return new ListCommentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -723,7 +724,8 @@ public static class ListCommentsFixedSizeCollection ListCommentsPage, ListCommentsFixedSizeCollection> { - private ListCommentsFixedSizeCollection(List pages, int collectionSize) { + private ListCommentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -733,7 +735,7 @@ private static ListCommentsFixedSizeCollection createEmptyCollection() { @Override protected ListCommentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCommentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceSettings.java index 1d902ee7a623..47f938490243 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/CommentServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CommentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceClient.java index 744dbeadeff9..c98f6e513a84 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceClient.java @@ -33,6 +33,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. /** @@ -143,7 +144,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FeedServiceClient implements BackgroundResource { - private final FeedServiceSettings settings; + private final @Nullable FeedServiceSettings settings; private final FeedServiceStub stub; /** Constructs an instance of FeedServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected FeedServiceClient(FeedServiceStub stub) { this.stub = stub; } - public final FeedServiceSettings getSettings() { + public final @Nullable FeedServiceSettings getSettings() { return settings; } @@ -213,7 +214,7 @@ public FeedServiceStub getStub() { * @param parent Required. The resource name of the case for which feed items should be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ShowFeedPagedResponse showFeed(CaseName parent) { + public final ShowFeedPagedResponse showFeed(@Nullable CaseName parent) { ShowFeedRequest request = ShowFeedRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return showFeed(request); @@ -403,8 +404,8 @@ public static class ShowFeedPage extends AbstractPage { private ShowFeedPage( - PageContext context, - ShowFeedResponse response) { + @Nullable PageContext context, + @Nullable ShowFeedResponse response) { super(context, response); } @@ -414,14 +415,14 @@ private static ShowFeedPage createEmptyPage() { @Override protected ShowFeedPage createPage( - PageContext context, - ShowFeedResponse response) { + @Nullable PageContext context, + @Nullable ShowFeedResponse response) { return new ShowFeedPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -431,7 +432,7 @@ public static class ShowFeedFixedSizeCollection extends AbstractFixedSizeCollection< ShowFeedRequest, ShowFeedResponse, FeedItem, ShowFeedPage, ShowFeedFixedSizeCollection> { - private ShowFeedFixedSizeCollection(List pages, int collectionSize) { + private ShowFeedFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -441,7 +442,7 @@ private static ShowFeedFixedSizeCollection createEmptyCollection() { @Override protected ShowFeedFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ShowFeedFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceSettings.java index 9ba2ef262818..7c8823bd9cb1 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/FeedServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FeedServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceClient.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceClient.java index f545dbc1804f..a6eb29637726 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceClient.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceClient.java @@ -34,6 +34,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. /** @@ -241,7 +242,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SupportEventSubscriptionServiceClient implements BackgroundResource { - private final SupportEventSubscriptionServiceSettings settings; + private final @Nullable SupportEventSubscriptionServiceSettings settings; private final SupportEventSubscriptionServiceStub stub; /** Constructs an instance of SupportEventSubscriptionServiceClient with default settings. */ @@ -286,7 +287,7 @@ protected SupportEventSubscriptionServiceClient(SupportEventSubscriptionServiceS this.stub = stub; } - public final SupportEventSubscriptionServiceSettings getSettings() { + public final @Nullable SupportEventSubscriptionServiceSettings getSettings() { return settings; } @@ -323,7 +324,7 @@ public SupportEventSubscriptionServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription createSupportEventSubscription( - OrganizationName parent, SupportEventSubscription supportEventSubscription) { + @Nullable OrganizationName parent, SupportEventSubscription supportEventSubscription) { CreateSupportEventSubscriptionRequest request = CreateSupportEventSubscriptionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -461,7 +462,7 @@ public final SupportEventSubscription createSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription getSupportEventSubscription( - SupportEventSubscriptionName name) { + @Nullable SupportEventSubscriptionName name) { GetSupportEventSubscriptionRequest request = GetSupportEventSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -597,7 +598,7 @@ public final SupportEventSubscription getSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSupportEventSubscriptionsPagedResponse listSupportEventSubscriptions( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListSupportEventSubscriptionsRequest request = ListSupportEventSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -894,7 +895,7 @@ public final SupportEventSubscription updateSupportEventSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportEventSubscription deleteSupportEventSubscription( - SupportEventSubscriptionName name) { + @Nullable SupportEventSubscriptionName name) { DeleteSupportEventSubscriptionRequest request = DeleteSupportEventSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1135,12 +1136,13 @@ public static class ListSupportEventSubscriptionsPage ListSupportEventSubscriptionsPage> { private ListSupportEventSubscriptionsPage( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> context, - ListSupportEventSubscriptionsResponse response) { + @Nullable ListSupportEventSubscriptionsResponse response) { super(context, response); } @@ -1150,18 +1152,20 @@ private static ListSupportEventSubscriptionsPage createEmptyPage() { @Override protected ListSupportEventSubscriptionsPage createPage( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> context, - ListSupportEventSubscriptionsResponse response) { + @Nullable ListSupportEventSubscriptionsResponse response) { return new ListSupportEventSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSupportEventSubscriptionsRequest, ListSupportEventSubscriptionsResponse, SupportEventSubscription> @@ -1180,7 +1184,7 @@ public static class ListSupportEventSubscriptionsFixedSizeCollection ListSupportEventSubscriptionsFixedSizeCollection> { private ListSupportEventSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1190,7 +1194,7 @@ private static ListSupportEventSubscriptionsFixedSizeCollection createEmptyColle @Override protected ListSupportEventSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSupportEventSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceSettings.java index d969d2809bfc..9695f10a4aa8 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,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); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SupportEventSubscriptionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseAttachmentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseAttachmentServiceStubSettings.java index 5b590f3c6430..00fe95c0d2fd 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseAttachmentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseAttachmentServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAttachmentsSettings = PagedCallSettings.newBuilder(LIST_ATTACHMENTS_PAGE_STR_FACT); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseServiceStubSettings.java index fdce9264db6a..9a371d4d2c02 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CaseServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -559,7 +560,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CommentServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CommentServiceStubSettings.java index a78cadb1a881..ddf40156500d 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CommentServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/CommentServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -373,7 +374,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCommentsSettings = PagedCallSettings.newBuilder(LIST_COMMENTS_PAGE_STR_FACT); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/FeedServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/FeedServiceStubSettings.java index fb328686aae4..aa78523051a4 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/FeedServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/FeedServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -275,7 +276,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); } @@ -340,7 +341,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); showFeedSettings = PagedCallSettings.newBuilder(SHOW_FEED_PAGE_STR_FACT); diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/SupportEventSubscriptionServiceStubSettings.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/SupportEventSubscriptionServiceStubSettings.java index 2bdeefb792f9..c1802a5eeed9 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/SupportEventSubscriptionServiceStubSettings.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/SupportEventSubscriptionServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -359,7 +360,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); } @@ -443,7 +444,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSupportEventSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/AttachmentName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/AttachmentName.java index 56c20437390c..c59ea7fd0214 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/AttachmentName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/AttachmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectCaseAttachmentIdName( .toString(); } - public static AttachmentName parse(String formattedString) { + public static @Nullable AttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachmentName> values) { List list = new ArrayList<>(values.size()); for (AttachmentName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseName.java index c1e91bf8a566..17b82432da45 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CaseName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -116,7 +117,7 @@ public static String formatProjectCaseName(String project, String case_) { return newProjectCaseBuilder().setProject(project).setCase(case_).build().toString(); } - public static CaseName parse(String formattedString) { + public static @Nullable CaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -138,7 +139,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CaseName> values) { List list = new ArrayList<>(values.size()); for (CaseName value : values) { if (value == null) { @@ -186,7 +187,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentName.java index d6cdecf52ce8..9e0eff53a3ea 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/CommentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectCaseCommentName(String project, String case_, .toString(); } - public static CommentName parse(String formattedString) { + public static @Nullable CommentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -170,7 +171,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CommentName> values) { List list = new ArrayList<>(values.size()); for (CommentName value : values) { if (value == null) { @@ -222,7 +223,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/OrganizationName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/OrganizationName.java index ed50ad437434..d506400887b1 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/OrganizationName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/ProjectName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/ProjectName.java index 168179e51cad..93e2aed85842 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/ProjectName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionName.java index 2c784ebb06cd..eda5e6748d13 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -81,7 +82,7 @@ public static String format(String organization, String supportEventSubscription .toString(); } - public static SupportEventSubscriptionName parse(String formattedString) { + public static @Nullable SupportEventSubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -100,7 +101,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SupportEventSubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SupportEventSubscriptionName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/AttachmentName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/AttachmentName.java index 9e980887128d..3bc6b5ec8af5 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/AttachmentName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/AttachmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectCaseAttachmentIdName( .toString(); } - public static AttachmentName parse(String formattedString) { + public static @Nullable AttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -181,7 +182,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachmentName> values) { List list = new ArrayList<>(values.size()); for (AttachmentName value : values) { if (value == null) { @@ -233,7 +234,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseName.java index 8d6393069d3e..01690793cd3d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CaseName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -116,7 +117,7 @@ public static String formatProjectCaseName(String project, String case_) { return newProjectCaseBuilder().setProject(project).setCase(case_).build().toString(); } - public static CaseName parse(String formattedString) { + public static @Nullable CaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -138,7 +139,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CaseName> values) { List list = new ArrayList<>(values.size()); for (CaseName value : values) { if (value == null) { @@ -186,7 +187,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentName.java index 1bdff34b60f3..c0e28c748dc6 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/CommentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectCaseCommentName(String project, String case_, .toString(); } - public static CommentName parse(String formattedString) { + public static @Nullable CommentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -170,7 +171,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CommentName> values) { List list = new ArrayList<>(values.size()); for (CommentName value : values) { if (value == null) { @@ -222,7 +223,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/OrganizationName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/OrganizationName.java index 60276963fccb..d5c9237f4b3f 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/OrganizationName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/ProjectName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/ProjectName.java index 45f7e2e98b1c..2fcf6d39de8b 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/ProjectName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionName.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionName.java index 85890430c3da..e833d04944ac 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionName.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -81,7 +82,7 @@ public static String format(String organization, String supportEventSubscription .toString(); } - public static SupportEventSubscriptionName parse(String formattedString) { + public static @Nullable SupportEventSubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -100,7 +101,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SupportEventSubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SupportEventSubscriptionName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesClient.java index a6bdabca5516..6c9aa8ffe44f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesClient.java @@ -33,6 +33,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. /** @@ -171,7 +172,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AcceleratorTypesClient implements BackgroundResource { - private final AcceleratorTypesSettings settings; + private final @Nullable AcceleratorTypesSettings settings; private final AcceleratorTypesStub stub; /** Constructs an instance of AcceleratorTypesClient with default settings. */ @@ -211,7 +212,7 @@ protected AcceleratorTypesClient(AcceleratorTypesStub stub) { this.stub = stub; } - public final AcceleratorTypesSettings getSettings() { + public final @Nullable AcceleratorTypesSettings getSettings() { return settings; } @@ -688,12 +689,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListAcceleratorTypesRequest, AcceleratorTypeAggregatedList, Map.Entry> context, - AcceleratorTypeAggregatedList response) { + @Nullable AcceleratorTypeAggregatedList response) { super(context, response); } @@ -703,18 +705,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListAcceleratorTypesRequest, AcceleratorTypeAggregatedList, Map.Entry> context, - AcceleratorTypeAggregatedList response) { + @Nullable AcceleratorTypeAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListAcceleratorTypesRequest, AcceleratorTypeAggregatedList, Map.Entry> @@ -732,7 +736,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -742,7 +747,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -774,8 +779,9 @@ public static class ListPage ListAcceleratorTypesRequest, AcceleratorTypeList, AcceleratorType, ListPage> { private ListPage( - PageContext context, - AcceleratorTypeList response) { + @Nullable PageContext + context, + @Nullable AcceleratorTypeList response) { super(context, response); } @@ -785,14 +791,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - AcceleratorTypeList response) { + @Nullable PageContext + context, + @Nullable AcceleratorTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -806,7 +814,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -815,7 +823,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java index 18a7f3725016..a5e556f2a519 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AcceleratorTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java index 13956a078fe3..95face9f0e37 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java @@ -35,6 +35,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. /** @@ -262,7 +263,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AddressesClient implements BackgroundResource { - private final AddressesSettings settings; + private final @Nullable AddressesSettings settings; private final AddressesStub stub; /** Constructs an instance of AddressesClient with default settings. */ @@ -300,7 +301,7 @@ protected AddressesClient(AddressesStub stub) { this.stub = stub; } - public final AddressesSettings getSettings() { + public final @Nullable AddressesSettings getSettings() { return settings; } @@ -1432,12 +1433,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListAddressesRequest, AddressAggregatedList, Map.Entry> context, - AddressAggregatedList response) { + @Nullable AddressAggregatedList response) { super(context, response); } @@ -1447,18 +1449,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListAddressesRequest, AddressAggregatedList, Map.Entry> context, - AddressAggregatedList response) { + @Nullable AddressAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListAddressesRequest, AddressAggregatedList, Map.Entry> @@ -1476,7 +1480,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1491,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1513,7 +1518,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { super(context, response); } @@ -1523,13 +1529,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1539,7 +1546,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListAddressesRequest, AddressList, Address, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1548,7 +1555,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java index c1ca764ada52..7732cc1164ef 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AddressesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceClient.java index fb5c5ab8bce2..817bb543702e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceClient.java @@ -24,6 +24,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. /** @@ -119,7 +120,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdviceClient implements BackgroundResource { - private final AdviceSettings settings; + private final @Nullable AdviceSettings settings; private final AdviceStub stub; /** Constructs an instance of AdviceClient with default settings. */ @@ -157,7 +158,7 @@ protected AdviceClient(AdviceStub stub) { this.stub = stub; } - public final AdviceSettings getSettings() { + public final @Nullable AdviceSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceSettings.java index 6fc816292052..8e265c3e9028 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AdviceSettings.java @@ -30,6 +30,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -134,7 +135,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -154,7 +155,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdviceStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java index 887b89bb6528..02f3fc9b1a4b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java @@ -35,6 +35,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. /** @@ -262,7 +263,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutoscalersClient implements BackgroundResource { - private final AutoscalersSettings settings; + private final @Nullable AutoscalersSettings settings; private final AutoscalersStub stub; /** Constructs an instance of AutoscalersClient with default settings. */ @@ -301,7 +302,7 @@ protected AutoscalersClient(AutoscalersStub stub) { this.stub = stub; } - public final AutoscalersSettings getSettings() { + public final @Nullable AutoscalersSettings getSettings() { return settings; } @@ -1412,12 +1413,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListAutoscalersRequest, AutoscalerAggregatedList, Map.Entry> context, - AutoscalerAggregatedList response) { + @Nullable AutoscalerAggregatedList response) { super(context, response); } @@ -1427,18 +1429,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListAutoscalersRequest, AutoscalerAggregatedList, Map.Entry> context, - AutoscalerAggregatedList response) { + @Nullable AutoscalerAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListAutoscalersRequest, AutoscalerAggregatedList, Map.Entry> @@ -1456,7 +1460,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1466,7 +1471,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1493,8 +1498,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - AutoscalerList response) { + @Nullable PageContext context, + @Nullable AutoscalerList response) { super(context, response); } @@ -1504,14 +1509,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - AutoscalerList response) { + @Nullable PageContext context, + @Nullable AutoscalerList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1521,7 +1526,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListAutoscalersRequest, AutoscalerList, Autoscaler, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1530,7 +1535,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java index 59bfe4964b97..11080342dd8e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutoscalersStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java index 79463da38b04..cdce520c8b3d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java @@ -35,6 +35,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. /** @@ -373,7 +374,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BackendBucketsClient implements BackgroundResource { - private final BackendBucketsSettings settings; + private final @Nullable BackendBucketsSettings settings; private final BackendBucketsStub stub; /** Constructs an instance of BackendBucketsClient with default settings. */ @@ -413,7 +414,7 @@ protected BackendBucketsClient(BackendBucketsStub stub) { this.stub = stub; } - public final BackendBucketsSettings getSettings() { + public final @Nullable BackendBucketsSettings getSettings() { return settings; } @@ -2244,12 +2245,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListBackendBucketsRequest, BackendBucketAggregatedList, Map.Entry> context, - BackendBucketAggregatedList response) { + @Nullable BackendBucketAggregatedList response) { super(context, response); } @@ -2259,18 +2261,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListBackendBucketsRequest, BackendBucketAggregatedList, Map.Entry> context, - BackendBucketAggregatedList response) { + @Nullable BackendBucketAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListBackendBucketsRequest, BackendBucketAggregatedList, Map.Entry> @@ -2288,7 +2292,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2298,7 +2303,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2329,8 +2334,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - BackendBucketList response) { + @Nullable PageContext context, + @Nullable BackendBucketList response) { super(context, response); } @@ -2340,14 +2345,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - BackendBucketList response) { + @Nullable PageContext context, + @Nullable BackendBucketList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2361,7 +2366,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2370,7 +2375,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2403,9 +2409,10 @@ public static class ListUsablePage ListUsableBackendBucketsRequest, BackendBucketListUsable, BackendBucket, ListUsablePage> { private ListUsablePage( - PageContext + @Nullable + PageContext context, - BackendBucketListUsable response) { + @Nullable BackendBucketListUsable response) { super(context, response); } @@ -2415,15 +2422,17 @@ private static ListUsablePage createEmptyPage() { @Override protected ListUsablePage createPage( - PageContext + @Nullable + PageContext context, - BackendBucketListUsable response) { + @Nullable BackendBucketListUsable response) { return new ListUsablePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2438,7 +2447,8 @@ public static class ListUsableFixedSizeCollection ListUsablePage, ListUsableFixedSizeCollection> { - private ListUsableFixedSizeCollection(List pages, int collectionSize) { + private ListUsableFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2448,7 +2458,7 @@ private static ListUsableFixedSizeCollection createEmptyCollection() { @Override protected ListUsableFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java index 47f1420bb268..19c145cf0b61 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,7 +287,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -306,7 +307,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BackendBucketsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java index 9309235ed152..dee1731160b1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java @@ -35,6 +35,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. /** @@ -433,7 +434,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BackendServicesClient implements BackgroundResource { - private final BackendServicesSettings settings; + private final @Nullable BackendServicesSettings settings; private final BackendServicesStub stub; /** Constructs an instance of BackendServicesClient with default settings. */ @@ -473,7 +474,7 @@ protected BackendServicesClient(BackendServicesStub stub) { this.stub = stub; } - public final BackendServicesSettings getSettings() { + public final @Nullable BackendServicesSettings getSettings() { return settings; } @@ -2668,12 +2669,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListBackendServicesRequest, BackendServiceAggregatedList, Map.Entry> context, - BackendServiceAggregatedList response) { + @Nullable BackendServiceAggregatedList response) { super(context, response); } @@ -2683,18 +2685,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListBackendServicesRequest, BackendServiceAggregatedList, Map.Entry> context, - BackendServiceAggregatedList response) { + @Nullable BackendServiceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListBackendServicesRequest, BackendServiceAggregatedList, Map.Entry> @@ -2712,7 +2716,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2722,7 +2727,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2754,8 +2759,9 @@ public static class ListPage ListBackendServicesRequest, BackendServiceList, BackendService, ListPage> { private ListPage( - PageContext context, - BackendServiceList response) { + @Nullable PageContext + context, + @Nullable BackendServiceList response) { super(context, response); } @@ -2765,14 +2771,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - BackendServiceList response) { + @Nullable PageContext + context, + @Nullable BackendServiceList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2786,7 +2794,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2795,7 +2803,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2831,9 +2840,10 @@ public static class ListUsablePage ListUsablePage> { private ListUsablePage( - PageContext + @Nullable + PageContext context, - BackendServiceListUsable response) { + @Nullable BackendServiceListUsable response) { super(context, response); } @@ -2843,15 +2853,17 @@ private static ListUsablePage createEmptyPage() { @Override protected ListUsablePage createPage( - PageContext + @Nullable + PageContext context, - BackendServiceListUsable response) { + @Nullable BackendServiceListUsable response) { return new ListUsablePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2866,7 +2878,8 @@ public static class ListUsableFixedSizeCollection ListUsablePage, ListUsableFixedSizeCollection> { - private ListUsableFixedSizeCollection(List pages, int collectionSize) { + private ListUsableFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2876,7 +2889,7 @@ private static ListUsableFixedSizeCollection createEmptyCollection() { @Override protected ListUsableFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java index 695e6d94d2f6..134ad0f9e887 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -332,7 +333,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BackendServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksClient.java index 1502d24dc666..33c329cbaf8c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksClient.java @@ -34,6 +34,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. /** @@ -206,7 +207,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CrossSiteNetworksClient implements BackgroundResource { - private final CrossSiteNetworksSettings settings; + private final @Nullable CrossSiteNetworksSettings settings; private final CrossSiteNetworksStub stub; /** Constructs an instance of CrossSiteNetworksClient with default settings. */ @@ -246,7 +247,7 @@ protected CrossSiteNetworksClient(CrossSiteNetworksStub stub) { this.stub = stub; } - public final CrossSiteNetworksSettings getSettings() { + public final @Nullable CrossSiteNetworksSettings getSettings() { return settings; } @@ -940,8 +941,9 @@ public static class ListPage ListCrossSiteNetworksRequest, CrossSiteNetworkList, CrossSiteNetwork, ListPage> { private ListPage( - PageContext context, - CrossSiteNetworkList response) { + @Nullable PageContext + context, + @Nullable CrossSiteNetworkList response) { super(context, response); } @@ -951,14 +953,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - CrossSiteNetworkList response) { + @Nullable PageContext + context, + @Nullable CrossSiteNetworkList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -972,7 +976,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -981,7 +985,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksSettings.java index 9bb027204b20..78fa77e58a92 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CrossSiteNetworksSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -204,7 +205,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CrossSiteNetworksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesClient.java index 2abe3e7ffabf..cfc5a33de750 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesClient.java @@ -33,6 +33,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DiskTypesClient implements BackgroundResource { - private final DiskTypesSettings settings; + private final @Nullable DiskTypesSettings settings; private final DiskTypesStub stub; /** Constructs an instance of DiskTypesClient with default settings. */ @@ -204,7 +205,7 @@ protected DiskTypesClient(DiskTypesStub stub) { this.stub = stub; } - public final DiskTypesSettings getSettings() { + public final @Nullable DiskTypesSettings getSettings() { return settings; } @@ -678,12 +679,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListDiskTypesRequest, DiskTypeAggregatedList, Map.Entry> context, - DiskTypeAggregatedList response) { + @Nullable DiskTypeAggregatedList response) { super(context, response); } @@ -693,18 +695,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListDiskTypesRequest, DiskTypeAggregatedList, Map.Entry> context, - DiskTypeAggregatedList response) { + @Nullable DiskTypeAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListDiskTypesRequest, DiskTypeAggregatedList, Map.Entry> @@ -722,7 +726,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -732,7 +737,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -759,7 +764,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, DiskTypeList response) { + @Nullable PageContext context, + @Nullable DiskTypeList response) { super(context, response); } @@ -769,13 +775,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, DiskTypeList response) { + @Nullable PageContext context, + @Nullable DiskTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -785,7 +792,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListDiskTypesRequest, DiskTypeList, DiskType, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -794,7 +801,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesSettings.java index a8de95bfa94a..ee1502eb6498 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DiskTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java index 9581b493f930..41afdc702c34 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksClient.java @@ -35,6 +35,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. /** @@ -487,7 +488,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DisksClient implements BackgroundResource { - private final DisksSettings settings; + private final @Nullable DisksSettings settings; private final DisksStub stub; /** Constructs an instance of DisksClient with default settings. */ @@ -525,7 +526,7 @@ protected DisksClient(DisksStub stub) { this.stub = stub; } - public final DisksSettings getSettings() { + public final @Nullable DisksSettings getSettings() { return settings; } @@ -3297,10 +3298,11 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListDisksRequest, DiskAggregatedList, Map.Entry> context, - DiskAggregatedList response) { + @Nullable DiskAggregatedList response) { super(context, response); } @@ -3310,16 +3312,18 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListDisksRequest, DiskAggregatedList, Map.Entry> context, - DiskAggregatedList response) { + @Nullable DiskAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListDisksRequest, DiskAggregatedList, Map.Entry> context, ApiFuture futureResponse) { @@ -3335,7 +3339,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3345,7 +3350,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -3369,7 +3374,9 @@ private ListPagedResponse(ListPage page) { public static class ListPage extends AbstractPage { - private ListPage(PageContext context, DiskList response) { + private ListPage( + @Nullable PageContext context, + @Nullable DiskList response) { super(context, response); } @@ -3379,13 +3386,15 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, DiskList response) { + @Nullable PageContext context, + @Nullable DiskList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, ApiFuture futureResponse) { + @Nullable PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } @@ -3394,7 +3403,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListDisksRequest, DiskList, Disk, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3403,7 +3412,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java index 21a810dd63ae..0f3f94204864 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -366,7 +367,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DisksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysClient.java index 8881372e54e7..f5c50541963f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysClient.java @@ -34,6 +34,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. /** @@ -224,7 +225,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExternalVpnGatewaysClient implements BackgroundResource { - private final ExternalVpnGatewaysSettings settings; + private final @Nullable ExternalVpnGatewaysSettings settings; private final ExternalVpnGatewaysStub stub; /** Constructs an instance of ExternalVpnGatewaysClient with default settings. */ @@ -264,7 +265,7 @@ protected ExternalVpnGatewaysClient(ExternalVpnGatewaysStub stub) { this.stub = stub; } - public final ExternalVpnGatewaysSettings getSettings() { + public final @Nullable ExternalVpnGatewaysSettings getSettings() { return settings; } @@ -1051,9 +1052,10 @@ public static class ListPage ListExternalVpnGatewaysRequest, ExternalVpnGatewayList, ExternalVpnGateway, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - ExternalVpnGatewayList response) { + @Nullable ExternalVpnGatewayList response) { super(context, response); } @@ -1063,15 +1065,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - ExternalVpnGatewayList response) { + @Nullable ExternalVpnGatewayList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1086,7 +1090,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1095,7 +1099,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysSettings.java index 54bc971022a9..cbee747c1150 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExternalVpnGatewaysSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -232,7 +233,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExternalVpnGatewaysStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesClient.java index 780514cf6c48..e6deba95de07 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesClient.java @@ -34,6 +34,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. /** @@ -446,7 +447,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirewallPoliciesClient implements BackgroundResource { - private final FirewallPoliciesSettings settings; + private final @Nullable FirewallPoliciesSettings settings; private final FirewallPoliciesStub stub; /** Constructs an instance of FirewallPoliciesClient with default settings. */ @@ -486,7 +487,7 @@ protected FirewallPoliciesClient(FirewallPoliciesStub stub) { this.stub = stub; } - public final FirewallPoliciesSettings getSettings() { + public final @Nullable FirewallPoliciesSettings getSettings() { return settings; } @@ -2545,8 +2546,9 @@ public static class ListPage ListFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy, ListPage> { private ListPage( - PageContext context, - FirewallPolicyList response) { + @Nullable PageContext + context, + @Nullable FirewallPolicyList response) { super(context, response); } @@ -2556,14 +2558,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - FirewallPolicyList response) { + @Nullable PageContext + context, + @Nullable FirewallPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2577,7 +2581,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2586,7 +2590,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesSettings.java index 07d5eccf4600..09ca888080e2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -317,7 +318,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -337,7 +338,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirewallPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsClient.java index 642e24792611..12d39a0a2e0a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsClient.java @@ -34,6 +34,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. /** @@ -240,7 +241,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirewallsClient implements BackgroundResource { - private final FirewallsSettings settings; + private final @Nullable FirewallsSettings settings; private final FirewallsStub stub; /** Constructs an instance of FirewallsClient with default settings. */ @@ -278,7 +279,7 @@ protected FirewallsClient(FirewallsStub stub) { this.stub = stub; } - public final FirewallsSettings getSettings() { + public final @Nullable FirewallsSettings getSettings() { return settings; } @@ -1174,7 +1175,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, FirewallList response) { + @Nullable PageContext context, + @Nullable FirewallList response) { super(context, response); } @@ -1184,13 +1186,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, FirewallList response) { + @Nullable PageContext context, + @Nullable FirewallList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1200,7 +1203,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListFirewallsRequest, FirewallList, Firewall, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1209,7 +1212,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsSettings.java index f2640a00a11f..3e58e5f59945 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirewallsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesClient.java index 8caa08a73f99..a74ba67efe8f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesClient.java @@ -35,6 +35,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. /** @@ -266,7 +267,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ForwardingRulesClient implements BackgroundResource { - private final ForwardingRulesSettings settings; + private final @Nullable ForwardingRulesSettings settings; private final ForwardingRulesStub stub; /** Constructs an instance of ForwardingRulesClient with default settings. */ @@ -306,7 +307,7 @@ protected ForwardingRulesClient(ForwardingRulesStub stub) { this.stub = stub; } - public final ForwardingRulesSettings getSettings() { + public final @Nullable ForwardingRulesSettings getSettings() { return settings; } @@ -1488,12 +1489,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListForwardingRulesRequest, ForwardingRuleAggregatedList, Map.Entry> context, - ForwardingRuleAggregatedList response) { + @Nullable ForwardingRuleAggregatedList response) { super(context, response); } @@ -1503,18 +1505,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListForwardingRulesRequest, ForwardingRuleAggregatedList, Map.Entry> context, - ForwardingRuleAggregatedList response) { + @Nullable ForwardingRuleAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListForwardingRulesRequest, ForwardingRuleAggregatedList, Map.Entry> @@ -1532,7 +1536,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1542,7 +1547,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1574,8 +1579,9 @@ public static class ListPage ListForwardingRulesRequest, ForwardingRuleList, ForwardingRule, ListPage> { private ListPage( - PageContext context, - ForwardingRuleList response) { + @Nullable PageContext + context, + @Nullable ForwardingRuleList response) { super(context, response); } @@ -1585,14 +1591,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - ForwardingRuleList response) { + @Nullable PageContext + context, + @Nullable ForwardingRuleList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1606,7 +1614,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1615,7 +1623,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesSettings.java index 8bbe57148951..2b5859d99d73 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ForwardingRulesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsClient.java index 0cacf39eff4e..7b290530246a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsClient.java @@ -35,6 +35,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. /** @@ -247,7 +248,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FutureReservationsClient implements BackgroundResource { - private final FutureReservationsSettings settings; + private final @Nullable FutureReservationsSettings settings; private final FutureReservationsStub stub; /** Constructs an instance of FutureReservationsClient with default settings. */ @@ -287,7 +288,7 @@ protected FutureReservationsClient(FutureReservationsStub stub) { this.stub = stub; } - public final FutureReservationsSettings getSettings() { + public final @Nullable FutureReservationsSettings getSettings() { return settings; } @@ -1313,12 +1314,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListFutureReservationsRequest, FutureReservationsAggregatedListResponse, Map.Entry> context, - FutureReservationsAggregatedListResponse response) { + @Nullable FutureReservationsAggregatedListResponse response) { super(context, response); } @@ -1328,18 +1330,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListFutureReservationsRequest, FutureReservationsAggregatedListResponse, Map.Entry> context, - FutureReservationsAggregatedListResponse response) { + @Nullable FutureReservationsAggregatedListResponse response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListFutureReservationsRequest, FutureReservationsAggregatedListResponse, Map.Entry> @@ -1357,7 +1361,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1367,7 +1372,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1404,10 +1409,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListFutureReservationsRequest, FutureReservationsListResponse, FutureReservation> context, - FutureReservationsListResponse response) { + @Nullable FutureReservationsListResponse response) { super(context, response); } @@ -1417,16 +1423,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListFutureReservationsRequest, FutureReservationsListResponse, FutureReservation> context, - FutureReservationsListResponse response) { + @Nullable FutureReservationsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFutureReservationsRequest, FutureReservationsListResponse, FutureReservation> context, ApiFuture futureResponse) { @@ -1442,7 +1450,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1451,7 +1459,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsSettings.java index 0a68a57a128e..efb21b0325f6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FutureReservationsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FutureReservationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesClient.java index b5758fb22167..0971ca0758a3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesClient.java @@ -34,6 +34,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. /** @@ -243,7 +244,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalAddressesClient implements BackgroundResource { - private final GlobalAddressesSettings settings; + private final @Nullable GlobalAddressesSettings settings; private final GlobalAddressesStub stub; /** Constructs an instance of GlobalAddressesClient with default settings. */ @@ -283,7 +284,7 @@ protected GlobalAddressesClient(GlobalAddressesStub stub) { this.stub = stub; } - public final GlobalAddressesSettings getSettings() { + public final @Nullable GlobalAddressesSettings getSettings() { return settings; } @@ -1186,8 +1187,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { super(context, response); } @@ -1197,14 +1198,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1214,7 +1215,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListGlobalAddressesRequest, AddressList, Address, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1223,7 +1224,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesSettings.java index 17d15bac64a7..a34611b71101 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalAddressesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesClient.java index dde16c1c4c6c..ee4e89bd6f82 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesClient.java @@ -34,6 +34,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. /** @@ -245,7 +246,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalForwardingRulesClient implements BackgroundResource { - private final GlobalForwardingRulesSettings settings; + private final @Nullable GlobalForwardingRulesSettings settings; private final GlobalForwardingRulesStub stub; /** Constructs an instance of GlobalForwardingRulesClient with default settings. */ @@ -285,7 +286,7 @@ protected GlobalForwardingRulesClient(GlobalForwardingRulesStub stub) { this.stub = stub; } - public final GlobalForwardingRulesSettings getSettings() { + public final @Nullable GlobalForwardingRulesSettings getSettings() { return settings; } @@ -1281,8 +1282,9 @@ public static class ListPage ListGlobalForwardingRulesRequest, ForwardingRuleList, ForwardingRule, ListPage> { private ListPage( - PageContext context, - ForwardingRuleList response) { + @Nullable PageContext + context, + @Nullable ForwardingRuleList response) { super(context, response); } @@ -1292,14 +1294,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - ForwardingRuleList response) { + @Nullable PageContext + context, + @Nullable ForwardingRuleList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1313,7 +1317,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1322,7 +1326,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesSettings.java index 91692ad26915..71f0d2914c19 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRulesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -248,7 +249,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalForwardingRulesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsClient.java index c4dd96920102..fe90907ca4aa 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsClient.java @@ -34,6 +34,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. /** @@ -248,7 +249,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalNetworkEndpointGroupsClient implements BackgroundResource { - private final GlobalNetworkEndpointGroupsSettings settings; + private final @Nullable GlobalNetworkEndpointGroupsSettings settings; private final GlobalNetworkEndpointGroupsStub stub; /** Constructs an instance of GlobalNetworkEndpointGroupsClient with default settings. */ @@ -291,7 +292,7 @@ protected GlobalNetworkEndpointGroupsClient(GlobalNetworkEndpointGroupsStub stub this.stub = stub; } - public final GlobalNetworkEndpointGroupsSettings getSettings() { + public final @Nullable GlobalNetworkEndpointGroupsSettings getSettings() { return settings; } @@ -1386,12 +1387,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { super(context, response); } @@ -1401,18 +1403,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> @@ -1430,7 +1434,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1439,7 +1443,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1480,12 +1485,13 @@ public static class ListNetworkEndpointsPage ListNetworkEndpointsPage> { private ListNetworkEndpointsPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { super(context, response); } @@ -1495,18 +1501,20 @@ private static ListNetworkEndpointsPage createEmptyPage() { @Override protected ListNetworkEndpointsPage createPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { return new ListNetworkEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> @@ -1525,7 +1533,7 @@ public static class ListNetworkEndpointsFixedSizeCollection ListNetworkEndpointsFixedSizeCollection> { private ListNetworkEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1535,7 +1543,7 @@ private static ListNetworkEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListNetworkEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworkEndpointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsSettings.java index e395428e0b80..d913c4709624 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalNetworkEndpointGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsClient.java index 54ee7bed6bda..61b56c4d0f86 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsClient.java @@ -33,6 +33,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. /** @@ -206,7 +207,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalOperationsClient implements BackgroundResource { - private final GlobalOperationsSettings settings; + private final @Nullable GlobalOperationsSettings settings; private final GlobalOperationsStub stub; /** Constructs an instance of GlobalOperationsClient with default settings. */ @@ -246,7 +247,7 @@ protected GlobalOperationsClient(GlobalOperationsStub stub) { this.stub = stub; } - public final GlobalOperationsSettings getSettings() { + public final @Nullable GlobalOperationsSettings getSettings() { return settings; } @@ -916,12 +917,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListGlobalOperationsRequest, OperationAggregatedList, Map.Entry> context, - OperationAggregatedList response) { + @Nullable OperationAggregatedList response) { super(context, response); } @@ -931,18 +933,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListGlobalOperationsRequest, OperationAggregatedList, Map.Entry> context, - OperationAggregatedList response) { + @Nullable OperationAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListGlobalOperationsRequest, OperationAggregatedList, Map.Entry> @@ -960,7 +964,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -970,7 +975,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1001,8 +1006,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { super(context, response); } @@ -1012,14 +1017,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1033,7 +1038,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1042,7 +1047,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsSettings.java index 57715daf0e79..5cf57860859e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -185,7 +186,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalOperationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsClient.java index 0534ae90a118..d3c4f60aef3e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsClient.java @@ -32,6 +32,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalOrganizationOperationsClient implements BackgroundResource { - private final GlobalOrganizationOperationsSettings settings; + private final @Nullable GlobalOrganizationOperationsSettings settings; private final GlobalOrganizationOperationsStub stub; /** Constructs an instance of GlobalOrganizationOperationsClient with default settings. */ @@ -210,7 +211,7 @@ protected GlobalOrganizationOperationsClient(GlobalOrganizationOperationsStub st this.stub = stub; } - public final GlobalOrganizationOperationsSettings getSettings() { + public final @Nullable GlobalOrganizationOperationsSettings getSettings() { return settings; } @@ -604,8 +605,9 @@ public static class ListPage ListGlobalOrganizationOperationsRequest, OperationList, Operation, ListPage> { private ListPage( - PageContext context, - OperationList response) { + @Nullable PageContext + context, + @Nullable OperationList response) { super(context, response); } @@ -615,14 +617,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - OperationList response) { + @Nullable PageContext + context, + @Nullable OperationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -636,7 +640,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -645,7 +649,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsSettings.java index 461a923977ff..eed2b7f8d8bb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOrganizationOperationsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalOrganizationOperationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesClient.java index 0bf885e1a35e..6d0693a532bd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesClient.java @@ -34,6 +34,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. /** @@ -208,7 +209,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalPublicDelegatedPrefixesClient implements BackgroundResource { - private final GlobalPublicDelegatedPrefixesSettings settings; + private final @Nullable GlobalPublicDelegatedPrefixesSettings settings; private final GlobalPublicDelegatedPrefixesStub stub; /** Constructs an instance of GlobalPublicDelegatedPrefixesClient with default settings. */ @@ -252,7 +253,7 @@ protected GlobalPublicDelegatedPrefixesClient(GlobalPublicDelegatedPrefixesStub this.stub = stub; } - public final GlobalPublicDelegatedPrefixesSettings getSettings() { + public final @Nullable GlobalPublicDelegatedPrefixesSettings getSettings() { return settings; } @@ -986,12 +987,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListGlobalPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> context, - PublicDelegatedPrefixList response) { + @Nullable PublicDelegatedPrefixList response) { super(context, response); } @@ -1001,18 +1003,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListGlobalPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> context, - PublicDelegatedPrefixList response) { + @Nullable PublicDelegatedPrefixList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGlobalPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> @@ -1030,7 +1034,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1039,7 +1043,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesSettings.java index 2036209de1d7..ec711974ba06 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalPublicDelegatedPrefixesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -210,7 +211,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalPublicDelegatedPrefixesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesClient.java index f6c5efde1344..8e6681d0b800 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesClient.java @@ -35,6 +35,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. /** @@ -229,7 +230,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GlobalVmExtensionPoliciesClient implements BackgroundResource { - private final GlobalVmExtensionPoliciesSettings settings; + private final @Nullable GlobalVmExtensionPoliciesSettings settings; private final GlobalVmExtensionPoliciesStub stub; /** Constructs an instance of GlobalVmExtensionPoliciesClient with default settings. */ @@ -271,7 +272,7 @@ protected GlobalVmExtensionPoliciesClient(GlobalVmExtensionPoliciesStub stub) { this.stub = stub; } - public final GlobalVmExtensionPoliciesSettings getSettings() { + public final @Nullable GlobalVmExtensionPoliciesSettings getSettings() { return settings; } @@ -1201,12 +1202,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse, Map.Entry> context, - VmExtensionPolicyAggregatedListResponse response) { + @Nullable VmExtensionPolicyAggregatedListResponse response) { super(context, response); } @@ -1216,18 +1218,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse, Map.Entry> context, - VmExtensionPolicyAggregatedListResponse response) { + @Nullable VmExtensionPolicyAggregatedListResponse response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse, Map.Entry> @@ -1245,7 +1249,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1255,7 +1260,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1294,12 +1299,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListGlobalVmExtensionPoliciesRequest, GlobalVmExtensionPolicyList, GlobalVmExtensionPolicy> context, - GlobalVmExtensionPolicyList response) { + @Nullable GlobalVmExtensionPolicyList response) { super(context, response); } @@ -1309,18 +1315,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListGlobalVmExtensionPoliciesRequest, GlobalVmExtensionPolicyList, GlobalVmExtensionPolicy> context, - GlobalVmExtensionPolicyList response) { + @Nullable GlobalVmExtensionPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGlobalVmExtensionPoliciesRequest, GlobalVmExtensionPolicyList, GlobalVmExtensionPolicy> @@ -1338,7 +1346,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1347,7 +1355,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesSettings.java index c10a82ebd929..e08aea2ed5a3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalVmExtensionPoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GlobalVmExtensionPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksClient.java index 92946313c5d2..83c73c9f24ba 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksClient.java @@ -35,6 +35,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. /** @@ -261,7 +262,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HealthChecksClient implements BackgroundResource { - private final HealthChecksSettings settings; + private final @Nullable HealthChecksSettings settings; private final HealthChecksStub stub; /** Constructs an instance of HealthChecksClient with default settings. */ @@ -300,7 +301,7 @@ protected HealthChecksClient(HealthChecksStub stub) { this.stub = stub; } - public final HealthChecksSettings getSettings() { + public final @Nullable HealthChecksSettings getSettings() { return settings; } @@ -1377,12 +1378,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListHealthChecksRequest, HealthChecksAggregatedList, Map.Entry> context, - HealthChecksAggregatedList response) { + @Nullable HealthChecksAggregatedList response) { super(context, response); } @@ -1392,18 +1394,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListHealthChecksRequest, HealthChecksAggregatedList, Map.Entry> context, - HealthChecksAggregatedList response) { + @Nullable HealthChecksAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListHealthChecksRequest, HealthChecksAggregatedList, Map.Entry> @@ -1421,7 +1425,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1431,7 +1436,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1462,8 +1467,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - HealthCheckList response) { + @Nullable PageContext context, + @Nullable HealthCheckList response) { super(context, response); } @@ -1473,14 +1478,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - HealthCheckList response) { + @Nullable PageContext context, + @Nullable HealthCheckList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1494,7 +1499,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1503,7 +1508,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksSettings.java index c6d1c7fd1189..7bda93a8c146 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthChecksSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -249,7 +250,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HealthChecksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsClient.java index 7b148509e784..a7c14ddea58a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsClient.java @@ -24,6 +24,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. /** @@ -121,7 +122,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ImageFamilyViewsClient implements BackgroundResource { - private final ImageFamilyViewsSettings settings; + private final @Nullable ImageFamilyViewsSettings settings; private final ImageFamilyViewsStub stub; /** Constructs an instance of ImageFamilyViewsClient with default settings. */ @@ -161,7 +162,7 @@ protected ImageFamilyViewsClient(ImageFamilyViewsStub stub) { this.stub = stub; } - public final ImageFamilyViewsSettings getSettings() { + public final @Nullable ImageFamilyViewsSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsSettings.java index d119cc537549..ecc08f377211 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageFamilyViewsSettings.java @@ -30,6 +30,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -135,7 +136,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -155,7 +156,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageFamilyViewsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesClient.java index 8e5fb13e36b2..7c20592ee870 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesClient.java @@ -34,6 +34,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. /** @@ -313,7 +314,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ImagesClient implements BackgroundResource { - private final ImagesSettings settings; + private final @Nullable ImagesSettings settings; private final ImagesStub stub; /** Constructs an instance of ImagesClient with default settings. */ @@ -351,7 +352,7 @@ protected ImagesClient(ImagesStub stub) { this.stub = stub; } - public final ImagesSettings getSettings() { + public final @Nullable ImagesSettings getSettings() { return settings; } @@ -1670,7 +1671,9 @@ private ListPagedResponse(ListPage page) { public static class ListPage extends AbstractPage { - private ListPage(PageContext context, ImageList response) { + private ListPage( + @Nullable PageContext context, + @Nullable ImageList response) { super(context, response); } @@ -1680,13 +1683,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, ImageList response) { + @Nullable PageContext context, + @Nullable ImageList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1696,7 +1700,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListImagesRequest, ImageList, Image, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1705,7 +1709,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesSettings.java index 45575f99011f..598134ceadb0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImagesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImagesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java index b7e1de5ef2ce..5f7b5ed909db 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java @@ -34,6 +34,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. /** @@ -211,7 +212,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceGroupManagerResizeRequestsClient implements BackgroundResource { - private final InstanceGroupManagerResizeRequestsSettings settings; + private final @Nullable InstanceGroupManagerResizeRequestsSettings settings; private final InstanceGroupManagerResizeRequestsStub stub; /** Constructs an instance of InstanceGroupManagerResizeRequestsClient with default settings. */ @@ -256,7 +257,7 @@ protected InstanceGroupManagerResizeRequestsClient(InstanceGroupManagerResizeReq this.stub = stub; } - public final InstanceGroupManagerResizeRequestsSettings getSettings() { + public final @Nullable InstanceGroupManagerResizeRequestsSettings getSettings() { return settings; } @@ -1076,12 +1077,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagerResizeRequestsRequest, InstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> context, - InstanceGroupManagerResizeRequestsListResponse response) { + @Nullable InstanceGroupManagerResizeRequestsListResponse response) { super(context, response); } @@ -1091,18 +1093,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagerResizeRequestsRequest, InstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> context, - InstanceGroupManagerResizeRequestsListResponse response) { + @Nullable InstanceGroupManagerResizeRequestsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagerResizeRequestsRequest, InstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> @@ -1120,7 +1124,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1129,7 +1133,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java index 96dfb6273687..b5d9b20fc5cd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -240,7 +241,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceGroupManagerResizeRequestsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java index 3fb9691fb7c0..98cd33c4a74a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java @@ -35,6 +35,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. /** @@ -598,7 +599,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceGroupManagersClient implements BackgroundResource { - private final InstanceGroupManagersSettings settings; + private final @Nullable InstanceGroupManagersSettings settings; private final InstanceGroupManagersStub stub; /** Constructs an instance of InstanceGroupManagersClient with default settings. */ @@ -638,7 +639,7 @@ protected InstanceGroupManagersClient(InstanceGroupManagersStub stub) { this.stub = stub; } - public final InstanceGroupManagersSettings getSettings() { + public final @Nullable InstanceGroupManagersSettings getSettings() { return settings; } @@ -5064,12 +5065,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupManagersRequest, InstanceGroupManagerAggregatedList, Map.Entry> context, - InstanceGroupManagerAggregatedList response) { + @Nullable InstanceGroupManagerAggregatedList response) { super(context, response); } @@ -5079,18 +5081,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupManagersRequest, InstanceGroupManagerAggregatedList, Map.Entry> context, - InstanceGroupManagerAggregatedList response) { + @Nullable InstanceGroupManagerAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupManagersRequest, InstanceGroupManagerAggregatedList, Map.Entry> @@ -5108,7 +5112,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5118,7 +5123,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -5155,10 +5160,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagersRequest, InstanceGroupManagerList, InstanceGroupManager> context, - InstanceGroupManagerList response) { + @Nullable InstanceGroupManagerList response) { super(context, response); } @@ -5168,16 +5174,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagersRequest, InstanceGroupManagerList, InstanceGroupManager> context, - InstanceGroupManagerList response) { + @Nullable InstanceGroupManagerList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstanceGroupManagersRequest, InstanceGroupManagerList, InstanceGroupManager> context, ApiFuture futureResponse) { @@ -5193,7 +5201,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5202,7 +5210,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -5241,12 +5250,13 @@ public static class ListErrorsPage ListErrorsPage> { private ListErrorsPage( - PageContext< + @Nullable + PageContext< ListErrorsInstanceGroupManagersRequest, InstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> context, - InstanceGroupManagersListErrorsResponse response) { + @Nullable InstanceGroupManagersListErrorsResponse response) { super(context, response); } @@ -5256,18 +5266,20 @@ private static ListErrorsPage createEmptyPage() { @Override protected ListErrorsPage createPage( - PageContext< + @Nullable + PageContext< ListErrorsInstanceGroupManagersRequest, InstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> context, - InstanceGroupManagersListErrorsResponse response) { + @Nullable InstanceGroupManagersListErrorsResponse response) { return new ListErrorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListErrorsInstanceGroupManagersRequest, InstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> @@ -5285,7 +5297,8 @@ public static class ListErrorsFixedSizeCollection ListErrorsPage, ListErrorsFixedSizeCollection> { - private ListErrorsFixedSizeCollection(List pages, int collectionSize) { + private ListErrorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5295,7 +5308,7 @@ private static ListErrorsFixedSizeCollection createEmptyCollection() { @Override protected ListErrorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListErrorsFixedSizeCollection(pages, collectionSize); } } @@ -5336,12 +5349,13 @@ public static class ListManagedInstancesPage ListManagedInstancesPage> { private ListManagedInstancesPage( - PageContext< + @Nullable + PageContext< ListManagedInstancesInstanceGroupManagersRequest, InstanceGroupManagersListManagedInstancesResponse, ManagedInstance> context, - InstanceGroupManagersListManagedInstancesResponse response) { + @Nullable InstanceGroupManagersListManagedInstancesResponse response) { super(context, response); } @@ -5351,18 +5365,20 @@ private static ListManagedInstancesPage createEmptyPage() { @Override protected ListManagedInstancesPage createPage( - PageContext< + @Nullable + PageContext< ListManagedInstancesInstanceGroupManagersRequest, InstanceGroupManagersListManagedInstancesResponse, ManagedInstance> context, - InstanceGroupManagersListManagedInstancesResponse response) { + @Nullable InstanceGroupManagersListManagedInstancesResponse response) { return new ListManagedInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListManagedInstancesInstanceGroupManagersRequest, InstanceGroupManagersListManagedInstancesResponse, ManagedInstance> @@ -5381,7 +5397,7 @@ public static class ListManagedInstancesFixedSizeCollection ListManagedInstancesFixedSizeCollection> { private ListManagedInstancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5391,7 +5407,7 @@ private static ListManagedInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListManagedInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListManagedInstancesFixedSizeCollection(pages, collectionSize); } } @@ -5432,12 +5448,13 @@ public static class ListPerInstanceConfigsPage ListPerInstanceConfigsPage> { private ListPerInstanceConfigsPage( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsInstanceGroupManagersRequest, InstanceGroupManagersListPerInstanceConfigsResp, PerInstanceConfig> context, - InstanceGroupManagersListPerInstanceConfigsResp response) { + @Nullable InstanceGroupManagersListPerInstanceConfigsResp response) { super(context, response); } @@ -5447,18 +5464,20 @@ private static ListPerInstanceConfigsPage createEmptyPage() { @Override protected ListPerInstanceConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsInstanceGroupManagersRequest, InstanceGroupManagersListPerInstanceConfigsResp, PerInstanceConfig> context, - InstanceGroupManagersListPerInstanceConfigsResp response) { + @Nullable InstanceGroupManagersListPerInstanceConfigsResp response) { return new ListPerInstanceConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsInstanceGroupManagersRequest, InstanceGroupManagersListPerInstanceConfigsResp, PerInstanceConfig> @@ -5477,7 +5496,7 @@ public static class ListPerInstanceConfigsFixedSizeCollection ListPerInstanceConfigsFixedSizeCollection> { private ListPerInstanceConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5487,7 +5506,7 @@ private static ListPerInstanceConfigsFixedSizeCollection createEmptyCollection() @Override protected ListPerInstanceConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPerInstanceConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java index 068478b4f1a3..ca194e24f8d6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -446,7 +447,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -467,7 +468,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceGroupManagersStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsClient.java index b02924eb99a0..96afd5b6512e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsClient.java @@ -35,6 +35,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. /** @@ -303,7 +304,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceGroupsClient implements BackgroundResource { - private final InstanceGroupsSettings settings; + private final @Nullable InstanceGroupsSettings settings; private final InstanceGroupsStub stub; /** Constructs an instance of InstanceGroupsClient with default settings. */ @@ -343,7 +344,7 @@ protected InstanceGroupsClient(InstanceGroupsStub stub) { this.stub = stub; } - public final InstanceGroupsSettings getSettings() { + public final @Nullable InstanceGroupsSettings getSettings() { return settings; } @@ -1884,12 +1885,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupsRequest, InstanceGroupAggregatedList, Map.Entry> context, - InstanceGroupAggregatedList response) { + @Nullable InstanceGroupAggregatedList response) { super(context, response); } @@ -1899,18 +1901,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupsRequest, InstanceGroupAggregatedList, Map.Entry> context, - InstanceGroupAggregatedList response) { + @Nullable InstanceGroupAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInstanceGroupsRequest, InstanceGroupAggregatedList, Map.Entry> @@ -1928,7 +1932,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1938,7 +1943,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1969,8 +1974,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - InstanceGroupList response) { + @Nullable PageContext context, + @Nullable InstanceGroupList response) { super(context, response); } @@ -1980,14 +1985,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - InstanceGroupList response) { + @Nullable PageContext context, + @Nullable InstanceGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2001,7 +2006,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2010,7 +2015,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2051,12 +2057,13 @@ public static class ListInstancesPage ListInstancesPage> { private ListInstancesPage( - PageContext< + @Nullable + PageContext< ListInstancesInstanceGroupsRequest, InstanceGroupsListInstances, InstanceWithNamedPorts> context, - InstanceGroupsListInstances response) { + @Nullable InstanceGroupsListInstances response) { super(context, response); } @@ -2066,18 +2073,20 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext< + @Nullable + PageContext< ListInstancesInstanceGroupsRequest, InstanceGroupsListInstances, InstanceWithNamedPorts> context, - InstanceGroupsListInstances response) { + @Nullable InstanceGroupsListInstances response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstancesInstanceGroupsRequest, InstanceGroupsListInstances, InstanceWithNamedPorts> @@ -2095,7 +2104,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2105,7 +2115,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSettings.java index 0a6868ebf0a4..97404c3b4a46 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -253,7 +254,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -273,7 +274,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java index 5a7afbbd8ca9..8d0fbb4062f9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java @@ -26,6 +26,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. /** @@ -142,7 +143,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceSettingsServiceClient implements BackgroundResource { - private final InstanceSettingsServiceSettings settings; + private final @Nullable InstanceSettingsServiceSettings settings; private final InstanceSettingsServiceStub stub; /** Constructs an instance of InstanceSettingsServiceClient with default settings. */ @@ -183,7 +184,7 @@ protected InstanceSettingsServiceClient(InstanceSettingsServiceStub stub) { this.stub = stub; } - public final InstanceSettingsServiceSettings getSettings() { + public final @Nullable InstanceSettingsServiceSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java index 2f0a7eb79b8e..432183da0866 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesClient.java index e5e4bdf67bf5..cd6f767e045c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesClient.java @@ -35,6 +35,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. /** @@ -262,7 +263,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceTemplatesClient implements BackgroundResource { - private final InstanceTemplatesSettings settings; + private final @Nullable InstanceTemplatesSettings settings; private final InstanceTemplatesStub stub; /** Constructs an instance of InstanceTemplatesClient with default settings. */ @@ -302,7 +303,7 @@ protected InstanceTemplatesClient(InstanceTemplatesStub stub) { this.stub = stub; } - public final InstanceTemplatesSettings getSettings() { + public final @Nullable InstanceTemplatesSettings getSettings() { return settings; } @@ -1335,12 +1336,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceTemplatesRequest, InstanceTemplateAggregatedList, Map.Entry> context, - InstanceTemplateAggregatedList response) { + @Nullable InstanceTemplateAggregatedList response) { super(context, response); } @@ -1350,18 +1352,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInstanceTemplatesRequest, InstanceTemplateAggregatedList, Map.Entry> context, - InstanceTemplateAggregatedList response) { + @Nullable InstanceTemplateAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInstanceTemplatesRequest, InstanceTemplateAggregatedList, Map.Entry> @@ -1379,7 +1383,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1389,7 +1394,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1421,8 +1426,9 @@ public static class ListPage ListInstanceTemplatesRequest, InstanceTemplateList, InstanceTemplate, ListPage> { private ListPage( - PageContext context, - InstanceTemplateList response) { + @Nullable PageContext + context, + @Nullable InstanceTemplateList response) { super(context, response); } @@ -1432,14 +1438,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - InstanceTemplateList response) { + @Nullable PageContext + context, + @Nullable InstanceTemplateList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1453,7 +1461,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1462,7 +1470,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesSettings.java index 93fc9d041052..bbb5810e344c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplatesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceTemplatesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java index 3415b9c00b59..6529678068d0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java @@ -35,6 +35,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. /** @@ -1072,7 +1073,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstancesClient implements BackgroundResource { - private final InstancesSettings settings; + private final @Nullable InstancesSettings settings; private final InstancesStub stub; /** Constructs an instance of InstancesClient with default settings. */ @@ -1110,7 +1111,7 @@ protected InstancesClient(InstancesStub stub) { this.stub = stub; } - public final InstancesSettings getSettings() { + public final @Nullable InstancesSettings getSettings() { return settings; } @@ -8221,12 +8222,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInstancesRequest, InstanceAggregatedList, Map.Entry> context, - InstanceAggregatedList response) { + @Nullable InstanceAggregatedList response) { super(context, response); } @@ -8236,18 +8238,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInstancesRequest, InstanceAggregatedList, Map.Entry> context, - InstanceAggregatedList response) { + @Nullable InstanceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInstancesRequest, InstanceAggregatedList, Map.Entry> @@ -8265,7 +8269,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8275,7 +8280,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -8302,7 +8307,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, InstanceList response) { + @Nullable PageContext context, + @Nullable InstanceList response) { super(context, response); } @@ -8312,13 +8318,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, InstanceList response) { + @Nullable PageContext context, + @Nullable InstanceList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8328,7 +8335,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListInstancesRequest, InstanceList, Instance, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8337,7 +8344,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -8371,8 +8379,9 @@ public static class ListReferrersPage ListReferrersInstancesRequest, InstanceListReferrers, Reference, ListReferrersPage> { private ListReferrersPage( - PageContext context, - InstanceListReferrers response) { + @Nullable PageContext + context, + @Nullable InstanceListReferrers response) { super(context, response); } @@ -8382,14 +8391,16 @@ private static ListReferrersPage createEmptyPage() { @Override protected ListReferrersPage createPage( - PageContext context, - InstanceListReferrers response) { + @Nullable PageContext + context, + @Nullable InstanceListReferrers response) { return new ListReferrersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8403,7 +8414,8 @@ public static class ListReferrersFixedSizeCollection ListReferrersPage, ListReferrersFixedSizeCollection> { - private ListReferrersFixedSizeCollection(List pages, int collectionSize) { + private ListReferrersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8413,7 +8425,7 @@ private static ListReferrersFixedSizeCollection createEmptyCollection() { @Override protected ListReferrersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReferrersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSettings.java index 48f8370286ad..3d0449183be3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -676,7 +677,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -696,7 +697,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstancesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java index 058998e29fc8..b0ecf05a1720 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsClient.java @@ -34,6 +34,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstantSnapshotGroupsClient implements BackgroundResource { - private final InstantSnapshotGroupsSettings settings; + private final @Nullable InstantSnapshotGroupsSettings settings; private final InstantSnapshotGroupsStub stub; /** Constructs an instance of InstantSnapshotGroupsClient with default settings. */ @@ -284,7 +285,7 @@ protected InstantSnapshotGroupsClient(InstantSnapshotGroupsStub stub) { this.stub = stub; } - public final InstantSnapshotGroupsSettings getSettings() { + public final @Nullable InstantSnapshotGroupsSettings getSettings() { return settings; } @@ -1209,10 +1210,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> context, - ListInstantSnapshotGroups response) { + @Nullable ListInstantSnapshotGroups response) { super(context, response); } @@ -1222,16 +1224,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> context, - ListInstantSnapshotGroups response) { + @Nullable ListInstantSnapshotGroups response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> context, ApiFuture futureResponse) { @@ -1247,7 +1251,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1256,7 +1260,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java index 359340688489..3548ea9429e5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotGroupsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -211,7 +212,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -232,7 +233,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstantSnapshotGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsClient.java index f4bc773bd254..404ec7899a26 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsClient.java @@ -35,6 +35,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. /** @@ -283,7 +284,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstantSnapshotsClient implements BackgroundResource { - private final InstantSnapshotsSettings settings; + private final @Nullable InstantSnapshotsSettings settings; private final InstantSnapshotsStub stub; /** Constructs an instance of InstantSnapshotsClient with default settings. */ @@ -323,7 +324,7 @@ protected InstantSnapshotsClient(InstantSnapshotsStub stub) { this.stub = stub; } - public final InstantSnapshotsSettings getSettings() { + public final @Nullable InstantSnapshotsSettings getSettings() { return settings; } @@ -1540,12 +1541,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInstantSnapshotsRequest, InstantSnapshotAggregatedList, Map.Entry> context, - InstantSnapshotAggregatedList response) { + @Nullable InstantSnapshotAggregatedList response) { super(context, response); } @@ -1555,18 +1557,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInstantSnapshotsRequest, InstantSnapshotAggregatedList, Map.Entry> context, - InstantSnapshotAggregatedList response) { + @Nullable InstantSnapshotAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInstantSnapshotsRequest, InstantSnapshotAggregatedList, Map.Entry> @@ -1584,7 +1588,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1594,7 +1599,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1626,8 +1631,9 @@ public static class ListPage ListInstantSnapshotsRequest, InstantSnapshotList, InstantSnapshot, ListPage> { private ListPage( - PageContext context, - InstantSnapshotList response) { + @Nullable PageContext + context, + @Nullable InstantSnapshotList response) { super(context, response); } @@ -1637,14 +1643,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - InstantSnapshotList response) { + @Nullable PageContext + context, + @Nullable InstantSnapshotList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1658,7 +1666,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1667,7 +1675,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsSettings.java index ab0a3354558b..eb8abd508d96 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstantSnapshotsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -250,7 +251,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstantSnapshotsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsClient.java index dce9f31d2fbd..745701cf167d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsClient.java @@ -34,6 +34,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. /** @@ -280,7 +281,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectAttachmentGroupsClient implements BackgroundResource { - private final InterconnectAttachmentGroupsSettings settings; + private final @Nullable InterconnectAttachmentGroupsSettings settings; private final InterconnectAttachmentGroupsStub stub; /** Constructs an instance of InterconnectAttachmentGroupsClient with default settings. */ @@ -324,7 +325,7 @@ protected InterconnectAttachmentGroupsClient(InterconnectAttachmentGroupsStub st this.stub = stub; } - public final InterconnectAttachmentGroupsSettings getSettings() { + public final @Nullable InterconnectAttachmentGroupsSettings getSettings() { return settings; } @@ -1480,12 +1481,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentGroupsRequest, InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroup> context, - InterconnectAttachmentGroupsListResponse response) { + @Nullable InterconnectAttachmentGroupsListResponse response) { super(context, response); } @@ -1495,18 +1497,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentGroupsRequest, InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroup> context, - InterconnectAttachmentGroupsListResponse response) { + @Nullable InterconnectAttachmentGroupsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentGroupsRequest, InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroup> @@ -1524,7 +1528,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1533,7 +1537,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsSettings.java index f2dd5ecca743..c0fe711c3f8a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentGroupsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectAttachmentGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsClient.java index 31049a646cac..b61b73f58d51 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsClient.java @@ -35,6 +35,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. /** @@ -249,7 +250,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectAttachmentsClient implements BackgroundResource { - private final InterconnectAttachmentsSettings settings; + private final @Nullable InterconnectAttachmentsSettings settings; private final InterconnectAttachmentsStub stub; /** Constructs an instance of InterconnectAttachmentsClient with default settings. */ @@ -290,7 +291,7 @@ protected InterconnectAttachmentsClient(InterconnectAttachmentsStub stub) { this.stub = stub; } - public final InterconnectAttachmentsSettings getSettings() { + public final @Nullable InterconnectAttachmentsSettings getSettings() { return settings; } @@ -1381,12 +1382,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListInterconnectAttachmentsRequest, InterconnectAttachmentAggregatedList, Map.Entry> context, - InterconnectAttachmentAggregatedList response) { + @Nullable InterconnectAttachmentAggregatedList response) { super(context, response); } @@ -1396,18 +1398,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListInterconnectAttachmentsRequest, InterconnectAttachmentAggregatedList, Map.Entry> context, - InterconnectAttachmentAggregatedList response) { + @Nullable InterconnectAttachmentAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListInterconnectAttachmentsRequest, InterconnectAttachmentAggregatedList, Map.Entry> @@ -1425,7 +1429,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1435,7 +1440,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1474,12 +1479,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, InterconnectAttachmentList, InterconnectAttachment> context, - InterconnectAttachmentList response) { + @Nullable InterconnectAttachmentList response) { super(context, response); } @@ -1489,18 +1495,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, InterconnectAttachmentList, InterconnectAttachment> context, - InterconnectAttachmentList response) { + @Nullable InterconnectAttachmentList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, InterconnectAttachmentList, InterconnectAttachment> @@ -1518,7 +1526,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1527,7 +1535,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsSettings.java index 38b0fd87f604..964a47a7cd22 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -249,7 +250,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectAttachmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsClient.java index 7f21e2dde003..476f073623b4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsClient.java @@ -34,6 +34,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. /** @@ -297,7 +298,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectGroupsClient implements BackgroundResource { - private final InterconnectGroupsSettings settings; + private final @Nullable InterconnectGroupsSettings settings; private final InterconnectGroupsStub stub; /** Constructs an instance of InterconnectGroupsClient with default settings. */ @@ -337,7 +338,7 @@ protected InterconnectGroupsClient(InterconnectGroupsStub stub) { this.stub = stub; } - public final InterconnectGroupsSettings getSettings() { + public final @Nullable InterconnectGroupsSettings getSettings() { return settings; } @@ -1563,10 +1564,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInterconnectGroupsRequest, InterconnectGroupsListResponse, InterconnectGroup> context, - InterconnectGroupsListResponse response) { + @Nullable InterconnectGroupsListResponse response) { super(context, response); } @@ -1576,16 +1578,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectGroupsRequest, InterconnectGroupsListResponse, InterconnectGroup> context, - InterconnectGroupsListResponse response) { + @Nullable InterconnectGroupsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectGroupsRequest, InterconnectGroupsListResponse, InterconnectGroup> context, ApiFuture futureResponse) { @@ -1601,7 +1605,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1610,7 +1614,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsSettings.java index ea07472ec23e..5b73fb5800a1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectGroupsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsClient.java index c0def157e43f..68f2cdb39dd4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectLocationsClient implements BackgroundResource { - private final InterconnectLocationsSettings settings; + private final @Nullable InterconnectLocationsSettings settings; private final InterconnectLocationsStub stub; /** Constructs an instance of InterconnectLocationsClient with default settings. */ @@ -189,7 +190,7 @@ protected InterconnectLocationsClient(InterconnectLocationsStub stub) { this.stub = stub; } - public final InterconnectLocationsSettings getSettings() { + public final @Nullable InterconnectLocationsSettings getSettings() { return settings; } @@ -503,10 +504,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInterconnectLocationsRequest, InterconnectLocationList, InterconnectLocation> context, - InterconnectLocationList response) { + @Nullable InterconnectLocationList response) { super(context, response); } @@ -516,16 +518,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectLocationsRequest, InterconnectLocationList, InterconnectLocation> context, - InterconnectLocationList response) { + @Nullable InterconnectLocationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectLocationsRequest, InterconnectLocationList, InterconnectLocation> context, ApiFuture futureResponse) { @@ -541,7 +545,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -550,7 +554,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsSettings.java index eb81a1a38322..bb59b26b126c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectLocationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsClient.java index bdc37008d19f..4de249980c6c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsClient.java @@ -32,6 +32,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. /** @@ -149,7 +150,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectRemoteLocationsClient implements BackgroundResource { - private final InterconnectRemoteLocationsSettings settings; + private final @Nullable InterconnectRemoteLocationsSettings settings; private final InterconnectRemoteLocationsStub stub; /** Constructs an instance of InterconnectRemoteLocationsClient with default settings. */ @@ -192,7 +193,7 @@ protected InterconnectRemoteLocationsClient(InterconnectRemoteLocationsStub stub this.stub = stub; } - public final InterconnectRemoteLocationsSettings getSettings() { + public final @Nullable InterconnectRemoteLocationsSettings getSettings() { return settings; } @@ -511,12 +512,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListInterconnectRemoteLocationsRequest, InterconnectRemoteLocationList, InterconnectRemoteLocation> context, - InterconnectRemoteLocationList response) { + @Nullable InterconnectRemoteLocationList response) { super(context, response); } @@ -526,18 +528,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectRemoteLocationsRequest, InterconnectRemoteLocationList, InterconnectRemoteLocation> context, - InterconnectRemoteLocationList response) { + @Nullable InterconnectRemoteLocationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectRemoteLocationsRequest, InterconnectRemoteLocationList, InterconnectRemoteLocation> @@ -555,7 +559,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -564,7 +568,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsSettings.java index da06b047e833..dcb1b51cc4ab 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectRemoteLocationsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectRemoteLocationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsClient.java index 92fe13e8b008..5ec6aa7690ad 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsClient.java @@ -34,6 +34,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. /** @@ -260,7 +261,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterconnectsClient implements BackgroundResource { - private final InterconnectsSettings settings; + private final @Nullable InterconnectsSettings settings; private final InterconnectsStub stub; /** Constructs an instance of InterconnectsClient with default settings. */ @@ -300,7 +301,7 @@ protected InterconnectsClient(InterconnectsStub stub) { this.stub = stub; } - public final InterconnectsSettings getSettings() { + public final @Nullable InterconnectsSettings getSettings() { return settings; } @@ -1319,8 +1320,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - InterconnectList response) { + @Nullable PageContext context, + @Nullable InterconnectList response) { super(context, response); } @@ -1330,14 +1331,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - InterconnectList response) { + @Nullable PageContext context, + @Nullable InterconnectList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1351,7 +1352,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1360,7 +1361,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsSettings.java index ae5c63058b39..d3e4c6abf487 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterconnectsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesClient.java index c26a47622ce4..f8248e0d3f3b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesClient.java @@ -24,6 +24,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. /** @@ -171,7 +172,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LicenseCodesClient implements BackgroundResource { - private final LicenseCodesSettings settings; + private final @Nullable LicenseCodesSettings settings; private final LicenseCodesStub stub; /** Constructs an instance of LicenseCodesClient with default settings. */ @@ -210,7 +211,7 @@ protected LicenseCodesClient(LicenseCodesStub stub) { this.stub = stub; } - public final LicenseCodesSettings getSettings() { + public final @Nullable LicenseCodesSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesSettings.java index 7bd29a3a6465..ae5451296727 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodesSettings.java @@ -30,6 +30,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LicenseCodesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesClient.java index 9032f5c74002..6c693c8ded54 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesClient.java @@ -34,6 +34,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. /** @@ -257,7 +258,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LicensesClient implements BackgroundResource { - private final LicensesSettings settings; + private final @Nullable LicensesSettings settings; private final LicensesStub stub; /** Constructs an instance of LicensesClient with default settings. */ @@ -295,7 +296,7 @@ protected LicensesClient(LicensesStub stub) { this.stub = stub; } - public final LicensesSettings getSettings() { + public final @Nullable LicensesSettings getSettings() { return settings; } @@ -1291,8 +1292,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - LicensesListResponse response) { + @Nullable PageContext context, + @Nullable LicensesListResponse response) { super(context, response); } @@ -1302,14 +1303,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - LicensesListResponse response) { + @Nullable PageContext context, + @Nullable LicensesListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1319,7 +1320,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListLicensesRequest, LicensesListResponse, License, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1328,7 +1329,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesSettings.java index 7399bb5d07e6..92f9f03e9bb4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LicensesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesClient.java index 16d2e763575e..e2389700b750 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesClient.java @@ -34,6 +34,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. /** @@ -257,7 +258,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MachineImagesClient implements BackgroundResource { - private final MachineImagesSettings settings; + private final @Nullable MachineImagesSettings settings; private final MachineImagesStub stub; /** Constructs an instance of MachineImagesClient with default settings. */ @@ -297,7 +298,7 @@ protected MachineImagesClient(MachineImagesStub stub) { this.stub = stub; } - public final MachineImagesSettings getSettings() { + public final @Nullable MachineImagesSettings getSettings() { return settings; } @@ -1282,8 +1283,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - MachineImageList response) { + @Nullable PageContext context, + @Nullable MachineImageList response) { super(context, response); } @@ -1293,14 +1294,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - MachineImageList response) { + @Nullable PageContext context, + @Nullable MachineImageList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1314,7 +1315,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1323,7 +1324,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesSettings.java index 0a6f055c86f0..855c08a0d310 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineImagesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MachineImagesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesClient.java index 228c3025c31d..9423ea400c7f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesClient.java @@ -33,6 +33,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MachineTypesClient implements BackgroundResource { - private final MachineTypesSettings settings; + private final @Nullable MachineTypesSettings settings; private final MachineTypesStub stub; /** Constructs an instance of MachineTypesClient with default settings. */ @@ -205,7 +206,7 @@ protected MachineTypesClient(MachineTypesStub stub) { this.stub = stub; } - public final MachineTypesSettings getSettings() { + public final @Nullable MachineTypesSettings getSettings() { return settings; } @@ -681,12 +682,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListMachineTypesRequest, MachineTypeAggregatedList, Map.Entry> context, - MachineTypeAggregatedList response) { + @Nullable MachineTypeAggregatedList response) { super(context, response); } @@ -696,18 +698,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListMachineTypesRequest, MachineTypeAggregatedList, Map.Entry> context, - MachineTypeAggregatedList response) { + @Nullable MachineTypeAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListMachineTypesRequest, MachineTypeAggregatedList, Map.Entry> @@ -725,7 +729,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -735,7 +740,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -766,8 +771,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - MachineTypeList response) { + @Nullable PageContext context, + @Nullable MachineTypeList response) { super(context, response); } @@ -777,14 +782,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - MachineTypeList response) { + @Nullable PageContext context, + @Nullable MachineTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -798,7 +803,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -807,7 +812,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesSettings.java index 49ca4ebbe681..4b27aa161a55 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MachineTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsClient.java index 897608fc032e..66c32f257965 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsClient.java @@ -35,6 +35,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. /** @@ -282,7 +283,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkAttachmentsClient implements BackgroundResource { - private final NetworkAttachmentsSettings settings; + private final @Nullable NetworkAttachmentsSettings settings; private final NetworkAttachmentsStub stub; /** Constructs an instance of NetworkAttachmentsClient with default settings. */ @@ -322,7 +323,7 @@ protected NetworkAttachmentsClient(NetworkAttachmentsStub stub) { this.stub = stub; } - public final NetworkAttachmentsSettings getSettings() { + public final @Nullable NetworkAttachmentsSettings getSettings() { return settings; } @@ -1534,12 +1535,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkAttachmentsRequest, NetworkAttachmentAggregatedList, Map.Entry> context, - NetworkAttachmentAggregatedList response) { + @Nullable NetworkAttachmentAggregatedList response) { super(context, response); } @@ -1549,18 +1551,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkAttachmentsRequest, NetworkAttachmentAggregatedList, Map.Entry> context, - NetworkAttachmentAggregatedList response) { + @Nullable NetworkAttachmentAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNetworkAttachmentsRequest, NetworkAttachmentAggregatedList, Map.Entry> @@ -1578,7 +1582,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1588,7 +1593,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1621,9 +1626,10 @@ public static class ListPage ListNetworkAttachmentsRequest, NetworkAttachmentList, NetworkAttachment, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - NetworkAttachmentList response) { + @Nullable NetworkAttachmentList response) { super(context, response); } @@ -1633,15 +1639,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - NetworkAttachmentList response) { + @Nullable NetworkAttachmentList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1656,7 +1664,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1665,7 +1673,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsSettings.java index 13503d372336..1e11a26af6d1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkAttachmentsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -231,7 +232,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkAttachmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesClient.java index fcb2700f6c1b..f26114130254 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesClient.java @@ -35,6 +35,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. /** @@ -211,7 +212,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkEdgeSecurityServicesClient implements BackgroundResource { - private final NetworkEdgeSecurityServicesSettings settings; + private final @Nullable NetworkEdgeSecurityServicesSettings settings; private final NetworkEdgeSecurityServicesStub stub; /** Constructs an instance of NetworkEdgeSecurityServicesClient with default settings. */ @@ -254,7 +255,7 @@ protected NetworkEdgeSecurityServicesClient(NetworkEdgeSecurityServicesStub stub this.stub = stub; } - public final NetworkEdgeSecurityServicesSettings getSettings() { + public final @Nullable NetworkEdgeSecurityServicesSettings getSettings() { return settings; } @@ -1049,12 +1050,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEdgeSecurityServicesRequest, NetworkEdgeSecurityServiceAggregatedList, Map.Entry> context, - NetworkEdgeSecurityServiceAggregatedList response) { + @Nullable NetworkEdgeSecurityServiceAggregatedList response) { super(context, response); } @@ -1064,18 +1066,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEdgeSecurityServicesRequest, NetworkEdgeSecurityServiceAggregatedList, Map.Entry> context, - NetworkEdgeSecurityServiceAggregatedList response) { + @Nullable NetworkEdgeSecurityServiceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEdgeSecurityServicesRequest, NetworkEdgeSecurityServiceAggregatedList, Map.Entry> @@ -1093,7 +1097,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1103,7 +1108,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesSettings.java index 8682c8734b39..2416106e75c5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEdgeSecurityServicesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -210,7 +211,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkEdgeSecurityServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsClient.java index 69656053db67..dfe8db01e789 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsClient.java @@ -35,6 +35,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. /** @@ -288,7 +289,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkEndpointGroupsClient implements BackgroundResource { - private final NetworkEndpointGroupsSettings settings; + private final @Nullable NetworkEndpointGroupsSettings settings; private final NetworkEndpointGroupsStub stub; /** Constructs an instance of NetworkEndpointGroupsClient with default settings. */ @@ -328,7 +329,7 @@ protected NetworkEndpointGroupsClient(NetworkEndpointGroupsStub stub) { this.stub = stub; } - public final NetworkEndpointGroupsSettings getSettings() { + public final @Nullable NetworkEndpointGroupsSettings getSettings() { return settings; } @@ -1774,12 +1775,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEndpointGroupsRequest, NetworkEndpointGroupAggregatedList, Map.Entry> context, - NetworkEndpointGroupAggregatedList response) { + @Nullable NetworkEndpointGroupAggregatedList response) { super(context, response); } @@ -1789,18 +1791,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEndpointGroupsRequest, NetworkEndpointGroupAggregatedList, Map.Entry> context, - NetworkEndpointGroupAggregatedList response) { + @Nullable NetworkEndpointGroupAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNetworkEndpointGroupsRequest, NetworkEndpointGroupAggregatedList, Map.Entry> @@ -1818,7 +1822,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1828,7 +1833,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1865,10 +1870,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { super(context, response); } @@ -1878,16 +1884,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, ApiFuture futureResponse) { @@ -1903,7 +1911,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1912,7 +1920,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1953,12 +1962,13 @@ public static class ListNetworkEndpointsPage ListNetworkEndpointsPage> { private ListNetworkEndpointsPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { super(context, response); } @@ -1968,18 +1978,20 @@ private static ListNetworkEndpointsPage createEmptyPage() { @Override protected ListNetworkEndpointsPage createPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { return new ListNetworkEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> @@ -1998,7 +2010,7 @@ public static class ListNetworkEndpointsFixedSizeCollection ListNetworkEndpointsFixedSizeCollection> { private ListNetworkEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2008,7 +2020,7 @@ private static ListNetworkEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListNetworkEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworkEndpointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsSettings.java index ea9067924174..df9ecc1d1ec2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkEndpointGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java index 578ce8ba6eeb..5c5b2860f8da 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java @@ -35,6 +35,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. /** @@ -507,7 +508,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkFirewallPoliciesClient implements BackgroundResource { - private final NetworkFirewallPoliciesSettings settings; + private final @Nullable NetworkFirewallPoliciesSettings settings; private final NetworkFirewallPoliciesStub stub; /** Constructs an instance of NetworkFirewallPoliciesClient with default settings. */ @@ -548,7 +549,7 @@ protected NetworkFirewallPoliciesClient(NetworkFirewallPoliciesStub stub) { this.stub = stub; } - public final NetworkFirewallPoliciesSettings getSettings() { + public final @Nullable NetworkFirewallPoliciesSettings getSettings() { return settings; } @@ -3298,12 +3299,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList, Map.Entry> context, - NetworkFirewallPolicyAggregatedList response) { + @Nullable NetworkFirewallPolicyAggregatedList response) { super(context, response); } @@ -3313,18 +3315,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList, Map.Entry> context, - NetworkFirewallPolicyAggregatedList response) { + @Nullable NetworkFirewallPolicyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList, Map.Entry> @@ -3342,7 +3346,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3352,7 +3357,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -3384,8 +3389,10 @@ public static class ListPage ListNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy, ListPage> { private ListPage( - PageContext context, - FirewallPolicyList response) { + @Nullable + PageContext + context, + @Nullable FirewallPolicyList response) { super(context, response); } @@ -3395,14 +3402,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - FirewallPolicyList response) { + @Nullable + PageContext + context, + @Nullable FirewallPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3416,7 +3427,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3425,7 +3436,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java index d29670fd2f6e..c13c66fa797d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -369,7 +370,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -390,7 +391,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkFirewallPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java index dec106533acc..438d151bed36 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesClient.java @@ -32,6 +32,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. /** @@ -147,7 +148,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkProfilesClient implements BackgroundResource { - private final NetworkProfilesSettings settings; + private final @Nullable NetworkProfilesSettings settings; private final NetworkProfilesStub stub; /** Constructs an instance of NetworkProfilesClient with default settings. */ @@ -187,7 +188,7 @@ protected NetworkProfilesClient(NetworkProfilesStub stub) { this.stub = stub; } - public final NetworkProfilesSettings getSettings() { + public final @Nullable NetworkProfilesSettings getSettings() { return settings; } @@ -483,9 +484,10 @@ public static class ListPage ListNetworkProfilesRequest, NetworkProfilesListResponse, NetworkProfile, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - NetworkProfilesListResponse response) { + @Nullable NetworkProfilesListResponse response) { super(context, response); } @@ -495,15 +497,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - NetworkProfilesListResponse response) { + @Nullable NetworkProfilesListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -518,7 +522,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -527,7 +531,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java index 43e760d1022c..141b4020e334 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkProfilesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -145,7 +146,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -165,7 +166,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkProfilesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksClient.java index be15d382a17a..76c8d90b887f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksClient.java @@ -34,6 +34,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. /** @@ -348,7 +349,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworksClient implements BackgroundResource { - private final NetworksSettings settings; + private final @Nullable NetworksSettings settings; private final NetworksStub stub; /** Constructs an instance of NetworksClient with default settings. */ @@ -386,7 +387,7 @@ protected NetworksClient(NetworksStub stub) { this.stub = stub; } - public final NetworksSettings getSettings() { + public final @Nullable NetworksSettings getSettings() { return settings; } @@ -2144,7 +2145,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, NetworkList response) { + @Nullable PageContext context, + @Nullable NetworkList response) { super(context, response); } @@ -2154,13 +2156,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, NetworkList response) { + @Nullable PageContext context, + @Nullable NetworkList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2170,7 +2173,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListNetworksRequest, NetworkList, Network, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2179,7 +2182,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2218,10 +2222,11 @@ public static class ListPeeringRoutesPage ListPeeringRoutesPage> { private ListPeeringRoutesPage( - PageContext< + @Nullable + PageContext< ListPeeringRoutesNetworksRequest, ExchangedPeeringRoutesList, ExchangedPeeringRoute> context, - ExchangedPeeringRoutesList response) { + @Nullable ExchangedPeeringRoutesList response) { super(context, response); } @@ -2231,16 +2236,18 @@ private static ListPeeringRoutesPage createEmptyPage() { @Override protected ListPeeringRoutesPage createPage( - PageContext< + @Nullable + PageContext< ListPeeringRoutesNetworksRequest, ExchangedPeeringRoutesList, ExchangedPeeringRoute> context, - ExchangedPeeringRoutesList response) { + @Nullable ExchangedPeeringRoutesList response) { return new ListPeeringRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPeeringRoutesNetworksRequest, ExchangedPeeringRoutesList, ExchangedPeeringRoute> context, ApiFuture futureResponse) { @@ -2257,7 +2264,7 @@ public static class ListPeeringRoutesFixedSizeCollection ListPeeringRoutesFixedSizeCollection> { private ListPeeringRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2267,7 +2274,7 @@ private static ListPeeringRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListPeeringRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPeeringRoutesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksSettings.java index 1487e3200bca..2328daef081e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -305,7 +306,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java index ed36017e4905..bbfbd77c011b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java @@ -35,6 +35,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. /** @@ -393,7 +394,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NodeGroupsClient implements BackgroundResource { - private final NodeGroupsSettings settings; + private final @Nullable NodeGroupsSettings settings; private final NodeGroupsStub stub; /** Constructs an instance of NodeGroupsClient with default settings. */ @@ -431,7 +432,7 @@ protected NodeGroupsClient(NodeGroupsStub stub) { this.stub = stub; } - public final NodeGroupsSettings getSettings() { + public final @Nullable NodeGroupsSettings getSettings() { return settings; } @@ -2522,12 +2523,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeGroupsRequest, NodeGroupAggregatedList, Map.Entry> context, - NodeGroupAggregatedList response) { + @Nullable NodeGroupAggregatedList response) { super(context, response); } @@ -2537,18 +2539,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeGroupsRequest, NodeGroupAggregatedList, Map.Entry> context, - NodeGroupAggregatedList response) { + @Nullable NodeGroupAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNodeGroupsRequest, NodeGroupAggregatedList, Map.Entry> @@ -2566,7 +2570,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2576,7 +2581,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2603,8 +2608,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - NodeGroupList response) { + @Nullable PageContext context, + @Nullable NodeGroupList response) { super(context, response); } @@ -2614,14 +2619,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - NodeGroupList response) { + @Nullable PageContext context, + @Nullable NodeGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2631,7 +2636,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListNodeGroupsRequest, NodeGroupList, NodeGroup, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2640,7 +2645,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2672,8 +2678,9 @@ public static class ListNodesPage ListNodesNodeGroupsRequest, NodeGroupsListNodes, NodeGroupNode, ListNodesPage> { private ListNodesPage( - PageContext context, - NodeGroupsListNodes response) { + @Nullable PageContext + context, + @Nullable NodeGroupsListNodes response) { super(context, response); } @@ -2683,14 +2690,16 @@ private static ListNodesPage createEmptyPage() { @Override protected ListNodesPage createPage( - PageContext context, - NodeGroupsListNodes response) { + @Nullable PageContext + context, + @Nullable NodeGroupsListNodes response) { return new ListNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2704,7 +2713,7 @@ public static class ListNodesFixedSizeCollection ListNodesPage, ListNodesFixedSizeCollection> { - private ListNodesFixedSizeCollection(List pages, int collectionSize) { + private ListNodesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2714,7 +2723,7 @@ private static ListNodesFixedSizeCollection createEmptyCollection() { @Override protected ListNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSettings.java index 3c19e11bd574..b59fed8d6ca2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -308,7 +309,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NodeGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesClient.java index c5c1f7d56f7f..0a7b194e8896 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesClient.java @@ -35,6 +35,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. /** @@ -260,7 +261,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NodeTemplatesClient implements BackgroundResource { - private final NodeTemplatesSettings settings; + private final @Nullable NodeTemplatesSettings settings; private final NodeTemplatesStub stub; /** Constructs an instance of NodeTemplatesClient with default settings. */ @@ -300,7 +301,7 @@ protected NodeTemplatesClient(NodeTemplatesStub stub) { this.stub = stub; } - public final NodeTemplatesSettings getSettings() { + public final @Nullable NodeTemplatesSettings getSettings() { return settings; } @@ -1355,12 +1356,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeTemplatesRequest, NodeTemplateAggregatedList, Map.Entry> context, - NodeTemplateAggregatedList response) { + @Nullable NodeTemplateAggregatedList response) { super(context, response); } @@ -1370,18 +1372,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeTemplatesRequest, NodeTemplateAggregatedList, Map.Entry> context, - NodeTemplateAggregatedList response) { + @Nullable NodeTemplateAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNodeTemplatesRequest, NodeTemplateAggregatedList, Map.Entry> @@ -1399,7 +1403,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1409,7 +1414,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1440,8 +1445,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - NodeTemplateList response) { + @Nullable PageContext context, + @Nullable NodeTemplateList response) { super(context, response); } @@ -1451,14 +1456,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - NodeTemplateList response) { + @Nullable PageContext context, + @Nullable NodeTemplateList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1472,7 +1477,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1481,7 +1486,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesSettings.java index 249eada1b6ca..d1a9f67a5b28 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NodeTemplatesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesClient.java index 6ad27f7a1b87..a26b54a1b604 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesClient.java @@ -33,6 +33,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NodeTypesClient implements BackgroundResource { - private final NodeTypesSettings settings; + private final @Nullable NodeTypesSettings settings; private final NodeTypesStub stub; /** Constructs an instance of NodeTypesClient with default settings. */ @@ -204,7 +205,7 @@ protected NodeTypesClient(NodeTypesStub stub) { this.stub = stub; } - public final NodeTypesSettings getSettings() { + public final @Nullable NodeTypesSettings getSettings() { return settings; } @@ -678,12 +679,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeTypesRequest, NodeTypeAggregatedList, Map.Entry> context, - NodeTypeAggregatedList response) { + @Nullable NodeTypeAggregatedList response) { super(context, response); } @@ -693,18 +695,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListNodeTypesRequest, NodeTypeAggregatedList, Map.Entry> context, - NodeTypeAggregatedList response) { + @Nullable NodeTypeAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListNodeTypesRequest, NodeTypeAggregatedList, Map.Entry> @@ -722,7 +726,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -732,7 +737,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -759,7 +764,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, NodeTypeList response) { + @Nullable PageContext context, + @Nullable NodeTypeList response) { super(context, response); } @@ -769,13 +775,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, NodeTypeList response) { + @Nullable PageContext context, + @Nullable NodeTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -785,7 +792,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListNodeTypesRequest, NodeTypeList, NodeType, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -794,7 +801,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesSettings.java index 36778db58d4e..9e5acca53303 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NodeTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesClient.java index 62d0fbec2fb7..45d98df19d67 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesClient.java @@ -34,6 +34,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. /** @@ -427,7 +428,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrganizationSecurityPoliciesClient implements BackgroundResource { - private final OrganizationSecurityPoliciesSettings settings; + private final @Nullable OrganizationSecurityPoliciesSettings settings; private final OrganizationSecurityPoliciesStub stub; /** Constructs an instance of OrganizationSecurityPoliciesClient with default settings. */ @@ -471,7 +472,7 @@ protected OrganizationSecurityPoliciesClient(OrganizationSecurityPoliciesStub st this.stub = stub; } - public final OrganizationSecurityPoliciesSettings getSettings() { + public final @Nullable OrganizationSecurityPoliciesSettings getSettings() { return settings; } @@ -2686,9 +2687,10 @@ public static class ListPage ListOrganizationSecurityPoliciesRequest, SecurityPolicyList, SecurityPolicy, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - SecurityPolicyList response) { + @Nullable SecurityPolicyList response) { super(context, response); } @@ -2698,15 +2700,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - SecurityPolicyList response) { + @Nullable SecurityPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2721,7 +2725,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2730,7 +2734,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesSettings.java index 5c75c46b4ccf..9e1293428f45 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OrganizationSecurityPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -329,7 +330,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -350,7 +351,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationSecurityPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsClient.java index c0a4132cf573..3ebd84c3bd8f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsClient.java @@ -35,6 +35,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. /** @@ -246,7 +247,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PacketMirroringsClient implements BackgroundResource { - private final PacketMirroringsSettings settings; + private final @Nullable PacketMirroringsSettings settings; private final PacketMirroringsStub stub; /** Constructs an instance of PacketMirroringsClient with default settings. */ @@ -286,7 +287,7 @@ protected PacketMirroringsClient(PacketMirroringsStub stub) { this.stub = stub; } - public final PacketMirroringsSettings getSettings() { + public final @Nullable PacketMirroringsSettings getSettings() { return settings; } @@ -1284,12 +1285,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListPacketMirroringsRequest, PacketMirroringAggregatedList, Map.Entry> context, - PacketMirroringAggregatedList response) { + @Nullable PacketMirroringAggregatedList response) { super(context, response); } @@ -1299,18 +1301,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListPacketMirroringsRequest, PacketMirroringAggregatedList, Map.Entry> context, - PacketMirroringAggregatedList response) { + @Nullable PacketMirroringAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListPacketMirroringsRequest, PacketMirroringAggregatedList, Map.Entry> @@ -1328,7 +1332,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1338,7 +1343,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1370,8 +1375,9 @@ public static class ListPage ListPacketMirroringsRequest, PacketMirroringList, PacketMirroring, ListPage> { private ListPage( - PageContext context, - PacketMirroringList response) { + @Nullable PageContext + context, + @Nullable PacketMirroringList response) { super(context, response); } @@ -1381,14 +1387,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - PacketMirroringList response) { + @Nullable PageContext + context, + @Nullable PacketMirroringList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1402,7 +1410,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1411,7 +1419,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsSettings.java index f3dd795f6813..f763de485d89 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PacketMirroringsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -240,7 +241,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PacketMirroringsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesClient.java index 9c63addaedfa..d0b365c92af4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesClient.java @@ -34,6 +34,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. /** @@ -168,7 +169,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PreviewFeaturesClient implements BackgroundResource { - private final PreviewFeaturesSettings settings; + private final @Nullable PreviewFeaturesSettings settings; private final PreviewFeaturesStub stub; /** Constructs an instance of PreviewFeaturesClient with default settings. */ @@ -208,7 +209,7 @@ protected PreviewFeaturesClient(PreviewFeaturesStub stub) { this.stub = stub; } - public final PreviewFeaturesSettings getSettings() { + public final @Nullable PreviewFeaturesSettings getSettings() { return settings; } @@ -633,8 +634,9 @@ public static class ListPage ListPreviewFeaturesRequest, PreviewFeatureList, PreviewFeature, ListPage> { private ListPage( - PageContext context, - PreviewFeatureList response) { + @Nullable PageContext + context, + @Nullable PreviewFeatureList response) { super(context, response); } @@ -644,14 +646,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - PreviewFeatureList response) { + @Nullable PageContext + context, + @Nullable PreviewFeatureList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -665,7 +669,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -674,7 +678,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesSettings.java index c2bec1b502c6..f5d751770f2d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewFeaturesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -202,7 +203,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PreviewFeaturesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsClient.java index 87fa5252daaf..98a8bc509bf8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsClient.java @@ -34,6 +34,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. /** @@ -382,7 +383,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProjectsClient implements BackgroundResource { - private final ProjectsSettings settings; + private final @Nullable ProjectsSettings settings; private final ProjectsStub stub; /** Constructs an instance of ProjectsClient with default settings. */ @@ -420,7 +421,7 @@ protected ProjectsClient(ProjectsStub stub) { this.stub = stub; } - public final ProjectsSettings getSettings() { + public final @Nullable ProjectsSettings getSettings() { return settings; } @@ -2335,8 +2336,10 @@ public static class GetXpnResourcesPage GetXpnResourcesPage> { private GetXpnResourcesPage( - PageContext context, - ProjectsGetXpnResources response) { + @Nullable + PageContext + context, + @Nullable ProjectsGetXpnResources response) { super(context, response); } @@ -2346,14 +2349,18 @@ private static GetXpnResourcesPage createEmptyPage() { @Override protected GetXpnResourcesPage createPage( - PageContext context, - ProjectsGetXpnResources response) { + @Nullable + PageContext + context, + @Nullable ProjectsGetXpnResources response) { return new GetXpnResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2368,7 +2375,7 @@ public static class GetXpnResourcesFixedSizeCollection GetXpnResourcesFixedSizeCollection> { private GetXpnResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2378,7 +2385,7 @@ private static GetXpnResourcesFixedSizeCollection createEmptyCollection() { @Override protected GetXpnResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetXpnResourcesFixedSizeCollection(pages, collectionSize); } } @@ -2411,8 +2418,8 @@ public static class ListXpnHostsPage extends AbstractPage { private ListXpnHostsPage( - PageContext context, - XpnHostList response) { + @Nullable PageContext context, + @Nullable XpnHostList response) { super(context, response); } @@ -2422,14 +2429,14 @@ private static ListXpnHostsPage createEmptyPage() { @Override protected ListXpnHostsPage createPage( - PageContext context, - XpnHostList response) { + @Nullable PageContext context, + @Nullable XpnHostList response) { return new ListXpnHostsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2443,7 +2450,8 @@ public static class ListXpnHostsFixedSizeCollection ListXpnHostsPage, ListXpnHostsFixedSizeCollection> { - private ListXpnHostsFixedSizeCollection(List pages, int collectionSize) { + private ListXpnHostsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2453,7 +2461,7 @@ private static ListXpnHostsFixedSizeCollection createEmptyCollection() { @Override protected ListXpnHostsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListXpnHostsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSettings.java index c233d0ffc3b5..edb4f0ecd77c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -315,7 +316,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesClient.java index 9f13d59ee5ff..00e58e4f2cf2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesClient.java @@ -34,6 +34,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. /** @@ -246,7 +247,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PublicAdvertisedPrefixesClient implements BackgroundResource { - private final PublicAdvertisedPrefixesSettings settings; + private final @Nullable PublicAdvertisedPrefixesSettings settings; private final PublicAdvertisedPrefixesStub stub; /** Constructs an instance of PublicAdvertisedPrefixesClient with default settings. */ @@ -288,7 +289,7 @@ protected PublicAdvertisedPrefixesClient(PublicAdvertisedPrefixesStub stub) { this.stub = stub; } - public final PublicAdvertisedPrefixesSettings getSettings() { + public final @Nullable PublicAdvertisedPrefixesSettings getSettings() { return settings; } @@ -1276,12 +1277,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListPublicAdvertisedPrefixesRequest, PublicAdvertisedPrefixList, PublicAdvertisedPrefix> context, - PublicAdvertisedPrefixList response) { + @Nullable PublicAdvertisedPrefixList response) { super(context, response); } @@ -1291,18 +1293,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListPublicAdvertisedPrefixesRequest, PublicAdvertisedPrefixList, PublicAdvertisedPrefix> context, - PublicAdvertisedPrefixList response) { + @Nullable PublicAdvertisedPrefixList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPublicAdvertisedPrefixesRequest, PublicAdvertisedPrefixList, PublicAdvertisedPrefix> @@ -1320,7 +1324,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1329,7 +1333,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesSettings.java index ff4cdc3d49e8..f6a0e7fbb483 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicAdvertisedPrefixesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublicAdvertisedPrefixesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesClient.java index 1ad5e34297c3..bfda3e212f66 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesClient.java @@ -35,6 +35,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. /** @@ -268,7 +269,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PublicDelegatedPrefixesClient implements BackgroundResource { - private final PublicDelegatedPrefixesSettings settings; + private final @Nullable PublicDelegatedPrefixesSettings settings; private final PublicDelegatedPrefixesStub stub; /** Constructs an instance of PublicDelegatedPrefixesClient with default settings. */ @@ -309,7 +310,7 @@ protected PublicDelegatedPrefixesClient(PublicDelegatedPrefixesStub stub) { this.stub = stub; } - public final PublicDelegatedPrefixesSettings getSettings() { + public final @Nullable PublicDelegatedPrefixesSettings getSettings() { return settings; } @@ -1520,12 +1521,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixAggregatedList, Map.Entry> context, - PublicDelegatedPrefixAggregatedList response) { + @Nullable PublicDelegatedPrefixAggregatedList response) { super(context, response); } @@ -1535,18 +1537,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixAggregatedList, Map.Entry> context, - PublicDelegatedPrefixAggregatedList response) { + @Nullable PublicDelegatedPrefixAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixAggregatedList, Map.Entry> @@ -1564,7 +1568,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1574,7 +1579,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1613,12 +1618,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> context, - PublicDelegatedPrefixList response) { + @Nullable PublicDelegatedPrefixList response) { super(context, response); } @@ -1628,18 +1634,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> context, - PublicDelegatedPrefixList response) { + @Nullable PublicDelegatedPrefixList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPublicDelegatedPrefixesRequest, PublicDelegatedPrefixList, PublicDelegatedPrefix> @@ -1657,7 +1665,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1666,7 +1674,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesSettings.java index a30f74ed8c9f..29eab02c1093 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PublicDelegatedPrefixesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublicDelegatedPrefixesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersClient.java index bc3b00414f87..5befd29a8f7f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersClient.java @@ -34,6 +34,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionAutoscalersClient implements BackgroundResource { - private final RegionAutoscalersSettings settings; + private final @Nullable RegionAutoscalersSettings settings; private final RegionAutoscalersStub stub; /** Constructs an instance of RegionAutoscalersClient with default settings. */ @@ -284,7 +285,7 @@ protected RegionAutoscalersClient(RegionAutoscalersStub stub) { this.stub = stub; } - public final RegionAutoscalersSettings getSettings() { + public final @Nullable RegionAutoscalersSettings getSettings() { return settings; } @@ -1230,8 +1231,9 @@ public static class ListPage ListRegionAutoscalersRequest, RegionAutoscalerList, Autoscaler, ListPage> { private ListPage( - PageContext context, - RegionAutoscalerList response) { + @Nullable PageContext + context, + @Nullable RegionAutoscalerList response) { super(context, response); } @@ -1241,14 +1243,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - RegionAutoscalerList response) { + @Nullable PageContext + context, + @Nullable RegionAutoscalerList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1262,7 +1266,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1271,7 +1275,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersSettings.java index 8b6940d17bc5..7ab8a190734e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalersSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionAutoscalersStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java index 42ae221766f8..10bf1c8f46a2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsClient.java @@ -34,6 +34,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. /** @@ -281,7 +282,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionBackendBucketsClient implements BackgroundResource { - private final RegionBackendBucketsSettings settings; + private final @Nullable RegionBackendBucketsSettings settings; private final RegionBackendBucketsStub stub; /** Constructs an instance of RegionBackendBucketsClient with default settings. */ @@ -321,7 +322,7 @@ protected RegionBackendBucketsClient(RegionBackendBucketsStub stub) { this.stub = stub; } - public final RegionBackendBucketsSettings getSettings() { + public final @Nullable RegionBackendBucketsSettings getSettings() { return settings; } @@ -1543,8 +1544,9 @@ public static class ListPage ListRegionBackendBucketsRequest, BackendBucketList, BackendBucket, ListPage> { private ListPage( - PageContext context, - BackendBucketList response) { + @Nullable PageContext + context, + @Nullable BackendBucketList response) { super(context, response); } @@ -1554,14 +1556,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - BackendBucketList response) { + @Nullable PageContext + context, + @Nullable BackendBucketList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1575,7 +1579,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1584,7 +1588,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1620,9 +1625,11 @@ public static class ListUsablePage ListUsablePage> { private ListUsablePage( - PageContext + @Nullable + PageContext< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket> context, - BackendBucketListUsable response) { + @Nullable BackendBucketListUsable response) { super(context, response); } @@ -1632,15 +1639,19 @@ private static ListUsablePage createEmptyPage() { @Override protected ListUsablePage createPage( - PageContext + @Nullable + PageContext< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket> context, - BackendBucketListUsable response) { + @Nullable BackendBucketListUsable response) { return new ListUsablePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListUsableRegionBackendBucketsRequest, BackendBucketListUsable, BackendBucket> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1655,7 +1666,8 @@ public static class ListUsableFixedSizeCollection ListUsablePage, ListUsableFixedSizeCollection> { - private ListUsableFixedSizeCollection(List pages, int collectionSize) { + private ListUsableFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1665,7 +1677,7 @@ private static ListUsableFixedSizeCollection createEmptyCollection() { @Override protected ListUsableFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java index 805334a0b2c2..ddebc43189b1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendBucketsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -250,7 +251,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionBackendBucketsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesClient.java index 287abd769bac..f71121f23597 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesClient.java @@ -34,6 +34,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. /** @@ -337,7 +338,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionBackendServicesClient implements BackgroundResource { - private final RegionBackendServicesSettings settings; + private final @Nullable RegionBackendServicesSettings settings; private final RegionBackendServicesStub stub; /** Constructs an instance of RegionBackendServicesClient with default settings. */ @@ -377,7 +378,7 @@ protected RegionBackendServicesClient(RegionBackendServicesStub stub) { this.stub = stub; } - public final RegionBackendServicesSettings getSettings() { + public final @Nullable RegionBackendServicesSettings getSettings() { return settings; } @@ -2020,8 +2021,9 @@ public static class ListPage ListRegionBackendServicesRequest, BackendServiceList, BackendService, ListPage> { private ListPage( - PageContext context, - BackendServiceList response) { + @Nullable PageContext + context, + @Nullable BackendServiceList response) { super(context, response); } @@ -2031,14 +2033,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - BackendServiceList response) { + @Nullable PageContext + context, + @Nullable BackendServiceList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2052,7 +2056,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2061,7 +2065,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2098,10 +2103,11 @@ public static class ListUsablePage ListUsablePage> { private ListUsablePage( - PageContext< + @Nullable + PageContext< ListUsableRegionBackendServicesRequest, BackendServiceListUsable, BackendService> context, - BackendServiceListUsable response) { + @Nullable BackendServiceListUsable response) { super(context, response); } @@ -2111,16 +2117,18 @@ private static ListUsablePage createEmptyPage() { @Override protected ListUsablePage createPage( - PageContext< + @Nullable + PageContext< ListUsableRegionBackendServicesRequest, BackendServiceListUsable, BackendService> context, - BackendServiceListUsable response) { + @Nullable BackendServiceListUsable response) { return new ListUsablePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUsableRegionBackendServicesRequest, BackendServiceListUsable, BackendService> context, ApiFuture futureResponse) { @@ -2136,7 +2144,8 @@ public static class ListUsableFixedSizeCollection ListUsablePage, ListUsableFixedSizeCollection> { - private ListUsableFixedSizeCollection(List pages, int collectionSize) { + private ListUsableFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2146,7 +2155,7 @@ private static ListUsableFixedSizeCollection createEmptyCollection() { @Override protected ListUsableFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesSettings.java index 49ffce823ba6..cacf28431460 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServicesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -259,7 +260,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -280,7 +281,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionBackendServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsClient.java index fa199172e513..b8783e7b15df 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsClient.java @@ -35,6 +35,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. /** @@ -209,7 +210,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionCommitmentsClient implements BackgroundResource { - private final RegionCommitmentsSettings settings; + private final @Nullable RegionCommitmentsSettings settings; private final RegionCommitmentsStub stub; /** Constructs an instance of RegionCommitmentsClient with default settings. */ @@ -249,7 +250,7 @@ protected RegionCommitmentsClient(RegionCommitmentsStub stub) { this.stub = stub; } - public final RegionCommitmentsSettings getSettings() { + public final @Nullable RegionCommitmentsSettings getSettings() { return settings; } @@ -1010,12 +1011,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionCommitmentsRequest, CommitmentAggregatedList, Map.Entry> context, - CommitmentAggregatedList response) { + @Nullable CommitmentAggregatedList response) { super(context, response); } @@ -1025,18 +1027,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionCommitmentsRequest, CommitmentAggregatedList, Map.Entry> context, - CommitmentAggregatedList response) { + @Nullable CommitmentAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionCommitmentsRequest, CommitmentAggregatedList, Map.Entry> @@ -1054,7 +1058,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1064,7 +1069,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1095,8 +1100,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - CommitmentList response) { + @Nullable PageContext context, + @Nullable CommitmentList response) { super(context, response); } @@ -1106,14 +1111,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - CommitmentList response) { + @Nullable PageContext context, + @Nullable CommitmentList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1127,7 +1132,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1136,7 +1141,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsSettings.java index 0b5f9b2736ce..caa6efc70e6e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -203,7 +204,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionCommitmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java index 32ba0d64f9ca..f4100cd86071 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksClient.java @@ -35,6 +35,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. /** @@ -266,7 +267,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionCompositeHealthChecksClient implements BackgroundResource { - private final RegionCompositeHealthChecksSettings settings; + private final @Nullable RegionCompositeHealthChecksSettings settings; private final RegionCompositeHealthChecksStub stub; /** Constructs an instance of RegionCompositeHealthChecksClient with default settings. */ @@ -309,7 +310,7 @@ protected RegionCompositeHealthChecksClient(RegionCompositeHealthChecksStub stub this.stub = stub; } - public final RegionCompositeHealthChecksSettings getSettings() { + public final @Nullable RegionCompositeHealthChecksSettings getSettings() { return settings; } @@ -1467,12 +1468,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionCompositeHealthChecksRequest, CompositeHealthCheckAggregatedList, Map.Entry> context, - CompositeHealthCheckAggregatedList response) { + @Nullable CompositeHealthCheckAggregatedList response) { super(context, response); } @@ -1482,18 +1484,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionCompositeHealthChecksRequest, CompositeHealthCheckAggregatedList, Map.Entry> context, - CompositeHealthCheckAggregatedList response) { + @Nullable CompositeHealthCheckAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionCompositeHealthChecksRequest, CompositeHealthCheckAggregatedList, Map.Entry> @@ -1511,7 +1515,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1521,7 +1526,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1560,12 +1565,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionCompositeHealthChecksRequest, CompositeHealthCheckList, CompositeHealthCheck> context, - CompositeHealthCheckList response) { + @Nullable CompositeHealthCheckList response) { super(context, response); } @@ -1575,18 +1581,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionCompositeHealthChecksRequest, CompositeHealthCheckList, CompositeHealthCheck> context, - CompositeHealthCheckList response) { + @Nullable CompositeHealthCheckList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionCompositeHealthChecksRequest, CompositeHealthCheckList, CompositeHealthCheck> @@ -1604,7 +1612,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1613,7 +1621,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java index 5636851319ce..1a1680ca968f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCompositeHealthChecksSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionCompositeHealthChecksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesClient.java index edc64ad117ce..6701dcac6de0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionDiskTypesClient implements BackgroundResource { - private final RegionDiskTypesSettings settings; + private final @Nullable RegionDiskTypesSettings settings; private final RegionDiskTypesStub stub; /** Constructs an instance of RegionDiskTypesClient with default settings. */ @@ -188,7 +189,7 @@ protected RegionDiskTypesClient(RegionDiskTypesStub stub) { this.stub = stub; } - public final RegionDiskTypesSettings getSettings() { + public final @Nullable RegionDiskTypesSettings getSettings() { return settings; } @@ -490,8 +491,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - RegionDiskTypeList response) { + @Nullable PageContext context, + @Nullable RegionDiskTypeList response) { super(context, response); } @@ -501,14 +502,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - RegionDiskTypeList response) { + @Nullable PageContext context, + @Nullable RegionDiskTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -522,7 +523,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -531,7 +532,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesSettings.java index 07e2493e40c8..5a2d45fd8550 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionDiskTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java index a08629915443..f70acc86b8a5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksClient.java @@ -34,6 +34,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. /** @@ -448,7 +449,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionDisksClient implements BackgroundResource { - private final RegionDisksSettings settings; + private final @Nullable RegionDisksSettings settings; private final RegionDisksStub stub; /** Constructs an instance of RegionDisksClient with default settings. */ @@ -487,7 +488,7 @@ protected RegionDisksClient(RegionDisksStub stub) { this.stub = stub; } - public final RegionDisksSettings getSettings() { + public final @Nullable RegionDisksSettings getSettings() { return settings; } @@ -2962,7 +2963,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, DiskList response) { + @Nullable PageContext context, + @Nullable DiskList response) { super(context, response); } @@ -2972,13 +2974,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, DiskList response) { + @Nullable PageContext context, + @Nullable DiskList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2988,7 +2991,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRegionDisksRequest, DiskList, Disk, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2997,7 +3000,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java index 08d640ee2a43..c544f849f043 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -352,7 +353,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionDisksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesClient.java index 99774191bb7b..8bc1db6c1e35 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesClient.java @@ -35,6 +35,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. /** @@ -248,7 +249,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionHealthAggregationPoliciesClient implements BackgroundResource { - private final RegionHealthAggregationPoliciesSettings settings; + private final @Nullable RegionHealthAggregationPoliciesSettings settings; private final RegionHealthAggregationPoliciesStub stub; /** Constructs an instance of RegionHealthAggregationPoliciesClient with default settings. */ @@ -293,7 +294,7 @@ protected RegionHealthAggregationPoliciesClient(RegionHealthAggregationPoliciesS this.stub = stub; } - public final RegionHealthAggregationPoliciesSettings getSettings() { + public final @Nullable RegionHealthAggregationPoliciesSettings getSettings() { return settings; } @@ -1359,12 +1360,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyAggregatedList, Map.Entry> context, - HealthAggregationPolicyAggregatedList response) { + @Nullable HealthAggregationPolicyAggregatedList response) { super(context, response); } @@ -1374,18 +1376,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyAggregatedList, Map.Entry> context, - HealthAggregationPolicyAggregatedList response) { + @Nullable HealthAggregationPolicyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyAggregatedList, Map.Entry> @@ -1403,7 +1407,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1413,7 +1418,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1452,12 +1457,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyList, HealthAggregationPolicy> context, - HealthAggregationPolicyList response) { + @Nullable HealthAggregationPolicyList response) { super(context, response); } @@ -1467,18 +1473,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyList, HealthAggregationPolicy> context, - HealthAggregationPolicyList response) { + @Nullable HealthAggregationPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionHealthAggregationPoliciesRequest, HealthAggregationPolicyList, HealthAggregationPolicy> @@ -1496,7 +1504,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1505,7 +1513,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesSettings.java index 6b170755bfb1..9f8044690e9e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthAggregationPoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionHealthAggregationPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesClient.java index b8b85a4c567c..5ed6cdc8ca1e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesClient.java @@ -35,6 +35,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. /** @@ -248,7 +249,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionHealthCheckServicesClient implements BackgroundResource { - private final RegionHealthCheckServicesSettings settings; + private final @Nullable RegionHealthCheckServicesSettings settings; private final RegionHealthCheckServicesStub stub; /** Constructs an instance of RegionHealthCheckServicesClient with default settings. */ @@ -290,7 +291,7 @@ protected RegionHealthCheckServicesClient(RegionHealthCheckServicesStub stub) { this.stub = stub; } - public final RegionHealthCheckServicesSettings getSettings() { + public final @Nullable RegionHealthCheckServicesSettings getSettings() { return settings; } @@ -1348,12 +1349,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthCheckServicesRequest, HealthCheckServiceAggregatedList, Map.Entry> context, - HealthCheckServiceAggregatedList response) { + @Nullable HealthCheckServiceAggregatedList response) { super(context, response); } @@ -1363,18 +1365,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthCheckServicesRequest, HealthCheckServiceAggregatedList, Map.Entry> context, - HealthCheckServiceAggregatedList response) { + @Nullable HealthCheckServiceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthCheckServicesRequest, HealthCheckServiceAggregatedList, Map.Entry> @@ -1392,7 +1396,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1402,7 +1407,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1439,10 +1444,11 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionHealthCheckServicesRequest, HealthCheckServicesList, HealthCheckService> context, - HealthCheckServicesList response) { + @Nullable HealthCheckServicesList response) { super(context, response); } @@ -1452,16 +1458,18 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionHealthCheckServicesRequest, HealthCheckServicesList, HealthCheckService> context, - HealthCheckServicesList response) { + @Nullable HealthCheckServicesList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionHealthCheckServicesRequest, HealthCheckServicesList, HealthCheckService> context, ApiFuture futureResponse) { @@ -1477,7 +1485,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1494,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesSettings.java index 05e8acfd24df..f63332c6e23d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthCheckServicesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionHealthCheckServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksClient.java index 645cf11ef251..388a524b0b95 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksClient.java @@ -34,6 +34,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionHealthChecksClient implements BackgroundResource { - private final RegionHealthChecksSettings settings; + private final @Nullable RegionHealthChecksSettings settings; private final RegionHealthChecksStub stub; /** Constructs an instance of RegionHealthChecksClient with default settings. */ @@ -284,7 +285,7 @@ protected RegionHealthChecksClient(RegionHealthChecksStub stub) { this.stub = stub; } - public final RegionHealthChecksSettings getSettings() { + public final @Nullable RegionHealthChecksSettings getSettings() { return settings; } @@ -1239,8 +1240,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - HealthCheckList response) { + @Nullable PageContext context, + @Nullable HealthCheckList response) { super(context, response); } @@ -1250,14 +1251,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - HealthCheckList response) { + @Nullable PageContext context, + @Nullable HealthCheckList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1271,7 +1272,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1280,7 +1281,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksSettings.java index 0536c5b39ae1..fd2946420668 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthChecksSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionHealthChecksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java index 91ce545583ef..a509cef13d39 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesClient.java @@ -35,6 +35,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. /** @@ -264,7 +265,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionHealthSourcesClient implements BackgroundResource { - private final RegionHealthSourcesSettings settings; + private final @Nullable RegionHealthSourcesSettings settings; private final RegionHealthSourcesStub stub; /** Constructs an instance of RegionHealthSourcesClient with default settings. */ @@ -304,7 +305,7 @@ protected RegionHealthSourcesClient(RegionHealthSourcesStub stub) { this.stub = stub; } - public final RegionHealthSourcesSettings getSettings() { + public final @Nullable RegionHealthSourcesSettings getSettings() { return settings; } @@ -1402,12 +1403,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthSourcesRequest, HealthSourceAggregatedList, Map.Entry> context, - HealthSourceAggregatedList response) { + @Nullable HealthSourceAggregatedList response) { super(context, response); } @@ -1417,18 +1419,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthSourcesRequest, HealthSourceAggregatedList, Map.Entry> context, - HealthSourceAggregatedList response) { + @Nullable HealthSourceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionHealthSourcesRequest, HealthSourceAggregatedList, Map.Entry> @@ -1446,7 +1450,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1456,7 +1461,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1488,8 +1493,9 @@ public static class ListPage ListRegionHealthSourcesRequest, HealthSourceList, HealthSource, ListPage> { private ListPage( - PageContext context, - HealthSourceList response) { + @Nullable PageContext + context, + @Nullable HealthSourceList response) { super(context, response); } @@ -1499,14 +1505,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - HealthSourceList response) { + @Nullable PageContext + context, + @Nullable HealthSourceList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1520,7 +1528,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1529,7 +1537,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java index c6ac1ce80f8e..2ed5e5b22638 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionHealthSourcesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionHealthSourcesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java index ddc4a37b2ad4..95320db8e730 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsClient.java @@ -34,6 +34,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstanceGroupManagerResizeRequestsClient implements BackgroundResource { - private final RegionInstanceGroupManagerResizeRequestsSettings settings; + private final @Nullable RegionInstanceGroupManagerResizeRequestsSettings settings; private final RegionInstanceGroupManagerResizeRequestsStub stub; /** @@ -267,7 +268,7 @@ protected RegionInstanceGroupManagerResizeRequestsClient( this.stub = stub; } - public final RegionInstanceGroupManagerResizeRequestsSettings getSettings() { + public final @Nullable RegionInstanceGroupManagerResizeRequestsSettings getSettings() { return settings; } @@ -1106,12 +1107,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagerResizeRequestsRequest, RegionInstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> context, - RegionInstanceGroupManagerResizeRequestsListResponse response) { + @Nullable RegionInstanceGroupManagerResizeRequestsListResponse response) { super(context, response); } @@ -1121,18 +1123,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagerResizeRequestsRequest, RegionInstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> context, - RegionInstanceGroupManagerResizeRequestsListResponse response) { + @Nullable RegionInstanceGroupManagerResizeRequestsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagerResizeRequestsRequest, RegionInstanceGroupManagerResizeRequestsListResponse, InstanceGroupManagerResizeRequest> @@ -1150,7 +1154,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1159,7 +1163,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java index ec1a03d3579f..9b29d25c637b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerResizeRequestsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -252,7 +253,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstanceGroupManagerResizeRequestsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java index 4db1eea90d59..e3e8172f8ed8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java @@ -34,6 +34,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. /** @@ -575,7 +576,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstanceGroupManagersClient implements BackgroundResource { - private final RegionInstanceGroupManagersSettings settings; + private final @Nullable RegionInstanceGroupManagersSettings settings; private final RegionInstanceGroupManagersStub stub; /** Constructs an instance of RegionInstanceGroupManagersClient with default settings. */ @@ -618,7 +619,7 @@ protected RegionInstanceGroupManagersClient(RegionInstanceGroupManagersStub stub this.stub = stub; } - public final RegionInstanceGroupManagersSettings getSettings() { + public final @Nullable RegionInstanceGroupManagersSettings getSettings() { return settings; } @@ -4838,12 +4839,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagersRequest, RegionInstanceGroupManagerList, InstanceGroupManager> context, - RegionInstanceGroupManagerList response) { + @Nullable RegionInstanceGroupManagerList response) { super(context, response); } @@ -4853,18 +4855,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagersRequest, RegionInstanceGroupManagerList, InstanceGroupManager> context, - RegionInstanceGroupManagerList response) { + @Nullable RegionInstanceGroupManagerList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionInstanceGroupManagersRequest, RegionInstanceGroupManagerList, InstanceGroupManager> @@ -4882,7 +4886,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4891,7 +4895,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -4930,12 +4935,13 @@ public static class ListErrorsPage ListErrorsPage> { private ListErrorsPage( - PageContext< + @Nullable + PageContext< ListErrorsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> context, - RegionInstanceGroupManagersListErrorsResponse response) { + @Nullable RegionInstanceGroupManagersListErrorsResponse response) { super(context, response); } @@ -4945,18 +4951,20 @@ private static ListErrorsPage createEmptyPage() { @Override protected ListErrorsPage createPage( - PageContext< + @Nullable + PageContext< ListErrorsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> context, - RegionInstanceGroupManagersListErrorsResponse response) { + @Nullable RegionInstanceGroupManagersListErrorsResponse response) { return new ListErrorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListErrorsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListErrorsResponse, InstanceManagedByIgmError> @@ -4974,7 +4982,8 @@ public static class ListErrorsFixedSizeCollection ListErrorsPage, ListErrorsFixedSizeCollection> { - private ListErrorsFixedSizeCollection(List pages, int collectionSize) { + private ListErrorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4984,7 +4993,7 @@ private static ListErrorsFixedSizeCollection createEmptyCollection() { @Override protected ListErrorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListErrorsFixedSizeCollection(pages, collectionSize); } } @@ -5025,12 +5034,13 @@ public static class ListManagedInstancesPage ListManagedInstancesPage> { private ListManagedInstancesPage( - PageContext< + @Nullable + PageContext< ListManagedInstancesRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstancesResponse, ManagedInstance> context, - RegionInstanceGroupManagersListInstancesResponse response) { + @Nullable RegionInstanceGroupManagersListInstancesResponse response) { super(context, response); } @@ -5040,18 +5050,20 @@ private static ListManagedInstancesPage createEmptyPage() { @Override protected ListManagedInstancesPage createPage( - PageContext< + @Nullable + PageContext< ListManagedInstancesRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstancesResponse, ManagedInstance> context, - RegionInstanceGroupManagersListInstancesResponse response) { + @Nullable RegionInstanceGroupManagersListInstancesResponse response) { return new ListManagedInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListManagedInstancesRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstancesResponse, ManagedInstance> @@ -5070,7 +5082,7 @@ public static class ListManagedInstancesFixedSizeCollection ListManagedInstancesFixedSizeCollection> { private ListManagedInstancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5080,7 +5092,7 @@ private static ListManagedInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListManagedInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListManagedInstancesFixedSizeCollection(pages, collectionSize); } } @@ -5121,12 +5133,13 @@ public static class ListPerInstanceConfigsPage ListPerInstanceConfigsPage> { private ListPerInstanceConfigsPage( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstanceConfigsResp, PerInstanceConfig> context, - RegionInstanceGroupManagersListInstanceConfigsResp response) { + @Nullable RegionInstanceGroupManagersListInstanceConfigsResp response) { super(context, response); } @@ -5136,18 +5149,20 @@ private static ListPerInstanceConfigsPage createEmptyPage() { @Override protected ListPerInstanceConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstanceConfigsResp, PerInstanceConfig> context, - RegionInstanceGroupManagersListInstanceConfigsResp response) { + @Nullable RegionInstanceGroupManagersListInstanceConfigsResp response) { return new ListPerInstanceConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPerInstanceConfigsRegionInstanceGroupManagersRequest, RegionInstanceGroupManagersListInstanceConfigsResp, PerInstanceConfig> @@ -5166,7 +5181,7 @@ public static class ListPerInstanceConfigsFixedSizeCollection ListPerInstanceConfigsFixedSizeCollection> { private ListPerInstanceConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5176,7 +5191,7 @@ private static ListPerInstanceConfigsFixedSizeCollection createEmptyCollection() @Override protected ListPerInstanceConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPerInstanceConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java index 01ed54351250..bcce7cbbac5c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -473,7 +474,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstanceGroupManagersStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsClient.java index 60a654dce33f..3a384ecf4c27 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsClient.java @@ -34,6 +34,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. /** @@ -207,7 +208,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstanceGroupsClient implements BackgroundResource { - private final RegionInstanceGroupsSettings settings; + private final @Nullable RegionInstanceGroupsSettings settings; private final RegionInstanceGroupsStub stub; /** Constructs an instance of RegionInstanceGroupsClient with default settings. */ @@ -247,7 +248,7 @@ protected RegionInstanceGroupsClient(RegionInstanceGroupsStub stub) { this.stub = stub; } - public final RegionInstanceGroupsSettings getSettings() { + public final @Nullable RegionInstanceGroupsSettings getSettings() { return settings; } @@ -1020,9 +1021,10 @@ public static class ListPage ListRegionInstanceGroupsRequest, RegionInstanceGroupList, InstanceGroup, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - RegionInstanceGroupList response) { + @Nullable RegionInstanceGroupList response) { super(context, response); } @@ -1032,15 +1034,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - RegionInstanceGroupList response) { + @Nullable RegionInstanceGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1055,7 +1059,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1064,7 +1068,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1105,12 +1110,13 @@ public static class ListInstancesPage ListInstancesPage> { private ListInstancesPage( - PageContext< + @Nullable + PageContext< ListInstancesRegionInstanceGroupsRequest, RegionInstanceGroupsListInstances, InstanceWithNamedPorts> context, - RegionInstanceGroupsListInstances response) { + @Nullable RegionInstanceGroupsListInstances response) { super(context, response); } @@ -1120,18 +1126,20 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext< + @Nullable + PageContext< ListInstancesRegionInstanceGroupsRequest, RegionInstanceGroupsListInstances, InstanceWithNamedPorts> context, - RegionInstanceGroupsListInstances response) { + @Nullable RegionInstanceGroupsListInstances response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstancesRegionInstanceGroupsRequest, RegionInstanceGroupsListInstances, InstanceWithNamedPorts> @@ -1149,7 +1157,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1159,7 +1168,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSettings.java index cfe1e0a46c35..c3e7bf2c534d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -222,7 +223,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstanceGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesClient.java index c8bec4cc62d2..5305c247e83f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesClient.java @@ -34,6 +34,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. /** @@ -190,7 +191,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstanceTemplatesClient implements BackgroundResource { - private final RegionInstanceTemplatesSettings settings; + private final @Nullable RegionInstanceTemplatesSettings settings; private final RegionInstanceTemplatesStub stub; /** Constructs an instance of RegionInstanceTemplatesClient with default settings. */ @@ -231,7 +232,7 @@ protected RegionInstanceTemplatesClient(RegionInstanceTemplatesStub stub) { this.stub = stub; } - public final RegionInstanceTemplatesSettings getSettings() { + public final @Nullable RegionInstanceTemplatesSettings getSettings() { return settings; } @@ -837,9 +838,10 @@ public static class ListPage ListRegionInstanceTemplatesRequest, InstanceTemplateList, InstanceTemplate, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - InstanceTemplateList response) { + @Nullable InstanceTemplateList response) { super(context, response); } @@ -849,15 +851,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - InstanceTemplateList response) { + @Nullable InstanceTemplateList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -872,7 +876,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -881,7 +885,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesSettings.java index 90a2dad1615f..16d2def28098 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceTemplatesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -196,7 +197,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstanceTemplatesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesClient.java index 9a0fa737291b..6b2915cb501a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesClient.java @@ -26,6 +26,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. /** @@ -128,7 +129,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstancesClient implements BackgroundResource { - private final RegionInstancesSettings settings; + private final @Nullable RegionInstancesSettings settings; private final RegionInstancesStub stub; /** Constructs an instance of RegionInstancesClient with default settings. */ @@ -168,7 +169,7 @@ protected RegionInstancesClient(RegionInstancesStub stub) { this.stub = stub; } - public final RegionInstancesSettings getSettings() { + public final @Nullable RegionInstancesSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesSettings.java index 47304ec5d6cc..e3a3b2bd14ef 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstancesSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstancesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java index bf1e7c5661dd..ef5c86a558a4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsClient.java @@ -34,6 +34,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstantSnapshotGroupsClient implements BackgroundResource { - private final RegionInstantSnapshotGroupsSettings settings; + private final @Nullable RegionInstantSnapshotGroupsSettings settings; private final RegionInstantSnapshotGroupsStub stub; /** Constructs an instance of RegionInstantSnapshotGroupsClient with default settings. */ @@ -287,7 +288,7 @@ protected RegionInstantSnapshotGroupsClient(RegionInstantSnapshotGroupsStub stub this.stub = stub; } - public final RegionInstantSnapshotGroupsSettings getSettings() { + public final @Nullable RegionInstantSnapshotGroupsSettings getSettings() { return settings; } @@ -1225,12 +1226,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> context, - ListInstantSnapshotGroups response) { + @Nullable ListInstantSnapshotGroups response) { super(context, response); } @@ -1240,18 +1242,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> context, - ListInstantSnapshotGroups response) { + @Nullable ListInstantSnapshotGroups response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionInstantSnapshotGroupsRequest, ListInstantSnapshotGroups, InstantSnapshotGroup> @@ -1269,7 +1273,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1278,7 +1282,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java index 22369bbb2546..4df7adbc1976 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotGroupsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstantSnapshotGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClient.java index 0243209af588..3cc40763e3e7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsClient.java @@ -34,6 +34,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. /** @@ -263,7 +264,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionInstantSnapshotsClient implements BackgroundResource { - private final RegionInstantSnapshotsSettings settings; + private final @Nullable RegionInstantSnapshotsSettings settings; private final RegionInstantSnapshotsStub stub; /** Constructs an instance of RegionInstantSnapshotsClient with default settings. */ @@ -304,7 +305,7 @@ protected RegionInstantSnapshotsClient(RegionInstantSnapshotsStub stub) { this.stub = stub; } - public final RegionInstantSnapshotsSettings getSettings() { + public final @Nullable RegionInstantSnapshotsSettings getSettings() { return settings; } @@ -1395,9 +1396,10 @@ public static class ListPage ListRegionInstantSnapshotsRequest, InstantSnapshotList, InstantSnapshot, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - InstantSnapshotList response) { + @Nullable InstantSnapshotList response) { super(context, response); } @@ -1407,15 +1409,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - InstantSnapshotList response) { + @Nullable InstantSnapshotList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1430,7 +1434,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1439,7 +1443,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsSettings.java index eabcb1cda84c..fb5180f707a0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstantSnapshotsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionInstantSnapshotsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsClient.java index 4fdb62bb2ba2..8e0fabd72c43 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsClient.java @@ -34,6 +34,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. /** @@ -249,7 +250,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionNetworkEndpointGroupsClient implements BackgroundResource { - private final RegionNetworkEndpointGroupsSettings settings; + private final @Nullable RegionNetworkEndpointGroupsSettings settings; private final RegionNetworkEndpointGroupsStub stub; /** Constructs an instance of RegionNetworkEndpointGroupsClient with default settings. */ @@ -292,7 +293,7 @@ protected RegionNetworkEndpointGroupsClient(RegionNetworkEndpointGroupsStub stub this.stub = stub; } - public final RegionNetworkEndpointGroupsSettings getSettings() { + public final @Nullable RegionNetworkEndpointGroupsSettings getSettings() { return settings; } @@ -1448,12 +1449,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { super(context, response); } @@ -1463,18 +1465,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> context, - NetworkEndpointGroupList response) { + @Nullable NetworkEndpointGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupList, NetworkEndpointGroup> @@ -1492,7 +1496,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1501,7 +1505,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1542,12 +1547,13 @@ public static class ListNetworkEndpointsPage ListNetworkEndpointsPage> { private ListNetworkEndpointsPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { super(context, response); } @@ -1557,18 +1563,20 @@ private static ListNetworkEndpointsPage createEmptyPage() { @Override protected ListNetworkEndpointsPage createPage( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> context, - NetworkEndpointGroupsListNetworkEndpoints response) { + @Nullable NetworkEndpointGroupsListNetworkEndpoints response) { return new ListNetworkEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNetworkEndpointsRegionNetworkEndpointGroupsRequest, NetworkEndpointGroupsListNetworkEndpoints, NetworkEndpointWithHealthStatus> @@ -1587,7 +1595,7 @@ public static class ListNetworkEndpointsFixedSizeCollection ListNetworkEndpointsFixedSizeCollection> { private ListNetworkEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1597,7 +1605,7 @@ private static ListNetworkEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListNetworkEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworkEndpointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsSettings.java index 8b9769278020..977ca2d3d7ea 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkEndpointGroupsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionNetworkEndpointGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesClient.java index 3a27c4893528..85d06febd346 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesClient.java @@ -34,6 +34,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. /** @@ -431,7 +432,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionNetworkFirewallPoliciesClient implements BackgroundResource { - private final RegionNetworkFirewallPoliciesSettings settings; + private final @Nullable RegionNetworkFirewallPoliciesSettings settings; private final RegionNetworkFirewallPoliciesStub stub; /** Constructs an instance of RegionNetworkFirewallPoliciesClient with default settings. */ @@ -475,7 +476,7 @@ protected RegionNetworkFirewallPoliciesClient(RegionNetworkFirewallPoliciesStub this.stub = stub; } - public final RegionNetworkFirewallPoliciesSettings getSettings() { + public final @Nullable RegionNetworkFirewallPoliciesSettings getSettings() { return settings; } @@ -2750,9 +2751,11 @@ public static class ListPage ListRegionNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy, ListPage> { private ListPage( - PageContext + @Nullable + PageContext< + ListRegionNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy> context, - FirewallPolicyList response) { + @Nullable FirewallPolicyList response) { super(context, response); } @@ -2762,15 +2765,19 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext< + ListRegionNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy> context, - FirewallPolicyList response) { + @Nullable FirewallPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListRegionNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2785,7 +2792,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2794,7 +2801,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesSettings.java index 1ccc201c7526..cee3f2cf1fad 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNetworkFirewallPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -331,7 +332,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -352,7 +353,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionNetworkFirewallPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsClient.java index 6c0e3b7967ae..1821daef7434 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsClient.java @@ -35,6 +35,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. /** @@ -228,7 +229,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionNotificationEndpointsClient implements BackgroundResource { - private final RegionNotificationEndpointsSettings settings; + private final @Nullable RegionNotificationEndpointsSettings settings; private final RegionNotificationEndpointsStub stub; /** Constructs an instance of RegionNotificationEndpointsClient with default settings. */ @@ -271,7 +272,7 @@ protected RegionNotificationEndpointsClient(RegionNotificationEndpointsStub stub this.stub = stub; } - public final RegionNotificationEndpointsSettings getSettings() { + public final @Nullable RegionNotificationEndpointsSettings getSettings() { return settings; } @@ -1159,12 +1160,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionNotificationEndpointsRequest, NotificationEndpointAggregatedList, Map.Entry> context, - NotificationEndpointAggregatedList response) { + @Nullable NotificationEndpointAggregatedList response) { super(context, response); } @@ -1174,18 +1176,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRegionNotificationEndpointsRequest, NotificationEndpointAggregatedList, Map.Entry> context, - NotificationEndpointAggregatedList response) { + @Nullable NotificationEndpointAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRegionNotificationEndpointsRequest, NotificationEndpointAggregatedList, Map.Entry> @@ -1203,7 +1207,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1213,7 +1218,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1252,12 +1257,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListRegionNotificationEndpointsRequest, NotificationEndpointList, NotificationEndpoint> context, - NotificationEndpointList response) { + @Nullable NotificationEndpointList response) { super(context, response); } @@ -1267,18 +1273,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListRegionNotificationEndpointsRequest, NotificationEndpointList, NotificationEndpoint> context, - NotificationEndpointList response) { + @Nullable NotificationEndpointList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionNotificationEndpointsRequest, NotificationEndpointList, NotificationEndpoint> @@ -1296,7 +1304,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1305,7 +1313,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java index b626862cb61a..5a99fb311a83 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionNotificationEndpointsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionNotificationEndpointsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsClient.java index 9e9c4ac93c2c..c5acf10bc8ce 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsClient.java @@ -32,6 +32,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionOperationsClient implements BackgroundResource { - private final RegionOperationsSettings settings; + private final @Nullable RegionOperationsSettings settings; private final RegionOperationsStub stub; /** Constructs an instance of RegionOperationsClient with default settings. */ @@ -227,7 +228,7 @@ protected RegionOperationsClient(RegionOperationsStub stub) { this.stub = stub; } - public final RegionOperationsSettings getSettings() { + public final @Nullable RegionOperationsSettings getSettings() { return settings; } @@ -751,8 +752,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { super(context, response); } @@ -762,14 +763,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -783,7 +784,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -792,7 +793,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsSettings.java index b54a90f450fd..c3fe3fbaf590 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionOperationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java index ea6281c1f132..ffcab0d4755d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesClient.java @@ -34,6 +34,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. /** @@ -302,7 +303,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionSecurityPoliciesClient implements BackgroundResource { - private final RegionSecurityPoliciesSettings settings; + private final @Nullable RegionSecurityPoliciesSettings settings; private final RegionSecurityPoliciesStub stub; /** Constructs an instance of RegionSecurityPoliciesClient with default settings. */ @@ -343,7 +344,7 @@ protected RegionSecurityPoliciesClient(RegionSecurityPoliciesStub stub) { this.stub = stub; } - public final RegionSecurityPoliciesSettings getSettings() { + public final @Nullable RegionSecurityPoliciesSettings getSettings() { return settings; } @@ -1789,8 +1790,9 @@ public static class ListPage ListRegionSecurityPoliciesRequest, SecurityPolicyList, SecurityPolicy, ListPage> { private ListPage( - PageContext context, - SecurityPolicyList response) { + @Nullable PageContext + context, + @Nullable SecurityPolicyList response) { super(context, response); } @@ -1800,14 +1802,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SecurityPolicyList response) { + @Nullable PageContext + context, + @Nullable SecurityPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1821,7 +1825,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1830,7 +1834,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java index 10778575ff68..87cfebc7cf49 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSecurityPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -255,7 +256,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -276,7 +277,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionSecurityPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java index b1318db15f87..39e2831d5c7f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsClient.java @@ -26,6 +26,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. /** @@ -142,7 +143,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionSnapshotSettingsClient implements BackgroundResource { - private final RegionSnapshotSettingsSettings settings; + private final @Nullable RegionSnapshotSettingsSettings settings; private final RegionSnapshotSettingsStub stub; /** Constructs an instance of RegionSnapshotSettingsClient with default settings. */ @@ -183,7 +184,7 @@ protected RegionSnapshotSettingsClient(RegionSnapshotSettingsStub stub) { this.stub = stub; } - public final RegionSnapshotSettingsSettings getSettings() { + public final @Nullable RegionSnapshotSettingsSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java index e4136fbdd0f5..b0c60d158c3c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotSettingsSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionSnapshotSettingsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java index 7d635e00af37..fe8d2a310c95 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsClient.java @@ -34,6 +34,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. /** @@ -281,7 +282,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionSnapshotsClient implements BackgroundResource { - private final RegionSnapshotsSettings settings; + private final @Nullable RegionSnapshotsSettings settings; private final RegionSnapshotsStub stub; /** Constructs an instance of RegionSnapshotsClient with default settings. */ @@ -321,7 +322,7 @@ protected RegionSnapshotsClient(RegionSnapshotsStub stub) { this.stub = stub; } - public final RegionSnapshotsSettings getSettings() { + public final @Nullable RegionSnapshotsSettings getSettings() { return settings; } @@ -1509,8 +1510,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - SnapshotList response) { + @Nullable PageContext context, + @Nullable SnapshotList response) { super(context, response); } @@ -1520,14 +1521,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SnapshotList response) { + @Nullable PageContext context, + @Nullable SnapshotList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1537,7 +1538,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRegionSnapshotsRequest, SnapshotList, Snapshot, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1546,7 +1547,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java index 341337f04a1f..a074024c3508 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSnapshotsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -231,7 +232,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionSnapshotsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesClient.java index ed66495f486b..0ed10ae1fc2d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesClient.java @@ -34,6 +34,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. /** @@ -189,7 +190,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionSslCertificatesClient implements BackgroundResource { - private final RegionSslCertificatesSettings settings; + private final @Nullable RegionSslCertificatesSettings settings; private final RegionSslCertificatesStub stub; /** Constructs an instance of RegionSslCertificatesClient with default settings. */ @@ -229,7 +230,7 @@ protected RegionSslCertificatesClient(RegionSslCertificatesStub stub) { this.stub = stub; } - public final RegionSslCertificatesSettings getSettings() { + public final @Nullable RegionSslCertificatesSettings getSettings() { return settings; } @@ -826,8 +827,9 @@ public static class ListPage ListRegionSslCertificatesRequest, SslCertificateList, SslCertificate, ListPage> { private ListPage( - PageContext context, - SslCertificateList response) { + @Nullable PageContext + context, + @Nullable SslCertificateList response) { super(context, response); } @@ -837,14 +839,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SslCertificateList response) { + @Nullable PageContext + context, + @Nullable SslCertificateList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -858,7 +862,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -867,7 +871,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesSettings.java index 11f90f390a77..1c8d4c6d1131 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslCertificatesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionSslCertificatesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesClient.java index 17ea31102a13..1a4cc4744d4e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesClient.java @@ -34,6 +34,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionSslPoliciesClient implements BackgroundResource { - private final RegionSslPoliciesSettings settings; + private final @Nullable RegionSslPoliciesSettings settings; private final RegionSslPoliciesStub stub; /** Constructs an instance of RegionSslPoliciesClient with default settings. */ @@ -265,7 +266,7 @@ protected RegionSslPoliciesClient(RegionSslPoliciesStub stub) { this.stub = stub; } - public final RegionSslPoliciesSettings getSettings() { + public final @Nullable RegionSslPoliciesSettings getSettings() { return settings; } @@ -1082,8 +1083,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - SslPoliciesList response) { + @Nullable PageContext context, + @Nullable SslPoliciesList response) { super(context, response); } @@ -1093,14 +1094,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SslPoliciesList response) { + @Nullable PageContext context, + @Nullable SslPoliciesList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1114,7 +1115,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1123,7 +1124,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesSettings.java index 61b0c153e7a4..f513260f73a7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSslPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -211,7 +212,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionSslPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesClient.java index 2250a6d3e64d..d33123de2350 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesClient.java @@ -34,6 +34,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. /** @@ -209,7 +210,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionTargetHttpProxiesClient implements BackgroundResource { - private final RegionTargetHttpProxiesSettings settings; + private final @Nullable RegionTargetHttpProxiesSettings settings; private final RegionTargetHttpProxiesStub stub; /** Constructs an instance of RegionTargetHttpProxiesClient with default settings. */ @@ -250,7 +251,7 @@ protected RegionTargetHttpProxiesClient(RegionTargetHttpProxiesStub stub) { this.stub = stub; } - public final RegionTargetHttpProxiesSettings getSettings() { + public final @Nullable RegionTargetHttpProxiesSettings getSettings() { return settings; } @@ -997,9 +998,10 @@ public static class ListPage ListRegionTargetHttpProxiesRequest, TargetHttpProxyList, TargetHttpProxy, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - TargetHttpProxyList response) { + @Nullable TargetHttpProxyList response) { super(context, response); } @@ -1009,15 +1011,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - TargetHttpProxyList response) { + @Nullable TargetHttpProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1032,7 +1036,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1041,7 +1045,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesSettings.java index 896b73f0bda7..a5aca5f0a677 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpProxiesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionTargetHttpProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesClient.java index 7534e764a466..2990164dfeed 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesClient.java @@ -34,6 +34,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. /** @@ -247,7 +248,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionTargetHttpsProxiesClient implements BackgroundResource { - private final RegionTargetHttpsProxiesSettings settings; + private final @Nullable RegionTargetHttpsProxiesSettings settings; private final RegionTargetHttpsProxiesStub stub; /** Constructs an instance of RegionTargetHttpsProxiesClient with default settings. */ @@ -289,7 +290,7 @@ protected RegionTargetHttpsProxiesClient(RegionTargetHttpsProxiesStub stub) { this.stub = stub; } - public final RegionTargetHttpsProxiesSettings getSettings() { + public final @Nullable RegionTargetHttpsProxiesSettings getSettings() { return settings; } @@ -1352,9 +1353,10 @@ public static class ListPage ListRegionTargetHttpsProxiesRequest, TargetHttpsProxyList, TargetHttpsProxy, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - TargetHttpsProxyList response) { + @Nullable TargetHttpsProxyList response) { super(context, response); } @@ -1364,15 +1366,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - TargetHttpsProxyList response) { + @Nullable TargetHttpsProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1387,7 +1391,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1396,7 +1400,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesSettings.java index 2df1d2a95b35..b0474e1420f2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetHttpsProxiesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionTargetHttpsProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesClient.java index 35a988225baa..2622b3604bfa 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesClient.java @@ -34,6 +34,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. /** @@ -189,7 +190,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionTargetTcpProxiesClient implements BackgroundResource { - private final RegionTargetTcpProxiesSettings settings; + private final @Nullable RegionTargetTcpProxiesSettings settings; private final RegionTargetTcpProxiesStub stub; /** Constructs an instance of RegionTargetTcpProxiesClient with default settings. */ @@ -230,7 +231,7 @@ protected RegionTargetTcpProxiesClient(RegionTargetTcpProxiesStub stub) { this.stub = stub; } - public final RegionTargetTcpProxiesSettings getSettings() { + public final @Nullable RegionTargetTcpProxiesSettings getSettings() { return settings; } @@ -827,8 +828,9 @@ public static class ListPage ListRegionTargetTcpProxiesRequest, TargetTcpProxyList, TargetTcpProxy, ListPage> { private ListPage( - PageContext context, - TargetTcpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetTcpProxyList response) { super(context, response); } @@ -838,14 +840,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetTcpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetTcpProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -859,7 +863,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -868,7 +872,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesSettings.java index d5dd64619e4d..cf9372ee4dc9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionTargetTcpProxiesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionTargetTcpProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsClient.java index 3af1a2828a5b..4b81cc45a39c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsClient.java @@ -34,6 +34,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. /** @@ -241,7 +242,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionUrlMapsClient implements BackgroundResource { - private final RegionUrlMapsSettings settings; + private final @Nullable RegionUrlMapsSettings settings; private final RegionUrlMapsStub stub; /** Constructs an instance of RegionUrlMapsClient with default settings. */ @@ -281,7 +282,7 @@ protected RegionUrlMapsClient(RegionUrlMapsStub stub) { this.stub = stub; } - public final RegionUrlMapsSettings getSettings() { + public final @Nullable RegionUrlMapsSettings getSettings() { return settings; } @@ -1233,7 +1234,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, UrlMapList response) { + @Nullable PageContext context, + @Nullable UrlMapList response) { super(context, response); } @@ -1243,13 +1245,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, UrlMapList response) { + @Nullable PageContext context, + @Nullable UrlMapList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1259,7 +1262,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRegionUrlMapsRequest, UrlMapList, UrlMap, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1268,7 +1271,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsSettings.java index 71edf3e00fb2..6e650263a2dd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionUrlMapsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionUrlMapsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesClient.java index 0d1b6f7a54a7..2834d5f319b8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesClient.java @@ -32,6 +32,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. /** @@ -128,7 +129,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionZonesClient implements BackgroundResource { - private final RegionZonesSettings settings; + private final @Nullable RegionZonesSettings settings; private final RegionZonesStub stub; /** Constructs an instance of RegionZonesClient with default settings. */ @@ -167,7 +168,7 @@ protected RegionZonesClient(RegionZonesStub stub) { this.stub = stub; } - public final RegionZonesSettings getSettings() { + public final @Nullable RegionZonesSettings getSettings() { return settings; } @@ -375,7 +376,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, ZoneList response) { + @Nullable PageContext context, + @Nullable ZoneList response) { super(context, response); } @@ -385,13 +387,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, ZoneList response) { + @Nullable PageContext context, + @Nullable ZoneList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -401,7 +404,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRegionZonesRequest, ZoneList, Zone, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -410,7 +413,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesSettings.java index 2fa1196fbb3c..5bc5d8c2ad87 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionZonesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -136,7 +137,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -156,7 +157,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionZonesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsClient.java index 59d3d387baed..23dcf2f9f85b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsClient.java @@ -32,6 +32,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. /** @@ -147,7 +148,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionsClient implements BackgroundResource { - private final RegionsSettings settings; + private final @Nullable RegionsSettings settings; private final RegionsStub stub; /** Constructs an instance of RegionsClient with default settings. */ @@ -185,7 +186,7 @@ protected RegionsClient(RegionsStub stub) { this.stub = stub; } - public final RegionsSettings getSettings() { + public final @Nullable RegionsSettings getSettings() { return settings; } @@ -560,7 +561,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, RegionList response) { + @Nullable PageContext context, + @Nullable RegionList response) { super(context, response); } @@ -570,13 +572,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, RegionList response) { + @Nullable PageContext context, + @Nullable RegionList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -586,7 +589,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRegionsRequest, RegionList, Region, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -595,7 +598,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsSettings.java index 838301a78abf..d54cacd96166 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -141,7 +142,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -161,7 +162,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksClient.java index 02e28d890e94..bc382cee60ce 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksClient.java @@ -34,6 +34,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReservationBlocksClient implements BackgroundResource { - private final ReservationBlocksSettings settings; + private final @Nullable ReservationBlocksSettings settings; private final ReservationBlocksStub stub; /** Constructs an instance of ReservationBlocksClient with default settings. */ @@ -265,7 +266,7 @@ protected ReservationBlocksClient(ReservationBlocksStub stub) { this.stub = stub; } - public final ReservationBlocksSettings getSettings() { + public final @Nullable ReservationBlocksSettings getSettings() { return settings; } @@ -1096,9 +1097,11 @@ public static class ListPage ListReservationBlocksRequest, ReservationBlocksListResponse, ReservationBlock, ListPage> { private ListPage( - PageContext + @Nullable + PageContext< + ListReservationBlocksRequest, ReservationBlocksListResponse, ReservationBlock> context, - ReservationBlocksListResponse response) { + @Nullable ReservationBlocksListResponse response) { super(context, response); } @@ -1108,15 +1111,19 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext< + ListReservationBlocksRequest, ReservationBlocksListResponse, ReservationBlock> context, - ReservationBlocksListResponse response) { + @Nullable ReservationBlocksListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListReservationBlocksRequest, ReservationBlocksListResponse, ReservationBlock> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1131,7 +1138,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1140,7 +1147,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksSettings.java index 30b76e44e660..cb43cd677225 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationBlocksSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReservationBlocksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsClient.java index 905ef7b36c23..3cae4b0ef591 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsClient.java @@ -34,6 +34,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. /** @@ -190,7 +191,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReservationSlotsClient implements BackgroundResource { - private final ReservationSlotsSettings settings; + private final @Nullable ReservationSlotsSettings settings; private final ReservationSlotsStub stub; /** Constructs an instance of ReservationSlotsClient with default settings. */ @@ -230,7 +231,7 @@ protected ReservationSlotsClient(ReservationSlotsStub stub) { this.stub = stub; } - public final ReservationSlotsSettings getSettings() { + public final @Nullable ReservationSlotsSettings getSettings() { return settings; } @@ -866,9 +867,10 @@ public static class ListPage ListReservationSlotsRequest, ReservationSlotsListResponse, ReservationSlot, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - ReservationSlotsListResponse response) { + @Nullable ReservationSlotsListResponse response) { super(context, response); } @@ -878,15 +880,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - ReservationSlotsListResponse response) { + @Nullable ReservationSlotsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -901,7 +905,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -910,7 +914,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsSettings.java index a05be3d08069..f5721562ffe8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSlotsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReservationSlotsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java index 2f8186a6da85..83b0ccceb977 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksClient.java @@ -34,6 +34,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. /** @@ -264,7 +265,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReservationSubBlocksClient implements BackgroundResource { - private final ReservationSubBlocksSettings settings; + private final @Nullable ReservationSubBlocksSettings settings; private final ReservationSubBlocksStub stub; /** Constructs an instance of ReservationSubBlocksClient with default settings. */ @@ -304,7 +305,7 @@ protected ReservationSubBlocksClient(ReservationSubBlocksStub stub) { this.stub = stub; } - public final ReservationSubBlocksSettings getSettings() { + public final @Nullable ReservationSubBlocksSettings getSettings() { return settings; } @@ -1477,12 +1478,13 @@ public static class ListPage ListPage> { private ListPage( - PageContext< + @Nullable + PageContext< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ReservationSubBlock> context, - ReservationSubBlocksListResponse response) { + @Nullable ReservationSubBlocksListResponse response) { super(context, response); } @@ -1492,18 +1494,20 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext< + @Nullable + PageContext< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ReservationSubBlock> context, - ReservationSubBlocksListResponse response) { + @Nullable ReservationSubBlocksListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListReservationSubBlocksRequest, ReservationSubBlocksListResponse, ReservationSubBlock> @@ -1521,7 +1525,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1530,7 +1534,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java index 8b73b9c72184..d67ae9fb4d88 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationSubBlocksSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReservationSubBlocksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsClient.java index 8a41197e8f94..3c9339cdb788 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsClient.java @@ -35,6 +35,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReservationsClient implements BackgroundResource { - private final ReservationsSettings settings; + private final @Nullable ReservationsSettings settings; private final ReservationsStub stub; /** Constructs an instance of ReservationsClient with default settings. */ @@ -356,7 +357,7 @@ protected ReservationsClient(ReservationsStub stub) { this.stub = stub; } - public final ReservationsSettings getSettings() { + public final @Nullable ReservationsSettings getSettings() { return settings; } @@ -1845,12 +1846,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListReservationsRequest, ReservationAggregatedList, Map.Entry> context, - ReservationAggregatedList response) { + @Nullable ReservationAggregatedList response) { super(context, response); } @@ -1860,18 +1862,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListReservationsRequest, ReservationAggregatedList, Map.Entry> context, - ReservationAggregatedList response) { + @Nullable ReservationAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListReservationsRequest, ReservationAggregatedList, Map.Entry> @@ -1889,7 +1893,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1899,7 +1904,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1930,8 +1935,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - ReservationList response) { + @Nullable PageContext context, + @Nullable ReservationList response) { super(context, response); } @@ -1941,14 +1946,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - ReservationList response) { + @Nullable PageContext context, + @Nullable ReservationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1962,7 +1967,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1971,7 +1976,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsSettings.java index 7cdae0f50075..8e0e8f938ecf 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ReservationsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReservationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesClient.java index 15486cde2730..6ec22c3e53a3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesClient.java @@ -35,6 +35,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. /** @@ -282,7 +283,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ResourcePoliciesClient implements BackgroundResource { - private final ResourcePoliciesSettings settings; + private final @Nullable ResourcePoliciesSettings settings; private final ResourcePoliciesStub stub; /** Constructs an instance of ResourcePoliciesClient with default settings. */ @@ -322,7 +323,7 @@ protected ResourcePoliciesClient(ResourcePoliciesStub stub) { this.stub = stub; } - public final ResourcePoliciesSettings getSettings() { + public final @Nullable ResourcePoliciesSettings getSettings() { return settings; } @@ -1521,12 +1522,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListResourcePoliciesRequest, ResourcePolicyAggregatedList, Map.Entry> context, - ResourcePolicyAggregatedList response) { + @Nullable ResourcePolicyAggregatedList response) { super(context, response); } @@ -1536,18 +1538,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListResourcePoliciesRequest, ResourcePolicyAggregatedList, Map.Entry> context, - ResourcePolicyAggregatedList response) { + @Nullable ResourcePolicyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListResourcePoliciesRequest, ResourcePolicyAggregatedList, Map.Entry> @@ -1565,7 +1569,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1575,7 +1580,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1607,8 +1612,9 @@ public static class ListPage ListResourcePoliciesRequest, ResourcePolicyList, ResourcePolicy, ListPage> { private ListPage( - PageContext context, - ResourcePolicyList response) { + @Nullable PageContext + context, + @Nullable ResourcePolicyList response) { super(context, response); } @@ -1618,14 +1624,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - ResourcePolicyList response) { + @Nullable PageContext + context, + @Nullable ResourcePolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1639,7 +1647,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1648,7 +1656,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesSettings.java index c174678714b7..c49ac07cb930 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourcePoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -250,7 +251,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ResourcePoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansClient.java index d26bd9f0bb8d..7c8188269dd9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansClient.java @@ -34,6 +34,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. /** @@ -184,7 +185,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RolloutPlansClient implements BackgroundResource { - private final RolloutPlansSettings settings; + private final @Nullable RolloutPlansSettings settings; private final RolloutPlansStub stub; /** Constructs an instance of RolloutPlansClient with default settings. */ @@ -223,7 +224,7 @@ protected RolloutPlansClient(RolloutPlansStub stub) { this.stub = stub; } - public final RolloutPlansSettings getSettings() { + public final @Nullable RolloutPlansSettings getSettings() { return settings; } @@ -759,8 +760,9 @@ public static class ListPage ListRolloutPlansRequest, RolloutPlansListResponse, RolloutPlan, ListPage> { private ListPage( - PageContext context, - RolloutPlansListResponse response) { + @Nullable PageContext + context, + @Nullable RolloutPlansListResponse response) { super(context, response); } @@ -770,14 +772,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - RolloutPlansListResponse response) { + @Nullable PageContext + context, + @Nullable RolloutPlansListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -791,7 +795,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -800,7 +804,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansSettings.java index 7b5e3b25c8f9..797f61ef3169 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutPlansSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -191,7 +192,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -211,7 +212,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RolloutPlansStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsClient.java index 297e46f9a938..4ac36cfea2b3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsClient.java @@ -34,6 +34,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. /** @@ -184,7 +185,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RolloutsClient implements BackgroundResource { - private final RolloutsSettings settings; + private final @Nullable RolloutsSettings settings; private final RolloutsStub stub; /** Constructs an instance of RolloutsClient with default settings. */ @@ -222,7 +223,7 @@ protected RolloutsClient(RolloutsStub stub) { this.stub = stub; } - public final RolloutsSettings getSettings() { + public final @Nullable RolloutsSettings getSettings() { return settings; } @@ -747,8 +748,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - RolloutsListResponse response) { + @Nullable PageContext context, + @Nullable RolloutsListResponse response) { super(context, response); } @@ -758,14 +759,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - RolloutsListResponse response) { + @Nullable PageContext context, + @Nullable RolloutsListResponse response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -775,7 +776,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRolloutsRequest, RolloutsListResponse, Rollout, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -784,7 +785,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsSettings.java index 7fca96c6ff08..6753aa7b90f7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RolloutsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -190,7 +191,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RolloutsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersClient.java index d866c19f2691..0dbec045a849 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersClient.java @@ -35,6 +35,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. /** @@ -429,7 +430,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RoutersClient implements BackgroundResource { - private final RoutersSettings settings; + private final @Nullable RoutersSettings settings; private final RoutersStub stub; /** Constructs an instance of RoutersClient with default settings. */ @@ -467,7 +468,7 @@ protected RoutersClient(RoutersStub stub) { this.stub = stub; } - public final RoutersSettings getSettings() { + public final @Nullable RoutersSettings getSettings() { return settings; } @@ -2787,12 +2788,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListRoutersRequest, RouterAggregatedList, Map.Entry> context, - RouterAggregatedList response) { + @Nullable RouterAggregatedList response) { super(context, response); } @@ -2802,18 +2804,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListRoutersRequest, RouterAggregatedList, Map.Entry> context, - RouterAggregatedList response) { + @Nullable RouterAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListRoutersRequest, RouterAggregatedList, Map.Entry> @@ -2831,7 +2835,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2841,7 +2846,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2880,10 +2885,11 @@ public static class GetNatMappingInfoPage GetNatMappingInfoPage> { private GetNatMappingInfoPage( - PageContext< + @Nullable + PageContext< GetNatMappingInfoRoutersRequest, VmEndpointNatMappingsList, VmEndpointNatMappings> context, - VmEndpointNatMappingsList response) { + @Nullable VmEndpointNatMappingsList response) { super(context, response); } @@ -2893,16 +2899,18 @@ private static GetNatMappingInfoPage createEmptyPage() { @Override protected GetNatMappingInfoPage createPage( - PageContext< + @Nullable + PageContext< GetNatMappingInfoRoutersRequest, VmEndpointNatMappingsList, VmEndpointNatMappings> context, - VmEndpointNatMappingsList response) { + @Nullable VmEndpointNatMappingsList response) { return new GetNatMappingInfoPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< GetNatMappingInfoRoutersRequest, VmEndpointNatMappingsList, VmEndpointNatMappings> context, ApiFuture futureResponse) { @@ -2919,7 +2927,7 @@ public static class GetNatMappingInfoFixedSizeCollection GetNatMappingInfoFixedSizeCollection> { private GetNatMappingInfoFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2929,7 +2937,7 @@ private static GetNatMappingInfoFixedSizeCollection createEmptyCollection() { @Override protected GetNatMappingInfoFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetNatMappingInfoFixedSizeCollection(pages, collectionSize); } } @@ -2956,7 +2964,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, RouterList response) { + @Nullable PageContext context, + @Nullable RouterList response) { super(context, response); } @@ -2966,13 +2975,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, RouterList response) { + @Nullable PageContext context, + @Nullable RouterList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2982,7 +2992,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRoutersRequest, RouterList, Router, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2991,7 +3001,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -3025,8 +3036,8 @@ public static class ListBgpRoutesPage ListBgpRoutesRoutersRequest, RoutersListBgpRoutes, BgpRoute, ListBgpRoutesPage> { private ListBgpRoutesPage( - PageContext context, - RoutersListBgpRoutes response) { + @Nullable PageContext context, + @Nullable RoutersListBgpRoutes response) { super(context, response); } @@ -3036,14 +3047,14 @@ private static ListBgpRoutesPage createEmptyPage() { @Override protected ListBgpRoutesPage createPage( - PageContext context, - RoutersListBgpRoutes response) { + @Nullable PageContext context, + @Nullable RoutersListBgpRoutes response) { return new ListBgpRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3057,7 +3068,8 @@ public static class ListBgpRoutesFixedSizeCollection ListBgpRoutesPage, ListBgpRoutesFixedSizeCollection> { - private ListBgpRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListBgpRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3067,7 +3079,7 @@ private static ListBgpRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListBgpRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBgpRoutesFixedSizeCollection(pages, collectionSize); } } @@ -3104,8 +3116,10 @@ public static class ListRoutePoliciesPage ListRoutePoliciesPage> { private ListRoutePoliciesPage( - PageContext context, - RoutersListRoutePolicies response) { + @Nullable + PageContext + context, + @Nullable RoutersListRoutePolicies response) { super(context, response); } @@ -3115,14 +3129,18 @@ private static ListRoutePoliciesPage createEmptyPage() { @Override protected ListRoutePoliciesPage createPage( - PageContext context, - RoutersListRoutePolicies response) { + @Nullable + PageContext + context, + @Nullable RoutersListRoutePolicies response) { return new ListRoutePoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3137,7 +3155,7 @@ public static class ListRoutePoliciesFixedSizeCollection ListRoutePoliciesFixedSizeCollection> { private ListRoutePoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3147,7 +3165,7 @@ private static ListRoutePoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListRoutePoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutePoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersSettings.java index 5a6d418aa7de..bbf97f1c7139 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -299,7 +300,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -319,7 +320,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RoutersStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesClient.java index d6d05536882d..0aeab5292e25 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesClient.java @@ -34,6 +34,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. /** @@ -201,7 +202,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RoutesClient implements BackgroundResource { - private final RoutesSettings settings; + private final @Nullable RoutesSettings settings; private final RoutesStub stub; /** Constructs an instance of RoutesClient with default settings. */ @@ -239,7 +240,7 @@ protected RoutesClient(RoutesStub stub) { this.stub = stub; } - public final RoutesSettings getSettings() { + public final @Nullable RoutesSettings getSettings() { return settings; } @@ -859,7 +860,9 @@ private ListPagedResponse(ListPage page) { public static class ListPage extends AbstractPage { - private ListPage(PageContext context, RouteList response) { + private ListPage( + @Nullable PageContext context, + @Nullable RouteList response) { super(context, response); } @@ -869,13 +872,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, RouteList response) { + @Nullable PageContext context, + @Nullable RouteList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -885,7 +889,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListRoutesRequest, RouteList, Route, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -894,7 +898,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesSettings.java index 5f21e44a5991..0eb42b09a5e6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RoutesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesClient.java index ef9dc4f67473..c184eeb92d9d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesClient.java @@ -35,6 +35,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. /** @@ -339,7 +340,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityPoliciesClient implements BackgroundResource { - private final SecurityPoliciesSettings settings; + private final @Nullable SecurityPoliciesSettings settings; private final SecurityPoliciesStub stub; /** Constructs an instance of SecurityPoliciesClient with default settings. */ @@ -379,7 +380,7 @@ protected SecurityPoliciesClient(SecurityPoliciesStub stub) { this.stub = stub; } - public final SecurityPoliciesSettings getSettings() { + public final @Nullable SecurityPoliciesSettings getSettings() { return settings; } @@ -1978,12 +1979,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListSecurityPoliciesRequest, SecurityPoliciesAggregatedList, Map.Entry> context, - SecurityPoliciesAggregatedList response) { + @Nullable SecurityPoliciesAggregatedList response) { super(context, response); } @@ -1993,18 +1995,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListSecurityPoliciesRequest, SecurityPoliciesAggregatedList, Map.Entry> context, - SecurityPoliciesAggregatedList response) { + @Nullable SecurityPoliciesAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListSecurityPoliciesRequest, SecurityPoliciesAggregatedList, Map.Entry> @@ -2022,7 +2026,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2032,7 +2037,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2064,8 +2069,9 @@ public static class ListPage ListSecurityPoliciesRequest, SecurityPolicyList, SecurityPolicy, ListPage> { private ListPage( - PageContext context, - SecurityPolicyList response) { + @Nullable PageContext + context, + @Nullable SecurityPolicyList response) { super(context, response); } @@ -2075,14 +2081,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SecurityPolicyList response) { + @Nullable PageContext + context, + @Nullable SecurityPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2096,7 +2104,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2105,7 +2113,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesSettings.java index dc89fb849860..b1f047ce804b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -272,7 +273,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -292,7 +293,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsClient.java index 537b906a96d8..7f629b320dae 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsClient.java @@ -35,6 +35,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. /** @@ -282,7 +283,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceAttachmentsClient implements BackgroundResource { - private final ServiceAttachmentsSettings settings; + private final @Nullable ServiceAttachmentsSettings settings; private final ServiceAttachmentsStub stub; /** Constructs an instance of ServiceAttachmentsClient with default settings. */ @@ -322,7 +323,7 @@ protected ServiceAttachmentsClient(ServiceAttachmentsStub stub) { this.stub = stub; } - public final ServiceAttachmentsSettings getSettings() { + public final @Nullable ServiceAttachmentsSettings getSettings() { return settings; } @@ -1537,12 +1538,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListServiceAttachmentsRequest, ServiceAttachmentAggregatedList, Map.Entry> context, - ServiceAttachmentAggregatedList response) { + @Nullable ServiceAttachmentAggregatedList response) { super(context, response); } @@ -1552,18 +1554,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListServiceAttachmentsRequest, ServiceAttachmentAggregatedList, Map.Entry> context, - ServiceAttachmentAggregatedList response) { + @Nullable ServiceAttachmentAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListServiceAttachmentsRequest, ServiceAttachmentAggregatedList, Map.Entry> @@ -1581,7 +1585,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1591,7 +1596,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1624,9 +1629,10 @@ public static class ListPage ListServiceAttachmentsRequest, ServiceAttachmentList, ServiceAttachment, ListPage> { private ListPage( - PageContext + @Nullable + PageContext context, - ServiceAttachmentList response) { + @Nullable ServiceAttachmentList response) { super(context, response); } @@ -1636,15 +1642,17 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext context, - ServiceAttachmentList response) { + @Nullable ServiceAttachmentList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1659,7 +1667,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1668,7 +1676,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsSettings.java index 4d74ba04e4f2..83158322d059 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAttachmentsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -231,7 +232,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceAttachmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClient.java index 9ab3ff2e5d53..8f4951e91bfe 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceClient.java @@ -26,6 +26,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SnapshotSettingsServiceClient implements BackgroundResource { - private final SnapshotSettingsServiceSettings settings; + private final @Nullable SnapshotSettingsServiceSettings settings; private final SnapshotSettingsServiceStub stub; /** Constructs an instance of SnapshotSettingsServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected SnapshotSettingsServiceClient(SnapshotSettingsServiceStub stub) { this.stub = stub; } - public final SnapshotSettingsServiceSettings getSettings() { + public final @Nullable SnapshotSettingsServiceSettings getSettings() { return settings; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceSettings.java index f7252096fe21..e8ac955cc3e3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettingsServiceSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SnapshotSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java index bdc4a4dbb25e..00430e4b3ec8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsClient.java @@ -34,6 +34,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. /** @@ -277,7 +278,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SnapshotsClient implements BackgroundResource { - private final SnapshotsSettings settings; + private final @Nullable SnapshotsSettings settings; private final SnapshotsStub stub; /** Constructs an instance of SnapshotsClient with default settings. */ @@ -315,7 +316,7 @@ protected SnapshotsClient(SnapshotsStub stub) { this.stub = stub; } - public final SnapshotsSettings getSettings() { + public final @Nullable SnapshotsSettings getSettings() { return settings; } @@ -1433,7 +1434,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, SnapshotList response) { + @Nullable PageContext context, + @Nullable SnapshotList response) { super(context, response); } @@ -1443,13 +1445,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, SnapshotList response) { + @Nullable PageContext context, + @Nullable SnapshotList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1459,7 +1462,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListSnapshotsRequest, SnapshotList, Snapshot, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1468,7 +1471,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java index be7de404e083..36ddf7a5b894 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SnapshotsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesClient.java index a85b965f654a..b7a31c6303b7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesClient.java @@ -35,6 +35,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. /** @@ -208,7 +209,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SslCertificatesClient implements BackgroundResource { - private final SslCertificatesSettings settings; + private final @Nullable SslCertificatesSettings settings; private final SslCertificatesStub stub; /** Constructs an instance of SslCertificatesClient with default settings. */ @@ -248,7 +249,7 @@ protected SslCertificatesClient(SslCertificatesStub stub) { this.stub = stub; } - public final SslCertificatesSettings getSettings() { + public final @Nullable SslCertificatesSettings getSettings() { return settings; } @@ -971,12 +972,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListSslCertificatesRequest, SslCertificateAggregatedList, Map.Entry> context, - SslCertificateAggregatedList response) { + @Nullable SslCertificateAggregatedList response) { super(context, response); } @@ -986,18 +988,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListSslCertificatesRequest, SslCertificateAggregatedList, Map.Entry> context, - SslCertificateAggregatedList response) { + @Nullable SslCertificateAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListSslCertificatesRequest, SslCertificateAggregatedList, Map.Entry> @@ -1015,7 +1019,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1025,7 +1030,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1057,8 +1062,9 @@ public static class ListPage ListSslCertificatesRequest, SslCertificateList, SslCertificate, ListPage> { private ListPage( - PageContext context, - SslCertificateList response) { + @Nullable PageContext + context, + @Nullable SslCertificateList response) { super(context, response); } @@ -1068,14 +1074,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SslCertificateList response) { + @Nullable PageContext + context, + @Nullable SslCertificateList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1089,7 +1097,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1098,7 +1106,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesSettings.java index 8f41719f965c..6a71e39de5dd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificatesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -203,7 +204,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SslCertificatesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesClient.java index 169713f0f3c5..6d1b4b4a4e15 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesClient.java @@ -35,6 +35,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. /** @@ -242,7 +243,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SslPoliciesClient implements BackgroundResource { - private final SslPoliciesSettings settings; + private final @Nullable SslPoliciesSettings settings; private final SslPoliciesStub stub; /** Constructs an instance of SslPoliciesClient with default settings. */ @@ -281,7 +282,7 @@ protected SslPoliciesClient(SslPoliciesStub stub) { this.stub = stub; } - public final SslPoliciesSettings getSettings() { + public final @Nullable SslPoliciesSettings getSettings() { return settings; } @@ -1225,12 +1226,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListSslPoliciesRequest, SslPoliciesAggregatedList, Map.Entry> context, - SslPoliciesAggregatedList response) { + @Nullable SslPoliciesAggregatedList response) { super(context, response); } @@ -1240,18 +1242,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListSslPoliciesRequest, SslPoliciesAggregatedList, Map.Entry> context, - SslPoliciesAggregatedList response) { + @Nullable SslPoliciesAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListSslPoliciesRequest, SslPoliciesAggregatedList, Map.Entry> @@ -1269,7 +1273,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1279,7 +1284,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1306,8 +1311,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - SslPoliciesList response) { + @Nullable PageContext context, + @Nullable SslPoliciesList response) { super(context, response); } @@ -1317,14 +1322,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SslPoliciesList response) { + @Nullable PageContext context, + @Nullable SslPoliciesList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1334,7 +1339,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListSslPoliciesRequest, SslPoliciesList, SslPolicy, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1343,7 +1348,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesSettings.java index 68166518387b..03415982e55c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SslPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesClient.java index dbbdb2d3fd7b..204f69518d83 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesClient.java @@ -33,6 +33,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. /** @@ -169,7 +170,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StoragePoolTypesClient implements BackgroundResource { - private final StoragePoolTypesSettings settings; + private final @Nullable StoragePoolTypesSettings settings; private final StoragePoolTypesStub stub; /** Constructs an instance of StoragePoolTypesClient with default settings. */ @@ -209,7 +210,7 @@ protected StoragePoolTypesClient(StoragePoolTypesStub stub) { this.stub = stub; } - public final StoragePoolTypesSettings getSettings() { + public final @Nullable StoragePoolTypesSettings getSettings() { return settings; } @@ -686,12 +687,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolTypesRequest, StoragePoolTypeAggregatedList, Map.Entry> context, - StoragePoolTypeAggregatedList response) { + @Nullable StoragePoolTypeAggregatedList response) { super(context, response); } @@ -701,18 +703,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolTypesRequest, StoragePoolTypeAggregatedList, Map.Entry> context, - StoragePoolTypeAggregatedList response) { + @Nullable StoragePoolTypeAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolTypesRequest, StoragePoolTypeAggregatedList, Map.Entry> @@ -730,7 +734,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -740,7 +745,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -772,8 +777,9 @@ public static class ListPage ListStoragePoolTypesRequest, StoragePoolTypeList, StoragePoolType, ListPage> { private ListPage( - PageContext context, - StoragePoolTypeList response) { + @Nullable PageContext + context, + @Nullable StoragePoolTypeList response) { super(context, response); } @@ -783,14 +789,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - StoragePoolTypeList response) { + @Nullable PageContext + context, + @Nullable StoragePoolTypeList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -804,7 +812,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -813,7 +821,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesSettings.java index 625c2b9734d6..594cdce2d676 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolTypesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StoragePoolTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsClient.java index a4af38eb1ff5..484d227fd976 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsClient.java @@ -35,6 +35,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. /** @@ -298,7 +299,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StoragePoolsClient implements BackgroundResource { - private final StoragePoolsSettings settings; + private final @Nullable StoragePoolsSettings settings; private final StoragePoolsStub stub; /** Constructs an instance of StoragePoolsClient with default settings. */ @@ -337,7 +338,7 @@ protected StoragePoolsClient(StoragePoolsStub stub) { this.stub = stub; } - public final StoragePoolsSettings getSettings() { + public final @Nullable StoragePoolsSettings getSettings() { return settings; } @@ -1702,12 +1703,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolsRequest, StoragePoolAggregatedList, Map.Entry> context, - StoragePoolAggregatedList response) { + @Nullable StoragePoolAggregatedList response) { super(context, response); } @@ -1717,18 +1719,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolsRequest, StoragePoolAggregatedList, Map.Entry> context, - StoragePoolAggregatedList response) { + @Nullable StoragePoolAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListStoragePoolsRequest, StoragePoolAggregatedList, Map.Entry> @@ -1746,7 +1750,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1756,7 +1761,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1787,8 +1792,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - StoragePoolList response) { + @Nullable PageContext context, + @Nullable StoragePoolList response) { super(context, response); } @@ -1798,14 +1803,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - StoragePoolList response) { + @Nullable PageContext context, + @Nullable StoragePoolList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1819,7 +1824,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1828,7 +1833,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -1860,8 +1866,9 @@ public static class ListDisksPage ListDisksStoragePoolsRequest, StoragePoolListDisks, StoragePoolDisk, ListDisksPage> { private ListDisksPage( - PageContext context, - StoragePoolListDisks response) { + @Nullable PageContext + context, + @Nullable StoragePoolListDisks response) { super(context, response); } @@ -1871,14 +1878,16 @@ private static ListDisksPage createEmptyPage() { @Override protected ListDisksPage createPage( - PageContext context, - StoragePoolListDisks response) { + @Nullable PageContext + context, + @Nullable StoragePoolListDisks response) { return new ListDisksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1892,7 +1901,7 @@ public static class ListDisksFixedSizeCollection ListDisksPage, ListDisksFixedSizeCollection> { - private ListDisksFixedSizeCollection(List pages, int collectionSize) { + private ListDisksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1902,7 +1911,7 @@ private static ListDisksFixedSizeCollection createEmptyCollection() { @Override protected ListDisksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDisksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsSettings.java index d637827680a4..cae0fc947d7a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StoragePoolsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StoragePoolsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksClient.java index 0cc7653e48ce..86b90cdcd69a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksClient.java @@ -35,6 +35,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. /** @@ -336,7 +337,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SubnetworksClient implements BackgroundResource { - private final SubnetworksSettings settings; + private final @Nullable SubnetworksSettings settings; private final SubnetworksStub stub; /** Constructs an instance of SubnetworksClient with default settings. */ @@ -375,7 +376,7 @@ protected SubnetworksClient(SubnetworksStub stub) { this.stub = stub; } - public final SubnetworksSettings getSettings() { + public final @Nullable SubnetworksSettings getSettings() { return settings; } @@ -2029,12 +2030,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListSubnetworksRequest, SubnetworkAggregatedList, Map.Entry> context, - SubnetworkAggregatedList response) { + @Nullable SubnetworkAggregatedList response) { super(context, response); } @@ -2044,18 +2046,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListSubnetworksRequest, SubnetworkAggregatedList, Map.Entry> context, - SubnetworkAggregatedList response) { + @Nullable SubnetworkAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListSubnetworksRequest, SubnetworkAggregatedList, Map.Entry> @@ -2073,7 +2077,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2083,7 +2088,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2110,8 +2115,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - SubnetworkList response) { + @Nullable PageContext context, + @Nullable SubnetworkList response) { super(context, response); } @@ -2121,14 +2126,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - SubnetworkList response) { + @Nullable PageContext context, + @Nullable SubnetworkList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2138,7 +2143,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListSubnetworksRequest, SubnetworkList, Subnetwork, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2147,7 +2152,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } @@ -2183,9 +2189,11 @@ public static class ListUsablePage ListUsablePage> { private ListUsablePage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, UsableSubnetworksAggregatedList, UsableSubnetwork> context, - UsableSubnetworksAggregatedList response) { + @Nullable UsableSubnetworksAggregatedList response) { super(context, response); } @@ -2195,15 +2203,19 @@ private static ListUsablePage createEmptyPage() { @Override protected ListUsablePage createPage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, UsableSubnetworksAggregatedList, UsableSubnetwork> context, - UsableSubnetworksAggregatedList response) { + @Nullable UsableSubnetworksAggregatedList response) { return new ListUsablePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, UsableSubnetworksAggregatedList, UsableSubnetwork> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2218,7 +2230,8 @@ public static class ListUsableFixedSizeCollection ListUsablePage, ListUsableFixedSizeCollection> { - private ListUsableFixedSizeCollection(List pages, int collectionSize) { + private ListUsableFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2228,7 +2241,7 @@ private static ListUsableFixedSizeCollection createEmptyCollection() { @Override protected ListUsableFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSettings.java index 0e7b1faa0ceb..a76c3880ba71 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -258,7 +259,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SubnetworksStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesClient.java index 4ea2a67a6409..3676e106ef97 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesClient.java @@ -34,6 +34,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. /** @@ -206,7 +207,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetGrpcProxiesClient implements BackgroundResource { - private final TargetGrpcProxiesSettings settings; + private final @Nullable TargetGrpcProxiesSettings settings; private final TargetGrpcProxiesStub stub; /** Constructs an instance of TargetGrpcProxiesClient with default settings. */ @@ -246,7 +247,7 @@ protected TargetGrpcProxiesClient(TargetGrpcProxiesStub stub) { this.stub = stub; } - public final TargetGrpcProxiesSettings getSettings() { + public final @Nullable TargetGrpcProxiesSettings getSettings() { return settings; } @@ -930,8 +931,9 @@ public static class ListPage ListTargetGrpcProxiesRequest, TargetGrpcProxyList, TargetGrpcProxy, ListPage> { private ListPage( - PageContext context, - TargetGrpcProxyList response) { + @Nullable PageContext + context, + @Nullable TargetGrpcProxyList response) { super(context, response); } @@ -941,14 +943,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetGrpcProxyList response) { + @Nullable PageContext + context, + @Nullable TargetGrpcProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -962,7 +966,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -971,7 +975,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesSettings.java index 479deb1f7199..850d7f5b7618 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetGrpcProxiesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -204,7 +205,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetGrpcProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesClient.java index a033ce5241cb..2a4ac9b91c8e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesClient.java @@ -35,6 +35,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. /** @@ -246,7 +247,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetHttpProxiesClient implements BackgroundResource { - private final TargetHttpProxiesSettings settings; + private final @Nullable TargetHttpProxiesSettings settings; private final TargetHttpProxiesStub stub; /** Constructs an instance of TargetHttpProxiesClient with default settings. */ @@ -286,7 +287,7 @@ protected TargetHttpProxiesClient(TargetHttpProxiesStub stub) { this.stub = stub; } - public final TargetHttpProxiesSettings getSettings() { + public final @Nullable TargetHttpProxiesSettings getSettings() { return settings; } @@ -1280,12 +1281,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpProxiesRequest, TargetHttpProxyAggregatedList, Map.Entry> context, - TargetHttpProxyAggregatedList response) { + @Nullable TargetHttpProxyAggregatedList response) { super(context, response); } @@ -1295,18 +1297,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpProxiesRequest, TargetHttpProxyAggregatedList, Map.Entry> context, - TargetHttpProxyAggregatedList response) { + @Nullable TargetHttpProxyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpProxiesRequest, TargetHttpProxyAggregatedList, Map.Entry> @@ -1324,7 +1328,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1334,7 +1339,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1366,8 +1371,9 @@ public static class ListPage ListTargetHttpProxiesRequest, TargetHttpProxyList, TargetHttpProxy, ListPage> { private ListPage( - PageContext context, - TargetHttpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetHttpProxyList response) { super(context, response); } @@ -1377,14 +1383,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetHttpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetHttpProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1398,7 +1406,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1407,7 +1415,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesSettings.java index 78a64372a35f..876392c62fc6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxiesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetHttpProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesClient.java index 58aaf10d71fd..8e94228b53d2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesClient.java @@ -35,6 +35,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. /** @@ -322,7 +323,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetHttpsProxiesClient implements BackgroundResource { - private final TargetHttpsProxiesSettings settings; + private final @Nullable TargetHttpsProxiesSettings settings; private final TargetHttpsProxiesStub stub; /** Constructs an instance of TargetHttpsProxiesClient with default settings. */ @@ -362,7 +363,7 @@ protected TargetHttpsProxiesClient(TargetHttpsProxiesStub stub) { this.stub = stub; } - public final TargetHttpsProxiesSettings getSettings() { + public final @Nullable TargetHttpsProxiesSettings getSettings() { return settings; } @@ -1939,12 +1940,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpsProxiesRequest, TargetHttpsProxyAggregatedList, Map.Entry> context, - TargetHttpsProxyAggregatedList response) { + @Nullable TargetHttpsProxyAggregatedList response) { super(context, response); } @@ -1954,18 +1956,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpsProxiesRequest, TargetHttpsProxyAggregatedList, Map.Entry> context, - TargetHttpsProxyAggregatedList response) { + @Nullable TargetHttpsProxyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetHttpsProxiesRequest, TargetHttpsProxyAggregatedList, Map.Entry> @@ -1983,7 +1987,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1993,7 +1998,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2025,8 +2030,9 @@ public static class ListPage ListTargetHttpsProxiesRequest, TargetHttpsProxyList, TargetHttpsProxy, ListPage> { private ListPage( - PageContext context, - TargetHttpsProxyList response) { + @Nullable PageContext + context, + @Nullable TargetHttpsProxyList response) { super(context, response); } @@ -2036,14 +2042,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetHttpsProxyList response) { + @Nullable PageContext + context, + @Nullable TargetHttpsProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2057,7 +2065,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2066,7 +2074,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSettings.java index 421ae7112c71..dd13d11cafb8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -275,7 +276,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -295,7 +296,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetHttpsProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesClient.java index d3fc96baf09f..786016e10cd1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesClient.java @@ -35,6 +35,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. /** @@ -246,7 +247,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetInstancesClient implements BackgroundResource { - private final TargetInstancesSettings settings; + private final @Nullable TargetInstancesSettings settings; private final TargetInstancesStub stub; /** Constructs an instance of TargetInstancesClient with default settings. */ @@ -286,7 +287,7 @@ protected TargetInstancesClient(TargetInstancesStub stub) { this.stub = stub; } - public final TargetInstancesSettings getSettings() { + public final @Nullable TargetInstancesSettings getSettings() { return settings; } @@ -1288,12 +1289,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetInstancesRequest, TargetInstanceAggregatedList, Map.Entry> context, - TargetInstanceAggregatedList response) { + @Nullable TargetInstanceAggregatedList response) { super(context, response); } @@ -1303,18 +1305,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetInstancesRequest, TargetInstanceAggregatedList, Map.Entry> context, - TargetInstanceAggregatedList response) { + @Nullable TargetInstanceAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetInstancesRequest, TargetInstanceAggregatedList, Map.Entry> @@ -1332,7 +1336,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1342,7 +1347,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1374,8 +1379,9 @@ public static class ListPage ListTargetInstancesRequest, TargetInstanceList, TargetInstance, ListPage> { private ListPage( - PageContext context, - TargetInstanceList response) { + @Nullable PageContext + context, + @Nullable TargetInstanceList response) { super(context, response); } @@ -1385,14 +1391,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetInstanceList response) { + @Nullable PageContext + context, + @Nullable TargetInstanceList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1406,7 +1414,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1415,7 +1423,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesSettings.java index 7683b7aad9f6..6f40547e2380 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetInstancesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsClient.java index 3d2fbdca590b..586168c80b4c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsClient.java @@ -35,6 +35,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. /** @@ -356,7 +357,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetPoolsClient implements BackgroundResource { - private final TargetPoolsSettings settings; + private final @Nullable TargetPoolsSettings settings; private final TargetPoolsStub stub; /** Constructs an instance of TargetPoolsClient with default settings. */ @@ -395,7 +396,7 @@ protected TargetPoolsClient(TargetPoolsStub stub) { this.stub = stub; } - public final TargetPoolsSettings getSettings() { + public final @Nullable TargetPoolsSettings getSettings() { return settings; } @@ -2233,12 +2234,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetPoolsRequest, TargetPoolAggregatedList, Map.Entry> context, - TargetPoolAggregatedList response) { + @Nullable TargetPoolAggregatedList response) { super(context, response); } @@ -2248,18 +2250,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetPoolsRequest, TargetPoolAggregatedList, Map.Entry> context, - TargetPoolAggregatedList response) { + @Nullable TargetPoolAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetPoolsRequest, TargetPoolAggregatedList, Map.Entry> @@ -2277,7 +2281,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2287,7 +2292,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -2314,8 +2319,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - TargetPoolList response) { + @Nullable PageContext context, + @Nullable TargetPoolList response) { super(context, response); } @@ -2325,14 +2330,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetPoolList response) { + @Nullable PageContext context, + @Nullable TargetPoolList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2342,7 +2347,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListTargetPoolsRequest, TargetPoolList, TargetPool, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2351,7 +2356,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsSettings.java index 5e2ead93df51..fad993df737e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -278,7 +279,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -298,7 +299,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetPoolsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesClient.java index 7039712aed8a..ccccf4867ce4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesClient.java @@ -34,6 +34,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. /** @@ -300,7 +301,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetSslProxiesClient implements BackgroundResource { - private final TargetSslProxiesSettings settings; + private final @Nullable TargetSslProxiesSettings settings; private final TargetSslProxiesStub stub; /** Constructs an instance of TargetSslProxiesClient with default settings. */ @@ -340,7 +341,7 @@ protected TargetSslProxiesClient(TargetSslProxiesStub stub) { this.stub = stub; } - public final TargetSslProxiesSettings getSettings() { + public final @Nullable TargetSslProxiesSettings getSettings() { return settings; } @@ -1706,8 +1707,9 @@ public static class ListPage ListTargetSslProxiesRequest, TargetSslProxyList, TargetSslProxy, ListPage> { private ListPage( - PageContext context, - TargetSslProxyList response) { + @Nullable PageContext + context, + @Nullable TargetSslProxyList response) { super(context, response); } @@ -1717,14 +1719,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetSslProxyList response) { + @Nullable PageContext + context, + @Nullable TargetSslProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1738,7 +1742,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1747,7 +1751,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSettings.java index c2cf7725e078..5ecc8a927c49 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -258,7 +259,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetSslProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesClient.java index 12c5db6271c8..4280eb59da3d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesClient.java @@ -35,6 +35,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. /** @@ -264,7 +265,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetTcpProxiesClient implements BackgroundResource { - private final TargetTcpProxiesSettings settings; + private final @Nullable TargetTcpProxiesSettings settings; private final TargetTcpProxiesStub stub; /** Constructs an instance of TargetTcpProxiesClient with default settings. */ @@ -304,7 +305,7 @@ protected TargetTcpProxiesClient(TargetTcpProxiesStub stub) { this.stub = stub; } - public final TargetTcpProxiesSettings getSettings() { + public final @Nullable TargetTcpProxiesSettings getSettings() { return settings; } @@ -1416,12 +1417,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetTcpProxiesRequest, TargetTcpProxyAggregatedList, Map.Entry> context, - TargetTcpProxyAggregatedList response) { + @Nullable TargetTcpProxyAggregatedList response) { super(context, response); } @@ -1431,18 +1433,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetTcpProxiesRequest, TargetTcpProxyAggregatedList, Map.Entry> context, - TargetTcpProxyAggregatedList response) { + @Nullable TargetTcpProxyAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetTcpProxiesRequest, TargetTcpProxyAggregatedList, Map.Entry> @@ -1460,7 +1464,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1470,7 +1475,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1502,8 +1507,9 @@ public static class ListPage ListTargetTcpProxiesRequest, TargetTcpProxyList, TargetTcpProxy, ListPage> { private ListPage( - PageContext context, - TargetTcpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetTcpProxyList response) { super(context, response); } @@ -1513,14 +1519,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetTcpProxyList response) { + @Nullable PageContext + context, + @Nullable TargetTcpProxyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1534,7 +1542,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1543,7 +1551,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSettings.java index 0c2875719e47..19c67e5050a3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetTcpProxiesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysClient.java index 2bab0efd84b2..3cffdfda40c6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysClient.java @@ -35,6 +35,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. /** @@ -228,7 +229,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TargetVpnGatewaysClient implements BackgroundResource { - private final TargetVpnGatewaysSettings settings; + private final @Nullable TargetVpnGatewaysSettings settings; private final TargetVpnGatewaysStub stub; /** Constructs an instance of TargetVpnGatewaysClient with default settings. */ @@ -268,7 +269,7 @@ protected TargetVpnGatewaysClient(TargetVpnGatewaysStub stub) { this.stub = stub; } - public final TargetVpnGatewaysSettings getSettings() { + public final @Nullable TargetVpnGatewaysSettings getSettings() { return settings; } @@ -1159,12 +1160,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetVpnGatewaysRequest, TargetVpnGatewayAggregatedList, Map.Entry> context, - TargetVpnGatewayAggregatedList response) { + @Nullable TargetVpnGatewayAggregatedList response) { super(context, response); } @@ -1174,18 +1176,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListTargetVpnGatewaysRequest, TargetVpnGatewayAggregatedList, Map.Entry> context, - TargetVpnGatewayAggregatedList response) { + @Nullable TargetVpnGatewayAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListTargetVpnGatewaysRequest, TargetVpnGatewayAggregatedList, Map.Entry> @@ -1203,7 +1207,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1213,7 +1218,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1245,8 +1250,9 @@ public static class ListPage ListTargetVpnGatewaysRequest, TargetVpnGatewayList, TargetVpnGateway, ListPage> { private ListPage( - PageContext context, - TargetVpnGatewayList response) { + @Nullable PageContext + context, + @Nullable TargetVpnGatewayList response) { super(context, response); } @@ -1256,14 +1262,16 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - TargetVpnGatewayList response) { + @Nullable PageContext + context, + @Nullable TargetVpnGatewayList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1277,7 +1285,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1286,7 +1294,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysSettings.java index 43334cb00b71..9dbe99c34f78 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -234,7 +235,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TargetVpnGatewaysStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsClient.java index df9946aaadd2..d1067abfda39 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsClient.java @@ -35,6 +35,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. /** @@ -298,7 +299,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UrlMapsClient implements BackgroundResource { - private final UrlMapsSettings settings; + private final @Nullable UrlMapsSettings settings; private final UrlMapsStub stub; /** Constructs an instance of UrlMapsClient with default settings. */ @@ -336,7 +337,7 @@ protected UrlMapsClient(UrlMapsStub stub) { this.stub = stub; } - public final UrlMapsSettings getSettings() { + public final @Nullable UrlMapsSettings getSettings() { return settings; } @@ -1652,12 +1653,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListUrlMapsRequest, UrlMapsAggregatedList, Map.Entry> context, - UrlMapsAggregatedList response) { + @Nullable UrlMapsAggregatedList response) { super(context, response); } @@ -1667,18 +1669,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListUrlMapsRequest, UrlMapsAggregatedList, Map.Entry> context, - UrlMapsAggregatedList response) { + @Nullable UrlMapsAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListUrlMapsRequest, UrlMapsAggregatedList, Map.Entry> @@ -1696,7 +1700,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1706,7 +1711,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1733,7 +1738,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, UrlMapList response) { + @Nullable PageContext context, + @Nullable UrlMapList response) { super(context, response); } @@ -1743,13 +1749,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, UrlMapList response) { + @Nullable PageContext context, + @Nullable UrlMapList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1759,7 +1766,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListUrlMapsRequest, UrlMapList, UrlMap, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1768,7 +1775,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsSettings.java index fd2017f8b611..c5fde7773d04 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UrlMapsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysClient.java index 669b67a5460d..22203da11b19 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysClient.java @@ -35,6 +35,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. /** @@ -261,7 +262,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VpnGatewaysClient implements BackgroundResource { - private final VpnGatewaysSettings settings; + private final @Nullable VpnGatewaysSettings settings; private final VpnGatewaysStub stub; /** Constructs an instance of VpnGatewaysClient with default settings. */ @@ -300,7 +301,7 @@ protected VpnGatewaysClient(VpnGatewaysStub stub) { this.stub = stub; } - public final VpnGatewaysSettings getSettings() { + public final @Nullable VpnGatewaysSettings getSettings() { return settings; } @@ -1392,12 +1393,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListVpnGatewaysRequest, VpnGatewayAggregatedList, Map.Entry> context, - VpnGatewayAggregatedList response) { + @Nullable VpnGatewayAggregatedList response) { super(context, response); } @@ -1407,18 +1409,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListVpnGatewaysRequest, VpnGatewayAggregatedList, Map.Entry> context, - VpnGatewayAggregatedList response) { + @Nullable VpnGatewayAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListVpnGatewaysRequest, VpnGatewayAggregatedList, Map.Entry> @@ -1436,7 +1440,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1446,7 +1451,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1473,8 +1478,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - VpnGatewayList response) { + @Nullable PageContext context, + @Nullable VpnGatewayList response) { super(context, response); } @@ -1484,14 +1489,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - VpnGatewayList response) { + @Nullable PageContext context, + @Nullable VpnGatewayList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1501,7 +1506,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListVpnGatewaysRequest, VpnGatewayList, VpnGateway, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1510,7 +1515,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysSettings.java index bd19c57ea48c..1702bd62194f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnGatewaysSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VpnGatewaysStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsClient.java index 5e976258a4dd..93faa297aabe 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsClient.java @@ -35,6 +35,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VpnTunnelsClient implements BackgroundResource { - private final VpnTunnelsSettings settings; + private final @Nullable VpnTunnelsSettings settings; private final VpnTunnelsStub stub; /** Constructs an instance of VpnTunnelsClient with default settings. */ @@ -263,7 +264,7 @@ protected VpnTunnelsClient(VpnTunnelsStub stub) { this.stub = stub; } - public final VpnTunnelsSettings getSettings() { + public final @Nullable VpnTunnelsSettings getSettings() { return settings; } @@ -1146,12 +1147,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< + @Nullable + PageContext< AggregatedListVpnTunnelsRequest, VpnTunnelAggregatedList, Map.Entry> context, - VpnTunnelAggregatedList response) { + @Nullable VpnTunnelAggregatedList response) { super(context, response); } @@ -1161,18 +1163,20 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< + @Nullable + PageContext< AggregatedListVpnTunnelsRequest, VpnTunnelAggregatedList, Map.Entry> context, - VpnTunnelAggregatedList response) { + @Nullable VpnTunnelAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< AggregatedListVpnTunnelsRequest, VpnTunnelAggregatedList, Map.Entry> @@ -1190,7 +1194,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1200,7 +1205,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -1227,8 +1232,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - VpnTunnelList response) { + @Nullable PageContext context, + @Nullable VpnTunnelList response) { super(context, response); } @@ -1238,14 +1243,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - VpnTunnelList response) { + @Nullable PageContext context, + @Nullable VpnTunnelList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1255,7 +1260,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListVpnTunnelsRequest, VpnTunnelList, VpnTunnel, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1264,7 +1269,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsSettings.java index f531d3cfe8ff..a7bdca5c1346 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VpnTunnelsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsClient.java index 56f2ad07a682..4703b8c8365b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsClient.java @@ -34,6 +34,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. /** @@ -204,7 +205,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WireGroupsClient implements BackgroundResource { - private final WireGroupsSettings settings; + private final @Nullable WireGroupsSettings settings; private final WireGroupsStub stub; /** Constructs an instance of WireGroupsClient with default settings. */ @@ -242,7 +243,7 @@ protected WireGroupsClient(WireGroupsStub stub) { this.stub = stub; } - public final WireGroupsSettings getSettings() { + public final @Nullable WireGroupsSettings getSettings() { return settings; } @@ -957,8 +958,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - WireGroupList response) { + @Nullable PageContext context, + @Nullable WireGroupList response) { super(context, response); } @@ -968,14 +969,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - WireGroupList response) { + @Nullable PageContext context, + @Nullable WireGroupList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -985,7 +986,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListWireGroupsRequest, WireGroupList, WireGroup, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -994,7 +995,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsSettings.java index 23a90c17e57f..156d0351c6bc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/WireGroupsSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -200,7 +201,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -220,7 +221,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WireGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsClient.java index 59fb44fb3e3e..676f5b4265ae 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsClient.java @@ -32,6 +32,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ZoneOperationsClient implements BackgroundResource { - private final ZoneOperationsSettings settings; + private final @Nullable ZoneOperationsSettings settings; private final ZoneOperationsStub stub; /** Constructs an instance of ZoneOperationsClient with default settings. */ @@ -223,7 +224,7 @@ protected ZoneOperationsClient(ZoneOperationsStub stub) { this.stub = stub; } - public final ZoneOperationsSettings getSettings() { + public final @Nullable ZoneOperationsSettings getSettings() { return settings; } @@ -741,8 +742,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { super(context, response); } @@ -752,14 +753,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, - OperationList response) { + @Nullable PageContext context, + @Nullable OperationList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -769,7 +770,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListZoneOperationsRequest, OperationList, Operation, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -778,7 +779,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsSettings.java index 8d6447bc59c2..2b810eab83d4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ZoneOperationsStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java index 01ccead68247..2c242a97b69e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesClient.java @@ -34,6 +34,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. /** @@ -209,7 +210,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ZoneVmExtensionPoliciesClient implements BackgroundResource { - private final ZoneVmExtensionPoliciesSettings settings; + private final @Nullable ZoneVmExtensionPoliciesSettings settings; private final ZoneVmExtensionPoliciesStub stub; /** Constructs an instance of ZoneVmExtensionPoliciesClient with default settings. */ @@ -250,7 +251,7 @@ protected ZoneVmExtensionPoliciesClient(ZoneVmExtensionPoliciesStub stub) { this.stub = stub; } - public final ZoneVmExtensionPoliciesSettings getSettings() { + public final @Nullable ZoneVmExtensionPoliciesSettings getSettings() { return settings; } @@ -986,9 +987,11 @@ public static class ListPage ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy, ListPage> { private ListPage( - PageContext + @Nullable + PageContext< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy> context, - VmExtensionPolicyList response) { + @Nullable VmExtensionPolicyList response) { super(context, response); } @@ -998,15 +1001,19 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext + @Nullable + PageContext< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy> context, - VmExtensionPolicyList response) { + @Nullable VmExtensionPolicyList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListZoneVmExtensionPoliciesRequest, VmExtensionPolicyList, VmExtensionPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1021,7 +1028,7 @@ public static class ListFixedSizeCollection ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1030,7 +1037,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java index 28824c88ca5e..f7ce28386cd7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneVmExtensionPoliciesSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ZoneVmExtensionPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesClient.java index 4b8e59d1b877..64c758eead78 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesClient.java @@ -32,6 +32,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. /** @@ -143,7 +144,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ZonesClient implements BackgroundResource { - private final ZonesSettings settings; + private final @Nullable ZonesSettings settings; private final ZonesStub stub; /** Constructs an instance of ZonesClient with default settings. */ @@ -181,7 +182,7 @@ protected ZonesClient(ZonesStub stub) { this.stub = stub; } - public final ZonesSettings getSettings() { + public final @Nullable ZonesSettings getSettings() { return settings; } @@ -461,7 +462,9 @@ private ListPagedResponse(ListPage page) { public static class ListPage extends AbstractPage { - private ListPage(PageContext context, ZoneList response) { + private ListPage( + @Nullable PageContext context, + @Nullable ZoneList response) { super(context, response); } @@ -471,13 +474,15 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, ZoneList response) { + @Nullable PageContext context, + @Nullable ZoneList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, ApiFuture futureResponse) { + @Nullable PageContext context, + ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } } @@ -486,7 +491,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListZonesRequest, ZoneList, Zone, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -495,7 +500,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesSettings.java index cd5a646b8a6c..7f1bb0869687 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZonesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -141,7 +142,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -161,7 +162,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ZonesStubSettings.newBuilder(clientContext)); } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java index ff125e07ac60..fe3dcaa57eef 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AcceleratorTypesStubSettings.java @@ -59,6 +59,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -352,7 +353,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -427,7 +428,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java index e9c564b86584..27069681c1de 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressesStubSettings.java @@ -70,6 +70,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -430,7 +431,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -536,7 +537,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AdviceStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AdviceStubSettings.java index afe8a8f32c53..7cb73fc4eabb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AdviceStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AdviceStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -243,7 +244,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); calendarModeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java index 8e0db3e1271e..152dc1884329 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalersStubSettings.java @@ -70,6 +70,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -440,7 +441,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -547,7 +548,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java index 62a847ea9c59..8ab2b3c91701 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketsStubSettings.java @@ -79,6 +79,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -588,7 +589,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -730,7 +731,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addSignedUrlKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java index be444caff877..79a9ba42c9f2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServicesStubSettings.java @@ -84,6 +84,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -633,7 +634,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -793,7 +794,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addSignedUrlKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/CrossSiteNetworksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/CrossSiteNetworksStubSettings.java index 4e4b0a1a42aa..e247c81d6687 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/CrossSiteNetworksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/CrossSiteNetworksStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -336,7 +337,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -433,7 +434,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java index 30f3794e92ca..d81b3507dbe2 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskTypesStubSettings.java @@ -59,6 +59,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -404,7 +405,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java index 6ec3568075bf..e1db9afde75c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DisksStubSettings.java @@ -83,6 +83,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -593,7 +594,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -770,7 +771,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addResourcePoliciesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java index d12c7815e5a3..9a512649ccf0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ExternalVpnGatewaysStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -349,7 +350,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java index bc3f5ad3eb88..d99ada2fef99 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallPoliciesStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -499,7 +500,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -661,7 +662,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java index cb2d1ad4b349..e9a6250ae45e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallsStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -348,7 +349,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -450,7 +451,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java index e359bf722c45..6e6a057891ae 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRulesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -454,7 +455,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -568,7 +569,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FutureReservationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FutureReservationsStubSettings.java index 701e86a01a24..9f49f4e87890 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FutureReservationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FutureReservationsStubSettings.java @@ -68,6 +68,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -451,7 +452,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -566,7 +567,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java index fc42f79f60ca..1075f9b96dbe 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressesStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -355,7 +356,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -459,7 +460,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java index 50b02526a940..7a77d621bf1c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRulesStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -371,7 +372,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -487,7 +488,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java index 6adb6f326dbb..e922592a8399 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalNetworkEndpointGroupsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -473,7 +474,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -593,7 +594,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); attachNetworkEndpointsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java index 6f93e08de80a..bfdde7e85ae9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationsStubSettings.java @@ -62,6 +62,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -365,7 +366,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java index 76a0993a4990..b0661af1891a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOrganizationOperationsStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -277,7 +278,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -362,7 +363,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java index fcec65aef9e7..d174b8edaf4c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalPublicDelegatedPrefixesStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -360,7 +361,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -463,7 +464,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStubSettings.java index 5e387b0cb626..0bef3ce3257d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStubSettings.java @@ -67,6 +67,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -556,7 +557,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java index da1807a05876..f12110d229e7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthChecksStubSettings.java @@ -70,6 +70,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -556,7 +557,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java index 06f0fb041701..08411707bbf4 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageFamilyViewsStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -248,7 +249,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java index b2a0214e39d7..54632e20bb12 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImagesStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -491,7 +492,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java index c0427f59642a..42f22e2bf8da 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerResizeRequestsStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -375,7 +376,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -484,7 +485,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); cancelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java index 240691c07936..aab93fbe3940 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagersStubSettings.java @@ -94,6 +94,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -994,7 +995,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1236,7 +1237,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); abandonInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java index 407d30e9ac32..bb91b240869d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupsStubSettings.java @@ -75,6 +75,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -555,7 +556,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -681,7 +682,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java index 0449faa1fa65..ab4d7bb71d37 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceSettingsServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -312,7 +313,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java index e102d1251f5c..f5d3bf768f1d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplatesStubSettings.java @@ -71,6 +71,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -440,7 +441,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -548,7 +549,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java index a708d49e7419..3f19b61c1594 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstancesStubSettings.java @@ -123,6 +123,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1134,7 +1135,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1513,7 +1514,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addAccessConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java index b8d6850a65a5..755337ec6662 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotGroupsStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -357,7 +358,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -462,7 +463,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java index 354843db4f60..e11356cc3352 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstantSnapshotsStubSettings.java @@ -72,6 +72,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -564,7 +565,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentGroupsStubSettings.java index 2a21d54468fa..1ef2d9b42fe7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentGroupsStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -412,7 +413,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -532,7 +533,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java index f8a67f864471..09229d2ab095 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentsStubSettings.java @@ -68,6 +68,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -458,7 +459,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -574,7 +575,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectGroupsStubSettings.java index 32eb64965092..710c2cfa6ee6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectGroupsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -401,7 +402,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -523,7 +524,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java index 9ae0ef66bce4..ec4b29f33b40 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectLocationsStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -269,7 +270,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -340,7 +341,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java index f261449132ac..14e60e169fa1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectRemoteLocationsStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -353,7 +354,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java index f784e48d2877..8d01ae93aae7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -367,7 +368,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -475,7 +476,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java index e39d61093140..9a020e7c6beb 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseCodesStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -292,7 +293,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java index 3efeac4e9787..638c079ab817 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicensesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -350,7 +351,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java index caff3846b4a6..66e5a3784cf1 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineImagesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -355,7 +356,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -460,7 +461,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java index 7bcf0cd9c40e..f470c776f639 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/MachineTypesStubSettings.java @@ -59,6 +59,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -416,7 +417,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java index 31bfd11e29a4..0621da9314d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkAttachmentsStubSettings.java @@ -72,6 +72,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -457,7 +458,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -573,7 +574,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java index 50d8042d1702..b905d62d3ac3 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEdgeSecurityServicesStubSettings.java @@ -64,6 +64,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -367,7 +368,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -472,7 +473,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java index 0b68587103da..504a1ac7329e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkEndpointGroupsStubSettings.java @@ -74,6 +74,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -567,7 +568,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -696,7 +697,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java index 89f85c6a1bdf..99d4cd6e8a88 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java @@ -86,6 +86,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -651,7 +652,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -851,7 +852,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java index a5480cf573af..e3119d0f8c6f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkProfilesStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -259,7 +260,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java index c732a164f3d8..407ab733e4a9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworksStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -519,7 +520,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -664,7 +665,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addPeeringSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java index eb1fdb7ab7ea..69d11e45645b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupsStubSettings.java @@ -81,6 +81,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -585,7 +586,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -730,7 +731,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addNodesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java index cffc7a3cd794..dd5648513952 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplatesStubSettings.java @@ -71,6 +71,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -432,7 +433,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -537,7 +538,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java index 626c4d32424b..33a3e820a130 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTypesStubSettings.java @@ -59,6 +59,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -404,7 +405,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/OrganizationSecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/OrganizationSecurityPoliciesStubSettings.java index ea38e978283b..548834297f64 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/OrganizationSecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/OrganizationSecurityPoliciesStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -518,7 +519,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -691,7 +692,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java index 81057153bb6a..3f195e48c686 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PacketMirroringsStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -437,7 +438,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -541,7 +542,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PreviewFeaturesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PreviewFeaturesStubSettings.java index 76ac3103d6f1..427e5358da7e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PreviewFeaturesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PreviewFeaturesStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -386,7 +387,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java index a3c9b537513a..7aea69db90bc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectsStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -527,7 +528,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -683,7 +684,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); disableXpnHostSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java index 74cd649e5f27..5a71cfed6629 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicAdvertisedPrefixesStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -383,7 +384,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -500,7 +501,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); announceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java index ff75b76efebe..45f657278882 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/PublicDelegatedPrefixesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -474,7 +475,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -596,7 +597,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java index b30ae750c68b..1878d7caf719 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalersStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -362,7 +363,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -468,7 +469,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java index d97422ee4c71..c83a8bfe6fbd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendBucketsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -444,7 +445,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -560,7 +561,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java index 9ac65d0cf0d8..b6d71a5a37e7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServicesStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -489,7 +490,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -626,7 +627,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java index 8ef9153378d6..1dcd2e23daea 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentsStubSettings.java @@ -66,6 +66,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -410,7 +411,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -507,7 +508,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java index 5ddd56667710..9210734bd904 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCompositeHealthChecksStubSettings.java @@ -71,6 +71,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -471,7 +472,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -588,7 +589,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java index fad3eb514702..385ae05b5c7d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskTypesStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -255,7 +256,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -324,7 +325,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java index cd679327175d..bba3b8086e39 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDisksStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -513,7 +514,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -686,7 +687,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addResourcePoliciesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthAggregationPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthAggregationPoliciesStubSettings.java index 54b81d8e2d8f..ce5f69bd8a5c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthAggregationPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthAggregationPoliciesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -476,7 +477,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -592,7 +593,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java index 823db55df462..42c7c390801e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthCheckServicesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -451,7 +452,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -563,7 +564,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java index 82478893a25c..a18e3a282326 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthChecksStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -360,7 +361,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -470,7 +471,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java index 88477b3e4428..dd53952d1ce0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionHealthSourcesStubSettings.java @@ -71,6 +71,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -449,7 +450,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -563,7 +564,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java index 1e4e7edd7257..c2c8465a2fea 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerResizeRequestsStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -382,7 +383,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -491,7 +492,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); cancelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java index be304b5c2a3b..42191a9eed4b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagersStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -926,7 +927,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1174,7 +1175,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); abandonInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java index 5f5912e79969..ab7574835f7c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupsStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -415,7 +416,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -513,7 +514,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java index a2e0261a851b..1c54fede5e1b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceTemplatesStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -326,7 +327,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -421,7 +422,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java index f20ad38abbce..800bc6ad6b7b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstancesStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -284,7 +285,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); bulkInsertSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java index 50c885cd2d50..73f40b7966d6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotGroupsStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -369,7 +370,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -475,7 +476,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java index 339535dad94c..3604e9a10e60 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstantSnapshotsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -371,7 +372,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -483,7 +484,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java index e91b8574623f..48d6a0d90800 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkEndpointGroupsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -473,7 +474,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -593,7 +594,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); attachNetworkEndpointsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java index a5b73df87c67..8f053c809128 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNetworkFirewallPoliciesStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -524,7 +525,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -694,7 +695,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addAssociationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java index 9cff69e2da4f..a9522f5ec0bd 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionNotificationEndpointsStubSettings.java @@ -68,6 +68,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -445,7 +446,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -551,7 +552,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java index b11b7fbfa768..3eb2cc987ba0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationsStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -358,7 +359,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java index b16f033c5ec2..6688538a37a9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSecurityPoliciesStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -412,7 +413,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -545,7 +546,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java index 4a68d49f3823..3b9d45c1f945 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotSettingsStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -314,7 +315,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java index 02bd92e386f6..28266186389e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSnapshotsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -371,7 +372,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -484,7 +485,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java index 4b36216db473..2564a4bf7cb9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslCertificatesStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -419,7 +420,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java index 2e987a268390..440cbfb62002 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionSslPoliciesStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -345,7 +346,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -443,7 +444,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java index 7b2180c3494e..4a08781dacef 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpProxiesStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -443,7 +444,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java index 722b1d8a2cef..aabf3c9053df 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetHttpsProxiesStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -494,7 +495,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java index 41af7afd6945..4f984304c151 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionTargetTcpProxiesStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -419,7 +420,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java index 31064086f2e4..fac27842464f 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionUrlMapsStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -353,7 +354,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java index 32362d09cce8..86362030583d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionZonesStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -310,7 +311,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSettings = PagedCallSettings.newBuilder(LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java index 6ca25b11e888..3731cc804c2e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionsStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -247,7 +248,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -315,7 +316,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationBlocksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationBlocksStubSettings.java index a219042c67db..2d1494e9efb5 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationBlocksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationBlocksStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -340,7 +341,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -439,7 +440,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSlotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSlotsStubSettings.java index 97322ea7eead..7fcc400d7ff9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSlotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSlotsStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -417,7 +418,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java index c4489d269fd5..10c19d77da84 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationSubBlocksStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -500,7 +501,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java index b0b4fe775544..342da00686d8 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ReservationsStubSettings.java @@ -74,6 +74,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -473,7 +474,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -596,7 +597,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java index 0c226d2d8818..2483e30ce328 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ResourcePoliciesStubSettings.java @@ -72,6 +72,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -562,7 +563,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutPlansStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutPlansStubSettings.java index 8c3930a455b4..49de1832f436 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutPlansStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutPlansStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -318,7 +319,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -407,7 +408,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutsStubSettings.java index d1694d245f5d..f95caef20138 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RolloutsStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -310,7 +311,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -399,7 +400,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); cancelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java index f4ec088c094f..bd7ceaeead1c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutersStubSettings.java @@ -91,6 +91,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -733,7 +734,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -886,7 +887,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java index bc86a5b94b54..53412f219941 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RoutesStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -404,7 +405,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java index c202a29bbd56..a1dc0a138f68 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPoliciesStubSettings.java @@ -75,6 +75,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -509,7 +510,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -645,7 +646,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java index 3249e4cb6312..b7db6be52c41 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ServiceAttachmentsStubSettings.java @@ -72,6 +72,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -457,7 +458,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -573,7 +574,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java index 909b396a952c..c8bf7cefcada 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotSettingsServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -312,7 +313,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java index 48723c4618cf..f43d69b15608 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -363,7 +364,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -472,7 +473,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java index 9b0da44202e0..30febdc8d209 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificatesStubSettings.java @@ -66,6 +66,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -409,7 +410,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -504,7 +505,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java index 0f9b7addd794..4e5205163929 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPoliciesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -427,7 +428,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -531,7 +532,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java index a1e98aa40628..d6c3c125b69c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolTypesStubSettings.java @@ -59,6 +59,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -352,7 +353,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -427,7 +428,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java index 684f8c4f748d..5ff65061bb0b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/StoragePoolsStubSettings.java @@ -76,6 +76,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -513,7 +514,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -627,7 +628,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java index d99d924169b2..6f4f1c729199 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworksStubSettings.java @@ -78,6 +78,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -554,7 +555,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -682,7 +683,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java index c6c7ba86be33..7126b076f8af 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetGrpcProxiesStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -336,7 +337,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -430,7 +431,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java index c8d9e151dc92..d4e97b07bddf 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxiesStubSettings.java @@ -68,6 +68,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -443,7 +444,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -550,7 +551,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java index cd7f1d9fed25..74816093fcc6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxiesStubSettings.java @@ -72,6 +72,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -513,7 +514,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -654,7 +655,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java index 0d3d5ad4a550..1c36e76fb679 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstancesStubSettings.java @@ -69,6 +69,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -436,7 +437,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -543,7 +544,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java index 946928c6b8d3..9b8fd55081d9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolsStubSettings.java @@ -76,6 +76,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -516,7 +517,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -658,7 +659,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); addHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java index 41e8db971bd8..aaa05c7682e7 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxiesStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -414,7 +415,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -545,7 +546,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java index 0b76ab522a4a..c413cf44c817 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxiesStubSettings.java @@ -70,6 +70,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -456,7 +457,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java index 51c0946a8583..8c52ee7868ef 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewaysStubSettings.java @@ -67,6 +67,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -429,7 +430,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -534,7 +535,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java index 2885d53af449..30f55518d47c 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapsStubSettings.java @@ -73,6 +73,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -562,7 +563,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java index 3cf3001bb987..451fc73a46dc 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnGatewaysStubSettings.java @@ -71,6 +71,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -435,7 +436,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -542,7 +543,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java index 33bee718bfbc..e6d344c16f7b 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelsStubSettings.java @@ -67,6 +67,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -410,7 +411,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -507,7 +508,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/WireGroupsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/WireGroupsStubSettings.java index 892623b9da53..6c53e3b5d3b6 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/WireGroupsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/WireGroupsStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -418,7 +419,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java index 7ad2b570ef16..ee3899eab489 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationsStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -355,7 +356,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java index 0fb066cdc52a..3d9eb6b904a0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneVmExtensionPoliciesStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -443,7 +444,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java index 9ff3a68e965a..90b1ace47532 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZonesStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -246,7 +247,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -314,7 +315,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java index fddbe5eb40c3..ec3cf8f6c523 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingClient.java @@ -36,6 +36,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfidentialComputingClient implements BackgroundResource { - private final ConfidentialComputingSettings settings; + private final @Nullable ConfidentialComputingSettings settings; private final ConfidentialComputingStub stub; /** Constructs an instance of ConfidentialComputingClient with default settings. */ @@ -262,7 +263,7 @@ protected ConfidentialComputingClient(ConfidentialComputingStub stub) { this.stub = stub; } - public final ConfidentialComputingSettings getSettings() { + public final @Nullable ConfidentialComputingSettings getSettings() { return settings; } @@ -296,7 +297,7 @@ public ConfidentialComputingStub getStub() { * all the Challenge fields are set by the server. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Challenge createChallenge(LocationName parent, Challenge challenge) { + public final Challenge createChallenge(@Nullable LocationName parent, Challenge challenge) { CreateChallengeRequest request = CreateChallengeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -863,8 +864,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -874,14 +875,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -895,7 +896,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -905,7 +907,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java index 825c9a62d8cb..44a839f78896 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/ConfidentialComputingSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfidentialComputingStubSettings.newBuilder(clientContext)); } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java index 8c5765d6187b..51920f8f4722 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/ConfidentialComputingStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,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); } @@ -416,7 +417,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createChallengeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java index 7aa8080cb7ce..d032ba766f0e 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingClient.java @@ -37,6 +37,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. /** @@ -194,7 +195,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConfidentialComputingClient implements BackgroundResource { - private final ConfidentialComputingSettings settings; + private final @Nullable ConfidentialComputingSettings settings; private final ConfidentialComputingStub stub; /** Constructs an instance of ConfidentialComputingClient with default settings. */ @@ -234,7 +235,7 @@ protected ConfidentialComputingClient(ConfidentialComputingStub stub) { this.stub = stub; } - public final ConfidentialComputingSettings getSettings() { + public final @Nullable ConfidentialComputingSettings getSettings() { return settings; } @@ -268,7 +269,7 @@ public ConfidentialComputingStub getStub() { * all the Challenge fields are set by the server. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Challenge createChallenge(LocationName parent, Challenge challenge) { + public final Challenge createChallenge(@Nullable LocationName parent, Challenge challenge) { CreateChallengeRequest request = CreateChallengeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -653,8 +654,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -664,14 +665,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -685,7 +686,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -695,7 +697,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java index a22e2caccfa2..ea7637839f36 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ConfidentialComputingSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfidentialComputingStubSettings.newBuilder(clientContext)); } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java index ce69ea299671..52cf2c04ab4c 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/ConfidentialComputingStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,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); } @@ -389,7 +390,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createChallengeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java index 01c75bc93c9f..82382de22216 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/ChallengeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String location, String uuid) { return newBuilder().setProject(project).setLocation(location).setUuid(uuid).build().toString(); } - public static ChallengeName parse(String formattedString) { + public static @Nullable ChallengeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChallengeName> values) { List list = new ArrayList<>(values.size()); for (ChallengeName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java index 8cedb7468d9c..a8c62c40e776 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String zone, String instance) { return newBuilder().setProject(project).setZone(zone).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java index a8dd5ee45dd4..cbf87a820260 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/src/main/java/com/google/cloud/confidentialcomputing/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java index c87c3ee1f73e..b1548c6428e6 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/ChallengeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String location, String uuid) { return newBuilder().setProject(project).setLocation(location).setUuid(uuid).build().toString(); } - public static ChallengeName parse(String formattedString) { + public static @Nullable ChallengeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChallengeName> values) { List list = new ArrayList<>(values.size()); for (ChallengeName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java index 2bdbc687a8b9..7d1531f73913 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryClient.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryClient.java index d11d60b550c5..5535db7a6fb6 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryClient.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliveryClient.java @@ -43,6 +43,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. /** @@ -653,7 +654,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigDeliveryClient implements BackgroundResource { - private final ConfigDeliverySettings settings; + private final @Nullable ConfigDeliverySettings settings; private final ConfigDeliveryStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -701,7 +702,7 @@ protected ConfigDeliveryClient(ConfigDeliveryStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConfigDeliverySettings getSettings() { + public final @Nullable ConfigDeliverySettings getSettings() { return settings; } @@ -749,7 +750,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListResourceBundlesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceBundlesPagedResponse listResourceBundles(LocationName parent) { + public final ListResourceBundlesPagedResponse listResourceBundles(@Nullable LocationName parent) { ListResourceBundlesRequest request = ListResourceBundlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -921,7 +922,7 @@ public final ListResourceBundlesPagedResponse listResourceBundles( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceBundle getResourceBundle(ResourceBundleName name) { + public final ResourceBundle getResourceBundle(@Nullable ResourceBundleName name) { GetResourceBundleRequest request = GetResourceBundleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1045,7 +1046,7 @@ public final UnaryCallable getResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createResourceBundleAsync( - LocationName parent, ResourceBundle resourceBundle, String resourceBundleId) { + @Nullable LocationName parent, ResourceBundle resourceBundle, String resourceBundleId) { CreateResourceBundleRequest request = CreateResourceBundleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1345,7 +1346,7 @@ public final OperationFuture updateResourceBu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteResourceBundleAsync( - ResourceBundleName name) { + @Nullable ResourceBundleName name) { DeleteResourceBundleRequest request = DeleteResourceBundleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1500,7 +1501,7 @@ public final OperationFuture deleteResourceBundleAsync * @param parent Required. Parent value for ListFleetPackagesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFleetPackagesPagedResponse listFleetPackages(LocationName parent) { + public final ListFleetPackagesPagedResponse listFleetPackages(@Nullable LocationName parent) { ListFleetPackagesRequest request = ListFleetPackagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1669,7 +1670,7 @@ public final ListFleetPackagesPagedResponse listFleetPackages(ListFleetPackagesR * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FleetPackage getFleetPackage(FleetPackageName name) { + public final FleetPackage getFleetPackage(@Nullable FleetPackageName name) { GetFleetPackageRequest request = GetFleetPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFleetPackage(request); @@ -1785,7 +1786,7 @@ public final UnaryCallable getFleetPackage * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFleetPackageAsync( - LocationName parent, FleetPackage fleetPackage, String fleetPackageId) { + @Nullable LocationName parent, FleetPackage fleetPackage, String fleetPackageId) { CreateFleetPackageRequest request = CreateFleetPackageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2079,7 +2080,7 @@ public final UnaryCallable updateFleetPack * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFleetPackageAsync( - FleetPackageName name) { + @Nullable FleetPackageName name) { DeleteFleetPackageRequest request = DeleteFleetPackageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2233,7 +2234,7 @@ public final UnaryCallable deleteFleetPack * @param parent Required. Parent value for ListReleasesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleasesPagedResponse listReleases(ResourceBundleName parent) { + public final ListReleasesPagedResponse listReleases(@Nullable ResourceBundleName parent) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2404,7 +2405,7 @@ public final UnaryCallable listReleas * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Release getRelease(ReleaseName name) { + public final Release getRelease(@Nullable ReleaseName name) { GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRelease(request); @@ -2524,7 +2525,7 @@ public final UnaryCallable getReleaseCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReleaseAsync( - ResourceBundleName parent, Release release, String releaseId) { + @Nullable ResourceBundleName parent, Release release, String releaseId) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2817,7 +2818,8 @@ public final UnaryCallable updateReleaseCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteReleaseAsync(ReleaseName name) { + public final OperationFuture deleteReleaseAsync( + @Nullable ReleaseName name) { DeleteReleaseRequest request = DeleteReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteReleaseAsync(request); @@ -2972,7 +2974,7 @@ public final UnaryCallable deleteReleaseCallabl * @param parent Required. Parent value for ListVariantsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVariantsPagedResponse listVariants(ReleaseName parent) { + public final ListVariantsPagedResponse listVariants(@Nullable ReleaseName parent) { ListVariantsRequest request = ListVariantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3146,7 +3148,7 @@ public final UnaryCallable listVarian * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Variant getVariant(VariantName name) { + public final Variant getVariant(@Nullable VariantName name) { GetVariantRequest request = GetVariantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVariant(request); @@ -3268,7 +3270,7 @@ public final UnaryCallable getVariantCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVariantAsync( - ReleaseName parent, Variant variant, String variantId) { + @Nullable ReleaseName parent, Variant variant, String variantId) { CreateVariantRequest request = CreateVariantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3563,7 +3565,8 @@ public final UnaryCallable updateVariantCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteVariantAsync(VariantName name) { + public final OperationFuture deleteVariantAsync( + @Nullable VariantName name) { DeleteVariantRequest request = DeleteVariantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteVariantAsync(request); @@ -3718,7 +3721,7 @@ public final UnaryCallable deleteVariantCallabl * @param parent Required. Parent value for ListRolloutsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolloutsPagedResponse listRollouts(FleetPackageName parent) { + public final ListRolloutsPagedResponse listRollouts(@Nullable FleetPackageName parent) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3887,7 +3890,7 @@ public final UnaryCallable listRollou * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rollout getRollout(RolloutName name) { + public final Rollout getRollout(@Nullable RolloutName name) { GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRollout(request); @@ -4000,7 +4003,8 @@ public final UnaryCallable getRolloutCallable() { * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture suspendRolloutAsync(RolloutName name) { + public final OperationFuture suspendRolloutAsync( + @Nullable RolloutName name) { SuspendRolloutRequest request = SuspendRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return suspendRolloutAsync(request); @@ -4149,7 +4153,8 @@ public final UnaryCallable suspendRolloutCalla * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resumeRolloutAsync(RolloutName name) { + public final OperationFuture resumeRolloutAsync( + @Nullable RolloutName name) { ResumeRolloutRequest request = ResumeRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeRolloutAsync(request); @@ -4298,7 +4303,8 @@ public final UnaryCallable resumeRolloutCallabl * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture abortRolloutAsync(RolloutName name) { + public final OperationFuture abortRolloutAsync( + @Nullable RolloutName name) { AbortRolloutRequest request = AbortRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return abortRolloutAsync(request); @@ -4643,9 +4649,10 @@ public static class ListResourceBundlesPage ListResourceBundlesPage> { private ListResourceBundlesPage( - PageContext + @Nullable + PageContext context, - ListResourceBundlesResponse response) { + @Nullable ListResourceBundlesResponse response) { super(context, response); } @@ -4655,15 +4662,17 @@ private static ListResourceBundlesPage createEmptyPage() { @Override protected ListResourceBundlesPage createPage( - PageContext + @Nullable + PageContext context, - ListResourceBundlesResponse response) { + @Nullable ListResourceBundlesResponse response) { return new ListResourceBundlesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4679,7 +4688,7 @@ public static class ListResourceBundlesFixedSizeCollection ListResourceBundlesFixedSizeCollection> { private ListResourceBundlesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4689,7 +4698,7 @@ private static ListResourceBundlesFixedSizeCollection createEmptyCollection() { @Override protected ListResourceBundlesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceBundlesFixedSizeCollection(pages, collectionSize); } } @@ -4726,8 +4735,9 @@ public static class ListFleetPackagesPage ListFleetPackagesPage> { private ListFleetPackagesPage( - PageContext context, - ListFleetPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListFleetPackagesResponse response) { super(context, response); } @@ -4737,14 +4747,16 @@ private static ListFleetPackagesPage createEmptyPage() { @Override protected ListFleetPackagesPage createPage( - PageContext context, - ListFleetPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListFleetPackagesResponse response) { return new ListFleetPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4759,7 +4771,7 @@ public static class ListFleetPackagesFixedSizeCollection ListFleetPackagesFixedSizeCollection> { private ListFleetPackagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4769,7 +4781,7 @@ private static ListFleetPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListFleetPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFleetPackagesFixedSizeCollection(pages, collectionSize); } } @@ -4802,8 +4814,8 @@ public static class ListReleasesPage extends AbstractPage { private ListReleasesPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { super(context, response); } @@ -4813,14 +4825,14 @@ private static ListReleasesPage createEmptyPage() { @Override protected ListReleasesPage createPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { return new ListReleasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4834,7 +4846,8 @@ public static class ListReleasesFixedSizeCollection ListReleasesPage, ListReleasesFixedSizeCollection> { - private ListReleasesFixedSizeCollection(List pages, int collectionSize) { + private ListReleasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4844,7 +4857,7 @@ private static ListReleasesFixedSizeCollection createEmptyCollection() { @Override protected ListReleasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleasesFixedSizeCollection(pages, collectionSize); } } @@ -4877,8 +4890,8 @@ public static class ListVariantsPage extends AbstractPage { private ListVariantsPage( - PageContext context, - ListVariantsResponse response) { + @Nullable PageContext context, + @Nullable ListVariantsResponse response) { super(context, response); } @@ -4888,14 +4901,14 @@ private static ListVariantsPage createEmptyPage() { @Override protected ListVariantsPage createPage( - PageContext context, - ListVariantsResponse response) { + @Nullable PageContext context, + @Nullable ListVariantsResponse response) { return new ListVariantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4909,7 +4922,8 @@ public static class ListVariantsFixedSizeCollection ListVariantsPage, ListVariantsFixedSizeCollection> { - private ListVariantsFixedSizeCollection(List pages, int collectionSize) { + private ListVariantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4919,7 +4933,7 @@ private static ListVariantsFixedSizeCollection createEmptyCollection() { @Override protected ListVariantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVariantsFixedSizeCollection(pages, collectionSize); } } @@ -4952,8 +4966,8 @@ public static class ListRolloutsPage extends AbstractPage { private ListRolloutsPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { super(context, response); } @@ -4963,14 +4977,14 @@ private static ListRolloutsPage createEmptyPage() { @Override protected ListRolloutsPage createPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { return new ListRolloutsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4984,7 +4998,8 @@ public static class ListRolloutsFixedSizeCollection ListRolloutsPage, ListRolloutsFixedSizeCollection> { - private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { + private ListRolloutsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4994,7 +5009,7 @@ private static ListRolloutsFixedSizeCollection createEmptyCollection() { @Override protected ListRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolloutsFixedSizeCollection(pages, collectionSize); } } @@ -5028,8 +5043,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5039,14 +5054,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5060,7 +5075,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5070,7 +5086,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliverySettings.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliverySettings.java index 3e485feb9817..0854a816c5fa 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliverySettings.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/ConfigDeliverySettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -418,7 +419,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); } @@ -438,7 +439,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigDeliveryStubSettings.newBuilder(clientContext)); } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStub.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStub.java index bcc981a4a7e2..8acca093d36d 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStub.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -82,11 +83,12 @@ @Generated("by gapic-generator-java") public abstract class ConfigDeliveryStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStubSettings.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStubSettings.java index 3872d29fae75..6c60e21810bf 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStubSettings.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/ConfigDeliveryStubSettings.java @@ -105,6 +105,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -921,7 +922,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); } @@ -1128,7 +1129,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listResourceBundlesSettings = diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryClient.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryClient.java index 1de5344a08bd..a2e3bb619853 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryClient.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliveryClient.java @@ -43,6 +43,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. /** @@ -654,7 +655,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConfigDeliveryClient implements BackgroundResource { - private final ConfigDeliverySettings settings; + private final @Nullable ConfigDeliverySettings settings; private final ConfigDeliveryStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -702,7 +703,7 @@ protected ConfigDeliveryClient(ConfigDeliveryStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConfigDeliverySettings getSettings() { + public final @Nullable ConfigDeliverySettings getSettings() { return settings; } @@ -750,7 +751,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListResourceBundlesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceBundlesPagedResponse listResourceBundles(LocationName parent) { + public final ListResourceBundlesPagedResponse listResourceBundles(@Nullable LocationName parent) { ListResourceBundlesRequest request = ListResourceBundlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -922,7 +923,7 @@ public final ListResourceBundlesPagedResponse listResourceBundles( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceBundle getResourceBundle(ResourceBundleName name) { + public final ResourceBundle getResourceBundle(@Nullable ResourceBundleName name) { GetResourceBundleRequest request = GetResourceBundleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1046,7 +1047,7 @@ public final UnaryCallable getResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createResourceBundleAsync( - LocationName parent, ResourceBundle resourceBundle, String resourceBundleId) { + @Nullable LocationName parent, ResourceBundle resourceBundle, String resourceBundleId) { CreateResourceBundleRequest request = CreateResourceBundleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1346,7 +1347,7 @@ public final OperationFuture updateResourceBu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteResourceBundleAsync( - ResourceBundleName name) { + @Nullable ResourceBundleName name) { DeleteResourceBundleRequest request = DeleteResourceBundleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1501,7 +1502,7 @@ public final OperationFuture deleteResourceBundleAsync * @param parent Required. Parent value for ListFleetPackagesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFleetPackagesPagedResponse listFleetPackages(LocationName parent) { + public final ListFleetPackagesPagedResponse listFleetPackages(@Nullable LocationName parent) { ListFleetPackagesRequest request = ListFleetPackagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1670,7 +1671,7 @@ public final ListFleetPackagesPagedResponse listFleetPackages(ListFleetPackagesR * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FleetPackage getFleetPackage(FleetPackageName name) { + public final FleetPackage getFleetPackage(@Nullable FleetPackageName name) { GetFleetPackageRequest request = GetFleetPackageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFleetPackage(request); @@ -1786,7 +1787,7 @@ public final UnaryCallable getFleetPackage * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFleetPackageAsync( - LocationName parent, FleetPackage fleetPackage, String fleetPackageId) { + @Nullable LocationName parent, FleetPackage fleetPackage, String fleetPackageId) { CreateFleetPackageRequest request = CreateFleetPackageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2080,7 +2081,7 @@ public final UnaryCallable updateFleetPack * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFleetPackageAsync( - FleetPackageName name) { + @Nullable FleetPackageName name) { DeleteFleetPackageRequest request = DeleteFleetPackageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2234,7 +2235,7 @@ public final UnaryCallable deleteFleetPack * @param parent Required. Parent value for ListReleasesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleasesPagedResponse listReleases(ResourceBundleName parent) { + public final ListReleasesPagedResponse listReleases(@Nullable ResourceBundleName parent) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2405,7 +2406,7 @@ public final UnaryCallable listReleas * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Release getRelease(ReleaseName name) { + public final Release getRelease(@Nullable ReleaseName name) { GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRelease(request); @@ -2525,7 +2526,7 @@ public final UnaryCallable getReleaseCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReleaseAsync( - ResourceBundleName parent, Release release, String releaseId) { + @Nullable ResourceBundleName parent, Release release, String releaseId) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2818,7 +2819,8 @@ public final UnaryCallable updateReleaseCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteReleaseAsync(ReleaseName name) { + public final OperationFuture deleteReleaseAsync( + @Nullable ReleaseName name) { DeleteReleaseRequest request = DeleteReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteReleaseAsync(request); @@ -2973,7 +2975,7 @@ public final UnaryCallable deleteReleaseCallabl * @param parent Required. Parent value for ListVariantsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVariantsPagedResponse listVariants(ReleaseName parent) { + public final ListVariantsPagedResponse listVariants(@Nullable ReleaseName parent) { ListVariantsRequest request = ListVariantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3147,7 +3149,7 @@ public final UnaryCallable listVarian * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Variant getVariant(VariantName name) { + public final Variant getVariant(@Nullable VariantName name) { GetVariantRequest request = GetVariantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVariant(request); @@ -3269,7 +3271,7 @@ public final UnaryCallable getVariantCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVariantAsync( - ReleaseName parent, Variant variant, String variantId) { + @Nullable ReleaseName parent, Variant variant, String variantId) { CreateVariantRequest request = CreateVariantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3564,7 +3566,8 @@ public final UnaryCallable updateVariantCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteVariantAsync(VariantName name) { + public final OperationFuture deleteVariantAsync( + @Nullable VariantName name) { DeleteVariantRequest request = DeleteVariantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteVariantAsync(request); @@ -3719,7 +3722,7 @@ public final UnaryCallable deleteVariantCallabl * @param parent Required. Parent value for ListRolloutsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolloutsPagedResponse listRollouts(FleetPackageName parent) { + public final ListRolloutsPagedResponse listRollouts(@Nullable FleetPackageName parent) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3888,7 +3891,7 @@ public final UnaryCallable listRollou * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rollout getRollout(RolloutName name) { + public final Rollout getRollout(@Nullable RolloutName name) { GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRollout(request); @@ -4001,7 +4004,8 @@ public final UnaryCallable getRolloutCallable() { * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture suspendRolloutAsync(RolloutName name) { + public final OperationFuture suspendRolloutAsync( + @Nullable RolloutName name) { SuspendRolloutRequest request = SuspendRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return suspendRolloutAsync(request); @@ -4150,7 +4154,8 @@ public final UnaryCallable suspendRolloutCalla * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture resumeRolloutAsync(RolloutName name) { + public final OperationFuture resumeRolloutAsync( + @Nullable RolloutName name) { ResumeRolloutRequest request = ResumeRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeRolloutAsync(request); @@ -4299,7 +4304,8 @@ public final UnaryCallable resumeRolloutCallabl * @param name Required. Name of the Rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture abortRolloutAsync(RolloutName name) { + public final OperationFuture abortRolloutAsync( + @Nullable RolloutName name) { AbortRolloutRequest request = AbortRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return abortRolloutAsync(request); @@ -4644,9 +4650,10 @@ public static class ListResourceBundlesPage ListResourceBundlesPage> { private ListResourceBundlesPage( - PageContext + @Nullable + PageContext context, - ListResourceBundlesResponse response) { + @Nullable ListResourceBundlesResponse response) { super(context, response); } @@ -4656,15 +4663,17 @@ private static ListResourceBundlesPage createEmptyPage() { @Override protected ListResourceBundlesPage createPage( - PageContext + @Nullable + PageContext context, - ListResourceBundlesResponse response) { + @Nullable ListResourceBundlesResponse response) { return new ListResourceBundlesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4680,7 +4689,7 @@ public static class ListResourceBundlesFixedSizeCollection ListResourceBundlesFixedSizeCollection> { private ListResourceBundlesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4690,7 +4699,7 @@ private static ListResourceBundlesFixedSizeCollection createEmptyCollection() { @Override protected ListResourceBundlesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceBundlesFixedSizeCollection(pages, collectionSize); } } @@ -4727,8 +4736,9 @@ public static class ListFleetPackagesPage ListFleetPackagesPage> { private ListFleetPackagesPage( - PageContext context, - ListFleetPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListFleetPackagesResponse response) { super(context, response); } @@ -4738,14 +4748,16 @@ private static ListFleetPackagesPage createEmptyPage() { @Override protected ListFleetPackagesPage createPage( - PageContext context, - ListFleetPackagesResponse response) { + @Nullable PageContext + context, + @Nullable ListFleetPackagesResponse response) { return new ListFleetPackagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4760,7 +4772,7 @@ public static class ListFleetPackagesFixedSizeCollection ListFleetPackagesFixedSizeCollection> { private ListFleetPackagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4770,7 +4782,7 @@ private static ListFleetPackagesFixedSizeCollection createEmptyCollection() { @Override protected ListFleetPackagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFleetPackagesFixedSizeCollection(pages, collectionSize); } } @@ -4803,8 +4815,8 @@ public static class ListReleasesPage extends AbstractPage { private ListReleasesPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { super(context, response); } @@ -4814,14 +4826,14 @@ private static ListReleasesPage createEmptyPage() { @Override protected ListReleasesPage createPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { return new ListReleasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4835,7 +4847,8 @@ public static class ListReleasesFixedSizeCollection ListReleasesPage, ListReleasesFixedSizeCollection> { - private ListReleasesFixedSizeCollection(List pages, int collectionSize) { + private ListReleasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4845,7 +4858,7 @@ private static ListReleasesFixedSizeCollection createEmptyCollection() { @Override protected ListReleasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleasesFixedSizeCollection(pages, collectionSize); } } @@ -4878,8 +4891,8 @@ public static class ListVariantsPage extends AbstractPage { private ListVariantsPage( - PageContext context, - ListVariantsResponse response) { + @Nullable PageContext context, + @Nullable ListVariantsResponse response) { super(context, response); } @@ -4889,14 +4902,14 @@ private static ListVariantsPage createEmptyPage() { @Override protected ListVariantsPage createPage( - PageContext context, - ListVariantsResponse response) { + @Nullable PageContext context, + @Nullable ListVariantsResponse response) { return new ListVariantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4910,7 +4923,8 @@ public static class ListVariantsFixedSizeCollection ListVariantsPage, ListVariantsFixedSizeCollection> { - private ListVariantsFixedSizeCollection(List pages, int collectionSize) { + private ListVariantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4920,7 +4934,7 @@ private static ListVariantsFixedSizeCollection createEmptyCollection() { @Override protected ListVariantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVariantsFixedSizeCollection(pages, collectionSize); } } @@ -4953,8 +4967,8 @@ public static class ListRolloutsPage extends AbstractPage { private ListRolloutsPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { super(context, response); } @@ -4964,14 +4978,14 @@ private static ListRolloutsPage createEmptyPage() { @Override protected ListRolloutsPage createPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { return new ListRolloutsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4985,7 +4999,8 @@ public static class ListRolloutsFixedSizeCollection ListRolloutsPage, ListRolloutsFixedSizeCollection> { - private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { + private ListRolloutsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4995,7 +5010,7 @@ private static ListRolloutsFixedSizeCollection createEmptyCollection() { @Override protected ListRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolloutsFixedSizeCollection(pages, collectionSize); } } @@ -5029,8 +5044,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5040,14 +5055,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5061,7 +5076,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5071,7 +5087,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliverySettings.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliverySettings.java index bc37b334e88a..4e6234b65b66 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliverySettings.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/ConfigDeliverySettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -419,7 +420,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); } @@ -439,7 +440,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigDeliveryStubSettings.newBuilder(clientContext)); } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java index cb8c7022b798..a8e1a661311d 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStub.java @@ -72,6 +72,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -84,11 +85,12 @@ @Generated("by gapic-generator-java") public abstract class ConfigDeliveryStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStubSettings.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStubSettings.java index cd4083883919..cc3440ebdd3d 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStubSettings.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/ConfigDeliveryStubSettings.java @@ -105,6 +105,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -922,7 +923,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); } @@ -1129,7 +1130,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listResourceBundlesSettings = diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/FleetPackageName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/FleetPackageName.java index 968ef299929e..eeb342122505 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/FleetPackageName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/FleetPackageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String fleetPackage .toString(); } - public static FleetPackageName parse(String formattedString) { + public static @Nullable FleetPackageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FleetPackageName> values) { List list = new ArrayList<>(values.size()); for (FleetPackageName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/LocationName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/LocationName.java index 6b4d22d7045c..1d4c3f3a9314 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/LocationName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ReleaseName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ReleaseName.java index 8c517d78cac7..f48dc92c7c10 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ReleaseName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ReleaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReleaseName parse(String formattedString) { + public static @Nullable ReleaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseName> values) { List list = new ArrayList<>(values.size()); for (ReleaseName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ResourceBundleName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ResourceBundleName.java index d32a7e6a513c..e1f0f44bc7f2 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ResourceBundleName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/ResourceBundleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String resourceBund .toString(); } - public static ResourceBundleName parse(String formattedString) { + public static @Nullable ResourceBundleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceBundleName> values) { List list = new ArrayList<>(values.size()); for (ResourceBundleName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/RolloutName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/RolloutName.java index 7b2dcbb8937b..9315a1151d2f 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/RolloutName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/RolloutName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RolloutName parse(String formattedString) { + public static @Nullable RolloutName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RolloutName> values) { List list = new ArrayList<>(values.size()); for (RolloutName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/VariantName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/VariantName.java index 39bff3826669..1079ddb26090 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/VariantName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/src/main/java/com/google/cloud/configdelivery/v1/VariantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VariantName parse(String formattedString) { + public static @Nullable VariantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VariantName> values) { List list = new ArrayList<>(values.size()); for (VariantName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/FleetPackageName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/FleetPackageName.java index 550c489f255f..45e6b0c9676e 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/FleetPackageName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/FleetPackageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String fleetPackage .toString(); } - public static FleetPackageName parse(String formattedString) { + public static @Nullable FleetPackageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FleetPackageName> values) { List list = new ArrayList<>(values.size()); for (FleetPackageName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/LocationName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/LocationName.java index 98c3b73787ca..14ca963ff118 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/LocationName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ReleaseName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ReleaseName.java index f68d0ec36209..dfa14c698686 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ReleaseName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ReleaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReleaseName parse(String formattedString) { + public static @Nullable ReleaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseName> values) { List list = new ArrayList<>(values.size()); for (ReleaseName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ResourceBundleName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ResourceBundleName.java index 71286af01a45..dba95456e05e 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ResourceBundleName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/ResourceBundleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String resourceBund .toString(); } - public static ResourceBundleName parse(String formattedString) { + public static @Nullable ResourceBundleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceBundleName> values) { List list = new ArrayList<>(values.size()); for (ResourceBundleName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/RolloutName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/RolloutName.java index 4a84338c2372..9f3b1ed9917c 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/RolloutName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/RolloutName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RolloutName parse(String formattedString) { + public static @Nullable RolloutName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RolloutName> values) { List list = new ArrayList<>(values.size()); for (RolloutName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/VariantName.java b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/VariantName.java index bf928abac755..1bacd09564b9 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/VariantName.java +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/src/main/java/com/google/cloud/configdelivery/v1beta/VariantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VariantName parse(String formattedString) { + public static @Nullable VariantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VariantName> values) { List list = new ArrayList<>(values.size()); for (VariantName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlClient.java b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlClient.java index ead8f6e2525f..05b5fde85622 100644 --- a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlClient.java +++ b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlClient.java @@ -24,6 +24,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. /** @@ -118,7 +119,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GatewayControlClient implements BackgroundResource { - private final GatewayControlSettings settings; + private final @Nullable GatewayControlSettings settings; private final GatewayControlStub stub; /** Constructs an instance of GatewayControlClient with default settings. */ @@ -158,7 +159,7 @@ protected GatewayControlClient(GatewayControlStub stub) { this.stub = stub; } - public final GatewayControlSettings getSettings() { + public final @Nullable GatewayControlSettings getSettings() { return settings; } diff --git a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlSettings.java b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlSettings.java index 1d9a156ac739..c8442fc4a1aa 100644 --- a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlSettings.java +++ b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/GatewayControlSettings.java @@ -30,6 +30,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -137,7 +138,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -157,7 +158,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GatewayControlStubSettings.newBuilder(clientContext)); } diff --git a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/GatewayControlStubSettings.java b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/GatewayControlStubSettings.java index 285484bb2cd7..18cad52760c7 100644 --- a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/GatewayControlStubSettings.java +++ b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/GatewayControlStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -246,7 +247,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java index 6f6aa18e3a9f..cbf2a86ab2bd 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java @@ -39,6 +39,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. /** @@ -1537,7 +1538,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContactCenterInsightsClient implements BackgroundResource { - private final ContactCenterInsightsSettings settings; + private final @Nullable ContactCenterInsightsSettings settings; private final ContactCenterInsightsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1585,7 +1586,7 @@ protected ContactCenterInsightsClient(ContactCenterInsightsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ContactCenterInsightsSettings getSettings() { + public final @Nullable ContactCenterInsightsSettings getSettings() { return settings; } @@ -1643,7 +1644,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Conversation createConversation( - LocationName parent, Conversation conversation, String conversationId) { + @Nullable LocationName parent, Conversation conversation, String conversationId) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1996,7 +1997,7 @@ public final UnaryCallable updateConver * @param name Required. The name of the conversation to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -2123,7 +2124,7 @@ public final UnaryCallable getConversation * @param parent Required. The parent resource of the conversation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(LocationName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable LocationName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2304,7 +2305,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * @param name Required. The name of the conversation to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2436,7 +2437,7 @@ public final UnaryCallable deleteConversationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAnalysisAsync( - ConversationName parent, Analysis analysis) { + @Nullable ConversationName parent, Analysis analysis) { CreateAnalysisRequest request = CreateAnalysisRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2604,7 +2605,7 @@ public final UnaryCallable createAnalysisCalla * @param name Required. The name of the analysis to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Analysis getAnalysis(AnalysisName name) { + public final Analysis getAnalysis(@Nullable AnalysisName name) { GetAnalysisRequest request = GetAnalysisRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnalysis(request); @@ -2730,7 +2731,7 @@ public final UnaryCallable getAnalysisCallable() { * @param parent Required. The parent resource of the analyses. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnalysesPagedResponse listAnalyses(ConversationName parent) { + public final ListAnalysesPagedResponse listAnalyses(@Nullable ConversationName parent) { ListAnalysesRequest request = ListAnalysesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2913,7 +2914,7 @@ public final UnaryCallable listAnalys * @param name Required. The name of the analysis to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAnalysis(AnalysisName name) { + public final void deleteAnalysis(@Nullable AnalysisName name) { DeleteAnalysisRequest request = DeleteAnalysisRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAnalysis(request); @@ -3044,7 +3045,8 @@ public final UnaryCallable deleteAnalysisCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - bulkAnalyzeConversationsAsync(LocationName parent, String filter, float analysisPercentage) { + bulkAnalyzeConversationsAsync( + @Nullable LocationName parent, String filter, float analysisPercentage) { BulkAnalyzeConversationsRequest request = BulkAnalyzeConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3227,7 +3229,7 @@ public final UnaryCallable deleteAnalysisCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - bulkDeleteConversationsAsync(LocationName parent, String filter) { + bulkDeleteConversationsAsync(@Nullable LocationName parent, String filter) { BulkDeleteConversationsRequest request = BulkDeleteConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3398,7 +3400,7 @@ public final UnaryCallable deleteAnalysisCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - ingestConversationsAsync(LocationName parent) { + ingestConversationsAsync(@Nullable LocationName parent) { IngestConversationsRequest request = IngestConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3566,7 +3568,7 @@ public final UnaryCallable ingestConversa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportInsightsDataAsync(LocationName parent) { + exportInsightsDataAsync(@Nullable LocationName parent) { ExportInsightsDataRequest request = ExportInsightsDataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3727,7 +3729,7 @@ public final UnaryCallable exportInsightsD * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIssueModelAsync( - LocationName parent, IssueModel issueModel) { + @Nullable LocationName parent, IssueModel issueModel) { CreateIssueModelRequest request = CreateIssueModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3975,7 +3977,7 @@ public final UnaryCallable updateIssueModel * @param name Required. The name of the issue model to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IssueModel getIssueModel(IssueModelName name) { + public final IssueModel getIssueModel(@Nullable IssueModelName name) { GetIssueModelRequest request = GetIssueModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIssueModel(request); @@ -4088,7 +4090,7 @@ public final UnaryCallable getIssueModelCallab * @param parent Required. The parent resource of the issue model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIssueModelsResponse listIssueModels(LocationName parent) { + public final ListIssueModelsResponse listIssueModels(@Nullable LocationName parent) { ListIssueModelsRequest request = ListIssueModelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4205,7 +4207,7 @@ public final ListIssueModelsResponse listIssueModels(ListIssueModelsRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteIssueModelAsync( - IssueModelName name) { + @Nullable IssueModelName name) { DeleteIssueModelRequest request = DeleteIssueModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIssueModelAsync(request); @@ -4352,7 +4354,7 @@ public final UnaryCallable deleteIssueModelC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deployIssueModelAsync(IssueModelName name) { + deployIssueModelAsync(@Nullable IssueModelName name) { DeployIssueModelRequest request = DeployIssueModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deployIssueModelAsync(request); @@ -4507,7 +4509,7 @@ public final UnaryCallable deployIssueModelC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployIssueModelAsync(IssueModelName name) { + undeployIssueModelAsync(@Nullable IssueModelName name) { UndeployIssueModelRequest request = UndeployIssueModelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4664,7 +4666,7 @@ public final UnaryCallable undeployIssueMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportIssueModelAsync(IssueModelName name) { + exportIssueModelAsync(@Nullable IssueModelName name) { ExportIssueModelRequest request = ExportIssueModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return exportIssueModelAsync(request); @@ -4814,7 +4816,7 @@ public final UnaryCallable exportIssueModelC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importIssueModelAsync(LocationName parent) { + importIssueModelAsync(@Nullable LocationName parent) { ImportIssueModelRequest request = ImportIssueModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4968,7 +4970,7 @@ public final UnaryCallable importIssueModelC * @param name Required. The name of the issue to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Issue getIssue(IssueName name) { + public final Issue getIssue(@Nullable IssueName name) { GetIssueRequest request = GetIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIssue(request); @@ -5082,7 +5084,7 @@ public final UnaryCallable getIssueCallable() { * @param parent Required. The parent resource of the issue. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIssuesResponse listIssues(IssueModelName parent) { + public final ListIssuesResponse listIssues(@Nullable IssueModelName parent) { ListIssuesRequest request = ListIssuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listIssues(request); @@ -5285,7 +5287,7 @@ public final UnaryCallable updateIssueCallable() { * @param name Required. The name of the issue to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIssue(IssueName name) { + public final void deleteIssue(@Nullable IssueName name) { DeleteIssueRequest request = DeleteIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIssue(request); @@ -5402,7 +5404,7 @@ public final UnaryCallable deleteIssueCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CalculateIssueModelStatsResponse calculateIssueModelStats( - IssueModelName issueModel) { + @Nullable IssueModelName issueModel) { CalculateIssueModelStatsRequest request = CalculateIssueModelStatsRequest.newBuilder() .setIssueModel(issueModel == null ? null : issueModel.toString()) @@ -5529,7 +5531,8 @@ public final CalculateIssueModelStatsResponse calculateIssueModelStats( * @param phraseMatcher Required. The phrase matcher resource to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhraseMatcher createPhraseMatcher(LocationName parent, PhraseMatcher phraseMatcher) { + public final PhraseMatcher createPhraseMatcher( + @Nullable LocationName parent, PhraseMatcher phraseMatcher) { CreatePhraseMatcherRequest request = CreatePhraseMatcherRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5657,7 +5660,7 @@ public final PhraseMatcher createPhraseMatcher(CreatePhraseMatcherRequest reques * @param name Required. The name of the phrase matcher to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhraseMatcher getPhraseMatcher(PhraseMatcherName name) { + public final PhraseMatcher getPhraseMatcher(@Nullable PhraseMatcherName name) { GetPhraseMatcherRequest request = GetPhraseMatcherRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPhraseMatcher(request); @@ -5775,7 +5778,7 @@ public final UnaryCallable getPhraseMatc * @param parent Required. The parent resource of the phrase matcher. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhraseMatchersPagedResponse listPhraseMatchers(LocationName parent) { + public final ListPhraseMatchersPagedResponse listPhraseMatchers(@Nullable LocationName parent) { ListPhraseMatchersRequest request = ListPhraseMatchersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5949,7 +5952,7 @@ public final ListPhraseMatchersPagedResponse listPhraseMatchers( * @param name Required. The name of the phrase matcher to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePhraseMatcher(PhraseMatcherName name) { + public final void deletePhraseMatcher(@Nullable PhraseMatcherName name) { DeletePhraseMatcherRequest request = DeletePhraseMatcherRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6163,7 +6166,7 @@ public final PhraseMatcher updatePhraseMatcher(UpdatePhraseMatcherRequest reques * @param location Required. The location of the conversations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CalculateStatsResponse calculateStats(LocationName location) { + public final CalculateStatsResponse calculateStats(@Nullable LocationName location) { CalculateStatsRequest request = CalculateStatsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -6282,7 +6285,7 @@ public final CalculateStatsResponse calculateStats(CalculateStatsRequest request * @param name Required. The name of the settings resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -6489,7 +6492,8 @@ public final UnaryCallable updateSettingsCallab * @param analysisRule Required. The analysis rule resource to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnalysisRule createAnalysisRule(LocationName parent, AnalysisRule analysisRule) { + public final AnalysisRule createAnalysisRule( + @Nullable LocationName parent, AnalysisRule analysisRule) { CreateAnalysisRuleRequest request = CreateAnalysisRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6615,7 +6619,7 @@ public final UnaryCallable createAnalys * @param name Required. The name of the AnalysisRule to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnalysisRule getAnalysisRule(AnalysisRuleName name) { + public final AnalysisRule getAnalysisRule(@Nullable AnalysisRuleName name) { GetAnalysisRuleRequest request = GetAnalysisRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnalysisRule(request); @@ -6731,7 +6735,7 @@ public final UnaryCallable getAnalysisRule * @param parent Required. The parent resource of the analysis rules. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnalysisRulesPagedResponse listAnalysisRules(LocationName parent) { + public final ListAnalysisRulesPagedResponse listAnalysisRules(@Nullable LocationName parent) { ListAnalysisRulesRequest request = ListAnalysisRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6996,7 +7000,7 @@ public final UnaryCallable updateAnalys * @param name Required. The name of the analysis rule to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAnalysisRule(AnalysisRuleName name) { + public final void deleteAnalysisRule(@Nullable AnalysisRuleName name) { DeleteAnalysisRuleRequest request = DeleteAnalysisRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7112,7 +7116,7 @@ public final UnaryCallable deleteAnalysisRuleC * @param name Required. The name of the encryption spec resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptionSpec getEncryptionSpec(EncryptionSpecName name) { + public final EncryptionSpec getEncryptionSpec(@Nullable EncryptionSpecName name) { GetEncryptionSpecRequest request = GetEncryptionSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7372,7 +7376,7 @@ public final UnaryCallable getEncrypti * @param view Required. The view resource to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final View createView(LocationName parent, View view) { + public final View createView(@Nullable LocationName parent, View view) { CreateViewRequest request = CreateViewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7494,7 +7498,7 @@ public final UnaryCallable createViewCallable() { * @param name Required. The name of the view to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final View getView(ViewName name) { + public final View getView(@Nullable ViewName name) { GetViewRequest request = GetViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getView(request); @@ -7608,7 +7612,7 @@ public final UnaryCallable getViewCallable() { * @param parent Required. The parent resource of the views. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListViewsPagedResponse listViews(LocationName parent) { + public final ListViewsPagedResponse listViews(@Nullable LocationName parent) { ListViewsRequest request = ListViewsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listViews(request); @@ -7859,7 +7863,7 @@ public final UnaryCallable updateViewCallable() { * @param name Required. The name of the view to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteView(ViewName name) { + public final void deleteView(@Nullable ViewName name) { DeleteViewRequest request = DeleteViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteView(request); @@ -8081,7 +8085,7 @@ public final UnaryCallable queryMetricsCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QaQuestion createQaQuestion( - QaScorecardRevisionName parent, QaQuestion qaQuestion, String qaQuestionId) { + @Nullable QaScorecardRevisionName parent, QaQuestion qaQuestion, String qaQuestionId) { CreateQaQuestionRequest request = CreateQaQuestionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8227,7 +8231,7 @@ public final UnaryCallable createQaQuestion * @param name Required. The name of the QaQuestion to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QaQuestion getQaQuestion(QaQuestionName name) { + public final QaQuestion getQaQuestion(@Nullable QaQuestionName name) { GetQaQuestionRequest request = GetQaQuestionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQaQuestion(request); @@ -8462,7 +8466,7 @@ public final UnaryCallable updateQaQuestion * @param name Required. The name of the QaQuestion to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQaQuestion(QaQuestionName name) { + public final void deleteQaQuestion(@Nullable QaQuestionName name) { DeleteQaQuestionRequest request = DeleteQaQuestionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteQaQuestion(request); @@ -8595,7 +8599,8 @@ public final UnaryCallable deleteQaQuestionCalla * @param parent Required. The parent resource of the questions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQaQuestionsPagedResponse listQaQuestions(QaScorecardRevisionName parent) { + public final ListQaQuestionsPagedResponse listQaQuestions( + @Nullable QaScorecardRevisionName parent) { ListQaQuestionsRequest request = ListQaQuestionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8783,7 +8788,7 @@ public final ListQaQuestionsPagedResponse listQaQuestions(ListQaQuestionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QaScorecard createQaScorecard( - LocationName parent, QaScorecard qaScorecard, String qaScorecardId) { + @Nullable LocationName parent, QaScorecard qaScorecard, String qaScorecardId) { CreateQaScorecardRequest request = CreateQaScorecardRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8919,7 +8924,7 @@ public final UnaryCallable createQaScorec * @param name Required. The name of the QaScorecard to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QaScorecard getQaScorecard(QaScorecardName name) { + public final QaScorecard getQaScorecard(@Nullable QaScorecardName name) { GetQaScorecardRequest request = GetQaScorecardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQaScorecard(request); @@ -9131,7 +9136,7 @@ public final UnaryCallable updateQaScorec * @param name Required. The name of the QaScorecard to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQaScorecard(QaScorecardName name) { + public final void deleteQaScorecard(@Nullable QaScorecardName name) { DeleteQaScorecardRequest request = DeleteQaScorecardRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9251,7 +9256,7 @@ public final UnaryCallable deleteQaScorecardCal * @param parent Required. The parent resource of the scorecards. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQaScorecardsPagedResponse listQaScorecards(LocationName parent) { + public final ListQaScorecardsPagedResponse listQaScorecards(@Nullable LocationName parent) { ListQaScorecardsRequest request = ListQaScorecardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9432,7 +9437,7 @@ public final ListQaScorecardsPagedResponse listQaScorecards(ListQaScorecardsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QaScorecardRevision createQaScorecardRevision( - QaScorecardName parent, + @Nullable QaScorecardName parent, QaScorecardRevision qaScorecardRevision, String qaScorecardRevisionId) { CreateQaScorecardRevisionRequest request = @@ -9574,7 +9579,7 @@ public final QaScorecardRevision createQaScorecardRevision( * @param name Required. The name of the QaScorecardRevision to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QaScorecardRevision getQaScorecardRevision(QaScorecardRevisionName name) { + public final QaScorecardRevision getQaScorecardRevision(@Nullable QaScorecardRevisionName name) { GetQaScorecardRevisionRequest request = GetQaScorecardRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9714,7 +9719,7 @@ public final QaScorecardRevision getQaScorecardRevision(GetQaScorecardRevisionRe */ public final OperationFuture tuneQaScorecardRevisionAsync( - QaScorecardRevisionName parent, String filter, boolean validateOnly) { + @Nullable QaScorecardRevisionName parent, String filter, boolean validateOnly) { TuneQaScorecardRevisionRequest request = TuneQaScorecardRevisionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10038,7 +10043,7 @@ public final QaScorecardRevision undeployQaScorecardRevision( * @param name Required. The name of the QaScorecardRevision to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQaScorecardRevision(QaScorecardRevisionName name) { + public final void deleteQaScorecardRevision(@Nullable QaScorecardRevisionName name) { DeleteQaScorecardRevisionRequest request = DeleteQaScorecardRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10170,7 +10175,7 @@ public final void deleteQaScorecardRevision(DeleteQaScorecardRevisionRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListQaScorecardRevisionsPagedResponse listQaScorecardRevisions( - QaScorecardName parent) { + @Nullable QaScorecardName parent) { ListQaScorecardRevisionsRequest request = ListQaScorecardRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10354,7 +10359,7 @@ public final ListQaScorecardRevisionsPagedResponse listQaScorecardRevisions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FeedbackLabel createFeedbackLabel( - ConversationName parent, FeedbackLabel feedbackLabel, String feedbackLabelId) { + @Nullable ConversationName parent, FeedbackLabel feedbackLabel, String feedbackLabelId) { CreateFeedbackLabelRequest request = CreateFeedbackLabelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10502,7 +10507,8 @@ public final FeedbackLabel createFeedbackLabel(CreateFeedbackLabelRequest reques * @param parent Required. The parent resource of the feedback labels. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeedbackLabelsPagedResponse listFeedbackLabels(ConversationName parent) { + public final ListFeedbackLabelsPagedResponse listFeedbackLabels( + @Nullable ConversationName parent) { ListFeedbackLabelsRequest request = ListFeedbackLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10690,7 +10696,7 @@ public final ListFeedbackLabelsPagedResponse listFeedbackLabels( * @param name Required. The name of the feedback label to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FeedbackLabel getFeedbackLabel(FeedbackLabelName name) { + public final FeedbackLabel getFeedbackLabel(@Nullable FeedbackLabelName name) { GetFeedbackLabelRequest request = GetFeedbackLabelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeedbackLabel(request); @@ -10910,7 +10916,7 @@ public final FeedbackLabel updateFeedbackLabel(UpdateFeedbackLabelRequest reques * @param name Required. The name of the feedback label to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFeedbackLabel(FeedbackLabelName name) { + public final void deleteFeedbackLabel(@Nullable FeedbackLabelName name) { DeleteFeedbackLabelRequest request = DeleteFeedbackLabelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11038,7 +11044,8 @@ public final UnaryCallable deleteFeedbackLabe * @param parent Required. The parent resource of all feedback labels per project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels(LocationName parent) { + public final ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels( + @Nullable LocationName parent) { ListAllFeedbackLabelsRequest request = ListAllFeedbackLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11214,7 +11221,7 @@ public final ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - bulkUploadFeedbackLabelsAsync(LocationName parent) { + bulkUploadFeedbackLabelsAsync(@Nullable LocationName parent) { BulkUploadFeedbackLabelsRequest request = BulkUploadFeedbackLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11376,7 +11383,7 @@ public final ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels( */ public final OperationFuture< BulkDownloadFeedbackLabelsResponse, BulkDownloadFeedbackLabelsMetadata> - bulkDownloadFeedbackLabelsAsync(LocationName parent) { + bulkDownloadFeedbackLabelsAsync(@Nullable LocationName parent) { BulkDownloadFeedbackLabelsRequest request = BulkDownloadFeedbackLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11587,8 +11594,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -11598,14 +11606,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11620,7 +11630,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11630,7 +11640,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -11663,8 +11673,8 @@ public static class ListAnalysesPage extends AbstractPage { private ListAnalysesPage( - PageContext context, - ListAnalysesResponse response) { + @Nullable PageContext context, + @Nullable ListAnalysesResponse response) { super(context, response); } @@ -11674,14 +11684,14 @@ private static ListAnalysesPage createEmptyPage() { @Override protected ListAnalysesPage createPage( - PageContext context, - ListAnalysesResponse response) { + @Nullable PageContext context, + @Nullable ListAnalysesResponse response) { return new ListAnalysesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11695,7 +11705,8 @@ public static class ListAnalysesFixedSizeCollection ListAnalysesPage, ListAnalysesFixedSizeCollection> { - private ListAnalysesFixedSizeCollection(List pages, int collectionSize) { + private ListAnalysesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11705,7 +11716,7 @@ private static ListAnalysesFixedSizeCollection createEmptyCollection() { @Override protected ListAnalysesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnalysesFixedSizeCollection(pages, collectionSize); } } @@ -11742,8 +11753,9 @@ public static class ListPhraseMatchersPage ListPhraseMatchersPage> { private ListPhraseMatchersPage( - PageContext context, - ListPhraseMatchersResponse response) { + @Nullable PageContext + context, + @Nullable ListPhraseMatchersResponse response) { super(context, response); } @@ -11753,14 +11765,16 @@ private static ListPhraseMatchersPage createEmptyPage() { @Override protected ListPhraseMatchersPage createPage( - PageContext context, - ListPhraseMatchersResponse response) { + @Nullable PageContext + context, + @Nullable ListPhraseMatchersResponse response) { return new ListPhraseMatchersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11775,7 +11789,7 @@ public static class ListPhraseMatchersFixedSizeCollection ListPhraseMatchersFixedSizeCollection> { private ListPhraseMatchersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11785,7 +11799,7 @@ private static ListPhraseMatchersFixedSizeCollection createEmptyCollection() { @Override protected ListPhraseMatchersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPhraseMatchersFixedSizeCollection(pages, collectionSize); } } @@ -11822,8 +11836,9 @@ public static class ListAnalysisRulesPage ListAnalysisRulesPage> { private ListAnalysisRulesPage( - PageContext context, - ListAnalysisRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListAnalysisRulesResponse response) { super(context, response); } @@ -11833,14 +11848,16 @@ private static ListAnalysisRulesPage createEmptyPage() { @Override protected ListAnalysisRulesPage createPage( - PageContext context, - ListAnalysisRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListAnalysisRulesResponse response) { return new ListAnalysisRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11855,7 +11872,7 @@ public static class ListAnalysisRulesFixedSizeCollection ListAnalysisRulesFixedSizeCollection> { private ListAnalysisRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11865,7 +11882,7 @@ private static ListAnalysisRulesFixedSizeCollection createEmptyCollection() { @Override protected ListAnalysisRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnalysisRulesFixedSizeCollection(pages, collectionSize); } } @@ -11892,8 +11909,8 @@ public static class ListViewsPage extends AbstractPage { private ListViewsPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { super(context, response); } @@ -11903,14 +11920,14 @@ private static ListViewsPage createEmptyPage() { @Override protected ListViewsPage createPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { return new ListViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11920,7 +11937,7 @@ public static class ListViewsFixedSizeCollection extends AbstractFixedSizeCollection< ListViewsRequest, ListViewsResponse, View, ListViewsPage, ListViewsFixedSizeCollection> { - private ListViewsFixedSizeCollection(List pages, int collectionSize) { + private ListViewsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11930,7 +11947,7 @@ private static ListViewsFixedSizeCollection createEmptyCollection() { @Override protected ListViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViewsFixedSizeCollection(pages, collectionSize); } } @@ -11964,8 +11981,8 @@ public static class ListQaQuestionsPage ListQaQuestionsRequest, ListQaQuestionsResponse, QaQuestion, ListQaQuestionsPage> { private ListQaQuestionsPage( - PageContext context, - ListQaQuestionsResponse response) { + @Nullable PageContext context, + @Nullable ListQaQuestionsResponse response) { super(context, response); } @@ -11975,14 +11992,14 @@ private static ListQaQuestionsPage createEmptyPage() { @Override protected ListQaQuestionsPage createPage( - PageContext context, - ListQaQuestionsResponse response) { + @Nullable PageContext context, + @Nullable ListQaQuestionsResponse response) { return new ListQaQuestionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11997,7 +12014,7 @@ public static class ListQaQuestionsFixedSizeCollection ListQaQuestionsFixedSizeCollection> { private ListQaQuestionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12007,7 +12024,7 @@ private static ListQaQuestionsFixedSizeCollection createEmptyCollection() { @Override protected ListQaQuestionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQaQuestionsFixedSizeCollection(pages, collectionSize); } } @@ -12041,8 +12058,9 @@ public static class ListQaScorecardsPage ListQaScorecardsRequest, ListQaScorecardsResponse, QaScorecard, ListQaScorecardsPage> { private ListQaScorecardsPage( - PageContext context, - ListQaScorecardsResponse response) { + @Nullable PageContext + context, + @Nullable ListQaScorecardsResponse response) { super(context, response); } @@ -12052,14 +12070,16 @@ private static ListQaScorecardsPage createEmptyPage() { @Override protected ListQaScorecardsPage createPage( - PageContext context, - ListQaScorecardsResponse response) { + @Nullable PageContext + context, + @Nullable ListQaScorecardsResponse response) { return new ListQaScorecardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12074,7 +12094,7 @@ public static class ListQaScorecardsFixedSizeCollection ListQaScorecardsFixedSizeCollection> { private ListQaScorecardsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12084,7 +12104,7 @@ private static ListQaScorecardsFixedSizeCollection createEmptyCollection() { @Override protected ListQaScorecardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQaScorecardsFixedSizeCollection(pages, collectionSize); } } @@ -12125,12 +12145,13 @@ public static class ListQaScorecardRevisionsPage ListQaScorecardRevisionsPage> { private ListQaScorecardRevisionsPage( - PageContext< + @Nullable + PageContext< ListQaScorecardRevisionsRequest, ListQaScorecardRevisionsResponse, QaScorecardRevision> context, - ListQaScorecardRevisionsResponse response) { + @Nullable ListQaScorecardRevisionsResponse response) { super(context, response); } @@ -12140,18 +12161,20 @@ private static ListQaScorecardRevisionsPage createEmptyPage() { @Override protected ListQaScorecardRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListQaScorecardRevisionsRequest, ListQaScorecardRevisionsResponse, QaScorecardRevision> context, - ListQaScorecardRevisionsResponse response) { + @Nullable ListQaScorecardRevisionsResponse response) { return new ListQaScorecardRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListQaScorecardRevisionsRequest, ListQaScorecardRevisionsResponse, QaScorecardRevision> @@ -12170,7 +12193,7 @@ public static class ListQaScorecardRevisionsFixedSizeCollection ListQaScorecardRevisionsFixedSizeCollection> { private ListQaScorecardRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12180,7 +12203,7 @@ private static ListQaScorecardRevisionsFixedSizeCollection createEmptyCollection @Override protected ListQaScorecardRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQaScorecardRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -12217,8 +12240,9 @@ public static class ListFeedbackLabelsPage ListFeedbackLabelsPage> { private ListFeedbackLabelsPage( - PageContext context, - ListFeedbackLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeedbackLabelsResponse response) { super(context, response); } @@ -12228,14 +12252,16 @@ private static ListFeedbackLabelsPage createEmptyPage() { @Override protected ListFeedbackLabelsPage createPage( - PageContext context, - ListFeedbackLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListFeedbackLabelsResponse response) { return new ListFeedbackLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12250,7 +12276,7 @@ public static class ListFeedbackLabelsFixedSizeCollection ListFeedbackLabelsFixedSizeCollection> { private ListFeedbackLabelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12260,7 +12286,7 @@ private static ListFeedbackLabelsFixedSizeCollection createEmptyCollection() { @Override protected ListFeedbackLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeedbackLabelsFixedSizeCollection(pages, collectionSize); } } @@ -12298,9 +12324,10 @@ public static class ListAllFeedbackLabelsPage ListAllFeedbackLabelsPage> { private ListAllFeedbackLabelsPage( - PageContext + @Nullable + PageContext context, - ListAllFeedbackLabelsResponse response) { + @Nullable ListAllFeedbackLabelsResponse response) { super(context, response); } @@ -12310,15 +12337,17 @@ private static ListAllFeedbackLabelsPage createEmptyPage() { @Override protected ListAllFeedbackLabelsPage createPage( - PageContext + @Nullable + PageContext context, - ListAllFeedbackLabelsResponse response) { + @Nullable ListAllFeedbackLabelsResponse response) { return new ListAllFeedbackLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -12334,7 +12363,7 @@ public static class ListAllFeedbackLabelsFixedSizeCollection ListAllFeedbackLabelsFixedSizeCollection> { private ListAllFeedbackLabelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12344,7 +12373,7 @@ private static ListAllFeedbackLabelsFixedSizeCollection createEmptyCollection() @Override protected ListAllFeedbackLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAllFeedbackLabelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java index 75a58530a526..2806270d0e05 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -749,7 +750,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); } @@ -770,7 +771,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContactCenterInsightsStubSettings.newBuilder(clientContext)); } diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java index 91d5c9e1b7af..28217dfe3530 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java @@ -166,6 +166,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,11 +178,12 @@ @Generated("by gapic-generator-java") public abstract class ContactCenterInsightsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java index 01fafe8ae7e0..7fd8a5f7b9c7 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java @@ -200,6 +200,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1688,7 +1689,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); } @@ -2065,7 +2066,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisName.java index b1cf28b8b091..853fc272c9a8 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -199,7 +200,7 @@ public static String formatProjectLocationAuthorizedViewSetAuthorizedViewConvers .toString(); } - public static AnalysisName parse(String formattedString) { + public static @Nullable AnalysisName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -234,7 +235,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnalysisName> values) { List list = new ArrayList<>(values.size()); for (AnalysisName value : values) { if (value == null) { @@ -293,7 +294,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisRuleName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisRuleName.java index 5e18b809a902..a197745501a9 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisRuleName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String analysisRule .toString(); } - public static AnalysisRuleName parse(String formattedString) { + public static @Nullable AnalysisRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnalysisRuleName> values) { List list = new ArrayList<>(values.size()); for (AnalysisRuleName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationName.java index fe620f6ff1f7..c96218acf9af 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -180,7 +181,7 @@ public static String formatProjectLocationAuthorizedViewSetAuthorizedViewConvers .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -210,7 +211,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -266,7 +267,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/EncryptionSpecName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/EncryptionSpecName.java index 2d8b7355bbe2..8f43c5ffeb5a 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/EncryptionSpecName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/EncryptionSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static EncryptionSpecName parse(String formattedString) { + public static @Nullable EncryptionSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EncryptionSpecName> values) { List list = new ArrayList<>(values.size()); for (EncryptionSpecName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/FeedbackLabelName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/FeedbackLabelName.java index 94572933ee77..83b7bc73201e 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/FeedbackLabelName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/FeedbackLabelName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationConversationFeedbackLabelName( .toString(); } - public static FeedbackLabelName parse(String formattedString) { + public static @Nullable FeedbackLabelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -236,7 +237,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeedbackLabelName> values) { List list = new ArrayList<>(values.size()); for (FeedbackLabelName value : values) { if (value == null) { @@ -295,7 +296,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModelName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModelName.java index b6196ed2be77..077c03c9d398 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModelName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String issueModel) .toString(); } - public static IssueModelName parse(String formattedString) { + public static @Nullable IssueModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IssueModelName> values) { List list = new ArrayList<>(values.size()); for (IssueModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueName.java index 53da25c649cb..ef7d9bd7916a 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String issueModel, .toString(); } - public static IssueName parse(String formattedString) { + public static @Nullable IssueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IssueName> values) { List list = new ArrayList<>(values.size()); for (IssueName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/LocationName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/LocationName.java index d14a11c33fea..688d4d95d02a 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/LocationName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/PhraseMatcherName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/PhraseMatcherName.java index 8a01b37e8fe8..cc060f1c700d 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/PhraseMatcherName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/PhraseMatcherName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String phraseMatche .toString(); } - public static PhraseMatcherName parse(String formattedString) { + public static @Nullable PhraseMatcherName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhraseMatcherName> values) { List list = new ArrayList<>(values.size()); for (PhraseMatcherName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaQuestionName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaQuestionName.java index 9dc594643d8e..c7014ed8e125 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaQuestionName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaQuestionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static QaQuestionName parse(String formattedString) { + public static @Nullable QaQuestionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QaQuestionName> values) { List list = new ArrayList<>(values.size()); for (QaQuestionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardName.java index 1764eb573af3..3aa3b12da93f 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String qaScorecard) .toString(); } - public static QaScorecardName parse(String formattedString) { + public static @Nullable QaScorecardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QaScorecardName> values) { List list = new ArrayList<>(values.size()); for (QaScorecardName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardRevisionName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardRevisionName.java index 4c739e5cb7ba..8ebc0d61296f 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardRevisionName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/QaScorecardRevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static QaScorecardRevisionName parse(String formattedString) { + public static @Nullable QaScorecardRevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QaScorecardRevisionName> values) { List list = new ArrayList<>(values.size()); for (QaScorecardRevisionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsName.java index fe8d5183ff31..4fab2e50064e 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ViewName.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ViewName.java index d9e28a4e61f0..7965d3196bbd 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ViewName.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String view) { return newBuilder().setProject(project).setLocation(location).setView(view).build().toString(); } - public static ViewName parse(String formattedString) { + public static @Nullable ViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ViewName> values) { List list = new ArrayList<>(values.size()); for (ViewName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index e501b2d6f6ed..2a8920b0ddd3 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -86,6 +86,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. /** @@ -812,7 +813,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ClusterManagerClient implements BackgroundResource { - private final ClusterManagerSettings settings; + private final @Nullable ClusterManagerSettings settings; private final ClusterManagerStub stub; /** Constructs an instance of ClusterManagerClient with default settings. */ @@ -852,7 +853,7 @@ protected ClusterManagerClient(ClusterManagerStub stub) { this.stub = stub; } - public final ClusterManagerSettings getSettings() { + public final @Nullable ClusterManagerSettings getSettings() { return settings; } @@ -5206,9 +5207,11 @@ public static class ListUsableSubnetworksPage ListUsableSubnetworksPage> { private ListUsableSubnetworksPage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, - ListUsableSubnetworksResponse response) { + @Nullable ListUsableSubnetworksResponse response) { super(context, response); } @@ -5218,15 +5221,19 @@ private static ListUsableSubnetworksPage createEmptyPage() { @Override protected ListUsableSubnetworksPage createPage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, - ListUsableSubnetworksResponse response) { + @Nullable ListUsableSubnetworksResponse response) { return new ListUsableSubnetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5242,7 +5249,7 @@ public static class ListUsableSubnetworksFixedSizeCollection ListUsableSubnetworksFixedSizeCollection> { private ListUsableSubnetworksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5252,7 +5259,7 @@ private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() @Override protected ListUsableSubnetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index 6740d11a0509..75c1fe673854 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -391,7 +392,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); } @@ -411,7 +412,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ClusterManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index c1ac1924a640..1e0e5818929b 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -579,7 +580,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); } @@ -756,7 +757,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java index 9ac414903ba9..bb17c32a294b 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java @@ -92,6 +92,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. /** @@ -826,7 +827,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ClusterManagerClient implements BackgroundResource { - private final ClusterManagerSettings settings; + private final @Nullable ClusterManagerSettings settings; private final ClusterManagerStub stub; /** Constructs an instance of ClusterManagerClient with default settings. */ @@ -866,7 +867,7 @@ protected ClusterManagerClient(ClusterManagerStub stub) { this.stub = stub; } - public final ClusterManagerSettings getSettings() { + public final @Nullable ClusterManagerSettings getSettings() { return settings; } @@ -4751,9 +4752,11 @@ public static class ListUsableSubnetworksPage ListUsableSubnetworksPage> { private ListUsableSubnetworksPage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, - ListUsableSubnetworksResponse response) { + @Nullable ListUsableSubnetworksResponse response) { super(context, response); } @@ -4763,15 +4766,19 @@ private static ListUsableSubnetworksPage createEmptyPage() { @Override protected ListUsableSubnetworksPage createPage( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, - ListUsableSubnetworksResponse response) { + @Nullable ListUsableSubnetworksResponse response) { return new ListUsableSubnetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4787,7 +4794,7 @@ public static class ListUsableSubnetworksFixedSizeCollection ListUsableSubnetworksFixedSizeCollection> { private ListUsableSubnetworksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4797,7 +4804,7 @@ private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() @Override protected ListUsableSubnetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java index 19a2eaa1149e..3cd09255e683 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -393,7 +394,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -413,7 +414,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ClusterManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java index 61a1b06d57f5..15c4beea619c 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -565,7 +566,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -749,7 +750,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java index e3f459a2285b..4ebd24b18326 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java @@ -37,6 +37,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContainerAnalysisClient implements BackgroundResource { - private final ContainerAnalysisSettings settings; + private final @Nullable ContainerAnalysisSettings settings; private final ContainerAnalysisStub stub; /** @@ -300,7 +301,7 @@ protected ContainerAnalysisClient(ContainerAnalysisStub stub) { this.stub = stub; } - public final ContainerAnalysisSettings getSettings() { + public final @Nullable ContainerAnalysisSettings getSettings() { return settings; } @@ -357,7 +358,7 @@ public ContainerAnalysisStub getStub() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -517,7 +518,7 @@ public final UnaryCallable setIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -674,7 +675,7 @@ public final UnaryCallable getIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -817,7 +818,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary( - ProjectName parent, String filter) { + @Nullable ProjectName parent, String filter) { GetVulnerabilityOccurrencesSummaryRequest request = GetVulnerabilityOccurrencesSummaryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java index 4c0ee171e837..2f2f54f4f919 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,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); } @@ -202,7 +203,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContainerAnalysisStubSettings.newBuilder(clientContext)); } diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java index 29ccb77cd4ba..33cd6d83d251 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,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); } @@ -326,7 +327,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java index 463566ed3f47..cdd85648d2da 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java @@ -36,6 +36,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. /** @@ -247,7 +248,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ContainerAnalysisV1Beta1Client implements BackgroundResource { - private final ContainerAnalysisV1Beta1Settings settings; + private final @Nullable ContainerAnalysisV1Beta1Settings settings; private final ContainerAnalysisV1Beta1Stub stub; /** Constructs an instance of ContainerAnalysisV1Beta1Client with default settings. */ @@ -289,7 +290,7 @@ protected ContainerAnalysisV1Beta1Client(ContainerAnalysisV1Beta1Stub stub) { this.stub = stub; } - public final ContainerAnalysisV1Beta1Settings getSettings() { + public final @Nullable ContainerAnalysisV1Beta1Settings getSettings() { return settings; } @@ -347,7 +348,7 @@ public ContainerAnalysisV1Beta1Stub getStub() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -530,7 +531,7 @@ public final UnaryCallable setIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -710,7 +711,7 @@ public final UnaryCallable getIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Settings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Settings.java index ba33661df85b..08c881289b42 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Settings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Settings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContainerAnalysisV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java index 4032707fdcdb..f9c8809dc31e 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Client.java @@ -57,6 +57,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. /** @@ -371,7 +372,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GrafeasV1Beta1Client implements BackgroundResource { - private final GrafeasV1Beta1Settings settings; + private final @Nullable GrafeasV1Beta1Settings settings; private final GrafeasV1Beta1Stub stub; /** Constructs an instance of GrafeasV1Beta1Client with default settings. */ @@ -411,7 +412,7 @@ protected GrafeasV1Beta1Client(GrafeasV1Beta1Stub stub) { this.stub = stub; } - public final GrafeasV1Beta1Settings getSettings() { + public final @Nullable GrafeasV1Beta1Settings getSettings() { return settings; } @@ -1476,8 +1477,8 @@ public static class ListOccurrencesPage ListOccurrencesRequest, ListOccurrencesResponse, Occurrence, ListOccurrencesPage> { private ListOccurrencesPage( - PageContext context, - ListOccurrencesResponse response) { + @Nullable PageContext context, + @Nullable ListOccurrencesResponse response) { super(context, response); } @@ -1487,14 +1488,14 @@ private static ListOccurrencesPage createEmptyPage() { @Override protected ListOccurrencesPage createPage( - PageContext context, - ListOccurrencesResponse response) { + @Nullable PageContext context, + @Nullable ListOccurrencesResponse response) { return new ListOccurrencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1509,7 +1510,7 @@ public static class ListOccurrencesFixedSizeCollection ListOccurrencesFixedSizeCollection> { private ListOccurrencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1519,7 +1520,7 @@ private static ListOccurrencesFixedSizeCollection createEmptyCollection() { @Override protected ListOccurrencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOccurrencesFixedSizeCollection(pages, collectionSize); } } @@ -1546,8 +1547,8 @@ public static class ListNotesPage extends AbstractPage { private ListNotesPage( - PageContext context, - ListNotesResponse response) { + @Nullable PageContext context, + @Nullable ListNotesResponse response) { super(context, response); } @@ -1557,14 +1558,14 @@ private static ListNotesPage createEmptyPage() { @Override protected ListNotesPage createPage( - PageContext context, - ListNotesResponse response) { + @Nullable PageContext context, + @Nullable ListNotesResponse response) { return new ListNotesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1574,7 +1575,7 @@ public static class ListNotesFixedSizeCollection extends AbstractFixedSizeCollection< ListNotesRequest, ListNotesResponse, Note, ListNotesPage, ListNotesFixedSizeCollection> { - private ListNotesFixedSizeCollection(List pages, int collectionSize) { + private ListNotesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1584,7 +1585,7 @@ private static ListNotesFixedSizeCollection createEmptyCollection() { @Override protected ListNotesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotesFixedSizeCollection(pages, collectionSize); } } @@ -1621,8 +1622,9 @@ public static class ListNoteOccurrencesPage ListNoteOccurrencesPage> { private ListNoteOccurrencesPage( - PageContext context, - ListNoteOccurrencesResponse response) { + @Nullable PageContext + context, + @Nullable ListNoteOccurrencesResponse response) { super(context, response); } @@ -1632,14 +1634,16 @@ private static ListNoteOccurrencesPage createEmptyPage() { @Override protected ListNoteOccurrencesPage createPage( - PageContext context, - ListNoteOccurrencesResponse response) { + @Nullable PageContext + context, + @Nullable ListNoteOccurrencesResponse response) { return new ListNoteOccurrencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1654,7 +1658,7 @@ public static class ListNoteOccurrencesFixedSizeCollection ListNoteOccurrencesFixedSizeCollection> { private ListNoteOccurrencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1664,7 +1668,7 @@ private static ListNoteOccurrencesFixedSizeCollection createEmptyCollection() { @Override protected ListNoteOccurrencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNoteOccurrencesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Settings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Settings.java index 05e73288c54d..fd6c646fc62b 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Settings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/GrafeasV1Beta1Settings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -259,7 +260,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); } @@ -279,7 +280,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GrafeasV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/ContainerAnalysisV1Beta1StubSettings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/ContainerAnalysisV1Beta1StubSettings.java index eb76fd007ac4..54bd0d266c24 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/ContainerAnalysisV1Beta1StubSettings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/ContainerAnalysisV1Beta1StubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,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); } @@ -325,7 +326,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/GrafeasV1Beta1StubSettings.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/GrafeasV1Beta1StubSettings.java index e4acba9f7b33..f70fd52398a7 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/GrafeasV1Beta1StubSettings.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/GrafeasV1Beta1StubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -513,7 +514,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); } @@ -634,7 +635,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOccurrenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ProjectName.java b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ProjectName.java index 6baa39afcf56..43265367115b 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ProjectName.java +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/src/main/java/com/google/containeranalysis/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java index 4fd37cdc6c93..65bfdbc45910 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceClient.java @@ -33,6 +33,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. /** @@ -204,7 +205,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentLinkServiceClient implements BackgroundResource { - private final DocumentLinkServiceSettings settings; + private final @Nullable DocumentLinkServiceSettings settings; private final DocumentLinkServiceStub stub; /** Constructs an instance of DocumentLinkServiceClient with default settings. */ @@ -244,7 +245,7 @@ protected DocumentLinkServiceClient(DocumentLinkServiceStub stub) { this.stub = stub; } - public final DocumentLinkServiceSettings getSettings() { + public final @Nullable DocumentLinkServiceSettings getSettings() { return settings; } @@ -275,7 +276,7 @@ public DocumentLinkServiceStub getStub() { * Format: projects/{project_number}/locations/{location}/documents/{target_document_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLinkedTargetsResponse listLinkedTargets(DocumentName parent) { + public final ListLinkedTargetsResponse listLinkedTargets(@Nullable DocumentName parent) { ListLinkedTargetsRequest request = ListLinkedTargetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -404,7 +405,7 @@ public final ListLinkedTargetsResponse listLinkedTargets(ListLinkedTargetsReques * Format: projects/{project_number}/locations/{location}/documents/{source_document_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLinkedSourcesPagedResponse listLinkedSources(DocumentName parent) { + public final ListLinkedSourcesPagedResponse listLinkedSources(@Nullable DocumentName parent) { ListLinkedSourcesRequest request = ListLinkedSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -590,7 +591,8 @@ public final ListLinkedSourcesPagedResponse listLinkedSources(ListLinkedSourcesR * (source_document_id). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DocumentLink createDocumentLink(DocumentName parent, DocumentLink documentLink) { + public final DocumentLink createDocumentLink( + @Nullable DocumentName parent, DocumentLink documentLink) { CreateDocumentLinkRequest request = CreateDocumentLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -725,7 +727,7 @@ public final UnaryCallable createDocume * projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocumentLink(DocumentLinkName name) { + public final void deleteDocumentLink(@Nullable DocumentLinkName name) { DeleteDocumentLinkRequest request = DeleteDocumentLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -887,8 +889,9 @@ public static class ListLinkedSourcesPage ListLinkedSourcesPage> { private ListLinkedSourcesPage( - PageContext context, - ListLinkedSourcesResponse response) { + @Nullable PageContext + context, + @Nullable ListLinkedSourcesResponse response) { super(context, response); } @@ -898,14 +901,16 @@ private static ListLinkedSourcesPage createEmptyPage() { @Override protected ListLinkedSourcesPage createPage( - PageContext context, - ListLinkedSourcesResponse response) { + @Nullable PageContext + context, + @Nullable ListLinkedSourcesResponse response) { return new ListLinkedSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -920,7 +925,7 @@ public static class ListLinkedSourcesFixedSizeCollection ListLinkedSourcesFixedSizeCollection> { private ListLinkedSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -930,7 +935,7 @@ private static ListLinkedSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListLinkedSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLinkedSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java index 419774d7bc2b..46db762c24c6 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentLinkServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java index cbbb60a8c760..54f43ad4a169 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceClient.java @@ -33,6 +33,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. /** @@ -224,7 +225,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentSchemaServiceClient implements BackgroundResource { - private final DocumentSchemaServiceSettings settings; + private final @Nullable DocumentSchemaServiceSettings settings; private final DocumentSchemaServiceStub stub; /** Constructs an instance of DocumentSchemaServiceClient with default settings. */ @@ -264,7 +265,7 @@ protected DocumentSchemaServiceClient(DocumentSchemaServiceStub stub) { this.stub = stub; } - public final DocumentSchemaServiceSettings getSettings() { + public final @Nullable DocumentSchemaServiceSettings getSettings() { return settings; } @@ -298,7 +299,7 @@ public DocumentSchemaServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DocumentSchema createDocumentSchema( - LocationName parent, DocumentSchema documentSchema) { + @Nullable LocationName parent, DocumentSchema documentSchema) { CreateDocumentSchemaRequest request = CreateDocumentSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -434,7 +435,7 @@ public final DocumentSchema createDocumentSchema(CreateDocumentSchemaRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DocumentSchema updateDocumentSchema( - DocumentSchemaName name, DocumentSchema documentSchema) { + @Nullable DocumentSchemaName name, DocumentSchema documentSchema) { UpdateDocumentSchemaRequest request = UpdateDocumentSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -577,7 +578,7 @@ public final DocumentSchema updateDocumentSchema(UpdateDocumentSchemaRequest req * @param name Required. The name of the document schema to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DocumentSchema getDocumentSchema(DocumentSchemaName name) { + public final DocumentSchema getDocumentSchema(@Nullable DocumentSchemaName name) { GetDocumentSchemaRequest request = GetDocumentSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -697,7 +698,7 @@ public final UnaryCallable getDocument * @param name Required. The name of the document schema to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocumentSchema(DocumentSchemaName name) { + public final void deleteDocumentSchema(@Nullable DocumentSchemaName name) { DeleteDocumentSchemaRequest request = DeleteDocumentSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -823,7 +824,7 @@ public final UnaryCallable deleteDocumentSch * projects/{project_number}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentSchemasPagedResponse listDocumentSchemas(LocationName parent) { + public final ListDocumentSchemasPagedResponse listDocumentSchemas(@Nullable LocationName parent) { ListDocumentSchemasRequest request = ListDocumentSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1036,9 +1037,10 @@ public static class ListDocumentSchemasPage ListDocumentSchemasPage> { private ListDocumentSchemasPage( - PageContext + @Nullable + PageContext context, - ListDocumentSchemasResponse response) { + @Nullable ListDocumentSchemasResponse response) { super(context, response); } @@ -1048,15 +1050,17 @@ private static ListDocumentSchemasPage createEmptyPage() { @Override protected ListDocumentSchemasPage createPage( - PageContext + @Nullable + PageContext context, - ListDocumentSchemasResponse response) { + @Nullable ListDocumentSchemasResponse response) { return new ListDocumentSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1072,7 +1076,7 @@ public static class ListDocumentSchemasFixedSizeCollection ListDocumentSchemasFixedSizeCollection> { private ListDocumentSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1082,7 +1086,7 @@ private static ListDocumentSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentSchemasFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java index b5b598bf29a1..957504bf8bb1 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -178,7 +179,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); } @@ -199,7 +200,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentSchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java index c7dae0f95040..9073cae699e2 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceClient.java @@ -34,6 +34,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. /** @@ -278,7 +279,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentServiceClient implements BackgroundResource { - private final DocumentServiceSettings settings; + private final @Nullable DocumentServiceSettings settings; private final DocumentServiceStub stub; /** Constructs an instance of DocumentServiceClient with default settings. */ @@ -318,7 +319,7 @@ protected DocumentServiceClient(DocumentServiceStub stub) { this.stub = stub; } - public final DocumentServiceSettings getSettings() { + public final @Nullable DocumentServiceSettings getSettings() { return settings; } @@ -350,7 +351,8 @@ public DocumentServiceStub getStub() { * @param document Required. The document to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CreateDocumentResponse createDocument(LocationName parent, Document document) { + public final CreateDocumentResponse createDocument( + @Nullable LocationName parent, Document document) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -480,7 +482,7 @@ public final CreateDocumentResponse createDocument(CreateDocumentRequest request * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -606,7 +608,8 @@ public final UnaryCallable getDocumentCallable() { * @param document Required. The document to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UpdateDocumentResponse updateDocument(DocumentName name, Document document) { + public final UpdateDocumentResponse updateDocument( + @Nullable DocumentName name, Document document) { UpdateDocumentRequest request = UpdateDocumentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -746,7 +749,7 @@ public final UpdateDocumentResponse updateDocument(UpdateDocumentRequest request * projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocument(DocumentName name) { + public final void deleteDocument(@Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDocument(request); @@ -872,7 +875,7 @@ public final UnaryCallable deleteDocumentCallable( * projects/{project_number}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchDocumentsPagedResponse searchDocuments(LocationName parent) { + public final SearchDocumentsPagedResponse searchDocuments(@Nullable LocationName parent) { SearchDocumentsRequest request = SearchDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1069,7 +1072,7 @@ public final SearchDocumentsPagedResponse searchDocuments(SearchDocumentsRequest * projects/{project_number}/locations/{location}/documents/{document}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document lockDocument(DocumentName name) { + public final Document lockDocument(@Nullable DocumentName name) { LockDocumentRequest request = LockDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return lockDocument(request); @@ -1433,12 +1436,13 @@ public static class SearchDocumentsPage SearchDocumentsPage> { private SearchDocumentsPage( - PageContext< + @Nullable + PageContext< SearchDocumentsRequest, SearchDocumentsResponse, SearchDocumentsResponse.MatchingDocument> context, - SearchDocumentsResponse response) { + @Nullable SearchDocumentsResponse response) { super(context, response); } @@ -1448,18 +1452,20 @@ private static SearchDocumentsPage createEmptyPage() { @Override protected SearchDocumentsPage createPage( - PageContext< + @Nullable + PageContext< SearchDocumentsRequest, SearchDocumentsResponse, SearchDocumentsResponse.MatchingDocument> context, - SearchDocumentsResponse response) { + @Nullable SearchDocumentsResponse response) { return new SearchDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchDocumentsRequest, SearchDocumentsResponse, SearchDocumentsResponse.MatchingDocument> @@ -1478,7 +1484,7 @@ public static class SearchDocumentsFixedSizeCollection SearchDocumentsFixedSizeCollection> { private SearchDocumentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1488,7 +1494,7 @@ private static SearchDocumentsFixedSizeCollection createEmptyCollection() { @Override protected SearchDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDocumentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java index 4105a5cd99c7..e4d2760680cd 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -190,7 +191,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java index f24abe392c19..786779be0321 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceClient.java @@ -29,6 +29,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PipelineServiceClient implements BackgroundResource { - private final PipelineServiceSettings settings; + private final @Nullable PipelineServiceSettings settings; private final PipelineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -189,7 +190,7 @@ protected PipelineServiceClient(PipelineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PipelineServiceSettings getSettings() { + public final @Nullable PipelineServiceSettings getSettings() { return settings; } @@ -237,7 +238,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture runPipelineAsync( - LocationName name) { + @Nullable LocationName name) { RunPipelineRequest request = RunPipelineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runPipelineAsync(request); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java index 04e22eb8c1e5..b8979093b2c9 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/PipelineServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,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); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PipelineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java index d8e74f2f057a..0a034a870f71 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceClient.java @@ -33,6 +33,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RuleSetServiceClient implements BackgroundResource { - private final RuleSetServiceSettings settings; + private final @Nullable RuleSetServiceSettings settings; private final RuleSetServiceStub stub; /** Constructs an instance of RuleSetServiceClient with default settings. */ @@ -258,7 +259,7 @@ protected RuleSetServiceClient(RuleSetServiceStub stub) { this.stub = stub; } - public final RuleSetServiceSettings getSettings() { + public final @Nullable RuleSetServiceSettings getSettings() { return settings; } @@ -290,7 +291,7 @@ public RuleSetServiceStub getStub() { * @param ruleSet Required. The rule set to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuleSet createRuleSet(LocationName parent, RuleSet ruleSet) { + public final RuleSet createRuleSet(@Nullable LocationName parent, RuleSet ruleSet) { CreateRuleSetRequest request = CreateRuleSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -408,7 +409,7 @@ public final UnaryCallable createRuleSetCallable( * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuleSet getRuleSet(RuleSetName name) { + public final RuleSet getRuleSet(@Nullable RuleSetName name) { GetRuleSetRequest request = GetRuleSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRuleSet(request); @@ -521,7 +522,7 @@ public final UnaryCallable getRuleSetCallable() { * @param ruleSet Required. The rule set to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuleSet updateRuleSet(RuleSetName name, RuleSet ruleSet) { + public final RuleSet updateRuleSet(@Nullable RuleSetName name, RuleSet ruleSet) { UpdateRuleSetRequest request = UpdateRuleSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -642,7 +643,7 @@ public final UnaryCallable updateRuleSetCallable( * projects/{project_number}/locations/{location}/ruleSets/{rule_set_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRuleSet(RuleSetName name) { + public final void deleteRuleSet(@Nullable RuleSetName name) { DeleteRuleSetRequest request = DeleteRuleSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRuleSet(request); @@ -754,7 +755,7 @@ public final UnaryCallable deleteRuleSetCallable() * projects/{project_number}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuleSetsPagedResponse listRuleSets(LocationName parent) { + public final ListRuleSetsPagedResponse listRuleSets(@Nullable LocationName parent) { ListRuleSetsRequest request = ListRuleSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -952,8 +953,8 @@ public static class ListRuleSetsPage extends AbstractPage { private ListRuleSetsPage( - PageContext context, - ListRuleSetsResponse response) { + @Nullable PageContext context, + @Nullable ListRuleSetsResponse response) { super(context, response); } @@ -963,14 +964,14 @@ private static ListRuleSetsPage createEmptyPage() { @Override protected ListRuleSetsPage createPage( - PageContext context, - ListRuleSetsResponse response) { + @Nullable PageContext context, + @Nullable ListRuleSetsResponse response) { return new ListRuleSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -984,7 +985,8 @@ public static class ListRuleSetsFixedSizeCollection ListRuleSetsPage, ListRuleSetsFixedSizeCollection> { - private ListRuleSetsFixedSizeCollection(List pages, int collectionSize) { + private ListRuleSetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -994,7 +996,7 @@ private static ListRuleSetsFixedSizeCollection createEmptyCollection() { @Override protected ListRuleSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuleSetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java index 43a939536df2..8f40f2191927 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RuleSetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java index c103592016a3..1a94608d9d47 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceClient.java @@ -33,6 +33,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SynonymSetServiceClient implements BackgroundResource { - private final SynonymSetServiceSettings settings; + private final @Nullable SynonymSetServiceSettings settings; private final SynonymSetServiceStub stub; /** Constructs an instance of SynonymSetServiceClient with default settings. */ @@ -262,7 +263,7 @@ protected SynonymSetServiceClient(SynonymSetServiceStub stub) { this.stub = stub; } - public final SynonymSetServiceSettings getSettings() { + public final @Nullable SynonymSetServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public SynonymSetServiceStub getStub() { * @param synonymSet Required. The synonymSet to be created for a context * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SynonymSet createSynonymSet(LocationName parent, SynonymSet synonymSet) { + public final SynonymSet createSynonymSet(@Nullable LocationName parent, SynonymSet synonymSet) { CreateSynonymSetRequest request = CreateSynonymSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -418,7 +419,7 @@ public final UnaryCallable createSynonymSet * projects/{project_number}/locations/{location}/synonymSets/{context}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SynonymSet getSynonymSet(SynonymSetName name) { + public final SynonymSet getSynonymSet(@Nullable SynonymSetName name) { GetSynonymSetRequest request = GetSynonymSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSynonymSet(request); @@ -535,7 +536,7 @@ public final UnaryCallable getSynonymSetCallab * @param synonymSet Required. The synonymSet to be updated for the customer * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SynonymSet updateSynonymSet(SynonymSetName name, SynonymSet synonymSet) { + public final SynonymSet updateSynonymSet(@Nullable SynonymSetName name, SynonymSet synonymSet) { UpdateSynonymSetRequest request = UpdateSynonymSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -658,7 +659,7 @@ public final UnaryCallable updateSynonymSet * projects/{project_number}/locations/{location}/synonymSets/{context}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSynonymSet(SynonymSetName name) { + public final void deleteSynonymSet(@Nullable SynonymSetName name) { DeleteSynonymSetRequest request = DeleteSynonymSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSynonymSet(request); @@ -774,7 +775,7 @@ public final UnaryCallable deleteSynonymSetCalla * projects/{project_number}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSynonymSetsPagedResponse listSynonymSets(LocationName parent) { + public final ListSynonymSetsPagedResponse listSynonymSets(@Nullable LocationName parent) { ListSynonymSetsRequest request = ListSynonymSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -975,8 +976,8 @@ public static class ListSynonymSetsPage ListSynonymSetsRequest, ListSynonymSetsResponse, SynonymSet, ListSynonymSetsPage> { private ListSynonymSetsPage( - PageContext context, - ListSynonymSetsResponse response) { + @Nullable PageContext context, + @Nullable ListSynonymSetsResponse response) { super(context, response); } @@ -986,14 +987,14 @@ private static ListSynonymSetsPage createEmptyPage() { @Override protected ListSynonymSetsPage createPage( - PageContext context, - ListSynonymSetsResponse response) { + @Nullable PageContext context, + @Nullable ListSynonymSetsResponse response) { return new ListSynonymSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1008,7 +1009,7 @@ public static class ListSynonymSetsFixedSizeCollection ListSynonymSetsFixedSizeCollection> { private ListSynonymSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1018,7 +1019,7 @@ private static ListSynonymSetsFixedSizeCollection createEmptyCollection() { @Override protected ListSynonymSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSynonymSetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java index 80d063d3d369..4671ea714c28 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SynonymSetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java index b480dc35f990..351c0fb38482 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentLinkServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLinkedTargetsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java index 33cdd35bbfa0..73b959816215 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentSchemaServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -322,7 +323,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); } @@ -412,7 +413,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDocumentSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java index 70bde57d98f0..db28b3e5f404 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/DocumentServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,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); } @@ -450,7 +451,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java index a3c449537de8..b2104d5e4380 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,11 +38,12 @@ @Generated("by gapic-generator-java") public abstract class PipelineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java index 3367257ce57a..92e7c3985957 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/PipelineServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -253,7 +254,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); } @@ -322,7 +323,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java index a793d45ce4a7..5ef003d075f1 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/RuleSetServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -389,7 +390,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRuleSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java index 9a4cd8af06be..31bdc65ccdec 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/SynonymSetServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSynonymSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java index 15477b0fed6a..28e3a65ecb35 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DocumentLinkName parse(String formattedString) { + public static @Nullable DocumentLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentLinkName> values) { List list = new ArrayList<>(values.size()); for (DocumentLinkName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java index 05b6237d8657..49bd88760c68 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -149,7 +150,7 @@ public static String formatProjectLocationReferenceIdName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -173,7 +174,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -225,7 +226,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java index f06052a964cb..a8151d51e708 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/DocumentSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String documentSche .toString(); } - public static DocumentSchemaName parse(String formattedString) { + public static @Nullable DocumentSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentSchemaName> values) { List list = new ArrayList<>(values.size()); for (DocumentSchemaName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java index cf89db6edd33..508811f7799f 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java index 080350bb3fa7..12fa89605827 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/RuleSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String ruleSet) { .toString(); } - public static RuleSetName parse(String formattedString) { + public static @Nullable RuleSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleSetName> values) { List list = new ArrayList<>(values.size()); for (RuleSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java index a2123b551848..57efae1ba251 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/SynonymSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String context) { .toString(); } - public static SynonymSetName parse(String formattedString) { + public static @Nullable SynonymSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SynonymSetName> values) { List list = new ArrayList<>(values.size()); for (SynonymSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionClient.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionClient.java index 6ad5acb0953b..7f4232a37e71 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionClient.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionClient.java @@ -39,6 +39,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataFusionClient implements BackgroundResource { - private final DataFusionSettings settings; + private final @Nullable DataFusionSettings settings; private final DataFusionStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -299,7 +300,7 @@ protected DataFusionClient(DataFusionStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataFusionSettings getSettings() { + public final @Nullable DataFusionSettings getSettings() { return settings; } @@ -348,7 +349,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * the format projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAvailableVersionsPagedResponse listAvailableVersions(LocationName parent) { + public final ListAvailableVersionsPagedResponse listAvailableVersions( + @Nullable LocationName parent) { ListAvailableVersionsRequest request = ListAvailableVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -686,7 +688,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -846,7 +848,8 @@ public final UnaryCallable createInstanceCalla * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1235,8 +1238,9 @@ public static class ListAvailableVersionsPage ListAvailableVersionsPage> { private ListAvailableVersionsPage( - PageContext context, - ListAvailableVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAvailableVersionsResponse response) { super(context, response); } @@ -1246,14 +1250,16 @@ private static ListAvailableVersionsPage createEmptyPage() { @Override protected ListAvailableVersionsPage createPage( - PageContext context, - ListAvailableVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAvailableVersionsResponse response) { return new ListAvailableVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1268,7 +1274,7 @@ public static class ListAvailableVersionsFixedSizeCollection ListAvailableVersionsFixedSizeCollection> { private ListAvailableVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1278,7 +1284,7 @@ private static ListAvailableVersionsFixedSizeCollection createEmptyCollection() @Override protected ListAvailableVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAvailableVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1312,8 +1318,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1323,14 +1329,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1344,7 +1350,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1354,7 +1361,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionSettings.java index b0cf9cc9a484..a49e333acac9 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/DataFusionSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataFusionStubSettings.newBuilder(clientContext)); } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStub.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStub.java index 0b5add7b5aca..ad3e750adbd2 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStub.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class DataFusionStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java index ba8e05aaf16c..e1dfa40ce29a 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/DataFusionStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,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); } @@ -546,7 +547,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAvailableVersionsSettings = diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionClient.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionClient.java index ac162536d253..661e8fa0cfc8 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionClient.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionClient.java @@ -39,6 +39,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. /** @@ -361,7 +362,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataFusionClient implements BackgroundResource { - private final DataFusionSettings settings; + private final @Nullable DataFusionSettings settings; private final DataFusionStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -407,7 +408,7 @@ protected DataFusionClient(DataFusionStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataFusionSettings getSettings() { + public final @Nullable DataFusionSettings getSettings() { return settings; } @@ -456,7 +457,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * the format projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAvailableVersionsPagedResponse listAvailableVersions(LocationName parent) { + public final ListAvailableVersionsPagedResponse listAvailableVersions( + @Nullable LocationName parent) { ListAvailableVersionsRequest request = ListAvailableVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -794,7 +796,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -954,7 +956,8 @@ public final UnaryCallable createInstanceCalla * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1442,7 +1445,7 @@ public final RemoveIamPolicyResponse removeIamPolicy(RemoveIamPolicyRequest requ * @param parent Required. The instance to list its namespaces. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNamespacesPagedResponse listNamespaces(InstanceName parent) { + public final ListNamespacesPagedResponse listNamespaces(@Nullable InstanceName parent) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1606,7 +1609,7 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re * @param parent Required. The resource on which DNS peering will be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AddDnsPeeringResponse addDnsPeering(InstanceName parent) { + public final AddDnsPeeringResponse addDnsPeering(@Nullable InstanceName parent) { AddDnsPeeringRequest request = AddDnsPeeringRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1719,7 +1722,7 @@ public final UnaryCallable addDnsPe * @param parent Required. The resource on which DNS peering will be removed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveDnsPeeringResponse removeDnsPeering(InstanceName parent) { + public final RemoveDnsPeeringResponse removeDnsPeering(@Nullable InstanceName parent) { RemoveDnsPeeringRequest request = RemoveDnsPeeringRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1836,7 +1839,7 @@ public final RemoveDnsPeeringResponse removeDnsPeering(RemoveDnsPeeringRequest r * @param parent Required. The resource on which dns peering will be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDnsPeeringsPagedResponse listDnsPeerings(InstanceName parent) { + public final ListDnsPeeringsPagedResponse listDnsPeerings(@Nullable InstanceName parent) { ListDnsPeeringsRequest request = ListDnsPeeringsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2038,8 +2041,9 @@ public static class ListAvailableVersionsPage ListAvailableVersionsPage> { private ListAvailableVersionsPage( - PageContext context, - ListAvailableVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAvailableVersionsResponse response) { super(context, response); } @@ -2049,14 +2053,16 @@ private static ListAvailableVersionsPage createEmptyPage() { @Override protected ListAvailableVersionsPage createPage( - PageContext context, - ListAvailableVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListAvailableVersionsResponse response) { return new ListAvailableVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2071,7 +2077,7 @@ public static class ListAvailableVersionsFixedSizeCollection ListAvailableVersionsFixedSizeCollection> { private ListAvailableVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2081,7 +2087,7 @@ private static ListAvailableVersionsFixedSizeCollection createEmptyCollection() @Override protected ListAvailableVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAvailableVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2115,8 +2121,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2126,14 +2132,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2147,7 +2153,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2157,7 +2164,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2191,8 +2198,8 @@ public static class ListNamespacesPage ListNamespacesRequest, ListNamespacesResponse, Namespace, ListNamespacesPage> { private ListNamespacesPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { super(context, response); } @@ -2202,14 +2209,14 @@ private static ListNamespacesPage createEmptyPage() { @Override protected ListNamespacesPage createPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { return new ListNamespacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2223,7 +2230,8 @@ public static class ListNamespacesFixedSizeCollection ListNamespacesPage, ListNamespacesFixedSizeCollection> { - private ListNamespacesFixedSizeCollection(List pages, int collectionSize) { + private ListNamespacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2233,7 +2241,7 @@ private static ListNamespacesFixedSizeCollection createEmptyCollection() { @Override protected ListNamespacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNamespacesFixedSizeCollection(pages, collectionSize); } } @@ -2267,8 +2275,8 @@ public static class ListDnsPeeringsPage ListDnsPeeringsRequest, ListDnsPeeringsResponse, DnsPeering, ListDnsPeeringsPage> { private ListDnsPeeringsPage( - PageContext context, - ListDnsPeeringsResponse response) { + @Nullable PageContext context, + @Nullable ListDnsPeeringsResponse response) { super(context, response); } @@ -2278,14 +2286,14 @@ private static ListDnsPeeringsPage createEmptyPage() { @Override protected ListDnsPeeringsPage createPage( - PageContext context, - ListDnsPeeringsResponse response) { + @Nullable PageContext context, + @Nullable ListDnsPeeringsResponse response) { return new ListDnsPeeringsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2300,7 +2308,7 @@ public static class ListDnsPeeringsFixedSizeCollection ListDnsPeeringsFixedSizeCollection> { private ListDnsPeeringsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2310,7 +2318,7 @@ private static ListDnsPeeringsFixedSizeCollection createEmptyCollection() { @Override protected ListDnsPeeringsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDnsPeeringsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionSettings.java index 4835e2a67603..30af24de91ce 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/DataFusionSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,7 +283,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); } @@ -302,7 +303,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataFusionStubSettings.newBuilder(clientContext)); } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStub.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStub.java index 19aa5c4b56cc..60a1cf62f7b5 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStub.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,11 +65,12 @@ @Generated("by gapic-generator-java") public abstract class DataFusionStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java index 18f5857368f3..5aae3fc111da 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/DataFusionStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -632,7 +633,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); } @@ -748,7 +749,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAvailableVersionsSettings = diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/InstanceName.java b/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/InstanceName.java index c390ab3cdae2..6cd287ee30bd 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/InstanceName.java +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/LocationName.java b/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/LocationName.java index c3a8095f7c35..ca411ce94b47 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/LocationName.java +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/src/main/java/com/google/cloud/datafusion/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/InstanceName.java b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/InstanceName.java index ddc9e975f643..fcf9b1dc7687 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/InstanceName.java +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/LocationName.java b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/LocationName.java index 5c1bed215677..c420f22705cb 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/LocationName.java +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/src/main/java/com/google/cloud/datafusion/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java index 785b750eb572..0d7e7ddc1029 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterClient.java @@ -33,6 +33,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. /** @@ -221,7 +222,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DatabaseCenterClient implements BackgroundResource { - private final DatabaseCenterSettings settings; + private final @Nullable DatabaseCenterSettings settings; private final DatabaseCenterStub stub; /** Constructs an instance of DatabaseCenterClient with default settings. */ @@ -261,7 +262,7 @@ protected DatabaseCenterClient(DatabaseCenterStub stub) { this.stub = stub; } - public final DatabaseCenterSettings getSettings() { + public final @Nullable DatabaseCenterSettings getSettings() { return settings; } @@ -1001,8 +1002,8 @@ public static class QueryProductsPage QueryProductsRequest, QueryProductsResponse, Product, QueryProductsPage> { private QueryProductsPage( - PageContext context, - QueryProductsResponse response) { + @Nullable PageContext context, + @Nullable QueryProductsResponse response) { super(context, response); } @@ -1012,14 +1013,14 @@ private static QueryProductsPage createEmptyPage() { @Override protected QueryProductsPage createPage( - PageContext context, - QueryProductsResponse response) { + @Nullable PageContext context, + @Nullable QueryProductsResponse response) { return new QueryProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1033,7 +1034,8 @@ public static class QueryProductsFixedSizeCollection QueryProductsPage, QueryProductsFixedSizeCollection> { - private QueryProductsFixedSizeCollection(List pages, int collectionSize) { + private QueryProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1043,7 +1045,7 @@ private static QueryProductsFixedSizeCollection createEmptyCollection() { @Override protected QueryProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryProductsFixedSizeCollection(pages, collectionSize); } } @@ -1077,8 +1079,9 @@ public static class AggregateFleetPage AggregateFleetRequest, AggregateFleetResponse, AggregateFleetRow, AggregateFleetPage> { private AggregateFleetPage( - PageContext context, - AggregateFleetResponse response) { + @Nullable PageContext + context, + @Nullable AggregateFleetResponse response) { super(context, response); } @@ -1088,14 +1091,16 @@ private static AggregateFleetPage createEmptyPage() { @Override protected AggregateFleetPage createPage( - PageContext context, - AggregateFleetResponse response) { + @Nullable PageContext + context, + @Nullable AggregateFleetResponse response) { return new AggregateFleetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1109,7 +1114,8 @@ public static class AggregateFleetFixedSizeCollection AggregateFleetPage, AggregateFleetFixedSizeCollection> { - private AggregateFleetFixedSizeCollection(List pages, int collectionSize) { + private AggregateFleetFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1119,7 +1125,7 @@ private static AggregateFleetFixedSizeCollection createEmptyCollection() { @Override protected AggregateFleetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregateFleetFixedSizeCollection(pages, collectionSize); } } @@ -1161,12 +1167,13 @@ public static class QueryDatabaseResourceGroupsPage QueryDatabaseResourceGroupsPage> { private QueryDatabaseResourceGroupsPage( - PageContext< + @Nullable + PageContext< QueryDatabaseResourceGroupsRequest, QueryDatabaseResourceGroupsResponse, DatabaseResourceGroup> context, - QueryDatabaseResourceGroupsResponse response) { + @Nullable QueryDatabaseResourceGroupsResponse response) { super(context, response); } @@ -1176,18 +1183,20 @@ private static QueryDatabaseResourceGroupsPage createEmptyPage() { @Override protected QueryDatabaseResourceGroupsPage createPage( - PageContext< + @Nullable + PageContext< QueryDatabaseResourceGroupsRequest, QueryDatabaseResourceGroupsResponse, DatabaseResourceGroup> context, - QueryDatabaseResourceGroupsResponse response) { + @Nullable QueryDatabaseResourceGroupsResponse response) { return new QueryDatabaseResourceGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryDatabaseResourceGroupsRequest, QueryDatabaseResourceGroupsResponse, DatabaseResourceGroup> @@ -1206,7 +1215,7 @@ public static class QueryDatabaseResourceGroupsFixedSizeCollection QueryDatabaseResourceGroupsFixedSizeCollection> { private QueryDatabaseResourceGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1216,7 +1225,7 @@ private static QueryDatabaseResourceGroupsFixedSizeCollection createEmptyCollect @Override protected QueryDatabaseResourceGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDatabaseResourceGroupsFixedSizeCollection(pages, collectionSize); } } @@ -1254,9 +1263,10 @@ public static class AggregateQueryStatsPage AggregateQueryStatsPage> { private AggregateQueryStatsPage( - PageContext + @Nullable + PageContext context, - AggregateQueryStatsResponse response) { + @Nullable AggregateQueryStatsResponse response) { super(context, response); } @@ -1266,15 +1276,17 @@ private static AggregateQueryStatsPage createEmptyPage() { @Override protected AggregateQueryStatsPage createPage( - PageContext + @Nullable + PageContext context, - AggregateQueryStatsResponse response) { + @Nullable AggregateQueryStatsResponse response) { return new AggregateQueryStatsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1290,7 +1302,7 @@ public static class AggregateQueryStatsFixedSizeCollection AggregateQueryStatsFixedSizeCollection> { private AggregateQueryStatsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1300,7 +1312,7 @@ private static AggregateQueryStatsFixedSizeCollection createEmptyCollection() { @Override protected AggregateQueryStatsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregateQueryStatsFixedSizeCollection(pages, collectionSize); } } @@ -1332,8 +1344,9 @@ public static class QueryIssuesPage QueryIssuesRequest, QueryIssuesResponse, DatabaseResourceIssue, QueryIssuesPage> { private QueryIssuesPage( - PageContext context, - QueryIssuesResponse response) { + @Nullable PageContext + context, + @Nullable QueryIssuesResponse response) { super(context, response); } @@ -1343,14 +1356,16 @@ private static QueryIssuesPage createEmptyPage() { @Override protected QueryIssuesPage createPage( - PageContext context, - QueryIssuesResponse response) { + @Nullable PageContext + context, + @Nullable QueryIssuesResponse response) { return new QueryIssuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1364,7 +1379,8 @@ public static class QueryIssuesFixedSizeCollection QueryIssuesPage, QueryIssuesFixedSizeCollection> { - private QueryIssuesFixedSizeCollection(List pages, int collectionSize) { + private QueryIssuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1374,7 +1390,7 @@ private static QueryIssuesFixedSizeCollection createEmptyCollection() { @Override protected QueryIssuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryIssuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java index 2d88a10ba1d0..b43c2331ca25 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/DatabaseCenterSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatabaseCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java index b7c887d978e7..74f144b61c7e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/DatabaseCenterStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -589,7 +590,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); } @@ -667,7 +668,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); queryProductsSettings = PagedCallSettings.newBuilder(QUERY_PRODUCTS_PAGE_STR_FACT); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java index 844e523fb050..0e512344b7ba 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java @@ -45,6 +45,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. /** @@ -870,7 +871,7 @@ @Deprecated @Generated("by gapic-generator-java") public class DataCatalogClient implements BackgroundResource { - private final DataCatalogSettings settings; + private final @Nullable DataCatalogSettings settings; private final DataCatalogStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -917,7 +918,7 @@ protected DataCatalogClient(DataCatalogStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataCatalogSettings getSettings() { + public final @Nullable DataCatalogSettings getSettings() { return settings; } @@ -1213,7 +1214,7 @@ public final UnaryCallable searchCa */ @Deprecated public final EntryGroup createEntryGroup( - LocationName parent, String entryGroupId, EntryGroup entryGroup) { + @Nullable LocationName parent, String entryGroupId, EntryGroup entryGroup) { CreateEntryGroupRequest request = CreateEntryGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1429,7 +1430,7 @@ public final UnaryCallable createEntryGroup * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final EntryGroup getEntryGroup(EntryGroupName name) { + public final EntryGroup getEntryGroup(@Nullable EntryGroupName name) { GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntryGroup(request); @@ -1488,7 +1489,7 @@ public final EntryGroup getEntryGroup(String name) { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final EntryGroup getEntryGroup(EntryGroupName name, FieldMask readMask) { + public final EntryGroup getEntryGroup(@Nullable EntryGroupName name, FieldMask readMask) { GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1761,7 +1762,7 @@ public final UnaryCallable updateEntryGroup * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteEntryGroup(EntryGroupName name) { + public final void deleteEntryGroup(@Nullable EntryGroupName name) { DeleteEntryGroupRequest request = DeleteEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntryGroup(request); @@ -1895,7 +1896,7 @@ public final UnaryCallable deleteEntryGroupCalla * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListEntryGroupsPagedResponse listEntryGroups(LocationName parent) { + public final ListEntryGroupsPagedResponse listEntryGroups(@Nullable LocationName parent) { ListEntryGroupsRequest request = ListEntryGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2088,7 +2089,7 @@ public final ListEntryGroupsPagedResponse listEntryGroups(ListEntryGroupsRequest * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Entry createEntry(EntryGroupName parent, String entryId, Entry entry) { + public final Entry createEntry(@Nullable EntryGroupName parent, String entryId, Entry entry) { CreateEntryRequest request = CreateEntryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2426,7 +2427,7 @@ public final UnaryCallable updateEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteEntry(EntryName name) { + public final void deleteEntry(@Nullable EntryName name) { DeleteEntryRequest request = DeleteEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntry(request); @@ -2566,7 +2567,7 @@ public final UnaryCallable deleteEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Entry getEntry(EntryName name) { + public final Entry getEntry(@Nullable EntryName name) { GetEntryRequest request = GetEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntry(request); @@ -2758,7 +2759,7 @@ public final UnaryCallable lookupEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListEntriesPagedResponse listEntries(EntryGroupName parent) { + public final ListEntriesPagedResponse listEntries(@Nullable EntryGroupName parent) { ListEntriesRequest request = ListEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3109,7 +3110,7 @@ public final UnaryCallable modifyEntryCont */ @Deprecated public final TagTemplate createTagTemplate( - LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { + @Nullable LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { CreateTagTemplateRequest request = CreateTagTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3261,7 +3262,7 @@ public final UnaryCallable createTagTempl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final TagTemplate getTagTemplate(TagTemplateName name) { + public final TagTemplate getTagTemplate(@Nullable TagTemplateName name) { GetTagTemplateRequest request = GetTagTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTagTemplate(request); @@ -3545,7 +3546,7 @@ public final UnaryCallable updateTagTempl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTagTemplate(TagTemplateName name, boolean force) { + public final void deleteTagTemplate(@Nullable TagTemplateName name, boolean force) { DeleteTagTemplateRequest request = DeleteTagTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3698,7 +3699,9 @@ public final UnaryCallable deleteTagTemplateCal */ @Deprecated public final TagTemplateField createTagTemplateField( - TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) { + @Nullable TagTemplateName parent, + String tagTemplateFieldId, + TagTemplateField tagTemplateField) { CreateTagTemplateFieldRequest request = CreateTagTemplateFieldRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3863,7 +3866,7 @@ public final TagTemplateField createTagTemplateField(CreateTagTemplateFieldReque */ @Deprecated public final TagTemplateField updateTagTemplateField( - TagTemplateFieldName name, TagTemplateField tagTemplateField) { + @Nullable TagTemplateFieldName name, TagTemplateField tagTemplateField) { UpdateTagTemplateFieldRequest request = UpdateTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3967,7 +3970,9 @@ public final TagTemplateField updateTagTemplateField( */ @Deprecated public final TagTemplateField updateTagTemplateField( - TagTemplateFieldName name, TagTemplateField tagTemplateField, FieldMask updateMask) { + @Nullable TagTemplateFieldName name, + TagTemplateField tagTemplateField, + FieldMask updateMask) { UpdateTagTemplateFieldRequest request = UpdateTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4155,7 +4160,7 @@ public final TagTemplateField updateTagTemplateField(UpdateTagTemplateFieldReque */ @Deprecated public final TagTemplateField renameTagTemplateField( - TagTemplateFieldName name, String newTagTemplateFieldId) { + @Nullable TagTemplateFieldName name, String newTagTemplateFieldId) { RenameTagTemplateFieldRequest request = RenameTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4318,7 +4323,7 @@ public final TagTemplateField renameTagTemplateField(RenameTagTemplateFieldReque */ @Deprecated public final TagTemplateField renameTagTemplateFieldEnumValue( - TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { + @Nullable TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { RenameTagTemplateFieldEnumValueRequest request = RenameTagTemplateFieldEnumValueRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4488,7 +4493,7 @@ public final TagTemplateField renameTagTemplateFieldEnumValue( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTagTemplateField(TagTemplateFieldName name, boolean force) { + public final void deleteTagTemplateField(@Nullable TagTemplateFieldName name, boolean force) { DeleteTagTemplateFieldRequest request = DeleteTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4656,7 +4661,7 @@ public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request) * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Tag createTag(EntryName parent, Tag tag) { + public final Tag createTag(@Nullable EntryName parent, Tag tag) { CreateTagRequest request = CreateTagRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4950,7 +4955,7 @@ public final UnaryCallable updateTagCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTag(EntryName name) { + public final void deleteTag(@Nullable EntryName name) { DeleteTagRequest request = DeleteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTag(request); @@ -5075,7 +5080,7 @@ public final UnaryCallable deleteTagCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListTagsPagedResponse listTags(EntryName parent) { + public final ListTagsPagedResponse listTags(@Nullable EntryName parent) { ListTagsRequest request = ListTagsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTags(request); @@ -5384,7 +5389,7 @@ public final UnaryCallable reconcileTagsCallabl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final StarEntryResponse starEntry(EntryName name) { + public final StarEntryResponse starEntry(@Nullable EntryName name) { StarEntryRequest request = StarEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return starEntry(request); @@ -5508,7 +5513,7 @@ public final UnaryCallable starEntryCallabl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final UnstarEntryResponse unstarEntry(EntryName name) { + public final UnstarEntryResponse unstarEntry(@Nullable EntryName name) { UnstarEntryRequest request = UnstarEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return unstarEntry(request); @@ -5649,7 +5654,7 @@ public final UnaryCallable unstarEntryC * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -5840,7 +5845,7 @@ public final UnaryCallable setIamPolicyCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -6459,8 +6464,9 @@ public static class SearchCatalogPage SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult, SearchCatalogPage> { private SearchCatalogPage( - PageContext context, - SearchCatalogResponse response) { + @Nullable PageContext + context, + @Nullable SearchCatalogResponse response) { super(context, response); } @@ -6470,14 +6476,16 @@ private static SearchCatalogPage createEmptyPage() { @Override protected SearchCatalogPage createPage( - PageContext context, - SearchCatalogResponse response) { + @Nullable PageContext + context, + @Nullable SearchCatalogResponse response) { return new SearchCatalogPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6491,7 +6499,8 @@ public static class SearchCatalogFixedSizeCollection SearchCatalogPage, SearchCatalogFixedSizeCollection> { - private SearchCatalogFixedSizeCollection(List pages, int collectionSize) { + private SearchCatalogFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6501,7 +6510,7 @@ private static SearchCatalogFixedSizeCollection createEmptyCollection() { @Override protected SearchCatalogFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCatalogFixedSizeCollection(pages, collectionSize); } } @@ -6535,8 +6544,8 @@ public static class ListEntryGroupsPage ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup, ListEntryGroupsPage> { private ListEntryGroupsPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { super(context, response); } @@ -6546,14 +6555,14 @@ private static ListEntryGroupsPage createEmptyPage() { @Override protected ListEntryGroupsPage createPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { return new ListEntryGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6568,7 +6577,7 @@ public static class ListEntryGroupsFixedSizeCollection ListEntryGroupsFixedSizeCollection> { private ListEntryGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6578,7 +6587,7 @@ private static ListEntryGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListEntryGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntryGroupsFixedSizeCollection(pages, collectionSize); } } @@ -6609,8 +6618,8 @@ public static class ListEntriesPage extends AbstractPage { private ListEntriesPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { super(context, response); } @@ -6620,14 +6629,14 @@ private static ListEntriesPage createEmptyPage() { @Override protected ListEntriesPage createPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { return new ListEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6641,7 +6650,8 @@ public static class ListEntriesFixedSizeCollection ListEntriesPage, ListEntriesFixedSizeCollection> { - private ListEntriesFixedSizeCollection(List pages, int collectionSize) { + private ListEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6651,7 +6661,7 @@ private static ListEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntriesFixedSizeCollection(pages, collectionSize); } } @@ -6678,7 +6688,8 @@ public static class ListTagsPage extends AbstractPage { private ListTagsPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { super(context, response); } @@ -6688,13 +6699,14 @@ private static ListTagsPage createEmptyPage() { @Override protected ListTagsPage createPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { return new ListTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6704,7 +6716,7 @@ public static class ListTagsFixedSizeCollection extends AbstractFixedSizeCollection< ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - private ListTagsFixedSizeCollection(List pages, int collectionSize) { + private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6714,7 +6726,7 @@ private static ListTagsFixedSizeCollection createEmptyCollection() { @Override protected ListTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java index c2cc945fd95e..6fcc62127175 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -587,7 +588,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); } @@ -607,7 +608,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataCatalogStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java index 5c2843bc43ba..bb92925f5ef3 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java @@ -38,6 +38,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. /** @@ -373,7 +374,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PolicyTagManagerClient implements BackgroundResource { - private final PolicyTagManagerSettings settings; + private final @Nullable PolicyTagManagerSettings settings; private final PolicyTagManagerStub stub; /** Constructs an instance of PolicyTagManagerClient with default settings. */ @@ -413,7 +414,7 @@ protected PolicyTagManagerClient(PolicyTagManagerStub stub) { this.stub = stub; } - public final PolicyTagManagerSettings getSettings() { + public final @Nullable PolicyTagManagerSettings getSettings() { return settings; } @@ -446,7 +447,7 @@ public PolicyTagManagerStub getStub() { * @param taxonomy The taxonomy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Taxonomy createTaxonomy(LocationName parent, Taxonomy taxonomy) { + public final Taxonomy createTaxonomy(@Nullable LocationName parent, Taxonomy taxonomy) { CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -571,7 +572,7 @@ public final UnaryCallable createTaxonomyCallab *

Note: All policy tags in this taxonomy are also deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTaxonomy(TaxonomyName name) { + public final void deleteTaxonomy(@Nullable TaxonomyName name) { DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTaxonomy(request); @@ -771,7 +772,7 @@ public final UnaryCallable updateTaxonomyCallab * @param parent Required. Resource name of the project to list the taxonomies of. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTaxonomiesPagedResponse listTaxonomies(LocationName parent) { + public final ListTaxonomiesPagedResponse listTaxonomies(@Nullable LocationName parent) { ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -936,7 +937,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re * @param name Required. Resource name of the taxonomy to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Taxonomy getTaxonomy(TaxonomyName name) { + public final Taxonomy getTaxonomy(@Nullable TaxonomyName name) { GetTaxonomyRequest request = GetTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTaxonomy(request); @@ -1046,7 +1047,7 @@ public final UnaryCallable getTaxonomyCallable() { * @param policyTag The policy tag to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyTag createPolicyTag(TaxonomyName parent, PolicyTag policyTag) { + public final PolicyTag createPolicyTag(@Nullable TaxonomyName parent, PolicyTag policyTag) { CreatePolicyTagRequest request = CreatePolicyTagRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1171,7 +1172,7 @@ public final UnaryCallable createPolicyTagCal *

Note: All of its descendant policy tags are also deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePolicyTag(PolicyTagName name) { + public final void deletePolicyTag(@Nullable PolicyTagName name) { DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePolicyTag(request); @@ -1392,7 +1393,7 @@ public final UnaryCallable updatePolicyTagCal * @param parent Required. Resource name of the taxonomy to list the policy tags of. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyTagsPagedResponse listPolicyTags(TaxonomyName parent) { + public final ListPolicyTagsPagedResponse listPolicyTags(@Nullable TaxonomyName parent) { ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1555,7 +1556,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * @param name Required. Resource name of the policy tag. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyTag getPolicyTag(PolicyTagName name) { + public final PolicyTag getPolicyTag(@Nullable PolicyTagName name) { GetPolicyTagRequest request = GetPolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicyTag(request); @@ -1894,8 +1895,8 @@ public static class ListTaxonomiesPage ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage> { private ListTaxonomiesPage( - PageContext context, - ListTaxonomiesResponse response) { + @Nullable PageContext context, + @Nullable ListTaxonomiesResponse response) { super(context, response); } @@ -1905,14 +1906,14 @@ private static ListTaxonomiesPage createEmptyPage() { @Override protected ListTaxonomiesPage createPage( - PageContext context, - ListTaxonomiesResponse response) { + @Nullable PageContext context, + @Nullable ListTaxonomiesResponse response) { return new ListTaxonomiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1926,7 +1927,8 @@ public static class ListTaxonomiesFixedSizeCollection ListTaxonomiesPage, ListTaxonomiesFixedSizeCollection> { - private ListTaxonomiesFixedSizeCollection(List pages, int collectionSize) { + private ListTaxonomiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1936,7 +1938,7 @@ private static ListTaxonomiesFixedSizeCollection createEmptyCollection() { @Override protected ListTaxonomiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTaxonomiesFixedSizeCollection(pages, collectionSize); } } @@ -1970,8 +1972,8 @@ public static class ListPolicyTagsPage ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage> { private ListPolicyTagsPage( - PageContext context, - ListPolicyTagsResponse response) { + @Nullable PageContext context, + @Nullable ListPolicyTagsResponse response) { super(context, response); } @@ -1981,14 +1983,14 @@ private static ListPolicyTagsPage createEmptyPage() { @Override protected ListPolicyTagsPage createPage( - PageContext context, - ListPolicyTagsResponse response) { + @Nullable PageContext context, + @Nullable ListPolicyTagsResponse response) { return new ListPolicyTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2002,7 +2004,8 @@ public static class ListPolicyTagsFixedSizeCollection ListPolicyTagsPage, ListPolicyTagsFixedSizeCollection> { - private ListPolicyTagsFixedSizeCollection(List pages, int collectionSize) { + private ListPolicyTagsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2012,7 +2015,7 @@ private static ListPolicyTagsFixedSizeCollection createEmptyCollection() { @Override protected ListPolicyTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyTagsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java index b51cc429c0b2..740266961c1f 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java @@ -24,6 +24,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. /** @@ -172,7 +173,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PolicyTagManagerSerializationClient implements BackgroundResource { - private final PolicyTagManagerSerializationSettings settings; + private final @Nullable PolicyTagManagerSerializationSettings settings; private final PolicyTagManagerSerializationStub stub; /** Constructs an instance of PolicyTagManagerSerializationClient with default settings. */ @@ -216,7 +217,7 @@ protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationStub this.stub = stub; } - public final PolicyTagManagerSerializationSettings getSettings() { + public final @Nullable PolicyTagManagerSerializationSettings getSettings() { return settings; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java index 504a3fb3641d..cdb1e165fa2e 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,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); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyTagManagerSerializationStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java index 87a821caa200..9949131bfb10 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -223,7 +224,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyTagManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java index e6fee04ca8d1..2612250f24ab 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java @@ -87,6 +87,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -101,11 +102,12 @@ @Generated("by gapic-generator-java") public abstract class DataCatalogStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java index 7af64132ebfa..d90bd609d663 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java @@ -122,6 +122,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -970,7 +971,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); } @@ -1145,7 +1146,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchCatalogSettings = PagedCallSettings.newBuilder(SEARCH_CATALOG_PAGE_STR_FACT); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java index 9c0d4cfc9dcf..1618bd510be6 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -303,7 +304,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); replaceTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java index ec7d2580afc5..b1f7cbd383b4 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -426,7 +427,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); } @@ -516,7 +517,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java index bb4a4809ca1a..b2ce8024d774 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java @@ -41,6 +41,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. /** @@ -676,7 +677,7 @@ @Deprecated @Generated("by gapic-generator-java") public class DataCatalogClient implements BackgroundResource { - private final DataCatalogSettings settings; + private final @Nullable DataCatalogSettings settings; private final DataCatalogStub stub; /** Constructs an instance of DataCatalogClient with default settings. */ @@ -715,7 +716,7 @@ protected DataCatalogClient(DataCatalogStub stub) { this.stub = stub; } - public final DataCatalogSettings getSettings() { + public final @Nullable DataCatalogSettings getSettings() { return settings; } @@ -975,7 +976,7 @@ public final UnaryCallable searchCa */ @Deprecated public final EntryGroup createEntryGroup( - LocationName parent, String entryGroupId, EntryGroup entryGroup) { + @Nullable LocationName parent, String entryGroupId, EntryGroup entryGroup) { CreateEntryGroupRequest request = CreateEntryGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1267,7 +1268,7 @@ public final UnaryCallable updateEntryGroup * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final EntryGroup getEntryGroup(EntryGroupName name) { + public final EntryGroup getEntryGroup(@Nullable EntryGroupName name) { GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntryGroup(request); @@ -1328,7 +1329,7 @@ public final EntryGroup getEntryGroup(String name) { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final EntryGroup getEntryGroup(EntryGroupName name, FieldMask readMask) { + public final EntryGroup getEntryGroup(@Nullable EntryGroupName name, FieldMask readMask) { GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1458,7 +1459,7 @@ public final UnaryCallable getEntryGroupCallab * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteEntryGroup(EntryGroupName name) { + public final void deleteEntryGroup(@Nullable EntryGroupName name) { DeleteEntryGroupRequest request = DeleteEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntryGroup(request); @@ -1594,7 +1595,7 @@ public final UnaryCallable deleteEntryGroupCalla * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListEntryGroupsPagedResponse listEntryGroups(LocationName parent) { + public final ListEntryGroupsPagedResponse listEntryGroups(@Nullable LocationName parent) { ListEntryGroupsRequest request = ListEntryGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1788,7 +1789,7 @@ public final ListEntryGroupsPagedResponse listEntryGroups(ListEntryGroupsRequest * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Entry createEntry(EntryGroupName parent, String entryId, Entry entry) { + public final Entry createEntry(@Nullable EntryGroupName parent, String entryId, Entry entry) { CreateEntryRequest request = CreateEntryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2094,7 +2095,7 @@ public final UnaryCallable updateEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteEntry(EntryName name) { + public final void deleteEntry(@Nullable EntryName name) { DeleteEntryRequest request = DeleteEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntry(request); @@ -2233,7 +2234,7 @@ public final UnaryCallable deleteEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Entry getEntry(EntryName name) { + public final Entry getEntry(@Nullable EntryName name) { GetEntryRequest request = GetEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntry(request); @@ -2419,7 +2420,7 @@ public final UnaryCallable lookupEntryCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListEntriesPagedResponse listEntries(EntryGroupName parent) { + public final ListEntriesPagedResponse listEntries(@Nullable EntryGroupName parent) { ListEntriesRequest request = ListEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2613,7 +2614,7 @@ public final UnaryCallable listEntriesC */ @Deprecated public final TagTemplate createTagTemplate( - LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { + @Nullable LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { CreateTagTemplateRequest request = CreateTagTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2769,7 +2770,7 @@ public final UnaryCallable createTagTempl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final TagTemplate getTagTemplate(TagTemplateName name) { + public final TagTemplate getTagTemplate(@Nullable TagTemplateName name) { GetTagTemplateRequest request = GetTagTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTagTemplate(request); @@ -3046,7 +3047,7 @@ public final UnaryCallable updateTagTempl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTagTemplate(TagTemplateName name, boolean force) { + public final void deleteTagTemplate(@Nullable TagTemplateName name, boolean force) { DeleteTagTemplateRequest request = DeleteTagTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3201,7 +3202,9 @@ public final UnaryCallable deleteTagTemplateCal */ @Deprecated public final TagTemplateField createTagTemplateField( - TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) { + @Nullable TagTemplateName parent, + String tagTemplateFieldId, + TagTemplateField tagTemplateField) { CreateTagTemplateFieldRequest request = CreateTagTemplateFieldRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3368,7 +3371,7 @@ public final TagTemplateField createTagTemplateField(CreateTagTemplateFieldReque */ @Deprecated public final TagTemplateField updateTagTemplateField( - TagTemplateFieldName name, TagTemplateField tagTemplateField) { + @Nullable TagTemplateFieldName name, TagTemplateField tagTemplateField) { UpdateTagTemplateFieldRequest request = UpdateTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3470,7 +3473,9 @@ public final TagTemplateField updateTagTemplateField( */ @Deprecated public final TagTemplateField updateTagTemplateField( - TagTemplateFieldName name, TagTemplateField tagTemplateField, FieldMask updateMask) { + @Nullable TagTemplateFieldName name, + TagTemplateField tagTemplateField, + FieldMask updateMask) { UpdateTagTemplateFieldRequest request = UpdateTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3652,7 +3657,7 @@ public final TagTemplateField updateTagTemplateField(UpdateTagTemplateFieldReque */ @Deprecated public final TagTemplateField renameTagTemplateField( - TagTemplateFieldName name, String newTagTemplateFieldId) { + @Nullable TagTemplateFieldName name, String newTagTemplateFieldId) { RenameTagTemplateFieldRequest request = RenameTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3820,7 +3825,7 @@ public final TagTemplateField renameTagTemplateField(RenameTagTemplateFieldReque */ @Deprecated public final TagTemplateField renameTagTemplateFieldEnumValue( - TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { + @Nullable TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { RenameTagTemplateFieldEnumValueRequest request = RenameTagTemplateFieldEnumValueRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3997,7 +4002,7 @@ public final TagTemplateField renameTagTemplateFieldEnumValue( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTagTemplateField(TagTemplateFieldName name, boolean force) { + public final void deleteTagTemplateField(@Nullable TagTemplateFieldName name, boolean force) { DeleteTagTemplateFieldRequest request = DeleteTagTemplateFieldRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4157,7 +4162,7 @@ public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request) * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Tag createTag(EntryName parent, Tag tag) { + public final Tag createTag(@Nullable EntryName parent, Tag tag) { CreateTagRequest request = CreateTagRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4433,7 +4438,7 @@ public final UnaryCallable updateTagCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final void deleteTag(EntryName name) { + public final void deleteTag(@Nullable EntryName name) { DeleteTagRequest request = DeleteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTag(request); @@ -4567,7 +4572,7 @@ public final UnaryCallable deleteTagCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListTagsPagedResponse listTags(EntryName parent) { + public final ListTagsPagedResponse listTags(@Nullable EntryName parent) { ListTagsRequest request = ListTagsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTags(request); @@ -4763,7 +4768,7 @@ public final UnaryCallable listTagsCallable() * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4926,7 +4931,7 @@ public final UnaryCallable setIamPolicyCallable() { * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -5197,8 +5202,9 @@ public static class SearchCatalogPage SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult, SearchCatalogPage> { private SearchCatalogPage( - PageContext context, - SearchCatalogResponse response) { + @Nullable PageContext + context, + @Nullable SearchCatalogResponse response) { super(context, response); } @@ -5208,14 +5214,16 @@ private static SearchCatalogPage createEmptyPage() { @Override protected SearchCatalogPage createPage( - PageContext context, - SearchCatalogResponse response) { + @Nullable PageContext + context, + @Nullable SearchCatalogResponse response) { return new SearchCatalogPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5229,7 +5237,8 @@ public static class SearchCatalogFixedSizeCollection SearchCatalogPage, SearchCatalogFixedSizeCollection> { - private SearchCatalogFixedSizeCollection(List pages, int collectionSize) { + private SearchCatalogFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5239,7 +5248,7 @@ private static SearchCatalogFixedSizeCollection createEmptyCollection() { @Override protected SearchCatalogFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCatalogFixedSizeCollection(pages, collectionSize); } } @@ -5273,8 +5282,8 @@ public static class ListEntryGroupsPage ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup, ListEntryGroupsPage> { private ListEntryGroupsPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { super(context, response); } @@ -5284,14 +5293,14 @@ private static ListEntryGroupsPage createEmptyPage() { @Override protected ListEntryGroupsPage createPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { return new ListEntryGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5306,7 +5315,7 @@ public static class ListEntryGroupsFixedSizeCollection ListEntryGroupsFixedSizeCollection> { private ListEntryGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5316,7 +5325,7 @@ private static ListEntryGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListEntryGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntryGroupsFixedSizeCollection(pages, collectionSize); } } @@ -5347,8 +5356,8 @@ public static class ListEntriesPage extends AbstractPage { private ListEntriesPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { super(context, response); } @@ -5358,14 +5367,14 @@ private static ListEntriesPage createEmptyPage() { @Override protected ListEntriesPage createPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { return new ListEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5379,7 +5388,8 @@ public static class ListEntriesFixedSizeCollection ListEntriesPage, ListEntriesFixedSizeCollection> { - private ListEntriesFixedSizeCollection(List pages, int collectionSize) { + private ListEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5389,7 +5399,7 @@ private static ListEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntriesFixedSizeCollection(pages, collectionSize); } } @@ -5416,7 +5426,8 @@ public static class ListTagsPage extends AbstractPage { private ListTagsPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { super(context, response); } @@ -5426,13 +5437,14 @@ private static ListTagsPage createEmptyPage() { @Override protected ListTagsPage createPage( - PageContext context, ListTagsResponse response) { + @Nullable PageContext context, + @Nullable ListTagsResponse response) { return new ListTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5442,7 +5454,7 @@ public static class ListTagsFixedSizeCollection extends AbstractFixedSizeCollection< ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - private ListTagsFixedSizeCollection(List pages, int collectionSize) { + private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5452,7 +5464,7 @@ private static ListTagsFixedSizeCollection createEmptyCollection() { @Override protected ListTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java index 4afe9a0961e6..0cc1262d6a6b 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java @@ -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. /** @@ -447,7 +448,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); } @@ -467,7 +468,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataCatalogStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java index 234443ae8e6e..ab73f81f52d2 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java @@ -39,6 +39,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. /** @@ -366,7 +367,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PolicyTagManagerClient implements BackgroundResource { - private final PolicyTagManagerSettings settings; + private final @Nullable PolicyTagManagerSettings settings; private final PolicyTagManagerStub stub; /** Constructs an instance of PolicyTagManagerClient with default settings. */ @@ -406,7 +407,7 @@ protected PolicyTagManagerClient(PolicyTagManagerStub stub) { this.stub = stub; } - public final PolicyTagManagerSettings getSettings() { + public final @Nullable PolicyTagManagerSettings getSettings() { return settings; } @@ -437,7 +438,7 @@ public PolicyTagManagerStub getStub() { * @param taxonomy The taxonomy to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Taxonomy createTaxonomy(LocationName parent, Taxonomy taxonomy) { + public final Taxonomy createTaxonomy(@Nullable LocationName parent, Taxonomy taxonomy) { CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -556,7 +557,7 @@ public final UnaryCallable createTaxonomyCallab * taxonomy will also be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTaxonomy(TaxonomyName name) { + public final void deleteTaxonomy(@Nullable TaxonomyName name) { DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTaxonomy(request); @@ -757,7 +758,7 @@ public final UnaryCallable updateTaxonomyCallab * @param parent Required. Resource name of the project to list the taxonomies of. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTaxonomiesPagedResponse listTaxonomies(LocationName parent) { + public final ListTaxonomiesPagedResponse listTaxonomies(@Nullable LocationName parent) { ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -926,7 +927,7 @@ public final ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest re * @param name Required. Resource name of the requested taxonomy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Taxonomy getTaxonomy(TaxonomyName name) { + public final Taxonomy getTaxonomy(@Nullable TaxonomyName name) { GetTaxonomyRequest request = GetTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTaxonomy(request); @@ -1036,7 +1037,7 @@ public final UnaryCallable getTaxonomyCallable() { * @param policyTag The policy tag to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyTag createPolicyTag(TaxonomyName parent, PolicyTag policyTag) { + public final PolicyTag createPolicyTag(@Nullable TaxonomyName parent, PolicyTag policyTag) { CreatePolicyTagRequest request = CreatePolicyTagRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1155,7 +1156,7 @@ public final UnaryCallable createPolicyTagCal * policy tags will also be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePolicyTag(PolicyTagName name) { + public final void deletePolicyTag(@Nullable PolicyTagName name) { DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePolicyTag(request); @@ -1358,7 +1359,7 @@ public final UnaryCallable updatePolicyTagCal * @param parent Required. Resource name of the taxonomy to list the policy tags of. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyTagsPagedResponse listPolicyTags(TaxonomyName parent) { + public final ListPolicyTagsPagedResponse listPolicyTags(@Nullable TaxonomyName parent) { ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1521,7 +1522,7 @@ public final ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest re * @param name Required. Resource name of the requested policy tag. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyTag getPolicyTag(PolicyTagName name) { + public final PolicyTag getPolicyTag(@Nullable PolicyTagName name) { GetPolicyTagRequest request = GetPolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicyTag(request); @@ -1860,8 +1861,8 @@ public static class ListTaxonomiesPage ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage> { private ListTaxonomiesPage( - PageContext context, - ListTaxonomiesResponse response) { + @Nullable PageContext context, + @Nullable ListTaxonomiesResponse response) { super(context, response); } @@ -1871,14 +1872,14 @@ private static ListTaxonomiesPage createEmptyPage() { @Override protected ListTaxonomiesPage createPage( - PageContext context, - ListTaxonomiesResponse response) { + @Nullable PageContext context, + @Nullable ListTaxonomiesResponse response) { return new ListTaxonomiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1892,7 +1893,8 @@ public static class ListTaxonomiesFixedSizeCollection ListTaxonomiesPage, ListTaxonomiesFixedSizeCollection> { - private ListTaxonomiesFixedSizeCollection(List pages, int collectionSize) { + private ListTaxonomiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1902,7 +1904,7 @@ private static ListTaxonomiesFixedSizeCollection createEmptyCollection() { @Override protected ListTaxonomiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTaxonomiesFixedSizeCollection(pages, collectionSize); } } @@ -1936,8 +1938,8 @@ public static class ListPolicyTagsPage ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage> { private ListPolicyTagsPage( - PageContext context, - ListPolicyTagsResponse response) { + @Nullable PageContext context, + @Nullable ListPolicyTagsResponse response) { super(context, response); } @@ -1947,14 +1949,14 @@ private static ListPolicyTagsPage createEmptyPage() { @Override protected ListPolicyTagsPage createPage( - PageContext context, - ListPolicyTagsResponse response) { + @Nullable PageContext context, + @Nullable ListPolicyTagsResponse response) { return new ListPolicyTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1968,7 +1970,8 @@ public static class ListPolicyTagsFixedSizeCollection ListPolicyTagsPage, ListPolicyTagsFixedSizeCollection> { - private ListPolicyTagsFixedSizeCollection(List pages, int collectionSize) { + private ListPolicyTagsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1978,7 +1981,7 @@ private static ListPolicyTagsFixedSizeCollection createEmptyCollection() { @Override protected ListPolicyTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyTagsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java index 6fa0825d153b..6c8d4e85097e 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java @@ -25,6 +25,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. /** @@ -154,7 +155,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PolicyTagManagerSerializationClient implements BackgroundResource { - private final PolicyTagManagerSerializationSettings settings; + private final @Nullable PolicyTagManagerSerializationSettings settings; private final PolicyTagManagerSerializationStub stub; /** Constructs an instance of PolicyTagManagerSerializationClient with default settings. */ @@ -198,7 +199,7 @@ protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationStub this.stub = stub; } - public final PolicyTagManagerSerializationSettings getSettings() { + public final @Nullable PolicyTagManagerSerializationSettings getSettings() { return settings; } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java index f6d515ec56c6..df4309214f03 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyTagManagerSerializationStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java index 201dc71f18d2..4510b648c07d 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyTagManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java index f654b29f4c20..babcfe020123 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java @@ -98,6 +98,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -800,7 +801,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); } @@ -944,7 +945,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchCatalogSettings = PagedCallSettings.newBuilder(SEARCH_CATALOG_PAGE_STR_FACT); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java index 8118f55389bb..7627c226336f 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); importTaxonomiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java index 55365fc36c42..a368b72d6042 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -427,7 +428,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); } @@ -517,7 +518,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java index 1665e3085d9b..84cab2950550 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String entryGroup) .toString(); } - public static EntryGroupName parse(String formattedString) { + public static @Nullable EntryGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryGroupName> values) { List list = new ArrayList<>(values.size()); for (EntryGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java index be7f40737ecd..9bf0544ca020 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String entryGroup, .toString(); } - public static EntryName parse(String formattedString) { + public static @Nullable EntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryName> values) { List list = new ArrayList<>(values.size()); for (EntryName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java index 6a6e74b851d6..143aae810c6a 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java index ea82e88f187f..8bda147eaaee 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String taxonomy, St .toString(); } - public static PolicyTagName parse(String formattedString) { + public static @Nullable PolicyTagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyTagName> values) { List list = new ArrayList<>(values.size()); for (PolicyTagName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java index 72f0422e88d7..eea1116a646d 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TagName parse(String formattedString) { + public static @Nullable TagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagName> values) { List list = new ArrayList<>(values.size()); for (TagName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java index 9834a60212a8..c345d43bc73b 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static TagTemplateFieldEnumValueName parse(String formattedString) { + public static @Nullable TagTemplateFieldEnumValueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateFieldEnumValueName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateFieldEnumValueName value : values) { if (value == null) { @@ -207,7 +208,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java index c4731fd4f250..9305564b4554 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String tagTemplate, .toString(); } - public static TagTemplateFieldName parse(String formattedString) { + public static @Nullable TagTemplateFieldName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateFieldName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateFieldName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java index b29f898d4fc8..26df4455fcd8 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String tagTemplate) .toString(); } - public static TagTemplateName parse(String formattedString) { + public static @Nullable TagTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java index 9b0e26d97d1c..4e7191b02063 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String taxonomy) { .toString(); } - public static TaxonomyName parse(String formattedString) { + public static @Nullable TaxonomyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaxonomyName> values) { List list = new ArrayList<>(values.size()); for (TaxonomyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java index e23f5dc90e2a..59c7618aa02f 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String entryGroup) .toString(); } - public static EntryGroupName parse(String formattedString) { + public static @Nullable EntryGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryGroupName> values) { List list = new ArrayList<>(values.size()); for (EntryGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java index 5ebfce5eb35d..6c2231bea3b8 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String entryGroup, .toString(); } - public static EntryName parse(String formattedString) { + public static @Nullable EntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryName> values) { List list = new ArrayList<>(values.size()); for (EntryName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java index afdda899af36..1e1ad02f1e1d 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java index 40b3cfcb58d3..49b3788c2285 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String taxonomy, St .toString(); } - public static PolicyTagName parse(String formattedString) { + public static @Nullable PolicyTagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyTagName> values) { List list = new ArrayList<>(values.size()); for (PolicyTagName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java index 1ce5839ba993..c410a6e95563 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TagName parse(String formattedString) { + public static @Nullable TagName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagName> values) { List list = new ArrayList<>(values.size()); for (TagName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java index aaa500bcfb07..724447bd2087 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static TagTemplateFieldEnumValueName parse(String formattedString) { + public static @Nullable TagTemplateFieldEnumValueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateFieldEnumValueName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateFieldEnumValueName value : values) { if (value == null) { @@ -207,7 +208,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java index 72dce8231df9..fd6e5e740d0a 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String tagTemplate, .toString(); } - public static TagTemplateFieldName parse(String formattedString) { + public static @Nullable TagTemplateFieldName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateFieldName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateFieldName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java index 64f7d1881eb7..d62c001c3247 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String tagTemplate) .toString(); } - public static TagTemplateName parse(String formattedString) { + public static @Nullable TagTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagTemplateName> values) { List list = new ArrayList<>(values.size()); for (TagTemplateName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java index 2765272d4e8b..da6c63f51a1e 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String taxonomy) { .toString(); } - public static TaxonomyName parse(String formattedString) { + public static @Nullable TaxonomyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaxonomyName> values) { List list = new ArrayList<>(values.size()); for (TaxonomyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java index 0660cc44732d..cb39d5110aad 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceClient.java @@ -25,6 +25,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. /** @@ -139,7 +140,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FlexTemplatesServiceClient implements BackgroundResource { - private final FlexTemplatesServiceSettings settings; + private final @Nullable FlexTemplatesServiceSettings settings; private final FlexTemplatesServiceStub stub; /** Constructs an instance of FlexTemplatesServiceClient with default settings. */ @@ -179,7 +180,7 @@ protected FlexTemplatesServiceClient(FlexTemplatesServiceStub stub) { this.stub = stub; } - public final FlexTemplatesServiceSettings getSettings() { + public final @Nullable FlexTemplatesServiceSettings getSettings() { return settings; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java index 698cfcfd5877..9a4050251829 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/FlexTemplatesServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FlexTemplatesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java index 25ac585b1101..ec621706dc8e 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Client.java @@ -33,6 +33,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. /** @@ -236,7 +237,7 @@ @BetaApi @Generated("by gapic-generator-java") public class JobsV1Beta3Client implements BackgroundResource { - private final JobsV1Beta3Settings settings; + private final @Nullable JobsV1Beta3Settings settings; private final JobsV1Beta3Stub stub; /** Constructs an instance of JobsV1Beta3Client with default settings. */ @@ -275,7 +276,7 @@ protected JobsV1Beta3Client(JobsV1Beta3Stub stub) { this.stub = stub; } - public final JobsV1Beta3Settings getSettings() { + public final @Nullable JobsV1Beta3Settings getSettings() { return settings; } @@ -929,7 +930,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -939,13 +941,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -955,7 +958,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -965,7 +968,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -998,7 +1001,8 @@ public static class AggregatedListJobsPage extends AbstractPage { private AggregatedListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1008,13 +1012,14 @@ private static AggregatedListJobsPage createEmptyPage() { @Override protected AggregatedListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new AggregatedListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1029,7 +1034,7 @@ public static class AggregatedListJobsFixedSizeCollection AggregatedListJobsFixedSizeCollection> { private AggregatedListJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1039,7 +1044,7 @@ private static AggregatedListJobsFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java index 6a71165cfea2..2c6a1fc725fd 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/JobsV1Beta3Settings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobsV1Beta3StubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java index 0d01ce9ef00b..b2693be7390c 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Client.java @@ -33,6 +33,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. /** @@ -154,7 +155,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MessagesV1Beta3Client implements BackgroundResource { - private final MessagesV1Beta3Settings settings; + private final @Nullable MessagesV1Beta3Settings settings; private final MessagesV1Beta3Stub stub; /** Constructs an instance of MessagesV1Beta3Client with default settings. */ @@ -194,7 +195,7 @@ protected MessagesV1Beta3Client(MessagesV1Beta3Stub stub) { this.stub = stub; } - public final MessagesV1Beta3Settings getSettings() { + public final @Nullable MessagesV1Beta3Settings getSettings() { return settings; } @@ -399,8 +400,8 @@ public static class ListJobMessagesPage ListJobMessagesRequest, ListJobMessagesResponse, JobMessage, ListJobMessagesPage> { private ListJobMessagesPage( - PageContext context, - ListJobMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListJobMessagesResponse response) { super(context, response); } @@ -410,14 +411,14 @@ private static ListJobMessagesPage createEmptyPage() { @Override protected ListJobMessagesPage createPage( - PageContext context, - ListJobMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListJobMessagesResponse response) { return new ListJobMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -432,7 +433,7 @@ public static class ListJobMessagesFixedSizeCollection ListJobMessagesFixedSizeCollection> { private ListJobMessagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -442,7 +443,7 @@ private static ListJobMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListJobMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobMessagesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java index d6ff763a2bc6..ac76b4d15ad1 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MessagesV1Beta3Settings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MessagesV1Beta3StubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java index 1bb3e51d8c74..b7f13c92a952 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Client.java @@ -33,6 +33,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. /** @@ -175,7 +176,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MetricsV1Beta3Client implements BackgroundResource { - private final MetricsV1Beta3Settings settings; + private final @Nullable MetricsV1Beta3Settings settings; private final MetricsV1Beta3Stub stub; /** Constructs an instance of MetricsV1Beta3Client with default settings. */ @@ -215,7 +216,7 @@ protected MetricsV1Beta3Client(MetricsV1Beta3Stub stub) { this.stub = stub; } - public final MetricsV1Beta3Settings getSettings() { + public final @Nullable MetricsV1Beta3Settings getSettings() { return settings; } @@ -604,8 +605,9 @@ public static class GetJobExecutionDetailsPage GetJobExecutionDetailsPage> { private GetJobExecutionDetailsPage( - PageContext context, - JobExecutionDetails response) { + @Nullable PageContext + context, + @Nullable JobExecutionDetails response) { super(context, response); } @@ -615,14 +617,16 @@ private static GetJobExecutionDetailsPage createEmptyPage() { @Override protected GetJobExecutionDetailsPage createPage( - PageContext context, - JobExecutionDetails response) { + @Nullable PageContext + context, + @Nullable JobExecutionDetails response) { return new GetJobExecutionDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -637,7 +641,7 @@ public static class GetJobExecutionDetailsFixedSizeCollection GetJobExecutionDetailsFixedSizeCollection> { private GetJobExecutionDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -647,7 +651,7 @@ private static GetJobExecutionDetailsFixedSizeCollection createEmptyCollection() @Override protected GetJobExecutionDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetJobExecutionDetailsFixedSizeCollection(pages, collectionSize); } } @@ -684,8 +688,9 @@ public static class GetStageExecutionDetailsPage GetStageExecutionDetailsPage> { private GetStageExecutionDetailsPage( - PageContext context, - StageExecutionDetails response) { + @Nullable PageContext + context, + @Nullable StageExecutionDetails response) { super(context, response); } @@ -695,14 +700,16 @@ private static GetStageExecutionDetailsPage createEmptyPage() { @Override protected GetStageExecutionDetailsPage createPage( - PageContext context, - StageExecutionDetails response) { + @Nullable PageContext + context, + @Nullable StageExecutionDetails response) { return new GetStageExecutionDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -717,7 +724,7 @@ public static class GetStageExecutionDetailsFixedSizeCollection GetStageExecutionDetailsFixedSizeCollection> { private GetStageExecutionDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -727,7 +734,7 @@ private static GetStageExecutionDetailsFixedSizeCollection createEmptyCollection @Override protected GetStageExecutionDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetStageExecutionDetailsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java index 65087688bf44..8bcf73157770 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/MetricsV1Beta3Settings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,7 +170,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); } @@ -189,7 +190,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetricsV1Beta3StubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java index 3f6f04428b3d..9395888dd721 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Client.java @@ -25,6 +25,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. /** @@ -165,7 +166,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SnapshotsV1Beta3Client implements BackgroundResource { - private final SnapshotsV1Beta3Settings settings; + private final @Nullable SnapshotsV1Beta3Settings settings; private final SnapshotsV1Beta3Stub stub; /** Constructs an instance of SnapshotsV1Beta3Client with default settings. */ @@ -205,7 +206,7 @@ protected SnapshotsV1Beta3Client(SnapshotsV1Beta3Stub stub) { this.stub = stub; } - public final SnapshotsV1Beta3Settings getSettings() { + public final @Nullable SnapshotsV1Beta3Settings getSettings() { return settings; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java index 91fe3b4f0fc7..7d3aaad0e860 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/SnapshotsV1Beta3Settings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SnapshotsV1Beta3StubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java index d7b205b5f0ec..49fba93f30af 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceClient.java @@ -25,6 +25,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. /** @@ -170,7 +171,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TemplatesServiceClient implements BackgroundResource { - private final TemplatesServiceSettings settings; + private final @Nullable TemplatesServiceSettings settings; private final TemplatesServiceStub stub; /** Constructs an instance of TemplatesServiceClient with default settings. */ @@ -210,7 +211,7 @@ protected TemplatesServiceClient(TemplatesServiceStub stub) { this.stub = stub; } - public final TemplatesServiceSettings getSettings() { + public final @Nullable TemplatesServiceSettings getSettings() { return settings; } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java index f5b56784717e..a87aad0f82d0 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/TemplatesServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TemplatesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java index 8595682e40b7..f1f439b5d274 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/FlexTemplatesServiceStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -273,7 +274,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); launchFlexTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java index ef2151da244f..95b000128f92 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/JobsV1Beta3StubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java index c6f55fbc8b0d..d6eb1dd7b2ac 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MessagesV1Beta3StubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,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); } @@ -345,7 +346,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listJobMessagesSettings = PagedCallSettings.newBuilder(LIST_JOB_MESSAGES_PAGE_STR_FACT); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java index bbd39adba4f3..f032353dd94e 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/MetricsV1Beta3StubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -382,7 +383,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); } @@ -451,7 +452,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getJobMetricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java index 9e6c4db98932..bdc29b1c9c94 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/SnapshotsV1Beta3StubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -299,7 +300,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java index c90678993add..47bd1065d572 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/TemplatesServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -299,7 +300,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobFromTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java index 8f1002252675..e522768a4aae 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java @@ -49,6 +49,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. /** @@ -1431,7 +1432,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataformClient implements BackgroundResource { - private final DataformSettings settings; + private final @Nullable DataformSettings settings; private final DataformStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1477,7 +1478,7 @@ protected DataformClient(DataformStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataformSettings getSettings() { + public final @Nullable DataformSettings getSettings() { return settings; } @@ -1523,7 +1524,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TeamFolder getTeamFolder(TeamFolderName name) { + public final TeamFolder getTeamFolder(@Nullable TeamFolderName name) { GetTeamFolderRequest request = GetTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTeamFolder(request); @@ -1634,7 +1635,7 @@ public final UnaryCallable getTeamFolderCallab * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TeamFolder createTeamFolder(LocationName parent, TeamFolder teamFolder) { + public final TeamFolder createTeamFolder(@Nullable LocationName parent, TeamFolder teamFolder) { CreateTeamFolderRequest request = CreateTeamFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1841,7 +1842,7 @@ public final UnaryCallable updateTeamFolder * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTeamFolder(TeamFolderName name) { + public final void deleteTeamFolder(@Nullable TeamFolderName name) { DeleteTeamFolderRequest request = DeleteTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTeamFolder(request); @@ -1958,7 +1959,7 @@ public final UnaryCallable deleteTeamFolderCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTeamFolderTreeAsync( - TeamFolderName name, boolean force) { + @Nullable TeamFolderName name, boolean force) { DeleteTeamFolderTreeRequest request = DeleteTeamFolderTreeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2122,7 +2123,7 @@ public final OperationFuture deleteTeamFolderTr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( - TeamFolderName teamFolder) { + @Nullable TeamFolderName teamFolder) { QueryTeamFolderContentsRequest request = QueryTeamFolderContentsRequest.newBuilder() .setTeamFolder(teamFolder == null ? null : teamFolder.toString()) @@ -2415,7 +2416,7 @@ public final SearchTeamFoldersPagedResponse searchTeamFolders(SearchTeamFoldersR * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder getFolder(FolderName name) { + public final Folder getFolder(@Nullable FolderName name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFolder(request); @@ -2526,7 +2527,7 @@ public final UnaryCallable getFolderCallable() { * @param folder Required. The Folder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder createFolder(LocationName parent, Folder folder) { + public final Folder createFolder(@Nullable LocationName parent, Folder folder) { CreateFolderRequest request = CreateFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2731,7 +2732,7 @@ public final UnaryCallable updateFolderCallable() { * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFolder(FolderName name) { + public final void deleteFolder(@Nullable FolderName name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFolder(request); @@ -2848,7 +2849,7 @@ public final UnaryCallable deleteFolderCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFolderTreeAsync( - FolderName name, boolean force) { + @Nullable FolderName name, boolean force) { DeleteFolderTreeRequest request = DeleteFolderTreeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3009,7 +3010,7 @@ public final UnaryCallable deleteFolderTreeC * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryFolderContentsPagedResponse queryFolderContents(FolderName folder) { + public final QueryFolderContentsPagedResponse queryFolderContents(@Nullable FolderName folder) { QueryFolderContentsRequest request = QueryFolderContentsRequest.newBuilder() .setFolder(folder == null ? null : folder.toString()) @@ -3187,7 +3188,8 @@ public final QueryFolderContentsPagedResponse queryFolderContents( * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryUserRootContentsPagedResponse queryUserRootContents(LocationName location) { + public final QueryUserRootContentsPagedResponse queryUserRootContents( + @Nullable LocationName location) { QueryUserRootContentsRequest request = QueryUserRootContentsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -3370,7 +3372,7 @@ public final QueryUserRootContentsPagedResponse queryUserRootContents( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveFolderAsync( - FolderName name, String destinationContainingFolder) { + @Nullable FolderName name, String destinationContainingFolder) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3530,7 +3532,7 @@ public final UnaryCallable moveFolderCallable() { * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable LocationName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3711,7 +3713,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -3826,7 +3828,7 @@ public final UnaryCallable getRepositoryCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Repository createRepository( - LocationName parent, Repository repository, String repositoryId) { + @Nullable LocationName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4059,7 +4061,7 @@ public final UnaryCallable updateRepository * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(RepositoryName name) { + public final void deleteRepository(@Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRepository(request); @@ -4175,7 +4177,7 @@ public final UnaryCallable deleteRepositoryCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveRepositoryAsync( - RepositoryName name, String destinationContainingFolder) { + @Nullable RepositoryName name, String destinationContainingFolder) { MoveRepositoryRequest request = MoveRepositoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4807,7 +4809,7 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { + public final ListWorkspacesPagedResponse listWorkspaces(@Nullable RepositoryName parent) { ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4976,7 +4978,7 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { + public final Workspace getWorkspace(@Nullable WorkspaceName name) { GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkspace(request); @@ -5096,7 +5098,7 @@ public final UnaryCallable getWorkspaceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workspace createWorkspace( - RepositoryName parent, Workspace workspace, String workspaceId) { + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { CreateWorkspaceRequest request = CreateWorkspaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5224,7 +5226,7 @@ public final UnaryCallable createWorkspaceCal * @param name Required. The workspace resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(WorkspaceName name) { + public final void deleteWorkspace(@Nullable WorkspaceName name) { DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWorkspace(request); @@ -6520,7 +6522,7 @@ public final UnaryCallable writeFileCallabl * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { + public final ListReleaseConfigsPagedResponse listReleaseConfigs(@Nullable RepositoryName parent) { ListReleaseConfigsRequest request = ListReleaseConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6686,7 +6688,7 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { + public final ReleaseConfig getReleaseConfig(@Nullable ReleaseConfigName name) { GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReleaseConfig(request); @@ -6811,7 +6813,7 @@ public final UnaryCallable getReleaseCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReleaseConfig createReleaseConfig( - RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { + @Nullable RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { CreateReleaseConfigRequest request = CreateReleaseConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7051,7 +7053,7 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReleaseConfig(ReleaseConfigName name) { + public final void deleteReleaseConfig(@Nullable ReleaseConfigName name) { DeleteReleaseConfigRequest request = DeleteReleaseConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7173,7 +7175,8 @@ public final UnaryCallable deleteReleaseConfi * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { + public final ListCompilationResultsPagedResponse listCompilationResults( + @Nullable RepositoryName parent) { ListCompilationResultsRequest request = ListCompilationResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7347,7 +7350,7 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * @param name Required. The compilation result's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(CompilationResultName name) { + public final CompilationResult getCompilationResult(@Nullable CompilationResultName name) { GetCompilationResultRequest request = GetCompilationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7474,7 +7477,7 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CompilationResult createCompilationResult( - RepositoryName parent, CompilationResult compilationResult) { + @Nullable RepositoryName parent, CompilationResult compilationResult) { CreateCompilationResultRequest request = CreateCompilationResultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7722,7 +7725,8 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( + @Nullable RepositoryName parent) { ListWorkflowConfigsRequest request = ListWorkflowConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7888,7 +7892,7 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { + public final WorkflowConfig getWorkflowConfig(@Nullable WorkflowConfigName name) { GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8015,7 +8019,7 @@ public final UnaryCallable getWorkflow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowConfig createWorkflowConfig( - RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { + @Nullable RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { CreateWorkflowConfigRequest request = CreateWorkflowConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8255,7 +8259,7 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(WorkflowConfigName name) { + public final void deleteWorkflowConfig(@Nullable WorkflowConfigName name) { DeleteWorkflowConfigRequest request = DeleteWorkflowConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8378,7 +8382,8 @@ public final UnaryCallable deleteWorkflowCon * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( + @Nullable RepositoryName parent) { ListWorkflowInvocationsRequest request = ListWorkflowInvocationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8553,7 +8558,7 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * @param name Required. The workflow invocation resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { + public final WorkflowInvocation getWorkflowInvocation(@Nullable WorkflowInvocationName name) { GetWorkflowInvocationRequest request = GetWorkflowInvocationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8680,7 +8685,7 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowInvocation createWorkflowInvocation( - RepositoryName parent, WorkflowInvocation workflowInvocation) { + @Nullable RepositoryName parent, WorkflowInvocation workflowInvocation) { CreateWorkflowInvocationRequest request = CreateWorkflowInvocationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8807,7 +8812,7 @@ public final WorkflowInvocation createWorkflowInvocation( * @param name Required. The workflow invocation resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(WorkflowInvocationName name) { + public final void deleteWorkflowInvocation(@Nullable WorkflowInvocationName name) { DeleteWorkflowInvocationRequest request = DeleteWorkflowInvocationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9111,7 +9116,7 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * @param name Required. The config name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { + public final Config getConfig(@Nullable ConfigName name) { GetConfigRequest request = GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfig(request); @@ -9322,7 +9327,7 @@ public final UnaryCallable updateConfigCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -9808,12 +9813,13 @@ public static class QueryTeamFolderContentsPage QueryTeamFolderContentsPage> { private QueryTeamFolderContentsPage( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> context, - QueryTeamFolderContentsResponse response) { + @Nullable QueryTeamFolderContentsResponse response) { super(context, response); } @@ -9823,18 +9829,20 @@ private static QueryTeamFolderContentsPage createEmptyPage() { @Override protected QueryTeamFolderContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> context, - QueryTeamFolderContentsResponse response) { + @Nullable QueryTeamFolderContentsResponse response) { return new QueryTeamFolderContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> @@ -9853,7 +9861,7 @@ public static class QueryTeamFolderContentsFixedSizeCollection QueryTeamFolderContentsFixedSizeCollection> { private QueryTeamFolderContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9863,7 +9871,7 @@ private static QueryTeamFolderContentsFixedSizeCollection createEmptyCollection( @Override protected QueryTeamFolderContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryTeamFolderContentsFixedSizeCollection(pages, collectionSize); } } @@ -9904,12 +9912,13 @@ public static class SearchTeamFoldersPage SearchTeamFoldersPage> { private SearchTeamFoldersPage( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> context, - SearchTeamFoldersResponse response) { + @Nullable SearchTeamFoldersResponse response) { super(context, response); } @@ -9919,18 +9928,20 @@ private static SearchTeamFoldersPage createEmptyPage() { @Override protected SearchTeamFoldersPage createPage( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> context, - SearchTeamFoldersResponse response) { + @Nullable SearchTeamFoldersResponse response) { return new SearchTeamFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> @@ -9949,7 +9960,7 @@ public static class SearchTeamFoldersFixedSizeCollection SearchTeamFoldersFixedSizeCollection> { private SearchTeamFoldersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9959,7 +9970,7 @@ private static SearchTeamFoldersFixedSizeCollection createEmptyCollection() { @Override protected SearchTeamFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchTeamFoldersFixedSizeCollection(pages, collectionSize); } } @@ -10000,12 +10011,13 @@ public static class QueryFolderContentsPage QueryFolderContentsPage> { private QueryFolderContentsPage( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> context, - QueryFolderContentsResponse response) { + @Nullable QueryFolderContentsResponse response) { super(context, response); } @@ -10015,18 +10027,20 @@ private static QueryFolderContentsPage createEmptyPage() { @Override protected QueryFolderContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> context, - QueryFolderContentsResponse response) { + @Nullable QueryFolderContentsResponse response) { return new QueryFolderContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> @@ -10045,7 +10059,7 @@ public static class QueryFolderContentsFixedSizeCollection QueryFolderContentsFixedSizeCollection> { private QueryFolderContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10055,7 +10069,7 @@ private static QueryFolderContentsFixedSizeCollection createEmptyCollection() { @Override protected QueryFolderContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryFolderContentsFixedSizeCollection(pages, collectionSize); } } @@ -10096,12 +10110,13 @@ public static class QueryUserRootContentsPage QueryUserRootContentsPage> { private QueryUserRootContentsPage( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> context, - QueryUserRootContentsResponse response) { + @Nullable QueryUserRootContentsResponse response) { super(context, response); } @@ -10111,18 +10126,20 @@ private static QueryUserRootContentsPage createEmptyPage() { @Override protected QueryUserRootContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> context, - QueryUserRootContentsResponse response) { + @Nullable QueryUserRootContentsResponse response) { return new QueryUserRootContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> @@ -10141,7 +10158,7 @@ public static class QueryUserRootContentsFixedSizeCollection QueryUserRootContentsFixedSizeCollection> { private QueryUserRootContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10151,7 +10168,7 @@ private static QueryUserRootContentsFixedSizeCollection createEmptyCollection() @Override protected QueryUserRootContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryUserRootContentsFixedSizeCollection(pages, collectionSize); } } @@ -10185,8 +10202,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -10196,14 +10214,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10218,7 +10238,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10228,7 +10248,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -10271,12 +10291,13 @@ public static class QueryRepositoryDirectoryContentsPage QueryRepositoryDirectoryContentsPage> { private QueryRepositoryDirectoryContentsPage( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> context, - QueryRepositoryDirectoryContentsResponse response) { + @Nullable QueryRepositoryDirectoryContentsResponse response) { super(context, response); } @@ -10286,18 +10307,20 @@ private static QueryRepositoryDirectoryContentsPage createEmptyPage() { @Override protected QueryRepositoryDirectoryContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> context, - QueryRepositoryDirectoryContentsResponse response) { + @Nullable QueryRepositoryDirectoryContentsResponse response) { return new QueryRepositoryDirectoryContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> @@ -10316,7 +10339,7 @@ public static class QueryRepositoryDirectoryContentsFixedSizeCollection QueryRepositoryDirectoryContentsFixedSizeCollection> { private QueryRepositoryDirectoryContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10326,7 +10349,7 @@ private static QueryRepositoryDirectoryContentsFixedSizeCollection createEmptyCo @Override protected QueryRepositoryDirectoryContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryRepositoryDirectoryContentsFixedSizeCollection(pages, collectionSize); } } @@ -10364,9 +10387,11 @@ public static class FetchRepositoryHistoryPage FetchRepositoryHistoryPage> { private FetchRepositoryHistoryPage( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, - FetchRepositoryHistoryResponse response) { + @Nullable FetchRepositoryHistoryResponse response) { super(context, response); } @@ -10376,15 +10401,19 @@ private static FetchRepositoryHistoryPage createEmptyPage() { @Override protected FetchRepositoryHistoryPage createPage( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, - FetchRepositoryHistoryResponse response) { + @Nullable FetchRepositoryHistoryResponse response) { return new FetchRepositoryHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10400,7 +10429,7 @@ public static class FetchRepositoryHistoryFixedSizeCollection FetchRepositoryHistoryFixedSizeCollection> { private FetchRepositoryHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10410,7 +10439,7 @@ private static FetchRepositoryHistoryFixedSizeCollection createEmptyCollection() @Override protected FetchRepositoryHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchRepositoryHistoryFixedSizeCollection(pages, collectionSize); } } @@ -10444,8 +10473,8 @@ public static class ListWorkspacesPage ListWorkspacesRequest, ListWorkspacesResponse, Workspace, ListWorkspacesPage> { private ListWorkspacesPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { super(context, response); } @@ -10455,14 +10484,14 @@ private static ListWorkspacesPage createEmptyPage() { @Override protected ListWorkspacesPage createPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { return new ListWorkspacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10476,7 +10505,8 @@ public static class ListWorkspacesFixedSizeCollection ListWorkspacesPage, ListWorkspacesFixedSizeCollection> { - private ListWorkspacesFixedSizeCollection(List pages, int collectionSize) { + private ListWorkspacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10486,7 +10516,7 @@ private static ListWorkspacesFixedSizeCollection createEmptyCollection() { @Override protected ListWorkspacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkspacesFixedSizeCollection(pages, collectionSize); } } @@ -10524,9 +10554,11 @@ public static class QueryDirectoryContentsPage QueryDirectoryContentsPage> { private QueryDirectoryContentsPage( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, - QueryDirectoryContentsResponse response) { + @Nullable QueryDirectoryContentsResponse response) { super(context, response); } @@ -10536,15 +10568,19 @@ private static QueryDirectoryContentsPage createEmptyPage() { @Override protected QueryDirectoryContentsPage createPage( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, - QueryDirectoryContentsResponse response) { + @Nullable QueryDirectoryContentsResponse response) { return new QueryDirectoryContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10560,7 +10596,7 @@ public static class QueryDirectoryContentsFixedSizeCollection QueryDirectoryContentsFixedSizeCollection> { private QueryDirectoryContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10570,7 +10606,7 @@ private static QueryDirectoryContentsFixedSizeCollection createEmptyCollection() @Override protected QueryDirectoryContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDirectoryContentsFixedSizeCollection(pages, collectionSize); } } @@ -10601,8 +10637,8 @@ public static class SearchFilesPage extends AbstractPage { private SearchFilesPage( - PageContext context, - SearchFilesResponse response) { + @Nullable PageContext context, + @Nullable SearchFilesResponse response) { super(context, response); } @@ -10612,14 +10648,14 @@ private static SearchFilesPage createEmptyPage() { @Override protected SearchFilesPage createPage( - PageContext context, - SearchFilesResponse response) { + @Nullable PageContext context, + @Nullable SearchFilesResponse response) { return new SearchFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10633,7 +10669,8 @@ public static class SearchFilesFixedSizeCollection SearchFilesPage, SearchFilesFixedSizeCollection> { - private SearchFilesFixedSizeCollection(List pages, int collectionSize) { + private SearchFilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10643,7 +10680,7 @@ private static SearchFilesFixedSizeCollection createEmptyCollection() { @Override protected SearchFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFilesFixedSizeCollection(pages, collectionSize); } } @@ -10680,8 +10717,9 @@ public static class ListReleaseConfigsPage ListReleaseConfigsPage> { private ListReleaseConfigsPage( - PageContext context, - ListReleaseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReleaseConfigsResponse response) { super(context, response); } @@ -10691,14 +10729,16 @@ private static ListReleaseConfigsPage createEmptyPage() { @Override protected ListReleaseConfigsPage createPage( - PageContext context, - ListReleaseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReleaseConfigsResponse response) { return new ListReleaseConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10713,7 +10753,7 @@ public static class ListReleaseConfigsFixedSizeCollection ListReleaseConfigsFixedSizeCollection> { private ListReleaseConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10723,7 +10763,7 @@ private static ListReleaseConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListReleaseConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleaseConfigsFixedSizeCollection(pages, collectionSize); } } @@ -10762,10 +10802,11 @@ public static class ListCompilationResultsPage ListCompilationResultsPage> { private ListCompilationResultsPage( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, - ListCompilationResultsResponse response) { + @Nullable ListCompilationResultsResponse response) { super(context, response); } @@ -10775,16 +10816,18 @@ private static ListCompilationResultsPage createEmptyPage() { @Override protected ListCompilationResultsPage createPage( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, - ListCompilationResultsResponse response) { + @Nullable ListCompilationResultsResponse response) { return new ListCompilationResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, ApiFuture futureResponse) { @@ -10801,7 +10844,7 @@ public static class ListCompilationResultsFixedSizeCollection ListCompilationResultsFixedSizeCollection> { private ListCompilationResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10811,7 +10854,7 @@ private static ListCompilationResultsFixedSizeCollection createEmptyCollection() @Override protected ListCompilationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCompilationResultsFixedSizeCollection(pages, collectionSize); } } @@ -10853,12 +10896,13 @@ public static class QueryCompilationResultActionsPage QueryCompilationResultActionsPage> { private QueryCompilationResultActionsPage( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> context, - QueryCompilationResultActionsResponse response) { + @Nullable QueryCompilationResultActionsResponse response) { super(context, response); } @@ -10868,18 +10912,20 @@ private static QueryCompilationResultActionsPage createEmptyPage() { @Override protected QueryCompilationResultActionsPage createPage( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> context, - QueryCompilationResultActionsResponse response) { + @Nullable QueryCompilationResultActionsResponse response) { return new QueryCompilationResultActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> @@ -10898,7 +10944,7 @@ public static class QueryCompilationResultActionsFixedSizeCollection QueryCompilationResultActionsFixedSizeCollection> { private QueryCompilationResultActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10908,7 +10954,7 @@ private static QueryCompilationResultActionsFixedSizeCollection createEmptyColle @Override protected QueryCompilationResultActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryCompilationResultActionsFixedSizeCollection(pages, collectionSize); } } @@ -10946,9 +10992,10 @@ public static class ListWorkflowConfigsPage ListWorkflowConfigsPage> { private ListWorkflowConfigsPage( - PageContext + @Nullable + PageContext context, - ListWorkflowConfigsResponse response) { + @Nullable ListWorkflowConfigsResponse response) { super(context, response); } @@ -10958,15 +11005,17 @@ private static ListWorkflowConfigsPage createEmptyPage() { @Override protected ListWorkflowConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListWorkflowConfigsResponse response) { + @Nullable ListWorkflowConfigsResponse response) { return new ListWorkflowConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10982,7 +11031,7 @@ public static class ListWorkflowConfigsFixedSizeCollection ListWorkflowConfigsFixedSizeCollection> { private ListWorkflowConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10992,7 +11041,7 @@ private static ListWorkflowConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkflowConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowConfigsFixedSizeCollection(pages, collectionSize); } } @@ -11031,10 +11080,11 @@ public static class ListWorkflowInvocationsPage ListWorkflowInvocationsPage> { private ListWorkflowInvocationsPage( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, - ListWorkflowInvocationsResponse response) { + @Nullable ListWorkflowInvocationsResponse response) { super(context, response); } @@ -11044,16 +11094,18 @@ private static ListWorkflowInvocationsPage createEmptyPage() { @Override protected ListWorkflowInvocationsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, - ListWorkflowInvocationsResponse response) { + @Nullable ListWorkflowInvocationsResponse response) { return new ListWorkflowInvocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, ApiFuture futureResponse) { @@ -11070,7 +11122,7 @@ public static class ListWorkflowInvocationsFixedSizeCollection ListWorkflowInvocationsFixedSizeCollection> { private ListWorkflowInvocationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11080,7 +11132,7 @@ private static ListWorkflowInvocationsFixedSizeCollection createEmptyCollection( @Override protected ListWorkflowInvocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowInvocationsFixedSizeCollection(pages, collectionSize); } } @@ -11122,12 +11174,13 @@ public static class QueryWorkflowInvocationActionsPage QueryWorkflowInvocationActionsPage> { private QueryWorkflowInvocationActionsPage( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> context, - QueryWorkflowInvocationActionsResponse response) { + @Nullable QueryWorkflowInvocationActionsResponse response) { super(context, response); } @@ -11137,18 +11190,20 @@ private static QueryWorkflowInvocationActionsPage createEmptyPage() { @Override protected QueryWorkflowInvocationActionsPage createPage( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> context, - QueryWorkflowInvocationActionsResponse response) { + @Nullable QueryWorkflowInvocationActionsResponse response) { return new QueryWorkflowInvocationActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> @@ -11167,7 +11222,7 @@ public static class QueryWorkflowInvocationActionsFixedSizeCollection QueryWorkflowInvocationActionsFixedSizeCollection> { private QueryWorkflowInvocationActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11177,7 +11232,7 @@ private static QueryWorkflowInvocationActionsFixedSizeCollection createEmptyColl @Override protected QueryWorkflowInvocationActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryWorkflowInvocationActionsFixedSizeCollection(pages, collectionSize); } } @@ -11211,8 +11266,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -11222,14 +11277,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11243,7 +11298,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11253,7 +11309,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java index e45d22ae7d9b..46f92e8854cf 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -668,7 +669,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); } @@ -688,7 +689,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataformStubSettings.newBuilder(clientContext)); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java index ba226871c40e..cee8570a8cd5 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java @@ -169,6 +169,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,11 +181,12 @@ @Generated("by gapic-generator-java") public abstract class DataformStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java index 7579ea8beab7..298ea1baf2cd 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java @@ -208,6 +208,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -2138,7 +2139,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); } @@ -2461,7 +2462,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index f0b21f1c86a8..514312b441c1 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -49,6 +49,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. /** @@ -1452,7 +1453,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataformClient implements BackgroundResource { - private final DataformSettings settings; + private final @Nullable DataformSettings settings; private final DataformStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1498,7 +1499,7 @@ protected DataformClient(DataformStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataformSettings getSettings() { + public final @Nullable DataformSettings getSettings() { return settings; } @@ -1544,7 +1545,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TeamFolder getTeamFolder(TeamFolderName name) { + public final TeamFolder getTeamFolder(@Nullable TeamFolderName name) { GetTeamFolderRequest request = GetTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTeamFolder(request); @@ -1655,7 +1656,7 @@ public final UnaryCallable getTeamFolderCallab * @param teamFolder Required. The TeamFolder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TeamFolder createTeamFolder(LocationName parent, TeamFolder teamFolder) { + public final TeamFolder createTeamFolder(@Nullable LocationName parent, TeamFolder teamFolder) { CreateTeamFolderRequest request = CreateTeamFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1864,7 +1865,7 @@ public final UnaryCallable updateTeamFolder * @param name Required. The TeamFolder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTeamFolder(TeamFolderName name) { + public final void deleteTeamFolder(@Nullable TeamFolderName name) { DeleteTeamFolderRequest request = DeleteTeamFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTeamFolder(request); @@ -1981,7 +1982,7 @@ public final UnaryCallable deleteTeamFolderCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTeamFolderTreeAsync( - TeamFolderName name, boolean force) { + @Nullable TeamFolderName name, boolean force) { DeleteTeamFolderTreeRequest request = DeleteTeamFolderTreeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2145,7 +2146,7 @@ public final OperationFuture deleteTeamFolderTr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( - TeamFolderName teamFolder) { + @Nullable TeamFolderName teamFolder) { QueryTeamFolderContentsRequest request = QueryTeamFolderContentsRequest.newBuilder() .setTeamFolder(teamFolder == null ? null : teamFolder.toString()) @@ -2438,7 +2439,7 @@ public final SearchTeamFoldersPagedResponse searchTeamFolders(SearchTeamFoldersR * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder getFolder(FolderName name) { + public final Folder getFolder(@Nullable FolderName name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFolder(request); @@ -2549,7 +2550,7 @@ public final UnaryCallable getFolderCallable() { * @param folder Required. The Folder to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder createFolder(LocationName parent, Folder folder) { + public final Folder createFolder(@Nullable LocationName parent, Folder folder) { CreateFolderRequest request = CreateFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2756,7 +2757,7 @@ public final UnaryCallable updateFolderCallable() { * @param name Required. The Folder's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFolder(FolderName name) { + public final void deleteFolder(@Nullable FolderName name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFolder(request); @@ -2873,7 +2874,7 @@ public final UnaryCallable deleteFolderCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFolderTreeAsync( - FolderName name, boolean force) { + @Nullable FolderName name, boolean force) { DeleteFolderTreeRequest request = DeleteFolderTreeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3034,7 +3035,7 @@ public final UnaryCallable deleteFolderTreeC * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryFolderContentsPagedResponse queryFolderContents(FolderName folder) { + public final QueryFolderContentsPagedResponse queryFolderContents(@Nullable FolderName folder) { QueryFolderContentsRequest request = QueryFolderContentsRequest.newBuilder() .setFolder(folder == null ? null : folder.toString()) @@ -3212,7 +3213,8 @@ public final QueryFolderContentsPagedResponse queryFolderContents( * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryUserRootContentsPagedResponse queryUserRootContents(LocationName location) { + public final QueryUserRootContentsPagedResponse queryUserRootContents( + @Nullable LocationName location) { QueryUserRootContentsRequest request = QueryUserRootContentsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -3395,7 +3397,7 @@ public final QueryUserRootContentsPagedResponse queryUserRootContents( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveFolderAsync( - FolderName name, String destinationContainingFolder) { + @Nullable FolderName name, String destinationContainingFolder) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3555,7 +3557,7 @@ public final UnaryCallable moveFolderCallable() { * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable LocationName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3736,7 +3738,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -3851,7 +3853,7 @@ public final UnaryCallable getRepositoryCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Repository createRepository( - LocationName parent, Repository repository, String repositoryId) { + @Nullable LocationName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4084,7 +4086,7 @@ public final UnaryCallable updateRepository * @param name Required. The repository's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRepository(RepositoryName name) { + public final void deleteRepository(@Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRepository(request); @@ -4204,7 +4206,7 @@ public final UnaryCallable deleteRepositoryCalla */ public final OperationFuture< DeleteRepositoryLongRunningResponse, DeleteRepositoryLongRunningMetadata> - deleteRepositoryLongRunningAsync(RepositoryName name, boolean force) { + deleteRepositoryLongRunningAsync(@Nullable RepositoryName name, boolean force) { DeleteRepositoryLongRunningRequest request = DeleteRepositoryLongRunningRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4373,7 +4375,7 @@ public final UnaryCallable deleteRepositoryCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveRepositoryAsync( - RepositoryName name, String destinationContainingFolder) { + @Nullable RepositoryName name, String destinationContainingFolder) { MoveRepositoryRequest request = MoveRepositoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5005,7 +5007,7 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) { + public final ListWorkspacesPagedResponse listWorkspaces(@Nullable RepositoryName parent) { ListWorkspacesRequest request = ListWorkspacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5174,7 +5176,7 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re * @param name Required. The workspace's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workspace getWorkspace(WorkspaceName name) { + public final Workspace getWorkspace(@Nullable WorkspaceName name) { GetWorkspaceRequest request = GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkspace(request); @@ -5294,7 +5296,7 @@ public final UnaryCallable getWorkspaceCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workspace createWorkspace( - RepositoryName parent, Workspace workspace, String workspaceId) { + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { CreateWorkspaceRequest request = CreateWorkspaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5422,7 +5424,7 @@ public final UnaryCallable createWorkspaceCal * @param name Required. The workspace resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkspace(WorkspaceName name) { + public final void deleteWorkspace(@Nullable WorkspaceName name) { DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWorkspace(request); @@ -6718,7 +6720,7 @@ public final UnaryCallable writeFileCallabl * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) { + public final ListReleaseConfigsPagedResponse listReleaseConfigs(@Nullable RepositoryName parent) { ListReleaseConfigsRequest request = ListReleaseConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6884,7 +6886,7 @@ public final ListReleaseConfigsPagedResponse listReleaseConfigs( * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) { + public final ReleaseConfig getReleaseConfig(@Nullable ReleaseConfigName name) { GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReleaseConfig(request); @@ -7009,7 +7011,7 @@ public final UnaryCallable getReleaseCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReleaseConfig createReleaseConfig( - RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { + @Nullable RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) { CreateReleaseConfigRequest request = CreateReleaseConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7249,7 +7251,7 @@ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest reques * @param name Required. The release config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReleaseConfig(ReleaseConfigName name) { + public final void deleteReleaseConfig(@Nullable ReleaseConfigName name) { DeleteReleaseConfigRequest request = DeleteReleaseConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7371,7 +7373,8 @@ public final UnaryCallable deleteReleaseConfi * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) { + public final ListCompilationResultsPagedResponse listCompilationResults( + @Nullable RepositoryName parent) { ListCompilationResultsRequest request = ListCompilationResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7545,7 +7548,7 @@ public final ListCompilationResultsPagedResponse listCompilationResults( * @param name Required. The compilation result's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompilationResult getCompilationResult(CompilationResultName name) { + public final CompilationResult getCompilationResult(@Nullable CompilationResultName name) { GetCompilationResultRequest request = GetCompilationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7672,7 +7675,7 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CompilationResult createCompilationResult( - RepositoryName parent, CompilationResult compilationResult) { + @Nullable RepositoryName parent, CompilationResult compilationResult) { CreateCompilationResultRequest request = CreateCompilationResultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7920,7 +7923,8 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc * `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(RepositoryName parent) { + public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( + @Nullable RepositoryName parent) { ListWorkflowConfigsRequest request = ListWorkflowConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8086,7 +8090,7 @@ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs( * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) { + public final WorkflowConfig getWorkflowConfig(@Nullable WorkflowConfigName name) { GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8213,7 +8217,7 @@ public final UnaryCallable getWorkflow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowConfig createWorkflowConfig( - RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { + @Nullable RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) { CreateWorkflowConfigRequest request = CreateWorkflowConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8453,7 +8457,7 @@ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest req * @param name Required. The workflow config's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowConfig(WorkflowConfigName name) { + public final void deleteWorkflowConfig(@Nullable WorkflowConfigName name) { DeleteWorkflowConfigRequest request = DeleteWorkflowConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8576,7 +8580,8 @@ public final UnaryCallable deleteWorkflowCon * format `projects/*/locations/*/repositories/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations(RepositoryName parent) { + public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( + @Nullable RepositoryName parent) { ListWorkflowInvocationsRequest request = ListWorkflowInvocationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8751,7 +8756,7 @@ public final ListWorkflowInvocationsPagedResponse listWorkflowInvocations( * @param name Required. The workflow invocation resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowInvocation getWorkflowInvocation(WorkflowInvocationName name) { + public final WorkflowInvocation getWorkflowInvocation(@Nullable WorkflowInvocationName name) { GetWorkflowInvocationRequest request = GetWorkflowInvocationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8878,7 +8883,7 @@ public final WorkflowInvocation getWorkflowInvocation(GetWorkflowInvocationReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowInvocation createWorkflowInvocation( - RepositoryName parent, WorkflowInvocation workflowInvocation) { + @Nullable RepositoryName parent, WorkflowInvocation workflowInvocation) { CreateWorkflowInvocationRequest request = CreateWorkflowInvocationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9005,7 +9010,7 @@ public final WorkflowInvocation createWorkflowInvocation( * @param name Required. The workflow invocation resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowInvocation(WorkflowInvocationName name) { + public final void deleteWorkflowInvocation(@Nullable WorkflowInvocationName name) { DeleteWorkflowInvocationRequest request = DeleteWorkflowInvocationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9309,7 +9314,7 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation * @param name Required. The config name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { + public final Config getConfig(@Nullable ConfigName name) { GetConfigRequest request = GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfig(request); @@ -9520,7 +9525,7 @@ public final UnaryCallable updateConfigCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -10006,12 +10011,13 @@ public static class QueryTeamFolderContentsPage QueryTeamFolderContentsPage> { private QueryTeamFolderContentsPage( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> context, - QueryTeamFolderContentsResponse response) { + @Nullable QueryTeamFolderContentsResponse response) { super(context, response); } @@ -10021,18 +10027,20 @@ private static QueryTeamFolderContentsPage createEmptyPage() { @Override protected QueryTeamFolderContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> context, - QueryTeamFolderContentsResponse response) { + @Nullable QueryTeamFolderContentsResponse response) { return new QueryTeamFolderContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse, QueryTeamFolderContentsResponse.TeamFolderContentsEntry> @@ -10051,7 +10059,7 @@ public static class QueryTeamFolderContentsFixedSizeCollection QueryTeamFolderContentsFixedSizeCollection> { private QueryTeamFolderContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10061,7 +10069,7 @@ private static QueryTeamFolderContentsFixedSizeCollection createEmptyCollection( @Override protected QueryTeamFolderContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryTeamFolderContentsFixedSizeCollection(pages, collectionSize); } } @@ -10102,12 +10110,13 @@ public static class SearchTeamFoldersPage SearchTeamFoldersPage> { private SearchTeamFoldersPage( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> context, - SearchTeamFoldersResponse response) { + @Nullable SearchTeamFoldersResponse response) { super(context, response); } @@ -10117,18 +10126,20 @@ private static SearchTeamFoldersPage createEmptyPage() { @Override protected SearchTeamFoldersPage createPage( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> context, - SearchTeamFoldersResponse response) { + @Nullable SearchTeamFoldersResponse response) { return new SearchTeamFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchTeamFoldersRequest, SearchTeamFoldersResponse, SearchTeamFoldersResponse.TeamFolderSearchResult> @@ -10147,7 +10158,7 @@ public static class SearchTeamFoldersFixedSizeCollection SearchTeamFoldersFixedSizeCollection> { private SearchTeamFoldersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10157,7 +10168,7 @@ private static SearchTeamFoldersFixedSizeCollection createEmptyCollection() { @Override protected SearchTeamFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchTeamFoldersFixedSizeCollection(pages, collectionSize); } } @@ -10198,12 +10209,13 @@ public static class QueryFolderContentsPage QueryFolderContentsPage> { private QueryFolderContentsPage( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> context, - QueryFolderContentsResponse response) { + @Nullable QueryFolderContentsResponse response) { super(context, response); } @@ -10213,18 +10225,20 @@ private static QueryFolderContentsPage createEmptyPage() { @Override protected QueryFolderContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> context, - QueryFolderContentsResponse response) { + @Nullable QueryFolderContentsResponse response) { return new QueryFolderContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsResponse.FolderContentsEntry> @@ -10243,7 +10257,7 @@ public static class QueryFolderContentsFixedSizeCollection QueryFolderContentsFixedSizeCollection> { private QueryFolderContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10253,7 +10267,7 @@ private static QueryFolderContentsFixedSizeCollection createEmptyCollection() { @Override protected QueryFolderContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryFolderContentsFixedSizeCollection(pages, collectionSize); } } @@ -10294,12 +10308,13 @@ public static class QueryUserRootContentsPage QueryUserRootContentsPage> { private QueryUserRootContentsPage( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> context, - QueryUserRootContentsResponse response) { + @Nullable QueryUserRootContentsResponse response) { super(context, response); } @@ -10309,18 +10324,20 @@ private static QueryUserRootContentsPage createEmptyPage() { @Override protected QueryUserRootContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> context, - QueryUserRootContentsResponse response) { + @Nullable QueryUserRootContentsResponse response) { return new QueryUserRootContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryUserRootContentsRequest, QueryUserRootContentsResponse, QueryUserRootContentsResponse.RootContentsEntry> @@ -10339,7 +10356,7 @@ public static class QueryUserRootContentsFixedSizeCollection QueryUserRootContentsFixedSizeCollection> { private QueryUserRootContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10349,7 +10366,7 @@ private static QueryUserRootContentsFixedSizeCollection createEmptyCollection() @Override protected QueryUserRootContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryUserRootContentsFixedSizeCollection(pages, collectionSize); } } @@ -10383,8 +10400,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -10394,14 +10412,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10416,7 +10436,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10426,7 +10446,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -10469,12 +10489,13 @@ public static class QueryRepositoryDirectoryContentsPage QueryRepositoryDirectoryContentsPage> { private QueryRepositoryDirectoryContentsPage( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> context, - QueryRepositoryDirectoryContentsResponse response) { + @Nullable QueryRepositoryDirectoryContentsResponse response) { super(context, response); } @@ -10484,18 +10505,20 @@ private static QueryRepositoryDirectoryContentsPage createEmptyPage() { @Override protected QueryRepositoryDirectoryContentsPage createPage( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> context, - QueryRepositoryDirectoryContentsResponse response) { + @Nullable QueryRepositoryDirectoryContentsResponse response) { return new QueryRepositoryDirectoryContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryRepositoryDirectoryContentsRequest, QueryRepositoryDirectoryContentsResponse, DirectoryEntry> @@ -10514,7 +10537,7 @@ public static class QueryRepositoryDirectoryContentsFixedSizeCollection QueryRepositoryDirectoryContentsFixedSizeCollection> { private QueryRepositoryDirectoryContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10524,7 +10547,7 @@ private static QueryRepositoryDirectoryContentsFixedSizeCollection createEmptyCo @Override protected QueryRepositoryDirectoryContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryRepositoryDirectoryContentsFixedSizeCollection(pages, collectionSize); } } @@ -10562,9 +10585,11 @@ public static class FetchRepositoryHistoryPage FetchRepositoryHistoryPage> { private FetchRepositoryHistoryPage( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, - FetchRepositoryHistoryResponse response) { + @Nullable FetchRepositoryHistoryResponse response) { super(context, response); } @@ -10574,15 +10599,19 @@ private static FetchRepositoryHistoryPage createEmptyPage() { @Override protected FetchRepositoryHistoryPage createPage( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, - FetchRepositoryHistoryResponse response) { + @Nullable FetchRepositoryHistoryResponse response) { return new FetchRepositoryHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + FetchRepositoryHistoryRequest, FetchRepositoryHistoryResponse, CommitLogEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10598,7 +10627,7 @@ public static class FetchRepositoryHistoryFixedSizeCollection FetchRepositoryHistoryFixedSizeCollection> { private FetchRepositoryHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10608,7 +10637,7 @@ private static FetchRepositoryHistoryFixedSizeCollection createEmptyCollection() @Override protected FetchRepositoryHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchRepositoryHistoryFixedSizeCollection(pages, collectionSize); } } @@ -10642,8 +10671,8 @@ public static class ListWorkspacesPage ListWorkspacesRequest, ListWorkspacesResponse, Workspace, ListWorkspacesPage> { private ListWorkspacesPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { super(context, response); } @@ -10653,14 +10682,14 @@ private static ListWorkspacesPage createEmptyPage() { @Override protected ListWorkspacesPage createPage( - PageContext context, - ListWorkspacesResponse response) { + @Nullable PageContext context, + @Nullable ListWorkspacesResponse response) { return new ListWorkspacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10674,7 +10703,8 @@ public static class ListWorkspacesFixedSizeCollection ListWorkspacesPage, ListWorkspacesFixedSizeCollection> { - private ListWorkspacesFixedSizeCollection(List pages, int collectionSize) { + private ListWorkspacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10684,7 +10714,7 @@ private static ListWorkspacesFixedSizeCollection createEmptyCollection() { @Override protected ListWorkspacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkspacesFixedSizeCollection(pages, collectionSize); } } @@ -10722,9 +10752,11 @@ public static class QueryDirectoryContentsPage QueryDirectoryContentsPage> { private QueryDirectoryContentsPage( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, - QueryDirectoryContentsResponse response) { + @Nullable QueryDirectoryContentsResponse response) { super(context, response); } @@ -10734,15 +10766,19 @@ private static QueryDirectoryContentsPage createEmptyPage() { @Override protected QueryDirectoryContentsPage createPage( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, - QueryDirectoryContentsResponse response) { + @Nullable QueryDirectoryContentsResponse response) { return new QueryDirectoryContentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + QueryDirectoryContentsRequest, QueryDirectoryContentsResponse, DirectoryEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10758,7 +10794,7 @@ public static class QueryDirectoryContentsFixedSizeCollection QueryDirectoryContentsFixedSizeCollection> { private QueryDirectoryContentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10768,7 +10804,7 @@ private static QueryDirectoryContentsFixedSizeCollection createEmptyCollection() @Override protected QueryDirectoryContentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDirectoryContentsFixedSizeCollection(pages, collectionSize); } } @@ -10799,8 +10835,8 @@ public static class SearchFilesPage extends AbstractPage { private SearchFilesPage( - PageContext context, - SearchFilesResponse response) { + @Nullable PageContext context, + @Nullable SearchFilesResponse response) { super(context, response); } @@ -10810,14 +10846,14 @@ private static SearchFilesPage createEmptyPage() { @Override protected SearchFilesPage createPage( - PageContext context, - SearchFilesResponse response) { + @Nullable PageContext context, + @Nullable SearchFilesResponse response) { return new SearchFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10831,7 +10867,8 @@ public static class SearchFilesFixedSizeCollection SearchFilesPage, SearchFilesFixedSizeCollection> { - private SearchFilesFixedSizeCollection(List pages, int collectionSize) { + private SearchFilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10841,7 +10878,7 @@ private static SearchFilesFixedSizeCollection createEmptyCollection() { @Override protected SearchFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFilesFixedSizeCollection(pages, collectionSize); } } @@ -10878,8 +10915,9 @@ public static class ListReleaseConfigsPage ListReleaseConfigsPage> { private ListReleaseConfigsPage( - PageContext context, - ListReleaseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReleaseConfigsResponse response) { super(context, response); } @@ -10889,14 +10927,16 @@ private static ListReleaseConfigsPage createEmptyPage() { @Override protected ListReleaseConfigsPage createPage( - PageContext context, - ListReleaseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReleaseConfigsResponse response) { return new ListReleaseConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10911,7 +10951,7 @@ public static class ListReleaseConfigsFixedSizeCollection ListReleaseConfigsFixedSizeCollection> { private ListReleaseConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10921,7 +10961,7 @@ private static ListReleaseConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListReleaseConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleaseConfigsFixedSizeCollection(pages, collectionSize); } } @@ -10960,10 +11000,11 @@ public static class ListCompilationResultsPage ListCompilationResultsPage> { private ListCompilationResultsPage( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, - ListCompilationResultsResponse response) { + @Nullable ListCompilationResultsResponse response) { super(context, response); } @@ -10973,16 +11014,18 @@ private static ListCompilationResultsPage createEmptyPage() { @Override protected ListCompilationResultsPage createPage( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, - ListCompilationResultsResponse response) { + @Nullable ListCompilationResultsResponse response) { return new ListCompilationResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCompilationResultsRequest, ListCompilationResultsResponse, CompilationResult> context, ApiFuture futureResponse) { @@ -10999,7 +11042,7 @@ public static class ListCompilationResultsFixedSizeCollection ListCompilationResultsFixedSizeCollection> { private ListCompilationResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11009,7 +11052,7 @@ private static ListCompilationResultsFixedSizeCollection createEmptyCollection() @Override protected ListCompilationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCompilationResultsFixedSizeCollection(pages, collectionSize); } } @@ -11051,12 +11094,13 @@ public static class QueryCompilationResultActionsPage QueryCompilationResultActionsPage> { private QueryCompilationResultActionsPage( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> context, - QueryCompilationResultActionsResponse response) { + @Nullable QueryCompilationResultActionsResponse response) { super(context, response); } @@ -11066,18 +11110,20 @@ private static QueryCompilationResultActionsPage createEmptyPage() { @Override protected QueryCompilationResultActionsPage createPage( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> context, - QueryCompilationResultActionsResponse response) { + @Nullable QueryCompilationResultActionsResponse response) { return new QueryCompilationResultActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryCompilationResultActionsRequest, QueryCompilationResultActionsResponse, CompilationResultAction> @@ -11096,7 +11142,7 @@ public static class QueryCompilationResultActionsFixedSizeCollection QueryCompilationResultActionsFixedSizeCollection> { private QueryCompilationResultActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11106,7 +11152,7 @@ private static QueryCompilationResultActionsFixedSizeCollection createEmptyColle @Override protected QueryCompilationResultActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryCompilationResultActionsFixedSizeCollection(pages, collectionSize); } } @@ -11144,9 +11190,10 @@ public static class ListWorkflowConfigsPage ListWorkflowConfigsPage> { private ListWorkflowConfigsPage( - PageContext + @Nullable + PageContext context, - ListWorkflowConfigsResponse response) { + @Nullable ListWorkflowConfigsResponse response) { super(context, response); } @@ -11156,15 +11203,17 @@ private static ListWorkflowConfigsPage createEmptyPage() { @Override protected ListWorkflowConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListWorkflowConfigsResponse response) { + @Nullable ListWorkflowConfigsResponse response) { return new ListWorkflowConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11180,7 +11229,7 @@ public static class ListWorkflowConfigsFixedSizeCollection ListWorkflowConfigsFixedSizeCollection> { private ListWorkflowConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11190,7 +11239,7 @@ private static ListWorkflowConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkflowConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowConfigsFixedSizeCollection(pages, collectionSize); } } @@ -11229,10 +11278,11 @@ public static class ListWorkflowInvocationsPage ListWorkflowInvocationsPage> { private ListWorkflowInvocationsPage( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, - ListWorkflowInvocationsResponse response) { + @Nullable ListWorkflowInvocationsResponse response) { super(context, response); } @@ -11242,16 +11292,18 @@ private static ListWorkflowInvocationsPage createEmptyPage() { @Override protected ListWorkflowInvocationsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, - ListWorkflowInvocationsResponse response) { + @Nullable ListWorkflowInvocationsResponse response) { return new ListWorkflowInvocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkflowInvocationsRequest, ListWorkflowInvocationsResponse, WorkflowInvocation> context, ApiFuture futureResponse) { @@ -11268,7 +11320,7 @@ public static class ListWorkflowInvocationsFixedSizeCollection ListWorkflowInvocationsFixedSizeCollection> { private ListWorkflowInvocationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11278,7 +11330,7 @@ private static ListWorkflowInvocationsFixedSizeCollection createEmptyCollection( @Override protected ListWorkflowInvocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowInvocationsFixedSizeCollection(pages, collectionSize); } } @@ -11320,12 +11372,13 @@ public static class QueryWorkflowInvocationActionsPage QueryWorkflowInvocationActionsPage> { private QueryWorkflowInvocationActionsPage( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> context, - QueryWorkflowInvocationActionsResponse response) { + @Nullable QueryWorkflowInvocationActionsResponse response) { super(context, response); } @@ -11335,18 +11388,20 @@ private static QueryWorkflowInvocationActionsPage createEmptyPage() { @Override protected QueryWorkflowInvocationActionsPage createPage( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> context, - QueryWorkflowInvocationActionsResponse response) { + @Nullable QueryWorkflowInvocationActionsResponse response) { return new QueryWorkflowInvocationActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryWorkflowInvocationActionsRequest, QueryWorkflowInvocationActionsResponse, WorkflowInvocationAction> @@ -11365,7 +11420,7 @@ public static class QueryWorkflowInvocationActionsFixedSizeCollection QueryWorkflowInvocationActionsFixedSizeCollection> { private QueryWorkflowInvocationActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11375,7 +11430,7 @@ private static QueryWorkflowInvocationActionsFixedSizeCollection createEmptyColl @Override protected QueryWorkflowInvocationActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryWorkflowInvocationActionsFixedSizeCollection(pages, collectionSize); } } @@ -11409,8 +11464,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -11420,14 +11475,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11441,7 +11496,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11451,7 +11507,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index c11920526b83..3e6ccdb9ea76 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -685,7 +686,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); } @@ -705,7 +706,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataformStubSettings.newBuilder(clientContext)); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java index d830a40341f2..c8445168f4ef 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -173,6 +173,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,11 +186,12 @@ @Generated("by gapic-generator-java") public abstract class DataformStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index 210b1ec6f8ba..f42c571ad748 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -211,6 +211,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -2164,7 +2165,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); } @@ -2498,7 +2499,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultName.java index 18d09218c5bc..0db404da3ab2 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CompilationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CompilationResultName parse(String formattedString) { + public static @Nullable CompilationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompilationResultName> values) { List list = new ArrayList<>(values.size()); for (CompilationResultName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigName.java index 8ef3214a502a..a7386e8bf9ee 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static ConfigName parse(String formattedString) { + public static @Nullable ConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigName> values) { List list = new ArrayList<>(values.size()); for (ConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java index 341c58fc0e5a..acb9462e4ad9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String folder) { .toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/LocationName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/LocationName.java index de6b949338e6..40aa819bb6ff 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/LocationName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ReleaseConfigName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ReleaseConfigName.java index 52b178f3f5ef..aeee530941f6 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ReleaseConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/ReleaseConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReleaseConfigName parse(String formattedString) { + public static @Nullable ReleaseConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseConfigName> values) { List list = new ArrayList<>(values.size()); for (ReleaseConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryName.java index 532eeb8661f7..f659a11e642b 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String repository) .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java index 65f624a6f2b4..72d86c1df5ef 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/TeamFolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String teamFolder) .toString(); } - public static TeamFolderName parse(String formattedString) { + public static @Nullable TeamFolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TeamFolderName> values) { List list = new ArrayList<>(values.size()); for (TeamFolderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowConfigName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowConfigName.java index 1dc57ac341d5..b2b303e6391e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkflowConfigName parse(String formattedString) { + public static @Nullable WorkflowConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowConfigName> values) { List list = new ArrayList<>(values.size()); for (WorkflowConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationName.java index 9f396735171c..ae7e96308d91 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkflowInvocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkflowInvocationName parse(String formattedString) { + public static @Nullable WorkflowInvocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowInvocationName> values) { List list = new ArrayList<>(values.size()); for (WorkflowInvocationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceName.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceName.java index 3b9370e4c55a..6492cc36b501 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceName.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/WorkspaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkspaceName parse(String formattedString) { + public static @Nullable WorkspaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkspaceName> values) { List list = new ArrayList<>(values.size()); for (WorkspaceName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java index 8d258f034226..a4992bef8f1d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CompilationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CompilationResultName parse(String formattedString) { + public static @Nullable CompilationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompilationResultName> values) { List list = new ArrayList<>(values.size()); for (CompilationResultName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigName.java index c2c80e8f8784..99720aef7922 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static ConfigName parse(String formattedString) { + public static @Nullable ConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigName> values) { List list = new ArrayList<>(values.size()); for (ConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java index 1f78edbd86f4..352f18c9b13e 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String folder) { .toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java index 61b420abc8d6..e991bc90c488 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java index b78e76e31630..85ce17d6021a 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ReleaseConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReleaseConfigName parse(String formattedString) { + public static @Nullable ReleaseConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseConfigName> values) { List list = new ArrayList<>(values.size()); for (ReleaseConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java index 71efa94064f7..34dbb2093b2d 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String repository) .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java index 0933816f5cb2..b0fa48d2c938 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/TeamFolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String teamFolder) .toString(); } - public static TeamFolderName parse(String formattedString) { + public static @Nullable TeamFolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TeamFolderName> values) { List list = new ArrayList<>(values.size()); for (TeamFolderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java index 827806ee7719..c5e3ed8fae16 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkflowConfigName parse(String formattedString) { + public static @Nullable WorkflowConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowConfigName> values) { List list = new ArrayList<>(values.size()); for (WorkflowConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java index ced129340c51..62b6ad1948e3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkflowInvocationName parse(String formattedString) { + public static @Nullable WorkflowInvocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowInvocationName> values) { List list = new ArrayList<>(values.size()); for (WorkflowInvocationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java index 3a95e893bd04..62af2b60e9dc 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkspaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkspaceName parse(String formattedString) { + public static @Nullable WorkspaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkspaceName> values) { List list = new ArrayList<>(values.size()); for (WorkspaceName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java index 6b510651a6eb..2af0ee501e94 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java @@ -39,6 +39,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. /** @@ -776,7 +777,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataLabelingServiceClient implements BackgroundResource { - private final DataLabelingServiceSettings settings; + private final @Nullable DataLabelingServiceSettings settings; private final DataLabelingServiceStub stub; private final OperationsClient operationsClient; @@ -819,7 +820,7 @@ protected DataLabelingServiceClient(DataLabelingServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DataLabelingServiceSettings getSettings() { + public final @Nullable DataLabelingServiceSettings getSettings() { return settings; } @@ -858,7 +859,7 @@ public final OperationsClient getOperationsClient() { * @param dataset Required. The dataset to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset createDataset(ProjectName parent, Dataset dataset) { + public final Dataset createDataset(@Nullable ProjectName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -976,7 +977,7 @@ public final UnaryCallable createDatasetCallable( * projects/{project_id}/datasets/{dataset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -1090,7 +1091,7 @@ public final UnaryCallable getDatasetCallable() { * @param filter Optional. Filter on dataset is not supported at this moment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(ProjectName parent, String filter) { + public final ListDatasetsPagedResponse listDatasets(@Nullable ProjectName parent, String filter) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1259,7 +1260,7 @@ public final UnaryCallable listDatase * projects/{project_id}/datasets/{dataset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataset(DatasetName name) { + public final void deleteDataset(@Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataset(request); @@ -1377,7 +1378,7 @@ public final UnaryCallable deleteDatasetCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importDataAsync(DatasetName name, InputConfig inputConfig) { + importDataAsync(@Nullable DatasetName name, InputConfig inputConfig) { ImportDataRequest request = ImportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1560,8 +1561,8 @@ public final UnaryCallable importDataCallable() { */ public final OperationFuture exportDataAsync( - DatasetName name, - AnnotatedDatasetName annotatedDataset, + @Nullable DatasetName name, + @Nullable AnnotatedDatasetName annotatedDataset, String filter, OutputConfig outputConfig) { ExportDataRequest request = @@ -1610,7 +1611,10 @@ public final UnaryCallable importDataCallable() { */ public final OperationFuture exportDataAsync( - DatasetName name, String annotatedDataset, String filter, OutputConfig outputConfig) { + @Nullable DatasetName name, + String annotatedDataset, + String filter, + OutputConfig outputConfig) { ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1658,7 +1662,7 @@ public final UnaryCallable importDataCallable() { public final OperationFuture exportDataAsync( String name, - AnnotatedDatasetName annotatedDataset, + @Nullable AnnotatedDatasetName annotatedDataset, String filter, OutputConfig outputConfig) { ExportDataRequest request = @@ -1847,7 +1851,7 @@ public final UnaryCallable exportDataCallable() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataItem getDataItem(DataItemName name) { + public final DataItem getDataItem(@Nullable DataItemName name) { GetDataItemRequest request = GetDataItemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataItem(request); @@ -1967,7 +1971,8 @@ public final UnaryCallable getDataItemCallable() { * @param filter Optional. Filter is not supported at this moment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataItemsPagedResponse listDataItems(DatasetName parent, String filter) { + public final ListDataItemsPagedResponse listDataItems( + @Nullable DatasetName parent, String filter) { ListDataItemsRequest request = ListDataItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2143,7 +2148,7 @@ public final UnaryCallable listData * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotatedDataset getAnnotatedDataset(AnnotatedDatasetName name) { + public final AnnotatedDataset getAnnotatedDataset(@Nullable AnnotatedDatasetName name) { GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2269,7 +2274,7 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( - DatasetName parent, String filter) { + @Nullable DatasetName parent, String filter) { ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2512,7 +2517,9 @@ public final void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture labelImageAsync( - DatasetName parent, HumanAnnotationConfig basicConfig, LabelImageRequest.Feature feature) { + @Nullable DatasetName parent, + HumanAnnotationConfig basicConfig, + LabelImageRequest.Feature feature) { LabelImageRequest request = LabelImageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2682,7 +2689,9 @@ public final UnaryCallable labelImageCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture labelVideoAsync( - DatasetName parent, HumanAnnotationConfig basicConfig, LabelVideoRequest.Feature feature) { + @Nullable DatasetName parent, + HumanAnnotationConfig basicConfig, + LabelVideoRequest.Feature feature) { LabelVideoRequest request = LabelVideoRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2852,7 +2861,9 @@ public final UnaryCallable labelVideoCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture labelTextAsync( - DatasetName parent, HumanAnnotationConfig basicConfig, LabelTextRequest.Feature feature) { + @Nullable DatasetName parent, + HumanAnnotationConfig basicConfig, + LabelTextRequest.Feature feature) { LabelTextRequest request = LabelTextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3021,7 +3032,7 @@ public final UnaryCallable labelTextCallable() { * {display_name}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example getExample(ExampleName name, String filter) { + public final Example getExample(@Nullable ExampleName name, String filter) { GetExampleRequest request = GetExampleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3154,7 +3165,8 @@ public final UnaryCallable getExampleCallable() { * "annotation_spec.display_name = {display_name}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(AnnotatedDatasetName parent, String filter) { + public final ListExamplesPagedResponse listExamples( + @Nullable AnnotatedDatasetName parent, String filter) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3337,7 +3349,7 @@ public final UnaryCallable listExampl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpecSet createAnnotationSpecSet( - ProjectName parent, AnnotationSpecSet annotationSpecSet) { + @Nullable ProjectName parent, AnnotationSpecSet annotationSpecSet) { CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3463,7 +3475,7 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnnotationSpecSet getAnnotationSpecSet(AnnotationSpecSetName name) { + public final AnnotationSpecSet getAnnotationSpecSet(@Nullable AnnotationSpecSetName name) { GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3583,7 +3595,7 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets( - ProjectName parent, String filter) { + @Nullable ProjectName parent, String filter) { ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3757,7 +3769,7 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets( * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAnnotationSpecSet(AnnotationSpecSetName name) { + public final void deleteAnnotationSpecSet(@Nullable AnnotationSpecSetName name) { DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3875,7 +3887,7 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstructionAsync( - ProjectName parent, Instruction instruction) { + @Nullable ProjectName parent, Instruction instruction) { CreateInstructionRequest request = CreateInstructionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4026,7 +4038,7 @@ public final UnaryCallable createInstructio * projects/{project_id}/instructions/{instruction_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instruction getInstruction(InstructionName name) { + public final Instruction getInstruction(@Nullable InstructionName name) { GetInstructionRequest request = GetInstructionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstruction(request); @@ -4141,7 +4153,8 @@ public final UnaryCallable getInstructionCal * @param filter Optional. Filter is not supported at this moment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstructionsPagedResponse listInstructions(ProjectName parent, String filter) { + public final ListInstructionsPagedResponse listInstructions( + @Nullable ProjectName parent, String filter) { ListInstructionsRequest request = ListInstructionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4312,7 +4325,7 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ * projects/{project_id}/instructions/{instruction_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInstruction(InstructionName name) { + public final void deleteInstruction(@Nullable InstructionName name) { DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4426,7 +4439,7 @@ public final UnaryCallable deleteInstructionCal *

"projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -4577,7 +4590,7 @@ public final UnaryCallable getEvaluationCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchEvaluationsPagedResponse searchEvaluations( - EvaluationName parent, String filter) { + @Nullable EvaluationName parent, String filter) { SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4787,7 +4800,7 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchExampleComparisonsPagedResponse searchExampleComparisons( - EvaluationName parent) { + @Nullable EvaluationName parent) { SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4967,7 +4980,7 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons( * @param job Required. The evaluation job to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationJob createEvaluationJob(ProjectName parent, EvaluationJob job) { + public final EvaluationJob createEvaluationJob(@Nullable ProjectName parent, EvaluationJob job) { CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5202,7 +5215,7 @@ public final EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest reques *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EvaluationJob getEvaluationJob(EvaluationJobName name) { + public final EvaluationJob getEvaluationJob(@Nullable EvaluationJobName name) { GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluationJob(request); @@ -5314,7 +5327,7 @@ public final UnaryCallable getEvaluation *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void pauseEvaluationJob(EvaluationJobName name) { + public final void pauseEvaluationJob(@Nullable EvaluationJobName name) { PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5432,7 +5445,7 @@ public final UnaryCallable pauseEvaluationJobC *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void resumeEvaluationJob(EvaluationJobName name) { + public final void resumeEvaluationJob(@Nullable EvaluationJobName name) { ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5549,7 +5562,7 @@ public final UnaryCallable resumeEvaluationJo *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvaluationJob(EvaluationJobName name) { + public final void deleteEvaluationJob(@Nullable EvaluationJobName name) { DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5677,7 +5690,7 @@ public final UnaryCallable deleteEvaluationJo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEvaluationJobsPagedResponse listEvaluationJobs( - ProjectName parent, String filter) { + @Nullable ProjectName parent, String filter) { ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5895,8 +5908,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -5906,14 +5919,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5927,7 +5940,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5937,7 +5951,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -5971,8 +5985,8 @@ public static class ListDataItemsPage ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage> { private ListDataItemsPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { super(context, response); } @@ -5982,14 +5996,14 @@ private static ListDataItemsPage createEmptyPage() { @Override protected ListDataItemsPage createPage( - PageContext context, - ListDataItemsResponse response) { + @Nullable PageContext context, + @Nullable ListDataItemsResponse response) { return new ListDataItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6003,7 +6017,8 @@ public static class ListDataItemsFixedSizeCollection ListDataItemsPage, ListDataItemsFixedSizeCollection> { - private ListDataItemsFixedSizeCollection(List pages, int collectionSize) { + private ListDataItemsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6013,7 +6028,7 @@ private static ListDataItemsFixedSizeCollection createEmptyCollection() { @Override protected ListDataItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataItemsFixedSizeCollection(pages, collectionSize); } } @@ -6051,9 +6066,11 @@ public static class ListAnnotatedDatasetsPage ListAnnotatedDatasetsPage> { private ListAnnotatedDatasetsPage( - PageContext + @Nullable + PageContext< + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset> context, - ListAnnotatedDatasetsResponse response) { + @Nullable ListAnnotatedDatasetsResponse response) { super(context, response); } @@ -6063,15 +6080,19 @@ private static ListAnnotatedDatasetsPage createEmptyPage() { @Override protected ListAnnotatedDatasetsPage createPage( - PageContext + @Nullable + PageContext< + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset> context, - ListAnnotatedDatasetsResponse response) { + @Nullable ListAnnotatedDatasetsResponse response) { return new ListAnnotatedDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6087,7 +6108,7 @@ public static class ListAnnotatedDatasetsFixedSizeCollection ListAnnotatedDatasetsFixedSizeCollection> { private ListAnnotatedDatasetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6097,7 +6118,7 @@ private static ListAnnotatedDatasetsFixedSizeCollection createEmptyCollection() @Override protected ListAnnotatedDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnnotatedDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -6130,8 +6151,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -6141,14 +6162,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6162,7 +6183,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6172,7 +6194,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -6211,10 +6233,11 @@ public static class ListAnnotationSpecSetsPage ListAnnotationSpecSetsPage> { private ListAnnotationSpecSetsPage( - PageContext< + @Nullable + PageContext< ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet> context, - ListAnnotationSpecSetsResponse response) { + @Nullable ListAnnotationSpecSetsResponse response) { super(context, response); } @@ -6224,16 +6247,18 @@ private static ListAnnotationSpecSetsPage createEmptyPage() { @Override protected ListAnnotationSpecSetsPage createPage( - PageContext< + @Nullable + PageContext< ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet> context, - ListAnnotationSpecSetsResponse response) { + @Nullable ListAnnotationSpecSetsResponse response) { return new ListAnnotationSpecSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet> context, ApiFuture futureResponse) { @@ -6250,7 +6275,7 @@ public static class ListAnnotationSpecSetsFixedSizeCollection ListAnnotationSpecSetsFixedSizeCollection> { private ListAnnotationSpecSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6260,7 +6285,7 @@ private static ListAnnotationSpecSetsFixedSizeCollection createEmptyCollection() @Override protected ListAnnotationSpecSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnnotationSpecSetsFixedSizeCollection(pages, collectionSize); } } @@ -6294,8 +6319,9 @@ public static class ListInstructionsPage ListInstructionsRequest, ListInstructionsResponse, Instruction, ListInstructionsPage> { private ListInstructionsPage( - PageContext context, - ListInstructionsResponse response) { + @Nullable PageContext + context, + @Nullable ListInstructionsResponse response) { super(context, response); } @@ -6305,14 +6331,16 @@ private static ListInstructionsPage createEmptyPage() { @Override protected ListInstructionsPage createPage( - PageContext context, - ListInstructionsResponse response) { + @Nullable PageContext + context, + @Nullable ListInstructionsResponse response) { return new ListInstructionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6327,7 +6355,7 @@ public static class ListInstructionsFixedSizeCollection ListInstructionsFixedSizeCollection> { private ListInstructionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6337,7 +6365,7 @@ private static ListInstructionsFixedSizeCollection createEmptyCollection() { @Override protected ListInstructionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstructionsFixedSizeCollection(pages, collectionSize); } } @@ -6371,8 +6399,9 @@ public static class SearchEvaluationsPage SearchEvaluationsRequest, SearchEvaluationsResponse, Evaluation, SearchEvaluationsPage> { private SearchEvaluationsPage( - PageContext context, - SearchEvaluationsResponse response) { + @Nullable PageContext + context, + @Nullable SearchEvaluationsResponse response) { super(context, response); } @@ -6382,14 +6411,16 @@ private static SearchEvaluationsPage createEmptyPage() { @Override protected SearchEvaluationsPage createPage( - PageContext context, - SearchEvaluationsResponse response) { + @Nullable PageContext + context, + @Nullable SearchEvaluationsResponse response) { return new SearchEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6404,7 +6435,7 @@ public static class SearchEvaluationsFixedSizeCollection SearchEvaluationsFixedSizeCollection> { private SearchEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6414,7 +6445,7 @@ private static SearchEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected SearchEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -6455,12 +6486,13 @@ public static class SearchExampleComparisonsPage SearchExampleComparisonsPage> { private SearchExampleComparisonsPage( - PageContext< + @Nullable + PageContext< SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, - SearchExampleComparisonsResponse response) { + @Nullable SearchExampleComparisonsResponse response) { super(context, response); } @@ -6470,18 +6502,20 @@ private static SearchExampleComparisonsPage createEmptyPage() { @Override protected SearchExampleComparisonsPage createPage( - PageContext< + @Nullable + PageContext< SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, - SearchExampleComparisonsResponse response) { + @Nullable SearchExampleComparisonsResponse response) { return new SearchExampleComparisonsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> @@ -6500,7 +6534,7 @@ public static class SearchExampleComparisonsFixedSizeCollection SearchExampleComparisonsFixedSizeCollection> { private SearchExampleComparisonsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6510,7 +6544,7 @@ private static SearchExampleComparisonsFixedSizeCollection createEmptyCollection @Override protected SearchExampleComparisonsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchExampleComparisonsFixedSizeCollection(pages, collectionSize); } } @@ -6547,8 +6581,9 @@ public static class ListEvaluationJobsPage ListEvaluationJobsPage> { private ListEvaluationJobsPage( - PageContext context, - ListEvaluationJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListEvaluationJobsResponse response) { super(context, response); } @@ -6558,14 +6593,16 @@ private static ListEvaluationJobsPage createEmptyPage() { @Override protected ListEvaluationJobsPage createPage( - PageContext context, - ListEvaluationJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListEvaluationJobsResponse response) { return new ListEvaluationJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6580,7 +6617,7 @@ public static class ListEvaluationJobsFixedSizeCollection ListEvaluationJobsFixedSizeCollection> { private ListEvaluationJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6590,7 +6627,7 @@ private static ListEvaluationJobsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java index 7bfbb0feef2d..92da5cf37e2e 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -408,7 +409,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -428,7 +429,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataLabelingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java index 93ca206ec989..65206591245e 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java @@ -92,6 +92,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -104,7 +105,7 @@ @Generated("by gapic-generator-java") public abstract class DataLabelingServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java index 7fc6a6640497..660c2ac3cb35 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java @@ -122,6 +122,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1127,7 +1128,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1335,7 +1336,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java index 08cf6f9dba7e..f2a3343d617e 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String dataset, String annotatedData .toString(); } - public static AnnotatedDatasetName parse(String formattedString) { + public static @Nullable AnnotatedDatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotatedDatasetName> values) { List list = new ArrayList<>(values.size()); for (AnnotatedDatasetName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java index d08aee134391..bc7197027a15 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String project, String annotationSpecSet) { .toString(); } - public static AnnotationSpecSetName parse(String formattedString) { + public static @Nullable AnnotationSpecSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationSpecSetName> values) { List list = new ArrayList<>(values.size()); for (AnnotationSpecSetName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java index 75b776b542e7..b9c35972c6d5 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String dataset, String dataItem) { .toString(); } - public static DataItemName parse(String formattedString) { + public static @Nullable DataItemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataItemName> values) { List list = new ArrayList<>(values.size()); for (DataItemName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java index 2f5488a43da4..b4227e5005f5 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String dataset) { return newBuilder().setProject(project).setDataset(dataset).build().toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java index e0e4791037b0..f1d5a258499b 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String evaluationJob) { return newBuilder().setProject(project).setEvaluationJob(evaluationJob).build().toString(); } - public static EvaluationJobName parse(String formattedString) { + public static @Nullable EvaluationJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationJobName> values) { List list = new ArrayList<>(values.size()); for (EvaluationJobName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java index 11e6f6bbcc00..55f66f6c42d0 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String dataset, String evaluation) { .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java index c4d6ec9547ac..9bf32cbfd840 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExampleName parse(String formattedString) { + public static @Nullable ExampleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleName> values) { List list = new ArrayList<>(values.size()); for (ExampleName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java index 278489fed13f..97315f4b76f7 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instruction) { return newBuilder().setProject(project).setInstruction(instruction).build().toString(); } - public static InstructionName parse(String formattedString) { + public static @Nullable InstructionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstructionName> values) { List list = new ArrayList<>(values.size()); for (InstructionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java index 968c1bbf166c..28332790f426 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceClient.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceClient.java index 1ac1162df634..bd8e1a8914a8 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceClient.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceClient.java @@ -24,6 +24,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigManagementServiceClient implements BackgroundResource { - private final ConfigManagementServiceSettings settings; + private final @Nullable ConfigManagementServiceSettings settings; private final ConfigManagementServiceStub stub; /** Constructs an instance of ConfigManagementServiceClient with default settings. */ @@ -197,7 +198,7 @@ protected ConfigManagementServiceClient(ConfigManagementServiceStub stub) { this.stub = stub; } - public final ConfigManagementServiceSettings getSettings() { + public final @Nullable ConfigManagementServiceSettings getSettings() { return settings; } @@ -231,7 +232,7 @@ public ConfigManagementServiceStub getStub() { * `projects/{project_number}/locations/global/config` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { + public final Config getConfig(@Nullable ConfigName name) { GetConfigRequest request = GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfig(request); diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceSettings.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceSettings.java index 2176c0143cc6..b9d5e10c3585 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceSettings.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigManagementServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -176,7 +177,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigManagementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/ConfigManagementServiceStubSettings.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/ConfigManagementServiceStubSettings.java index 69fabcf83212..c59c15b5f616 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/ConfigManagementServiceStubSettings.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/ConfigManagementServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -287,7 +288,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageClient.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageClient.java index e28824a1b110..a47517a34980 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageClient.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageClient.java @@ -41,6 +41,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. /** @@ -472,7 +473,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LineageClient implements BackgroundResource { - private final LineageSettings settings; + private final @Nullable LineageSettings settings; private final LineageStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -518,7 +519,7 @@ protected LineageClient(LineageStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final LineageSettings getSettings() { + public final @Nullable LineageSettings getSettings() { return settings; } @@ -671,7 +672,7 @@ public final ProcessOpenLineageRunEventResponse processOpenLineageRunEvent( * @param process Required. The process to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Process createProcess(LocationName parent, Process process) { + public final Process createProcess(@Nullable LocationName parent, Process process) { CreateProcessRequest request = CreateProcessRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -881,7 +882,7 @@ public final UnaryCallable updateProcessCallable( * @param name Required. The name of the process to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Process getProcess(ProcessName name) { + public final Process getProcess(@Nullable ProcessName name) { GetProcessRequest request = GetProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcess(request); @@ -992,7 +993,7 @@ public final UnaryCallable getProcessCallable() { * processes. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessesPagedResponse listProcesses(LocationName parent) { + public final ListProcessesPagedResponse listProcesses(@Nullable LocationName parent) { ListProcessesRequest request = ListProcessesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1152,7 +1153,8 @@ public final UnaryCallable listProc * @param name Required. The name of the process to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteProcessAsync(ProcessName name) { + public final OperationFuture deleteProcessAsync( + @Nullable ProcessName name) { DeleteProcessRequest request = DeleteProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProcessAsync(request); @@ -1295,7 +1297,7 @@ public final UnaryCallable deleteProcessCallabl * @param run Required. The run to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Run createRun(ProcessName parent, Run run) { + public final Run createRun(@Nullable ProcessName parent, Run run) { CreateRunRequest request = CreateRunRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1503,7 +1505,7 @@ public final UnaryCallable updateRunCallable() { * @param name Required. The name of the run to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Run getRun(RunName name) { + public final Run getRun(@Nullable RunName name) { GetRunRequest request = GetRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRun(request); @@ -1613,7 +1615,7 @@ public final UnaryCallable getRunCallable() { * @param parent Required. The name of process that owns this collection of runs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRunsPagedResponse listRuns(ProcessName parent) { + public final ListRunsPagedResponse listRuns(@Nullable ProcessName parent) { ListRunsRequest request = ListRunsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRuns(request); @@ -1769,7 +1771,7 @@ public final UnaryCallable listRunsCallable() * @param name Required. The name of the run to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRunAsync(RunName name) { + public final OperationFuture deleteRunAsync(@Nullable RunName name) { DeleteRunRequest request = DeleteRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRunAsync(request); @@ -1911,7 +1913,8 @@ public final UnaryCallable deleteRunCallable() { * @param lineageEvent Required. The lineage event to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageEvent createLineageEvent(RunName parent, LineageEvent lineageEvent) { + public final LineageEvent createLineageEvent( + @Nullable RunName parent, LineageEvent lineageEvent) { CreateLineageEventRequest request = CreateLineageEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2034,7 +2037,7 @@ public final UnaryCallable createLineag * @param name Required. The name of the lineage event to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LineageEvent getLineageEvent(LineageEventName name) { + public final LineageEvent getLineageEvent(@Nullable LineageEventName name) { GetLineageEventRequest request = GetLineageEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLineageEvent(request); @@ -2152,7 +2155,7 @@ public final UnaryCallable getLineageEvent * @param parent Required. The name of the run that owns the collection of lineage events to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLineageEventsPagedResponse listLineageEvents(RunName parent) { + public final ListLineageEventsPagedResponse listLineageEvents(@Nullable RunName parent) { ListLineageEventsRequest request = ListLineageEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2316,7 +2319,7 @@ public final ListLineageEventsPagedResponse listLineageEvents(ListLineageEventsR * @param name Required. The name of the lineage event to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLineageEvent(LineageEventName name) { + public final void deleteLineageEvent(@Nullable LineageEventName name) { DeleteLineageEventRequest request = DeleteLineageEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2798,8 +2801,8 @@ public static class ListProcessesPage ListProcessesRequest, ListProcessesResponse, Process, ListProcessesPage> { private ListProcessesPage( - PageContext context, - ListProcessesResponse response) { + @Nullable PageContext context, + @Nullable ListProcessesResponse response) { super(context, response); } @@ -2809,14 +2812,14 @@ private static ListProcessesPage createEmptyPage() { @Override protected ListProcessesPage createPage( - PageContext context, - ListProcessesResponse response) { + @Nullable PageContext context, + @Nullable ListProcessesResponse response) { return new ListProcessesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2830,7 +2833,8 @@ public static class ListProcessesFixedSizeCollection ListProcessesPage, ListProcessesFixedSizeCollection> { - private ListProcessesFixedSizeCollection(List pages, int collectionSize) { + private ListProcessesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2840,7 +2844,7 @@ private static ListProcessesFixedSizeCollection createEmptyCollection() { @Override protected ListProcessesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessesFixedSizeCollection(pages, collectionSize); } } @@ -2867,7 +2871,8 @@ public static class ListRunsPage extends AbstractPage { private ListRunsPage( - PageContext context, ListRunsResponse response) { + @Nullable PageContext context, + @Nullable ListRunsResponse response) { super(context, response); } @@ -2877,13 +2882,14 @@ private static ListRunsPage createEmptyPage() { @Override protected ListRunsPage createPage( - PageContext context, ListRunsResponse response) { + @Nullable PageContext context, + @Nullable ListRunsResponse response) { return new ListRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2893,7 +2899,7 @@ public static class ListRunsFixedSizeCollection extends AbstractFixedSizeCollection< ListRunsRequest, ListRunsResponse, Run, ListRunsPage, ListRunsFixedSizeCollection> { - private ListRunsFixedSizeCollection(List pages, int collectionSize) { + private ListRunsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2903,7 +2909,7 @@ private static ListRunsFixedSizeCollection createEmptyCollection() { @Override protected ListRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRunsFixedSizeCollection(pages, collectionSize); } } @@ -2940,8 +2946,9 @@ public static class ListLineageEventsPage ListLineageEventsPage> { private ListLineageEventsPage( - PageContext context, - ListLineageEventsResponse response) { + @Nullable PageContext + context, + @Nullable ListLineageEventsResponse response) { super(context, response); } @@ -2951,14 +2958,16 @@ private static ListLineageEventsPage createEmptyPage() { @Override protected ListLineageEventsPage createPage( - PageContext context, - ListLineageEventsResponse response) { + @Nullable PageContext + context, + @Nullable ListLineageEventsResponse response) { return new ListLineageEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2973,7 +2982,7 @@ public static class ListLineageEventsFixedSizeCollection ListLineageEventsFixedSizeCollection> { private ListLineageEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2983,7 +2992,7 @@ private static ListLineageEventsFixedSizeCollection createEmptyCollection() { @Override protected ListLineageEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLineageEventsFixedSizeCollection(pages, collectionSize); } } @@ -3014,8 +3023,8 @@ public static class SearchLinksPage extends AbstractPage { private SearchLinksPage( - PageContext context, - SearchLinksResponse response) { + @Nullable PageContext context, + @Nullable SearchLinksResponse response) { super(context, response); } @@ -3025,14 +3034,14 @@ private static SearchLinksPage createEmptyPage() { @Override protected SearchLinksPage createPage( - PageContext context, - SearchLinksResponse response) { + @Nullable PageContext context, + @Nullable SearchLinksResponse response) { return new SearchLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3046,7 +3055,8 @@ public static class SearchLinksFixedSizeCollection SearchLinksPage, SearchLinksFixedSizeCollection> { - private SearchLinksFixedSizeCollection(List pages, int collectionSize) { + private SearchLinksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3056,7 +3066,7 @@ private static SearchLinksFixedSizeCollection createEmptyCollection() { @Override protected SearchLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchLinksFixedSizeCollection(pages, collectionSize); } } @@ -3094,9 +3104,11 @@ public static class BatchSearchLinkProcessesPage BatchSearchLinkProcessesPage> { private BatchSearchLinkProcessesPage( - PageContext + @Nullable + PageContext< + BatchSearchLinkProcessesRequest, BatchSearchLinkProcessesResponse, ProcessLinks> context, - BatchSearchLinkProcessesResponse response) { + @Nullable BatchSearchLinkProcessesResponse response) { super(context, response); } @@ -3106,15 +3118,19 @@ private static BatchSearchLinkProcessesPage createEmptyPage() { @Override protected BatchSearchLinkProcessesPage createPage( - PageContext + @Nullable + PageContext< + BatchSearchLinkProcessesRequest, BatchSearchLinkProcessesResponse, ProcessLinks> context, - BatchSearchLinkProcessesResponse response) { + @Nullable BatchSearchLinkProcessesResponse response) { return new BatchSearchLinkProcessesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + BatchSearchLinkProcessesRequest, BatchSearchLinkProcessesResponse, ProcessLinks> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3130,7 +3146,7 @@ public static class BatchSearchLinkProcessesFixedSizeCollection BatchSearchLinkProcessesFixedSizeCollection> { private BatchSearchLinkProcessesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3140,7 +3156,7 @@ private static BatchSearchLinkProcessesFixedSizeCollection createEmptyCollection @Override protected BatchSearchLinkProcessesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new BatchSearchLinkProcessesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageSettings.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageSettings.java index bc226d1d3943..6fc3c867c814 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageSettings.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -310,7 +311,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LineageStubSettings.newBuilder(clientContext)); } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStub.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStub.java index ec0d554f5425..96376a8f53d6 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStub.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStub.java @@ -60,6 +60,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -71,11 +72,12 @@ @Generated("by gapic-generator-java") public abstract class LineageStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java index 9f8e4f1fb176..50c72bbac5fa 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/LineageStubSettings.java @@ -96,6 +96,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -708,7 +709,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); } @@ -831,7 +832,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); processOpenLineageRunEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigName.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigName.java index c803725f1cf3..322e930989d4 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigName.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/ConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -154,7 +155,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static ConfigName parse(String formattedString) { + public static @Nullable ConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigName> values) { List list = new ArrayList<>(values.size()); for (ConfigName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventName.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventName.java index 855ebcc21ed8..ef5f33b41331 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventName.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LineageEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static LineageEventName parse(String formattedString) { + public static @Nullable LineageEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LineageEventName> values) { List list = new ArrayList<>(values.size()); for (LineageEventName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LocationName.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LocationName.java index 86c9241c37b3..e14308740126 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LocationName.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessName.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessName.java index a205d305a240..d0be4053aa0b 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessName.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/ProcessName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String process) { .toString(); } - public static ProcessName parse(String formattedString) { + public static @Nullable ProcessName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessName> values) { List list = new ArrayList<>(values.size()); for (ProcessName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunName.java b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunName.java index 0e92852dcee9..f3d9f0e04f1f 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunName.java +++ b/java-datalineage/proto-google-cloud-datalineage-v1/src/main/java/com/google/cloud/datacatalog/lineage/v1/RunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String process, Str .toString(); } - public static RunName parse(String formattedString) { + public static @Nullable RunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RunName> values) { List list = new ArrayList<>(values.size()); for (RunName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java index cca33a10550b..999a04dd0f61 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java @@ -24,6 +24,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. /** @@ -197,7 +198,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IngestionServiceClient implements BackgroundResource { - private final IngestionServiceSettings settings; + private final @Nullable IngestionServiceSettings settings; private final IngestionServiceStub stub; /** Constructs an instance of IngestionServiceClient with default settings. */ @@ -237,7 +238,7 @@ protected IngestionServiceClient(IngestionServiceStub stub) { this.stub = stub; } - public final IngestionServiceSettings getSettings() { + public final @Nullable IngestionServiceSettings getSettings() { return settings; } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java index 1aa202c8e3db..a0a869bc47b3 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -171,7 +172,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IngestionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceClient.java index a68ebb855403..24d91d8b3fb8 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceClient.java @@ -24,6 +24,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. /** @@ -146,7 +147,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MarketingDataInsightsServiceClient implements BackgroundResource { - private final MarketingDataInsightsServiceSettings settings; + private final @Nullable MarketingDataInsightsServiceSettings settings; private final MarketingDataInsightsServiceStub stub; /** Constructs an instance of MarketingDataInsightsServiceClient with default settings. */ @@ -190,7 +191,7 @@ protected MarketingDataInsightsServiceClient(MarketingDataInsightsServiceStub st this.stub = stub; } - public final MarketingDataInsightsServiceSettings getSettings() { + public final @Nullable MarketingDataInsightsServiceSettings getSettings() { return settings; } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceSettings.java index c238558ff987..9ea83e76289f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/MarketingDataInsightsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MarketingDataInsightsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java index c2f4cb012224..609533e17e8c 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceClient.java @@ -33,6 +33,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. /** @@ -199,7 +200,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PartnerLinkServiceClient implements BackgroundResource { - private final PartnerLinkServiceSettings settings; + private final @Nullable PartnerLinkServiceSettings settings; private final PartnerLinkServiceStub stub; /** Constructs an instance of PartnerLinkServiceClient with default settings. */ @@ -239,7 +240,7 @@ protected PartnerLinkServiceClient(PartnerLinkServiceStub stub) { this.stub = stub; } - public final PartnerLinkServiceSettings getSettings() { + public final @Nullable PartnerLinkServiceSettings getSettings() { return settings; } @@ -282,7 +283,8 @@ public PartnerLinkServiceStub getStub() { * @param partnerLink Required. The partner link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PartnerLink createPartnerLink(AccountName parent, PartnerLink partnerLink) { + public final PartnerLink createPartnerLink( + @Nullable AccountName parent, PartnerLink partnerLink) { CreatePartnerLinkRequest request = CreatePartnerLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -445,7 +447,7 @@ public final UnaryCallable createPartnerL * accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePartnerLink(PartnerLinkName name) { + public final void deletePartnerLink(@Nullable PartnerLinkName name) { DeletePartnerLinkRequest request = DeletePartnerLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -608,7 +610,7 @@ public final UnaryCallable deletePartnerLinkCal *

Format: `accountTypes/{account_type}/accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchPartnerLinksPagedResponse searchPartnerLinks(AccountName parent) { + public final SearchPartnerLinksPagedResponse searchPartnerLinks(@Nullable AccountName parent) { SearchPartnerLinksRequest request = SearchPartnerLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -864,8 +866,9 @@ public static class SearchPartnerLinksPage SearchPartnerLinksPage> { private SearchPartnerLinksPage( - PageContext context, - SearchPartnerLinksResponse response) { + @Nullable PageContext + context, + @Nullable SearchPartnerLinksResponse response) { super(context, response); } @@ -875,14 +878,16 @@ private static SearchPartnerLinksPage createEmptyPage() { @Override protected SearchPartnerLinksPage createPage( - PageContext context, - SearchPartnerLinksResponse response) { + @Nullable PageContext + context, + @Nullable SearchPartnerLinksResponse response) { return new SearchPartnerLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -897,7 +902,7 @@ public static class SearchPartnerLinksFixedSizeCollection SearchPartnerLinksFixedSizeCollection> { private SearchPartnerLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -907,7 +912,7 @@ private static SearchPartnerLinksFixedSizeCollection createEmptyCollection() { @Override protected SearchPartnerLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchPartnerLinksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceSettings.java index 4453c92a5654..7ce929b5b257 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,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); } @@ -185,7 +186,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PartnerLinkServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceClient.java index 82b5970b48d0..dc0a532e8898 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceClient.java @@ -33,6 +33,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. /** @@ -213,7 +214,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserListDirectLicenseServiceClient implements BackgroundResource { - private final UserListDirectLicenseServiceSettings settings; + private final @Nullable UserListDirectLicenseServiceSettings settings; private final UserListDirectLicenseServiceStub stub; /** Constructs an instance of UserListDirectLicenseServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected UserListDirectLicenseServiceClient(UserListDirectLicenseServiceStub st this.stub = stub; } - public final UserListDirectLicenseServiceSettings getSettings() { + public final @Nullable UserListDirectLicenseServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public UserListDirectLicenseServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserListDirectLicense createUserListDirectLicense( - AccountName parent, UserListDirectLicense userListDirectLicense) { + @Nullable AccountName parent, UserListDirectLicense userListDirectLicense) { CreateUserListDirectLicenseRequest request = CreateUserListDirectLicenseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -438,7 +439,8 @@ public final UserListDirectLicense createUserListDirectLicense( * @param name Required. The resource name of the user list direct license. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserListDirectLicense getUserListDirectLicense(UserListDirectLicenseName name) { + public final UserListDirectLicense getUserListDirectLicense( + @Nullable UserListDirectLicenseName name) { GetUserListDirectLicenseRequest request = GetUserListDirectLicenseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -688,7 +690,7 @@ public final UserListDirectLicense updateUserListDirectLicense( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserListDirectLicensesPagedResponse listUserListDirectLicenses( - AccountName parent) { + @Nullable AccountName parent) { ListUserListDirectLicensesRequest request = ListUserListDirectLicensesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -918,12 +920,13 @@ public static class ListUserListDirectLicensesPage ListUserListDirectLicensesPage> { private ListUserListDirectLicensesPage( - PageContext< + @Nullable + PageContext< ListUserListDirectLicensesRequest, ListUserListDirectLicensesResponse, UserListDirectLicense> context, - ListUserListDirectLicensesResponse response) { + @Nullable ListUserListDirectLicensesResponse response) { super(context, response); } @@ -933,18 +936,20 @@ private static ListUserListDirectLicensesPage createEmptyPage() { @Override protected ListUserListDirectLicensesPage createPage( - PageContext< + @Nullable + PageContext< ListUserListDirectLicensesRequest, ListUserListDirectLicensesResponse, UserListDirectLicense> context, - ListUserListDirectLicensesResponse response) { + @Nullable ListUserListDirectLicensesResponse response) { return new ListUserListDirectLicensesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserListDirectLicensesRequest, ListUserListDirectLicensesResponse, UserListDirectLicense> @@ -963,7 +968,7 @@ public static class ListUserListDirectLicensesFixedSizeCollection ListUserListDirectLicensesFixedSizeCollection> { private ListUserListDirectLicensesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -973,7 +978,7 @@ private static ListUserListDirectLicensesFixedSizeCollection createEmptyCollecti @Override protected ListUserListDirectLicensesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserListDirectLicensesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceSettings.java index 135948aef867..1c7e103cdb1f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserListDirectLicenseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceClient.java index 6baa1286e63d..9e8bb3de1dc0 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceClient.java @@ -33,6 +33,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. /** @@ -234,7 +235,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserListGlobalLicenseServiceClient implements BackgroundResource { - private final UserListGlobalLicenseServiceSettings settings; + private final @Nullable UserListGlobalLicenseServiceSettings settings; private final UserListGlobalLicenseServiceStub stub; /** Constructs an instance of UserListGlobalLicenseServiceClient with default settings. */ @@ -278,7 +279,7 @@ protected UserListGlobalLicenseServiceClient(UserListGlobalLicenseServiceStub st this.stub = stub; } - public final UserListGlobalLicenseServiceSettings getSettings() { + public final @Nullable UserListGlobalLicenseServiceSettings getSettings() { return settings; } @@ -316,7 +317,7 @@ public UserListGlobalLicenseServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserListGlobalLicense createUserListGlobalLicense( - AccountName parent, UserListGlobalLicense userListGlobalLicense) { + @Nullable AccountName parent, UserListGlobalLicense userListGlobalLicense) { CreateUserListGlobalLicenseRequest request = CreateUserListGlobalLicenseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -568,7 +569,8 @@ public final UserListGlobalLicense updateUserListGlobalLicense( * @param name Required. The resource name of the user list global license. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserListGlobalLicense getUserListGlobalLicense(UserListGlobalLicenseName name) { + public final UserListGlobalLicense getUserListGlobalLicense( + @Nullable UserListGlobalLicenseName name) { GetUserListGlobalLicenseRequest request = GetUserListGlobalLicenseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -709,7 +711,7 @@ public final UserListGlobalLicense getUserListGlobalLicense( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserListGlobalLicensesPagedResponse listUserListGlobalLicenses( - AccountName parent) { + @Nullable AccountName parent) { ListUserListGlobalLicensesRequest request = ListUserListGlobalLicensesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -909,7 +911,7 @@ public final ListUserListGlobalLicensesPagedResponse listUserListGlobalLicenses( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserListGlobalLicenseCustomerInfosPagedResponse - listUserListGlobalLicenseCustomerInfos(UserListGlobalLicenseName parent) { + listUserListGlobalLicenseCustomerInfos(@Nullable UserListGlobalLicenseName parent) { ListUserListGlobalLicenseCustomerInfosRequest request = ListUserListGlobalLicenseCustomerInfosRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1166,12 +1168,13 @@ public static class ListUserListGlobalLicensesPage ListUserListGlobalLicensesPage> { private ListUserListGlobalLicensesPage( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicensesRequest, ListUserListGlobalLicensesResponse, UserListGlobalLicense> context, - ListUserListGlobalLicensesResponse response) { + @Nullable ListUserListGlobalLicensesResponse response) { super(context, response); } @@ -1181,18 +1184,20 @@ private static ListUserListGlobalLicensesPage createEmptyPage() { @Override protected ListUserListGlobalLicensesPage createPage( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicensesRequest, ListUserListGlobalLicensesResponse, UserListGlobalLicense> context, - ListUserListGlobalLicensesResponse response) { + @Nullable ListUserListGlobalLicensesResponse response) { return new ListUserListGlobalLicensesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicensesRequest, ListUserListGlobalLicensesResponse, UserListGlobalLicense> @@ -1211,7 +1216,7 @@ public static class ListUserListGlobalLicensesFixedSizeCollection ListUserListGlobalLicensesFixedSizeCollection> { private ListUserListGlobalLicensesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1221,7 +1226,7 @@ private static ListUserListGlobalLicensesFixedSizeCollection createEmptyCollecti @Override protected ListUserListGlobalLicensesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserListGlobalLicensesFixedSizeCollection(pages, collectionSize); } } @@ -1265,12 +1270,13 @@ public static class ListUserListGlobalLicenseCustomerInfosPage ListUserListGlobalLicenseCustomerInfosPage> { private ListUserListGlobalLicenseCustomerInfosPage( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicenseCustomerInfosRequest, ListUserListGlobalLicenseCustomerInfosResponse, UserListGlobalLicenseCustomerInfo> context, - ListUserListGlobalLicenseCustomerInfosResponse response) { + @Nullable ListUserListGlobalLicenseCustomerInfosResponse response) { super(context, response); } @@ -1280,18 +1286,20 @@ private static ListUserListGlobalLicenseCustomerInfosPage createEmptyPage() { @Override protected ListUserListGlobalLicenseCustomerInfosPage createPage( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicenseCustomerInfosRequest, ListUserListGlobalLicenseCustomerInfosResponse, UserListGlobalLicenseCustomerInfo> context, - ListUserListGlobalLicenseCustomerInfosResponse response) { + @Nullable ListUserListGlobalLicenseCustomerInfosResponse response) { return new ListUserListGlobalLicenseCustomerInfosPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserListGlobalLicenseCustomerInfosRequest, ListUserListGlobalLicenseCustomerInfosResponse, UserListGlobalLicenseCustomerInfo> @@ -1310,7 +1318,7 @@ public static class ListUserListGlobalLicenseCustomerInfosFixedSizeCollection ListUserListGlobalLicenseCustomerInfosFixedSizeCollection> { private ListUserListGlobalLicenseCustomerInfosFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1321,7 +1329,7 @@ private ListUserListGlobalLicenseCustomerInfosFixedSizeCollection( @Override protected ListUserListGlobalLicenseCustomerInfosFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserListGlobalLicenseCustomerInfosFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceSettings.java index 099606100326..b182bc1305a7 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserListGlobalLicenseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceClient.java index 97d9dd9273cd..599d8d0253b1 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceClient.java @@ -34,6 +34,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserListServiceClient implements BackgroundResource { - private final UserListServiceSettings settings; + private final @Nullable UserListServiceSettings settings; private final UserListServiceStub stub; /** Constructs an instance of UserListServiceClient with default settings. */ @@ -291,7 +292,7 @@ protected UserListServiceClient(UserListServiceStub stub) { this.stub = stub; } - public final UserListServiceSettings getSettings() { + public final @Nullable UserListServiceSettings getSettings() { return settings; } @@ -335,7 +336,7 @@ public UserListServiceStub getStub() { * accountTypes/{account_type}/accounts/{account}/userLists/{user_list} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserList getUserList(UserListName name) { + public final UserList getUserList(@Nullable UserListName name) { GetUserListRequest request = GetUserListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUserList(request); @@ -503,7 +504,7 @@ public final UnaryCallable getUserListCallable() { * accountTypes/{account_type}/accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserListsPagedResponse listUserLists(AccountName parent) { + public final ListUserListsPagedResponse listUserLists(@Nullable AccountName parent) { ListUserListsRequest request = ListUserListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -741,7 +742,7 @@ public final UnaryCallable listUser * @param userList Required. The user list to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserList createUserList(AccountName parent, UserList userList) { + public final UserList createUserList(@Nullable AccountName parent, UserList userList) { CreateUserListRequest request = CreateUserListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1051,7 +1052,7 @@ public final UnaryCallable updateUserListCallab * accountTypes/{account_type}/accounts/{account}/userLists/{user_list} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserList(UserListName name) { + public final void deleteUserList(@Nullable UserListName name) { DeleteUserListRequest request = DeleteUserListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUserList(request); @@ -1242,8 +1243,8 @@ public static class ListUserListsPage ListUserListsRequest, ListUserListsResponse, UserList, ListUserListsPage> { private ListUserListsPage( - PageContext context, - ListUserListsResponse response) { + @Nullable PageContext context, + @Nullable ListUserListsResponse response) { super(context, response); } @@ -1253,14 +1254,14 @@ private static ListUserListsPage createEmptyPage() { @Override protected ListUserListsPage createPage( - PageContext context, - ListUserListsResponse response) { + @Nullable PageContext context, + @Nullable ListUserListsResponse response) { return new ListUserListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1274,7 +1275,8 @@ public static class ListUserListsFixedSizeCollection ListUserListsPage, ListUserListsFixedSizeCollection> { - private ListUserListsFixedSizeCollection(List pages, int collectionSize) { + private ListUserListsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1284,7 +1286,7 @@ private static ListUserListsFixedSizeCollection createEmptyCollection() { @Override protected ListUserListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserListsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceSettings.java index 4cf5feb6d1d5..5d7540f26c34 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/UserListServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserListServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index 7e6ce00cfa27..ffc49aa5dc5f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -250,7 +251,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); } @@ -318,7 +319,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); ingestAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java index 2e7c5491c114..0533eff20224 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/MarketingDataInsightsServiceStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -271,7 +272,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); retrieveInsightsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java index aacaacfe029d..5eb8e2f7c22a 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/PartnerLinkServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -303,7 +304,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); } @@ -364,7 +365,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPartnerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java index 7eb8e8a488d2..876513a53f48 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListDirectLicenseServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -335,7 +336,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createUserListDirectLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java index 764e882fff70..f63944d9e20d 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListGlobalLicenseServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -436,7 +437,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); } @@ -514,7 +515,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createUserListGlobalLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java index 43babd4d2d88..97210a226f35 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/UserListServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -304,7 +305,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); } @@ -366,7 +367,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getUserListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AccountName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AccountName.java index 6f7fb1bef16e..817a76a5b7b4 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AccountName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String accountType, String account) { return newBuilder().setAccountType(accountType).setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkName.java index 643f66393dd9..472bfd343b9d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String accountType, String account, String partnerLi .toString(); } - public static PartnerLinkName parse(String formattedString) { + public static @Nullable PartnerLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartnerLinkName> values) { List list = new ArrayList<>(values.size()); for (PartnerLinkName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseName.java index 846baf4d8631..35601deff549 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListDirectLicenseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String accountType, String account, String userListD .toString(); } - public static UserListDirectLicenseName parse(String formattedString) { + public static @Nullable UserListDirectLicenseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserListDirectLicenseName> values) { List list = new ArrayList<>(values.size()); for (UserListDirectLicenseName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseCustomerInfoName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseCustomerInfoName.java index 86f36927b921..bfa826e05c76 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseCustomerInfoName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseCustomerInfoName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -107,7 +108,7 @@ public static String format( .toString(); } - public static UserListGlobalLicenseCustomerInfoName parse(String formattedString) { + public static @Nullable UserListGlobalLicenseCustomerInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable UserListGlobalLicenseCustomerInfoName> values) { List list = new ArrayList<>(values.size()); for (UserListGlobalLicenseCustomerInfoName value : values) { if (value == null) { @@ -191,7 +193,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseName.java index eb318d2a0ee6..3ade5797e2e1 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListGlobalLicenseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String accountType, String account, String userListG .toString(); } - public static UserListGlobalLicenseName parse(String formattedString) { + public static @Nullable UserListGlobalLicenseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserListGlobalLicenseName> values) { List list = new ArrayList<>(values.size()); for (UserListGlobalLicenseName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListName.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListName.java index 2683d140369c..46968b6a817c 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListName.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String accountType, String account, String userList) .toString(); } - public static UserListName parse(String formattedString) { + public static @Nullable UserListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserListName> values) { List list = new ArrayList<>(values.size()); for (UserListName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceClient.java index 83d32eda9d58..c0608aff14ad 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceClient.java @@ -48,6 +48,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. /** @@ -506,7 +507,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BusinessGlossaryServiceClient implements BackgroundResource { - private final BusinessGlossaryServiceSettings settings; + private final @Nullable BusinessGlossaryServiceSettings settings; private final BusinessGlossaryServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -555,7 +556,7 @@ protected BusinessGlossaryServiceClient(BusinessGlossaryServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BusinessGlossaryServiceSettings getSettings() { + public final @Nullable BusinessGlossaryServiceSettings getSettings() { return settings; } @@ -610,7 +611,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary, String glossaryId) { + @Nullable LocationName parent, Glossary glossary, String glossaryId) { CreateGlossaryRequest request = CreateGlossaryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -911,7 +912,8 @@ public final UnaryCallable updateGlossaryCalla * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGlossaryAsync(GlossaryName name) { + public final OperationFuture deleteGlossaryAsync( + @Nullable GlossaryName name) { DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGlossaryAsync(request); @@ -1064,7 +1066,7 @@ public final UnaryCallable deleteGlossaryCalla * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Glossary getGlossary(GlossaryName name) { + public final Glossary getGlossary(@Nullable GlossaryName name) { GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlossary(request); @@ -1182,7 +1184,7 @@ public final UnaryCallable getGlossaryCallable() { * Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { + public final ListGlossariesPagedResponse listGlossaries(@Nullable LocationName parent) { ListGlossariesRequest request = ListGlossariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1365,7 +1367,7 @@ public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GlossaryCategory createGlossaryCategory( - GlossaryName parent, GlossaryCategory category, String categoryId) { + @Nullable GlossaryName parent, GlossaryCategory category, String categoryId) { CreateGlossaryCategoryRequest request = CreateGlossaryCategoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1602,7 +1604,7 @@ public final GlossaryCategory updateGlossaryCategory(UpdateGlossaryCategoryReque * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGlossaryCategory(GlossaryCategoryName name) { + public final void deleteGlossaryCategory(@Nullable GlossaryCategoryName name) { DeleteGlossaryCategoryRequest request = DeleteGlossaryCategoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1736,7 +1738,7 @@ public final void deleteGlossaryCategory(DeleteGlossaryCategoryRequest request) * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlossaryCategory getGlossaryCategory(GlossaryCategoryName name) { + public final GlossaryCategory getGlossaryCategory(@Nullable GlossaryCategoryName name) { GetGlossaryCategoryRequest request = GetGlossaryCategoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1867,7 +1869,8 @@ public final GlossaryCategory getGlossaryCategory(GetGlossaryCategoryRequest req * is the Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossaryCategoriesPagedResponse listGlossaryCategories(GlossaryName parent) { + public final ListGlossaryCategoriesPagedResponse listGlossaryCategories( + @Nullable GlossaryName parent) { ListGlossaryCategoriesRequest request = ListGlossaryCategoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2054,7 +2057,7 @@ public final ListGlossaryCategoriesPagedResponse listGlossaryCategories( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GlossaryTerm createGlossaryTerm( - GlossaryName parent, GlossaryTerm term, String termId) { + @Nullable GlossaryName parent, GlossaryTerm term, String termId) { CreateGlossaryTermRequest request = CreateGlossaryTermRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2281,7 +2284,7 @@ public final UnaryCallable updateGlossa * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGlossaryTerm(GlossaryTermName name) { + public final void deleteGlossaryTerm(@Nullable GlossaryTermName name) { DeleteGlossaryTermRequest request = DeleteGlossaryTermRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2406,7 +2409,7 @@ public final UnaryCallable deleteGlossaryTermC * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlossaryTerm getGlossaryTerm(GlossaryTermName name) { + public final GlossaryTerm getGlossaryTerm(@Nullable GlossaryTermName name) { GetGlossaryTermRequest request = GetGlossaryTermRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlossaryTerm(request); @@ -2531,7 +2534,7 @@ public final UnaryCallable getGlossaryTerm * `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossaryTermsPagedResponse listGlossaryTerms(GlossaryName parent) { + public final ListGlossaryTermsPagedResponse listGlossaryTerms(@Nullable GlossaryName parent) { ListGlossaryTermsRequest request = ListGlossaryTermsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3144,8 +3147,8 @@ public static class ListGlossariesPage ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { super(context, response); } @@ -3155,14 +3158,14 @@ private static ListGlossariesPage createEmptyPage() { @Override protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { return new ListGlossariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3176,7 +3179,8 @@ public static class ListGlossariesFixedSizeCollection ListGlossariesPage, ListGlossariesFixedSizeCollection> { - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + private ListGlossariesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3186,7 +3190,7 @@ private static ListGlossariesFixedSizeCollection createEmptyCollection() { @Override protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossariesFixedSizeCollection(pages, collectionSize); } } @@ -3224,9 +3228,11 @@ public static class ListGlossaryCategoriesPage ListGlossaryCategoriesPage> { private ListGlossaryCategoriesPage( - PageContext + @Nullable + PageContext< + ListGlossaryCategoriesRequest, ListGlossaryCategoriesResponse, GlossaryCategory> context, - ListGlossaryCategoriesResponse response) { + @Nullable ListGlossaryCategoriesResponse response) { super(context, response); } @@ -3236,15 +3242,19 @@ private static ListGlossaryCategoriesPage createEmptyPage() { @Override protected ListGlossaryCategoriesPage createPage( - PageContext + @Nullable + PageContext< + ListGlossaryCategoriesRequest, ListGlossaryCategoriesResponse, GlossaryCategory> context, - ListGlossaryCategoriesResponse response) { + @Nullable ListGlossaryCategoriesResponse response) { return new ListGlossaryCategoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListGlossaryCategoriesRequest, ListGlossaryCategoriesResponse, GlossaryCategory> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3260,7 +3270,7 @@ public static class ListGlossaryCategoriesFixedSizeCollection ListGlossaryCategoriesFixedSizeCollection> { private ListGlossaryCategoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3270,7 +3280,7 @@ private static ListGlossaryCategoriesFixedSizeCollection createEmptyCollection() @Override protected ListGlossaryCategoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossaryCategoriesFixedSizeCollection(pages, collectionSize); } } @@ -3307,8 +3317,9 @@ public static class ListGlossaryTermsPage ListGlossaryTermsPage> { private ListGlossaryTermsPage( - PageContext context, - ListGlossaryTermsResponse response) { + @Nullable PageContext + context, + @Nullable ListGlossaryTermsResponse response) { super(context, response); } @@ -3318,14 +3329,16 @@ private static ListGlossaryTermsPage createEmptyPage() { @Override protected ListGlossaryTermsPage createPage( - PageContext context, - ListGlossaryTermsResponse response) { + @Nullable PageContext + context, + @Nullable ListGlossaryTermsResponse response) { return new ListGlossaryTermsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3340,7 +3353,7 @@ public static class ListGlossaryTermsFixedSizeCollection ListGlossaryTermsFixedSizeCollection> { private ListGlossaryTermsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3350,7 +3363,7 @@ private static ListGlossaryTermsFixedSizeCollection createEmptyCollection() { @Override protected ListGlossaryTermsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossaryTermsFixedSizeCollection(pages, collectionSize); } } @@ -3384,8 +3397,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3395,14 +3408,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3416,7 +3429,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3426,7 +3440,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceSettings.java index 9377a518c15d..fdf53522ebd2 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/BusinessGlossaryServiceSettings.java @@ -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. /** @@ -327,7 +328,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); } @@ -348,7 +349,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BusinessGlossaryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java index 611e87b71f94..7b8d0f169451 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceClient.java @@ -48,6 +48,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. /** @@ -932,7 +933,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CatalogServiceClient implements BackgroundResource { - private final CatalogServiceSettings settings; + private final @Nullable CatalogServiceSettings settings; private final CatalogServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -980,7 +981,7 @@ protected CatalogServiceClient(CatalogServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CatalogServiceSettings getSettings() { + public final @Nullable CatalogServiceSettings getSettings() { return settings; } @@ -1034,7 +1035,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntryTypeAsync( - LocationName parent, EntryType entryType, String entryTypeId) { + @Nullable LocationName parent, EntryType entryType, String entryTypeId) { CreateEntryTypeRequest request = CreateEntryTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1325,7 +1326,8 @@ public final UnaryCallable updateEntryTypeCal * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEntryTypeAsync(EntryTypeName name) { + public final OperationFuture deleteEntryTypeAsync( + @Nullable EntryTypeName name) { DeleteEntryTypeRequest request = DeleteEntryTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntryTypeAsync(request); @@ -1472,7 +1474,7 @@ public final UnaryCallable deleteEntryTypeCal * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntryTypesPagedResponse listEntryTypes(LocationName parent) { + public final ListEntryTypesPagedResponse listEntryTypes(@Nullable LocationName parent) { ListEntryTypesRequest request = ListEntryTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1643,7 +1645,7 @@ public final ListEntryTypesPagedResponse listEntryTypes(ListEntryTypesRequest re * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntryType getEntryType(EntryTypeName name) { + public final EntryType getEntryType(@Nullable EntryTypeName name) { GetEntryTypeRequest request = GetEntryTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntryType(request); @@ -1760,7 +1762,7 @@ public final UnaryCallable getEntryTypeCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAspectTypeAsync( - LocationName parent, AspectType aspectType, String aspectTypeId) { + @Nullable LocationName parent, AspectType aspectType, String aspectTypeId) { CreateAspectTypeRequest request = CreateAspectTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2053,7 +2055,7 @@ public final UnaryCallable updateAspectTypeC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAspectTypeAsync( - AspectTypeName name) { + @Nullable AspectTypeName name) { DeleteAspectTypeRequest request = DeleteAspectTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAspectTypeAsync(request); @@ -2200,7 +2202,7 @@ public final UnaryCallable deleteAspectTypeC * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAspectTypesPagedResponse listAspectTypes(LocationName parent) { + public final ListAspectTypesPagedResponse listAspectTypes(@Nullable LocationName parent) { ListAspectTypesRequest request = ListAspectTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2371,7 +2373,7 @@ public final ListAspectTypesPagedResponse listAspectTypes(ListAspectTypesRequest * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AspectType getAspectType(AspectTypeName name) { + public final AspectType getAspectType(@Nullable AspectTypeName name) { GetAspectTypeRequest request = GetAspectTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAspectType(request); @@ -2489,7 +2491,7 @@ public final UnaryCallable getAspectTypeCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntryGroupAsync( - LocationName parent, EntryGroup entryGroup, String entryGroupId) { + @Nullable LocationName parent, EntryGroup entryGroup, String entryGroupId) { CreateEntryGroupRequest request = CreateEntryGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2782,7 +2784,7 @@ public final UnaryCallable updateEntryGroupC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntryGroupAsync( - EntryGroupName name) { + @Nullable EntryGroupName name) { DeleteEntryGroupRequest request = DeleteEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntryGroupAsync(request); @@ -2929,7 +2931,7 @@ public final UnaryCallable deleteEntryGroupC * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntryGroupsPagedResponse listEntryGroups(LocationName parent) { + public final ListEntryGroupsPagedResponse listEntryGroups(@Nullable LocationName parent) { ListEntryGroupsRequest request = ListEntryGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3100,7 +3102,7 @@ public final ListEntryGroupsPagedResponse listEntryGroups(ListEntryGroupsRequest * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntryGroup getEntryGroup(EntryGroupName name) { + public final EntryGroup getEntryGroup(@Nullable EntryGroupName name) { GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntryGroup(request); @@ -3226,7 +3228,7 @@ public final UnaryCallable getEntryGroupCallab *

The maximum size of the field is 4000 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entry createEntry(EntryGroupName parent, Entry entry, String entryId) { + public final Entry createEntry(@Nullable EntryGroupName parent, Entry entry, String entryId) { CreateEntryRequest request = CreateEntryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3459,7 +3461,7 @@ public final UnaryCallable updateEntryCallable() { * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entry deleteEntry(EntryName name) { + public final Entry deleteEntry(@Nullable EntryName name) { DeleteEntryRequest request = DeleteEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntry(request); @@ -3573,7 +3575,7 @@ public final UnaryCallable deleteEntryCallable() { * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntriesPagedResponse listEntries(EntryGroupName parent) { + public final ListEntriesPagedResponse listEntries(@Nullable EntryGroupName parent) { ListEntriesRequest request = ListEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3737,7 +3739,7 @@ public final UnaryCallable listEntriesC * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entry getEntry(EntryName name) { + public final Entry getEntry(@Nullable EntryName name) { GetEntryRequest request = GetEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntry(request); @@ -3990,7 +3992,7 @@ public final UnaryCallable modifyEntryCallable() { * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchEntriesPagedResponse searchEntries(LocationName name, String query) { + public final SearchEntriesPagedResponse searchEntries(@Nullable LocationName name, String query) { SearchEntriesRequest request = SearchEntriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4179,7 +4181,7 @@ public final UnaryCallable searchEn * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMetadataJobAsync( - LocationName parent, MetadataJob metadataJob, String metadataJobId) { + @Nullable LocationName parent, MetadataJob metadataJob, String metadataJobId) { CreateMetadataJobRequest request = CreateMetadataJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4349,7 +4351,7 @@ public final UnaryCallable createMetadataJo * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataJob getMetadataJob(MetadataJobName name) { + public final MetadataJob getMetadataJob(@Nullable MetadataJobName name) { GetMetadataJobRequest request = GetMetadataJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadataJob(request); @@ -4462,7 +4464,7 @@ public final UnaryCallable getMetadataJobCal * `projects/{project_id_or_number}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataJobsPagedResponse listMetadataJobs(LocationName parent) { + public final ListMetadataJobsPagedResponse listMetadataJobs(@Nullable LocationName parent) { ListMetadataJobsRequest request = ListMetadataJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4637,7 +4639,7 @@ public final ListMetadataJobsPagedResponse listMetadataJobs(ListMetadataJobsRequ * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelMetadataJob(MetadataJobName name) { + public final void cancelMetadataJob(@Nullable MetadataJobName name) { CancelMetadataJobRequest request = CancelMetadataJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4775,7 +4777,7 @@ public final UnaryCallable cancelMetadataJobCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntryLink createEntryLink( - EntryGroupName parent, EntryLink entryLink, String entryLinkId) { + @Nullable EntryGroupName parent, EntryLink entryLink, String entryLinkId) { CreateEntryLinkRequest request = CreateEntryLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4999,7 +5001,7 @@ public final UnaryCallable updateEntryLinkCal * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntryLink deleteEntryLink(EntryLinkName name) { + public final EntryLink deleteEntryLink(@Nullable EntryLinkName name) { DeleteEntryLinkRequest request = DeleteEntryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEntryLink(request); @@ -5292,7 +5294,7 @@ public final UnaryCallable lookupCo * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntryLink getEntryLink(EntryLinkName name) { + public final EntryLink getEntryLink(@Nullable EntryLinkName name) { GetEntryLinkRequest request = GetEntryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntryLink(request); @@ -5414,7 +5416,7 @@ public final UnaryCallable getEntryLinkCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMetadataFeedAsync( - LocationName parent, MetadataFeed metadataFeed, String metadataFeedId) { + @Nullable LocationName parent, MetadataFeed metadataFeed, String metadataFeedId) { CreateMetadataFeedRequest request = CreateMetadataFeedRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5580,7 +5582,7 @@ public final UnaryCallable createMetadataF * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataFeed getMetadataFeed(MetadataFeedName name) { + public final MetadataFeed getMetadataFeed(@Nullable MetadataFeedName name) { GetMetadataFeedRequest request = GetMetadataFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetadataFeed(request); @@ -5693,7 +5695,7 @@ public final UnaryCallable getMetadataFeed * `projects/{project_id_or_number}/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataFeedsPagedResponse listMetadataFeeds(LocationName parent) { + public final ListMetadataFeedsPagedResponse listMetadataFeeds(@Nullable LocationName parent) { ListMetadataFeedsRequest request = ListMetadataFeedsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5865,7 +5867,7 @@ public final ListMetadataFeedsPagedResponse listMetadataFeeds(ListMetadataFeedsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMetadataFeedAsync( - MetadataFeedName name) { + @Nullable MetadataFeedName name) { DeleteMetadataFeedRequest request = DeleteMetadataFeedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6555,8 +6557,8 @@ public static class ListEntryTypesPage ListEntryTypesRequest, ListEntryTypesResponse, EntryType, ListEntryTypesPage> { private ListEntryTypesPage( - PageContext context, - ListEntryTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntryTypesResponse response) { super(context, response); } @@ -6566,14 +6568,14 @@ private static ListEntryTypesPage createEmptyPage() { @Override protected ListEntryTypesPage createPage( - PageContext context, - ListEntryTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntryTypesResponse response) { return new ListEntryTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6587,7 +6589,8 @@ public static class ListEntryTypesFixedSizeCollection ListEntryTypesPage, ListEntryTypesFixedSizeCollection> { - private ListEntryTypesFixedSizeCollection(List pages, int collectionSize) { + private ListEntryTypesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6597,7 +6600,7 @@ private static ListEntryTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntryTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntryTypesFixedSizeCollection(pages, collectionSize); } } @@ -6631,8 +6634,8 @@ public static class ListAspectTypesPage ListAspectTypesRequest, ListAspectTypesResponse, AspectType, ListAspectTypesPage> { private ListAspectTypesPage( - PageContext context, - ListAspectTypesResponse response) { + @Nullable PageContext context, + @Nullable ListAspectTypesResponse response) { super(context, response); } @@ -6642,14 +6645,14 @@ private static ListAspectTypesPage createEmptyPage() { @Override protected ListAspectTypesPage createPage( - PageContext context, - ListAspectTypesResponse response) { + @Nullable PageContext context, + @Nullable ListAspectTypesResponse response) { return new ListAspectTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6664,7 +6667,7 @@ public static class ListAspectTypesFixedSizeCollection ListAspectTypesFixedSizeCollection> { private ListAspectTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6674,7 +6677,7 @@ private static ListAspectTypesFixedSizeCollection createEmptyCollection() { @Override protected ListAspectTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAspectTypesFixedSizeCollection(pages, collectionSize); } } @@ -6708,8 +6711,8 @@ public static class ListEntryGroupsPage ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup, ListEntryGroupsPage> { private ListEntryGroupsPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { super(context, response); } @@ -6719,14 +6722,14 @@ private static ListEntryGroupsPage createEmptyPage() { @Override protected ListEntryGroupsPage createPage( - PageContext context, - ListEntryGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListEntryGroupsResponse response) { return new ListEntryGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6741,7 +6744,7 @@ public static class ListEntryGroupsFixedSizeCollection ListEntryGroupsFixedSizeCollection> { private ListEntryGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6751,7 +6754,7 @@ private static ListEntryGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListEntryGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntryGroupsFixedSizeCollection(pages, collectionSize); } } @@ -6782,8 +6785,8 @@ public static class ListEntriesPage extends AbstractPage { private ListEntriesPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { super(context, response); } @@ -6793,14 +6796,14 @@ private static ListEntriesPage createEmptyPage() { @Override protected ListEntriesPage createPage( - PageContext context, - ListEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListEntriesResponse response) { return new ListEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6814,7 +6817,8 @@ public static class ListEntriesFixedSizeCollection ListEntriesPage, ListEntriesFixedSizeCollection> { - private ListEntriesFixedSizeCollection(List pages, int collectionSize) { + private ListEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6824,7 +6828,7 @@ private static ListEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntriesFixedSizeCollection(pages, collectionSize); } } @@ -6858,8 +6862,9 @@ public static class SearchEntriesPage SearchEntriesRequest, SearchEntriesResponse, SearchEntriesResult, SearchEntriesPage> { private SearchEntriesPage( - PageContext context, - SearchEntriesResponse response) { + @Nullable PageContext + context, + @Nullable SearchEntriesResponse response) { super(context, response); } @@ -6869,14 +6874,16 @@ private static SearchEntriesPage createEmptyPage() { @Override protected SearchEntriesPage createPage( - PageContext context, - SearchEntriesResponse response) { + @Nullable PageContext + context, + @Nullable SearchEntriesResponse response) { return new SearchEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6890,7 +6897,8 @@ public static class SearchEntriesFixedSizeCollection SearchEntriesPage, SearchEntriesFixedSizeCollection> { - private SearchEntriesFixedSizeCollection(List pages, int collectionSize) { + private SearchEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6900,7 +6908,7 @@ private static SearchEntriesFixedSizeCollection createEmptyCollection() { @Override protected SearchEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchEntriesFixedSizeCollection(pages, collectionSize); } } @@ -6934,8 +6942,9 @@ public static class ListMetadataJobsPage ListMetadataJobsRequest, ListMetadataJobsResponse, MetadataJob, ListMetadataJobsPage> { private ListMetadataJobsPage( - PageContext context, - ListMetadataJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataJobsResponse response) { super(context, response); } @@ -6945,14 +6954,16 @@ private static ListMetadataJobsPage createEmptyPage() { @Override protected ListMetadataJobsPage createPage( - PageContext context, - ListMetadataJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataJobsResponse response) { return new ListMetadataJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6967,7 +6978,7 @@ public static class ListMetadataJobsFixedSizeCollection ListMetadataJobsFixedSizeCollection> { private ListMetadataJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6977,7 +6988,7 @@ private static ListMetadataJobsFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataJobsFixedSizeCollection(pages, collectionSize); } } @@ -7011,8 +7022,8 @@ public static class LookupEntryLinksPage LookupEntryLinksRequest, LookupEntryLinksResponse, EntryLink, LookupEntryLinksPage> { private LookupEntryLinksPage( - PageContext context, - LookupEntryLinksResponse response) { + @Nullable PageContext context, + @Nullable LookupEntryLinksResponse response) { super(context, response); } @@ -7022,14 +7033,14 @@ private static LookupEntryLinksPage createEmptyPage() { @Override protected LookupEntryLinksPage createPage( - PageContext context, - LookupEntryLinksResponse response) { + @Nullable PageContext context, + @Nullable LookupEntryLinksResponse response) { return new LookupEntryLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7044,7 +7055,7 @@ public static class LookupEntryLinksFixedSizeCollection LookupEntryLinksFixedSizeCollection> { private LookupEntryLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7054,7 +7065,7 @@ private static LookupEntryLinksFixedSizeCollection createEmptyCollection() { @Override protected LookupEntryLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new LookupEntryLinksFixedSizeCollection(pages, collectionSize); } } @@ -7091,8 +7102,9 @@ public static class ListMetadataFeedsPage ListMetadataFeedsPage> { private ListMetadataFeedsPage( - PageContext context, - ListMetadataFeedsResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataFeedsResponse response) { super(context, response); } @@ -7102,14 +7114,16 @@ private static ListMetadataFeedsPage createEmptyPage() { @Override protected ListMetadataFeedsPage createPage( - PageContext context, - ListMetadataFeedsResponse response) { + @Nullable PageContext + context, + @Nullable ListMetadataFeedsResponse response) { return new ListMetadataFeedsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7124,7 +7138,7 @@ public static class ListMetadataFeedsFixedSizeCollection ListMetadataFeedsFixedSizeCollection> { private ListMetadataFeedsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7134,7 +7148,7 @@ private static ListMetadataFeedsFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataFeedsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataFeedsFixedSizeCollection(pages, collectionSize); } } @@ -7168,8 +7182,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7179,14 +7193,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7200,7 +7214,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7210,7 +7225,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceSettings.java index 0ee2b7ef350b..f253ec108a8f 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CatalogServiceSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -501,7 +502,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); } @@ -521,7 +522,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java index 58f7956bbfa4..0c6b5f2803b3 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java @@ -48,6 +48,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. /** @@ -309,7 +310,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CmekServiceClient implements BackgroundResource { - private final CmekServiceSettings settings; + private final @Nullable CmekServiceSettings settings; private final CmekServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -356,7 +357,7 @@ protected CmekServiceClient(CmekServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CmekServiceSettings getSettings() { + public final @Nullable CmekServiceSettings getSettings() { return settings; } @@ -412,7 +413,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEncryptionConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, EncryptionConfig encryptionConfig, String encryptionConfigId) { CreateEncryptionConfigRequest request = @@ -707,7 +708,7 @@ public final OperationFuture updateEncrypti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEncryptionConfigAsync( - EncryptionConfigName name) { + @Nullable EncryptionConfigName name) { DeleteEncryptionConfigRequest request = DeleteEncryptionConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -864,7 +865,7 @@ public final OperationFuture deleteEncryptionConfigAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEncryptionConfigsPagedResponse listEncryptionConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListEncryptionConfigsRequest request = ListEncryptionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1037,7 +1038,7 @@ public final ListEncryptionConfigsPagedResponse listEncryptionConfigs( * @param name Required. The name of the EncryptionConfig to fetch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptionConfig getEncryptionConfig(EncryptionConfigName name) { + public final EncryptionConfig getEncryptionConfig(@Nullable EncryptionConfigName name) { GetEncryptionConfigRequest request = GetEncryptionConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1579,9 +1580,11 @@ public static class ListEncryptionConfigsPage ListEncryptionConfigsPage> { private ListEncryptionConfigsPage( - PageContext + @Nullable + PageContext< + ListEncryptionConfigsRequest, ListEncryptionConfigsResponse, EncryptionConfig> context, - ListEncryptionConfigsResponse response) { + @Nullable ListEncryptionConfigsResponse response) { super(context, response); } @@ -1591,15 +1594,19 @@ private static ListEncryptionConfigsPage createEmptyPage() { @Override protected ListEncryptionConfigsPage createPage( - PageContext + @Nullable + PageContext< + ListEncryptionConfigsRequest, ListEncryptionConfigsResponse, EncryptionConfig> context, - ListEncryptionConfigsResponse response) { + @Nullable ListEncryptionConfigsResponse response) { return new ListEncryptionConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListEncryptionConfigsRequest, ListEncryptionConfigsResponse, EncryptionConfig> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1615,7 +1622,7 @@ public static class ListEncryptionConfigsFixedSizeCollection ListEncryptionConfigsFixedSizeCollection> { private ListEncryptionConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1625,7 +1632,7 @@ private static ListEncryptionConfigsFixedSizeCollection createEmptyCollection() @Override protected ListEncryptionConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEncryptionConfigsFixedSizeCollection(pages, collectionSize); } } @@ -1659,8 +1666,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1670,14 +1677,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1691,7 +1698,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1701,7 +1709,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceSettings.java index afbef25dcf48..75451fb4a70f 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -260,7 +261,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); } @@ -280,7 +281,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmekServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceClient.java index d036c195abc0..e2aa65f409fa 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceClient.java @@ -48,6 +48,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. /** @@ -425,7 +426,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataProductServiceClient implements BackgroundResource { - private final DataProductServiceSettings settings; + private final @Nullable DataProductServiceSettings settings; private final DataProductServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -473,7 +474,7 @@ protected DataProductServiceClient(DataProductServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataProductServiceSettings getSettings() { + public final @Nullable DataProductServiceSettings getSettings() { return settings; } @@ -530,7 +531,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataProductAsync( - LocationName parent, DataProduct dataProduct, String dataProductId) { + @Nullable LocationName parent, DataProduct dataProduct, String dataProductId) { CreateDataProductRequest request = CreateDataProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -701,7 +702,7 @@ public final UnaryCallable createDataProduc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataProductAsync( - DataProductName name) { + @Nullable DataProductName name) { DeleteDataProductRequest request = DeleteDataProductRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -854,7 +855,7 @@ public final UnaryCallable deleteDataProduc * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataProduct getDataProduct(DataProductName name) { + public final DataProduct getDataProduct(@Nullable DataProductName name) { GetDataProductRequest request = GetDataProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataProduct(request); @@ -969,7 +970,7 @@ public final UnaryCallable getDataProductCal * `projects/{project_id_or_number}/locations/-` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataProductsPagedResponse listDataProducts(LocationName parent) { + public final ListDataProductsPagedResponse listDataProducts(@Nullable LocationName parent) { ListDataProductsRequest request = ListDataProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1276,7 +1277,7 @@ public final UnaryCallable updateDataProduc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RequestDataProductAccessResponse requestDataProductAccess( - DataProductName parent, ChangeRequest changeRequest) { + @Nullable DataProductName parent, ChangeRequest changeRequest) { RequestDataProductAccessRequest request = RequestDataProductAccessRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1421,7 +1422,7 @@ public final RequestDataProductAccessResponse requestDataProductAccess( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataAssetAsync( - DataProductName parent, DataAsset dataAsset, String dataAssetId) { + @Nullable DataProductName parent, DataAsset dataAsset, String dataAssetId) { CreateDataAssetRequest request = CreateDataAssetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1719,7 +1720,8 @@ public final UnaryCallable updateDataAssetCal * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDataAssetAsync(DataAssetName name) { + public final OperationFuture deleteDataAssetAsync( + @Nullable DataAssetName name) { DeleteDataAssetRequest request = DeleteDataAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataAssetAsync(request); @@ -1874,7 +1876,7 @@ public final UnaryCallable deleteDataAssetCal * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataAsset getDataAsset(DataAssetName name) { + public final DataAsset getDataAsset(@Nullable DataAssetName name) { GetDataAssetRequest request = GetDataAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataAsset(request); @@ -1992,7 +1994,7 @@ public final UnaryCallable getDataAssetCallable( * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataAssetsPagedResponse listDataAssets(DataProductName parent) { + public final ListDataAssetsPagedResponse listDataAssets(@Nullable DataProductName parent) { ListDataAssetsRequest request = ListDataAssetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2585,8 +2587,9 @@ public static class ListDataProductsPage ListDataProductsRequest, ListDataProductsResponse, DataProduct, ListDataProductsPage> { private ListDataProductsPage( - PageContext context, - ListDataProductsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataProductsResponse response) { super(context, response); } @@ -2596,14 +2599,16 @@ private static ListDataProductsPage createEmptyPage() { @Override protected ListDataProductsPage createPage( - PageContext context, - ListDataProductsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataProductsResponse response) { return new ListDataProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2618,7 +2623,7 @@ public static class ListDataProductsFixedSizeCollection ListDataProductsFixedSizeCollection> { private ListDataProductsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2628,7 +2633,7 @@ private static ListDataProductsFixedSizeCollection createEmptyCollection() { @Override protected ListDataProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataProductsFixedSizeCollection(pages, collectionSize); } } @@ -2662,8 +2667,8 @@ public static class ListDataAssetsPage ListDataAssetsRequest, ListDataAssetsResponse, DataAsset, ListDataAssetsPage> { private ListDataAssetsPage( - PageContext context, - ListDataAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAssetsResponse response) { super(context, response); } @@ -2673,14 +2678,14 @@ private static ListDataAssetsPage createEmptyPage() { @Override protected ListDataAssetsPage createPage( - PageContext context, - ListDataAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAssetsResponse response) { return new ListDataAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2694,7 +2699,8 @@ public static class ListDataAssetsFixedSizeCollection ListDataAssetsPage, ListDataAssetsFixedSizeCollection> { - private ListDataAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListDataAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2704,7 +2710,7 @@ private static ListDataAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListDataAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAssetsFixedSizeCollection(pages, collectionSize); } } @@ -2738,8 +2744,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2749,14 +2755,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2770,7 +2776,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2780,7 +2787,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceSettings.java index 44716054d80f..97e23a7c1d4e 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataProductServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -333,7 +334,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataProductServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java index 453ea608ba80..1c94422ca42f 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java @@ -48,6 +48,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. /** @@ -411,7 +412,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataScanServiceClient implements BackgroundResource { - private final DataScanServiceSettings settings; + private final @Nullable DataScanServiceSettings settings; private final DataScanServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -459,7 +460,7 @@ protected DataScanServiceClient(DataScanServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataScanServiceSettings getSettings() { + public final @Nullable DataScanServiceSettings getSettings() { return settings; } @@ -523,7 +524,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataScanAsync( - LocationName parent, DataScan dataScan, String dataScanId) { + @Nullable LocationName parent, DataScan dataScan, String dataScanId) { CreateDataScanRequest request = CreateDataScanRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -824,7 +825,8 @@ public final UnaryCallable updateDataScanCalla * Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDataScanAsync(DataScanName name) { + public final OperationFuture deleteDataScanAsync( + @Nullable DataScanName name) { DeleteDataScanRequest request = DeleteDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataScanAsync(request); @@ -972,7 +974,7 @@ public final UnaryCallable deleteDataScanCalla * Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataScan getDataScan(DataScanName name) { + public final DataScan getDataScan(@Nullable DataScanName name) { GetDataScanRequest request = GetDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataScan(request); @@ -1088,7 +1090,7 @@ public final UnaryCallable getDataScanCallable() { * region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataScansPagedResponse listDataScans(LocationName parent) { + public final ListDataScansPagedResponse listDataScans(@Nullable LocationName parent) { ListDataScansRequest request = ListDataScansRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1262,7 +1264,7 @@ public final UnaryCallable listData *

Only **OnDemand** data scans are allowed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RunDataScanResponse runDataScan(DataScanName name) { + public final RunDataScanResponse runDataScan(@Nullable DataScanName name) { RunDataScanRequest request = RunDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runDataScan(request); @@ -1378,7 +1380,7 @@ public final UnaryCallable runDataScanC * `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataScanJob getDataScanJob(DataScanJobName name) { + public final DataScanJob getDataScanJob(@Nullable DataScanJobName name) { GetDataScanJobRequest request = GetDataScanJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataScanJob(request); @@ -1497,7 +1499,7 @@ public final UnaryCallable getDataScanJobCal * Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataScanJobsPagedResponse listDataScanJobs(DataScanName parent) { + public final ListDataScanJobsPagedResponse listDataScanJobs(@Nullable DataScanName parent) { ListDataScanJobsRequest request = ListDataScanJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1669,7 +1671,7 @@ public final ListDataScanJobsPagedResponse listDataScanJobs(ListDataScanJobsRequ * and `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelDataScanJobResponse cancelDataScanJob(DataScanJobName name) { + public final CancelDataScanJobResponse cancelDataScanJob(@Nullable DataScanJobName name) { CancelDataScanJobRequest request = CancelDataScanJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2302,8 +2304,8 @@ public static class ListDataScansPage ListDataScansRequest, ListDataScansResponse, DataScan, ListDataScansPage> { private ListDataScansPage( - PageContext context, - ListDataScansResponse response) { + @Nullable PageContext context, + @Nullable ListDataScansResponse response) { super(context, response); } @@ -2313,14 +2315,14 @@ private static ListDataScansPage createEmptyPage() { @Override protected ListDataScansPage createPage( - PageContext context, - ListDataScansResponse response) { + @Nullable PageContext context, + @Nullable ListDataScansResponse response) { return new ListDataScansPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2334,7 +2336,8 @@ public static class ListDataScansFixedSizeCollection ListDataScansPage, ListDataScansFixedSizeCollection> { - private ListDataScansFixedSizeCollection(List pages, int collectionSize) { + private ListDataScansFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2344,7 +2347,7 @@ private static ListDataScansFixedSizeCollection createEmptyCollection() { @Override protected ListDataScansFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataScansFixedSizeCollection(pages, collectionSize); } } @@ -2378,8 +2381,9 @@ public static class ListDataScanJobsPage ListDataScanJobsRequest, ListDataScanJobsResponse, DataScanJob, ListDataScanJobsPage> { private ListDataScanJobsPage( - PageContext context, - ListDataScanJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataScanJobsResponse response) { super(context, response); } @@ -2389,14 +2393,16 @@ private static ListDataScanJobsPage createEmptyPage() { @Override protected ListDataScanJobsPage createPage( - PageContext context, - ListDataScanJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListDataScanJobsResponse response) { return new ListDataScanJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2411,7 +2417,7 @@ public static class ListDataScanJobsFixedSizeCollection ListDataScanJobsFixedSizeCollection> { private ListDataScanJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2421,7 +2427,7 @@ private static ListDataScanJobsFixedSizeCollection createEmptyCollection() { @Override protected ListDataScanJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataScanJobsFixedSizeCollection(pages, collectionSize); } } @@ -2455,8 +2461,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2466,14 +2472,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2487,7 +2493,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2497,7 +2504,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java index 63b3163b665d..e16254522a39 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,7 +287,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); } @@ -306,7 +307,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataScanServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceClient.java index 9b804082074c..57bea5e5c1e5 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceClient.java @@ -48,6 +48,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. /** @@ -513,7 +514,7 @@ @Deprecated @Generated("by gapic-generator-java") public class DataTaxonomyServiceClient implements BackgroundResource { - private final DataTaxonomyServiceSettings settings; + private final @Nullable DataTaxonomyServiceSettings settings; private final DataTaxonomyServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -561,7 +562,7 @@ protected DataTaxonomyServiceClient(DataTaxonomyServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataTaxonomyServiceSettings getSettings() { + public final @Nullable DataTaxonomyServiceSettings getSettings() { return settings; } @@ -625,7 +626,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ @Deprecated public final OperationFuture createDataTaxonomyAsync( - LocationName parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId) { + @Nullable LocationName parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId) { CreateDataTaxonomyRequest request = CreateDataTaxonomyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -949,7 +950,7 @@ public final UnaryCallable updateDataTaxon */ @Deprecated public final OperationFuture deleteDataTaxonomyAsync( - DataTaxonomyName name) { + @Nullable DataTaxonomyName name) { DeleteDataTaxonomyRequest request = DeleteDataTaxonomyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1119,7 +1120,7 @@ public final UnaryCallable deleteDataTaxon * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListDataTaxonomiesPagedResponse listDataTaxonomies(LocationName parent) { + public final ListDataTaxonomiesPagedResponse listDataTaxonomies(@Nullable LocationName parent) { ListDataTaxonomiesRequest request = ListDataTaxonomiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1305,7 +1306,7 @@ public final ListDataTaxonomiesPagedResponse listDataTaxonomies( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final DataTaxonomy getDataTaxonomy(DataTaxonomyName name) { + public final DataTaxonomy getDataTaxonomy(@Nullable DataTaxonomyName name) { GetDataTaxonomyRequest request = GetDataTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataTaxonomy(request); @@ -1443,7 +1444,7 @@ public final UnaryCallable getDataTaxonomy @Deprecated public final OperationFuture createDataAttributeBindingAsync( - LocationName parent, + @Nullable LocationName parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId) { CreateDataAttributeBindingRequest request = @@ -1785,7 +1786,7 @@ public final UnaryCallable getDataTaxonomy */ @Deprecated public final OperationFuture deleteDataAttributeBindingAsync( - DataAttributeBindingName name) { + @Nullable DataAttributeBindingName name) { DeleteDataAttributeBindingRequest request = DeleteDataAttributeBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1967,7 +1968,7 @@ public final OperationFuture deleteDataAttributeBindin */ @Deprecated public final ListDataAttributeBindingsPagedResponse listDataAttributeBindings( - LocationName parent) { + @Nullable LocationName parent) { ListDataAttributeBindingsRequest request = ListDataAttributeBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2155,7 +2156,8 @@ public final ListDataAttributeBindingsPagedResponse listDataAttributeBindings( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final DataAttributeBinding getDataAttributeBinding(DataAttributeBindingName name) { + public final DataAttributeBinding getDataAttributeBinding( + @Nullable DataAttributeBindingName name) { GetDataAttributeBindingRequest request = GetDataAttributeBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2305,7 +2307,7 @@ public final DataAttributeBinding getDataAttributeBinding( */ @Deprecated public final OperationFuture createDataAttributeAsync( - DataTaxonomyName parent, DataAttribute dataAttribute, String dataAttributeId) { + @Nullable DataTaxonomyName parent, DataAttribute dataAttribute, String dataAttributeId) { CreateDataAttributeRequest request = CreateDataAttributeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2634,7 +2636,7 @@ public final UnaryCallable updateDataAttr */ @Deprecated public final OperationFuture deleteDataAttributeAsync( - DataAttributeName name) { + @Nullable DataAttributeName name) { DeleteDataAttributeRequest request = DeleteDataAttributeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2808,7 +2810,8 @@ public final UnaryCallable deleteDataAttr * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListDataAttributesPagedResponse listDataAttributes(DataTaxonomyName parent) { + public final ListDataAttributesPagedResponse listDataAttributes( + @Nullable DataTaxonomyName parent) { ListDataAttributesRequest request = ListDataAttributesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2999,7 +3002,7 @@ public final ListDataAttributesPagedResponse listDataAttributes( * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final DataAttribute getDataAttribute(DataAttributeName name) { + public final DataAttribute getDataAttribute(@Nullable DataAttributeName name) { GetDataAttributeRequest request = GetDataAttributeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataAttribute(request); @@ -3551,8 +3554,9 @@ public static class ListDataTaxonomiesPage ListDataTaxonomiesPage> { private ListDataTaxonomiesPage( - PageContext context, - ListDataTaxonomiesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataTaxonomiesResponse response) { super(context, response); } @@ -3562,14 +3566,16 @@ private static ListDataTaxonomiesPage createEmptyPage() { @Override protected ListDataTaxonomiesPage createPage( - PageContext context, - ListDataTaxonomiesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataTaxonomiesResponse response) { return new ListDataTaxonomiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3584,7 +3590,7 @@ public static class ListDataTaxonomiesFixedSizeCollection ListDataTaxonomiesFixedSizeCollection> { private ListDataTaxonomiesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3594,7 +3600,7 @@ private static ListDataTaxonomiesFixedSizeCollection createEmptyCollection() { @Override protected ListDataTaxonomiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataTaxonomiesFixedSizeCollection(pages, collectionSize); } } @@ -3635,12 +3641,13 @@ public static class ListDataAttributeBindingsPage ListDataAttributeBindingsPage> { private ListDataAttributeBindingsPage( - PageContext< + @Nullable + PageContext< ListDataAttributeBindingsRequest, ListDataAttributeBindingsResponse, DataAttributeBinding> context, - ListDataAttributeBindingsResponse response) { + @Nullable ListDataAttributeBindingsResponse response) { super(context, response); } @@ -3650,18 +3657,20 @@ private static ListDataAttributeBindingsPage createEmptyPage() { @Override protected ListDataAttributeBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListDataAttributeBindingsRequest, ListDataAttributeBindingsResponse, DataAttributeBinding> context, - ListDataAttributeBindingsResponse response) { + @Nullable ListDataAttributeBindingsResponse response) { return new ListDataAttributeBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDataAttributeBindingsRequest, ListDataAttributeBindingsResponse, DataAttributeBinding> @@ -3680,7 +3689,7 @@ public static class ListDataAttributeBindingsFixedSizeCollection ListDataAttributeBindingsFixedSizeCollection> { private ListDataAttributeBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3690,7 +3699,7 @@ private static ListDataAttributeBindingsFixedSizeCollection createEmptyCollectio @Override protected ListDataAttributeBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAttributeBindingsFixedSizeCollection(pages, collectionSize); } } @@ -3727,8 +3736,9 @@ public static class ListDataAttributesPage ListDataAttributesPage> { private ListDataAttributesPage( - PageContext context, - ListDataAttributesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataAttributesResponse response) { super(context, response); } @@ -3738,14 +3748,16 @@ private static ListDataAttributesPage createEmptyPage() { @Override protected ListDataAttributesPage createPage( - PageContext context, - ListDataAttributesResponse response) { + @Nullable PageContext + context, + @Nullable ListDataAttributesResponse response) { return new ListDataAttributesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3760,7 +3772,7 @@ public static class ListDataAttributesFixedSizeCollection ListDataAttributesFixedSizeCollection> { private ListDataAttributesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3770,7 +3782,7 @@ private static ListDataAttributesFixedSizeCollection createEmptyCollection() { @Override protected ListDataAttributesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAttributesFixedSizeCollection(pages, collectionSize); } } @@ -3804,8 +3816,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3815,14 +3827,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3836,7 +3848,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3846,7 +3859,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceSettings.java index 13c9ad098c7b..fcefc820d7a3 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyServiceSettings.java @@ -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. /** @@ -494,7 +495,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); } @@ -514,7 +515,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataTaxonomyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceClient.java index 9fca7ec60e0f..d01213f6ca1c 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceClient.java @@ -48,6 +48,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. /** @@ -747,7 +748,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataplexServiceClient implements BackgroundResource { - private final DataplexServiceSettings settings; + private final @Nullable DataplexServiceSettings settings; private final DataplexServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -795,7 +796,7 @@ protected DataplexServiceClient(DataplexServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataplexServiceSettings getSettings() { + public final @Nullable DataplexServiceSettings getSettings() { return settings; } @@ -857,7 +858,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLakeAsync( - LocationName parent, Lake lake, String lakeId) { + @Nullable LocationName parent, Lake lake, String lakeId) { CreateLakeRequest request = CreateLakeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1146,7 +1147,7 @@ public final UnaryCallable updateLakeCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteLakeAsync(LakeName name) { + public final OperationFuture deleteLakeAsync(@Nullable LakeName name) { DeleteLakeRequest request = DeleteLakeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteLakeAsync(request); @@ -1293,7 +1294,7 @@ public final UnaryCallable deleteLakeCallable() { * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLakesPagedResponse listLakes(LocationName parent) { + public final ListLakesPagedResponse listLakes(@Nullable LocationName parent) { ListLakesRequest request = ListLakesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLakes(request); @@ -1458,7 +1459,7 @@ public final UnaryCallable listLakesCallabl * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Lake getLake(LakeName name) { + public final Lake getLake(@Nullable LakeName name) { GetLakeRequest request = GetLakeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLake(request); @@ -1570,7 +1571,7 @@ public final UnaryCallable getLakeCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLakeActionsPagedResponse listLakeActions(LakeName parent) { + public final ListLakeActionsPagedResponse listLakeActions(@Nullable LakeName parent) { ListLakeActionsRequest request = ListLakeActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1749,7 +1750,7 @@ public final ListLakeActionsPagedResponse listLakeActions(ListLakeActionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createZoneAsync( - LakeName parent, Zone zone, String zoneId) { + @Nullable LakeName parent, Zone zone, String zoneId) { CreateZoneRequest request = CreateZoneRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2038,7 +2039,7 @@ public final UnaryCallable updateZoneCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteZoneAsync(ZoneName name) { + public final OperationFuture deleteZoneAsync(@Nullable ZoneName name) { DeleteZoneRequest request = DeleteZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteZoneAsync(request); @@ -2184,7 +2185,7 @@ public final UnaryCallable deleteZoneCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListZonesPagedResponse listZones(LakeName parent) { + public final ListZonesPagedResponse listZones(@Nullable LakeName parent) { ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listZones(request); @@ -2348,7 +2349,7 @@ public final UnaryCallable listZonesCallabl * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Zone getZone(ZoneName name) { + public final Zone getZone(@Nullable ZoneName name) { GetZoneRequest request = GetZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getZone(request); @@ -2460,7 +2461,7 @@ public final UnaryCallable getZoneCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListZoneActionsPagedResponse listZoneActions(ZoneName parent) { + public final ListZoneActionsPagedResponse listZoneActions(@Nullable ZoneName parent) { ListZoneActionsRequest request = ListZoneActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2638,7 +2639,7 @@ public final ListZoneActionsPagedResponse listZoneActions(ListZoneActionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAssetAsync( - ZoneName parent, Asset asset, String assetId) { + @Nullable ZoneName parent, Asset asset, String assetId) { CreateAssetRequest request = CreateAssetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2932,7 +2933,8 @@ public final UnaryCallable updateAssetCallable() * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAssetAsync(AssetName name) { + public final OperationFuture deleteAssetAsync( + @Nullable AssetName name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAssetAsync(request); @@ -3082,7 +3084,7 @@ public final UnaryCallable deleteAssetCallable() * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(ZoneName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable ZoneName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -3246,7 +3248,7 @@ public final UnaryCallable listAssetsCall * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Asset getAsset(AssetName name) { + public final Asset getAsset(@Nullable AssetName name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAsset(request); @@ -3361,7 +3363,7 @@ public final UnaryCallable getAssetCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetActionsPagedResponse listAssetActions(AssetName parent) { + public final ListAssetActionsPagedResponse listAssetActions(@Nullable AssetName parent) { ListAssetActionsRequest request = ListAssetActionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3535,7 +3537,7 @@ public final ListAssetActionsPagedResponse listAssetActions(ListAssetActionsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTaskAsync( - LakeName parent, Task task, String taskId) { + @Nullable LakeName parent, Task task, String taskId) { CreateTaskRequest request = CreateTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3813,7 +3815,7 @@ public final UnaryCallable updateTaskCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTaskAsync(TaskName name) { + public final OperationFuture deleteTaskAsync(@Nullable TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTaskAsync(request); @@ -3955,7 +3957,7 @@ public final UnaryCallable deleteTaskCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(LakeName parent) { + public final ListTasksPagedResponse listTasks(@Nullable LakeName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -4119,7 +4121,7 @@ public final UnaryCallable listTasksCallabl * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -4231,7 +4233,7 @@ public final UnaryCallable getTaskCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(TaskName parent) { + public final ListJobsPagedResponse listJobs(@Nullable TaskName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -4389,7 +4391,7 @@ public final UnaryCallable listJobsCallable() * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RunTaskResponse runTask(TaskName name) { + public final RunTaskResponse runTask(@Nullable TaskName name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runTask(request); @@ -4504,7 +4506,7 @@ public final UnaryCallable runTaskCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -4616,7 +4618,7 @@ public final UnaryCallable getJobCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelJob(JobName name) { + public final void cancelJob(@Nullable JobName name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); cancelJob(request); @@ -5141,8 +5143,8 @@ public static class ListLakesPage extends AbstractPage { private ListLakesPage( - PageContext context, - ListLakesResponse response) { + @Nullable PageContext context, + @Nullable ListLakesResponse response) { super(context, response); } @@ -5152,14 +5154,14 @@ private static ListLakesPage createEmptyPage() { @Override protected ListLakesPage createPage( - PageContext context, - ListLakesResponse response) { + @Nullable PageContext context, + @Nullable ListLakesResponse response) { return new ListLakesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5169,7 +5171,7 @@ public static class ListLakesFixedSizeCollection extends AbstractFixedSizeCollection< ListLakesRequest, ListLakesResponse, Lake, ListLakesPage, ListLakesFixedSizeCollection> { - private ListLakesFixedSizeCollection(List pages, int collectionSize) { + private ListLakesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5179,7 +5181,7 @@ private static ListLakesFixedSizeCollection createEmptyCollection() { @Override protected ListLakesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLakesFixedSizeCollection(pages, collectionSize); } } @@ -5213,8 +5215,8 @@ public static class ListLakeActionsPage ListLakeActionsRequest, ListActionsResponse, Action, ListLakeActionsPage> { private ListLakeActionsPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { super(context, response); } @@ -5224,14 +5226,14 @@ private static ListLakeActionsPage createEmptyPage() { @Override protected ListLakeActionsPage createPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { return new ListLakeActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5246,7 +5248,7 @@ public static class ListLakeActionsFixedSizeCollection ListLakeActionsFixedSizeCollection> { private ListLakeActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5256,7 +5258,7 @@ private static ListLakeActionsFixedSizeCollection createEmptyCollection() { @Override protected ListLakeActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLakeActionsFixedSizeCollection(pages, collectionSize); } } @@ -5283,8 +5285,8 @@ public static class ListZonesPage extends AbstractPage { private ListZonesPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { super(context, response); } @@ -5294,14 +5296,14 @@ private static ListZonesPage createEmptyPage() { @Override protected ListZonesPage createPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { return new ListZonesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5311,7 +5313,7 @@ public static class ListZonesFixedSizeCollection extends AbstractFixedSizeCollection< ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { - private ListZonesFixedSizeCollection(List pages, int collectionSize) { + private ListZonesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5321,7 +5323,7 @@ private static ListZonesFixedSizeCollection createEmptyCollection() { @Override protected ListZonesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListZonesFixedSizeCollection(pages, collectionSize); } } @@ -5355,8 +5357,8 @@ public static class ListZoneActionsPage ListZoneActionsRequest, ListActionsResponse, Action, ListZoneActionsPage> { private ListZoneActionsPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { super(context, response); } @@ -5366,14 +5368,14 @@ private static ListZoneActionsPage createEmptyPage() { @Override protected ListZoneActionsPage createPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { return new ListZoneActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5388,7 +5390,7 @@ public static class ListZoneActionsFixedSizeCollection ListZoneActionsFixedSizeCollection> { private ListZoneActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5398,7 +5400,7 @@ private static ListZoneActionsFixedSizeCollection createEmptyCollection() { @Override protected ListZoneActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListZoneActionsFixedSizeCollection(pages, collectionSize); } } @@ -5429,8 +5431,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -5440,14 +5442,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5461,7 +5463,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5471,7 +5474,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -5505,8 +5508,8 @@ public static class ListAssetActionsPage ListAssetActionsRequest, ListActionsResponse, Action, ListAssetActionsPage> { private ListAssetActionsPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { super(context, response); } @@ -5516,14 +5519,14 @@ private static ListAssetActionsPage createEmptyPage() { @Override protected ListAssetActionsPage createPage( - PageContext context, - ListActionsResponse response) { + @Nullable PageContext context, + @Nullable ListActionsResponse response) { return new ListAssetActionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5538,7 +5541,7 @@ public static class ListAssetActionsFixedSizeCollection ListAssetActionsFixedSizeCollection> { private ListAssetActionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5548,7 +5551,7 @@ private static ListAssetActionsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetActionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetActionsFixedSizeCollection(pages, collectionSize); } } @@ -5575,8 +5578,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -5586,14 +5589,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5603,7 +5606,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5613,7 +5616,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -5640,7 +5643,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -5650,13 +5654,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5666,7 +5671,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5676,7 +5681,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -5710,8 +5715,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5721,14 +5726,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5742,7 +5747,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5752,7 +5758,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceSettings.java index b8c42e7cd19d..fe0f745324c8 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataplexServiceSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -437,7 +438,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); } @@ -457,7 +458,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataplexServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceClient.java index 7a57bbf30a06..57a7098d7c6f 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceClient.java @@ -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. /** @@ -379,7 +380,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetadataServiceClient implements BackgroundResource { - private final MetadataServiceSettings settings; + private final @Nullable MetadataServiceSettings settings; private final MetadataServiceStub stub; /** Constructs an instance of MetadataServiceClient with default settings. */ @@ -419,7 +420,7 @@ protected MetadataServiceClient(MetadataServiceStub stub) { this.stub = stub; } - public final MetadataServiceSettings getSettings() { + public final @Nullable MetadataServiceSettings getSettings() { return settings; } @@ -451,7 +452,7 @@ public MetadataServiceStub getStub() { * @param entity Required. Entity resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entity createEntity(ZoneName parent, Entity entity) { + public final Entity createEntity(@Nullable ZoneName parent, Entity entity) { CreateEntityRequest request = CreateEntityRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -628,7 +629,7 @@ public final UnaryCallable updateEntityCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntity(EntityName name) { + public final void deleteEntity(@Nullable EntityName name) { DeleteEntityRequest request = DeleteEntityRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntity(request); @@ -745,7 +746,7 @@ public final UnaryCallable deleteEntityCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entity getEntity(EntityName name) { + public final Entity getEntity(@Nullable EntityName name) { GetEntityRequest request = GetEntityRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntity(request); @@ -862,7 +863,7 @@ public final UnaryCallable getEntityCallable() { * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitiesPagedResponse listEntities(ZoneName parent) { + public final ListEntitiesPagedResponse listEntities(@Nullable ZoneName parent) { ListEntitiesRequest request = ListEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1029,7 +1030,7 @@ public final UnaryCallable listEntiti * @param partition Required. Partition resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Partition createPartition(EntityName parent, Partition partition) { + public final Partition createPartition(@Nullable EntityName parent, Partition partition) { CreatePartitionRequest request = CreatePartitionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1159,7 +1160,7 @@ public final UnaryCallable createPartitionCal * separated by "/". All values must be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePartition(PartitionName name) { + public final void deletePartition(@Nullable PartitionName name) { DeletePartitionRequest request = DeletePartitionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePartition(request); @@ -1285,7 +1286,7 @@ public final UnaryCallable deletePartitionCallabl * separated by "/". All values must be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Partition getPartition(PartitionName name) { + public final Partition getPartition(@Nullable PartitionName name) { GetPartitionRequest request = GetPartitionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPartition(request); @@ -1408,7 +1409,7 @@ public final UnaryCallable getPartitionCallable( * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPartitionsPagedResponse listPartitions(EntityName parent) { + public final ListPartitionsPagedResponse listPartitions(@Nullable EntityName parent) { ListPartitionsRequest request = ListPartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2001,8 +2002,8 @@ public static class ListEntitiesPage extends AbstractPage { private ListEntitiesPage( - PageContext context, - ListEntitiesResponse response) { + @Nullable PageContext context, + @Nullable ListEntitiesResponse response) { super(context, response); } @@ -2012,14 +2013,14 @@ private static ListEntitiesPage createEmptyPage() { @Override protected ListEntitiesPage createPage( - PageContext context, - ListEntitiesResponse response) { + @Nullable PageContext context, + @Nullable ListEntitiesResponse response) { return new ListEntitiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2033,7 +2034,8 @@ public static class ListEntitiesFixedSizeCollection ListEntitiesPage, ListEntitiesFixedSizeCollection> { - private ListEntitiesFixedSizeCollection(List pages, int collectionSize) { + private ListEntitiesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2043,7 +2045,7 @@ private static ListEntitiesFixedSizeCollection createEmptyCollection() { @Override protected ListEntitiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitiesFixedSizeCollection(pages, collectionSize); } } @@ -2077,8 +2079,8 @@ public static class ListPartitionsPage ListPartitionsRequest, ListPartitionsResponse, Partition, ListPartitionsPage> { private ListPartitionsPage( - PageContext context, - ListPartitionsResponse response) { + @Nullable PageContext context, + @Nullable ListPartitionsResponse response) { super(context, response); } @@ -2088,14 +2090,14 @@ private static ListPartitionsPage createEmptyPage() { @Override protected ListPartitionsPage createPage( - PageContext context, - ListPartitionsResponse response) { + @Nullable PageContext context, + @Nullable ListPartitionsResponse response) { return new ListPartitionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2109,7 +2111,8 @@ public static class ListPartitionsFixedSizeCollection ListPartitionsPage, ListPartitionsFixedSizeCollection> { - private ListPartitionsFixedSizeCollection(List pages, int collectionSize) { + private ListPartitionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2119,7 +2122,7 @@ private static ListPartitionsFixedSizeCollection createEmptyCollection() { @Override protected ListPartitionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPartitionsFixedSizeCollection(pages, collectionSize); } } @@ -2153,8 +2156,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2164,14 +2167,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2185,7 +2188,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2195,7 +2199,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceSettings.java index 43399e4fad55..3bac8a6347d3 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/MetadataServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetadataServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStub.java index 711cac44af8c..284518768eea 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStub.java @@ -60,6 +60,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -71,11 +72,12 @@ @Generated("by gapic-generator-java") public abstract class BusinessGlossaryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java index 6a0d81dba2ea..32a314a07dc7 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/BusinessGlossaryServiceStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -690,7 +691,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); } @@ -812,7 +813,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createGlossarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStub.java index ce1b9405af55..5b837d6c1890 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStub.java @@ -98,6 +98,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -109,11 +110,12 @@ @Generated("by gapic-generator-java") public abstract class CatalogServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java index 4019708e5baa..90adc9fd42e8 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CatalogServiceStubSettings.java @@ -133,6 +133,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1208,7 +1209,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); } @@ -1503,7 +1504,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEntryTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStub.java index 22a9328d1215..b9b3b45d35de 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class CmekServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java index bf3fec702b93..5434227d5fb2 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/CmekServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -487,7 +488,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); } @@ -583,7 +584,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEncryptionConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStub.java index f286cb350d0b..b85df3a5e5b4 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,11 +66,12 @@ @Generated("by gapic-generator-java") public abstract class DataProductServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java index 126c309dfaf0..71ed1314f636 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataProductServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -598,7 +599,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); } @@ -722,7 +723,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java index 6201bbe2d1d2..82c3328dbd7f 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class DataScanServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java index 88e01673ee5d..831055c9dcd6 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -568,7 +569,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); } @@ -672,7 +673,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStub.java index 52a365c8d7c1..9fc34cf6ed7b 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStub.java @@ -60,6 +60,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class DataTaxonomyServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java index c4211cdab44e..66c05e5b5c73 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataTaxonomyServiceStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -831,7 +832,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); } @@ -992,7 +993,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStub.java index e96d5d55b87a..f5208f12d56a 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStub.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStub.java @@ -83,6 +83,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -94,11 +95,12 @@ @Generated("by gapic-generator-java") public abstract class DataplexServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java index 011de50f7749..f9c34a3d0b52 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataplexServiceStubSettings.java @@ -118,6 +118,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1087,7 +1088,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); } @@ -1294,7 +1295,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createLakeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java index f7a4694d3ef2..036f113dba44 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/MetadataServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -491,7 +492,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); } @@ -615,7 +616,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEntitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeName.java index 8b65e18e9f32..4241a48e8818 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AspectTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String aspectType) .toString(); } - public static AspectTypeName parse(String formattedString) { + public static @Nullable AspectTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AspectTypeName> values) { List list = new ArrayList<>(values.size()); for (AspectTypeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetName.java index d479c1ecd853..fb087020ff00 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAssetName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAssetName.java index 3b2b573185cb..eb3fcf60df1d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAssetName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAssetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataAssetName parse(String formattedString) { + public static @Nullable DataAssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAssetName> values) { List list = new ArrayList<>(values.size()); for (DataAssetName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeBindingName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeBindingName.java index 15ce55085a0b..4590bf28252c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeBindingName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String dataAttribut .toString(); } - public static DataAttributeBindingName parse(String formattedString) { + public static @Nullable DataAttributeBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -111,7 +112,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAttributeBindingName> values) { List list = new ArrayList<>(values.size()); for (DataAttributeBindingName value : values) { if (value == null) { @@ -165,7 +166,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeName.java index aeacf88eabdb..155ad1911f62 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataAttributeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataAttributeName parse(String formattedString) { + public static @Nullable DataAttributeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAttributeName> values) { List list = new ArrayList<>(values.size()); for (DataAttributeName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProductName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProductName.java index 2c5cfac45b22..fa1b7ccbe6f7 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProductName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataProduct) .toString(); } - public static DataProductName parse(String formattedString) { + public static @Nullable DataProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataProductName> values) { List list = new ArrayList<>(values.size()); for (DataProductName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java index 6a3a4df532f9..57906ad262f8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String dataScan, St .toString(); } - public static DataScanJobName parse(String formattedString) { + public static @Nullable DataScanJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataScanJobName> values) { List list = new ArrayList<>(values.size()); for (DataScanJobName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java index 0324b5742c2b..b508e83cd07d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataScan) { .toString(); } - public static DataScanName parse(String formattedString) { + public static @Nullable DataScanName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataScanName> values) { List list = new ArrayList<>(values.size()); for (DataScanName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyName.java index e72bcafa9dec..010fd9fd5582 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataTaxonomyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dataTaxonomy .toString(); } - public static DataTaxonomyName parse(String formattedString) { + public static @Nullable DataTaxonomyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataTaxonomyName> values) { List list = new ArrayList<>(values.size()); for (DataTaxonomyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigName.java index 15362757026a..57a095878f3c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String organization, String location, String encrypt .toString(); } - public static EncryptionConfigName parse(String formattedString) { + public static @Nullable EncryptionConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EncryptionConfigName> values) { List list = new ArrayList<>(values.size()); for (EncryptionConfigName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityName.java index 076438910711..4e407644a3ee 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static EntityName parse(String formattedString) { + public static @Nullable EntityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityName> values) { List list = new ArrayList<>(values.size()); for (EntityName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryGroupName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryGroupName.java index 19dcc637f6b5..70f554f24ca1 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryGroupName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String entryGroup) .toString(); } - public static EntryGroupName parse(String formattedString) { + public static @Nullable EntryGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryGroupName> values) { List list = new ArrayList<>(values.size()); for (EntryGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryLinkName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryLinkName.java index f5ee1968f33a..e4e6f7165a23 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryLinkName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EntryLinkName parse(String formattedString) { + public static @Nullable EntryLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryLinkName> values) { List list = new ArrayList<>(values.size()); for (EntryLinkName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryName.java index 751010e9346f..0c1903a141fa 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String entryGroup, .toString(); } - public static EntryName parse(String formattedString) { + public static @Nullable EntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryName> values) { List list = new ArrayList<>(values.size()); for (EntryName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryTypeName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryTypeName.java index bda08cf92795..f06fb30119d8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryTypeName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntryTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String entryType) { .toString(); } - public static EntryTypeName parse(String formattedString) { + public static @Nullable EntryTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntryTypeName> values) { List list = new ArrayList<>(values.size()); for (EntryTypeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryCategoryName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryCategoryName.java index d5f26307d2de..7427ffd5fff1 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryCategoryName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryCategoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GlossaryCategoryName parse(String formattedString) { + public static @Nullable GlossaryCategoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryCategoryName> values) { List list = new ArrayList<>(values.size()); for (GlossaryCategoryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryName.java index e70f72953f41..ddeff9bf0afa 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String glossary) { .toString(); } - public static GlossaryName parse(String formattedString) { + public static @Nullable GlossaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryName> values) { List list = new ArrayList<>(values.size()); for (GlossaryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryTermName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryTermName.java index 9b112d80086a..680a1f9e533e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryTermName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GlossaryTermName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GlossaryTermName parse(String formattedString) { + public static @Nullable GlossaryTermName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryTermName> values) { List list = new ArrayList<>(values.size()); for (GlossaryTermName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobName.java index 9622ea0bd607..e9aa4b156ac7 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String format( .toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -186,7 +187,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeName.java index 171794ba6120..07cf8e05a430 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String lake) { return newBuilder().setProject(project).setLocation(location).setLake(lake).build().toString(); } - public static LakeName parse(String formattedString) { + public static @Nullable LakeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LakeName> values) { List list = new ArrayList<>(values.size()); for (LakeName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LocationName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LocationName.java index 00241e666a37..1356f2b720c4 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LocationName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataFeedName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataFeedName.java index 703a4034fb9d..7ddc49bde567 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataFeedName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataFeedName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String metadataFeed .toString(); } - public static MetadataFeedName parse(String formattedString) { + public static @Nullable MetadataFeedName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataFeedName> values) { List list = new ArrayList<>(values.size()); for (MetadataFeedName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJobName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJobName.java index a5972e911a03..a57b960d6ad8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJobName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String metadataJob) .toString(); } - public static MetadataJobName parse(String formattedString) { + public static @Nullable MetadataJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataJobName> values) { List list = new ArrayList<>(values.size()); for (MetadataJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OrganizationLocationName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OrganizationLocationName.java index ac6225914a26..1a3aedcc1394 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OrganizationLocationName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionName.java index 5c4bcfd0e774..73980848481d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static PartitionName parse(String formattedString) { + public static @Nullable PartitionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PartitionName> values) { List list = new ArrayList<>(values.size()); for (PartitionName value : values) { if (value == null) { @@ -211,7 +212,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskName.java index e80abdc80c5d..95a96a46b5d0 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String lake, String .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneName.java index 708f17b22529..e366f6527aef 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneName.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String lake, String .toString(); } - public static ZoneName parse(String formattedString) { + public static @Nullable ZoneName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ZoneName> values) { List list = new ArrayList<>(values.size()); for (ZoneName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java index 5a9685532995..22754afc047b 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java @@ -48,6 +48,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. /** @@ -566,7 +567,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataprocMetastoreClient implements BackgroundResource { - private final DataprocMetastoreSettings settings; + private final @Nullable DataprocMetastoreSettings settings; private final DataprocMetastoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -614,7 +615,7 @@ protected DataprocMetastoreClient(DataprocMetastoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreSettings getSettings() { + public final @Nullable DataprocMetastoreSettings getSettings() { return settings; } @@ -664,7 +665,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

`projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(LocationName parent) { + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -835,7 +836,7 @@ public final UnaryCallable listServic *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -957,7 +958,7 @@ public final UnaryCallable getServiceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - LocationName parent, Service service, String serviceId) { + @Nullable LocationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1256,7 +1257,8 @@ public final UnaryCallable updateServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -1405,7 +1407,7 @@ public final UnaryCallable deleteServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName parent) { + public final ListMetadataImportsPagedResponse listMetadataImports(@Nullable ServiceName parent) { ListMetadataImportsRequest request = ListMetadataImportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1582,7 +1584,7 @@ public final ListMetadataImportsPagedResponse listMetadataImports( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataImport getMetadataImport(MetadataImportName name) { + public final MetadataImport getMetadataImport(@Nullable MetadataImportName name) { GetMetadataImportRequest request = GetMetadataImportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1716,7 +1718,7 @@ public final UnaryCallable getMetadata * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMetadataImportAsync( - ServiceName parent, MetadataImport metadataImport, String metadataImportId) { + @Nullable ServiceName parent, MetadataImport metadataImport, String metadataImportId) { CreateMetadataImportRequest request = CreateMetadataImportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2121,7 +2123,7 @@ public final UnaryCallable exportMetadataCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, BackupName backup) { + @Nullable ServiceName service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2158,7 +2160,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, String backup) { + @Nullable ServiceName service, String backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2195,7 +2197,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - String service, BackupName backup) { + String service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service) @@ -2358,7 +2360,7 @@ public final UnaryCallable restoreServiceCalla *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ServiceName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable ServiceName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2528,7 +2530,7 @@ public final UnaryCallable listBackupsC *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2649,7 +2651,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - ServiceName parent, Backup backup, String backupId) { + @Nullable ServiceName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2819,7 +2821,8 @@ public final UnaryCallable createBackupCallable( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3643,8 +3646,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -3654,14 +3657,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3675,7 +3678,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3685,7 +3689,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -3723,9 +3727,10 @@ public static class ListMetadataImportsPage ListMetadataImportsPage> { private ListMetadataImportsPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { super(context, response); } @@ -3735,15 +3740,17 @@ private static ListMetadataImportsPage createEmptyPage() { @Override protected ListMetadataImportsPage createPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { return new ListMetadataImportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3759,7 +3766,7 @@ public static class ListMetadataImportsFixedSizeCollection ListMetadataImportsFixedSizeCollection> { private ListMetadataImportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3769,7 +3776,7 @@ private static ListMetadataImportsFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataImportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataImportsFixedSizeCollection(pages, collectionSize); } } @@ -3800,8 +3807,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3811,14 +3818,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3832,7 +3839,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3842,7 +3850,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3876,8 +3884,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3887,14 +3895,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3908,7 +3916,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3918,7 +3927,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationClient.java index 21c96917cf0e..bf38c55c5508 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationClient.java @@ -48,6 +48,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. /** @@ -325,7 +326,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataprocMetastoreFederationClient implements BackgroundResource { - private final DataprocMetastoreFederationSettings settings; + private final @Nullable DataprocMetastoreFederationSettings settings; private final DataprocMetastoreFederationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -376,7 +377,7 @@ protected DataprocMetastoreFederationClient(DataprocMetastoreFederationStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreFederationSettings getSettings() { + public final @Nullable DataprocMetastoreFederationSettings getSettings() { return settings; } @@ -427,7 +428,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * list, in the following form: `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFederationsPagedResponse listFederations(LocationName parent) { + public final ListFederationsPagedResponse listFederations(@Nullable LocationName parent) { ListFederationsRequest request = ListFederationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -605,7 +606,7 @@ public final ListFederationsPagedResponse listFederations(ListFederationsRequest *

`projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Federation getFederation(FederationName name) { + public final Federation getFederation(@Nullable FederationName name) { GetFederationRequest request = GetFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFederation(request); @@ -735,7 +736,7 @@ public final UnaryCallable getFederationCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFederationAsync( - LocationName parent, Federation federation, String federationId) { + @Nullable LocationName parent, Federation federation, String federationId) { CreateFederationRequest request = CreateFederationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1051,7 +1052,7 @@ public final UnaryCallable updateFederationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFederationAsync( - FederationName name) { + @Nullable FederationName name) { DeleteFederationRequest request = DeleteFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFederationAsync(request); @@ -1604,8 +1605,8 @@ public static class ListFederationsPage ListFederationsRequest, ListFederationsResponse, Federation, ListFederationsPage> { private ListFederationsPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { super(context, response); } @@ -1615,14 +1616,14 @@ private static ListFederationsPage createEmptyPage() { @Override protected ListFederationsPage createPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { return new ListFederationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1637,7 +1638,7 @@ public static class ListFederationsFixedSizeCollection ListFederationsFixedSizeCollection> { private ListFederationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1647,7 +1648,7 @@ private static ListFederationsFixedSizeCollection createEmptyCollection() { @Override protected ListFederationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFederationsFixedSizeCollection(pages, collectionSize); } } @@ -1681,8 +1682,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1692,14 +1693,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1713,7 +1714,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1723,7 +1725,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationSettings.java index 31a4274581fc..5c3a06e336c0 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -263,7 +264,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); } @@ -284,7 +285,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreFederationStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java index 5c83b84f774a..4e3ce2709fc5 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java @@ -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. /** @@ -390,7 +391,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); } @@ -410,7 +411,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStub.java index 294368106462..bbde58e8473d 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreFederationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java index 4b6dde73953e..b98285b274bc 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -463,7 +464,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); } @@ -553,7 +554,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFederationsSettings = PagedCallSettings.newBuilder(LIST_FEDERATIONS_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStub.java index c751eca2593a..858e400f8d84 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStub.java @@ -68,6 +68,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,11 +80,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java index 0baadf654f6b..fbecc8a182d1 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreStubSettings.java @@ -102,6 +102,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -765,7 +766,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); } @@ -949,7 +950,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java index d9fdef2f4660..a1bd7a2a8cfc 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreClient.java @@ -48,6 +48,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. /** @@ -581,7 +582,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataprocMetastoreClient implements BackgroundResource { - private final DataprocMetastoreSettings settings; + private final @Nullable DataprocMetastoreSettings settings; private final DataprocMetastoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -629,7 +630,7 @@ protected DataprocMetastoreClient(DataprocMetastoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreSettings getSettings() { + public final @Nullable DataprocMetastoreSettings getSettings() { return settings; } @@ -679,7 +680,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

`projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(LocationName parent) { + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,7 @@ public final UnaryCallable listServic *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -972,7 +973,7 @@ public final UnaryCallable getServiceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - LocationName parent, Service service, String serviceId) { + @Nullable LocationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1271,7 +1272,8 @@ public final UnaryCallable updateServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -1420,7 +1422,7 @@ public final UnaryCallable deleteServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName parent) { + public final ListMetadataImportsPagedResponse listMetadataImports(@Nullable ServiceName parent) { ListMetadataImportsRequest request = ListMetadataImportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1597,7 +1599,7 @@ public final ListMetadataImportsPagedResponse listMetadataImports( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataImport getMetadataImport(MetadataImportName name) { + public final MetadataImport getMetadataImport(@Nullable MetadataImportName name) { GetMetadataImportRequest request = GetMetadataImportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1731,7 +1733,7 @@ public final UnaryCallable getMetadata * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMetadataImportAsync( - ServiceName parent, MetadataImport metadataImport, String metadataImportId) { + @Nullable ServiceName parent, MetadataImport metadataImport, String metadataImportId) { CreateMetadataImportRequest request = CreateMetadataImportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2136,7 +2138,7 @@ public final UnaryCallable exportMetadataCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, BackupName backup) { + @Nullable ServiceName service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2173,7 +2175,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, String backup) { + @Nullable ServiceName service, String backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2210,7 +2212,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - String service, BackupName backup) { + String service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service) @@ -2373,7 +2375,7 @@ public final UnaryCallable restoreServiceCalla *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ServiceName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable ServiceName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2543,7 +2545,7 @@ public final UnaryCallable listBackupsC *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2664,7 +2666,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - ServiceName parent, Backup backup, String backupId) { + @Nullable ServiceName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2834,7 +2836,8 @@ public final UnaryCallable createBackupCallable( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3721,8 +3724,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -3732,14 +3735,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3753,7 +3756,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3763,7 +3767,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -3801,9 +3805,10 @@ public static class ListMetadataImportsPage ListMetadataImportsPage> { private ListMetadataImportsPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { super(context, response); } @@ -3813,15 +3818,17 @@ private static ListMetadataImportsPage createEmptyPage() { @Override protected ListMetadataImportsPage createPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { return new ListMetadataImportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3837,7 +3844,7 @@ public static class ListMetadataImportsFixedSizeCollection ListMetadataImportsFixedSizeCollection> { private ListMetadataImportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3847,7 +3854,7 @@ private static ListMetadataImportsFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataImportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataImportsFixedSizeCollection(pages, collectionSize); } } @@ -3878,8 +3885,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3889,14 +3896,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3910,7 +3917,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3920,7 +3928,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3954,8 +3962,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3965,14 +3973,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3986,7 +3994,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3996,7 +4005,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationClient.java index 04260f141de8..275c6c9b1347 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationClient.java @@ -48,6 +48,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. /** @@ -326,7 +327,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataprocMetastoreFederationClient implements BackgroundResource { - private final DataprocMetastoreFederationSettings settings; + private final @Nullable DataprocMetastoreFederationSettings settings; private final DataprocMetastoreFederationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -377,7 +378,7 @@ protected DataprocMetastoreFederationClient(DataprocMetastoreFederationStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreFederationSettings getSettings() { + public final @Nullable DataprocMetastoreFederationSettings getSettings() { return settings; } @@ -428,7 +429,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * list, in the following form: `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFederationsPagedResponse listFederations(LocationName parent) { + public final ListFederationsPagedResponse listFederations(@Nullable LocationName parent) { ListFederationsRequest request = ListFederationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -606,7 +607,7 @@ public final ListFederationsPagedResponse listFederations(ListFederationsRequest *

`projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Federation getFederation(FederationName name) { + public final Federation getFederation(@Nullable FederationName name) { GetFederationRequest request = GetFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFederation(request); @@ -736,7 +737,7 @@ public final UnaryCallable getFederationCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFederationAsync( - LocationName parent, Federation federation, String federationId) { + @Nullable LocationName parent, Federation federation, String federationId) { CreateFederationRequest request = CreateFederationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1052,7 +1053,7 @@ public final UnaryCallable updateFederationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFederationAsync( - FederationName name) { + @Nullable FederationName name) { DeleteFederationRequest request = DeleteFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFederationAsync(request); @@ -1607,8 +1608,8 @@ public static class ListFederationsPage ListFederationsRequest, ListFederationsResponse, Federation, ListFederationsPage> { private ListFederationsPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { super(context, response); } @@ -1618,14 +1619,14 @@ private static ListFederationsPage createEmptyPage() { @Override protected ListFederationsPage createPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { return new ListFederationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1640,7 +1641,7 @@ public static class ListFederationsFixedSizeCollection ListFederationsFixedSizeCollection> { private ListFederationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1650,7 +1651,7 @@ private static ListFederationsFixedSizeCollection createEmptyCollection() { @Override protected ListFederationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFederationsFixedSizeCollection(pages, collectionSize); } } @@ -1684,8 +1685,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1695,14 +1696,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1716,7 +1717,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1726,7 +1728,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationSettings.java index 36c288ecfae6..2b4d029ab180 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreFederationSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,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); } @@ -285,7 +286,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreFederationStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java index 0b96797dbe1e..5144402f3c35 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/DataprocMetastoreSettings.java @@ -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. /** @@ -397,7 +398,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); } @@ -417,7 +418,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStub.java index c98d1ea7dcfd..0c209475b5cf 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreFederationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java index 3e398ec9e168..f2b38d721f51 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreFederationStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFederationsSettings = PagedCallSettings.newBuilder(LIST_FEDERATIONS_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStub.java index 0647995209ba..f653655e92c6 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -83,11 +84,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java index 0c09d698a747..6ae455a8a2ef 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/DataprocMetastoreStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -776,7 +777,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); } @@ -963,7 +964,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java index 4bfa04db461d..2ca7d1df6d60 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreClient.java @@ -48,6 +48,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. /** @@ -581,7 +582,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataprocMetastoreClient implements BackgroundResource { - private final DataprocMetastoreSettings settings; + private final @Nullable DataprocMetastoreSettings settings; private final DataprocMetastoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -629,7 +630,7 @@ protected DataprocMetastoreClient(DataprocMetastoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreSettings getSettings() { + public final @Nullable DataprocMetastoreSettings getSettings() { return settings; } @@ -679,7 +680,7 @@ public final OperationsClient getHttpJsonOperationsClient() { *

`projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(LocationName parent) { + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,7 @@ public final UnaryCallable listServic *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -972,7 +973,7 @@ public final UnaryCallable getServiceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - LocationName parent, Service service, String serviceId) { + @Nullable LocationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1271,7 +1272,8 @@ public final UnaryCallable updateServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync( + @Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -1420,7 +1422,7 @@ public final UnaryCallable deleteServiceCallabl *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetadataImportsPagedResponse listMetadataImports(ServiceName parent) { + public final ListMetadataImportsPagedResponse listMetadataImports(@Nullable ServiceName parent) { ListMetadataImportsRequest request = ListMetadataImportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1597,7 +1599,7 @@ public final ListMetadataImportsPagedResponse listMetadataImports( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetadataImport getMetadataImport(MetadataImportName name) { + public final MetadataImport getMetadataImport(@Nullable MetadataImportName name) { GetMetadataImportRequest request = GetMetadataImportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1731,7 +1733,7 @@ public final UnaryCallable getMetadata * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMetadataImportAsync( - ServiceName parent, MetadataImport metadataImport, String metadataImportId) { + @Nullable ServiceName parent, MetadataImport metadataImport, String metadataImportId) { CreateMetadataImportRequest request = CreateMetadataImportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2136,7 +2138,7 @@ public final UnaryCallable exportMetadataCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, BackupName backup) { + @Nullable ServiceName service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2173,7 +2175,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - ServiceName service, String backup) { + @Nullable ServiceName service, String backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service == null ? null : service.toString()) @@ -2210,7 +2212,7 @@ public final OperationFuture restoreServiceAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreServiceAsync( - String service, BackupName backup) { + String service, @Nullable BackupName backup) { RestoreServiceRequest request = RestoreServiceRequest.newBuilder() .setService(service) @@ -2373,7 +2375,7 @@ public final UnaryCallable restoreServiceCalla *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(ServiceName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable ServiceName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2543,7 +2545,7 @@ public final UnaryCallable listBackupsC *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2664,7 +2666,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - ServiceName parent, Backup backup, String backupId) { + @Nullable ServiceName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2834,7 +2836,8 @@ public final UnaryCallable createBackupCallable( *

`projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3721,8 +3724,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -3732,14 +3735,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3753,7 +3756,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3763,7 +3767,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -3801,9 +3805,10 @@ public static class ListMetadataImportsPage ListMetadataImportsPage> { private ListMetadataImportsPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { super(context, response); } @@ -3813,15 +3818,17 @@ private static ListMetadataImportsPage createEmptyPage() { @Override protected ListMetadataImportsPage createPage( - PageContext + @Nullable + PageContext context, - ListMetadataImportsResponse response) { + @Nullable ListMetadataImportsResponse response) { return new ListMetadataImportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3837,7 +3844,7 @@ public static class ListMetadataImportsFixedSizeCollection ListMetadataImportsFixedSizeCollection> { private ListMetadataImportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3847,7 +3854,7 @@ private static ListMetadataImportsFixedSizeCollection createEmptyCollection() { @Override protected ListMetadataImportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetadataImportsFixedSizeCollection(pages, collectionSize); } } @@ -3878,8 +3885,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3889,14 +3896,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3910,7 +3917,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3920,7 +3928,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3954,8 +3962,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3965,14 +3973,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3986,7 +3994,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3996,7 +4005,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationClient.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationClient.java index 4899a7744ee0..b3ead9f17469 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationClient.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationClient.java @@ -48,6 +48,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. /** @@ -326,7 +327,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataprocMetastoreFederationClient implements BackgroundResource { - private final DataprocMetastoreFederationSettings settings; + private final @Nullable DataprocMetastoreFederationSettings settings; private final DataprocMetastoreFederationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -377,7 +378,7 @@ protected DataprocMetastoreFederationClient(DataprocMetastoreFederationStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataprocMetastoreFederationSettings getSettings() { + public final @Nullable DataprocMetastoreFederationSettings getSettings() { return settings; } @@ -428,7 +429,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * list, in the following form: `projects/{project_number}/locations/{location_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFederationsPagedResponse listFederations(LocationName parent) { + public final ListFederationsPagedResponse listFederations(@Nullable LocationName parent) { ListFederationsRequest request = ListFederationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -606,7 +607,7 @@ public final ListFederationsPagedResponse listFederations(ListFederationsRequest *

`projects/{project_number}/locations/{location_id}/federations/{federation_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Federation getFederation(FederationName name) { + public final Federation getFederation(@Nullable FederationName name) { GetFederationRequest request = GetFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFederation(request); @@ -736,7 +737,7 @@ public final UnaryCallable getFederationCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFederationAsync( - LocationName parent, Federation federation, String federationId) { + @Nullable LocationName parent, Federation federation, String federationId) { CreateFederationRequest request = CreateFederationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1052,7 +1053,7 @@ public final UnaryCallable updateFederationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFederationAsync( - FederationName name) { + @Nullable FederationName name) { DeleteFederationRequest request = DeleteFederationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFederationAsync(request); @@ -1607,8 +1608,8 @@ public static class ListFederationsPage ListFederationsRequest, ListFederationsResponse, Federation, ListFederationsPage> { private ListFederationsPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { super(context, response); } @@ -1618,14 +1619,14 @@ private static ListFederationsPage createEmptyPage() { @Override protected ListFederationsPage createPage( - PageContext context, - ListFederationsResponse response) { + @Nullable PageContext context, + @Nullable ListFederationsResponse response) { return new ListFederationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1640,7 +1641,7 @@ public static class ListFederationsFixedSizeCollection ListFederationsFixedSizeCollection> { private ListFederationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1650,7 +1651,7 @@ private static ListFederationsFixedSizeCollection createEmptyCollection() { @Override protected ListFederationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFederationsFixedSizeCollection(pages, collectionSize); } } @@ -1684,8 +1685,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1695,14 +1696,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1716,7 +1717,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1726,7 +1728,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationSettings.java index 2e8b2b0e1587..716fe8291b2f 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreFederationSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,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); } @@ -285,7 +286,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreFederationStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java index c8e511236f7d..1d61efe51f17 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/DataprocMetastoreSettings.java @@ -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. /** @@ -397,7 +398,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); } @@ -417,7 +418,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataprocMetastoreStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStub.java index d0e7b4e77dae..8716df39287d 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreFederationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java index 54f705cad7df..460cf4e884ab 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreFederationStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFederationsSettings = PagedCallSettings.newBuilder(LIST_FEDERATIONS_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStub.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStub.java index ab56e22e12b9..c285aec2f1cc 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStub.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -83,11 +84,12 @@ @Generated("by gapic-generator-java") public abstract class DataprocMetastoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java index 7728a26a74d2..53db933667cc 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/DataprocMetastoreStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -776,7 +777,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); } @@ -963,7 +964,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/BackupName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/BackupName.java index d04a753ce75a..c1fd88f99859 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/BackupName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String service, Str .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/FederationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/FederationName.java index b7a11fc0568b..627626da6e3c 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/FederationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/FederationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String federation) .toString(); } - public static FederationName parse(String formattedString) { + public static @Nullable FederationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FederationName> values) { List list = new ArrayList<>(values.size()); for (FederationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/LocationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/LocationName.java index 25931bafbc95..726fd0b37200 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/LocationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/MetadataImportName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/MetadataImportName.java index dedc55060684..196d9ce2aa58 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/MetadataImportName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/MetadataImportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MetadataImportName parse(String formattedString) { + public static @Nullable MetadataImportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataImportName> values) { List list = new ArrayList<>(values.size()); for (MetadataImportName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/ServiceName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/ServiceName.java index b23cd6ac7e20..48046a07f657 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/ServiceName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/src/main/java/com/google/cloud/metastore/v1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String service) { .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/BackupName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/BackupName.java index a7931c08a2f4..689e32d20cf0 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/BackupName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String service, Str .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/FederationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/FederationName.java index a27db7d68563..f4bc1a879ac5 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/FederationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/FederationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String federation) .toString(); } - public static FederationName parse(String formattedString) { + public static @Nullable FederationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FederationName> values) { List list = new ArrayList<>(values.size()); for (FederationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/LocationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/LocationName.java index fddcbb866407..4726b46547da 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/LocationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/MetadataImportName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/MetadataImportName.java index 32971cab9938..a544a943515f 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/MetadataImportName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/MetadataImportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MetadataImportName parse(String formattedString) { + public static @Nullable MetadataImportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataImportName> values) { List list = new ArrayList<>(values.size()); for (MetadataImportName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/ServiceName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/ServiceName.java index 2bb1b1df6acb..1aea71214173 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/ServiceName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/src/main/java/com/google/cloud/metastore/v1alpha/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String service) { .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/BackupName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/BackupName.java index e12b847a2bcd..42becd2b0854 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/BackupName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String service, Str .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/FederationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/FederationName.java index 4d0cafac3e1a..3f10b8d66b60 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/FederationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/FederationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String federation) .toString(); } - public static FederationName parse(String formattedString) { + public static @Nullable FederationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FederationName> values) { List list = new ArrayList<>(values.size()); for (FederationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/LocationName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/LocationName.java index a9958a685ea1..9d12accb1a58 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/LocationName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/MetadataImportName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/MetadataImportName.java index accb9ebcc897..b4d5c5cef700 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/MetadataImportName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/MetadataImportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MetadataImportName parse(String formattedString) { + public static @Nullable MetadataImportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetadataImportName> values) { List list = new ArrayList<>(values.size()); for (MetadataImportName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/ServiceName.java b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/ServiceName.java index cfbef71856e6..3e8e718f32af 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/ServiceName.java +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/src/main/java/com/google/cloud/metastore/v1beta/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String service) { .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 67dc285ba38c..fb75fbdc4fc3 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -38,6 +38,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. /** @@ -275,7 +276,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutoscalingPolicyServiceClient implements BackgroundResource { - private final AutoscalingPolicyServiceSettings settings; + private final @Nullable AutoscalingPolicyServiceSettings settings; private final AutoscalingPolicyServiceStub stub; /** Constructs an instance of AutoscalingPolicyServiceClient with default settings. */ @@ -317,7 +318,7 @@ protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub) { this.stub = stub; } - public final AutoscalingPolicyServiceSettings getSettings() { + public final @Nullable AutoscalingPolicyServiceSettings getSettings() { return settings; } @@ -361,7 +362,7 @@ public AutoscalingPolicyServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - LocationName parent, AutoscalingPolicy policy) { + @Nullable LocationName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -406,7 +407,7 @@ public final AutoscalingPolicy createAutoscalingPolicy( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - RegionName parent, AutoscalingPolicy policy) { + @Nullable RegionName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -646,7 +647,7 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) { + public final AutoscalingPolicy getAutoscalingPolicy(@Nullable AutoscalingPolicyName name) { GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -797,7 +798,8 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( + @Nullable LocationName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -840,7 +842,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( + @Nullable RegionName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1036,7 +1039,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { + public final void deleteAutoscalingPolicy(@Nullable AutoscalingPolicyName name) { DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1437,10 +1440,11 @@ public static class ListAutoscalingPoliciesPage ListAutoscalingPoliciesPage> { private ListAutoscalingPoliciesPage( - PageContext< + @Nullable + PageContext< ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> context, - ListAutoscalingPoliciesResponse response) { + @Nullable ListAutoscalingPoliciesResponse response) { super(context, response); } @@ -1450,16 +1454,18 @@ private static ListAutoscalingPoliciesPage createEmptyPage() { @Override protected ListAutoscalingPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> context, - ListAutoscalingPoliciesResponse response) { + @Nullable ListAutoscalingPoliciesResponse response) { return new ListAutoscalingPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> context, ApiFuture futureResponse) { @@ -1476,7 +1482,7 @@ public static class ListAutoscalingPoliciesFixedSizeCollection ListAutoscalingPoliciesFixedSizeCollection> { private ListAutoscalingPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1492,7 @@ private static ListAutoscalingPoliciesFixedSizeCollection createEmptyCollection( @Override protected ListAutoscalingPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutoscalingPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index 6e4eaaa09765..3c62d209bcac 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,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); } @@ -229,7 +230,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java index 33e04eb35835..237d1f732322 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java @@ -43,6 +43,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. /** @@ -257,7 +258,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BatchControllerClient implements BackgroundResource { - private final BatchControllerSettings settings; + private final @Nullable BatchControllerSettings settings; private final BatchControllerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -305,7 +306,7 @@ protected BatchControllerClient(BatchControllerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BatchControllerSettings getSettings() { + public final @Nullable BatchControllerSettings getSettings() { return settings; } @@ -358,7 +359,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBatchAsync( - LocationName parent, Batch batch, String batchId) { + @Nullable LocationName parent, Batch batch, String batchId) { CreateBatchRequest request = CreateBatchRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -522,7 +523,7 @@ public final UnaryCallable createBatchCallable() * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Batch getBatch(BatchName name) { + public final Batch getBatch(@Nullable BatchName name) { GetBatchRequest request = GetBatchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBatch(request); @@ -633,7 +634,7 @@ public final UnaryCallable getBatchCallable() { * @param parent Required. The parent, which owns this collection of batches. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBatchesPagedResponse listBatches(LocationName parent) { + public final ListBatchesPagedResponse listBatches(@Nullable LocationName parent) { ListBatchesRequest request = ListBatchesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -802,7 +803,7 @@ public final UnaryCallable listBatchesC * "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBatch(BatchName name) { + public final void deleteBatch(@Nullable BatchName name) { DeleteBatchRequest request = DeleteBatchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBatch(request); @@ -1161,8 +1162,8 @@ public static class ListBatchesPage extends AbstractPage { private ListBatchesPage( - PageContext context, - ListBatchesResponse response) { + @Nullable PageContext context, + @Nullable ListBatchesResponse response) { super(context, response); } @@ -1172,14 +1173,14 @@ private static ListBatchesPage createEmptyPage() { @Override protected ListBatchesPage createPage( - PageContext context, - ListBatchesResponse response) { + @Nullable PageContext context, + @Nullable ListBatchesResponse response) { return new ListBatchesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1193,7 +1194,8 @@ public static class ListBatchesFixedSizeCollection ListBatchesPage, ListBatchesFixedSizeCollection> { - private ListBatchesFixedSizeCollection(List pages, int collectionSize) { + private ListBatchesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1203,7 +1205,7 @@ private static ListBatchesFixedSizeCollection createEmptyCollection() { @Override protected ListBatchesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBatchesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java index 4d4470d510c4..e8788a1a4acb 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -223,7 +224,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BatchControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index abf7ad3398c4..b71a72293e47 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -44,6 +44,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. /** @@ -327,7 +328,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ClusterControllerClient implements BackgroundResource { - private final ClusterControllerSettings settings; + private final @Nullable ClusterControllerSettings settings; private final ClusterControllerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -375,7 +376,7 @@ protected ClusterControllerClient(ClusterControllerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ClusterControllerSettings getSettings() { + public final @Nullable ClusterControllerSettings getSettings() { return settings; } @@ -1788,8 +1789,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -1799,14 +1800,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1820,7 +1821,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1830,7 +1832,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index 274b89e0c9a2..e287850f52a6 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -274,7 +275,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); } @@ -294,7 +295,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ClusterControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 5483bdd7fd36..e53335bf2067 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -43,6 +43,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. /** @@ -302,7 +303,7 @@ @NullMarked @Generated("by gapic-generator-java") public class JobControllerClient implements BackgroundResource { - private final JobControllerSettings settings; + private final @Nullable JobControllerSettings settings; private final JobControllerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -350,7 +351,7 @@ protected JobControllerClient(JobControllerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final JobControllerSettings getSettings() { + public final @Nullable JobControllerSettings getSettings() { return settings; } @@ -1401,7 +1402,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1411,13 +1413,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1427,7 +1430,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1437,7 +1440,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index e1d6d39331eb..eb20236f0eb4 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java index b9e568cb8fa6..c7bbbee7292f 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerClient.java @@ -34,6 +34,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. /** @@ -229,7 +230,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NodeGroupControllerClient implements BackgroundResource { - private final NodeGroupControllerSettings settings; + private final @Nullable NodeGroupControllerSettings settings; private final NodeGroupControllerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -277,7 +278,7 @@ protected NodeGroupControllerClient(NodeGroupControllerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final NodeGroupControllerSettings getSettings() { + public final @Nullable NodeGroupControllerSettings getSettings() { return settings; } @@ -335,7 +336,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNodeGroupAsync( - ClusterRegionName parent, NodeGroup nodeGroup, String nodeGroupId) { + @Nullable ClusterRegionName parent, NodeGroup nodeGroup, String nodeGroupId) { CreateNodeGroupRequest request = CreateNodeGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -646,7 +647,7 @@ public final UnaryCallable resizeNodeGroupCal * `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NodeGroup getNodeGroup(NodeGroupName name) { + public final NodeGroup getNodeGroup(@Nullable NodeGroupName name) { GetNodeGroupRequest request = GetNodeGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNodeGroup(request); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java index 77b7168e3e47..1b1b8c39ed01 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/NodeGroupControllerSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -240,7 +241,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NodeGroupControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerClient.java index daee6c535915..2c9d2af64466 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerClient.java @@ -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. /** @@ -277,7 +278,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionControllerClient implements BackgroundResource { - private final SessionControllerSettings settings; + private final @Nullable SessionControllerSettings settings; private final SessionControllerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -325,7 +326,7 @@ protected SessionControllerClient(SessionControllerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SessionControllerSettings getSettings() { + public final @Nullable SessionControllerSettings getSettings() { return settings; } @@ -379,7 +380,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSessionAsync( - LocationName parent, Session session, String sessionId) { + @Nullable LocationName parent, Session session, String sessionId) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -544,7 +545,7 @@ public final UnaryCallable createSessionCallabl * @param name Required. The name of the session to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -654,7 +655,7 @@ public final UnaryCallable getSessionCallable() { * @param parent Required. The parent, which owns this collection of sessions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(LocationName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable LocationName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final UnaryCallable listSessio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture terminateSessionAsync( - SessionName name) { + @Nullable SessionName name) { TerminateSessionRequest request = TerminateSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return terminateSessionAsync(request); @@ -964,7 +965,7 @@ public final UnaryCallable terminateSessionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSessionAsync( - SessionName name) { + @Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSessionAsync(request); @@ -1356,8 +1357,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1367,14 +1368,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1388,7 +1389,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1398,7 +1400,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerSettings.java index cbe5733c21a7..f827f64f1c7d 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionControllerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerClient.java index 42bcb2e4cb69..7ccd5275461a 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerClient.java @@ -38,6 +38,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. /** @@ -272,7 +273,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionTemplateControllerClient implements BackgroundResource { - private final SessionTemplateControllerSettings settings; + private final @Nullable SessionTemplateControllerSettings settings; private final SessionTemplateControllerStub stub; /** Constructs an instance of SessionTemplateControllerClient with default settings. */ @@ -314,7 +315,7 @@ protected SessionTemplateControllerClient(SessionTemplateControllerStub stub) { this.stub = stub; } - public final SessionTemplateControllerSettings getSettings() { + public final @Nullable SessionTemplateControllerSettings getSettings() { return settings; } @@ -348,7 +349,7 @@ public SessionTemplateControllerStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SessionTemplate createSessionTemplate( - LocationName parent, SessionTemplate sessionTemplate) { + @Nullable LocationName parent, SessionTemplate sessionTemplate) { CreateSessionTemplateRequest request = CreateSessionTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -563,7 +564,7 @@ public final SessionTemplate updateSessionTemplate(UpdateSessionTemplateRequest * @param name Required. The name of the session template to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SessionTemplate getSessionTemplate(SessionTemplateName name) { + public final SessionTemplate getSessionTemplate(@Nullable SessionTemplateName name) { GetSessionTemplateRequest request = GetSessionTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -683,7 +684,8 @@ public final SessionTemplate getSessionTemplate(GetSessionTemplateRequest reques * @param parent Required. The parent that owns this collection of session templates. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionTemplatesPagedResponse listSessionTemplates(LocationName parent) { + public final ListSessionTemplatesPagedResponse listSessionTemplates( + @Nullable LocationName parent) { ListSessionTemplatesRequest request = ListSessionTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -857,7 +859,7 @@ public final ListSessionTemplatesPagedResponse listSessionTemplates( * @param name Required. The name of the session template resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSessionTemplate(SessionTemplateName name) { + public final void deleteSessionTemplate(@Nullable SessionTemplateName name) { DeleteSessionTemplateRequest request = DeleteSessionTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1232,9 +1234,10 @@ public static class ListSessionTemplatesPage ListSessionTemplatesPage> { private ListSessionTemplatesPage( - PageContext + @Nullable + PageContext context, - ListSessionTemplatesResponse response) { + @Nullable ListSessionTemplatesResponse response) { super(context, response); } @@ -1244,15 +1247,17 @@ private static ListSessionTemplatesPage createEmptyPage() { @Override protected ListSessionTemplatesPage createPage( - PageContext + @Nullable + PageContext context, - ListSessionTemplatesResponse response) { + @Nullable ListSessionTemplatesResponse response) { return new ListSessionTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1268,7 +1273,7 @@ public static class ListSessionTemplatesFixedSizeCollection ListSessionTemplatesFixedSizeCollection> { private ListSessionTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1278,7 +1283,7 @@ private static ListSessionTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListSessionTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionTemplatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerSettings.java index 1657e05f3956..42381ad300ac 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateControllerSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -206,7 +207,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionTemplateControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 2305fd89e578..910a9419b569 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -44,6 +44,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. /** @@ -333,7 +334,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WorkflowTemplateServiceClient implements BackgroundResource { - private final WorkflowTemplateServiceSettings settings; + private final @Nullable WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -382,7 +383,7 @@ protected WorkflowTemplateServiceClient(WorkflowTemplateServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkflowTemplateServiceSettings getSettings() { + public final @Nullable WorkflowTemplateServiceSettings getSettings() { return settings; } @@ -443,7 +444,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowTemplate createWorkflowTemplate( - LocationName parent, WorkflowTemplate template) { + @Nullable LocationName parent, WorkflowTemplate template) { CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -488,7 +489,7 @@ public final WorkflowTemplate createWorkflowTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WorkflowTemplate createWorkflowTemplate( - RegionName parent, WorkflowTemplate template) { + @Nullable RegionName parent, WorkflowTemplate template) { CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -637,7 +638,7 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { + public final WorkflowTemplate getWorkflowTemplate(@Nullable WorkflowTemplateName name) { GetWorkflowTemplateRequest request = GetWorkflowTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -814,7 +815,7 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name) { + @Nullable WorkflowTemplateName name) { InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -938,7 +939,7 @@ public final OperationFuture instantiateWorkflowTemplat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name, Map parameters) { + @Nullable WorkflowTemplateName name, Map parameters) { InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1227,7 +1228,7 @@ public final OperationFuture instantiateWorkflowTemplat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateInlineWorkflowTemplateAsync( - LocationName parent, WorkflowTemplate template) { + @Nullable LocationName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1292,7 +1293,7 @@ public final OperationFuture instantiateInlineWorkflowT * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateInlineWorkflowTemplateAsync( - RegionName parent, WorkflowTemplate template) { + @Nullable RegionName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1655,7 +1656,8 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( + @Nullable LocationName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1698,7 +1700,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( + @Nullable RegionName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1893,7 +1896,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWorkflowTemplate(WorkflowTemplateName name) { + public final void deleteWorkflowTemplate(@Nullable WorkflowTemplateName name) { DeleteWorkflowTemplateRequest request = DeleteWorkflowTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2292,9 +2295,11 @@ public static class ListWorkflowTemplatesPage ListWorkflowTemplatesPage> { private ListWorkflowTemplatesPage( - PageContext + @Nullable + PageContext< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> context, - ListWorkflowTemplatesResponse response) { + @Nullable ListWorkflowTemplatesResponse response) { super(context, response); } @@ -2304,15 +2309,19 @@ private static ListWorkflowTemplatesPage createEmptyPage() { @Override protected ListWorkflowTemplatesPage createPage( - PageContext + @Nullable + PageContext< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> context, - ListWorkflowTemplatesResponse response) { + @Nullable ListWorkflowTemplatesResponse response) { return new ListWorkflowTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2328,7 +2337,7 @@ public static class ListWorkflowTemplatesFixedSizeCollection ListWorkflowTemplatesFixedSizeCollection> { private ListWorkflowTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2338,7 +2347,7 @@ private static ListWorkflowTemplatesFixedSizeCollection createEmptyCollection() @Override protected ListWorkflowTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowTemplatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 66db3e94dad7..d20e63332cb1 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,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); } @@ -283,7 +284,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkflowTemplateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index bf670e1322e9..c73feb2bc980 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -364,7 +365,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); } @@ -466,7 +467,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java index bb912733216c..6ceff66c79ad 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class BatchControllerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java index fa17d9d300b5..824a8be305d3 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -366,7 +367,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); } @@ -436,7 +437,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java index b5e89583c59f..e81b5c53cd8f 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class ClusterControllerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index c9479feb72a6..15fb2d5844bd 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -435,7 +436,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); } @@ -567,7 +568,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java index a814e38d1660..b9c17635ddb7 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class JobControllerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 20bc592e5c6f..9fe2640273b1 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -381,7 +382,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); } @@ -491,7 +492,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); submitJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java index 0ec44e6d94e7..249f85fedac0 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class NodeGroupControllerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java index 598bb06db019..260741426e80 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/NodeGroupControllerStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -300,7 +301,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); } @@ -374,7 +375,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStub.java index dd1005bcc07c..ede8e9d293d5 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SessionControllerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java index 92b9ec9295ef..cd8d86631714 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionControllerStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -390,7 +391,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); } @@ -472,7 +473,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java index 8cede6c63d88..c2ec34492743 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/SessionTemplateControllerStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -359,7 +360,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); } @@ -435,7 +436,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java index e6c7aabe540e..fcf1c4f90b4d 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class WorkflowTemplateServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index cb70e78c11cc..e181aa521505 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,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); } @@ -549,7 +550,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java index be71a4460594..5558e88f2067 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatProjectRegionAutoscalingPolicyName( .toString(); } - public static AutoscalingPolicyName parse(String formattedString) { + public static @Nullable AutoscalingPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -183,7 +184,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutoscalingPolicyName> values) { List list = new ArrayList<>(values.size()); for (AutoscalingPolicyName value : values) { if (value == null) { @@ -235,7 +236,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java index 619a704e6df1..4e6bd4eb48f7 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String batch) { .toString(); } - public static BatchName parse(String formattedString) { + public static @Nullable BatchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BatchName> values) { List list = new ArrayList<>(values.size()); for (BatchName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java index fb45003af943..682ee69fd2ae 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterRegionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String region, String cluster) { .toString(); } - public static ClusterRegionName parse(String formattedString) { + public static @Nullable ClusterRegionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterRegionName> values) { List list = new ArrayList<>(values.size()); for (ClusterRegionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java index 55275ec9cfb7..0fd97e043e41 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java index e5e40581065a..1c1b3475375b 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String region, String cluster, Strin .toString(); } - public static NodeGroupName parse(String formattedString) { + public static @Nullable NodeGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeGroupName> values) { List list = new ArrayList<>(values.size()); for (NodeGroupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java index ee0f6356d041..0ecb479a98ba 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String region) { return newBuilder().setProject(project).setRegion(region).build().toString(); } - public static RegionName parse(String formattedString) { + public static @Nullable RegionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegionName> values) { List list = new ArrayList<>(values.size()); for (RegionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionName.java index 132e342e3dc5..b8f8cea5a758 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String session) { .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateName.java index 9a13ec5eafa1..4050135e1bf2 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SessionTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String template) { .toString(); } - public static SessionTemplateName parse(String formattedString) { + public static @Nullable SessionTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionTemplateName> values) { List list = new ArrayList<>(values.size()); for (SessionTemplateName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java index b625aa943766..a69467a0ff1e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatProjectLocationWorkflowTemplateName( .toString(); } - public static WorkflowTemplateName parse(String formattedString) { + public static @Nullable WorkflowTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowTemplateName> values) { List list = new ArrayList<>(values.size()); for (WorkflowTemplateName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java index b9f8d94b8ce8..40f34951515c 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminClient.java @@ -52,6 +52,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. /** @@ -281,7 +282,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DatastoreAdminClient implements BackgroundResource { - private final DatastoreAdminSettings settings; + private final @Nullable DatastoreAdminSettings settings; private final DatastoreAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -329,7 +330,7 @@ protected DatastoreAdminClient(DatastoreAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DatastoreAdminSettings getSettings() { + public final @Nullable DatastoreAdminSettings getSettings() { return settings; } @@ -1137,8 +1138,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -1148,14 +1149,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1169,7 +1170,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1179,7 +1181,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java index 869f13b566aa..670c5bc02b6f 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java @@ -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. /** @@ -243,7 +244,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); } @@ -263,7 +264,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatastoreAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java index 1e7714dd69f1..8fe24b85c8f0 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class DatastoreAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java index fa33298d1c4e..a4abbc364b39 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -383,7 +384,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); } @@ -486,7 +487,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreClient.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreClient.java index 3c690d931087..7563c6ea8874 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreClient.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreClient.java @@ -45,6 +45,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. /** @@ -275,7 +276,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DatastoreClient implements BackgroundResource { - private final DatastoreSettings settings; + private final @Nullable DatastoreSettings settings; private final DatastoreStub stub; /** Constructs an instance of DatastoreClient with default settings. */ @@ -313,7 +314,7 @@ protected DatastoreClient(DatastoreStub stub) { this.stub = stub; } - public final DatastoreSettings getSettings() { + public final @Nullable DatastoreSettings getSettings() { return settings; } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreSettings.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreSettings.java index 5d8f4304eb6d..637bb53fc867 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreSettings.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/DatastoreSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatastoreStubSettings.newBuilder(clientContext)); } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/DatastoreStubSettings.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/DatastoreStubSettings.java index e8ee6dfd6bff..7c5923d25ca4 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/DatastoreStubSettings.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/DatastoreStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -272,7 +273,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); } @@ -365,7 +366,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); lookupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index 8ddd4fe065d5..e3470370e0bd 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -43,6 +43,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. /** @@ -654,7 +655,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DatastreamClient implements BackgroundResource { - private final DatastreamSettings settings; + private final @Nullable DatastreamSettings settings; private final DatastreamStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -700,7 +701,7 @@ protected DatastreamClient(DatastreamStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DatastreamSettings getSettings() { + public final @Nullable DatastreamSettings getSettings() { return settings; } @@ -749,7 +750,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent that owns the collection of connection profiles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionProfilesPagedResponse listConnectionProfiles(LocationName parent) { + public final ListConnectionProfilesPagedResponse listConnectionProfiles( + @Nullable LocationName parent) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -922,7 +924,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( * @param name Required. The name of the connection profile resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) { + public final ConnectionProfile getConnectionProfile(@Nullable ConnectionProfileName name) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1048,7 +1050,9 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionProfileAsync( - LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) { + @Nullable LocationName parent, + ConnectionProfile connectionProfile, + String connectionProfileId) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1360,7 +1364,7 @@ public final OperationFuture updateConnect * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectionProfileAsync( - ConnectionProfileName name) { + @Nullable ConnectionProfileName name) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1578,7 +1582,7 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( * @param parent Required. The parent that owns the collection of streams. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStreamsPagedResponse listStreams(LocationName parent) { + public final ListStreamsPagedResponse listStreams(@Nullable LocationName parent) { ListStreamsRequest request = ListStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1743,7 +1747,7 @@ public final UnaryCallable listStreamsC * @param name Required. The name of the stream resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Stream getStream(StreamName name) { + public final Stream getStream(@Nullable StreamName name) { GetStreamRequest request = GetStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStream(request); @@ -1856,7 +1860,7 @@ public final UnaryCallable getStreamCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStreamAsync( - LocationName parent, Stream stream, String streamId) { + @Nullable LocationName parent, Stream stream, String streamId) { CreateStreamRequest request = CreateStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2153,7 +2157,8 @@ public final UnaryCallable updateStreamCallable( * @param name Required. The name of the stream resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteStreamAsync(StreamName name) { + public final OperationFuture deleteStreamAsync( + @Nullable StreamName name) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteStreamAsync(request); @@ -2385,7 +2390,7 @@ public final UnaryCallable runStreamCallable() { * @param name Required. The name of the stream object resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StreamObject getStreamObject(StreamObjectName name) { + public final StreamObject getStreamObject(@Nullable StreamObjectName name) { GetStreamObjectRequest request = GetStreamObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStreamObject(request); @@ -2557,7 +2562,7 @@ public final UnaryCallable lookupStream * @param parent Required. The parent stream that owns the collection of objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStreamObjectsPagedResponse listStreamObjects(StreamName parent) { + public final ListStreamObjectsPagedResponse listStreamObjects(@Nullable StreamName parent) { ListStreamObjectsRequest request = ListStreamObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2721,7 +2726,7 @@ public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsR * @param object Required. The name of the stream object resource to start a backfill job for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StartBackfillJobResponse startBackfillJob(StreamObjectName object) { + public final StartBackfillJobResponse startBackfillJob(@Nullable StreamObjectName object) { StartBackfillJobRequest request = StartBackfillJobRequest.newBuilder() .setObject(object == null ? null : object.toString()) @@ -2838,7 +2843,7 @@ public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest r * @param object Required. The name of the stream object resource to stop the backfill job for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StopBackfillJobResponse stopBackfillJob(StreamObjectName object) { + public final StopBackfillJobResponse stopBackfillJob(@Nullable StreamObjectName object) { StopBackfillJobRequest request = StopBackfillJobRequest.newBuilder() .setObject(object == null ? null : object.toString()) @@ -2956,7 +2961,7 @@ public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest requ * returned. Must be in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { + public final FetchStaticIpsPagedResponse fetchStaticIps(@Nullable LocationName name) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return fetchStaticIps(request); @@ -3123,7 +3128,9 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPrivateConnectionAsync( - LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + @Nullable LocationName parent, + PrivateConnection privateConnection, + String privateConnectionId) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3297,7 +3304,7 @@ public final OperationFuture createPrivate * @param name Required. The name of the private connectivity configuration to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + public final PrivateConnection getPrivateConnection(@Nullable PrivateConnectionName name) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3419,7 +3426,8 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * configurations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + @Nullable LocationName parent) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3594,7 +3602,7 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrivateConnectionAsync( - PrivateConnectionName name) { + @Nullable PrivateConnectionName name) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3757,7 +3765,7 @@ public final OperationFuture deletePrivateConnectionAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRouteAsync( - PrivateConnectionName parent, Route route, String routeId) { + @Nullable PrivateConnectionName parent, Route route, String routeId) { CreateRouteRequest request = CreateRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3929,7 +3937,7 @@ public final UnaryCallable createRouteCallable() * @param name Required. The name of the Route resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Route getRoute(RouteName name) { + public final Route getRoute(@Nullable RouteName name) { GetRouteRequest request = GetRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRoute(request); @@ -4046,7 +4054,7 @@ public final UnaryCallable getRouteCallable() { * @param parent Required. The parent that owns the collection of Routess. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) { + public final ListRoutesPagedResponse listRoutes(@Nullable PrivateConnectionName parent) { ListRoutesRequest request = ListRoutesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRoutes(request); @@ -4219,7 +4227,8 @@ public final UnaryCallable listRoutesCall * @param name Required. The name of the Route resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRouteAsync(RouteName name) { + public final OperationFuture deleteRouteAsync( + @Nullable RouteName name) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRouteAsync(request); @@ -4565,10 +4574,11 @@ public static class ListConnectionProfilesPage ListConnectionProfilesPage> { private ListConnectionProfilesPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { super(context, response); } @@ -4578,16 +4588,18 @@ private static ListConnectionProfilesPage createEmptyPage() { @Override protected ListConnectionProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { return new ListConnectionProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, ApiFuture futureResponse) { @@ -4604,7 +4616,7 @@ public static class ListConnectionProfilesFixedSizeCollection ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4614,7 +4626,7 @@ private static ListConnectionProfilesFixedSizeCollection createEmptyCollection() @Override protected ListConnectionProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionProfilesFixedSizeCollection(pages, collectionSize); } } @@ -4645,8 +4657,8 @@ public static class ListStreamsPage extends AbstractPage { private ListStreamsPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { super(context, response); } @@ -4656,14 +4668,14 @@ private static ListStreamsPage createEmptyPage() { @Override protected ListStreamsPage createPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { return new ListStreamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4677,7 +4689,8 @@ public static class ListStreamsFixedSizeCollection ListStreamsPage, ListStreamsFixedSizeCollection> { - private ListStreamsFixedSizeCollection(List pages, int collectionSize) { + private ListStreamsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4687,7 +4700,7 @@ private static ListStreamsFixedSizeCollection createEmptyCollection() { @Override protected ListStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStreamsFixedSizeCollection(pages, collectionSize); } } @@ -4724,8 +4737,9 @@ public static class ListStreamObjectsPage ListStreamObjectsPage> { private ListStreamObjectsPage( - PageContext context, - ListStreamObjectsResponse response) { + @Nullable PageContext + context, + @Nullable ListStreamObjectsResponse response) { super(context, response); } @@ -4735,14 +4749,16 @@ private static ListStreamObjectsPage createEmptyPage() { @Override protected ListStreamObjectsPage createPage( - PageContext context, - ListStreamObjectsResponse response) { + @Nullable PageContext + context, + @Nullable ListStreamObjectsResponse response) { return new ListStreamObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4757,7 +4773,7 @@ public static class ListStreamObjectsFixedSizeCollection ListStreamObjectsFixedSizeCollection> { private ListStreamObjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4767,7 +4783,7 @@ private static ListStreamObjectsFixedSizeCollection createEmptyCollection() { @Override protected ListStreamObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStreamObjectsFixedSizeCollection(pages, collectionSize); } } @@ -4801,8 +4817,8 @@ public static class FetchStaticIpsPage FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage> { private FetchStaticIpsPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { super(context, response); } @@ -4812,14 +4828,14 @@ private static FetchStaticIpsPage createEmptyPage() { @Override protected FetchStaticIpsPage createPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { return new FetchStaticIpsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4833,7 +4849,8 @@ public static class FetchStaticIpsFixedSizeCollection FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { - private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { + private FetchStaticIpsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4843,7 +4860,7 @@ private static FetchStaticIpsFixedSizeCollection createEmptyCollection() { @Override protected FetchStaticIpsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchStaticIpsFixedSizeCollection(pages, collectionSize); } } @@ -4882,10 +4899,11 @@ public static class ListPrivateConnectionsPage ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { super(context, response); } @@ -4895,16 +4913,18 @@ private static ListPrivateConnectionsPage createEmptyPage() { @Override protected ListPrivateConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { return new ListPrivateConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, ApiFuture futureResponse) { @@ -4921,7 +4941,7 @@ public static class ListPrivateConnectionsFixedSizeCollection ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4931,7 +4951,7 @@ private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() @Override protected ListPrivateConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -4962,8 +4982,8 @@ public static class ListRoutesPage extends AbstractPage { private ListRoutesPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { super(context, response); } @@ -4973,14 +4993,14 @@ private static ListRoutesPage createEmptyPage() { @Override protected ListRoutesPage createPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { return new ListRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4994,7 +5014,8 @@ public static class ListRoutesFixedSizeCollection ListRoutesPage, ListRoutesFixedSizeCollection> { - private ListRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5004,7 +5025,7 @@ private static ListRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutesFixedSizeCollection(pages, collectionSize); } } @@ -5038,8 +5059,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5049,14 +5070,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5070,7 +5091,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5080,7 +5102,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index 3ca112a731ee..10736fa7b1c8 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -413,7 +414,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); } @@ -433,7 +434,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatastreamStubSettings.newBuilder(clientContext)); } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java index 7b790275c0fa..b0ad4fe97967 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java @@ -77,6 +77,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,11 +89,12 @@ @Generated("by gapic-generator-java") public abstract class DatastreamStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java index ece96ffdb944..9e736420e5b1 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java @@ -111,6 +111,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1006,7 +1007,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); } @@ -1207,7 +1208,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectionProfilesSettings = diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java index 1e0ef0f1426b..eccaca513b6a 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java @@ -39,6 +39,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. /** @@ -531,7 +532,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DatastreamClient implements BackgroundResource { - private final DatastreamSettings settings; + private final @Nullable DatastreamSettings settings; private final DatastreamStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -577,7 +578,7 @@ protected DatastreamClient(DatastreamStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DatastreamSettings getSettings() { + public final @Nullable DatastreamSettings getSettings() { return settings; } @@ -626,7 +627,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent that owns the collection of connection profiles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionProfilesPagedResponse listConnectionProfiles(LocationName parent) { + public final ListConnectionProfilesPagedResponse listConnectionProfiles( + @Nullable LocationName parent) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -799,7 +801,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( * @param name Required. The name of the connection profile resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) { + public final ConnectionProfile getConnectionProfile(@Nullable ConnectionProfileName name) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -925,7 +927,9 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionProfileAsync( - LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) { + @Nullable LocationName parent, + ConnectionProfile connectionProfile, + String connectionProfileId) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1225,7 +1229,7 @@ public final OperationFuture updateConnect * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectionProfileAsync( - ConnectionProfileName name) { + @Nullable ConnectionProfileName name) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1443,7 +1447,7 @@ public final DiscoverConnectionProfileResponse discoverConnectionProfile( * @param parent Required. The parent that owns the collection of streams. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStreamsPagedResponse listStreams(LocationName parent) { + public final ListStreamsPagedResponse listStreams(@Nullable LocationName parent) { ListStreamsRequest request = ListStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1608,7 +1612,7 @@ public final UnaryCallable listStreamsC * @param name Required. The name of the stream resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Stream getStream(StreamName name) { + public final Stream getStream(@Nullable StreamName name) { GetStreamRequest request = GetStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStream(request); @@ -1721,7 +1725,7 @@ public final UnaryCallable getStreamCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStreamAsync( - LocationName parent, Stream stream, String streamId) { + @Nullable LocationName parent, Stream stream, String streamId) { CreateStreamRequest request = CreateStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2018,7 +2022,8 @@ public final UnaryCallable updateStreamCallable( * @param name Required. The name of the stream resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteStreamAsync(StreamName name) { + public final OperationFuture deleteStreamAsync( + @Nullable StreamName name) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteStreamAsync(request); @@ -2249,7 +2254,7 @@ public final UnaryCallable fetchErrorsCallable() * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { + public final FetchStaticIpsPagedResponse fetchStaticIps(@Nullable LocationName name) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return fetchStaticIps(request); @@ -2424,7 +2429,9 @@ public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPrivateConnectionAsync( - LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + @Nullable LocationName parent, + PrivateConnection privateConnection, + String privateConnectionId) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2592,7 +2599,7 @@ public final OperationFuture createPrivate * @param name Required. The name of the private connectivity configuration to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + public final PrivateConnection getPrivateConnection(@Nullable PrivateConnectionName name) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2714,7 +2721,8 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * configurations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + @Nullable LocationName parent) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2889,7 +2897,7 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrivateConnectionAsync( - PrivateConnectionName name) { + @Nullable PrivateConnectionName name) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3051,7 +3059,7 @@ public final OperationFuture deletePrivateConnectionAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRouteAsync( - PrivateConnectionName parent, Route route, String routeId) { + @Nullable PrivateConnectionName parent, Route route, String routeId) { CreateRouteRequest request = CreateRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3219,7 +3227,7 @@ public final UnaryCallable createRouteCallable() * @param name Required. The name of the Route resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Route getRoute(RouteName name) { + public final Route getRoute(@Nullable RouteName name) { GetRouteRequest request = GetRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRoute(request); @@ -3335,7 +3343,7 @@ public final UnaryCallable getRouteCallable() { * @param parent Required. The parent that owns the collection of Routess. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) { + public final ListRoutesPagedResponse listRoutes(@Nullable PrivateConnectionName parent) { ListRoutesRequest request = ListRoutesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRoutes(request); @@ -3504,7 +3512,8 @@ public final UnaryCallable listRoutesCall * @param name Required. The name of the Route resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRouteAsync(RouteName name) { + public final OperationFuture deleteRouteAsync( + @Nullable RouteName name) { DeleteRouteRequest request = DeleteRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRouteAsync(request); @@ -3695,10 +3704,11 @@ public static class ListConnectionProfilesPage ListConnectionProfilesPage> { private ListConnectionProfilesPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { super(context, response); } @@ -3708,16 +3718,18 @@ private static ListConnectionProfilesPage createEmptyPage() { @Override protected ListConnectionProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { return new ListConnectionProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, ApiFuture futureResponse) { @@ -3734,7 +3746,7 @@ public static class ListConnectionProfilesFixedSizeCollection ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3744,7 +3756,7 @@ private static ListConnectionProfilesFixedSizeCollection createEmptyCollection() @Override protected ListConnectionProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionProfilesFixedSizeCollection(pages, collectionSize); } } @@ -3775,8 +3787,8 @@ public static class ListStreamsPage extends AbstractPage { private ListStreamsPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { super(context, response); } @@ -3786,14 +3798,14 @@ private static ListStreamsPage createEmptyPage() { @Override protected ListStreamsPage createPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { return new ListStreamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3807,7 +3819,8 @@ public static class ListStreamsFixedSizeCollection ListStreamsPage, ListStreamsFixedSizeCollection> { - private ListStreamsFixedSizeCollection(List pages, int collectionSize) { + private ListStreamsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3817,7 +3830,7 @@ private static ListStreamsFixedSizeCollection createEmptyCollection() { @Override protected ListStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStreamsFixedSizeCollection(pages, collectionSize); } } @@ -3851,8 +3864,8 @@ public static class FetchStaticIpsPage FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage> { private FetchStaticIpsPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { super(context, response); } @@ -3862,14 +3875,14 @@ private static FetchStaticIpsPage createEmptyPage() { @Override protected FetchStaticIpsPage createPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { return new FetchStaticIpsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3883,7 +3896,8 @@ public static class FetchStaticIpsFixedSizeCollection FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { - private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { + private FetchStaticIpsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3893,7 +3907,7 @@ private static FetchStaticIpsFixedSizeCollection createEmptyCollection() { @Override protected FetchStaticIpsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchStaticIpsFixedSizeCollection(pages, collectionSize); } } @@ -3932,10 +3946,11 @@ public static class ListPrivateConnectionsPage ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { super(context, response); } @@ -3945,16 +3960,18 @@ private static ListPrivateConnectionsPage createEmptyPage() { @Override protected ListPrivateConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { return new ListPrivateConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, ApiFuture futureResponse) { @@ -3971,7 +3988,7 @@ public static class ListPrivateConnectionsFixedSizeCollection ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3981,7 +3998,7 @@ private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() @Override protected ListPrivateConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -4012,8 +4029,8 @@ public static class ListRoutesPage extends AbstractPage { private ListRoutesPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { super(context, response); } @@ -4023,14 +4040,14 @@ private static ListRoutesPage createEmptyPage() { @Override protected ListRoutesPage createPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { return new ListRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4044,7 +4061,8 @@ public static class ListRoutesFixedSizeCollection ListRoutesPage, ListRoutesFixedSizeCollection> { - private ListRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4054,7 +4072,7 @@ private static ListRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java index 8107fe5b0eb5..e69613735894 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -368,7 +369,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); } @@ -388,7 +389,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatastreamStubSettings.newBuilder(clientContext)); } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java index a099ad3c323a..205571c2908e 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java @@ -64,6 +64,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,11 +77,12 @@ @Generated("by gapic-generator-java") public abstract class DatastreamStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java index 17e04a39267f..44744aa6f7ff 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java @@ -97,6 +97,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -829,7 +830,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); } @@ -1009,7 +1010,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectionProfilesSettings = diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java index e0ceaf3585e5..23e1f3e35419 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String connectionPr .toString(); } - public static ConnectionProfileName parse(String formattedString) { + public static @Nullable ConnectionProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionProfileName> values) { List list = new ArrayList<>(values.size()); for (ConnectionProfileName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java index 7f0040087671..68cceeeb4eb0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java index afa9c3bf6c11..a19099038d2d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String privateConne .toString(); } - public static PrivateConnectionName parse(String formattedString) { + public static @Nullable PrivateConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateConnectionName> values) { List list = new ArrayList<>(values.size()); for (PrivateConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java index 5cb2f75f0982..9c098e2e85ac 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RouteName parse(String formattedString) { + public static @Nullable RouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RouteName> values) { List list = new ArrayList<>(values.size()); for (RouteName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java index 17be21a0fc67..9a48ab6b20da 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String stream) { .toString(); } - public static StreamName parse(String formattedString) { + public static @Nullable StreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamName> values) { List list = new ArrayList<>(values.size()); for (StreamName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java index f9773763bb82..1f284f9ba845 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String stream, Stri .toString(); } - public static StreamObjectName parse(String formattedString) { + public static @Nullable StreamObjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamObjectName> values) { List list = new ArrayList<>(values.size()); for (StreamObjectName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java index 3e1fb86d28b8..659a6cd3e6ca 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String connectionPr .toString(); } - public static ConnectionProfileName parse(String formattedString) { + public static @Nullable ConnectionProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionProfileName> values) { List list = new ArrayList<>(values.size()); for (ConnectionProfileName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java index e01c6a2c4590..ba175f6276cd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java index 9109987e5e0a..d44b391cd883 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String privateConne .toString(); } - public static PrivateConnectionName parse(String formattedString) { + public static @Nullable PrivateConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateConnectionName> values) { List list = new ArrayList<>(values.size()); for (PrivateConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java index 764e47a4ffb1..cf939c7a20b6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RouteName parse(String formattedString) { + public static @Nullable RouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RouteName> values) { List list = new ArrayList<>(values.size()); for (RouteName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java index 368253bced76..82f523814103 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String stream) { .toString(); } - public static StreamName parse(String formattedString) { + public static @Nullable StreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamName> values) { List list = new ArrayList<>(values.size()); for (StreamName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java index af17c17aa61c..82ea7e902c58 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java @@ -48,6 +48,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. /** @@ -1086,7 +1087,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudDeployClient implements BackgroundResource { - private final CloudDeploySettings settings; + private final @Nullable CloudDeploySettings settings; private final CloudDeployStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1133,7 +1134,7 @@ protected CloudDeployClient(CloudDeployStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudDeploySettings getSettings() { + public final @Nullable CloudDeploySettings getSettings() { return settings; } @@ -1183,7 +1184,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(LocationName parent) { + public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( + @Nullable LocationName parent) { ListDeliveryPipelinesRequest request = ListDeliveryPipelinesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1358,7 +1360,7 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeliveryPipeline getDeliveryPipeline(DeliveryPipelineName name) { + public final DeliveryPipeline getDeliveryPipeline(@Nullable DeliveryPipelineName name) { GetDeliveryPipelineRequest request = GetDeliveryPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1486,7 +1488,7 @@ public final DeliveryPipeline getDeliveryPipeline(GetDeliveryPipelineRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDeliveryPipelineAsync( - LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) { + @Nullable LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) { CreateDeliveryPipelineRequest request = CreateDeliveryPipelineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1795,7 +1797,7 @@ public final OperationFuture updateDelivery * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeliveryPipelineAsync( - DeliveryPipelineName name) { + @Nullable DeliveryPipelineName name) { DeleteDeliveryPipelineRequest request = DeleteDeliveryPipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1964,7 +1966,7 @@ public final OperationFuture deleteDeliveryPipelineAsy * `projects/{project_id}/locations/{location_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTargetsPagedResponse listTargets(LocationName parent) { + public final ListTargetsPagedResponse listTargets(@Nullable LocationName parent) { ListTargetsRequest request = ListTargetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2138,7 +2140,7 @@ public final UnaryCallable listTargetsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RollbackTargetResponse rollbackTarget( - DeliveryPipelineName name, String targetId, String rolloutId) { + @Nullable DeliveryPipelineName name, String targetId, String rolloutId) { RollbackTargetRequest request = RollbackTargetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2284,7 +2286,7 @@ public final RollbackTargetResponse rollbackTarget(RollbackTargetRequest request * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Target getTarget(TargetName name) { + public final Target getTarget(@Nullable TargetName name) { GetTargetRequest request = GetTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTarget(request); @@ -2399,7 +2401,7 @@ public final UnaryCallable getTargetCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTargetAsync( - LocationName parent, Target target, String targetId) { + @Nullable LocationName parent, Target target, String targetId) { CreateTargetRequest request = CreateTargetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2695,7 +2697,8 @@ public final UnaryCallable updateTargetCallable( * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTargetAsync(TargetName name) { + public final OperationFuture deleteTargetAsync( + @Nullable TargetName name) { DeleteTargetRequest request = DeleteTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTargetAsync(request); @@ -2850,7 +2853,8 @@ public final UnaryCallable deleteTargetCallable( * must be `projects/{project_id}/locations/{location_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomTargetTypesPagedResponse listCustomTargetTypes(LocationName parent) { + public final ListCustomTargetTypesPagedResponse listCustomTargetTypes( + @Nullable LocationName parent) { ListCustomTargetTypesRequest request = ListCustomTargetTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3025,7 +3029,7 @@ public final ListCustomTargetTypesPagedResponse listCustomTargetTypes( * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomTargetType getCustomTargetType(CustomTargetTypeName name) { + public final CustomTargetType getCustomTargetType(@Nullable CustomTargetTypeName name) { GetCustomTargetTypeRequest request = GetCustomTargetTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3153,7 +3157,7 @@ public final CustomTargetType getCustomTargetType(GetCustomTargetTypeRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCustomTargetTypeAsync( - LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) { + @Nullable LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) { CreateCustomTargetTypeRequest request = CreateCustomTargetTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3462,7 +3466,7 @@ public final OperationFuture updateCustomTa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCustomTargetTypeAsync( - CustomTargetTypeName name) { + @Nullable CustomTargetTypeName name) { DeleteCustomTargetTypeRequest request = DeleteCustomTargetTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3628,7 +3632,7 @@ public final OperationFuture deleteCustomTargetTypeAsy * @param parent Required. The `DeliveryPipeline` which owns this collection of `Release` objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleasesPagedResponse listReleases(DeliveryPipelineName parent) { + public final ListReleasesPagedResponse listReleases(@Nullable DeliveryPipelineName parent) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3802,7 +3806,7 @@ public final UnaryCallable listReleas * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Release getRelease(ReleaseName name) { + public final Release getRelease(@Nullable ReleaseName name) { GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRelease(request); @@ -3923,7 +3927,7 @@ public final UnaryCallable getReleaseCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReleaseAsync( - DeliveryPipelineName parent, Release release, String releaseId) { + @Nullable DeliveryPipelineName parent, Release release, String releaseId) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4100,7 +4104,7 @@ public final UnaryCallable createReleaseCallabl * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AbandonReleaseResponse abandonRelease(ReleaseName name) { + public final AbandonReleaseResponse abandonRelease(@Nullable ReleaseName name) { AbandonReleaseRequest request = AbandonReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return abandonRelease(request); @@ -4223,7 +4227,7 @@ public final AbandonReleaseResponse abandonRelease(AbandonReleaseRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDeployPolicyAsync( - LocationName parent, DeployPolicy deployPolicy, String deployPolicyId) { + @Nullable LocationName parent, DeployPolicy deployPolicy, String deployPolicyId) { CreateDeployPolicyRequest request = CreateDeployPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4527,7 +4531,7 @@ public final UnaryCallable updateDeployPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeployPolicyAsync( - DeployPolicyName name) { + @Nullable DeployPolicyName name) { DeleteDeployPolicyRequest request = DeleteDeployPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4685,7 +4689,7 @@ public final UnaryCallable deleteDeployPol * be `projects/{project_id}/locations/{location_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeployPoliciesPagedResponse listDeployPolicies(LocationName parent) { + public final ListDeployPoliciesPagedResponse listDeployPolicies(@Nullable LocationName parent) { ListDeployPoliciesRequest request = ListDeployPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4857,7 +4861,7 @@ public final ListDeployPoliciesPagedResponse listDeployPolicies( * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeployPolicy getDeployPolicy(DeployPolicyName name) { + public final DeployPolicy getDeployPolicy(@Nullable DeployPolicyName name) { GetDeployPolicyRequest request = GetDeployPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployPolicy(request); @@ -4970,7 +4974,7 @@ public final UnaryCallable getDeployPolicy * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ApproveRolloutResponse approveRollout(RolloutName name) { + public final ApproveRolloutResponse approveRollout(@Nullable RolloutName name) { ApproveRolloutRequest request = ApproveRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return approveRollout(request); @@ -5106,7 +5110,7 @@ public final ApproveRolloutResponse approveRollout(ApproveRolloutRequest request * @param phaseId Required. The phase ID to advance the `Rollout` to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdvanceRolloutResponse advanceRollout(RolloutName name, String phaseId) { + public final AdvanceRolloutResponse advanceRollout(@Nullable RolloutName name, String phaseId) { AdvanceRolloutRequest request = AdvanceRolloutRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5246,7 +5250,7 @@ public final AdvanceRolloutResponse advanceRollout(AdvanceRolloutRequest request * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelRolloutResponse cancelRollout(RolloutName name) { + public final CancelRolloutResponse cancelRollout(@Nullable RolloutName name) { CancelRolloutRequest request = CancelRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelRollout(request); @@ -5377,7 +5381,7 @@ public final UnaryCallable cancelRo * @param parent Required. The `Release` which owns this collection of `Rollout` objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolloutsPagedResponse listRollouts(ReleaseName parent) { + public final ListRolloutsPagedResponse listRollouts(@Nullable ReleaseName parent) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5552,7 +5556,7 @@ public final UnaryCallable listRollou * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rollout getRollout(RolloutName name) { + public final Rollout getRollout(@Nullable RolloutName name) { GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRollout(request); @@ -5685,7 +5689,7 @@ public final UnaryCallable getRolloutCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRolloutAsync( - ReleaseName parent, Rollout rollout, String rolloutId) { + @Nullable ReleaseName parent, Rollout rollout, String rolloutId) { CreateRolloutRequest request = CreateRolloutRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5871,7 +5875,8 @@ public final UnaryCallable createRolloutCallabl * @param jobId Required. The job ID for the Job to ignore. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IgnoreJobResponse ignoreJob(RolloutName rollout, String phaseId, String jobId) { + public final IgnoreJobResponse ignoreJob( + @Nullable RolloutName rollout, String phaseId, String jobId) { IgnoreJobRequest request = IgnoreJobRequest.newBuilder() .setRollout(rollout == null ? null : rollout.toString()) @@ -6023,7 +6028,8 @@ public final UnaryCallable ignoreJobCallabl * @param jobId Required. The job ID for the Job to retry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetryJobResponse retryJob(RolloutName rollout, String phaseId, String jobId) { + public final RetryJobResponse retryJob( + @Nullable RolloutName rollout, String phaseId, String jobId) { RetryJobRequest request = RetryJobRequest.newBuilder() .setRollout(rollout == null ? null : rollout.toString()) @@ -6171,7 +6177,7 @@ public final UnaryCallable retryJobCallable() * @param parent Required. The `Rollout` which owns this collection of `JobRun` objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobRunsPagedResponse listJobRuns(RolloutName parent) { + public final ListJobRunsPagedResponse listJobRuns(@Nullable RolloutName parent) { ListJobRunsRequest request = ListJobRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6367,7 +6373,7 @@ public final UnaryCallable listJobRunsC * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobRun getJobRun(JobRunName name) { + public final JobRun getJobRun(@Nullable JobRunName name) { GetJobRunRequest request = GetJobRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJobRun(request); @@ -6508,7 +6514,7 @@ public final UnaryCallable getJobRunCallable() { * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TerminateJobRunResponse terminateJobRun(JobRunName name) { + public final TerminateJobRunResponse terminateJobRun(@Nullable JobRunName name) { TerminateJobRunRequest request = TerminateJobRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return terminateJobRun(request); @@ -6645,7 +6651,7 @@ public final TerminateJobRunResponse terminateJobRun(TerminateJobRunRequest requ * @param name Required. Name of requested configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { + public final Config getConfig(@Nullable ConfigName name) { GetConfigRequest request = GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfig(request); @@ -6762,7 +6768,7 @@ public final UnaryCallable getConfigCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAutomationAsync( - DeliveryPipelineName parent, Automation automation, String automationId) { + @Nullable DeliveryPipelineName parent, Automation automation, String automationId) { CreateAutomationRequest request = CreateAutomationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7074,7 +7080,7 @@ public final UnaryCallable updateAutomationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAutomationAsync( - AutomationName name) { + @Nullable AutomationName name) { DeleteAutomationRequest request = DeleteAutomationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAutomationAsync(request); @@ -7239,7 +7245,7 @@ public final UnaryCallable deleteAutomationC * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Automation getAutomation(AutomationName name) { + public final Automation getAutomation(@Nullable AutomationName name) { GetAutomationRequest request = GetAutomationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAutomation(request); @@ -7361,7 +7367,7 @@ public final UnaryCallable getAutomationCallab * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutomationsPagedResponse listAutomations(DeliveryPipelineName parent) { + public final ListAutomationsPagedResponse listAutomations(@Nullable DeliveryPipelineName parent) { ListAutomationsRequest request = ListAutomationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7541,7 +7547,7 @@ public final ListAutomationsPagedResponse listAutomations(ListAutomationsRequest * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutomationRun getAutomationRun(AutomationRunName name) { + public final AutomationRun getAutomationRun(@Nullable AutomationRunName name) { GetAutomationRunRequest request = GetAutomationRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAutomationRun(request); @@ -7664,7 +7670,8 @@ public final UnaryCallable getAutomation * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutomationRunsPagedResponse listAutomationRuns(DeliveryPipelineName parent) { + public final ListAutomationRunsPagedResponse listAutomationRuns( + @Nullable DeliveryPipelineName parent) { ListAutomationRunsRequest request = ListAutomationRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7848,7 +7855,7 @@ public final ListAutomationRunsPagedResponse listAutomationRuns( * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelAutomationRunResponse cancelAutomationRun(AutomationRunName name) { + public final CancelAutomationRunResponse cancelAutomationRun(@Nullable AutomationRunName name) { CancelAutomationRunRequest request = CancelAutomationRunRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8376,9 +8383,11 @@ public static class ListDeliveryPipelinesPage ListDeliveryPipelinesPage> { private ListDeliveryPipelinesPage( - PageContext + @Nullable + PageContext< + ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> context, - ListDeliveryPipelinesResponse response) { + @Nullable ListDeliveryPipelinesResponse response) { super(context, response); } @@ -8388,15 +8397,19 @@ private static ListDeliveryPipelinesPage createEmptyPage() { @Override protected ListDeliveryPipelinesPage createPage( - PageContext + @Nullable + PageContext< + ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> context, - ListDeliveryPipelinesResponse response) { + @Nullable ListDeliveryPipelinesResponse response) { return new ListDeliveryPipelinesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8412,7 +8425,7 @@ public static class ListDeliveryPipelinesFixedSizeCollection ListDeliveryPipelinesFixedSizeCollection> { private ListDeliveryPipelinesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8422,7 +8435,7 @@ private static ListDeliveryPipelinesFixedSizeCollection createEmptyCollection() @Override protected ListDeliveryPipelinesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeliveryPipelinesFixedSizeCollection(pages, collectionSize); } } @@ -8453,8 +8466,8 @@ public static class ListTargetsPage extends AbstractPage { private ListTargetsPage( - PageContext context, - ListTargetsResponse response) { + @Nullable PageContext context, + @Nullable ListTargetsResponse response) { super(context, response); } @@ -8464,14 +8477,14 @@ private static ListTargetsPage createEmptyPage() { @Override protected ListTargetsPage createPage( - PageContext context, - ListTargetsResponse response) { + @Nullable PageContext context, + @Nullable ListTargetsResponse response) { return new ListTargetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8485,7 +8498,8 @@ public static class ListTargetsFixedSizeCollection ListTargetsPage, ListTargetsFixedSizeCollection> { - private ListTargetsFixedSizeCollection(List pages, int collectionSize) { + private ListTargetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8495,7 +8509,7 @@ private static ListTargetsFixedSizeCollection createEmptyCollection() { @Override protected ListTargetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTargetsFixedSizeCollection(pages, collectionSize); } } @@ -8533,9 +8547,11 @@ public static class ListCustomTargetTypesPage ListCustomTargetTypesPage> { private ListCustomTargetTypesPage( - PageContext + @Nullable + PageContext< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType> context, - ListCustomTargetTypesResponse response) { + @Nullable ListCustomTargetTypesResponse response) { super(context, response); } @@ -8545,15 +8561,19 @@ private static ListCustomTargetTypesPage createEmptyPage() { @Override protected ListCustomTargetTypesPage createPage( - PageContext + @Nullable + PageContext< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType> context, - ListCustomTargetTypesResponse response) { + @Nullable ListCustomTargetTypesResponse response) { return new ListCustomTargetTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8569,7 +8589,7 @@ public static class ListCustomTargetTypesFixedSizeCollection ListCustomTargetTypesFixedSizeCollection> { private ListCustomTargetTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8579,7 +8599,7 @@ private static ListCustomTargetTypesFixedSizeCollection createEmptyCollection() @Override protected ListCustomTargetTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomTargetTypesFixedSizeCollection(pages, collectionSize); } } @@ -8612,8 +8632,8 @@ public static class ListReleasesPage extends AbstractPage { private ListReleasesPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { super(context, response); } @@ -8623,14 +8643,14 @@ private static ListReleasesPage createEmptyPage() { @Override protected ListReleasesPage createPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { return new ListReleasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8644,7 +8664,8 @@ public static class ListReleasesFixedSizeCollection ListReleasesPage, ListReleasesFixedSizeCollection> { - private ListReleasesFixedSizeCollection(List pages, int collectionSize) { + private ListReleasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8654,7 +8675,7 @@ private static ListReleasesFixedSizeCollection createEmptyCollection() { @Override protected ListReleasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleasesFixedSizeCollection(pages, collectionSize); } } @@ -8691,8 +8712,9 @@ public static class ListDeployPoliciesPage ListDeployPoliciesPage> { private ListDeployPoliciesPage( - PageContext context, - ListDeployPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDeployPoliciesResponse response) { super(context, response); } @@ -8702,14 +8724,16 @@ private static ListDeployPoliciesPage createEmptyPage() { @Override protected ListDeployPoliciesPage createPage( - PageContext context, - ListDeployPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListDeployPoliciesResponse response) { return new ListDeployPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8724,7 +8748,7 @@ public static class ListDeployPoliciesFixedSizeCollection ListDeployPoliciesFixedSizeCollection> { private ListDeployPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8734,7 +8758,7 @@ private static ListDeployPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListDeployPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeployPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -8767,8 +8791,8 @@ public static class ListRolloutsPage extends AbstractPage { private ListRolloutsPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { super(context, response); } @@ -8778,14 +8802,14 @@ private static ListRolloutsPage createEmptyPage() { @Override protected ListRolloutsPage createPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { return new ListRolloutsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8799,7 +8823,8 @@ public static class ListRolloutsFixedSizeCollection ListRolloutsPage, ListRolloutsFixedSizeCollection> { - private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { + private ListRolloutsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8809,7 +8834,7 @@ private static ListRolloutsFixedSizeCollection createEmptyCollection() { @Override protected ListRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolloutsFixedSizeCollection(pages, collectionSize); } } @@ -8840,8 +8865,8 @@ public static class ListJobRunsPage extends AbstractPage { private ListJobRunsPage( - PageContext context, - ListJobRunsResponse response) { + @Nullable PageContext context, + @Nullable ListJobRunsResponse response) { super(context, response); } @@ -8851,14 +8876,14 @@ private static ListJobRunsPage createEmptyPage() { @Override protected ListJobRunsPage createPage( - PageContext context, - ListJobRunsResponse response) { + @Nullable PageContext context, + @Nullable ListJobRunsResponse response) { return new ListJobRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8872,7 +8897,8 @@ public static class ListJobRunsFixedSizeCollection ListJobRunsPage, ListJobRunsFixedSizeCollection> { - private ListJobRunsFixedSizeCollection(List pages, int collectionSize) { + private ListJobRunsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8882,7 +8908,7 @@ private static ListJobRunsFixedSizeCollection createEmptyCollection() { @Override protected ListJobRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobRunsFixedSizeCollection(pages, collectionSize); } } @@ -8916,8 +8942,8 @@ public static class ListAutomationsPage ListAutomationsRequest, ListAutomationsResponse, Automation, ListAutomationsPage> { private ListAutomationsPage( - PageContext context, - ListAutomationsResponse response) { + @Nullable PageContext context, + @Nullable ListAutomationsResponse response) { super(context, response); } @@ -8927,14 +8953,14 @@ private static ListAutomationsPage createEmptyPage() { @Override protected ListAutomationsPage createPage( - PageContext context, - ListAutomationsResponse response) { + @Nullable PageContext context, + @Nullable ListAutomationsResponse response) { return new ListAutomationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8949,7 +8975,7 @@ public static class ListAutomationsFixedSizeCollection ListAutomationsFixedSizeCollection> { private ListAutomationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8959,7 +8985,7 @@ private static ListAutomationsFixedSizeCollection createEmptyCollection() { @Override protected ListAutomationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutomationsFixedSizeCollection(pages, collectionSize); } } @@ -8996,8 +9022,9 @@ public static class ListAutomationRunsPage ListAutomationRunsPage> { private ListAutomationRunsPage( - PageContext context, - ListAutomationRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListAutomationRunsResponse response) { super(context, response); } @@ -9007,14 +9034,16 @@ private static ListAutomationRunsPage createEmptyPage() { @Override protected ListAutomationRunsPage createPage( - PageContext context, - ListAutomationRunsResponse response) { + @Nullable PageContext + context, + @Nullable ListAutomationRunsResponse response) { return new ListAutomationRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9029,7 +9058,7 @@ public static class ListAutomationRunsFixedSizeCollection ListAutomationRunsFixedSizeCollection> { private ListAutomationRunsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9039,7 +9068,7 @@ private static ListAutomationRunsFixedSizeCollection createEmptyCollection() { @Override protected ListAutomationRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutomationRunsFixedSizeCollection(pages, collectionSize); } } @@ -9073,8 +9102,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -9084,14 +9113,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9105,7 +9134,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9115,7 +9145,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index 6a78e65fd67c..ab31019283f1 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -572,7 +573,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); } @@ -592,7 +593,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudDeployStubSettings.newBuilder(clientContext)); } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java index 61fcdf5152ef..f02e4fff997b 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java @@ -118,6 +118,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -129,11 +130,12 @@ @Generated("by gapic-generator-java") public abstract class CloudDeployStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index e7033c3a2c01..d179abab4311 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -152,6 +152,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1398,7 +1399,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); } @@ -1690,7 +1691,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDeliveryPipelinesSettings = diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationName.java index 0ab4f70b8f96..23e08fc22822 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AutomationName parse(String formattedString) { + public static @Nullable AutomationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutomationName> values) { List list = new ArrayList<>(values.size()); for (AutomationName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunName.java index 25ebeae25c94..0e46dbb082cd 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AutomationRunName parse(String formattedString) { + public static @Nullable AutomationRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutomationRunName> values) { List list = new ArrayList<>(values.size()); for (AutomationRunName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java index 3a565fcb2dd7..92453a5363b0 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static ConfigName parse(String formattedString) { + public static @Nullable ConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigName> values) { List list = new ArrayList<>(values.size()); for (ConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java index f5a87eb65072..9fbbb9c55fea 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String customTarget .toString(); } - public static CustomTargetTypeName parse(String formattedString) { + public static @Nullable CustomTargetTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomTargetTypeName> values) { List list = new ArrayList<>(values.size()); for (CustomTargetTypeName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java index 54e10e1e8c89..b209835df339 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String deliveryPipe .toString(); } - public static DeliveryPipelineName parse(String formattedString) { + public static @Nullable DeliveryPipelineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeliveryPipelineName> values) { List list = new ArrayList<>(values.size()); for (DeliveryPipelineName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyName.java index 70f5e8fc0eba..60f90bc0439a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String deployPolicy .toString(); } - public static DeployPolicyName parse(String formattedString) { + public static @Nullable DeployPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeployPolicyName> values) { List list = new ArrayList<>(values.size()); for (DeployPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java index edffbd6ad4d5..88c2c6f5610f 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String format( .toString(); } - public static JobRunName parse(String formattedString) { + public static @Nullable JobRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -152,7 +153,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobRunName> values) { List list = new ArrayList<>(values.size()); for (JobRunName value : values) { if (value == null) { @@ -221,7 +222,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java index a33a5e0e1c4e..504f2914c644 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java index 2026ddc402ad..af453a90efec 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReleaseName parse(String formattedString) { + public static @Nullable ReleaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseName> values) { List list = new ArrayList<>(values.size()); for (ReleaseName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java index 24717c49e836..012aeb951687 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static RolloutName parse(String formattedString) { + public static @Nullable RolloutName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RolloutName> values) { List list = new ArrayList<>(values.size()); for (RolloutName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java index 15bbe7b2744e..b53d069e4ce6 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String target) { .toString(); } - public static TargetName parse(String formattedString) { + public static @Nullable TargetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TargetName> values) { List list = new ArrayList<>(values.size()); for (TargetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java index c8c3e92ce6d9..0431cd9f074e 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectClient.java @@ -43,6 +43,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. /** @@ -673,7 +674,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeveloperConnectClient implements BackgroundResource { - private final DeveloperConnectSettings settings; + private final @Nullable DeveloperConnectSettings settings; private final DeveloperConnectStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -721,7 +722,7 @@ protected DeveloperConnectClient(DeveloperConnectStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DeveloperConnectSettings getSettings() { + public final @Nullable DeveloperConnectSettings getSettings() { return settings; } @@ -769,7 +770,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListConnectionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(LocationName parent) { + public final ListConnectionsPagedResponse listConnections(@Nullable LocationName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -937,7 +938,7 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection getConnection(ConnectionName name) { + public final Connection getConnection(@Nullable ConnectionName name) { GetConnectionRequest request = GetConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnection(request); @@ -1053,7 +1054,7 @@ public final UnaryCallable getConnectionCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionAsync( - LocationName parent, Connection connection, String connectionId) { + @Nullable LocationName parent, Connection connection, String connectionId) { CreateConnectionRequest request = CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1356,7 +1357,7 @@ public final UnaryCallable updateConnectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectionAsync( - ConnectionName name) { + @Nullable ConnectionName name) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteConnectionAsync(request); @@ -1518,7 +1519,9 @@ public final UnaryCallable deleteConnectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGitRepositoryLinkAsync( - ConnectionName parent, GitRepositoryLink gitRepositoryLink, String gitRepositoryLinkId) { + @Nullable ConnectionName parent, + GitRepositoryLink gitRepositoryLink, + String gitRepositoryLinkId) { CreateGitRepositoryLinkRequest request = CreateGitRepositoryLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1710,7 +1713,7 @@ public final OperationFuture createGitRepo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGitRepositoryLinkAsync( - GitRepositoryLinkName name) { + @Nullable GitRepositoryLinkName name) { DeleteGitRepositoryLinkRequest request = DeleteGitRepositoryLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1877,7 +1880,8 @@ public final OperationFuture deleteGitRepositoryLinkAs * @param parent Required. Parent value for ListGitRepositoryLinksRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGitRepositoryLinksPagedResponse listGitRepositoryLinks(ConnectionName parent) { + public final ListGitRepositoryLinksPagedResponse listGitRepositoryLinks( + @Nullable ConnectionName parent) { ListGitRepositoryLinksRequest request = ListGitRepositoryLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2051,7 +2055,7 @@ public final ListGitRepositoryLinksPagedResponse listGitRepositoryLinks( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GitRepositoryLink getGitRepositoryLink(GitRepositoryLinkName name) { + public final GitRepositoryLink getGitRepositoryLink(@Nullable GitRepositoryLinkName name) { GetGitRepositoryLinkRequest request = GetGitRepositoryLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2178,7 +2182,7 @@ public final GitRepositoryLink getGitRepositoryLink(GetGitRepositoryLinkRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchReadWriteTokenResponse fetchReadWriteToken( - GitRepositoryLinkName gitRepositoryLink) { + @Nullable GitRepositoryLinkName gitRepositoryLink) { FetchReadWriteTokenRequest request = FetchReadWriteTokenRequest.newBuilder() .setGitRepositoryLink(gitRepositoryLink == null ? null : gitRepositoryLink.toString()) @@ -2305,7 +2309,8 @@ public final FetchReadWriteTokenResponse fetchReadWriteToken(FetchReadWriteToken * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchReadTokenResponse fetchReadToken(GitRepositoryLinkName gitRepositoryLink) { + public final FetchReadTokenResponse fetchReadToken( + @Nullable GitRepositoryLinkName gitRepositoryLink) { FetchReadTokenRequest request = FetchReadTokenRequest.newBuilder() .setGitRepositoryLink(gitRepositoryLink == null ? null : gitRepositoryLink.toString()) @@ -2434,7 +2439,7 @@ public final FetchReadTokenResponse fetchReadToken(FetchReadTokenRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchLinkableGitRepositoriesPagedResponse fetchLinkableGitRepositories( - ConnectionName connection) { + @Nullable ConnectionName connection) { FetchLinkableGitRepositoriesRequest request = FetchLinkableGitRepositoriesRequest.newBuilder() .setConnection(connection == null ? null : connection.toString()) @@ -2616,7 +2621,7 @@ public final FetchLinkableGitRepositoriesPagedResponse fetchLinkableGitRepositor * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchGitHubInstallationsResponse fetchGitHubInstallations( - ConnectionName connection) { + @Nullable ConnectionName connection) { FetchGitHubInstallationsRequest request = FetchGitHubInstallationsRequest.newBuilder() .setConnection(connection == null ? null : connection.toString()) @@ -2750,7 +2755,7 @@ public final FetchGitHubInstallationsResponse fetchGitHubInstallations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchGitRefsPagedResponse fetchGitRefs( - GitRepositoryLinkName gitRepositoryLink, FetchGitRefsRequest.RefType refType) { + @Nullable GitRepositoryLinkName gitRepositoryLink, FetchGitRefsRequest.RefType refType) { FetchGitRefsRequest request = FetchGitRefsRequest.newBuilder() .setGitRepositoryLink(gitRepositoryLink == null ? null : gitRepositoryLink.toString()) @@ -2935,7 +2940,8 @@ public final UnaryCallable fetchGitRe * @param parent Required. Parent value for ListAccountConnectorsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountConnectorsPagedResponse listAccountConnectors(LocationName parent) { + public final ListAccountConnectorsPagedResponse listAccountConnectors( + @Nullable LocationName parent) { ListAccountConnectorsRequest request = ListAccountConnectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3108,7 +3114,7 @@ public final ListAccountConnectorsPagedResponse listAccountConnectors( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountConnector getAccountConnector(AccountConnectorName name) { + public final AccountConnector getAccountConnector(@Nullable AccountConnectorName name) { GetAccountConnectorRequest request = GetAccountConnectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3237,7 +3243,7 @@ public final AccountConnector getAccountConnector(GetAccountConnectorRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAccountConnectorAsync( - LocationName parent, AccountConnector accountConnector, String accountConnectorId) { + @Nullable LocationName parent, AccountConnector accountConnector, String accountConnectorId) { CreateAccountConnectorRequest request = CreateAccountConnectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3544,7 +3550,7 @@ public final OperationFuture updateAccountC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAccountConnectorAsync( - AccountConnectorName name) { + @Nullable AccountConnectorName name) { DeleteAccountConnectorRequest request = DeleteAccountConnectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3708,7 +3714,8 @@ public final OperationFuture deleteAccountConnectorAsy * `projects/*/locations/*/accountConnectors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchAccessTokenResponse fetchAccessToken(AccountConnectorName accountConnector) { + public final FetchAccessTokenResponse fetchAccessToken( + @Nullable AccountConnectorName accountConnector) { FetchAccessTokenRequest request = FetchAccessTokenRequest.newBuilder() .setAccountConnector(accountConnector == null ? null : accountConnector.toString()) @@ -3830,7 +3837,7 @@ public final FetchAccessTokenResponse fetchAccessToken(FetchAccessTokenRequest r * @param parent Required. Parent value for ListUsersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(AccountConnectorName parent) { + public final ListUsersPagedResponse listUsers(@Nullable AccountConnectorName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -3999,7 +4006,7 @@ public final UnaryCallable listUsersCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteUserAsync(UserName name) { + public final OperationFuture deleteUserAsync(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteUserAsync(request); @@ -4154,7 +4161,7 @@ public final UnaryCallable deleteUserCallable() { * @param name Required. Name of the AccountConnector resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User fetchSelf(AccountConnectorName name) { + public final User fetchSelf(@Nullable AccountConnectorName name) { FetchSelfRequest request = FetchSelfRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return fetchSelf(request); @@ -4269,7 +4276,7 @@ public final UnaryCallable fetchSelfCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSelfAsync( - AccountConnectorName name) { + @Nullable AccountConnectorName name) { DeleteSelfRequest request = DeleteSelfRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSelfAsync(request); @@ -4416,7 +4423,7 @@ public final UnaryCallable deleteSelfCallable() { * `projects/*/locations/*/accountConnectors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StartOAuthResponse startOAuth(AccountConnectorName accountConnector) { + public final StartOAuthResponse startOAuth(@Nullable AccountConnectorName accountConnector) { StartOAuthRequest request = StartOAuthRequest.newBuilder() .setAccountConnector(accountConnector == null ? null : accountConnector.toString()) @@ -4536,7 +4543,7 @@ public final UnaryCallable startOAuthCall * `projects/*/locations/*/accountConnectors/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FinishOAuthResponse finishOAuth(AccountConnectorName accountConnector) { + public final FinishOAuthResponse finishOAuth(@Nullable AccountConnectorName accountConnector) { FinishOAuthRequest request = FinishOAuthRequest.newBuilder() .setAccountConnector(accountConnector == null ? null : accountConnector.toString()) @@ -4866,8 +4873,8 @@ public static class ListConnectionsPage ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -4877,14 +4884,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4899,7 +4906,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4909,7 +4916,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -4948,10 +4955,11 @@ public static class ListGitRepositoryLinksPage ListGitRepositoryLinksPage> { private ListGitRepositoryLinksPage( - PageContext< + @Nullable + PageContext< ListGitRepositoryLinksRequest, ListGitRepositoryLinksResponse, GitRepositoryLink> context, - ListGitRepositoryLinksResponse response) { + @Nullable ListGitRepositoryLinksResponse response) { super(context, response); } @@ -4961,16 +4969,18 @@ private static ListGitRepositoryLinksPage createEmptyPage() { @Override protected ListGitRepositoryLinksPage createPage( - PageContext< + @Nullable + PageContext< ListGitRepositoryLinksRequest, ListGitRepositoryLinksResponse, GitRepositoryLink> context, - ListGitRepositoryLinksResponse response) { + @Nullable ListGitRepositoryLinksResponse response) { return new ListGitRepositoryLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGitRepositoryLinksRequest, ListGitRepositoryLinksResponse, GitRepositoryLink> context, ApiFuture futureResponse) { @@ -4987,7 +4997,7 @@ public static class ListGitRepositoryLinksFixedSizeCollection ListGitRepositoryLinksFixedSizeCollection> { private ListGitRepositoryLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4997,7 +5007,7 @@ private static ListGitRepositoryLinksFixedSizeCollection createEmptyCollection() @Override protected ListGitRepositoryLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGitRepositoryLinksFixedSizeCollection(pages, collectionSize); } } @@ -5039,12 +5049,13 @@ public static class FetchLinkableGitRepositoriesPage FetchLinkableGitRepositoriesPage> { private FetchLinkableGitRepositoriesPage( - PageContext< + @Nullable + PageContext< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse, LinkableGitRepository> context, - FetchLinkableGitRepositoriesResponse response) { + @Nullable FetchLinkableGitRepositoriesResponse response) { super(context, response); } @@ -5054,18 +5065,20 @@ private static FetchLinkableGitRepositoriesPage createEmptyPage() { @Override protected FetchLinkableGitRepositoriesPage createPage( - PageContext< + @Nullable + PageContext< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse, LinkableGitRepository> context, - FetchLinkableGitRepositoriesResponse response) { + @Nullable FetchLinkableGitRepositoriesResponse response) { return new FetchLinkableGitRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchLinkableGitRepositoriesRequest, FetchLinkableGitRepositoriesResponse, LinkableGitRepository> @@ -5084,7 +5097,7 @@ public static class FetchLinkableGitRepositoriesFixedSizeCollection FetchLinkableGitRepositoriesFixedSizeCollection> { private FetchLinkableGitRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5094,7 +5107,7 @@ private static FetchLinkableGitRepositoriesFixedSizeCollection createEmptyCollec @Override protected FetchLinkableGitRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchLinkableGitRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -5127,8 +5140,8 @@ public static class FetchGitRefsPage extends AbstractPage { private FetchGitRefsPage( - PageContext context, - FetchGitRefsResponse response) { + @Nullable PageContext context, + @Nullable FetchGitRefsResponse response) { super(context, response); } @@ -5138,14 +5151,14 @@ private static FetchGitRefsPage createEmptyPage() { @Override protected FetchGitRefsPage createPage( - PageContext context, - FetchGitRefsResponse response) { + @Nullable PageContext context, + @Nullable FetchGitRefsResponse response) { return new FetchGitRefsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5159,7 +5172,8 @@ public static class FetchGitRefsFixedSizeCollection FetchGitRefsPage, FetchGitRefsFixedSizeCollection> { - private FetchGitRefsFixedSizeCollection(List pages, int collectionSize) { + private FetchGitRefsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5169,7 +5183,7 @@ private static FetchGitRefsFixedSizeCollection createEmptyCollection() { @Override protected FetchGitRefsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchGitRefsFixedSizeCollection(pages, collectionSize); } } @@ -5207,9 +5221,11 @@ public static class ListAccountConnectorsPage ListAccountConnectorsPage> { private ListAccountConnectorsPage( - PageContext + @Nullable + PageContext< + ListAccountConnectorsRequest, ListAccountConnectorsResponse, AccountConnector> context, - ListAccountConnectorsResponse response) { + @Nullable ListAccountConnectorsResponse response) { super(context, response); } @@ -5219,15 +5235,19 @@ private static ListAccountConnectorsPage createEmptyPage() { @Override protected ListAccountConnectorsPage createPage( - PageContext + @Nullable + PageContext< + ListAccountConnectorsRequest, ListAccountConnectorsResponse, AccountConnector> context, - ListAccountConnectorsResponse response) { + @Nullable ListAccountConnectorsResponse response) { return new ListAccountConnectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListAccountConnectorsRequest, ListAccountConnectorsResponse, AccountConnector> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5243,7 +5263,7 @@ public static class ListAccountConnectorsFixedSizeCollection ListAccountConnectorsFixedSizeCollection> { private ListAccountConnectorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5253,7 +5273,7 @@ private static ListAccountConnectorsFixedSizeCollection createEmptyCollection() @Override protected ListAccountConnectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountConnectorsFixedSizeCollection(pages, collectionSize); } } @@ -5280,8 +5300,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -5291,14 +5311,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5308,7 +5328,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5318,7 +5338,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } @@ -5352,8 +5372,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5363,14 +5383,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5384,7 +5404,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5394,7 +5415,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java index 9240e794862f..39661dc50165 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/DeveloperConnectSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -419,7 +420,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); } @@ -439,7 +440,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeveloperConnectStubSettings.newBuilder(clientContext)); } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceClient.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceClient.java index 9e7e279448f7..4eb079cf51cd 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceClient.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceClient.java @@ -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. /** @@ -305,7 +306,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InsightsConfigServiceClient implements BackgroundResource { - private final InsightsConfigServiceSettings settings; + private final @Nullable InsightsConfigServiceSettings settings; private final InsightsConfigServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -353,7 +354,7 @@ protected InsightsConfigServiceClient(InsightsConfigServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final InsightsConfigServiceSettings getSettings() { + public final @Nullable InsightsConfigServiceSettings getSettings() { return settings; } @@ -403,7 +404,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListInsightsConfigsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInsightsConfigsPagedResponse listInsightsConfigs(LocationName parent) { + public final ListInsightsConfigsPagedResponse listInsightsConfigs(@Nullable LocationName parent) { ListInsightsConfigsRequest request = ListInsightsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -588,7 +589,7 @@ public final ListInsightsConfigsPagedResponse listInsightsConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInsightsConfigAsync( - LocationName parent, InsightsConfig insightsConfig, String insightsConfigId) { + @Nullable LocationName parent, InsightsConfig insightsConfig, String insightsConfigId) { CreateInsightsConfigRequest request = CreateInsightsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -761,7 +762,7 @@ public final OperationFuture createInsightsCo * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InsightsConfig getInsightsConfig(InsightsConfigName name) { + public final InsightsConfig getInsightsConfig(@Nullable InsightsConfigName name) { GetInsightsConfigRequest request = GetInsightsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -981,7 +982,7 @@ public final OperationFuture updateInsightsCo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInsightsConfigAsync( - InsightsConfigName name) { + @Nullable InsightsConfigName name) { DeleteInsightsConfigRequest request = DeleteInsightsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1145,7 +1146,7 @@ public final OperationFuture deleteInsightsConfigAsync * projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeploymentEvent getDeploymentEvent(DeploymentEventName name) { + public final DeploymentEvent getDeploymentEvent(@Nullable DeploymentEventName name) { GetDeploymentEventRequest request = GetDeploymentEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1277,7 +1278,8 @@ public final DeploymentEvent getDeploymentEvent(GetDeploymentEventRequest reques * events. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentEventsPagedResponse listDeploymentEvents(InsightsConfigName parent) { + public final ListDeploymentEventsPagedResponse listDeploymentEvents( + @Nullable InsightsConfigName parent) { ListDeploymentEventsRequest request = ListDeploymentEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1677,9 +1679,10 @@ public static class ListInsightsConfigsPage ListInsightsConfigsPage> { private ListInsightsConfigsPage( - PageContext + @Nullable + PageContext context, - ListInsightsConfigsResponse response) { + @Nullable ListInsightsConfigsResponse response) { super(context, response); } @@ -1689,15 +1692,17 @@ private static ListInsightsConfigsPage createEmptyPage() { @Override protected ListInsightsConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListInsightsConfigsResponse response) { + @Nullable ListInsightsConfigsResponse response) { return new ListInsightsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1713,7 +1718,7 @@ public static class ListInsightsConfigsFixedSizeCollection ListInsightsConfigsFixedSizeCollection> { private ListInsightsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1723,7 +1728,7 @@ private static ListInsightsConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListInsightsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInsightsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -1761,9 +1766,10 @@ public static class ListDeploymentEventsPage ListDeploymentEventsPage> { private ListDeploymentEventsPage( - PageContext + @Nullable + PageContext context, - ListDeploymentEventsResponse response) { + @Nullable ListDeploymentEventsResponse response) { super(context, response); } @@ -1773,15 +1779,17 @@ private static ListDeploymentEventsPage createEmptyPage() { @Override protected ListDeploymentEventsPage createPage( - PageContext + @Nullable + PageContext context, - ListDeploymentEventsResponse response) { + @Nullable ListDeploymentEventsResponse response) { return new ListDeploymentEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1797,7 +1805,7 @@ public static class ListDeploymentEventsFixedSizeCollection ListDeploymentEventsFixedSizeCollection> { private ListDeploymentEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1807,7 +1815,7 @@ private static ListDeploymentEventsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentEventsFixedSizeCollection(pages, collectionSize); } } @@ -1841,8 +1849,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1852,14 +1860,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1873,7 +1881,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1883,7 +1892,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceSettings.java index d2bdd40b26b9..81f8f2bc2a04 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigServiceSettings.java @@ -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. /** @@ -257,7 +258,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); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InsightsConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java index c51d58398557..3a2958763cd4 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStub.java @@ -79,6 +79,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -90,11 +91,12 @@ @Generated("by gapic-generator-java") public abstract class DeveloperConnectStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java index c826b7ed1694..cafc3939b9f8 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/DeveloperConnectStubSettings.java @@ -114,6 +114,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1025,7 +1026,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); } @@ -1225,7 +1226,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectionsSettings = PagedCallSettings.newBuilder(LIST_CONNECTIONS_PAGE_STR_FACT); diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStub.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStub.java index 0793b5a70795..c412409e3703 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStub.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class InsightsConfigServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStubSettings.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStubSettings.java index 44710193ee21..5ea0aee5cf29 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStubSettings.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/InsightsConfigServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -540,7 +541,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); } @@ -639,7 +640,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInsightsConfigsSettings = diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AccountConnectorName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AccountConnectorName.java index 70624e733226..f6914a000d36 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AccountConnectorName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/AccountConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String accountConne .toString(); } - public static AccountConnectorName parse(String formattedString) { + public static @Nullable AccountConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountConnectorName> values) { List list = new ArrayList<>(values.size()); for (AccountConnectorName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionName.java index 689a0900c952..ba3415b78194 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/ConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String connection) .toString(); } - public static ConnectionName parse(String formattedString) { + public static @Nullable ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionName> values) { List list = new ArrayList<>(values.size()); for (ConnectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeploymentEventName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeploymentEventName.java index 508c6f39fba7..a4615a110196 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeploymentEventName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/DeploymentEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DeploymentEventName parse(String formattedString) { + public static @Nullable DeploymentEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentEventName> values) { List list = new ArrayList<>(values.size()); for (DeploymentEventName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkName.java index 857e6f2e35c5..9ad2b37a8ac6 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/GitRepositoryLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GitRepositoryLinkName parse(String formattedString) { + public static @Nullable GitRepositoryLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GitRepositoryLinkName> values) { List list = new ArrayList<>(values.size()); for (GitRepositoryLinkName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigName.java index 1646ad51cd2d..e9247ec46466 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/InsightsConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String insightsConf .toString(); } - public static InsightsConfigName parse(String formattedString) { + public static @Nullable InsightsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightsConfigName> values) { List list = new ArrayList<>(values.size()); for (InsightsConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/LocationName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/LocationName.java index bdd5cb38836c..be4859b19a3d 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/LocationName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserName.java b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserName.java index a1259d4850d7..bcc01622fe1b 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserName.java +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/src/main/java/com/google/cloud/developerconnect/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format( .toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -180,7 +181,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java index 1a2bda4a69e3..0a45b1af50ba 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeClient.java @@ -32,6 +32,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeveloperKnowledgeClient implements BackgroundResource { - private final DeveloperKnowledgeSettings settings; + private final @Nullable DeveloperKnowledgeSettings settings; private final DeveloperKnowledgeStub stub; /** Constructs an instance of DeveloperKnowledgeClient with default settings. */ @@ -227,7 +228,7 @@ protected DeveloperKnowledgeClient(DeveloperKnowledgeStub stub) { this.stub = stub; } - public final DeveloperKnowledgeSettings getSettings() { + public final @Nullable DeveloperKnowledgeSettings getSettings() { return settings; } @@ -395,7 +396,7 @@ public final SearchDocumentChunksPagedResponse searchDocumentChunks( * `documents/docs.cloud.google.com/storage/docs/creating-buckets` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -609,9 +610,10 @@ public static class SearchDocumentChunksPage SearchDocumentChunksPage> { private SearchDocumentChunksPage( - PageContext + @Nullable + PageContext context, - SearchDocumentChunksResponse response) { + @Nullable SearchDocumentChunksResponse response) { super(context, response); } @@ -621,15 +623,17 @@ private static SearchDocumentChunksPage createEmptyPage() { @Override protected SearchDocumentChunksPage createPage( - PageContext + @Nullable + PageContext context, - SearchDocumentChunksResponse response) { + @Nullable SearchDocumentChunksResponse response) { return new SearchDocumentChunksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -645,7 +649,7 @@ public static class SearchDocumentChunksFixedSizeCollection SearchDocumentChunksFixedSizeCollection> { private SearchDocumentChunksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -655,7 +659,7 @@ private static SearchDocumentChunksFixedSizeCollection createEmptyCollection() { @Override protected SearchDocumentChunksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDocumentChunksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeSettings.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeSettings.java index 3c5560696e17..89a29a0ac4d9 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeSettings.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/DeveloperKnowledgeSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeveloperKnowledgeStubSettings.newBuilder(clientContext)); } diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/DeveloperKnowledgeStubSettings.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/DeveloperKnowledgeStubSettings.java index 9c1f982d2948..256698492b7e 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/DeveloperKnowledgeStubSettings.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/DeveloperKnowledgeStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -387,7 +388,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDocumentChunksSettings = diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentName.java b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentName.java index 94ee560d6590..b349a4e0c0cc 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentName.java +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/src/main/java/com/google/developers/knowledge/v1/DocumentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String document) { return newBuilder().setDocument(document).build().toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceClient.java b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceClient.java index 03add91dfd56..4f9aeb18d4a9 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceClient.java +++ b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceClient.java @@ -35,6 +35,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. /** @@ -238,7 +239,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DirectAccessServiceClient implements BackgroundResource { - private final DirectAccessServiceSettings settings; + private final @Nullable DirectAccessServiceSettings settings; private final DirectAccessServiceStub stub; /** Constructs an instance of DirectAccessServiceClient with default settings. */ @@ -278,7 +279,7 @@ protected DirectAccessServiceClient(DirectAccessServiceStub stub) { this.stub = stub; } - public final DirectAccessServiceSettings getSettings() { + public final @Nullable DirectAccessServiceSettings getSettings() { return settings; } @@ -316,7 +317,7 @@ public DirectAccessServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeviceSession createDeviceSession( - ProjectName parent, DeviceSession deviceSession, String deviceSessionId) { + @Nullable ProjectName parent, DeviceSession deviceSession, String deviceSessionId) { CreateDeviceSessionRequest request = CreateDeviceSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -451,7 +452,7 @@ public final DeviceSession createDeviceSession(CreateDeviceSessionRequest reques * @param parent Required. The name of the parent to request, e.g. "projects/{project_id}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceSessionsPagedResponse listDeviceSessions(ProjectName parent) { + public final ListDeviceSessionsPagedResponse listDeviceSessions(@Nullable ProjectName parent) { ListDeviceSessionsRequest request = ListDeviceSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -622,7 +623,7 @@ public final ListDeviceSessionsPagedResponse listDeviceSessions( * "projects/{project_id}/deviceSessions/{session_id}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceSession getDeviceSession(DeviceSessionName name) { + public final DeviceSession getDeviceSession(@Nullable DeviceSessionName name) { GetDeviceSessionRequest request = GetDeviceSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeviceSession(request); @@ -959,8 +960,9 @@ public static class ListDeviceSessionsPage ListDeviceSessionsPage> { private ListDeviceSessionsPage( - PageContext context, - ListDeviceSessionsResponse response) { + @Nullable PageContext + context, + @Nullable ListDeviceSessionsResponse response) { super(context, response); } @@ -970,14 +972,16 @@ private static ListDeviceSessionsPage createEmptyPage() { @Override protected ListDeviceSessionsPage createPage( - PageContext context, - ListDeviceSessionsResponse response) { + @Nullable PageContext + context, + @Nullable ListDeviceSessionsResponse response) { return new ListDeviceSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -992,7 +996,7 @@ public static class ListDeviceSessionsFixedSizeCollection ListDeviceSessionsFixedSizeCollection> { private ListDeviceSessionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1002,7 +1006,7 @@ private static ListDeviceSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListDeviceSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeviceSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceSettings.java b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceSettings.java index 531d5daaca0c..b7c2e16d1cdf 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceSettings.java +++ b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/DirectAccessServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DirectAccessServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/DirectAccessServiceStubSettings.java b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/DirectAccessServiceStubSettings.java index dc8bbb6cb9e8..935f540760e7 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/DirectAccessServiceStubSettings.java +++ b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/DirectAccessServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -329,7 +330,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); } @@ -429,7 +430,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDeviceSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DeviceSessionName.java b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DeviceSessionName.java index 4a3427caaa4a..e9068e290e54 100644 --- a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DeviceSessionName.java +++ b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/DeviceSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String deviceSession) { return newBuilder().setProject(project).setDeviceSession(deviceSession).build().toString(); } - public static DeviceSessionName parse(String formattedString) { + public static @Nullable DeviceSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeviceSessionName> values) { List list = new ArrayList<>(values.size()); for (DeviceSessionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/ProjectName.java b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/ProjectName.java index 3b0e4df019b7..2af94b022c83 100644 --- a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/ProjectName.java +++ b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/src/main/java/com/google/cloud/devicestreaming/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index be7a99f69cd4..78f29ad8a7e8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -44,6 +44,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. /** @@ -364,7 +365,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AgentsClient implements BackgroundResource { - private final AgentsSettings settings; + private final @Nullable AgentsSettings settings; private final AgentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -410,7 +411,7 @@ protected AgentsClient(AgentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentsSettings getSettings() { + public final @Nullable AgentsSettings getSettings() { return settings; } @@ -459,7 +460,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentsPagedResponse listAgents(LocationName parent) { + public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) { ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAgents(request); @@ -617,7 +618,7 @@ public final UnaryCallable listAgentsCall * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(AgentName name) { + public final Agent getAgent(@Nullable AgentName name) { GetAgentRequest request = GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgent(request); @@ -732,7 +733,7 @@ public final UnaryCallable getAgentCallable() { * @param agent Required. The agent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(LocationName parent, Agent agent) { + public final Agent createAgent(@Nullable LocationName parent, Agent agent) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -955,7 +956,7 @@ public final UnaryCallable updateAgentCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(AgentName name) { + public final void deleteAgent(@Nullable AgentName name) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAgent(request); @@ -1385,7 +1386,8 @@ public final UnaryCallable validate * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AgentValidationResult getAgentValidationResult(AgentValidationResultName name) { + public final AgentValidationResult getAgentValidationResult( + @Nullable AgentValidationResultName name) { GetAgentValidationResultRequest request = GetAgentValidationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1512,7 +1514,7 @@ public final AgentValidationResult getAgentValidationResult( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerativeSettings getGenerativeSettings( - AgentGenerativeSettingsName name, String languageCode) { + @Nullable AgentGenerativeSettingsName name, String languageCode) { GetGenerativeSettingsRequest request = GetGenerativeSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1956,8 +1958,8 @@ public static class ListAgentsPage extends AbstractPage { private ListAgentsPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { super(context, response); } @@ -1967,14 +1969,14 @@ private static ListAgentsPage createEmptyPage() { @Override protected ListAgentsPage createPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { return new ListAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1988,7 +1990,8 @@ public static class ListAgentsFixedSizeCollection ListAgentsPage, ListAgentsFixedSizeCollection> { - private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1998,7 +2001,7 @@ private static ListAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2032,8 +2035,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2043,14 +2046,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2064,7 +2067,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2074,7 +2078,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java index d65d99a3b813..d22755aae7ee 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsSettings.java @@ -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. /** @@ -259,7 +260,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); } @@ -279,7 +280,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 48f79bcfa005..7bb34518cd85 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -36,6 +36,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. /** @@ -193,7 +194,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ChangelogsClient implements BackgroundResource { - private final ChangelogsSettings settings; + private final @Nullable ChangelogsSettings settings; private final ChangelogsStub stub; /** Constructs an instance of ChangelogsClient with default settings. */ @@ -231,7 +232,7 @@ protected ChangelogsClient(ChangelogsStub stub) { this.stub = stub; } - public final ChangelogsSettings getSettings() { + public final @Nullable ChangelogsSettings getSettings() { return settings; } @@ -263,7 +264,7 @@ public ChangelogsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { + public final ListChangelogsPagedResponse listChangelogs(@Nullable AgentName parent) { ListChangelogsRequest request = ListChangelogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -429,7 +430,7 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/changelogs/<ChangelogID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Changelog getChangelog(ChangelogName name) { + public final Changelog getChangelog(@Nullable ChangelogName name) { GetChangelogRequest request = GetChangelogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChangelog(request); @@ -770,8 +771,8 @@ public static class ListChangelogsPage ListChangelogsRequest, ListChangelogsResponse, Changelog, ListChangelogsPage> { private ListChangelogsPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { super(context, response); } @@ -781,14 +782,14 @@ private static ListChangelogsPage createEmptyPage() { @Override protected ListChangelogsPage createPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { return new ListChangelogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -802,7 +803,8 @@ public static class ListChangelogsFixedSizeCollection ListChangelogsPage, ListChangelogsFixedSizeCollection> { - private ListChangelogsFixedSizeCollection(List pages, int collectionSize) { + private ListChangelogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -812,7 +814,7 @@ private static ListChangelogsFixedSizeCollection createEmptyCollection() { @Override protected ListChangelogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChangelogsFixedSizeCollection(pages, collectionSize); } } @@ -846,8 +848,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -857,14 +859,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -878,7 +880,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -888,7 +891,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java index 78e0a213470d..a098ba8c03fe 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ChangelogsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index cba0faeda5c2..c1a8571a2cd7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -36,6 +36,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. /** @@ -195,7 +196,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeploymentsClient implements BackgroundResource { - private final DeploymentsSettings settings; + private final @Nullable DeploymentsSettings settings; private final DeploymentsStub stub; /** Constructs an instance of DeploymentsClient with default settings. */ @@ -234,7 +235,7 @@ protected DeploymentsClient(DeploymentsStub stub) { this.stub = stub; } - public final DeploymentsSettings getSettings() { + public final @Nullable DeploymentsSettings getSettings() { return settings; } @@ -269,7 +270,7 @@ public DeploymentsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable EnvironmentName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -447,7 +448,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -794,8 +795,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -805,14 +806,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -827,7 +828,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -837,7 +838,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -871,8 +872,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -882,14 +883,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -903,7 +904,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -913,7 +915,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java index d60642247d35..c824e946d0da 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeploymentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index f5c28e9201a5..fe8c0f70de17 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -43,6 +43,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. /** @@ -291,7 +292,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EntityTypesClient implements BackgroundResource { - private final EntityTypesSettings settings; + private final @Nullable EntityTypesSettings settings; private final EntityTypesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -338,7 +339,7 @@ protected EntityTypesClient(EntityTypesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EntityTypesSettings getSettings() { + public final @Nullable EntityTypesSettings getSettings() { return settings; } @@ -386,7 +387,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -508,7 +509,7 @@ public final UnaryCallable getEntityTypeCallab * @param entityType Required. The entity type to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType createEntityType(AgentName parent, EntityType entityType) { + public final EntityType createEntityType(@Nullable AgentName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -743,7 +744,7 @@ public final UnaryCallable updateEntityType * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntityType(EntityTypeName name) { + public final void deleteEntityType(@Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntityType(request); @@ -871,7 +872,7 @@ public final UnaryCallable deleteEntityTypeCalla * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable AgentName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1455,8 +1456,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -1466,14 +1467,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1488,7 +1489,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1498,7 +1499,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1532,8 +1533,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1543,14 +1544,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1564,7 +1565,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1574,7 +1576,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java index b1a61a47a004..0d7264520e3a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index 267a0b88b206..f9c7aefac8fa 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -44,6 +44,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. /** @@ -339,7 +340,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -386,7 +387,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -437,7 +438,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { + public final ListEnvironmentsPagedResponse listEnvironments(@Nullable AgentName parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -609,7 +610,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Environment getEnvironment(EnvironmentName name) { + public final Environment getEnvironment(@Nullable EnvironmentName name) { GetEnvironmentRequest request = GetEnvironmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEnvironment(request); @@ -739,7 +740,7 @@ public final UnaryCallable getEnvironmentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnvironmentAsync( - AgentName parent, Environment environment) { + @Nullable AgentName parent, Environment environment) { CreateEnvironmentRequest request = CreateEnvironmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1084,7 +1085,7 @@ public final UnaryCallable updateEnvironmen * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEnvironment(EnvironmentName name) { + public final void deleteEnvironment(@Nullable EnvironmentName name) { DeleteEnvironmentRequest request = DeleteEnvironmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1206,7 +1207,7 @@ public final UnaryCallable deleteEnvironmentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( - EnvironmentName name) { + @Nullable EnvironmentName name) { LookupEnvironmentHistoryRequest request = LookupEnvironmentHistoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1508,7 +1509,7 @@ public final UnaryCallable runContinuousTes * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListContinuousTestResultsRequest request = ListContinuousTestResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2033,8 +2034,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -2044,14 +2046,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2066,7 +2070,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2076,7 +2080,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -2114,9 +2118,11 @@ public static class LookupEnvironmentHistoryPage LookupEnvironmentHistoryPage> { private LookupEnvironmentHistoryPage( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, - LookupEnvironmentHistoryResponse response) { + @Nullable LookupEnvironmentHistoryResponse response) { super(context, response); } @@ -2126,15 +2132,19 @@ private static LookupEnvironmentHistoryPage createEmptyPage() { @Override protected LookupEnvironmentHistoryPage createPage( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, - LookupEnvironmentHistoryResponse response) { + @Nullable LookupEnvironmentHistoryResponse response) { return new LookupEnvironmentHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2150,7 +2160,7 @@ public static class LookupEnvironmentHistoryFixedSizeCollection LookupEnvironmentHistoryFixedSizeCollection> { private LookupEnvironmentHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2160,7 +2170,7 @@ private static LookupEnvironmentHistoryFixedSizeCollection createEmptyCollection @Override protected LookupEnvironmentHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new LookupEnvironmentHistoryFixedSizeCollection(pages, collectionSize); } } @@ -2201,12 +2211,13 @@ public static class ListContinuousTestResultsPage ListContinuousTestResultsPage> { private ListContinuousTestResultsPage( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> context, - ListContinuousTestResultsResponse response) { + @Nullable ListContinuousTestResultsResponse response) { super(context, response); } @@ -2216,18 +2227,20 @@ private static ListContinuousTestResultsPage createEmptyPage() { @Override protected ListContinuousTestResultsPage createPage( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> context, - ListContinuousTestResultsResponse response) { + @Nullable ListContinuousTestResultsResponse response) { return new ListContinuousTestResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> @@ -2246,7 +2259,7 @@ public static class ListContinuousTestResultsFixedSizeCollection ListContinuousTestResultsFixedSizeCollection> { private ListContinuousTestResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2256,7 +2269,7 @@ private static ListContinuousTestResultsFixedSizeCollection createEmptyCollectio @Override protected ListContinuousTestResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContinuousTestResultsFixedSizeCollection(pages, collectionSize); } } @@ -2290,8 +2303,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2301,14 +2314,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2322,7 +2335,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2332,7 +2346,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java index f2b1b7e46e3f..24e5b1e5c1a1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -272,7 +273,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); } @@ -292,7 +293,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java index 1bce6515c86a..a3621180219d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java @@ -38,6 +38,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. /** @@ -252,7 +253,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExamplesClient implements BackgroundResource { - private final ExamplesSettings settings; + private final @Nullable ExamplesSettings settings; private final ExamplesStub stub; /** Constructs an instance of ExamplesClient with default settings. */ @@ -290,7 +291,7 @@ protected ExamplesClient(ExamplesStub stub) { this.stub = stub; } - public final ExamplesSettings getSettings() { + public final @Nullable ExamplesSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public ExamplesStub getStub() { * @param example Required. The example to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(PlaybookName parent, Example example) { + public final Example createExample(@Nullable PlaybookName parent, Example example) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -444,7 +445,7 @@ public final UnaryCallable createExampleCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExample(ExampleName name) { + public final void deleteExample(@Nullable ExampleName name) { DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExample(request); @@ -562,7 +563,7 @@ public final UnaryCallable deleteExampleCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(PlaybookName parent) { + public final ListExamplesPagedResponse listExamples(@Nullable PlaybookName parent) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -731,7 +732,7 @@ public final UnaryCallable listExampl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example getExample(ExampleName name) { + public final Example getExample(@Nullable ExampleName name) { GetExampleRequest request = GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExample(request); @@ -1160,8 +1161,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -1171,14 +1172,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1192,7 +1193,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1202,7 +1204,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -1236,8 +1238,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1247,14 +1249,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1268,7 +1270,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1278,7 +1281,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java index 2611292a1afe..549ccc73eb89 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExamplesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index 65652cf31133..884c6b7b9138 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -38,6 +38,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. /** @@ -291,7 +292,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExperimentsClient implements BackgroundResource { - private final ExperimentsSettings settings; + private final @Nullable ExperimentsSettings settings; private final ExperimentsStub stub; /** Constructs an instance of ExperimentsClient with default settings. */ @@ -330,7 +331,7 @@ protected ExperimentsClient(ExperimentsStub stub) { this.stub = stub; } - public final ExperimentsSettings getSettings() { + public final @Nullable ExperimentsSettings getSettings() { return settings; } @@ -365,7 +366,7 @@ public ExperimentsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent) { + public final ListExperimentsPagedResponse listExperiments(@Nullable EnvironmentName parent) { ListExperimentsRequest request = ListExperimentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +544,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment getExperiment(ExperimentName name) { + public final Experiment getExperiment(@Nullable ExperimentName name) { GetExperimentRequest request = GetExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExperiment(request); @@ -667,7 +668,8 @@ public final UnaryCallable getExperimentCallab * @param experiment Required. The experiment to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment createExperiment(EnvironmentName parent, Experiment experiment) { + public final Experiment createExperiment( + @Nullable EnvironmentName parent, Experiment experiment) { CreateExperimentRequest request = CreateExperimentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -887,7 +889,7 @@ public final UnaryCallable updateExperiment * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExperiment(ExperimentName name) { + public final void deleteExperiment(@Nullable ExperimentName name) { DeleteExperimentRequest request = DeleteExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExperiment(request); @@ -1008,7 +1010,7 @@ public final UnaryCallable deleteExperimentCalla * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment startExperiment(ExperimentName name) { + public final Experiment startExperiment(@Nullable ExperimentName name) { StartExperimentRequest request = StartExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startExperiment(request); @@ -1132,7 +1134,7 @@ public final UnaryCallable startExperimentCa * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment stopExperiment(ExperimentName name) { + public final Experiment stopExperiment(@Nullable ExperimentName name) { StopExperimentRequest request = StopExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopExperiment(request); @@ -1481,8 +1483,8 @@ public static class ListExperimentsPage ListExperimentsRequest, ListExperimentsResponse, Experiment, ListExperimentsPage> { private ListExperimentsPage( - PageContext context, - ListExperimentsResponse response) { + @Nullable PageContext context, + @Nullable ListExperimentsResponse response) { super(context, response); } @@ -1492,14 +1494,14 @@ private static ListExperimentsPage createEmptyPage() { @Override protected ListExperimentsPage createPage( - PageContext context, - ListExperimentsResponse response) { + @Nullable PageContext context, + @Nullable ListExperimentsResponse response) { return new ListExperimentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1514,7 +1516,7 @@ public static class ListExperimentsFixedSizeCollection ListExperimentsFixedSizeCollection> { private ListExperimentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1524,7 +1526,7 @@ private static ListExperimentsFixedSizeCollection createEmptyCollection() { @Override protected ListExperimentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExperimentsFixedSizeCollection(pages, collectionSize); } } @@ -1558,8 +1560,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1569,14 +1571,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1590,7 +1592,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1600,7 +1603,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java index 08ea3e325f33..5259f3fd6766 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,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); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExperimentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index edaab4ac0df6..e30a8c5f7faa 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -44,6 +44,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. /** @@ -351,7 +352,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FlowsClient implements BackgroundResource { - private final FlowsSettings settings; + private final @Nullable FlowsSettings settings; private final FlowsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -397,7 +398,7 @@ protected FlowsClient(FlowsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FlowsSettings getSettings() { + public final @Nullable FlowsSettings getSettings() { return settings; } @@ -449,7 +450,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param flow Required. The flow to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Flow createFlow(AgentName parent, Flow flow) { + public final Flow createFlow(@Nullable AgentName parent, Flow flow) { CreateFlowRequest request = CreateFlowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -578,7 +579,7 @@ public final UnaryCallable createFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFlow(FlowName name) { + public final void deleteFlow(@Nullable FlowName name) { DeleteFlowRequest request = DeleteFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFlow(request); @@ -692,7 +693,7 @@ public final UnaryCallable deleteFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFlowsPagedResponse listFlows(AgentName parent) { + public final ListFlowsPagedResponse listFlows(@Nullable AgentName parent) { ListFlowsRequest request = ListFlowsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFlows(request); @@ -853,7 +854,7 @@ public final UnaryCallable listFlowsCallabl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Flow getFlow(FlowName name) { + public final Flow getFlow(@Nullable FlowName name) { GetFlowRequest request = GetFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFlow(request); @@ -1075,7 +1076,7 @@ public final UnaryCallable updateFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainFlowAsync(FlowName name) { + public final OperationFuture trainFlowAsync(@Nullable FlowName name) { TrainFlowRequest request = TrainFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return trainFlowAsync(request); @@ -1323,7 +1324,8 @@ public final UnaryCallable validateFl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/validationResult`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FlowValidationResult getFlowValidationResult(FlowValidationResultName name) { + public final FlowValidationResult getFlowValidationResult( + @Nullable FlowValidationResultName name) { GetFlowValidationResultRequest request = GetFlowValidationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1914,8 +1916,8 @@ public static class ListFlowsPage extends AbstractPage { private ListFlowsPage( - PageContext context, - ListFlowsResponse response) { + @Nullable PageContext context, + @Nullable ListFlowsResponse response) { super(context, response); } @@ -1925,14 +1927,14 @@ private static ListFlowsPage createEmptyPage() { @Override protected ListFlowsPage createPage( - PageContext context, - ListFlowsResponse response) { + @Nullable PageContext context, + @Nullable ListFlowsResponse response) { return new ListFlowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1942,7 +1944,7 @@ public static class ListFlowsFixedSizeCollection extends AbstractFixedSizeCollection< ListFlowsRequest, ListFlowsResponse, Flow, ListFlowsPage, ListFlowsFixedSizeCollection> { - private ListFlowsFixedSizeCollection(List pages, int collectionSize) { + private ListFlowsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1952,7 +1954,7 @@ private static ListFlowsFixedSizeCollection createEmptyCollection() { @Override protected ListFlowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFlowsFixedSizeCollection(pages, collectionSize); } } @@ -1986,8 +1988,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1997,14 +1999,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2018,7 +2020,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2028,7 +2031,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java index 6c5c94381218..818c9a45ee96 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsSettings.java @@ -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. /** @@ -258,7 +259,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); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FlowsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java index 5a6e802affed..34a083b99f80 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java @@ -38,6 +38,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GeneratorsClient implements BackgroundResource { - private final GeneratorsSettings settings; + private final @Nullable GeneratorsSettings settings; private final GeneratorsStub stub; /** Constructs an instance of GeneratorsClient with default settings. */ @@ -289,7 +290,7 @@ protected GeneratorsClient(GeneratorsStub stub) { this.stub = stub; } - public final GeneratorsSettings getSettings() { + public final @Nullable GeneratorsSettings getSettings() { return settings; } @@ -321,7 +322,7 @@ public GeneratorsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGeneratorsPagedResponse listGenerators(AgentName parent) { + public final ListGeneratorsPagedResponse listGenerators(@Nullable AgentName parent) { ListGeneratorsRequest request = ListGeneratorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -487,7 +488,7 @@ public final ListGeneratorsPagedResponse listGenerators(ListGeneratorsRequest re * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator getGenerator(GeneratorName name) { + public final Generator getGenerator(@Nullable GeneratorName name) { GetGeneratorRequest request = GetGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGenerator(request); @@ -604,7 +605,7 @@ public final UnaryCallable getGeneratorCallable( * @param generator Required. The generator to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator createGenerator(AgentName parent, Generator generator) { + public final Generator createGenerator(@Nullable AgentName parent, Generator generator) { CreateGeneratorRequest request = CreateGeneratorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -816,7 +817,7 @@ public final UnaryCallable updateGeneratorCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGenerator(GeneratorName name) { + public final void deleteGenerator(@Nullable GeneratorName name) { DeleteGeneratorRequest request = DeleteGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGenerator(request); @@ -1159,8 +1160,8 @@ public static class ListGeneratorsPage ListGeneratorsRequest, ListGeneratorsResponse, Generator, ListGeneratorsPage> { private ListGeneratorsPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { super(context, response); } @@ -1170,14 +1171,14 @@ private static ListGeneratorsPage createEmptyPage() { @Override protected ListGeneratorsPage createPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { return new ListGeneratorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1191,7 +1192,8 @@ public static class ListGeneratorsFixedSizeCollection ListGeneratorsPage, ListGeneratorsFixedSizeCollection> { - private ListGeneratorsFixedSizeCollection(List pages, int collectionSize) { + private ListGeneratorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1201,7 +1203,7 @@ private static ListGeneratorsFixedSizeCollection createEmptyCollection() { @Override protected ListGeneratorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorsFixedSizeCollection(pages, collectionSize); } } @@ -1235,8 +1237,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1246,14 +1248,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1267,7 +1269,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1277,7 +1280,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsSettings.java index 9096817fff01..a0664739cde8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index 59054aef75f6..28ac105de288 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -43,6 +43,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. /** @@ -292,7 +293,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IntentsClient implements BackgroundResource { - private final IntentsSettings settings; + private final @Nullable IntentsSettings settings; private final IntentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -338,7 +339,7 @@ protected IntentsClient(IntentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IntentsSettings getSettings() { + public final @Nullable IntentsSettings getSettings() { return settings; } @@ -387,7 +388,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent) { + public final ListIntentsPagedResponse listIntents(@Nullable AgentName parent) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -554,7 +555,7 @@ public final UnaryCallable listIntentsC * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name) { + public final Intent getIntent(@Nullable IntentName name) { GetIntentRequest request = GetIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIntent(request); @@ -671,7 +672,7 @@ public final UnaryCallable getIntentCallable() { * @param intent Required. The intent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -901,7 +902,7 @@ public final UnaryCallable updateIntentCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIntent(IntentName name) { + public final void deleteIntent(@Nullable IntentName name) { DeleteIntentRequest request = DeleteIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIntent(request); @@ -1459,8 +1460,8 @@ public static class ListIntentsPage extends AbstractPage { private ListIntentsPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { super(context, response); } @@ -1470,14 +1471,14 @@ private static ListIntentsPage createEmptyPage() { @Override protected ListIntentsPage createPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { return new ListIntentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1491,7 +1492,8 @@ public static class ListIntentsFixedSizeCollection ListIntentsPage, ListIntentsFixedSizeCollection> { - private ListIntentsFixedSizeCollection(List pages, int collectionSize) { + private ListIntentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1501,7 +1503,7 @@ private static ListIntentsFixedSizeCollection createEmptyCollection() { @Override protected ListIntentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntentsFixedSizeCollection(pages, collectionSize); } } @@ -1535,8 +1537,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1546,14 +1548,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1567,7 +1569,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1577,7 +1580,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsSettings.java index 31e1259b8f33..67bd4a81466c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IntentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java index c85866e32a79..02b870dddd74 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java @@ -38,6 +38,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PagesClient implements BackgroundResource { - private final PagesSettings settings; + private final @Nullable PagesSettings settings; private final PagesStub stub; /** Constructs an instance of PagesClient with default settings. */ @@ -291,7 +292,7 @@ protected PagesClient(PagesStub stub) { this.stub = stub; } - public final PagesSettings getSettings() { + public final @Nullable PagesSettings getSettings() { return settings; } @@ -323,7 +324,7 @@ public PagesStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPagesPagedResponse listPages(FlowName parent) { + public final ListPagesPagedResponse listPages(@Nullable FlowName parent) { ListPagesRequest request = ListPagesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listPages(request); @@ -484,7 +485,7 @@ public final UnaryCallable listPagesCallabl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Page getPage(PageName name) { + public final Page getPage(@Nullable PageName name) { GetPageRequest request = GetPageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPage(request); @@ -604,7 +605,7 @@ public final UnaryCallable getPageCallable() { * @param page Required. The page to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Page createPage(FlowName parent, Page page) { + public final Page createPage(@Nullable FlowName parent, Page page) { CreatePageRequest request = CreatePageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -834,7 +835,7 @@ public final UnaryCallable updatePageCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/Flows/<flowID>/pages/<PageID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePage(PageName name) { + public final void deletePage(@Nullable PageName name) { DeletePageRequest request = DeletePageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePage(request); @@ -1178,8 +1179,8 @@ public static class ListPagesPage extends AbstractPage { private ListPagesPage( - PageContext context, - ListPagesResponse response) { + @Nullable PageContext context, + @Nullable ListPagesResponse response) { super(context, response); } @@ -1189,14 +1190,14 @@ private static ListPagesPage createEmptyPage() { @Override protected ListPagesPage createPage( - PageContext context, - ListPagesResponse response) { + @Nullable PageContext context, + @Nullable ListPagesResponse response) { return new ListPagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1206,7 +1207,7 @@ public static class ListPagesFixedSizeCollection extends AbstractFixedSizeCollection< ListPagesRequest, ListPagesResponse, Page, ListPagesPage, ListPagesFixedSizeCollection> { - private ListPagesFixedSizeCollection(List pages, int collectionSize) { + private ListPagesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1216,7 +1217,7 @@ private static ListPagesFixedSizeCollection createEmptyCollection() { @Override protected ListPagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPagesFixedSizeCollection(pages, collectionSize); } } @@ -1250,8 +1251,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1261,14 +1262,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1282,7 +1283,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1292,7 +1294,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesSettings.java index 8b49b6bc3ad7..babd4d9d3077 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PagesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java index 93f82770a481..5768c2be86f3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java @@ -44,6 +44,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. /** @@ -385,7 +386,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PlaybooksClient implements BackgroundResource { - private final PlaybooksSettings settings; + private final @Nullable PlaybooksSettings settings; private final PlaybooksStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -431,7 +432,7 @@ protected PlaybooksClient(PlaybooksStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PlaybooksSettings getSettings() { + public final @Nullable PlaybooksSettings getSettings() { return settings; } @@ -480,7 +481,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param playbook Required. The playbook to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Playbook createPlaybook(AgentName parent, Playbook playbook) { + public final Playbook createPlaybook(@Nullable AgentName parent, Playbook playbook) { CreatePlaybookRequest request = CreatePlaybookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -598,7 +599,7 @@ public final UnaryCallable createPlaybookCallab * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePlaybook(PlaybookName name) { + public final void deletePlaybook(@Nullable PlaybookName name) { DeletePlaybookRequest request = DeletePlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePlaybook(request); @@ -712,7 +713,7 @@ public final UnaryCallable deletePlaybookCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPlaybooksPagedResponse listPlaybooks(AgentName parent) { + public final ListPlaybooksPagedResponse listPlaybooks(@Nullable AgentName parent) { ListPlaybooksRequest request = ListPlaybooksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -873,7 +874,7 @@ public final UnaryCallable listPlay * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Playbook getPlaybook(PlaybookName name) { + public final Playbook getPlaybook(@Nullable PlaybookName name) { GetPlaybookRequest request = GetPlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPlaybook(request); @@ -1263,7 +1264,7 @@ public final UnaryCallable updatePlaybookCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PlaybookVersion createPlaybookVersion( - PlaybookName parent, PlaybookVersion playbookVersion) { + @Nullable PlaybookName parent, PlaybookVersion playbookVersion) { CreatePlaybookVersionRequest request = CreatePlaybookVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1391,7 +1392,7 @@ public final PlaybookVersion createPlaybookVersion(CreatePlaybookVersionRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PlaybookVersion getPlaybookVersion(PlaybookVersionName name) { + public final PlaybookVersion getPlaybookVersion(@Nullable PlaybookVersionName name) { GetPlaybookVersionRequest request = GetPlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1516,7 +1517,8 @@ public final PlaybookVersion getPlaybookVersion(GetPlaybookVersionRequest reques * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestorePlaybookVersionResponse restorePlaybookVersion(PlaybookVersionName name) { + public final RestorePlaybookVersionResponse restorePlaybookVersion( + @Nullable PlaybookVersionName name) { RestorePlaybookVersionRequest request = RestorePlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1645,7 +1647,8 @@ public final RestorePlaybookVersionResponse restorePlaybookVersion( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPlaybookVersionsPagedResponse listPlaybookVersions(PlaybookName parent) { + public final ListPlaybookVersionsPagedResponse listPlaybookVersions( + @Nullable PlaybookName parent) { ListPlaybookVersionsRequest request = ListPlaybookVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1816,7 +1819,7 @@ public final ListPlaybookVersionsPagedResponse listPlaybookVersions( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePlaybookVersion(PlaybookVersionName name) { + public final void deletePlaybookVersion(@Nullable PlaybookVersionName name) { DeletePlaybookVersionRequest request = DeletePlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2164,8 +2167,8 @@ public static class ListPlaybooksPage ListPlaybooksRequest, ListPlaybooksResponse, Playbook, ListPlaybooksPage> { private ListPlaybooksPage( - PageContext context, - ListPlaybooksResponse response) { + @Nullable PageContext context, + @Nullable ListPlaybooksResponse response) { super(context, response); } @@ -2175,14 +2178,14 @@ private static ListPlaybooksPage createEmptyPage() { @Override protected ListPlaybooksPage createPage( - PageContext context, - ListPlaybooksResponse response) { + @Nullable PageContext context, + @Nullable ListPlaybooksResponse response) { return new ListPlaybooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2196,7 +2199,8 @@ public static class ListPlaybooksFixedSizeCollection ListPlaybooksPage, ListPlaybooksFixedSizeCollection> { - private ListPlaybooksFixedSizeCollection(List pages, int collectionSize) { + private ListPlaybooksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2206,7 +2210,7 @@ private static ListPlaybooksFixedSizeCollection createEmptyCollection() { @Override protected ListPlaybooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPlaybooksFixedSizeCollection(pages, collectionSize); } } @@ -2244,9 +2248,10 @@ public static class ListPlaybookVersionsPage ListPlaybookVersionsPage> { private ListPlaybookVersionsPage( - PageContext + @Nullable + PageContext context, - ListPlaybookVersionsResponse response) { + @Nullable ListPlaybookVersionsResponse response) { super(context, response); } @@ -2256,15 +2261,17 @@ private static ListPlaybookVersionsPage createEmptyPage() { @Override protected ListPlaybookVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListPlaybookVersionsResponse response) { + @Nullable ListPlaybookVersionsResponse response) { return new ListPlaybookVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2280,7 +2287,7 @@ public static class ListPlaybookVersionsFixedSizeCollection ListPlaybookVersionsFixedSizeCollection> { private ListPlaybookVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2290,7 +2297,7 @@ private static ListPlaybookVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListPlaybookVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPlaybookVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2324,8 +2331,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2335,14 +2342,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2356,7 +2363,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2366,7 +2374,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java index ea00296dd520..86184a63584d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -290,7 +291,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PlaybooksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java index 257f7e8530be..02f3a310496b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java @@ -38,6 +38,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. /** @@ -259,7 +260,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecuritySettingsServiceClient implements BackgroundResource { - private final SecuritySettingsServiceSettings settings; + private final @Nullable SecuritySettingsServiceSettings settings; private final SecuritySettingsServiceStub stub; /** Constructs an instance of SecuritySettingsServiceClient with default settings. */ @@ -300,7 +301,7 @@ protected SecuritySettingsServiceClient(SecuritySettingsServiceStub stub) { this.stub = stub; } - public final SecuritySettingsServiceSettings getSettings() { + public final @Nullable SecuritySettingsServiceSettings getSettings() { return settings; } @@ -336,7 +337,7 @@ public SecuritySettingsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecuritySettings createSecuritySettings( - LocationName parent, SecuritySettings securitySettings) { + @Nullable LocationName parent, SecuritySettings securitySettings) { CreateSecuritySettingsRequest request = CreateSecuritySettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -468,7 +469,7 @@ public final SecuritySettings createSecuritySettings(CreateSecuritySettingsReque * `projects/<ProjectID>/locations/<LocationID>/securitySettings/<securitysettingsID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecuritySettings getSecuritySettings(SecuritySettingsName name) { + public final SecuritySettings getSecuritySettings(@Nullable SecuritySettingsName name) { GetSecuritySettingsRequest request = GetSecuritySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -696,7 +697,8 @@ public final SecuritySettings updateSecuritySettings(UpdateSecuritySettingsReque * `projects/<ProjectID>/locations/<LocationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecuritySettingsPagedResponse listSecuritySettings(LocationName parent) { + public final ListSecuritySettingsPagedResponse listSecuritySettings( + @Nullable LocationName parent) { ListSecuritySettingsRequest request = ListSecuritySettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -871,7 +873,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings( * `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSecuritySettings(SecuritySettingsName name) { + public final void deleteSecuritySettings(@Nullable SecuritySettingsName name) { DeleteSecuritySettingsRequest request = DeleteSecuritySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1234,9 +1236,10 @@ public static class ListSecuritySettingsPage ListSecuritySettingsPage> { private ListSecuritySettingsPage( - PageContext + @Nullable + PageContext context, - ListSecuritySettingsResponse response) { + @Nullable ListSecuritySettingsResponse response) { super(context, response); } @@ -1246,15 +1249,17 @@ private static ListSecuritySettingsPage createEmptyPage() { @Override protected ListSecuritySettingsPage createPage( - PageContext + @Nullable + PageContext context, - ListSecuritySettingsResponse response) { + @Nullable ListSecuritySettingsResponse response) { return new ListSecuritySettingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1270,7 +1275,7 @@ public static class ListSecuritySettingsFixedSizeCollection ListSecuritySettingsFixedSizeCollection> { private ListSecuritySettingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1280,7 +1285,7 @@ private static ListSecuritySettingsFixedSizeCollection createEmptyCollection() { @Override protected ListSecuritySettingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecuritySettingsFixedSizeCollection(pages, collectionSize); } } @@ -1314,8 +1319,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1325,14 +1330,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1346,7 +1351,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1356,7 +1362,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceSettings.java index dbe7ac3c09ed..83f33bb7c8ce 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -200,7 +201,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); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecuritySettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java index fceff9de0296..7f0c5c71a4df 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java @@ -38,6 +38,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. /** @@ -259,7 +260,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionEntityTypesClient implements BackgroundResource { - private final SessionEntityTypesSettings settings; + private final @Nullable SessionEntityTypesSettings settings; private final SessionEntityTypesStub stub; /** Constructs an instance of SessionEntityTypesClient with default settings. */ @@ -299,7 +300,7 @@ protected SessionEntityTypesClient(SessionEntityTypesStub stub) { this.stub = stub; } - public final SessionEntityTypesSettings getSettings() { + public final @Nullable SessionEntityTypesSettings getSettings() { return settings; } @@ -337,7 +338,8 @@ public SessionEntityTypesStub getStub() { * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionName parent) { + public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( + @Nullable SessionName parent) { ListSessionEntityTypesRequest request = ListSessionEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -525,7 +527,7 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SessionEntityType getSessionEntityType(SessionEntityTypeName name) { + public final SessionEntityType getSessionEntityType(@Nullable SessionEntityTypeName name) { GetSessionEntityTypeRequest request = GetSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -661,7 +663,7 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SessionEntityType createSessionEntityType( - SessionName parent, SessionEntityType sessionEntityType) { + @Nullable SessionName parent, SessionEntityType sessionEntityType) { CreateSessionEntityTypeRequest request = CreateSessionEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -900,7 +902,7 @@ public final SessionEntityType updateSessionEntityType(UpdateSessionEntityTypeRe * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSessionEntityType(SessionEntityTypeName name) { + public final void deleteSessionEntityType(@Nullable SessionEntityTypeName name) { DeleteSessionEntityTypeRequest request = DeleteSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1262,10 +1264,11 @@ public static class ListSessionEntityTypesPage ListSessionEntityTypesPage> { private ListSessionEntityTypesPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { super(context, response); } @@ -1275,16 +1278,18 @@ private static ListSessionEntityTypesPage createEmptyPage() { @Override protected ListSessionEntityTypesPage createPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { return new ListSessionEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, ApiFuture futureResponse) { @@ -1301,7 +1306,7 @@ public static class ListSessionEntityTypesFixedSizeCollection ListSessionEntityTypesFixedSizeCollection> { private ListSessionEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1311,7 +1316,7 @@ private static ListSessionEntityTypesFixedSizeCollection createEmptyCollection() @Override protected ListSessionEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1345,8 +1350,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1356,14 +1361,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1377,7 +1382,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1387,7 +1393,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesSettings.java index a3b6fdff3eeb..5e6525301ed4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,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); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionEntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java index c84d70dba03c..b5e35f13aa7d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java @@ -38,6 +38,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. /** @@ -246,7 +247,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionsClient implements BackgroundResource { - private final SessionsSettings settings; + private final @Nullable SessionsSettings settings; private final SessionsStub stub; /** Constructs an instance of SessionsClient with default settings. */ @@ -284,7 +285,7 @@ protected SessionsClient(SessionsStub stub) { this.stub = stub; } - public final SessionsSettings getSettings() { + public final @Nullable SessionsSettings getSettings() { return settings; } @@ -911,8 +912,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -922,14 +923,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -943,7 +944,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -953,7 +955,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java index e94cdcc75f99..8ac25eaf76c8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java index 0931059a0e6f..6df40d4bcf5d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java @@ -43,6 +43,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. /** @@ -378,7 +379,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TestCasesClient implements BackgroundResource { - private final TestCasesSettings settings; + private final @Nullable TestCasesSettings settings; private final TestCasesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -424,7 +425,7 @@ protected TestCasesClient(TestCasesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TestCasesSettings getSettings() { + public final @Nullable TestCasesSettings getSettings() { return settings; } @@ -473,7 +474,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTestCasesPagedResponse listTestCases(AgentName parent) { + public final ListTestCasesPagedResponse listTestCases(@Nullable AgentName parent) { ListTestCasesRequest request = ListTestCasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -634,7 +635,7 @@ public final UnaryCallable listTest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteTestCases(AgentName parent) { + public final void batchDeleteTestCases(@Nullable AgentName parent) { BatchDeleteTestCasesRequest request = BatchDeleteTestCasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -749,7 +750,7 @@ public final UnaryCallable batchDeleteTestCa * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCase getTestCase(TestCaseName name) { + public final TestCase getTestCase(@Nullable TestCaseName name) { GetTestCaseRequest request = GetTestCaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTestCase(request); @@ -863,7 +864,7 @@ public final UnaryCallable getTestCaseCallable() { * @param testCase Required. The test case to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCase createTestCase(AgentName parent, TestCase testCase) { + public final TestCase createTestCase(@Nullable AgentName parent, TestCase testCase) { CreateTestCaseRequest request = CreateTestCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1606,7 +1607,7 @@ public final UnaryCallable exportTestCasesCal * Specify a `-` as a wildcard for TestCase ID to list results across multiple test cases. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName parent) { + public final ListTestCaseResultsPagedResponse listTestCaseResults(@Nullable TestCaseName parent) { ListTestCaseResultsRequest request = ListTestCaseResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1785,7 +1786,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCaseResult getTestCaseResult(TestCaseResultName name) { + public final TestCaseResult getTestCaseResult(@Nullable TestCaseResultName name) { GetTestCaseResultRequest request = GetTestCaseResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2133,8 +2134,8 @@ public static class ListTestCasesPage ListTestCasesRequest, ListTestCasesResponse, TestCase, ListTestCasesPage> { private ListTestCasesPage( - PageContext context, - ListTestCasesResponse response) { + @Nullable PageContext context, + @Nullable ListTestCasesResponse response) { super(context, response); } @@ -2144,14 +2145,14 @@ private static ListTestCasesPage createEmptyPage() { @Override protected ListTestCasesPage createPage( - PageContext context, - ListTestCasesResponse response) { + @Nullable PageContext context, + @Nullable ListTestCasesResponse response) { return new ListTestCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2165,7 +2166,8 @@ public static class ListTestCasesFixedSizeCollection ListTestCasesPage, ListTestCasesFixedSizeCollection> { - private ListTestCasesFixedSizeCollection(List pages, int collectionSize) { + private ListTestCasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2175,7 +2177,7 @@ private static ListTestCasesFixedSizeCollection createEmptyCollection() { @Override protected ListTestCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTestCasesFixedSizeCollection(pages, collectionSize); } } @@ -2213,9 +2215,10 @@ public static class ListTestCaseResultsPage ListTestCaseResultsPage> { private ListTestCaseResultsPage( - PageContext + @Nullable + PageContext context, - ListTestCaseResultsResponse response) { + @Nullable ListTestCaseResultsResponse response) { super(context, response); } @@ -2225,15 +2228,17 @@ private static ListTestCaseResultsPage createEmptyPage() { @Override protected ListTestCaseResultsPage createPage( - PageContext + @Nullable + PageContext context, - ListTestCaseResultsResponse response) { + @Nullable ListTestCaseResultsResponse response) { return new ListTestCaseResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2249,7 +2254,7 @@ public static class ListTestCaseResultsFixedSizeCollection ListTestCaseResultsFixedSizeCollection> { private ListTestCaseResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2259,7 +2264,7 @@ private static ListTestCaseResultsFixedSizeCollection createEmptyCollection() { @Override protected ListTestCaseResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTestCaseResultsFixedSizeCollection(pages, collectionSize); } } @@ -2293,8 +2298,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2304,14 +2309,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2325,7 +2330,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2335,7 +2341,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java index 744686cabc25..36158a3fccce 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java @@ -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. /** @@ -280,7 +281,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); } @@ -300,7 +301,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TestCasesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java index 30f6549bc3d8..2634c036f674 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java @@ -38,6 +38,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. /** @@ -347,7 +348,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ToolsClient implements BackgroundResource { - private final ToolsSettings settings; + private final @Nullable ToolsSettings settings; private final ToolsStub stub; /** Constructs an instance of ToolsClient with default settings. */ @@ -385,7 +386,7 @@ protected ToolsClient(ToolsStub stub) { this.stub = stub; } - public final ToolsSettings getSettings() { + public final @Nullable ToolsSettings getSettings() { return settings; } @@ -417,7 +418,7 @@ public ToolsStub getStub() { * @param tool Required. The Tool to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AgentName parent, Tool tool) { + public final Tool createTool(@Nullable AgentName parent, Tool tool) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -537,7 +538,7 @@ public final UnaryCallable createToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(AgentName parent) { + public final ListToolsPagedResponse listTools(@Nullable AgentName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -695,7 +696,7 @@ public final UnaryCallable listToolsCallabl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -892,7 +893,7 @@ public final UnaryCallable updateToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -1006,7 +1007,7 @@ public final UnaryCallable deleteToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolVersionsPagedResponse listToolVersions(ToolName parent) { + public final ListToolVersionsPagedResponse listToolVersions(@Nullable ToolName parent) { ListToolVersionsRequest request = ListToolVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1172,7 +1173,7 @@ public final ListToolVersionsPagedResponse listToolVersions(ListToolVersionsRequ * @param toolVersion Required. The tool version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ToolVersion createToolVersion(ToolName parent, ToolVersion toolVersion) { + public final ToolVersion createToolVersion(@Nullable ToolName parent, ToolVersion toolVersion) { CreateToolVersionRequest request = CreateToolVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1291,7 +1292,7 @@ public final UnaryCallable createToolVers * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ToolVersion getToolVersion(ToolVersionName name) { + public final ToolVersion getToolVersion(@Nullable ToolVersionName name) { GetToolVersionRequest request = GetToolVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getToolVersion(request); @@ -1408,7 +1409,7 @@ public final UnaryCallable getToolVersionCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteToolVersion(ToolVersionName name) { + public final void deleteToolVersion(@Nullable ToolVersionName name) { DeleteToolVersionRequest request = DeleteToolVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1530,7 +1531,7 @@ public final UnaryCallable deleteToolVersionCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestoreToolVersionResponse restoreToolVersion(ToolVersionName name) { + public final RestoreToolVersionResponse restoreToolVersion(@Nullable ToolVersionName name) { RestoreToolVersionRequest request = RestoreToolVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1874,8 +1875,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -1885,14 +1886,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1902,7 +1903,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1912,7 +1913,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -1946,8 +1947,9 @@ public static class ListToolVersionsPage ListToolVersionsRequest, ListToolVersionsResponse, ToolVersion, ListToolVersionsPage> { private ListToolVersionsPage( - PageContext context, - ListToolVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListToolVersionsResponse response) { super(context, response); } @@ -1957,14 +1959,16 @@ private static ListToolVersionsPage createEmptyPage() { @Override protected ListToolVersionsPage createPage( - PageContext context, - ListToolVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListToolVersionsResponse response) { return new ListToolVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1979,7 +1983,7 @@ public static class ListToolVersionsFixedSizeCollection ListToolVersionsFixedSizeCollection> { private ListToolVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1989,7 +1993,7 @@ private static ListToolVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListToolVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2023,8 +2027,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2034,14 +2038,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2055,7 +2059,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2065,7 +2070,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsSettings.java index 57dc004d57ec..df7c286099dd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java index 7b492d4a1d24..cc14f7d1f175 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java @@ -38,6 +38,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. /** @@ -265,7 +266,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TransitionRouteGroupsClient implements BackgroundResource { - private final TransitionRouteGroupsSettings settings; + private final @Nullable TransitionRouteGroupsSettings settings; private final TransitionRouteGroupsStub stub; /** Constructs an instance of TransitionRouteGroupsClient with default settings. */ @@ -305,7 +306,7 @@ protected TransitionRouteGroupsClient(TransitionRouteGroupsStub stub) { this.stub = stub; } - public final TransitionRouteGroupsSettings getSettings() { + public final @Nullable TransitionRouteGroupsSettings getSettings() { return settings; } @@ -340,7 +341,8 @@ public TransitionRouteGroupsStub getStub() { * or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(AgentName parent) { + public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( + @Nullable AgentName parent) { ListTransitionRouteGroupsRequest request = ListTransitionRouteGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -375,7 +377,8 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(Ag * or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(FlowName parent) { + public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( + @Nullable FlowName parent) { ListTransitionRouteGroupsRequest request = ListTransitionRouteGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +562,8 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TransitionRouteGroup getTransitionRouteGroup(TransitionRouteGroupName name) { + public final TransitionRouteGroup getTransitionRouteGroup( + @Nullable TransitionRouteGroupName name) { GetTransitionRouteGroupRequest request = GetTransitionRouteGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -715,7 +719,7 @@ public final TransitionRouteGroup getTransitionRouteGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransitionRouteGroup createTransitionRouteGroup( - AgentName parent, TransitionRouteGroup transitionRouteGroup) { + @Nullable AgentName parent, TransitionRouteGroup transitionRouteGroup) { CreateTransitionRouteGroupRequest request = CreateTransitionRouteGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -758,7 +762,7 @@ public final TransitionRouteGroup createTransitionRouteGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransitionRouteGroup createTransitionRouteGroup( - FlowName parent, TransitionRouteGroup transitionRouteGroup) { + @Nullable FlowName parent, TransitionRouteGroup transitionRouteGroup) { CreateTransitionRouteGroupRequest request = CreateTransitionRouteGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1028,7 +1032,7 @@ public final TransitionRouteGroup updateTransitionRouteGroup( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTransitionRouteGroup(TransitionRouteGroupName name) { + public final void deleteTransitionRouteGroup(@Nullable TransitionRouteGroupName name) { DeleteTransitionRouteGroupRequest request = DeleteTransitionRouteGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1423,12 +1427,13 @@ public static class ListTransitionRouteGroupsPage ListTransitionRouteGroupsPage> { private ListTransitionRouteGroupsPage( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> context, - ListTransitionRouteGroupsResponse response) { + @Nullable ListTransitionRouteGroupsResponse response) { super(context, response); } @@ -1438,18 +1443,20 @@ private static ListTransitionRouteGroupsPage createEmptyPage() { @Override protected ListTransitionRouteGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> context, - ListTransitionRouteGroupsResponse response) { + @Nullable ListTransitionRouteGroupsResponse response) { return new ListTransitionRouteGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> @@ -1468,7 +1475,7 @@ public static class ListTransitionRouteGroupsFixedSizeCollection ListTransitionRouteGroupsFixedSizeCollection> { private ListTransitionRouteGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1478,7 +1485,7 @@ private static ListTransitionRouteGroupsFixedSizeCollection createEmptyCollectio @Override protected ListTransitionRouteGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransitionRouteGroupsFixedSizeCollection(pages, collectionSize); } } @@ -1512,8 +1519,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1523,14 +1530,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1544,7 +1551,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1554,7 +1562,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsSettings.java index f2aec8f82d26..9bd9a3c14a67 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -202,7 +203,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); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TransitionRouteGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java index f1fe0f7e4024..b9cbf89472a7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java @@ -44,6 +44,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. /** @@ -302,7 +303,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VersionsClient implements BackgroundResource { - private final VersionsSettings settings; + private final @Nullable VersionsSettings settings; private final VersionsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -348,7 +349,7 @@ protected VersionsClient(VersionsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VersionsSettings getSettings() { + public final @Nullable VersionsSettings getSettings() { return settings; } @@ -398,7 +399,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVersionsPagedResponse listVersions(FlowName parent) { + public final ListVersionsPagedResponse listVersions(@Nullable FlowName parent) { ListVersionsRequest request = ListVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -561,7 +562,7 @@ public final UnaryCallable listVersio * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version getVersion(VersionName name) { + public final Version getVersion(@Nullable VersionName name) { GetVersionRequest request = GetVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVersion(request); @@ -689,7 +690,7 @@ public final UnaryCallable getVersionCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVersionAsync( - FlowName parent, Version version) { + @Nullable FlowName parent, Version version) { CreateVersionRequest request = CreateVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -965,7 +966,7 @@ public final UnaryCallable updateVersionCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVersion(VersionName name) { + public final void deleteVersion(@Nullable VersionName name) { DeleteVersionRequest request = DeleteVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVersion(request); @@ -1092,7 +1093,7 @@ public final UnaryCallable deleteVersionCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture loadVersionAsync(VersionName name) { + public final OperationFuture loadVersionAsync(@Nullable VersionName name) { LoadVersionRequest request = LoadVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return loadVersionAsync(request); @@ -1280,7 +1281,7 @@ public final UnaryCallable loadVersionCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompareVersionsResponse compareVersions(VersionName baseVersion) { + public final CompareVersionsResponse compareVersions(@Nullable VersionName baseVersion) { CompareVersionsRequest request = CompareVersionsRequest.newBuilder() .setBaseVersion(baseVersion == null ? null : baseVersion.toString()) @@ -1636,8 +1637,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -1647,14 +1648,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1668,7 +1669,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1678,7 +1680,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1712,8 +1714,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1723,14 +1725,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1744,7 +1746,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1754,7 +1757,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java index e18212fc3487..2f7ea5efc49b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsSettings.java @@ -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. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java index 57dc5f7b1c18..d17a108d9c59 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java @@ -38,6 +38,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WebhooksClient implements BackgroundResource { - private final WebhooksSettings settings; + private final @Nullable WebhooksSettings settings; private final WebhooksStub stub; /** Constructs an instance of WebhooksClient with default settings. */ @@ -289,7 +290,7 @@ protected WebhooksClient(WebhooksStub stub) { this.stub = stub; } - public final WebhooksSettings getSettings() { + public final @Nullable WebhooksSettings getSettings() { return settings; } @@ -321,7 +322,7 @@ public WebhooksStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWebhooksPagedResponse listWebhooks(AgentName parent) { + public final ListWebhooksPagedResponse listWebhooks(@Nullable AgentName parent) { ListWebhooksRequest request = ListWebhooksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -482,7 +483,7 @@ public final UnaryCallable listWebhoo * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Webhook getWebhook(WebhookName name) { + public final Webhook getWebhook(@Nullable WebhookName name) { GetWebhookRequest request = GetWebhookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWebhook(request); @@ -594,7 +595,7 @@ public final UnaryCallable getWebhookCallable() { * @param webhook Required. The webhook to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Webhook createWebhook(AgentName parent, Webhook webhook) { + public final Webhook createWebhook(@Nullable AgentName parent, Webhook webhook) { CreateWebhookRequest request = CreateWebhookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -799,7 +800,7 @@ public final UnaryCallable updateWebhookCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWebhook(WebhookName name) { + public final void deleteWebhook(@Nullable WebhookName name) { DeleteWebhookRequest request = DeleteWebhookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWebhook(request); @@ -1137,8 +1138,8 @@ public static class ListWebhooksPage extends AbstractPage { private ListWebhooksPage( - PageContext context, - ListWebhooksResponse response) { + @Nullable PageContext context, + @Nullable ListWebhooksResponse response) { super(context, response); } @@ -1148,14 +1149,14 @@ private static ListWebhooksPage createEmptyPage() { @Override protected ListWebhooksPage createPage( - PageContext context, - ListWebhooksResponse response) { + @Nullable PageContext context, + @Nullable ListWebhooksResponse response) { return new ListWebhooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1169,7 +1170,8 @@ public static class ListWebhooksFixedSizeCollection ListWebhooksPage, ListWebhooksFixedSizeCollection> { - private ListWebhooksFixedSizeCollection(List pages, int collectionSize) { + private ListWebhooksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1179,7 +1181,7 @@ private static ListWebhooksFixedSizeCollection createEmptyCollection() { @Override protected ListWebhooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWebhooksFixedSizeCollection(pages, collectionSize); } } @@ -1213,8 +1215,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1224,14 +1226,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1245,7 +1247,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1255,7 +1258,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksSettings.java index d93a2469c6c4..b7788eb59a75 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebhooksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStub.java index c5d520653f03..53856b6ce6c8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class AgentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java index 207117e98cb9..422f80a745ed 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -473,7 +474,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); } @@ -588,7 +589,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAgentsSettings = PagedCallSettings.newBuilder(LIST_AGENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java index fce98b7f75d5..0e0c8d24f4c5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ChangelogsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,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); } @@ -431,7 +432,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listChangelogsSettings = PagedCallSettings.newBuilder(LIST_CHANGELOGS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java index 889c53b2203a..5430918ca60c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/DeploymentsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -361,7 +362,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); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java index b315239c9d69..bcb871d0b8d2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class EntityTypesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java index 9285b13d5f00..a3e0e21ca416 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,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); } @@ -550,7 +551,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java index bad5621d1d5f..e6cc0542079f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -62,11 +63,12 @@ @Generated("by gapic-generator-java") public abstract class EnvironmentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index cff08f8763cf..a0a0105c233e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -648,7 +649,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); } @@ -765,7 +766,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEnvironmentsSettings = PagedCallSettings.newBuilder(LIST_ENVIRONMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java index 5707187621db..307a712513e5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExamplesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java index d723e613ebbc..ecdbb41aa7ba 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -397,7 +398,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); } @@ -485,7 +486,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listExperimentsSettings = PagedCallSettings.newBuilder(LIST_EXPERIMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStub.java index 000dbd5a41da..5f8e16d7c434 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStub.java @@ -47,6 +47,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class FlowsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java index 8745c6a8c4f2..1b85310cf4e9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -468,7 +469,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); } @@ -568,7 +569,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFlowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java index ffb161e0b8cb..d2fa5aa00187 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GeneratorsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -461,7 +462,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGeneratorsSettings = PagedCallSettings.newBuilder(LIST_GENERATORS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStub.java index b7ca152fb9d6..893c04587d1b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class IntentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java index 6bebcaf0d835..cbae231f8f47 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -441,7 +442,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); } @@ -532,7 +533,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listIntentsSettings = PagedCallSettings.newBuilder(LIST_INTENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java index 89b7309a7b5e..3c2fcf115144 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -375,7 +376,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPagesSettings = PagedCallSettings.newBuilder(LIST_PAGES_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStub.java index 331b4a5864d7..d1f1b2e45307 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class PlaybooksStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java index 44406345d852..c0871a23b214 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PlaybooksStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -556,7 +557,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); } @@ -668,7 +669,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPlaybookSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java index ce4b42b492f4..f34616415458 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -405,7 +406,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); } @@ -491,7 +492,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSecuritySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java index 2f7b47fd8996..b94f83714696 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -410,7 +411,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); } @@ -496,7 +497,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSessionEntityTypesSettings = diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java index 4334107f7e72..a50b952d222d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -338,7 +339,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); } @@ -449,7 +450,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); detectIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java index c1f3d2e052e8..618b5cf64bfc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,11 +69,12 @@ @Generated("by gapic-generator-java") public abstract class TestCasesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java index 8c378c145cf8..0f23e6bb9e49 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -571,7 +572,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); } @@ -691,7 +692,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTestCasesSettings = PagedCallSettings.newBuilder(LIST_TEST_CASES_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java index 42ea4ab11d3c..f71ecb68dd41 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ToolsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -477,7 +478,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); } @@ -572,7 +573,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java index 1bc81063c841..f94f1ed10df1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -416,7 +417,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); } @@ -505,7 +506,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTransitionRouteGroupsSettings = diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java index 66d73bf149d8..1489651eb59f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class VersionsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java index 45ba4095555d..a358a0aee270 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -440,7 +441,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); } @@ -531,7 +532,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVersionsSettings = PagedCallSettings.newBuilder(LIST_VERSIONS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java index 52c1e06b0c54..afccdddfe17d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listWebhooksSettings = PagedCallSettings.newBuilder(LIST_WEBHOOKS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index 379d67549f67..ff5786eafc42 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -44,6 +44,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. /** @@ -365,7 +366,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AgentsClient implements BackgroundResource { - private final AgentsSettings settings; + private final @Nullable AgentsSettings settings; private final AgentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -411,7 +412,7 @@ protected AgentsClient(AgentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentsSettings getSettings() { + public final @Nullable AgentsSettings getSettings() { return settings; } @@ -460,7 +461,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentsPagedResponse listAgents(LocationName parent) { + public final ListAgentsPagedResponse listAgents(@Nullable LocationName parent) { ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAgents(request); @@ -618,7 +619,7 @@ public final UnaryCallable listAgentsCall * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(AgentName name) { + public final Agent getAgent(@Nullable AgentName name) { GetAgentRequest request = GetAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgent(request); @@ -733,7 +734,7 @@ public final UnaryCallable getAgentCallable() { * @param agent Required. The agent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent createAgent(LocationName parent, Agent agent) { + public final Agent createAgent(@Nullable LocationName parent, Agent agent) { CreateAgentRequest request = CreateAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -956,7 +957,7 @@ public final UnaryCallable updateAgentCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(AgentName name) { + public final void deleteAgent(@Nullable AgentName name) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAgent(request); @@ -1386,7 +1387,8 @@ public final UnaryCallable validate * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AgentValidationResult getAgentValidationResult(AgentValidationResultName name) { + public final AgentValidationResult getAgentValidationResult( + @Nullable AgentValidationResultName name) { GetAgentValidationResultRequest request = GetAgentValidationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1513,7 +1515,7 @@ public final AgentValidationResult getAgentValidationResult( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerativeSettings getGenerativeSettings( - AgentGenerativeSettingsName name, String languageCode) { + @Nullable AgentGenerativeSettingsName name, String languageCode) { GetGenerativeSettingsRequest request = GetGenerativeSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1957,8 +1959,8 @@ public static class ListAgentsPage extends AbstractPage { private ListAgentsPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { super(context, response); } @@ -1968,14 +1970,14 @@ private static ListAgentsPage createEmptyPage() { @Override protected ListAgentsPage createPage( - PageContext context, - ListAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListAgentsResponse response) { return new ListAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1989,7 +1991,8 @@ public static class ListAgentsFixedSizeCollection ListAgentsPage, ListAgentsFixedSizeCollection> { - private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1999,7 +2002,7 @@ private static ListAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2033,8 +2036,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2044,14 +2047,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2065,7 +2068,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2075,7 +2079,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsSettings.java index c2f2af6e4150..f28ba5a1260e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsSettings.java @@ -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. /** @@ -260,7 +261,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); } @@ -280,7 +281,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java index 1bdfd7d29100..bbb90bdccf30 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -37,6 +37,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. /** @@ -196,7 +197,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ChangelogsClient implements BackgroundResource { - private final ChangelogsSettings settings; + private final @Nullable ChangelogsSettings settings; private final ChangelogsStub stub; /** Constructs an instance of ChangelogsClient with default settings. */ @@ -234,7 +235,7 @@ protected ChangelogsClient(ChangelogsStub stub) { this.stub = stub; } - public final ChangelogsSettings getSettings() { + public final @Nullable ChangelogsSettings getSettings() { return settings; } @@ -266,7 +267,7 @@ public ChangelogsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChangelogsPagedResponse listChangelogs(AgentName parent) { + public final ListChangelogsPagedResponse listChangelogs(@Nullable AgentName parent) { ListChangelogsRequest request = ListChangelogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -432,7 +433,7 @@ public final ListChangelogsPagedResponse listChangelogs(ListChangelogsRequest re * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/changelogs/<ChangelogID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Changelog getChangelog(ChangelogName name) { + public final Changelog getChangelog(@Nullable ChangelogName name) { GetChangelogRequest request = GetChangelogRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChangelog(request); @@ -773,8 +774,8 @@ public static class ListChangelogsPage ListChangelogsRequest, ListChangelogsResponse, Changelog, ListChangelogsPage> { private ListChangelogsPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { super(context, response); } @@ -784,14 +785,14 @@ private static ListChangelogsPage createEmptyPage() { @Override protected ListChangelogsPage createPage( - PageContext context, - ListChangelogsResponse response) { + @Nullable PageContext context, + @Nullable ListChangelogsResponse response) { return new ListChangelogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -805,7 +806,8 @@ public static class ListChangelogsFixedSizeCollection ListChangelogsPage, ListChangelogsFixedSizeCollection> { - private ListChangelogsFixedSizeCollection(List pages, int collectionSize) { + private ListChangelogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -815,7 +817,7 @@ private static ListChangelogsFixedSizeCollection createEmptyCollection() { @Override protected ListChangelogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChangelogsFixedSizeCollection(pages, collectionSize); } } @@ -849,8 +851,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -860,14 +862,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -881,7 +883,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -891,7 +894,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java index 97a95ea72116..82922c7adef4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ChangelogsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java index 390b59b68de8..c4e86a8c709b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java @@ -38,6 +38,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. /** @@ -221,7 +222,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationHistoryClient implements BackgroundResource { - private final ConversationHistorySettings settings; + private final @Nullable ConversationHistorySettings settings; private final ConversationHistoryStub stub; /** Constructs an instance of ConversationHistoryClient with default settings. */ @@ -261,7 +262,7 @@ protected ConversationHistoryClient(ConversationHistoryStub stub) { this.stub = stub; } - public final ConversationHistorySettings getSettings() { + public final @Nullable ConversationHistorySettings getSettings() { return settings; } @@ -294,7 +295,7 @@ public ConversationHistoryStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(AgentName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable AgentName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -465,7 +466,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -582,7 +583,7 @@ public final UnaryCallable getConversation * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -934,8 +935,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -945,14 +947,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -967,7 +971,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -977,7 +981,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -1011,8 +1015,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1022,14 +1026,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1043,7 +1047,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1053,7 +1058,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistorySettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistorySettings.java index ee570d61a792..506edfc9f138 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistorySettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistorySettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,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); } @@ -202,7 +203,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationHistoryStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java index e93bebdca8be..a2b07cb64adc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -37,6 +37,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. /** @@ -197,7 +198,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DeploymentsClient implements BackgroundResource { - private final DeploymentsSettings settings; + private final @Nullable DeploymentsSettings settings; private final DeploymentsStub stub; /** Constructs an instance of DeploymentsClient with default settings. */ @@ -236,7 +237,7 @@ protected DeploymentsClient(DeploymentsStub stub) { this.stub = stub; } - public final DeploymentsSettings getSettings() { + public final @Nullable DeploymentsSettings getSettings() { return settings; } @@ -271,7 +272,7 @@ public DeploymentsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(EnvironmentName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable EnvironmentName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -449,7 +450,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -796,8 +797,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -807,14 +808,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -829,7 +830,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -839,7 +840,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -873,8 +874,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -884,14 +885,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -905,7 +906,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -915,7 +917,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java index 8e88eb2cc59d..739f8cf94a2e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeploymentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index 3da071df87ce..2dcc4c6d371c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -43,6 +43,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. /** @@ -291,7 +292,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EntityTypesClient implements BackgroundResource { - private final EntityTypesSettings settings; + private final @Nullable EntityTypesSettings settings; private final EntityTypesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -338,7 +339,7 @@ protected EntityTypesClient(EntityTypesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EntityTypesSettings getSettings() { + public final @Nullable EntityTypesSettings getSettings() { return settings; } @@ -386,7 +387,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -505,7 +506,7 @@ public final UnaryCallable getEntityTypeCallab * @param entityType Required. The entity type to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType createEntityType(AgentName parent, EntityType entityType) { + public final EntityType createEntityType(@Nullable AgentName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -731,7 +732,7 @@ public final UnaryCallable updateEntityType * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntityType(EntityTypeName name) { + public final void deleteEntityType(@Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntityType(request); @@ -859,7 +860,7 @@ public final UnaryCallable deleteEntityTypeCalla * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable AgentName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1443,8 +1444,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -1454,14 +1455,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1476,7 +1477,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1487,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1520,8 +1521,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1531,14 +1532,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1552,7 +1553,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1562,7 +1564,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java index 50f7b206ca06..bbe187beec19 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,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); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java index 820e0cd5d751..e18acc3092d8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java @@ -44,6 +44,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. /** @@ -340,7 +341,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -387,7 +388,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -438,7 +439,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { + public final ListEnvironmentsPagedResponse listEnvironments(@Nullable AgentName parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -610,7 +611,7 @@ public final ListEnvironmentsPagedResponse listEnvironments(ListEnvironmentsRequ * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Environment getEnvironment(EnvironmentName name) { + public final Environment getEnvironment(@Nullable EnvironmentName name) { GetEnvironmentRequest request = GetEnvironmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEnvironment(request); @@ -740,7 +741,7 @@ public final UnaryCallable getEnvironmentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnvironmentAsync( - AgentName parent, Environment environment) { + @Nullable AgentName parent, Environment environment) { CreateEnvironmentRequest request = CreateEnvironmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1085,7 +1086,7 @@ public final UnaryCallable updateEnvironmen * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEnvironment(EnvironmentName name) { + public final void deleteEnvironment(@Nullable EnvironmentName name) { DeleteEnvironmentRequest request = DeleteEnvironmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1208,7 +1209,7 @@ public final UnaryCallable deleteEnvironmentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( - EnvironmentName name) { + @Nullable EnvironmentName name) { LookupEnvironmentHistoryRequest request = LookupEnvironmentHistoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1514,7 +1515,7 @@ public final UnaryCallable runContinuousTes * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListContinuousTestResultsPagedResponse listContinuousTestResults( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListContinuousTestResultsRequest request = ListContinuousTestResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2039,8 +2040,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -2050,14 +2052,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2072,7 +2076,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2082,7 +2086,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -2120,9 +2124,11 @@ public static class LookupEnvironmentHistoryPage LookupEnvironmentHistoryPage> { private LookupEnvironmentHistoryPage( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, - LookupEnvironmentHistoryResponse response) { + @Nullable LookupEnvironmentHistoryResponse response) { super(context, response); } @@ -2132,15 +2138,19 @@ private static LookupEnvironmentHistoryPage createEmptyPage() { @Override protected LookupEnvironmentHistoryPage createPage( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, - LookupEnvironmentHistoryResponse response) { + @Nullable LookupEnvironmentHistoryResponse response) { return new LookupEnvironmentHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryResponse, Environment> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2156,7 +2166,7 @@ public static class LookupEnvironmentHistoryFixedSizeCollection LookupEnvironmentHistoryFixedSizeCollection> { private LookupEnvironmentHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2166,7 +2176,7 @@ private static LookupEnvironmentHistoryFixedSizeCollection createEmptyCollection @Override protected LookupEnvironmentHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new LookupEnvironmentHistoryFixedSizeCollection(pages, collectionSize); } } @@ -2207,12 +2217,13 @@ public static class ListContinuousTestResultsPage ListContinuousTestResultsPage> { private ListContinuousTestResultsPage( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> context, - ListContinuousTestResultsResponse response) { + @Nullable ListContinuousTestResultsResponse response) { super(context, response); } @@ -2222,18 +2233,20 @@ private static ListContinuousTestResultsPage createEmptyPage() { @Override protected ListContinuousTestResultsPage createPage( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> context, - ListContinuousTestResultsResponse response) { + @Nullable ListContinuousTestResultsResponse response) { return new ListContinuousTestResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> @@ -2252,7 +2265,7 @@ public static class ListContinuousTestResultsFixedSizeCollection ListContinuousTestResultsFixedSizeCollection> { private ListContinuousTestResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2262,7 +2275,7 @@ private static ListContinuousTestResultsFixedSizeCollection createEmptyCollectio @Override protected ListContinuousTestResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContinuousTestResultsFixedSizeCollection(pages, collectionSize); } } @@ -2296,8 +2309,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2307,14 +2320,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2328,7 +2341,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2338,7 +2352,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java index 44bc6274e7d6..5e97f4df0a2f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -293,7 +294,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java index 42f191f8964e..3e38458b6f9c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java @@ -39,6 +39,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. /** @@ -254,7 +255,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExamplesClient implements BackgroundResource { - private final ExamplesSettings settings; + private final @Nullable ExamplesSettings settings; private final ExamplesStub stub; /** Constructs an instance of ExamplesClient with default settings. */ @@ -292,7 +293,7 @@ protected ExamplesClient(ExamplesStub stub) { this.stub = stub; } - public final ExamplesSettings getSettings() { + public final @Nullable ExamplesSettings getSettings() { return settings; } @@ -324,7 +325,7 @@ public ExamplesStub getStub() { * @param example Required. The example to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example createExample(PlaybookName parent, Example example) { + public final Example createExample(@Nullable PlaybookName parent, Example example) { CreateExampleRequest request = CreateExampleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -446,7 +447,7 @@ public final UnaryCallable createExampleCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExample(ExampleName name) { + public final void deleteExample(@Nullable ExampleName name) { DeleteExampleRequest request = DeleteExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExample(request); @@ -564,7 +565,7 @@ public final UnaryCallable deleteExampleCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(PlaybookName parent) { + public final ListExamplesPagedResponse listExamples(@Nullable PlaybookName parent) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -733,7 +734,7 @@ public final UnaryCallable listExampl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/examples/<ExampleID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Example getExample(ExampleName name) { + public final Example getExample(@Nullable ExampleName name) { GetExampleRequest request = GetExampleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExample(request); @@ -1162,8 +1163,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -1173,14 +1174,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1194,7 +1195,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1204,7 +1206,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -1238,8 +1240,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1249,14 +1251,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1270,7 +1272,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1280,7 +1283,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesSettings.java index ac8facd6eac0..d298c815b1eb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExamplesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index 1d8f42097d5e..21832334e4fe 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -39,6 +39,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. /** @@ -293,7 +294,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExperimentsClient implements BackgroundResource { - private final ExperimentsSettings settings; + private final @Nullable ExperimentsSettings settings; private final ExperimentsStub stub; /** Constructs an instance of ExperimentsClient with default settings. */ @@ -332,7 +333,7 @@ protected ExperimentsClient(ExperimentsStub stub) { this.stub = stub; } - public final ExperimentsSettings getSettings() { + public final @Nullable ExperimentsSettings getSettings() { return settings; } @@ -367,7 +368,7 @@ public ExperimentsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExperimentsPagedResponse listExperiments(EnvironmentName parent) { + public final ListExperimentsPagedResponse listExperiments(@Nullable EnvironmentName parent) { ListExperimentsRequest request = ListExperimentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -545,7 +546,7 @@ public final ListExperimentsPagedResponse listExperiments(ListExperimentsRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment getExperiment(ExperimentName name) { + public final Experiment getExperiment(@Nullable ExperimentName name) { GetExperimentRequest request = GetExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExperiment(request); @@ -669,7 +670,8 @@ public final UnaryCallable getExperimentCallab * @param experiment Required. The experiment to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment createExperiment(EnvironmentName parent, Experiment experiment) { + public final Experiment createExperiment( + @Nullable EnvironmentName parent, Experiment experiment) { CreateExperimentRequest request = CreateExperimentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -889,7 +891,7 @@ public final UnaryCallable updateExperiment * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExperiment(ExperimentName name) { + public final void deleteExperiment(@Nullable ExperimentName name) { DeleteExperimentRequest request = DeleteExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExperiment(request); @@ -1010,7 +1012,7 @@ public final UnaryCallable deleteExperimentCalla * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment startExperiment(ExperimentName name) { + public final Experiment startExperiment(@Nullable ExperimentName name) { StartExperimentRequest request = StartExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startExperiment(request); @@ -1134,7 +1136,7 @@ public final UnaryCallable startExperimentCa * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Experiment stopExperiment(ExperimentName name) { + public final Experiment stopExperiment(@Nullable ExperimentName name) { StopExperimentRequest request = StopExperimentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopExperiment(request); @@ -1483,8 +1485,8 @@ public static class ListExperimentsPage ListExperimentsRequest, ListExperimentsResponse, Experiment, ListExperimentsPage> { private ListExperimentsPage( - PageContext context, - ListExperimentsResponse response) { + @Nullable PageContext context, + @Nullable ListExperimentsResponse response) { super(context, response); } @@ -1494,14 +1496,14 @@ private static ListExperimentsPage createEmptyPage() { @Override protected ListExperimentsPage createPage( - PageContext context, - ListExperimentsResponse response) { + @Nullable PageContext context, + @Nullable ListExperimentsResponse response) { return new ListExperimentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1516,7 +1518,7 @@ public static class ListExperimentsFixedSizeCollection ListExperimentsFixedSizeCollection> { private ListExperimentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1526,7 +1528,7 @@ private static ListExperimentsFixedSizeCollection createEmptyCollection() { @Override protected ListExperimentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExperimentsFixedSizeCollection(pages, collectionSize); } } @@ -1560,8 +1562,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1571,14 +1573,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1592,7 +1594,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1602,7 +1605,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsSettings.java index 67bc951b4c1f..2d7d5ad7f92f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExperimentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java index d6d979d76e9c..a7a30fd03d21 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java @@ -44,6 +44,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. /** @@ -352,7 +353,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FlowsClient implements BackgroundResource { - private final FlowsSettings settings; + private final @Nullable FlowsSettings settings; private final FlowsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -398,7 +399,7 @@ protected FlowsClient(FlowsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FlowsSettings getSettings() { + public final @Nullable FlowsSettings getSettings() { return settings; } @@ -450,7 +451,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param flow Required. The flow to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Flow createFlow(AgentName parent, Flow flow) { + public final Flow createFlow(@Nullable AgentName parent, Flow flow) { CreateFlowRequest request = CreateFlowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -579,7 +580,7 @@ public final UnaryCallable createFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFlow(FlowName name) { + public final void deleteFlow(@Nullable FlowName name) { DeleteFlowRequest request = DeleteFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFlow(request); @@ -693,7 +694,7 @@ public final UnaryCallable deleteFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFlowsPagedResponse listFlows(AgentName parent) { + public final ListFlowsPagedResponse listFlows(@Nullable AgentName parent) { ListFlowsRequest request = ListFlowsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFlows(request); @@ -854,7 +855,7 @@ public final UnaryCallable listFlowsCallabl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Flow getFlow(FlowName name) { + public final Flow getFlow(@Nullable FlowName name) { GetFlowRequest request = GetFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFlow(request); @@ -1076,7 +1077,7 @@ public final UnaryCallable updateFlowCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainFlowAsync(FlowName name) { + public final OperationFuture trainFlowAsync(@Nullable FlowName name) { TrainFlowRequest request = TrainFlowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return trainFlowAsync(request); @@ -1324,7 +1325,8 @@ public final UnaryCallable validateFl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/validationResult`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FlowValidationResult getFlowValidationResult(FlowValidationResultName name) { + public final FlowValidationResult getFlowValidationResult( + @Nullable FlowValidationResultName name) { GetFlowValidationResultRequest request = GetFlowValidationResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1915,8 +1917,8 @@ public static class ListFlowsPage extends AbstractPage { private ListFlowsPage( - PageContext context, - ListFlowsResponse response) { + @Nullable PageContext context, + @Nullable ListFlowsResponse response) { super(context, response); } @@ -1926,14 +1928,14 @@ private static ListFlowsPage createEmptyPage() { @Override protected ListFlowsPage createPage( - PageContext context, - ListFlowsResponse response) { + @Nullable PageContext context, + @Nullable ListFlowsResponse response) { return new ListFlowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1943,7 +1945,7 @@ public static class ListFlowsFixedSizeCollection extends AbstractFixedSizeCollection< ListFlowsRequest, ListFlowsResponse, Flow, ListFlowsPage, ListFlowsFixedSizeCollection> { - private ListFlowsFixedSizeCollection(List pages, int collectionSize) { + private ListFlowsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1953,7 +1955,7 @@ private static ListFlowsFixedSizeCollection createEmptyCollection() { @Override protected ListFlowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFlowsFixedSizeCollection(pages, collectionSize); } } @@ -1987,8 +1989,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1998,14 +2000,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2019,7 +2021,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2029,7 +2032,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsSettings.java index 3b6a93dc3f82..755735a6fa38 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsSettings.java @@ -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. /** @@ -259,7 +260,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); } @@ -279,7 +280,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FlowsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java index fd1a2d1e725b..5e2e9e09e178 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java @@ -39,6 +39,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. /** @@ -254,7 +255,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GeneratorsClient implements BackgroundResource { - private final GeneratorsSettings settings; + private final @Nullable GeneratorsSettings settings; private final GeneratorsStub stub; /** Constructs an instance of GeneratorsClient with default settings. */ @@ -292,7 +293,7 @@ protected GeneratorsClient(GeneratorsStub stub) { this.stub = stub; } - public final GeneratorsSettings getSettings() { + public final @Nullable GeneratorsSettings getSettings() { return settings; } @@ -324,7 +325,7 @@ public GeneratorsStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGeneratorsPagedResponse listGenerators(AgentName parent) { + public final ListGeneratorsPagedResponse listGenerators(@Nullable AgentName parent) { ListGeneratorsRequest request = ListGeneratorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -490,7 +491,7 @@ public final ListGeneratorsPagedResponse listGenerators(ListGeneratorsRequest re * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator getGenerator(GeneratorName name) { + public final Generator getGenerator(@Nullable GeneratorName name) { GetGeneratorRequest request = GetGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGenerator(request); @@ -607,7 +608,7 @@ public final UnaryCallable getGeneratorCallable( * @param generator Required. The generator to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator createGenerator(AgentName parent, Generator generator) { + public final Generator createGenerator(@Nullable AgentName parent, Generator generator) { CreateGeneratorRequest request = CreateGeneratorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final UnaryCallable updateGeneratorCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGenerator(GeneratorName name) { + public final void deleteGenerator(@Nullable GeneratorName name) { DeleteGeneratorRequest request = DeleteGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGenerator(request); @@ -1162,8 +1163,8 @@ public static class ListGeneratorsPage ListGeneratorsRequest, ListGeneratorsResponse, Generator, ListGeneratorsPage> { private ListGeneratorsPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { super(context, response); } @@ -1173,14 +1174,14 @@ private static ListGeneratorsPage createEmptyPage() { @Override protected ListGeneratorsPage createPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { return new ListGeneratorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1194,7 +1195,8 @@ public static class ListGeneratorsFixedSizeCollection ListGeneratorsPage, ListGeneratorsFixedSizeCollection> { - private ListGeneratorsFixedSizeCollection(List pages, int collectionSize) { + private ListGeneratorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1204,7 +1206,7 @@ private static ListGeneratorsFixedSizeCollection createEmptyCollection() { @Override protected ListGeneratorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorsFixedSizeCollection(pages, collectionSize); } } @@ -1238,8 +1240,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1249,14 +1251,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1270,7 +1272,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1280,7 +1283,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsSettings.java index 941cfd00f1ef..be26616c6492 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index 67e6004edac6..1488970ef770 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -43,6 +43,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. /** @@ -293,7 +294,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IntentsClient implements BackgroundResource { - private final IntentsSettings settings; + private final @Nullable IntentsSettings settings; private final IntentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -339,7 +340,7 @@ protected IntentsClient(IntentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IntentsSettings getSettings() { + public final @Nullable IntentsSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent) { + public final ListIntentsPagedResponse listIntents(@Nullable AgentName parent) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -555,7 +556,7 @@ public final UnaryCallable listIntentsC * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name) { + public final Intent getIntent(@Nullable IntentName name) { GetIntentRequest request = GetIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIntent(request); @@ -672,7 +673,7 @@ public final UnaryCallable getIntentCallable() { * @param intent Required. The intent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -902,7 +903,7 @@ public final UnaryCallable updateIntentCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIntent(IntentName name) { + public final void deleteIntent(@Nullable IntentName name) { DeleteIntentRequest request = DeleteIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIntent(request); @@ -1466,8 +1467,8 @@ public static class ListIntentsPage extends AbstractPage { private ListIntentsPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { super(context, response); } @@ -1477,14 +1478,14 @@ private static ListIntentsPage createEmptyPage() { @Override protected ListIntentsPage createPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { return new ListIntentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1498,7 +1499,8 @@ public static class ListIntentsFixedSizeCollection ListIntentsPage, ListIntentsFixedSizeCollection> { - private ListIntentsFixedSizeCollection(List pages, int collectionSize) { + private ListIntentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1508,7 +1510,7 @@ private static ListIntentsFixedSizeCollection createEmptyCollection() { @Override protected ListIntentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntentsFixedSizeCollection(pages, collectionSize); } } @@ -1542,8 +1544,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1553,14 +1555,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1574,7 +1576,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1584,7 +1587,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsSettings.java index 6f6cb283620f..0f3554cf5d8b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IntentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java index a86e6fd1ae2b..474fe64fea87 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java @@ -39,6 +39,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. /** @@ -252,7 +253,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PagesClient implements BackgroundResource { - private final PagesSettings settings; + private final @Nullable PagesSettings settings; private final PagesStub stub; /** Constructs an instance of PagesClient with default settings. */ @@ -290,7 +291,7 @@ protected PagesClient(PagesStub stub) { this.stub = stub; } - public final PagesSettings getSettings() { + public final @Nullable PagesSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public PagesStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPagesPagedResponse listPages(FlowName parent) { + public final ListPagesPagedResponse listPages(@Nullable FlowName parent) { ListPagesRequest request = ListPagesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listPages(request); @@ -483,7 +484,7 @@ public final UnaryCallable listPagesCallabl * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Page getPage(PageName name) { + public final Page getPage(@Nullable PageName name) { GetPageRequest request = GetPageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPage(request); @@ -600,7 +601,7 @@ public final UnaryCallable getPageCallable() { * @param page Required. The page to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Page createPage(FlowName parent, Page page) { + public final Page createPage(@Nullable FlowName parent, Page page) { CreatePageRequest request = CreatePageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -809,7 +810,7 @@ public final UnaryCallable updatePageCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/Flows/<flowID>/pages/<PageID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePage(PageName name) { + public final void deletePage(@Nullable PageName name) { DeletePageRequest request = DeletePageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePage(request); @@ -1144,8 +1145,8 @@ public static class ListPagesPage extends AbstractPage { private ListPagesPage( - PageContext context, - ListPagesResponse response) { + @Nullable PageContext context, + @Nullable ListPagesResponse response) { super(context, response); } @@ -1155,14 +1156,14 @@ private static ListPagesPage createEmptyPage() { @Override protected ListPagesPage createPage( - PageContext context, - ListPagesResponse response) { + @Nullable PageContext context, + @Nullable ListPagesResponse response) { return new ListPagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1172,7 +1173,7 @@ public static class ListPagesFixedSizeCollection extends AbstractFixedSizeCollection< ListPagesRequest, ListPagesResponse, Page, ListPagesPage, ListPagesFixedSizeCollection> { - private ListPagesFixedSizeCollection(List pages, int collectionSize) { + private ListPagesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1182,7 +1183,7 @@ private static ListPagesFixedSizeCollection createEmptyCollection() { @Override protected ListPagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPagesFixedSizeCollection(pages, collectionSize); } } @@ -1216,8 +1217,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1227,14 +1228,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1248,7 +1249,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1258,7 +1260,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesSettings.java index 68ec43c72515..22728ab03550 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PagesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java index 5da1cdf7e97d..0014ae541dde 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java @@ -44,6 +44,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. /** @@ -387,7 +388,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PlaybooksClient implements BackgroundResource { - private final PlaybooksSettings settings; + private final @Nullable PlaybooksSettings settings; private final PlaybooksStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -433,7 +434,7 @@ protected PlaybooksClient(PlaybooksStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PlaybooksSettings getSettings() { + public final @Nullable PlaybooksSettings getSettings() { return settings; } @@ -482,7 +483,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param playbook Required. The playbook to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Playbook createPlaybook(AgentName parent, Playbook playbook) { + public final Playbook createPlaybook(@Nullable AgentName parent, Playbook playbook) { CreatePlaybookRequest request = CreatePlaybookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -600,7 +601,7 @@ public final UnaryCallable createPlaybookCallab * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePlaybook(PlaybookName name) { + public final void deletePlaybook(@Nullable PlaybookName name) { DeletePlaybookRequest request = DeletePlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePlaybook(request); @@ -714,7 +715,7 @@ public final UnaryCallable deletePlaybookCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPlaybooksPagedResponse listPlaybooks(AgentName parent) { + public final ListPlaybooksPagedResponse listPlaybooks(@Nullable AgentName parent) { ListPlaybooksRequest request = ListPlaybooksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -875,7 +876,7 @@ public final UnaryCallable listPlay * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Playbook getPlaybook(PlaybookName name) { + public final Playbook getPlaybook(@Nullable PlaybookName name) { GetPlaybookRequest request = GetPlaybookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPlaybook(request); @@ -1265,7 +1266,7 @@ public final UnaryCallable updatePlaybookCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PlaybookVersion createPlaybookVersion( - PlaybookName parent, PlaybookVersion playbookVersion) { + @Nullable PlaybookName parent, PlaybookVersion playbookVersion) { CreatePlaybookVersionRequest request = CreatePlaybookVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1393,7 +1394,7 @@ public final PlaybookVersion createPlaybookVersion(CreatePlaybookVersionRequest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PlaybookVersion getPlaybookVersion(PlaybookVersionName name) { + public final PlaybookVersion getPlaybookVersion(@Nullable PlaybookVersionName name) { GetPlaybookVersionRequest request = GetPlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1518,7 +1519,8 @@ public final PlaybookVersion getPlaybookVersion(GetPlaybookVersionRequest reques * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestorePlaybookVersionResponse restorePlaybookVersion(PlaybookVersionName name) { + public final RestorePlaybookVersionResponse restorePlaybookVersion( + @Nullable PlaybookVersionName name) { RestorePlaybookVersionRequest request = RestorePlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1647,7 +1649,8 @@ public final RestorePlaybookVersionResponse restorePlaybookVersion( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPlaybookVersionsPagedResponse listPlaybookVersions(PlaybookName parent) { + public final ListPlaybookVersionsPagedResponse listPlaybookVersions( + @Nullable PlaybookName parent) { ListPlaybookVersionsRequest request = ListPlaybookVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1818,7 +1821,7 @@ public final ListPlaybookVersionsPagedResponse listPlaybookVersions( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePlaybookVersion(PlaybookVersionName name) { + public final void deletePlaybookVersion(@Nullable PlaybookVersionName name) { DeletePlaybookVersionRequest request = DeletePlaybookVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2166,8 +2169,8 @@ public static class ListPlaybooksPage ListPlaybooksRequest, ListPlaybooksResponse, Playbook, ListPlaybooksPage> { private ListPlaybooksPage( - PageContext context, - ListPlaybooksResponse response) { + @Nullable PageContext context, + @Nullable ListPlaybooksResponse response) { super(context, response); } @@ -2177,14 +2180,14 @@ private static ListPlaybooksPage createEmptyPage() { @Override protected ListPlaybooksPage createPage( - PageContext context, - ListPlaybooksResponse response) { + @Nullable PageContext context, + @Nullable ListPlaybooksResponse response) { return new ListPlaybooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2198,7 +2201,8 @@ public static class ListPlaybooksFixedSizeCollection ListPlaybooksPage, ListPlaybooksFixedSizeCollection> { - private ListPlaybooksFixedSizeCollection(List pages, int collectionSize) { + private ListPlaybooksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2208,7 +2212,7 @@ private static ListPlaybooksFixedSizeCollection createEmptyCollection() { @Override protected ListPlaybooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPlaybooksFixedSizeCollection(pages, collectionSize); } } @@ -2246,9 +2250,10 @@ public static class ListPlaybookVersionsPage ListPlaybookVersionsPage> { private ListPlaybookVersionsPage( - PageContext + @Nullable + PageContext context, - ListPlaybookVersionsResponse response) { + @Nullable ListPlaybookVersionsResponse response) { super(context, response); } @@ -2258,15 +2263,17 @@ private static ListPlaybookVersionsPage createEmptyPage() { @Override protected ListPlaybookVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListPlaybookVersionsResponse response) { + @Nullable ListPlaybookVersionsResponse response) { return new ListPlaybookVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2282,7 +2289,7 @@ public static class ListPlaybookVersionsFixedSizeCollection ListPlaybookVersionsFixedSizeCollection> { private ListPlaybookVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2292,7 +2299,7 @@ private static ListPlaybookVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListPlaybookVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPlaybookVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2326,8 +2333,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2337,14 +2344,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2358,7 +2365,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2368,7 +2376,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksSettings.java index c1303ca4dd55..c33cb2031d59 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,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); } @@ -291,7 +292,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PlaybooksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java index 51bdd09d52de..692f245834eb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java @@ -39,6 +39,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. /** @@ -261,7 +262,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecuritySettingsServiceClient implements BackgroundResource { - private final SecuritySettingsServiceSettings settings; + private final @Nullable SecuritySettingsServiceSettings settings; private final SecuritySettingsServiceStub stub; /** Constructs an instance of SecuritySettingsServiceClient with default settings. */ @@ -302,7 +303,7 @@ protected SecuritySettingsServiceClient(SecuritySettingsServiceStub stub) { this.stub = stub; } - public final SecuritySettingsServiceSettings getSettings() { + public final @Nullable SecuritySettingsServiceSettings getSettings() { return settings; } @@ -338,7 +339,7 @@ public SecuritySettingsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecuritySettings createSecuritySettings( - LocationName parent, SecuritySettings securitySettings) { + @Nullable LocationName parent, SecuritySettings securitySettings) { CreateSecuritySettingsRequest request = CreateSecuritySettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -471,7 +472,7 @@ public final SecuritySettings createSecuritySettings(CreateSecuritySettingsReque * `projects/<ProjectID>/locations/<LocationID>/securitySettings/<securitysettingsID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecuritySettings getSecuritySettings(SecuritySettingsName name) { + public final SecuritySettings getSecuritySettings(@Nullable SecuritySettingsName name) { GetSecuritySettingsRequest request = GetSecuritySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -702,7 +703,8 @@ public final SecuritySettings updateSecuritySettings(UpdateSecuritySettingsReque * `projects/<ProjectID>/locations/<LocationID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecuritySettingsPagedResponse listSecuritySettings(LocationName parent) { + public final ListSecuritySettingsPagedResponse listSecuritySettings( + @Nullable LocationName parent) { ListSecuritySettingsRequest request = ListSecuritySettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -877,7 +879,7 @@ public final ListSecuritySettingsPagedResponse listSecuritySettings( * `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSecuritySettings(SecuritySettingsName name) { + public final void deleteSecuritySettings(@Nullable SecuritySettingsName name) { DeleteSecuritySettingsRequest request = DeleteSecuritySettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1240,9 +1242,10 @@ public static class ListSecuritySettingsPage ListSecuritySettingsPage> { private ListSecuritySettingsPage( - PageContext + @Nullable + PageContext context, - ListSecuritySettingsResponse response) { + @Nullable ListSecuritySettingsResponse response) { super(context, response); } @@ -1252,15 +1255,17 @@ private static ListSecuritySettingsPage createEmptyPage() { @Override protected ListSecuritySettingsPage createPage( - PageContext + @Nullable + PageContext context, - ListSecuritySettingsResponse response) { + @Nullable ListSecuritySettingsResponse response) { return new ListSecuritySettingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1276,7 +1281,7 @@ public static class ListSecuritySettingsFixedSizeCollection ListSecuritySettingsFixedSizeCollection> { private ListSecuritySettingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1286,7 +1291,7 @@ private static ListSecuritySettingsFixedSizeCollection createEmptyCollection() { @Override protected ListSecuritySettingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecuritySettingsFixedSizeCollection(pages, collectionSize); } } @@ -1320,8 +1325,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1331,14 +1336,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1352,7 +1357,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1362,7 +1368,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceSettings.java index e3959bec3b1a..13354629bbf9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,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); } @@ -222,7 +223,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecuritySettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index 9fad2566cc72..5063631ffd8d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -39,6 +39,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. /** @@ -261,7 +262,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionEntityTypesClient implements BackgroundResource { - private final SessionEntityTypesSettings settings; + private final @Nullable SessionEntityTypesSettings settings; private final SessionEntityTypesStub stub; /** Constructs an instance of SessionEntityTypesClient with default settings. */ @@ -301,7 +302,7 @@ protected SessionEntityTypesClient(SessionEntityTypesStub stub) { this.stub = stub; } - public final SessionEntityTypesSettings getSettings() { + public final @Nullable SessionEntityTypesSettings getSettings() { return settings; } @@ -339,7 +340,8 @@ public SessionEntityTypesStub getStub() { * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionName parent) { + public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( + @Nullable SessionName parent) { ListSessionEntityTypesRequest request = ListSessionEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -527,7 +529,7 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SessionEntityType getSessionEntityType(SessionEntityTypeName name) { + public final SessionEntityType getSessionEntityType(@Nullable SessionEntityTypeName name) { GetSessionEntityTypeRequest request = GetSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -663,7 +665,7 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SessionEntityType createSessionEntityType( - SessionName parent, SessionEntityType sessionEntityType) { + @Nullable SessionName parent, SessionEntityType sessionEntityType) { CreateSessionEntityTypeRequest request = CreateSessionEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -902,7 +904,7 @@ public final SessionEntityType updateSessionEntityType(UpdateSessionEntityTypeRe * If `Environment ID` is not specified, we assume default 'draft' environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSessionEntityType(SessionEntityTypeName name) { + public final void deleteSessionEntityType(@Nullable SessionEntityTypeName name) { DeleteSessionEntityTypeRequest request = DeleteSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1264,10 +1266,11 @@ public static class ListSessionEntityTypesPage ListSessionEntityTypesPage> { private ListSessionEntityTypesPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { super(context, response); } @@ -1277,16 +1280,18 @@ private static ListSessionEntityTypesPage createEmptyPage() { @Override protected ListSessionEntityTypesPage createPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { return new ListSessionEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, ApiFuture futureResponse) { @@ -1303,7 +1308,7 @@ public static class ListSessionEntityTypesFixedSizeCollection ListSessionEntityTypesFixedSizeCollection> { private ListSessionEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1313,7 +1318,7 @@ private static ListSessionEntityTypesFixedSizeCollection createEmptyCollection() @Override protected ListSessionEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1347,8 +1352,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1358,14 +1363,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1379,7 +1384,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1389,7 +1395,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesSettings.java index 17e5e6dcde27..d756a6c730cc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,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); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionEntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index 3eaa0df95281..70ce47e78db0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -39,6 +39,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. /** @@ -248,7 +249,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionsClient implements BackgroundResource { - private final SessionsSettings settings; + private final @Nullable SessionsSettings settings; private final SessionsStub stub; /** Constructs an instance of SessionsClient with default settings. */ @@ -286,7 +287,7 @@ protected SessionsClient(SessionsStub stub) { this.stub = stub; } - public final SessionsSettings getSettings() { + public final @Nullable SessionsSettings getSettings() { return settings; } @@ -913,8 +914,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -924,14 +925,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -945,7 +946,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -955,7 +957,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java index aea60824b4e9..57a850240382 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -195,7 +196,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); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index 0f026069f1b0..e0923a8d70df 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -43,6 +43,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. /** @@ -380,7 +381,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TestCasesClient implements BackgroundResource { - private final TestCasesSettings settings; + private final @Nullable TestCasesSettings settings; private final TestCasesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -426,7 +427,7 @@ protected TestCasesClient(TestCasesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TestCasesSettings getSettings() { + public final @Nullable TestCasesSettings getSettings() { return settings; } @@ -475,7 +476,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTestCasesPagedResponse listTestCases(AgentName parent) { + public final ListTestCasesPagedResponse listTestCases(@Nullable AgentName parent) { ListTestCasesRequest request = ListTestCasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -636,7 +637,7 @@ public final UnaryCallable listTest * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteTestCases(AgentName parent) { + public final void batchDeleteTestCases(@Nullable AgentName parent) { BatchDeleteTestCasesRequest request = BatchDeleteTestCasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -751,7 +752,7 @@ public final UnaryCallable batchDeleteTestCa * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCase getTestCase(TestCaseName name) { + public final TestCase getTestCase(@Nullable TestCaseName name) { GetTestCaseRequest request = GetTestCaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTestCase(request); @@ -865,7 +866,7 @@ public final UnaryCallable getTestCaseCallable() { * @param testCase Required. The test case to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCase createTestCase(AgentName parent, TestCase testCase) { + public final TestCase createTestCase(@Nullable AgentName parent, TestCase testCase) { CreateTestCaseRequest request = CreateTestCaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1614,7 +1615,7 @@ public final UnaryCallable exportTestCasesCal * Specify a `-` as a wildcard for TestCase ID to list results across multiple test cases. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName parent) { + public final ListTestCaseResultsPagedResponse listTestCaseResults(@Nullable TestCaseName parent) { ListTestCaseResultsRequest request = ListTestCaseResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1793,7 +1794,7 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestCaseResult getTestCaseResult(TestCaseResultName name) { + public final TestCaseResult getTestCaseResult(@Nullable TestCaseResultName name) { GetTestCaseResultRequest request = GetTestCaseResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2141,8 +2142,8 @@ public static class ListTestCasesPage ListTestCasesRequest, ListTestCasesResponse, TestCase, ListTestCasesPage> { private ListTestCasesPage( - PageContext context, - ListTestCasesResponse response) { + @Nullable PageContext context, + @Nullable ListTestCasesResponse response) { super(context, response); } @@ -2152,14 +2153,14 @@ private static ListTestCasesPage createEmptyPage() { @Override protected ListTestCasesPage createPage( - PageContext context, - ListTestCasesResponse response) { + @Nullable PageContext context, + @Nullable ListTestCasesResponse response) { return new ListTestCasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2173,7 +2174,8 @@ public static class ListTestCasesFixedSizeCollection ListTestCasesPage, ListTestCasesFixedSizeCollection> { - private ListTestCasesFixedSizeCollection(List pages, int collectionSize) { + private ListTestCasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2183,7 +2185,7 @@ private static ListTestCasesFixedSizeCollection createEmptyCollection() { @Override protected ListTestCasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTestCasesFixedSizeCollection(pages, collectionSize); } } @@ -2221,9 +2223,10 @@ public static class ListTestCaseResultsPage ListTestCaseResultsPage> { private ListTestCaseResultsPage( - PageContext + @Nullable + PageContext context, - ListTestCaseResultsResponse response) { + @Nullable ListTestCaseResultsResponse response) { super(context, response); } @@ -2233,15 +2236,17 @@ private static ListTestCaseResultsPage createEmptyPage() { @Override protected ListTestCaseResultsPage createPage( - PageContext + @Nullable + PageContext context, - ListTestCaseResultsResponse response) { + @Nullable ListTestCaseResultsResponse response) { return new ListTestCaseResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2257,7 +2262,7 @@ public static class ListTestCaseResultsFixedSizeCollection ListTestCaseResultsFixedSizeCollection> { private ListTestCaseResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2267,7 +2272,7 @@ private static ListTestCaseResultsFixedSizeCollection createEmptyCollection() { @Override protected ListTestCaseResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTestCaseResultsFixedSizeCollection(pages, collectionSize); } } @@ -2301,8 +2306,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2312,14 +2317,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2333,7 +2338,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2343,7 +2349,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java index 6267b0c795fe..1f3f86237af8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java @@ -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. /** @@ -281,7 +282,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); } @@ -301,7 +302,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TestCasesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java index a6ed99759cb3..99a512c0ed15 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java @@ -43,6 +43,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. /** @@ -368,7 +369,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ToolsClient implements BackgroundResource { - private final ToolsSettings settings; + private final @Nullable ToolsSettings settings; private final ToolsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -414,7 +415,7 @@ protected ToolsClient(ToolsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ToolsSettings getSettings() { + public final @Nullable ToolsSettings getSettings() { return settings; } @@ -463,7 +464,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param tool Required. The Tool to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(AgentName parent, Tool tool) { + public final Tool createTool(@Nullable AgentName parent, Tool tool) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -583,7 +584,7 @@ public final UnaryCallable createToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(AgentName parent) { + public final ListToolsPagedResponse listTools(@Nullable AgentName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -829,7 +830,7 @@ public final UnaryCallable exportToolsCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -1026,7 +1027,7 @@ public final UnaryCallable updateToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -1140,7 +1141,7 @@ public final UnaryCallable deleteToolCallable() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolVersionsPagedResponse listToolVersions(ToolName parent) { + public final ListToolVersionsPagedResponse listToolVersions(@Nullable ToolName parent) { ListToolVersionsRequest request = ListToolVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1306,7 +1307,7 @@ public final ListToolVersionsPagedResponse listToolVersions(ListToolVersionsRequ * @param toolVersion Required. The tool version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ToolVersion createToolVersion(ToolName parent, ToolVersion toolVersion) { + public final ToolVersion createToolVersion(@Nullable ToolName parent, ToolVersion toolVersion) { CreateToolVersionRequest request = CreateToolVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1425,7 +1426,7 @@ public final UnaryCallable createToolVers * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ToolVersion getToolVersion(ToolVersionName name) { + public final ToolVersion getToolVersion(@Nullable ToolVersionName name) { GetToolVersionRequest request = GetToolVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getToolVersion(request); @@ -1542,7 +1543,7 @@ public final UnaryCallable getToolVersionCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteToolVersion(ToolVersionName name) { + public final void deleteToolVersion(@Nullable ToolVersionName name) { DeleteToolVersionRequest request = DeleteToolVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1664,7 +1665,7 @@ public final UnaryCallable deleteToolVersionCal * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestoreToolVersionResponse restoreToolVersion(ToolVersionName name) { + public final RestoreToolVersionResponse restoreToolVersion(@Nullable ToolVersionName name) { RestoreToolVersionRequest request = RestoreToolVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2008,8 +2009,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -2019,14 +2020,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2036,7 +2037,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2046,7 +2047,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -2080,8 +2081,9 @@ public static class ListToolVersionsPage ListToolVersionsRequest, ListToolVersionsResponse, ToolVersion, ListToolVersionsPage> { private ListToolVersionsPage( - PageContext context, - ListToolVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListToolVersionsResponse response) { super(context, response); } @@ -2091,14 +2093,16 @@ private static ListToolVersionsPage createEmptyPage() { @Override protected ListToolVersionsPage createPage( - PageContext context, - ListToolVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListToolVersionsResponse response) { return new ListToolVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2113,7 +2117,7 @@ public static class ListToolVersionsFixedSizeCollection ListToolVersionsFixedSizeCollection> { private ListToolVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2123,7 +2127,7 @@ private static ListToolVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListToolVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2157,8 +2161,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2168,14 +2172,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2189,7 +2193,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2199,7 +2204,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsSettings.java index c0a0a2982395..3f4c9e1427a7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsSettings.java @@ -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. /** @@ -255,7 +256,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); } @@ -275,7 +276,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java index 43a809ffddcb..378a453c6501 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java @@ -39,6 +39,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. /** @@ -267,7 +268,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TransitionRouteGroupsClient implements BackgroundResource { - private final TransitionRouteGroupsSettings settings; + private final @Nullable TransitionRouteGroupsSettings settings; private final TransitionRouteGroupsStub stub; /** Constructs an instance of TransitionRouteGroupsClient with default settings. */ @@ -307,7 +308,7 @@ protected TransitionRouteGroupsClient(TransitionRouteGroupsStub stub) { this.stub = stub; } - public final TransitionRouteGroupsSettings getSettings() { + public final @Nullable TransitionRouteGroupsSettings getSettings() { return settings; } @@ -342,7 +343,8 @@ public TransitionRouteGroupsStub getStub() { * or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(AgentName parent) { + public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( + @Nullable AgentName parent) { ListTransitionRouteGroupsRequest request = ListTransitionRouteGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -377,7 +379,8 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(Ag * or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups(FlowName parent) { + public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( + @Nullable FlowName parent) { ListTransitionRouteGroupsRequest request = ListTransitionRouteGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -561,7 +564,8 @@ public final ListTransitionRouteGroupsPagedResponse listTransitionRouteGroups( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TransitionRouteGroup getTransitionRouteGroup(TransitionRouteGroupName name) { + public final TransitionRouteGroup getTransitionRouteGroup( + @Nullable TransitionRouteGroupName name) { GetTransitionRouteGroupRequest request = GetTransitionRouteGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -718,7 +722,7 @@ public final TransitionRouteGroup getTransitionRouteGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransitionRouteGroup createTransitionRouteGroup( - AgentName parent, TransitionRouteGroup transitionRouteGroup) { + @Nullable AgentName parent, TransitionRouteGroup transitionRouteGroup) { CreateTransitionRouteGroupRequest request = CreateTransitionRouteGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -762,7 +766,7 @@ public final TransitionRouteGroup createTransitionRouteGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TransitionRouteGroup createTransitionRouteGroup( - FlowName parent, TransitionRouteGroup transitionRouteGroup) { + @Nullable FlowName parent, TransitionRouteGroup transitionRouteGroup) { CreateTransitionRouteGroupRequest request = CreateTransitionRouteGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1033,7 +1037,7 @@ public final TransitionRouteGroup updateTransitionRouteGroup( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTransitionRouteGroup(TransitionRouteGroupName name) { + public final void deleteTransitionRouteGroup(@Nullable TransitionRouteGroupName name) { DeleteTransitionRouteGroupRequest request = DeleteTransitionRouteGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1428,12 +1432,13 @@ public static class ListTransitionRouteGroupsPage ListTransitionRouteGroupsPage> { private ListTransitionRouteGroupsPage( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> context, - ListTransitionRouteGroupsResponse response) { + @Nullable ListTransitionRouteGroupsResponse response) { super(context, response); } @@ -1443,18 +1448,20 @@ private static ListTransitionRouteGroupsPage createEmptyPage() { @Override protected ListTransitionRouteGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> context, - ListTransitionRouteGroupsResponse response) { + @Nullable ListTransitionRouteGroupsResponse response) { return new ListTransitionRouteGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTransitionRouteGroupsRequest, ListTransitionRouteGroupsResponse, TransitionRouteGroup> @@ -1473,7 +1480,7 @@ public static class ListTransitionRouteGroupsFixedSizeCollection ListTransitionRouteGroupsFixedSizeCollection> { private ListTransitionRouteGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1483,7 +1490,7 @@ private static ListTransitionRouteGroupsFixedSizeCollection createEmptyCollectio @Override protected ListTransitionRouteGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransitionRouteGroupsFixedSizeCollection(pages, collectionSize); } } @@ -1517,8 +1524,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1528,14 +1535,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1549,7 +1556,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1559,7 +1567,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsSettings.java index aeeedfdc2b82..61b4ccf12f0d 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -203,7 +204,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); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TransitionRouteGroupsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java index 215c67ef9c0b..02685dd88eeb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java @@ -44,6 +44,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. /** @@ -303,7 +304,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VersionsClient implements BackgroundResource { - private final VersionsSettings settings; + private final @Nullable VersionsSettings settings; private final VersionsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -349,7 +350,7 @@ protected VersionsClient(VersionsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VersionsSettings getSettings() { + public final @Nullable VersionsSettings getSettings() { return settings; } @@ -400,7 +401,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVersionsPagedResponse listVersions(FlowName parent) { + public final ListVersionsPagedResponse listVersions(@Nullable FlowName parent) { ListVersionsRequest request = ListVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -568,7 +569,7 @@ public final UnaryCallable listVersio * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version getVersion(VersionName name) { + public final Version getVersion(@Nullable VersionName name) { GetVersionRequest request = GetVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVersion(request); @@ -697,7 +698,7 @@ public final UnaryCallable getVersionCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVersionAsync( - FlowName parent, Version version) { + @Nullable FlowName parent, Version version) { CreateVersionRequest request = CreateVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -973,7 +974,7 @@ public final UnaryCallable updateVersionCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVersion(VersionName name) { + public final void deleteVersion(@Nullable VersionName name) { DeleteVersionRequest request = DeleteVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVersion(request); @@ -1100,7 +1101,7 @@ public final UnaryCallable deleteVersionCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture loadVersionAsync(VersionName name) { + public final OperationFuture loadVersionAsync(@Nullable VersionName name) { LoadVersionRequest request = LoadVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return loadVersionAsync(request); @@ -1288,7 +1289,7 @@ public final UnaryCallable loadVersionCallable() * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompareVersionsResponse compareVersions(VersionName baseVersion) { + public final CompareVersionsResponse compareVersions(@Nullable VersionName baseVersion) { CompareVersionsRequest request = CompareVersionsRequest.newBuilder() .setBaseVersion(baseVersion == null ? null : baseVersion.toString()) @@ -1644,8 +1645,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -1655,14 +1656,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1676,7 +1677,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1686,7 +1688,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1720,8 +1722,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1731,14 +1733,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1752,7 +1754,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1762,7 +1765,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java index 1ac1e18a3dc4..332228e76bc2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsSettings.java @@ -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. /** @@ -238,7 +239,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); } @@ -258,7 +259,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index ac22b27b8ab4..51c03a069f69 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -39,6 +39,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. /** @@ -253,7 +254,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WebhooksClient implements BackgroundResource { - private final WebhooksSettings settings; + private final @Nullable WebhooksSettings settings; private final WebhooksStub stub; /** Constructs an instance of WebhooksClient with default settings. */ @@ -291,7 +292,7 @@ protected WebhooksClient(WebhooksStub stub) { this.stub = stub; } - public final WebhooksSettings getSettings() { + public final @Nullable WebhooksSettings getSettings() { return settings; } @@ -323,7 +324,7 @@ public WebhooksStub getStub() { * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWebhooksPagedResponse listWebhooks(AgentName parent) { + public final ListWebhooksPagedResponse listWebhooks(@Nullable AgentName parent) { ListWebhooksRequest request = ListWebhooksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -484,7 +485,7 @@ public final UnaryCallable listWebhoo * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Webhook getWebhook(WebhookName name) { + public final Webhook getWebhook(@Nullable WebhookName name) { GetWebhookRequest request = GetWebhookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWebhook(request); @@ -596,7 +597,7 @@ public final UnaryCallable getWebhookCallable() { * @param webhook Required. The webhook to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Webhook createWebhook(AgentName parent, Webhook webhook) { + public final Webhook createWebhook(@Nullable AgentName parent, Webhook webhook) { CreateWebhookRequest request = CreateWebhookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -801,7 +802,7 @@ public final UnaryCallable updateWebhookCallable( * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteWebhook(WebhookName name) { + public final void deleteWebhook(@Nullable WebhookName name) { DeleteWebhookRequest request = DeleteWebhookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteWebhook(request); @@ -1139,8 +1140,8 @@ public static class ListWebhooksPage extends AbstractPage { private ListWebhooksPage( - PageContext context, - ListWebhooksResponse response) { + @Nullable PageContext context, + @Nullable ListWebhooksResponse response) { super(context, response); } @@ -1150,14 +1151,14 @@ private static ListWebhooksPage createEmptyPage() { @Override protected ListWebhooksPage createPage( - PageContext context, - ListWebhooksResponse response) { + @Nullable PageContext context, + @Nullable ListWebhooksResponse response) { return new ListWebhooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1171,7 +1172,8 @@ public static class ListWebhooksFixedSizeCollection ListWebhooksPage, ListWebhooksFixedSizeCollection> { - private ListWebhooksFixedSizeCollection(List pages, int collectionSize) { + private ListWebhooksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1181,7 +1183,7 @@ private static ListWebhooksFixedSizeCollection createEmptyCollection() { @Override protected ListWebhooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWebhooksFixedSizeCollection(pages, collectionSize); } } @@ -1215,8 +1217,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1226,14 +1228,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1247,7 +1249,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1257,7 +1260,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksSettings.java index 1f6433bd0c33..86276c2ee063 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebhooksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStub.java index f8e6a425ce52..bf1130531727 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class AgentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java index f1f6f362c519..44bb4ae668eb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -474,7 +475,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); } @@ -589,7 +590,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAgentsSettings = PagedCallSettings.newBuilder(LIST_AGENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java index 03d4e709f53c..212999ad61e9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ChangelogsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -359,7 +360,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); } @@ -432,7 +433,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listChangelogsSettings = PagedCallSettings.newBuilder(LIST_CHANGELOGS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java index 71a43931ab3c..f3ad6ae14d69 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ConversationHistoryStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java index 0464f4ccd9b2..3d3ebe3fa5dd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/DeploymentsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -362,7 +363,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); } @@ -435,7 +436,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java index 462f102989ef..c58f45510255 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class EntityTypesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java index 5c75e7aa72ea..4635ea848262 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,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); } @@ -551,7 +552,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java index 8914a248b1e0..d60e78e7c68a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,11 +65,12 @@ @Generated("by gapic-generator-java") public abstract class EnvironmentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java index 966181b324d7..86b698793523 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -649,7 +650,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); } @@ -766,7 +767,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEnvironmentsSettings = PagedCallSettings.newBuilder(LIST_ENVIRONMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java index 9842c24112cc..f7047a41ecbf 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -377,7 +378,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createExampleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java index 9c4699331add..f849e5dd74b4 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -398,7 +399,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); } @@ -486,7 +487,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listExperimentsSettings = PagedCallSettings.newBuilder(LIST_EXPERIMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStub.java index d2816a8c5dc6..28370e337498 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -60,11 +61,12 @@ @Generated("by gapic-generator-java") public abstract class FlowsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java index 3e6972b6f567..0c695ce559f5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -469,7 +470,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); } @@ -569,7 +570,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFlowSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java index b96164053d09..83b7abeee43e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GeneratorsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -381,7 +382,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); } @@ -462,7 +463,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGeneratorsSettings = PagedCallSettings.newBuilder(LIST_GENERATORS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStub.java index b8d41d925858..3c8fbc3071a9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class IntentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java index 2903cce5f37f..c2b1fca1b0e8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -442,7 +443,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); } @@ -533,7 +534,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listIntentsSettings = PagedCallSettings.newBuilder(LIST_INTENTS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java index cb2277b80eb9..7c7c96b3898a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPagesSettings = PagedCallSettings.newBuilder(LIST_PAGES_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStub.java index e3eda241c6e2..36fb8aa3aa2b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,11 +66,12 @@ @Generated("by gapic-generator-java") public abstract class PlaybooksStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java index 74f32df63811..5459982c98c7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -557,7 +558,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); } @@ -669,7 +670,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPlaybookSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java index 5692582e149f..a3387c3a39ed 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -406,7 +407,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); } @@ -492,7 +493,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSecuritySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java index 6fa539aa9fd1..97eccdecb97e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -411,7 +412,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); } @@ -497,7 +498,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSessionEntityTypesSettings = diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java index 27d575625a4c..66906067a8fd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,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); } @@ -450,7 +451,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); detectIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java index a500e6b8699c..be5bf9c96ffd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class TestCasesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java index 4ebd4bfc2247..cf1b3ae7e141 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -572,7 +573,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); } @@ -692,7 +693,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTestCasesSettings = PagedCallSettings.newBuilder(LIST_TEST_CASES_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStub.java index 0e0a5a615efa..72f550b14ef9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class ToolsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java index 3599f2cb2b17..c0837f3f6d04 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -525,7 +526,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); } @@ -626,7 +627,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java index 82b7de419406..5234f9466d49 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -417,7 +418,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); } @@ -506,7 +507,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTransitionRouteGroupsSettings = diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java index 4ffd98bd75ec..9253a0b38e1a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class VersionsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java index 815840927c86..c0e3a425cdb5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -441,7 +442,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); } @@ -532,7 +533,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVersionsSettings = PagedCallSettings.newBuilder(LIST_VERSIONS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java index 5bc1ea925274..8e5288b5368e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -377,7 +378,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listWebhooksSettings = PagedCallSettings.newBuilder(LIST_WEBHOOKS_PAGE_STR_FACT); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentGenerativeSettingsName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentGenerativeSettingsName.java index 34c504604627..1586c8b5cb60 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentGenerativeSettingsName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentGenerativeSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentGenerativeSettingsName parse(String formattedString) { + public static @Nullable AgentGenerativeSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -104,7 +105,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentGenerativeSettingsName> values) { List list = new ArrayList<>(values.size()); for (AgentGenerativeSettingsName value : values) { if (value == null) { @@ -153,7 +154,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentName.java index 8d05a39900a5..65ed0905545f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResultName.java index ef736b647058..79333edd38dd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentValidationResultName parse(String formattedString) { + public static @Nullable AgentValidationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -104,7 +105,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentValidationResultName> values) { List list = new ArrayList<>(values.size()); for (AgentValidationResultName value : values) { if (value == null) { @@ -153,7 +154,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java index 2ea69475a56d..4b2a7913c7f2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static ChangelogName parse(String formattedString) { + public static @Nullable ChangelogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChangelogName> values) { List list = new ArrayList<>(values.size()); for (ChangelogName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java index f898dba467bb..d67cf97ce0ed 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String format( .toString(); } - public static ContinuousTestResultName parse(String formattedString) { + public static @Nullable ContinuousTestResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -140,7 +141,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContinuousTestResultName> values) { List list = new ArrayList<>(values.size()); for (ContinuousTestResultName value : values) { if (value == null) { @@ -204,7 +205,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java index 7df87c89a8cd..7840620833cd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeName.java index ed6aa0059d97..5698a7e1490c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentName.java index 5d98362950e1..1b0d3c3c263d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleName.java index 7b3742ab4c95..ad4284a257b1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExampleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ExampleName parse(String formattedString) { + public static @Nullable ExampleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleName> values) { List list = new ArrayList<>(values.size()); for (ExampleName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentName.java index 8bf211c9723a..337e81171d77 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ExperimentName parse(String formattedString) { + public static @Nullable ExperimentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExperimentName> values) { List list = new ArrayList<>(values.size()); for (ExperimentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowName.java index 582b53608007..bce16fb76c17 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static FlowName parse(String formattedString) { + public static @Nullable FlowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FlowName> values) { List list = new ArrayList<>(values.size()); for (FlowName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResultName.java index db8b3b0b2a64..453bb3534495 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static FlowValidationResultName parse(String formattedString) { + public static @Nullable FlowValidationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FlowValidationResultName> values) { List list = new ArrayList<>(values.size()); for (FlowValidationResultName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorName.java index 1e68c1d347e7..b3333ba11599 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static GeneratorName parse(String formattedString) { + public static @Nullable GeneratorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorName> values) { List list = new ArrayList<>(values.size()); for (GeneratorName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentName.java index fa0fc388e4ac..ab3d2a7bca1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static IntentName parse(String formattedString) { + public static @Nullable IntentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntentName> values) { List list = new ArrayList<>(values.size()); for (IntentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LocationName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LocationName.java index e97cc45b3961..e1c5ab34e7c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LocationName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageName.java index 8c8e101b58bf..8ce1289319cb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PageName parse(String formattedString) { + public static @Nullable PageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PageName> values) { List list = new ArrayList<>(values.size()); for (PageName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookName.java index 7110680ac0b7..8ccac7445dd9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static PlaybookName parse(String formattedString) { + public static @Nullable PlaybookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlaybookName> values) { List list = new ArrayList<>(values.size()); for (PlaybookName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookVersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookVersionName.java index 7ecf0ee08a50..78fe762bea46 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookVersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybookVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PlaybookVersionName parse(String formattedString) { + public static @Nullable PlaybookVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlaybookVersionName> values) { List list = new ArrayList<>(values.size()); for (PlaybookVersionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsName.java index e7c60c31db75..3edd9414c8cc 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String securitySett .toString(); } - public static SecuritySettingsName parse(String formattedString) { + public static @Nullable SecuritySettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecuritySettingsName> values) { List list = new ArrayList<>(values.size()); for (SecuritySettingsName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeName.java index 3ea054940560..cae8e432bef6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationAgentEnvironmentSessionEntityTypeName( .toString(); } - public static SessionEntityTypeName parse(String formattedString) { + public static @Nullable SessionEntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -236,7 +237,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionEntityTypeName> values) { List list = new ArrayList<>(values.size()); for (SessionEntityTypeName value : values) { if (value == null) { @@ -294,7 +295,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionName.java index 066da9df616b..52a2c59e9d52 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationAgentEnvironmentSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseName.java index d95f774a7329..3efe19fdda1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static TestCaseName parse(String formattedString) { + public static @Nullable TestCaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestCaseName> values) { List list = new ArrayList<>(values.size()); for (TestCaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResultName.java index a996bc671674..f5d32570a4a1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TestCaseResultName parse(String formattedString) { + public static @Nullable TestCaseResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestCaseResultName> values) { List list = new ArrayList<>(values.size()); for (TestCaseResultName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolName.java index f21e3d2dec8e..2336123bad4f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolVersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolVersionName.java index ca8bff5f56ac..3b536bdcc85b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolVersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ToolVersionName parse(String formattedString) { + public static @Nullable ToolVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolVersionName> values) { List list = new ArrayList<>(values.size()); for (ToolVersionName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupName.java index bf30c2abe4f9..d2b5575fdd39 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -178,7 +179,7 @@ public static String formatProjectLocationAgentTransitionRouteGroupName( .toString(); } - public static TransitionRouteGroupName parse(String formattedString) { + public static @Nullable TransitionRouteGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -212,7 +213,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TransitionRouteGroupName> values) { List list = new ArrayList<>(values.size()); for (TransitionRouteGroupName value : values) { if (value == null) { @@ -267,7 +268,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionName.java index 3305253132d0..3da979aa192c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookName.java index f733f4f95640..c0ec7e53e6f2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static WebhookName parse(String formattedString) { + public static @Nullable WebhookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WebhookName> values) { List list = new ArrayList<>(values.size()); for (WebhookName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentGenerativeSettingsName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentGenerativeSettingsName.java index 62a181703fbc..27970e7331f8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentGenerativeSettingsName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentGenerativeSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentGenerativeSettingsName parse(String formattedString) { + public static @Nullable AgentGenerativeSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -104,7 +105,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentGenerativeSettingsName> values) { List list = new ArrayList<>(values.size()); for (AgentGenerativeSettingsName value : values) { if (value == null) { @@ -153,7 +154,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentName.java index bd3fc3f8bc96..ec51b43ce739 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResultName.java index f5d32e0027e0..c620b0a2cc26 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String agent) { .toString(); } - public static AgentValidationResultName parse(String formattedString) { + public static @Nullable AgentValidationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -104,7 +105,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentValidationResultName> values) { List list = new ArrayList<>(values.size()); for (AgentValidationResultName value : values) { if (value == null) { @@ -153,7 +154,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java index d71acad79cba..5fbc6cd2ce8d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static ChangelogName parse(String formattedString) { + public static @Nullable ChangelogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChangelogName> values) { List list = new ArrayList<>(values.size()); for (ChangelogName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResultName.java index 9f9e9ab07741..e3827549759a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String format( .toString(); } - public static ContinuousTestResultName parse(String formattedString) { + public static @Nullable ContinuousTestResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -140,7 +141,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContinuousTestResultName> values) { List list = new ArrayList<>(values.size()); for (ContinuousTestResultName value : values) { if (value == null) { @@ -204,7 +205,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationName.java index 0661713aca6c..6702c9fd286b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java index ab6b7e776aa7..5934997b56fe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypeName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypeName.java index 1492368c1095..b0b946e69c84 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypeName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentName.java index 5643e7baa519..6027a5c5bd23 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleName.java index 2fb4474d5be5..2eca1990b361 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ExampleName parse(String formattedString) { + public static @Nullable ExampleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExampleName> values) { List list = new ArrayList<>(values.size()); for (ExampleName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentName.java index 975a7d146112..6241ccdafb75 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ExperimentName parse(String formattedString) { + public static @Nullable ExperimentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExperimentName> values) { List list = new ArrayList<>(values.size()); for (ExperimentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowName.java index 093af2d59213..ad9fb2f90dca 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static FlowName parse(String formattedString) { + public static @Nullable FlowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FlowName> values) { List list = new ArrayList<>(values.size()); for (FlowName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResultName.java index fcb52e04bd34..78b7593142f9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static FlowValidationResultName parse(String formattedString) { + public static @Nullable FlowValidationResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FlowValidationResultName> values) { List list = new ArrayList<>(values.size()); for (FlowValidationResultName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorName.java index cf03c7acceec..654c182d125d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static GeneratorName parse(String formattedString) { + public static @Nullable GeneratorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorName> values) { List list = new ArrayList<>(values.size()); for (GeneratorName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentName.java index 02d68bb93fd7..235ac8da3645 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static IntentName parse(String formattedString) { + public static @Nullable IntentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntentName> values) { List list = new ArrayList<>(values.size()); for (IntentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LocationName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LocationName.java index 87e816b45786..63f0fcb59f07 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LocationName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageName.java index 2e0d6cadb67e..6bf881e1cb48 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PageName parse(String formattedString) { + public static @Nullable PageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PageName> values) { List list = new ArrayList<>(values.size()); for (PageName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookName.java index 704c30c489fc..703e08fd19d2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static PlaybookName parse(String formattedString) { + public static @Nullable PlaybookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlaybookName> values) { List list = new ArrayList<>(values.size()); for (PlaybookName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookVersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookVersionName.java index 8e2908e844a0..dc1f4aeefb1d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookVersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PlaybookVersionName parse(String formattedString) { + public static @Nullable PlaybookVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlaybookVersionName> values) { List list = new ArrayList<>(values.size()); for (PlaybookVersionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsName.java index 6e9d82a5ddf6..a7c1f451418b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String securitySett .toString(); } - public static SecuritySettingsName parse(String formattedString) { + public static @Nullable SecuritySettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecuritySettingsName> values) { List list = new ArrayList<>(values.size()); for (SecuritySettingsName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypeName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypeName.java index 2737b213d3d7..66b43b1c7fed 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypeName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationAgentEnvironmentSessionEntityTypeName( .toString(); } - public static SessionEntityTypeName parse(String formattedString) { + public static @Nullable SessionEntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -236,7 +237,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionEntityTypeName> values) { List list = new ArrayList<>(values.size()); for (SessionEntityTypeName value : values) { if (value == null) { @@ -294,7 +295,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionName.java index 31a49023b3b7..d31286371dee 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationAgentEnvironmentSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseName.java index 662137f8af4f..83d8da5fe769 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static TestCaseName parse(String formattedString) { + public static @Nullable TestCaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestCaseName> values) { List list = new ArrayList<>(values.size()); for (TestCaseName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResultName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResultName.java index f7001aa0d2a1..1adc4a275569 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResultName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TestCaseResultName parse(String formattedString) { + public static @Nullable TestCaseResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestCaseResultName> values) { List list = new ArrayList<>(values.size()); for (TestCaseResultName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolName.java index cbb3e79e33f6..d295c96e59cf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolVersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolVersionName.java index 59d647e22901..97889ac2bd4c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolVersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ToolVersionName parse(String formattedString) { + public static @Nullable ToolVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolVersionName> values) { List list = new ArrayList<>(values.size()); for (ToolVersionName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupName.java index 6db7322cfde5..6b6531bd43e1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -178,7 +179,7 @@ public static String formatProjectLocationAgentTransitionRouteGroupName( .toString(); } - public static TransitionRouteGroupName parse(String formattedString) { + public static @Nullable TransitionRouteGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -212,7 +213,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TransitionRouteGroupName> values) { List list = new ArrayList<>(values.size()); for (TransitionRouteGroupName value : values) { if (value == null) { @@ -267,7 +268,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionName.java index 70f3bd0a3a81..408cc980ac30 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookName.java index a641e255a07c..01497182b272 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String agent, Strin .toString(); } - public static WebhookName parse(String formattedString) { + public static @Nullable WebhookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WebhookName> values) { List list = new ArrayList<>(values.size()); for (WebhookName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index c341ff473607..fc873f324606 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -43,6 +43,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. /** @@ -342,7 +343,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AgentsClient implements BackgroundResource { - private final AgentsSettings settings; + private final @Nullable AgentsSettings settings; private final AgentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -388,7 +389,7 @@ protected AgentsClient(AgentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentsSettings getSettings() { + public final @Nullable AgentsSettings getSettings() { return settings; } @@ -435,7 +436,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(LocationName parent) { + public final Agent getAgent(@Nullable LocationName parent) { GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return getAgent(request); @@ -463,7 +464,7 @@ public final Agent getAgent(LocationName parent) { * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(ProjectName parent) { + public final Agent getAgent(@Nullable ProjectName parent) { GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return getAgent(request); @@ -661,7 +662,7 @@ public final UnaryCallable setAgentCallable() { * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(LocationName parent) { + public final void deleteAgent(@Nullable LocationName parent) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -691,7 +692,7 @@ public final void deleteAgent(LocationName parent) { * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(ProjectName parent) { + public final void deleteAgent(@Nullable ProjectName parent) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -806,7 +807,7 @@ public final UnaryCallable deleteAgentCallable() { * '-'>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(LocationName parent) { + public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) { SearchAgentsRequest request = SearchAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -843,7 +844,7 @@ public final SearchAgentsPagedResponse searchAgents(LocationName parent) { * '-'>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(ProjectName parent) { + public final SearchAgentsPagedResponse searchAgents(@Nullable ProjectName parent) { SearchAgentsRequest request = SearchAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1036,7 +1037,7 @@ public final UnaryCallable searchAgen * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainAgentAsync(LocationName parent) { + public final OperationFuture trainAgentAsync(@Nullable LocationName parent) { TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return trainAgentAsync(request); @@ -1076,7 +1077,7 @@ public final OperationFuture trainAgentAsync(LocationName parent) * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainAgentAsync(ProjectName parent) { + public final OperationFuture trainAgentAsync(@Nullable ProjectName parent) { TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return trainAgentAsync(request); @@ -1264,7 +1265,8 @@ public final UnaryCallable trainAgentCallable() { * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAgentAsync(LocationName parent) { + public final OperationFuture exportAgentAsync( + @Nullable LocationName parent) { ExportAgentRequest request = ExportAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1302,7 +1304,8 @@ public final OperationFuture exportAgentAsync(Locat * `projects/<Project ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAgentAsync(ProjectName parent) { + public final OperationFuture exportAgentAsync( + @Nullable ProjectName parent) { ExportAgentRequest request = ExportAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2056,8 +2059,8 @@ public static class SearchAgentsPage extends AbstractPage { private SearchAgentsPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { super(context, response); } @@ -2067,14 +2070,14 @@ private static SearchAgentsPage createEmptyPage() { @Override protected SearchAgentsPage createPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { return new SearchAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2088,7 +2091,8 @@ public static class SearchAgentsFixedSizeCollection SearchAgentsPage, SearchAgentsFixedSizeCollection> { - private SearchAgentsFixedSizeCollection(List pages, int collectionSize) { + private SearchAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2098,7 +2102,7 @@ private static SearchAgentsFixedSizeCollection createEmptyCollection() { @Override protected SearchAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2132,8 +2136,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2143,14 +2147,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2164,7 +2168,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2174,7 +2179,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java index c1aa9f611e0d..5a3869439ec7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java @@ -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. /** @@ -257,7 +258,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); } @@ -277,7 +278,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index eee1aa7bab5c..c4d4656534fa 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -37,6 +37,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. /** @@ -197,7 +198,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AnswerRecordsClient implements BackgroundResource { - private final AnswerRecordsSettings settings; + private final @Nullable AnswerRecordsSettings settings; private final AnswerRecordsStub stub; /** Constructs an instance of AnswerRecordsClient with default settings. */ @@ -237,7 +238,7 @@ protected AnswerRecordsClient(AnswerRecordsStub stub) { this.stub = stub; } - public final AnswerRecordsSettings getSettings() { + public final @Nullable AnswerRecordsSettings getSettings() { return settings; } @@ -269,7 +270,7 @@ public AnswerRecordsStub getStub() { * order. Format: `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnswerRecordsPagedResponse listAnswerRecords(LocationName parent) { + public final ListAnswerRecordsPagedResponse listAnswerRecords(@Nullable LocationName parent) { ListAnswerRecordsRequest request = ListAnswerRecordsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -301,7 +302,7 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(LocationName paren * order. Format: `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnswerRecordsPagedResponse listAnswerRecords(ProjectName parent) { + public final ListAnswerRecordsPagedResponse listAnswerRecords(@Nullable ProjectName parent) { ListAnswerRecordsRequest request = ListAnswerRecordsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -790,8 +791,9 @@ public static class ListAnswerRecordsPage ListAnswerRecordsPage> { private ListAnswerRecordsPage( - PageContext context, - ListAnswerRecordsResponse response) { + @Nullable PageContext + context, + @Nullable ListAnswerRecordsResponse response) { super(context, response); } @@ -801,14 +803,16 @@ private static ListAnswerRecordsPage createEmptyPage() { @Override protected ListAnswerRecordsPage createPage( - PageContext context, - ListAnswerRecordsResponse response) { + @Nullable PageContext + context, + @Nullable ListAnswerRecordsResponse response) { return new ListAnswerRecordsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -823,7 +827,7 @@ public static class ListAnswerRecordsFixedSizeCollection ListAnswerRecordsFixedSizeCollection> { private ListAnswerRecordsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -833,7 +837,7 @@ private static ListAnswerRecordsFixedSizeCollection createEmptyCollection() { @Override protected ListAnswerRecordsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnswerRecordsFixedSizeCollection(pages, collectionSize); } } @@ -867,8 +871,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -878,14 +882,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -899,7 +903,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -909,7 +914,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java index 153a9774f991..d77561c24db0 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnswerRecordsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 7885b552e2de..7b1e7764e899 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -38,6 +38,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. /** @@ -272,7 +273,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ContextsClient implements BackgroundResource { - private final ContextsSettings settings; + private final @Nullable ContextsSettings settings; private final ContextsStub stub; /** Constructs an instance of ContextsClient with default settings. */ @@ -310,7 +311,7 @@ protected ContextsClient(ContextsStub stub) { this.stub = stub; } - public final ContextsSettings getSettings() { + public final @Nullable ContextsSettings getSettings() { return settings; } @@ -345,7 +346,7 @@ public ContextsStub getStub() { * `User ID` is not specified, we assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContextsPagedResponse listContexts(SessionName parent) { + public final ListContextsPagedResponse listContexts(@Nullable SessionName parent) { ListContextsRequest request = ListContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -514,7 +515,7 @@ public final UnaryCallable listContex * default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context getContext(ContextName name) { + public final Context getContext(@Nullable ContextName name) { GetContextRequest request = GetContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContext(request); @@ -640,7 +641,7 @@ public final UnaryCallable getContextCallable() { * @param context Required. The context to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context createContext(SessionName parent, Context context) { + public final Context createContext(@Nullable SessionName parent, Context context) { CreateContextRequest request = CreateContextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -858,7 +859,7 @@ public final UnaryCallable updateContextCallable( * default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteContext(ContextName name) { + public final void deleteContext(@Nullable ContextName name) { DeleteContextRequest request = DeleteContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteContext(request); @@ -980,7 +981,7 @@ public final UnaryCallable deleteContextCallable() * `User ID` is not specified, we assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAllContexts(SessionName parent) { + public final void deleteAllContexts(@Nullable SessionName parent) { DeleteAllContextsRequest request = DeleteAllContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1322,8 +1323,8 @@ public static class ListContextsPage extends AbstractPage { private ListContextsPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { super(context, response); } @@ -1333,14 +1334,14 @@ private static ListContextsPage createEmptyPage() { @Override protected ListContextsPage createPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { return new ListContextsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1354,7 +1355,8 @@ public static class ListContextsFixedSizeCollection ListContextsPage, ListContextsFixedSizeCollection> { - private ListContextsFixedSizeCollection(List pages, int collectionSize) { + private ListContextsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1364,7 +1366,7 @@ private static ListContextsFixedSizeCollection createEmptyCollection() { @Override protected ListContextsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContextsFixedSizeCollection(pages, collectionSize); } } @@ -1398,8 +1400,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1409,14 +1411,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1430,7 +1432,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1440,7 +1443,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java index 7f3afd40430e..df3708980e70 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContextsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java index 87ecfcf8605c..1f1201fe0074 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java @@ -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. /** @@ -269,7 +270,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationDatasetsClient implements BackgroundResource { - private final ConversationDatasetsSettings settings; + private final @Nullable ConversationDatasetsSettings settings; private final ConversationDatasetsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -317,7 +318,7 @@ protected ConversationDatasetsClient(ConversationDatasetsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConversationDatasetsSettings getSettings() { + public final @Nullable ConversationDatasetsSettings getSettings() { return settings; } @@ -535,7 +536,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversationDataset getConversationDataset(ConversationDatasetName name) { + public final ConversationDataset getConversationDataset(@Nullable ConversationDatasetName name) { GetConversationDatasetRequest request = GetConversationDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -663,7 +664,8 @@ public final ConversationDataset getConversationDataset(GetConversationDatasetRe * Format: `projects/<Project ID>/locations/<Location ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationDatasetsPagedResponse listConversationDatasets(LocationName parent) { + public final ListConversationDatasetsPagedResponse listConversationDatasets( + @Nullable LocationName parent) { ListConversationDatasetsRequest request = ListConversationDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -847,7 +849,7 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteConversationDatasetAsync(ConversationDatasetName name) { + deleteConversationDatasetAsync(@Nullable ConversationDatasetName name) { DeleteConversationDatasetRequest request = DeleteConversationDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1424,12 +1426,13 @@ public static class ListConversationDatasetsPage ListConversationDatasetsPage> { private ListConversationDatasetsPage( - PageContext< + @Nullable + PageContext< ListConversationDatasetsRequest, ListConversationDatasetsResponse, ConversationDataset> context, - ListConversationDatasetsResponse response) { + @Nullable ListConversationDatasetsResponse response) { super(context, response); } @@ -1439,18 +1442,20 @@ private static ListConversationDatasetsPage createEmptyPage() { @Override protected ListConversationDatasetsPage createPage( - PageContext< + @Nullable + PageContext< ListConversationDatasetsRequest, ListConversationDatasetsResponse, ConversationDataset> context, - ListConversationDatasetsResponse response) { + @Nullable ListConversationDatasetsResponse response) { return new ListConversationDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversationDatasetsRequest, ListConversationDatasetsResponse, ConversationDataset> @@ -1469,7 +1474,7 @@ public static class ListConversationDatasetsFixedSizeCollection ListConversationDatasetsFixedSizeCollection> { private ListConversationDatasetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1479,7 +1484,7 @@ private static ListConversationDatasetsFixedSizeCollection createEmptyCollection @Override protected ListConversationDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -1513,8 +1518,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1524,14 +1529,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1545,7 +1550,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1555,7 +1561,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java index b9294916d352..ff37950743db 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -277,7 +278,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationDatasetsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java index 619903d9f2d8..fd4d6b577ec6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java @@ -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. /** @@ -335,7 +336,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationModelsClient implements BackgroundResource { - private final ConversationModelsSettings settings; + private final @Nullable ConversationModelsSettings settings; private final ConversationModelsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -383,7 +384,7 @@ protected ConversationModelsClient(ConversationModelsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConversationModelsSettings getSettings() { + public final @Nullable ConversationModelsSettings getSettings() { return settings; } @@ -1426,7 +1427,8 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel public final OperationFuture< ConversationModelEvaluation, CreateConversationModelEvaluationOperationMetadata> createConversationModelEvaluationAsync( - ConversationModelName parent, ConversationModelEvaluation conversationModelEvaluation) { + @Nullable ConversationModelName parent, + ConversationModelEvaluation conversationModelEvaluation) { CreateConversationModelEvaluationRequest request = CreateConversationModelEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1843,10 +1845,11 @@ public static class ListConversationModelsPage ListConversationModelsPage> { private ListConversationModelsPage( - PageContext< + @Nullable + PageContext< ListConversationModelsRequest, ListConversationModelsResponse, ConversationModel> context, - ListConversationModelsResponse response) { + @Nullable ListConversationModelsResponse response) { super(context, response); } @@ -1856,16 +1859,18 @@ private static ListConversationModelsPage createEmptyPage() { @Override protected ListConversationModelsPage createPage( - PageContext< + @Nullable + PageContext< ListConversationModelsRequest, ListConversationModelsResponse, ConversationModel> context, - ListConversationModelsResponse response) { + @Nullable ListConversationModelsResponse response) { return new ListConversationModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversationModelsRequest, ListConversationModelsResponse, ConversationModel> context, ApiFuture futureResponse) { @@ -1882,7 +1887,7 @@ public static class ListConversationModelsFixedSizeCollection ListConversationModelsFixedSizeCollection> { private ListConversationModelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1892,7 +1897,7 @@ private static ListConversationModelsFixedSizeCollection createEmptyCollection() @Override protected ListConversationModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationModelsFixedSizeCollection(pages, collectionSize); } } @@ -1935,12 +1940,13 @@ public static class ListConversationModelEvaluationsPage ListConversationModelEvaluationsPage> { private ListConversationModelEvaluationsPage( - PageContext< + @Nullable + PageContext< ListConversationModelEvaluationsRequest, ListConversationModelEvaluationsResponse, ConversationModelEvaluation> context, - ListConversationModelEvaluationsResponse response) { + @Nullable ListConversationModelEvaluationsResponse response) { super(context, response); } @@ -1950,18 +1956,20 @@ private static ListConversationModelEvaluationsPage createEmptyPage() { @Override protected ListConversationModelEvaluationsPage createPage( - PageContext< + @Nullable + PageContext< ListConversationModelEvaluationsRequest, ListConversationModelEvaluationsResponse, ConversationModelEvaluation> context, - ListConversationModelEvaluationsResponse response) { + @Nullable ListConversationModelEvaluationsResponse response) { return new ListConversationModelEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversationModelEvaluationsRequest, ListConversationModelEvaluationsResponse, ConversationModelEvaluation> @@ -1980,7 +1988,7 @@ public static class ListConversationModelEvaluationsFixedSizeCollection ListConversationModelEvaluationsFixedSizeCollection> { private ListConversationModelEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1990,7 +1998,7 @@ private static ListConversationModelEvaluationsFixedSizeCollection createEmptyCo @Override protected ListConversationModelEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationModelEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -2024,8 +2032,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2035,14 +2043,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2056,7 +2064,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2066,7 +2075,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java index 48cdb57f646a..fad8e47cb2ca 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsSettings.java @@ -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. /** @@ -300,7 +301,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); } @@ -320,7 +321,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationModelsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index 4a15da4da365..bfa8856d6684 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -43,6 +43,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. /** @@ -314,7 +315,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationProfilesClient implements BackgroundResource { - private final ConversationProfilesSettings settings; + private final @Nullable ConversationProfilesSettings settings; private final ConversationProfilesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -362,7 +363,7 @@ protected ConversationProfilesClient(ConversationProfilesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConversationProfilesSettings getSettings() { + public final @Nullable ConversationProfilesSettings getSettings() { return settings; } @@ -413,7 +414,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationProfilesPagedResponse listConversationProfiles(LocationName parent) { + public final ListConversationProfilesPagedResponse listConversationProfiles( + @Nullable LocationName parent) { ListConversationProfilesRequest request = ListConversationProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -447,7 +449,8 @@ public final ListConversationProfilesPagedResponse listConversationProfiles(Loca * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationProfilesPagedResponse listConversationProfiles(ProjectName parent) { + public final ListConversationProfilesPagedResponse listConversationProfiles( + @Nullable ProjectName parent) { ListConversationProfilesRequest request = ListConversationProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -623,7 +626,7 @@ public final ListConversationProfilesPagedResponse listConversationProfiles( * ID>/conversationProfiles/<Conversation Profile ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversationProfile getConversationProfile(ConversationProfileName name) { + public final ConversationProfile getConversationProfile(@Nullable ConversationProfileName name) { GetConversationProfileRequest request = GetConversationProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -763,7 +766,7 @@ public final ConversationProfile getConversationProfile(GetConversationProfileRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversationProfile createConversationProfile( - LocationName parent, ConversationProfile conversationProfile) { + @Nullable LocationName parent, ConversationProfile conversationProfile) { CreateConversationProfileRequest request = CreateConversationProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -806,7 +809,7 @@ public final ConversationProfile createConversationProfile( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversationProfile createConversationProfile( - ProjectName parent, ConversationProfile conversationProfile) { + @Nullable ProjectName parent, ConversationProfile conversationProfile) { CreateConversationProfileRequest request = CreateConversationProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1078,7 +1081,7 @@ public final ConversationProfile updateConversationProfile( * ID>/conversationProfiles/<Conversation Profile ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversationProfile(ConversationProfileName name) { + public final void deleteConversationProfile(@Nullable ConversationProfileName name) { DeleteConversationProfileRequest request = DeleteConversationProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1924,12 +1927,13 @@ public static class ListConversationProfilesPage ListConversationProfilesPage> { private ListConversationProfilesPage( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, - ListConversationProfilesResponse response) { + @Nullable ListConversationProfilesResponse response) { super(context, response); } @@ -1939,18 +1943,20 @@ private static ListConversationProfilesPage createEmptyPage() { @Override protected ListConversationProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, - ListConversationProfilesResponse response) { + @Nullable ListConversationProfilesResponse response) { return new ListConversationProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> @@ -1969,7 +1975,7 @@ public static class ListConversationProfilesFixedSizeCollection ListConversationProfilesFixedSizeCollection> { private ListConversationProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1979,7 +1985,7 @@ private static ListConversationProfilesFixedSizeCollection createEmptyCollection @Override protected ListConversationProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationProfilesFixedSizeCollection(pages, collectionSize); } } @@ -2013,8 +2019,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2024,14 +2030,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2045,7 +2051,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2055,7 +2062,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java index 8dfc33363a4a..6da3d60bccee 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -263,7 +264,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); } @@ -284,7 +285,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationProfilesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index 749b5c70ce87..c9fa1e8ba17d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java @@ -37,6 +37,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. /** @@ -360,7 +361,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationsClient implements BackgroundResource { - private final ConversationsSettings settings; + private final @Nullable ConversationsSettings settings; private final ConversationsStub stub; /** Constructs an instance of ConversationsClient with default settings. */ @@ -400,7 +401,7 @@ protected ConversationsClient(ConversationsStub stub) { this.stub = stub; } - public final ConversationsSettings getSettings() { + public final @Nullable ConversationsSettings getSettings() { return settings; } @@ -448,7 +449,8 @@ public ConversationsStub getStub() { * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(LocationName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable LocationName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -497,7 +499,8 @@ public final Conversation createConversation(LocationName parent, Conversation c * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(ProjectName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable ProjectName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -671,7 +674,7 @@ public final UnaryCallable createConver * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(LocationName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable LocationName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -703,7 +706,7 @@ public final ListConversationsPagedResponse listConversations(LocationName paren * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(ProjectName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable ProjectName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -872,7 +875,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * ID>/locations/<Location ID>/conversations/<Conversation ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -991,7 +994,7 @@ public final UnaryCallable getConversation * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation completeConversation(ConversationName name) { + public final Conversation completeConversation(@Nullable ConversationName name) { CompleteConversationRequest request = CompleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1124,7 +1127,8 @@ public final Conversation completeConversation(CompleteConversationRequest reque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IngestContextReferencesResponse ingestContextReferences( - ConversationName conversation, Map contextReferences) { + @Nullable ConversationName conversation, + Map contextReferences) { IngestContextReferencesRequest request = IngestContextReferencesRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -1268,7 +1272,7 @@ public final IngestContextReferencesResponse ingestContextReferences( * ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessagesPagedResponse listMessages(ConversationName parent) { + public final ListMessagesPagedResponse listMessages(@Nullable ConversationName parent) { ListMessagesRequest request = ListMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1458,7 +1462,7 @@ public final UnaryCallable listMessag * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SuggestConversationSummaryResponse suggestConversationSummary( - ConversationName conversation) { + @Nullable ConversationName conversation) { SuggestConversationSummaryRequest request = SuggestConversationSummaryRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -1836,7 +1840,8 @@ public final SearchKnowledgeResponse searchKnowledge(SearchKnowledgeRequest requ * configured in it to be able to get suggestions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateSuggestionsResponse generateSuggestions(ConversationName conversation) { + public final GenerateSuggestionsResponse generateSuggestions( + @Nullable ConversationName conversation) { GenerateSuggestionsRequest request = GenerateSuggestionsRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -2203,8 +2208,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -2214,14 +2220,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2236,7 +2244,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2246,7 +2254,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -2279,8 +2287,8 @@ public static class ListMessagesPage extends AbstractPage { private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { super(context, response); } @@ -2290,14 +2298,14 @@ private static ListMessagesPage createEmptyPage() { @Override protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { return new ListMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2311,7 +2319,8 @@ public static class ListMessagesFixedSizeCollection ListMessagesPage, ListMessagesFixedSizeCollection> { - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { + private ListMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2321,7 +2330,7 @@ private static ListMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessagesFixedSizeCollection(pages, collectionSize); } } @@ -2355,8 +2364,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2366,14 +2375,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2387,7 +2396,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2397,7 +2407,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java index a628cb09ced4..2e107221403d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java index 06fb67f2f3be..4e25bf049124 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java @@ -43,6 +43,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. /** @@ -325,7 +326,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentsClient implements BackgroundResource { - private final DocumentsSettings settings; + private final @Nullable DocumentsSettings settings; private final DocumentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -371,7 +372,7 @@ protected DocumentsClient(DocumentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentsSettings getSettings() { + public final @Nullable DocumentsSettings getSettings() { return settings; } @@ -422,7 +423,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(KnowledgeBaseName parent) { + public final ListDocumentsPagedResponse listDocuments(@Nullable KnowledgeBaseName parent) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -597,7 +598,7 @@ public final UnaryCallable listDocu * ID>/documents/<Document ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -730,7 +731,7 @@ public final UnaryCallable getDocumentCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDocumentAsync( - KnowledgeBaseName parent, Document document) { + @Nullable KnowledgeBaseName parent, Document document) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1058,7 +1059,7 @@ public final UnaryCallable importDocumentsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDocumentAsync( - DocumentName name) { + @Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDocumentAsync(request); @@ -1421,7 +1422,7 @@ public final UnaryCallable updateDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reloadDocumentAsync( - DocumentName name, String contentUri) { + @Nullable DocumentName name, String contentUri) { ReloadDocumentRequest request = ReloadDocumentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1997,8 +1998,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -2008,14 +2009,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2029,7 +2030,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2039,7 +2041,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } @@ -2073,8 +2075,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2084,14 +2086,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2105,7 +2107,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2115,7 +2118,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java index ae8ba49e9038..b99327ca9942 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -286,7 +287,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java index fcbab0d0b0a8..34aff5b05f6b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java @@ -41,6 +41,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EncryptionSpecServiceClient implements BackgroundResource { - private final EncryptionSpecServiceSettings settings; + private final @Nullable EncryptionSpecServiceSettings settings; private final EncryptionSpecServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -251,7 +252,7 @@ protected EncryptionSpecServiceClient(EncryptionSpecServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EncryptionSpecServiceSettings getSettings() { + public final @Nullable EncryptionSpecServiceSettings getSettings() { return settings; } @@ -298,7 +299,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the encryption spec resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptionSpec getEncryptionSpec(EncryptionSpecName name) { + public final EncryptionSpec getEncryptionSpec(@Nullable EncryptionSpecName name) { GetEncryptionSpecRequest request = GetEncryptionSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -789,8 +790,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -800,14 +801,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -821,7 +822,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -831,7 +833,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceSettings.java index 933eb5e40b69..77fff55bc3f6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -233,7 +234,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EncryptionSpecServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index 23c5afa8ed08..05d698dc8b46 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -43,6 +43,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. /** @@ -382,7 +383,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EntityTypesClient implements BackgroundResource { - private final EntityTypesSettings settings; + private final @Nullable EntityTypesSettings settings; private final EntityTypesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -429,7 +430,7 @@ protected EntityTypesClient(EntityTypesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EntityTypesSettings getSettings() { + public final @Nullable EntityTypesSettings getSettings() { return settings; } @@ -478,7 +479,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>/agent`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable AgentName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -545,7 +546,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent, String languageCode) { + public final ListEntityTypesPagedResponse listEntityTypes( + @Nullable AgentName parent, String languageCode) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -720,7 +722,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest * ID>/agent/entityTypes/<EntityType ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -780,7 +782,7 @@ public final EntityType getEntityType(String name) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name, String languageCode) { + public final EntityType getEntityType(@Nullable EntityTypeName name, String languageCode) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -908,7 +910,7 @@ public final UnaryCallable getEntityTypeCallab * @param entityType Required. The entity type to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType createEntityType(AgentName parent, EntityType entityType) { + public final EntityType createEntityType(@Nullable AgentName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -983,7 +985,7 @@ public final EntityType createEntityType(String parent, EntityType entityType) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( - AgentName parent, EntityType entityType, String languageCode) { + @Nullable AgentName parent, EntityType entityType, String languageCode) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1261,7 +1263,7 @@ public final UnaryCallable updateEntityType * ID>/agent/entityTypes/<EntityType ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntityType(EntityTypeName name) { + public final void deleteEntityType(@Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntityType(request); @@ -1529,7 +1531,7 @@ public final OperationFuture batchUpdate * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntityTypesAsync( - AgentName parent, List entityTypeNames) { + @Nullable AgentName parent, List entityTypeNames) { BatchDeleteEntityTypesRequest request = BatchDeleteEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1748,7 +1750,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateEntitiesAsync( - EntityTypeName parent, List entities) { + @Nullable EntityTypeName parent, List entities) { BatchCreateEntitiesRequest request = BatchCreateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1843,7 +1845,7 @@ public final OperationFuture batchCreateEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateEntitiesAsync( - EntityTypeName parent, List entities, String languageCode) { + @Nullable EntityTypeName parent, List entities, String languageCode) { BatchCreateEntitiesRequest request = BatchCreateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2075,7 +2077,7 @@ public final UnaryCallable batchCreateEnt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateEntitiesAsync( - EntityTypeName parent, List entities) { + @Nullable EntityTypeName parent, List entities) { BatchUpdateEntitiesRequest request = BatchUpdateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2172,7 +2174,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateEntitiesAsync( - EntityTypeName parent, List entities, String languageCode) { + @Nullable EntityTypeName parent, List entities, String languageCode) { BatchUpdateEntitiesRequest request = BatchUpdateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2411,7 +2413,7 @@ public final UnaryCallable batchUpdateEnt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntitiesAsync( - EntityTypeName parent, List entityValues) { + @Nullable EntityTypeName parent, List entityValues) { BatchDeleteEntitiesRequest request = BatchDeleteEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2511,7 +2513,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntitiesAsync( - EntityTypeName parent, List entityValues, String languageCode) { + @Nullable EntityTypeName parent, List entityValues, String languageCode) { BatchDeleteEntitiesRequest request = BatchDeleteEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2956,8 +2958,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -2967,14 +2969,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2989,7 +2991,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2999,7 +3001,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -3033,8 +3035,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3044,14 +3046,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3065,7 +3067,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3075,7 +3078,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java index cc7be96cc68b..c1fc370163d4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java @@ -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. /** @@ -274,7 +275,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); } @@ -294,7 +295,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java index 4650ad2ec7cf..73e1e11c9457 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java @@ -37,6 +37,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; /** Constructs an instance of EnvironmentsClient with default settings. */ @@ -290,7 +291,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.stub = stub; } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -323,7 +324,7 @@ public EnvironmentsStub getStub() { * ID>/locations/<Location ID>/agent` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { + public final ListEnvironmentsPagedResponse listEnvironments(@Nullable AgentName parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1080,8 +1081,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -1091,14 +1093,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1113,7 +1117,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1123,7 +1127,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -1161,9 +1165,10 @@ public static class GetEnvironmentHistoryPage GetEnvironmentHistoryPage> { private GetEnvironmentHistoryPage( - PageContext + @Nullable + PageContext context, - EnvironmentHistory response) { + @Nullable EnvironmentHistory response) { super(context, response); } @@ -1173,15 +1178,17 @@ private static GetEnvironmentHistoryPage createEmptyPage() { @Override protected GetEnvironmentHistoryPage createPage( - PageContext + @Nullable + PageContext context, - EnvironmentHistory response) { + @Nullable EnvironmentHistory response) { return new GetEnvironmentHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1197,7 +1204,7 @@ public static class GetEnvironmentHistoryFixedSizeCollection GetEnvironmentHistoryFixedSizeCollection> { private GetEnvironmentHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1207,7 +1214,7 @@ private static GetEnvironmentHistoryFixedSizeCollection createEmptyCollection() @Override protected GetEnvironmentHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetEnvironmentHistoryFixedSizeCollection(pages, collectionSize); } } @@ -1241,8 +1248,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1252,14 +1259,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1273,7 +1280,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1283,7 +1291,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java index ca680f00a308..f8291359961a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,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); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java index 2fbb63e84763..95e86dfb861d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java @@ -37,6 +37,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. /** @@ -192,7 +193,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FulfillmentsClient implements BackgroundResource { - private final FulfillmentsSettings settings; + private final @Nullable FulfillmentsSettings settings; private final FulfillmentsStub stub; /** Constructs an instance of FulfillmentsClient with default settings. */ @@ -231,7 +232,7 @@ protected FulfillmentsClient(FulfillmentsStub stub) { this.stub = stub; } - public final FulfillmentsSettings getSettings() { + public final @Nullable FulfillmentsSettings getSettings() { return settings; } @@ -261,7 +262,7 @@ public FulfillmentsStub getStub() { * ID>/agent/fulfillment`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Fulfillment getFulfillment(FulfillmentName name) { + public final Fulfillment getFulfillment(@Nullable FulfillmentName name) { GetFulfillmentRequest request = GetFulfillmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFulfillment(request); @@ -691,8 +692,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -702,14 +703,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -723,7 +724,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -733,7 +735,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java index 90abd27effd3..f0ff136762d0 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,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); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FulfillmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java index ad91fa640556..05a9dfedb06c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java @@ -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. /** @@ -245,7 +246,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GeneratorEvaluationsClient implements BackgroundResource { - private final GeneratorEvaluationsSettings settings; + private final @Nullable GeneratorEvaluationsSettings settings; private final GeneratorEvaluationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -293,7 +294,7 @@ protected GeneratorEvaluationsClient(GeneratorEvaluationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GeneratorEvaluationsSettings getSettings() { + public final @Nullable GeneratorEvaluationsSettings getSettings() { return settings; } @@ -348,7 +349,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createGeneratorEvaluationAsync( - GeneratorName parent, GeneratorEvaluation generatorEvaluation) { + @Nullable GeneratorName parent, GeneratorEvaluation generatorEvaluation) { CreateGeneratorEvaluationRequest request = CreateGeneratorEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -519,7 +520,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>/evaluations/<Evaluation ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GeneratorEvaluation getGeneratorEvaluation(GeneratorEvaluationName name) { + public final GeneratorEvaluation getGeneratorEvaluation(@Nullable GeneratorEvaluationName name) { GetGeneratorEvaluationRequest request = GetGeneratorEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -652,7 +653,7 @@ public final GeneratorEvaluation getGeneratorEvaluation(GetGeneratorEvaluationRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( - GeneratorName parent) { + @Nullable GeneratorName parent) { ListGeneratorEvaluationsRequest request = ListGeneratorEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -828,7 +829,7 @@ public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( * evaluations/<Evaluation ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGeneratorEvaluation(GeneratorEvaluationName name) { + public final void deleteGeneratorEvaluation(@Nullable GeneratorEvaluationName name) { DeleteGeneratorEvaluationRequest request = DeleteGeneratorEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1197,12 +1198,13 @@ public static class ListGeneratorEvaluationsPage ListGeneratorEvaluationsPage> { private ListGeneratorEvaluationsPage( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> context, - ListGeneratorEvaluationsResponse response) { + @Nullable ListGeneratorEvaluationsResponse response) { super(context, response); } @@ -1212,18 +1214,20 @@ private static ListGeneratorEvaluationsPage createEmptyPage() { @Override protected ListGeneratorEvaluationsPage createPage( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> context, - ListGeneratorEvaluationsResponse response) { + @Nullable ListGeneratorEvaluationsResponse response) { return new ListGeneratorEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> @@ -1242,7 +1246,7 @@ public static class ListGeneratorEvaluationsFixedSizeCollection ListGeneratorEvaluationsFixedSizeCollection> { private ListGeneratorEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1252,7 +1256,7 @@ private static ListGeneratorEvaluationsFixedSizeCollection createEmptyCollection @Override protected ListGeneratorEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -1286,8 +1290,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1297,14 +1301,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1318,7 +1322,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1328,7 +1333,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsSettings.java index 5f2fdeeac8ca..e93d49e4547d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,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); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorEvaluationsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java index b0b87db38243..603608e0d378 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java @@ -38,6 +38,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. /** @@ -256,7 +257,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GeneratorsClient implements BackgroundResource { - private final GeneratorsSettings settings; + private final @Nullable GeneratorsSettings settings; private final GeneratorsStub stub; /** Constructs an instance of GeneratorsClient with default settings. */ @@ -294,7 +295,7 @@ protected GeneratorsClient(GeneratorsStub stub) { this.stub = stub; } - public final GeneratorsSettings getSettings() { + public final @Nullable GeneratorsSettings getSettings() { return settings; } @@ -336,7 +337,7 @@ public GeneratorsStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Generator createGenerator( - ProjectName parent, Generator generator, String generatorId) { + @Nullable ProjectName parent, Generator generator, String generatorId) { CreateGeneratorRequest request = CreateGeneratorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -470,7 +471,7 @@ public final UnaryCallable createGeneratorCal * ID>/locations/<Location ID>/generators/<Generator ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator getGenerator(GeneratorName name) { + public final Generator getGenerator(@Nullable GeneratorName name) { GetGeneratorRequest request = GetGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGenerator(request); @@ -582,7 +583,7 @@ public final UnaryCallable getGeneratorCallable( * `projects/<Project ID>/locations/<Location ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGeneratorsPagedResponse listGenerators(ProjectName parent) { + public final ListGeneratorsPagedResponse listGenerators(@Nullable ProjectName parent) { ListGeneratorsRequest request = ListGeneratorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -745,7 +746,7 @@ public final ListGeneratorsPagedResponse listGenerators(ListGeneratorsRequest re * ID>/locations/<Location ID>/generators/<Generator ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGenerator(GeneratorName name) { + public final void deleteGenerator(@Nullable GeneratorName name) { DeleteGeneratorRequest request = DeleteGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGenerator(request); @@ -1173,8 +1174,8 @@ public static class ListGeneratorsPage ListGeneratorsRequest, ListGeneratorsResponse, Generator, ListGeneratorsPage> { private ListGeneratorsPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { super(context, response); } @@ -1184,14 +1185,14 @@ private static ListGeneratorsPage createEmptyPage() { @Override protected ListGeneratorsPage createPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { return new ListGeneratorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1205,7 +1206,8 @@ public static class ListGeneratorsFixedSizeCollection ListGeneratorsPage, ListGeneratorsFixedSizeCollection> { - private ListGeneratorsFixedSizeCollection(List pages, int collectionSize) { + private ListGeneratorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1215,7 +1217,7 @@ private static ListGeneratorsFixedSizeCollection createEmptyCollection() { @Override protected ListGeneratorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorsFixedSizeCollection(pages, collectionSize); } } @@ -1249,8 +1251,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1260,14 +1262,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1281,7 +1283,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1291,7 +1294,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsSettings.java index 126db2dd0241..7530f87e1b9b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index fd02284e8f53..7776e362e35c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -44,6 +44,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. /** @@ -314,7 +315,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IntentsClient implements BackgroundResource { - private final IntentsSettings settings; + private final @Nullable IntentsSettings settings; private final IntentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -360,7 +361,7 @@ protected IntentsClient(IntentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IntentsSettings getSettings() { + public final @Nullable IntentsSettings getSettings() { return settings; } @@ -414,7 +415,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * will not be returned for non-draft environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent) { + public final ListIntentsPagedResponse listIntents(@Nullable AgentName parent) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -490,7 +491,8 @@ public final ListIntentsPagedResponse listIntents(String parent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent, String languageCode) { + public final ListIntentsPagedResponse listIntents( + @Nullable AgentName parent, String languageCode) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -669,7 +671,7 @@ public final UnaryCallable listIntentsC * ID>/agent/intents/<Intent ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name) { + public final Intent getIntent(@Nullable IntentName name) { GetIntentRequest request = GetIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIntent(request); @@ -729,7 +731,7 @@ public final Intent getIntent(String name) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name, String languageCode) { + public final Intent getIntent(@Nullable IntentName name, String languageCode) { GetIntentRequest request = GetIntentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -857,7 +859,7 @@ public final UnaryCallable getIntentCallable() { * @param intent Required. The intent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -931,7 +933,7 @@ public final Intent createIntent(String parent, Intent intent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent, String languageCode) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent, String languageCode) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1219,7 +1221,7 @@ public final UnaryCallable updateIntentCallable() { * ID>/agent/intents/<Intent ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIntent(IntentName name) { + public final void deleteIntent(@Nullable IntentName name) { DeleteIntentRequest request = DeleteIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIntent(request); @@ -1355,7 +1357,7 @@ public final UnaryCallable deleteIntentCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateIntentsAsync( - AgentName parent, IntentBatch intentBatchInline) { + @Nullable AgentName parent, IntentBatch intentBatchInline) { BatchUpdateIntentsRequest request = BatchUpdateIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1404,7 +1406,7 @@ public final OperationFuture batchUpdateInte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateIntentsAsync( - AgentName parent, String intentBatchUri) { + @Nullable AgentName parent, String intentBatchUri) { BatchUpdateIntentsRequest request = BatchUpdateIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1677,7 +1679,7 @@ public final UnaryCallable batchUpdateInte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteIntentsAsync( - AgentName parent, List intents) { + @Nullable AgentName parent, List intents) { BatchDeleteIntentsRequest request = BatchDeleteIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2100,8 +2102,8 @@ public static class ListIntentsPage extends AbstractPage { private ListIntentsPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { super(context, response); } @@ -2111,14 +2113,14 @@ private static ListIntentsPage createEmptyPage() { @Override protected ListIntentsPage createPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { return new ListIntentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2132,7 +2134,8 @@ public static class ListIntentsFixedSizeCollection ListIntentsPage, ListIntentsFixedSizeCollection> { - private ListIntentsFixedSizeCollection(List pages, int collectionSize) { + private ListIntentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2142,7 +2145,7 @@ private static ListIntentsFixedSizeCollection createEmptyCollection() { @Override protected ListIntentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntentsFixedSizeCollection(pages, collectionSize); } } @@ -2176,8 +2179,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2187,14 +2190,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2208,7 +2211,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2218,7 +2222,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java index e345facc3729..db70b0694d3b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java @@ -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. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IntentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java index db25139668bc..6e70a1f7914c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java @@ -38,6 +38,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. /** @@ -256,7 +257,7 @@ @NullMarked @Generated("by gapic-generator-java") public class KnowledgeBasesClient implements BackgroundResource { - private final KnowledgeBasesSettings settings; + private final @Nullable KnowledgeBasesSettings settings; private final KnowledgeBasesStub stub; /** Constructs an instance of KnowledgeBasesClient with default settings. */ @@ -296,7 +297,7 @@ protected KnowledgeBasesClient(KnowledgeBasesStub stub) { this.stub = stub; } - public final KnowledgeBasesSettings getSettings() { + public final @Nullable KnowledgeBasesSettings getSettings() { return settings; } @@ -328,7 +329,7 @@ public KnowledgeBasesStub getStub() { * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKnowledgeBasesPagedResponse listKnowledgeBases(LocationName parent) { + public final ListKnowledgeBasesPagedResponse listKnowledgeBases(@Nullable LocationName parent) { ListKnowledgeBasesRequest request = ListKnowledgeBasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -360,7 +361,7 @@ public final ListKnowledgeBasesPagedResponse listKnowledgeBases(LocationName par * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKnowledgeBasesPagedResponse listKnowledgeBases(ProjectName parent) { + public final ListKnowledgeBasesPagedResponse listKnowledgeBases(@Nullable ProjectName parent) { ListKnowledgeBasesRequest request = ListKnowledgeBasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -530,7 +531,7 @@ public final ListKnowledgeBasesPagedResponse listKnowledgeBases( * ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase getKnowledgeBase(KnowledgeBaseName name) { + public final KnowledgeBase getKnowledgeBase(@Nullable KnowledgeBaseName name) { GetKnowledgeBaseRequest request = GetKnowledgeBaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKnowledgeBase(request); @@ -648,7 +649,8 @@ public final UnaryCallable getKnowledgeB * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) { + public final KnowledgeBase createKnowledgeBase( + @Nullable LocationName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -681,7 +683,8 @@ public final KnowledgeBase createKnowledgeBase(LocationName parent, KnowledgeBas * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) { + public final KnowledgeBase createKnowledgeBase( + @Nullable ProjectName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -805,7 +808,7 @@ public final KnowledgeBase createKnowledgeBase(CreateKnowledgeBaseRequest reques * ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteKnowledgeBase(KnowledgeBaseName name) { + public final void deleteKnowledgeBase(@Nullable KnowledgeBaseName name) { DeleteKnowledgeBaseRequest request = DeleteKnowledgeBaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1250,8 +1253,9 @@ public static class ListKnowledgeBasesPage ListKnowledgeBasesPage> { private ListKnowledgeBasesPage( - PageContext context, - ListKnowledgeBasesResponse response) { + @Nullable PageContext + context, + @Nullable ListKnowledgeBasesResponse response) { super(context, response); } @@ -1261,14 +1265,16 @@ private static ListKnowledgeBasesPage createEmptyPage() { @Override protected ListKnowledgeBasesPage createPage( - PageContext context, - ListKnowledgeBasesResponse response) { + @Nullable PageContext + context, + @Nullable ListKnowledgeBasesResponse response) { return new ListKnowledgeBasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1283,7 +1289,7 @@ public static class ListKnowledgeBasesFixedSizeCollection ListKnowledgeBasesFixedSizeCollection> { private ListKnowledgeBasesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1293,7 +1299,7 @@ private static ListKnowledgeBasesFixedSizeCollection createEmptyCollection() { @Override protected ListKnowledgeBasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKnowledgeBasesFixedSizeCollection(pages, collectionSize); } } @@ -1327,8 +1333,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1338,14 +1344,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1359,7 +1365,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1369,7 +1376,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java index 4fa61dde7e0c..114bb409b8cc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KnowledgeBasesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index 24bcf4dfa057..98c8e38b3136 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -38,6 +38,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. /** @@ -341,7 +342,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ParticipantsClient implements BackgroundResource { - private final ParticipantsSettings settings; + private final @Nullable ParticipantsSettings settings; private final ParticipantsStub stub; /** Constructs an instance of ParticipantsClient with default settings. */ @@ -380,7 +381,7 @@ protected ParticipantsClient(ParticipantsStub stub) { this.stub = stub; } - public final ParticipantsSettings getSettings() { + public final @Nullable ParticipantsSettings getSettings() { return settings; } @@ -414,7 +415,8 @@ public ParticipantsStub getStub() { * @param participant Required. The participant to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant createParticipant(ConversationName parent, Participant participant) { + public final Participant createParticipant( + @Nullable ConversationName parent, Participant participant) { CreateParticipantRequest request = CreateParticipantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +544,7 @@ public final UnaryCallable createParticip * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant getParticipant(ParticipantName name) { + public final Participant getParticipant(@Nullable ParticipantName name) { GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getParticipant(request); @@ -667,7 +669,7 @@ public final UnaryCallable getParticipantCal * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParticipantsPagedResponse listParticipants(ConversationName parent) { + public final ListParticipantsPagedResponse listParticipants(@Nullable ConversationName parent) { ListParticipantsRequest request = ListParticipantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -940,7 +942,7 @@ public final UnaryCallable updateParticip * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, AudioInput audioInput) { + @Nullable ParticipantName participant, AudioInput audioInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -981,7 +983,7 @@ public final AnalyzeContentResponse analyzeContent( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, EventInput eventInput) { + @Nullable ParticipantName participant, EventInput eventInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -1022,7 +1024,7 @@ public final AnalyzeContentResponse analyzeContent( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, TextInput textInput) { + @Nullable ParticipantName participant, TextInput textInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -1314,7 +1316,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestArticlesResponse suggestArticles(ParticipantName parent) { + public final SuggestArticlesResponse suggestArticles(@Nullable ParticipantName parent) { SuggestArticlesRequest request = SuggestArticlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1453,7 +1455,7 @@ public final SuggestArticlesResponse suggestArticles(SuggestArticlesRequest requ * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestFaqAnswersResponse suggestFaqAnswers(ParticipantName parent) { + public final SuggestFaqAnswersResponse suggestFaqAnswers(@Nullable ParticipantName parent) { SuggestFaqAnswersRequest request = SuggestFaqAnswersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1593,7 +1595,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersReques * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestSmartRepliesResponse suggestSmartReplies(ParticipantName parent) { + public final SuggestSmartRepliesResponse suggestSmartReplies(@Nullable ParticipantName parent) { SuggestSmartRepliesRequest request = SuggestSmartRepliesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2034,8 +2036,9 @@ public static class ListParticipantsPage ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage> { private ListParticipantsPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { super(context, response); } @@ -2045,14 +2048,16 @@ private static ListParticipantsPage createEmptyPage() { @Override protected ListParticipantsPage createPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { return new ListParticipantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2067,7 +2072,7 @@ public static class ListParticipantsFixedSizeCollection ListParticipantsFixedSizeCollection> { private ListParticipantsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2077,7 +2082,7 @@ private static ListParticipantsFixedSizeCollection createEmptyCollection() { @Override protected ListParticipantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantsFixedSizeCollection(pages, collectionSize); } } @@ -2111,8 +2116,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2122,14 +2127,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2143,7 +2148,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2153,7 +2159,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java index 49a016e979d0..f490510e0cdd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ParticipantsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 9880ae8cda97..fb4ed77dbdce 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -38,6 +38,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. /** @@ -266,7 +267,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionEntityTypesClient implements BackgroundResource { - private final SessionEntityTypesSettings settings; + private final @Nullable SessionEntityTypesSettings settings; private final SessionEntityTypesStub stub; /** Constructs an instance of SessionEntityTypesClient with default settings. */ @@ -306,7 +307,7 @@ protected SessionEntityTypesClient(SessionEntityTypesStub stub) { this.stub = stub; } - public final SessionEntityTypesSettings getSettings() { + public final @Nullable SessionEntityTypesSettings getSettings() { return settings; } @@ -345,7 +346,8 @@ public SessionEntityTypesStub getStub() { * 'draft' environment. If `User ID` is not specified, we assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionName parent) { + public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( + @Nullable SessionName parent) { ListSessionEntityTypesRequest request = ListSessionEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -537,7 +539,7 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( * not specified, we assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SessionEntityType getSessionEntityType(SessionEntityTypeName name) { + public final SessionEntityType getSessionEntityType(@Nullable SessionEntityTypeName name) { GetSessionEntityTypeRequest request = GetSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -686,7 +688,7 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SessionEntityType createSessionEntityType( - SessionName parent, SessionEntityType sessionEntityType) { + @Nullable SessionName parent, SessionEntityType sessionEntityType) { CreateSessionEntityTypeRequest request = CreateSessionEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -971,7 +973,7 @@ public final SessionEntityType updateSessionEntityType(UpdateSessionEntityTypeRe * not specified, we assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSessionEntityType(SessionEntityTypeName name) { + public final void deleteSessionEntityType(@Nullable SessionEntityTypeName name) { DeleteSessionEntityTypeRequest request = DeleteSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1343,10 +1345,11 @@ public static class ListSessionEntityTypesPage ListSessionEntityTypesPage> { private ListSessionEntityTypesPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { super(context, response); } @@ -1356,16 +1359,18 @@ private static ListSessionEntityTypesPage createEmptyPage() { @Override protected ListSessionEntityTypesPage createPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { return new ListSessionEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, ApiFuture futureResponse) { @@ -1382,7 +1387,7 @@ public static class ListSessionEntityTypesFixedSizeCollection ListSessionEntityTypesFixedSizeCollection> { private ListSessionEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1392,7 +1397,7 @@ private static ListSessionEntityTypesFixedSizeCollection createEmptyCollection() @Override protected ListSessionEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1426,8 +1431,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1437,14 +1442,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1458,7 +1463,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1468,7 +1474,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java index 35e96a443b15..7b205ccae5a5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -197,7 +198,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); } @@ -217,7 +218,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionEntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java index e177e627fa7b..fb999c0f49d9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java @@ -37,6 +37,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. /** @@ -192,7 +193,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionsClient implements BackgroundResource { - private final SessionsSettings settings; + private final @Nullable SessionsSettings settings; private final SessionsStub stub; /** Constructs an instance of SessionsClient with default settings. */ @@ -230,7 +231,7 @@ protected SessionsClient(SessionsStub stub) { this.stub = stub; } - public final SessionsSettings getSettings() { + public final @Nullable SessionsSettings getSettings() { return settings; } @@ -288,7 +289,8 @@ public SessionsStub getStub() { *

3. an event that specifies which intent to trigger. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DetectIntentResponse detectIntent(SessionName session, QueryInput queryInput) { + public final DetectIntentResponse detectIntent( + @Nullable SessionName session, QueryInput queryInput) { DetectIntentRequest request = DetectIntentRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -739,8 +741,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -750,14 +752,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -771,7 +773,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -781,7 +784,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java index 28cb37e16c4f..030c9d8bf2f2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -171,7 +172,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java index 808b0d9f0ef4..e1791bb48c7c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java @@ -38,6 +38,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. /** @@ -252,7 +253,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SipTrunksClient implements BackgroundResource { - private final SipTrunksSettings settings; + private final @Nullable SipTrunksSettings settings; private final SipTrunksStub stub; /** Constructs an instance of SipTrunksClient with default settings. */ @@ -290,7 +291,7 @@ protected SipTrunksClient(SipTrunksStub stub) { this.stub = stub; } - public final SipTrunksSettings getSettings() { + public final @Nullable SipTrunksSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public SipTrunksStub getStub() { * @param sipTrunk Required. The SIP trunk to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SipTrunk createSipTrunk(LocationName parent, SipTrunk sipTrunk) { + public final SipTrunk createSipTrunk(@Nullable LocationName parent, SipTrunk sipTrunk) { CreateSipTrunkRequest request = CreateSipTrunkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -440,7 +441,7 @@ public final UnaryCallable createSipTrunkCallab * ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSipTrunk(SipTrunkName name) { + public final void deleteSipTrunk(@Nullable SipTrunkName name) { DeleteSipTrunkRequest request = DeleteSipTrunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSipTrunk(request); @@ -552,7 +553,7 @@ public final UnaryCallable deleteSipTrunkCallable( * ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSipTrunksPagedResponse listSipTrunks(LocationName parent) { + public final ListSipTrunksPagedResponse listSipTrunks(@Nullable LocationName parent) { ListSipTrunksRequest request = ListSipTrunksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -713,7 +714,7 @@ public final UnaryCallable listSipT * ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SipTrunk getSipTrunk(SipTrunkName name) { + public final SipTrunk getSipTrunk(@Nullable SipTrunkName name) { GetSipTrunkRequest request = GetSipTrunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSipTrunk(request); @@ -1137,8 +1138,8 @@ public static class ListSipTrunksPage ListSipTrunksRequest, ListSipTrunksResponse, SipTrunk, ListSipTrunksPage> { private ListSipTrunksPage( - PageContext context, - ListSipTrunksResponse response) { + @Nullable PageContext context, + @Nullable ListSipTrunksResponse response) { super(context, response); } @@ -1148,14 +1149,14 @@ private static ListSipTrunksPage createEmptyPage() { @Override protected ListSipTrunksPage createPage( - PageContext context, - ListSipTrunksResponse response) { + @Nullable PageContext context, + @Nullable ListSipTrunksResponse response) { return new ListSipTrunksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1169,7 +1170,8 @@ public static class ListSipTrunksFixedSizeCollection ListSipTrunksPage, ListSipTrunksFixedSizeCollection> { - private ListSipTrunksFixedSizeCollection(List pages, int collectionSize) { + private ListSipTrunksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1179,7 +1181,7 @@ private static ListSipTrunksFixedSizeCollection createEmptyCollection() { @Override protected ListSipTrunksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSipTrunksFixedSizeCollection(pages, collectionSize); } } @@ -1213,8 +1215,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1224,14 +1226,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1245,7 +1247,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1255,7 +1258,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksSettings.java index f9438db660a5..d7abbfa7396f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SipTrunksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java index 9e325afc2bc1..7d8ec9610e7d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java @@ -38,6 +38,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ToolsClient implements BackgroundResource { - private final ToolsSettings settings; + private final @Nullable ToolsSettings settings; private final ToolsStub stub; /** Constructs an instance of ToolsClient with default settings. */ @@ -291,7 +292,7 @@ protected ToolsClient(ToolsStub stub) { this.stub = stub; } - public final ToolsSettings getSettings() { + public final @Nullable ToolsSettings getSettings() { return settings; } @@ -331,7 +332,7 @@ public ToolsStub getStub() { * custom ID or not under a project to better ensure uniqueness. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(LocationName parent, Tool tool, String toolId) { + public final Tool createTool(@Nullable LocationName parent, Tool tool, String toolId) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -460,7 +461,7 @@ public final UnaryCallable createToolCallable() { * ID>/locations/<Location ID>/tools/<Tool ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -572,7 +573,7 @@ public final UnaryCallable getToolCallable() { * ID>/locations/<Location ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(LocationName parent) { + public final ListToolsPagedResponse listTools(@Nullable LocationName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -730,7 +731,7 @@ public final UnaryCallable listToolsCallabl * ID>/locations/<Location ID>/tools/<Tool ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -1147,8 +1148,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -1158,14 +1159,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1175,7 +1176,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1185,7 +1186,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -1219,8 +1220,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1230,14 +1231,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1251,7 +1252,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1261,7 +1263,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsSettings.java index be9515284ca3..60cbd7bf8d5d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java index 7a9155a90f53..00cd6e6e45f4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java @@ -38,6 +38,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. /** @@ -253,7 +254,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VersionsClient implements BackgroundResource { - private final VersionsSettings settings; + private final @Nullable VersionsSettings settings; private final VersionsStub stub; /** Constructs an instance of VersionsClient with default settings. */ @@ -291,7 +292,7 @@ protected VersionsClient(VersionsStub stub) { this.stub = stub; } - public final VersionsSettings getSettings() { + public final @Nullable VersionsSettings getSettings() { return settings; } @@ -324,7 +325,7 @@ public VersionsStub getStub() { * ID>/locations/<Location ID>/agent` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVersionsPagedResponse listVersions(AgentName parent) { + public final ListVersionsPagedResponse listVersions(@Nullable AgentName parent) { ListVersionsRequest request = ListVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -488,7 +489,7 @@ public final UnaryCallable listVersio * ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version getVersion(VersionName name) { + public final Version getVersion(@Nullable VersionName name) { GetVersionRequest request = GetVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVersion(request); @@ -605,7 +606,7 @@ public final UnaryCallable getVersionCallable() { * @param version Required. The version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version createVersion(AgentName parent, Version version) { + public final Version createVersion(@Nullable AgentName parent, Version version) { CreateVersionRequest request = CreateVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -830,7 +831,7 @@ public final UnaryCallable updateVersionCallable( * ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVersion(VersionName name) { + public final void deleteVersion(@Nullable VersionName name) { DeleteVersionRequest request = DeleteVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVersion(request); @@ -1168,8 +1169,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -1179,14 +1180,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1200,7 +1201,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1210,7 +1212,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1244,8 +1246,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1255,14 +1257,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1276,7 +1278,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1286,7 +1289,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java index 6d1372f37cf1..fb6820f304e8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java index e03f2d15bf18..010acf47cb44 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class AgentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java index 412e8e88b972..876536608b5b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -467,7 +468,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); } @@ -567,7 +568,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java index de2bc5fc755d..cfcf6409f58e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -367,7 +368,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); } @@ -441,7 +442,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAnswerRecordsSettings = PagedCallSettings.newBuilder(LIST_ANSWER_RECORDS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java index 7fa9236f2dac..91117dd7b8ff 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -383,7 +384,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); } @@ -465,7 +466,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listContextsSettings = PagedCallSettings.newBuilder(LIST_CONTEXTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStub.java index 864a80ed1072..b8b61d110a16 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class ConversationDatasetsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java index 132799cfa708..854d0c9f4ad0 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationDatasetsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -488,7 +489,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); } @@ -593,7 +594,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversationDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStub.java index 0c7c686a8337..c13533d66e81 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class ConversationModelsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java index 53e4798275eb..0d117097a8da 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationModelsStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -630,7 +631,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); } @@ -764,7 +765,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversationModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java index 343a840a7436..c24a7f11a2ed 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class ConversationProfilesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java index d84f17252064..7365a8cad7f3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -494,7 +495,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); } @@ -602,7 +603,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConversationProfilesSettings = diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java index 2ea8ef71f5bd..0f61ab5d0f3d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -509,7 +510,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); } @@ -617,7 +618,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java index a6b7b7b51b25..bb683b75b96e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java index 5c7c9c2bef9b..7daf7d363aca 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,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); } @@ -594,7 +595,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDocumentsSettings = PagedCallSettings.newBuilder(LIST_DOCUMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStub.java index 740dec2c617d..42aa1a461539 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStub.java @@ -34,6 +34,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class EncryptionSpecServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java index c4123637da9d..003114b7332d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EncryptionSpecServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -353,7 +354,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); } @@ -434,7 +435,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEncryptionSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java index e9cda424b9b7..d61557f4b126 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class EntityTypesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java index 55aac9e0c8e8..5f9496859db3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -500,7 +501,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); } @@ -618,7 +619,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java index 3c8c8ead692c..4d329ca44adf 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -459,7 +460,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); } @@ -546,7 +547,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEnvironmentsSettings = PagedCallSettings.newBuilder(LIST_ENVIRONMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java index d053f9a87874..6803215ac160 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -301,7 +302,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); } @@ -374,7 +375,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFulfillmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStub.java index b2593ff421c5..532c176fd558 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class GeneratorEvaluationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java index a46adec92932..acd4240ff387 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorEvaluationsStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,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); } @@ -542,7 +543,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createGeneratorEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java index 3b945a7a67d7..3c9df2d762de 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GeneratorsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -461,7 +462,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createGeneratorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java index 3b95ab9b5844..999be26e220d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class IntentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java index c83a17a6cfbb..f182688df832 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -437,7 +438,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); } @@ -531,7 +532,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listIntentsSettings = PagedCallSettings.newBuilder(LIST_INTENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java index d40109d946cf..ccda8bfe3465 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -392,7 +393,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); } @@ -475,7 +476,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listKnowledgeBasesSettings = PagedCallSettings.newBuilder(LIST_KNOWLEDGE_BASES_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java index 5ebfd021b91a..b2c5f951df26 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -439,7 +440,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); } @@ -563,7 +564,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createParticipantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java index fd663fe018af..960eadde3d23 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -410,7 +411,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); } @@ -496,7 +497,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSessionEntityTypesSettings = diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java index 492a7e6ba982..bca013ecf1c9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,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); } @@ -400,7 +401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); detectIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java index 3ea0a0973c9b..9d7a6ee00cc7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SipTrunksStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSipTrunkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java index 039dadf78448..c98fd945ff47 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ToolsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -375,7 +376,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java index 82724de0c216..aa60e08721d4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVersionsSettings = PagedCallSettings.newBuilder(LIST_VERSIONS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index cd31dfb01db9..cd26b16ffe50 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -43,6 +43,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. /** @@ -342,7 +343,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AgentsClient implements BackgroundResource { - private final AgentsSettings settings; + private final @Nullable AgentsSettings settings; private final AgentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -388,7 +389,7 @@ protected AgentsClient(AgentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AgentsSettings getSettings() { + public final @Nullable AgentsSettings getSettings() { return settings; } @@ -436,7 +437,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(LocationName parent) { + public final Agent getAgent(@Nullable LocationName parent) { GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return getAgent(request); @@ -465,7 +466,7 @@ public final Agent getAgent(LocationName parent) { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Agent getAgent(ProjectName parent) { + public final Agent getAgent(@Nullable ProjectName parent) { GetAgentRequest request = GetAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return getAgent(request); @@ -665,7 +666,7 @@ public final UnaryCallable setAgentCallable() { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(LocationName parent) { + public final void deleteAgent(@Nullable LocationName parent) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -696,7 +697,7 @@ public final void deleteAgent(LocationName parent) { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAgent(ProjectName parent) { + public final void deleteAgent(@Nullable ProjectName parent) { DeleteAgentRequest request = DeleteAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -810,7 +811,7 @@ public final UnaryCallable deleteAgentCallable() { * '-'>` or `projects/<Project ID or '-'>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(LocationName parent) { + public final SearchAgentsPagedResponse searchAgents(@Nullable LocationName parent) { SearchAgentsRequest request = SearchAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -845,7 +846,7 @@ public final SearchAgentsPagedResponse searchAgents(LocationName parent) { * '-'>` or `projects/<Project ID or '-'>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAgentsPagedResponse searchAgents(ProjectName parent) { + public final SearchAgentsPagedResponse searchAgents(@Nullable ProjectName parent) { SearchAgentsRequest request = SearchAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1031,7 +1032,7 @@ public final UnaryCallable searchAgen * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainAgentAsync(LocationName parent) { + public final OperationFuture trainAgentAsync(@Nullable LocationName parent) { TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return trainAgentAsync(request); @@ -1072,7 +1073,7 @@ public final OperationFuture trainAgentAsync(LocationName parent) * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture trainAgentAsync(ProjectName parent) { + public final OperationFuture trainAgentAsync(@Nullable ProjectName parent) { TrainAgentRequest request = TrainAgentRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return trainAgentAsync(request); @@ -1262,7 +1263,8 @@ public final UnaryCallable trainAgentCallable() { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAgentAsync(LocationName parent) { + public final OperationFuture exportAgentAsync( + @Nullable LocationName parent) { ExportAgentRequest request = ExportAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1301,7 +1303,8 @@ public final OperationFuture exportAgentAsync(Locat * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportAgentAsync(ProjectName parent) { + public final OperationFuture exportAgentAsync( + @Nullable ProjectName parent) { ExportAgentRequest request = ExportAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2056,8 +2059,8 @@ public static class SearchAgentsPage extends AbstractPage { private SearchAgentsPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { super(context, response); } @@ -2067,14 +2070,14 @@ private static SearchAgentsPage createEmptyPage() { @Override protected SearchAgentsPage createPage( - PageContext context, - SearchAgentsResponse response) { + @Nullable PageContext context, + @Nullable SearchAgentsResponse response) { return new SearchAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2088,7 +2091,8 @@ public static class SearchAgentsFixedSizeCollection SearchAgentsPage, SearchAgentsFixedSizeCollection> { - private SearchAgentsFixedSizeCollection(List pages, int collectionSize) { + private SearchAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2098,7 +2102,7 @@ private static SearchAgentsFixedSizeCollection createEmptyCollection() { @Override protected SearchAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2132,8 +2136,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2143,14 +2147,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2164,7 +2168,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2174,7 +2179,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java index 833960c54aa0..14ef8416ba58 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java @@ -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. /** @@ -258,7 +259,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); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AgentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java index 9ed3df14d7e6..2ed1aa860f24 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java @@ -38,6 +38,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. /** @@ -213,7 +214,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnswerRecordsClient implements BackgroundResource { - private final AnswerRecordsSettings settings; + private final @Nullable AnswerRecordsSettings settings; private final AnswerRecordsStub stub; /** Constructs an instance of AnswerRecordsClient with default settings. */ @@ -253,7 +254,7 @@ protected AnswerRecordsClient(AnswerRecordsStub stub) { this.stub = stub; } - public final AnswerRecordsSettings getSettings() { + public final @Nullable AnswerRecordsSettings getSettings() { return settings; } @@ -342,7 +343,7 @@ public final UnaryCallable getAnswerRecord * order. Format: `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnswerRecordsPagedResponse listAnswerRecords(LocationName parent) { + public final ListAnswerRecordsPagedResponse listAnswerRecords(@Nullable LocationName parent) { ListAnswerRecordsRequest request = ListAnswerRecordsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -374,7 +375,7 @@ public final ListAnswerRecordsPagedResponse listAnswerRecords(LocationName paren * order. Format: `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnswerRecordsPagedResponse listAnswerRecords(ProjectName parent) { + public final ListAnswerRecordsPagedResponse listAnswerRecords(@Nullable ProjectName parent) { ListAnswerRecordsRequest request = ListAnswerRecordsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -863,8 +864,9 @@ public static class ListAnswerRecordsPage ListAnswerRecordsPage> { private ListAnswerRecordsPage( - PageContext context, - ListAnswerRecordsResponse response) { + @Nullable PageContext + context, + @Nullable ListAnswerRecordsResponse response) { super(context, response); } @@ -874,14 +876,16 @@ private static ListAnswerRecordsPage createEmptyPage() { @Override protected ListAnswerRecordsPage createPage( - PageContext context, - ListAnswerRecordsResponse response) { + @Nullable PageContext + context, + @Nullable ListAnswerRecordsResponse response) { return new ListAnswerRecordsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -896,7 +900,7 @@ public static class ListAnswerRecordsFixedSizeCollection ListAnswerRecordsFixedSizeCollection> { private ListAnswerRecordsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -906,7 +910,7 @@ private static ListAnswerRecordsFixedSizeCollection createEmptyCollection() { @Override protected ListAnswerRecordsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnswerRecordsFixedSizeCollection(pages, collectionSize); } } @@ -940,8 +944,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -951,14 +955,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -972,7 +976,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -982,7 +987,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsSettings.java index 00ac0d2f3bda..9726a6d75c9e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnswerRecordsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index 5a329a9976a2..7ea7e52e6ae9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -39,6 +39,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. /** @@ -275,7 +276,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ContextsClient implements BackgroundResource { - private final ContextsSettings settings; + private final @Nullable ContextsSettings settings; private final ContextsStub stub; /** Constructs an instance of ContextsClient with default settings. */ @@ -313,7 +314,7 @@ protected ContextsClient(ContextsStub stub) { this.stub = stub; } - public final ContextsSettings getSettings() { + public final @Nullable ContextsSettings getSettings() { return settings; } @@ -353,7 +354,7 @@ public ContextsStub getStub() { * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContextsPagedResponse listContexts(SessionName parent) { + public final ListContextsPagedResponse listContexts(@Nullable SessionName parent) { ListContextsRequest request = ListContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -532,7 +533,7 @@ public final UnaryCallable listContex * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context getContext(ContextName name) { + public final Context getContext(@Nullable ContextName name) { GetContextRequest request = GetContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContext(request); @@ -668,7 +669,7 @@ public final UnaryCallable getContextCallable() { * @param context Required. The context to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Context createContext(SessionName parent, Context context) { + public final Context createContext(@Nullable SessionName parent, Context context) { CreateContextRequest request = CreateContextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -922,7 +923,7 @@ public final UnaryCallable updateContextCallable( * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteContext(ContextName name) { + public final void deleteContext(@Nullable ContextName name) { DeleteContextRequest request = DeleteContextRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteContext(request); @@ -1054,7 +1055,7 @@ public final UnaryCallable deleteContextCallable() * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAllContexts(SessionName parent) { + public final void deleteAllContexts(@Nullable SessionName parent) { DeleteAllContextsRequest request = DeleteAllContextsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1401,8 +1402,8 @@ public static class ListContextsPage extends AbstractPage { private ListContextsPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { super(context, response); } @@ -1412,14 +1413,14 @@ private static ListContextsPage createEmptyPage() { @Override protected ListContextsPage createPage( - PageContext context, - ListContextsResponse response) { + @Nullable PageContext context, + @Nullable ListContextsResponse response) { return new ListContextsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1433,7 +1434,8 @@ public static class ListContextsFixedSizeCollection ListContextsPage, ListContextsFixedSizeCollection> { - private ListContextsFixedSizeCollection(List pages, int collectionSize) { + private ListContextsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1443,7 +1445,7 @@ private static ListContextsFixedSizeCollection createEmptyCollection() { @Override protected ListContextsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContextsFixedSizeCollection(pages, collectionSize); } } @@ -1477,8 +1479,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1488,14 +1490,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1509,7 +1511,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1519,7 +1522,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsSettings.java index 062ae5cedb8c..a4779533a2ff 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ContextsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java index 291da152e7b6..e7fcd709852b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java @@ -43,6 +43,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. /** @@ -315,7 +316,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationProfilesClient implements BackgroundResource { - private final ConversationProfilesSettings settings; + private final @Nullable ConversationProfilesSettings settings; private final ConversationProfilesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -363,7 +364,7 @@ protected ConversationProfilesClient(ConversationProfilesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConversationProfilesSettings getSettings() { + public final @Nullable ConversationProfilesSettings getSettings() { return settings; } @@ -414,7 +415,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationProfilesPagedResponse listConversationProfiles(LocationName parent) { + public final ListConversationProfilesPagedResponse listConversationProfiles( + @Nullable LocationName parent) { ListConversationProfilesRequest request = ListConversationProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -448,7 +450,8 @@ public final ListConversationProfilesPagedResponse listConversationProfiles(Loca * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationProfilesPagedResponse listConversationProfiles(ProjectName parent) { + public final ListConversationProfilesPagedResponse listConversationProfiles( + @Nullable ProjectName parent) { ListConversationProfilesRequest request = ListConversationProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -624,7 +627,7 @@ public final ListConversationProfilesPagedResponse listConversationProfiles( * ID>/conversationProfiles/<Conversation Profile ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversationProfile getConversationProfile(ConversationProfileName name) { + public final ConversationProfile getConversationProfile(@Nullable ConversationProfileName name) { GetConversationProfileRequest request = GetConversationProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -762,7 +765,7 @@ public final ConversationProfile getConversationProfile(GetConversationProfileRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversationProfile createConversationProfile( - LocationName parent, ConversationProfile conversationProfile) { + @Nullable LocationName parent, ConversationProfile conversationProfile) { CreateConversationProfileRequest request = CreateConversationProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -803,7 +806,7 @@ public final ConversationProfile createConversationProfile( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversationProfile createConversationProfile( - ProjectName parent, ConversationProfile conversationProfile) { + @Nullable ProjectName parent, ConversationProfile conversationProfile) { CreateConversationProfileRequest request = CreateConversationProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1063,7 +1066,7 @@ public final ConversationProfile updateConversationProfile( * ID>/conversationProfiles/<Conversation Profile ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversationProfile(ConversationProfileName name) { + public final void deleteConversationProfile(@Nullable ConversationProfileName name) { DeleteConversationProfileRequest request = DeleteConversationProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1909,12 +1912,13 @@ public static class ListConversationProfilesPage ListConversationProfilesPage> { private ListConversationProfilesPage( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, - ListConversationProfilesResponse response) { + @Nullable ListConversationProfilesResponse response) { super(context, response); } @@ -1924,18 +1928,20 @@ private static ListConversationProfilesPage createEmptyPage() { @Override protected ListConversationProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, - ListConversationProfilesResponse response) { + @Nullable ListConversationProfilesResponse response) { return new ListConversationProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> @@ -1954,7 +1960,7 @@ public static class ListConversationProfilesFixedSizeCollection ListConversationProfilesFixedSizeCollection> { private ListConversationProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1964,7 +1970,7 @@ private static ListConversationProfilesFixedSizeCollection createEmptyCollection @Override protected ListConversationProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationProfilesFixedSizeCollection(pages, collectionSize); } } @@ -1998,8 +2004,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2009,14 +2015,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2030,7 +2036,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2040,7 +2047,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesSettings.java index f9800dd0e690..656708a28e14 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,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); } @@ -285,7 +286,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationProfilesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java index 798fe8519667..fea3a6555fef 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java @@ -38,6 +38,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. /** @@ -378,7 +379,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationsClient implements BackgroundResource { - private final ConversationsSettings settings; + private final @Nullable ConversationsSettings settings; private final ConversationsStub stub; /** Constructs an instance of ConversationsClient with default settings. */ @@ -418,7 +419,7 @@ protected ConversationsClient(ConversationsStub stub) { this.stub = stub; } - public final ConversationsSettings getSettings() { + public final @Nullable ConversationsSettings getSettings() { return settings; } @@ -466,7 +467,8 @@ public ConversationsStub getStub() { * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(LocationName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable LocationName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -515,7 +517,8 @@ public final Conversation createConversation(LocationName parent, Conversation c * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(ProjectName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable ProjectName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -689,7 +692,7 @@ public final UnaryCallable createConver * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(LocationName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable LocationName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -721,7 +724,7 @@ public final ListConversationsPagedResponse listConversations(LocationName paren * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(ProjectName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable ProjectName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -890,7 +893,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * ID>/locations/<Location ID>/conversations/<Conversation ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -1009,7 +1012,7 @@ public final UnaryCallable getConversation * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation completeConversation(ConversationName name) { + public final Conversation completeConversation(@Nullable ConversationName name) { CompleteConversationRequest request = CompleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1142,7 +1145,8 @@ public final Conversation completeConversation(CompleteConversationRequest reque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IngestContextReferencesResponse ingestContextReferences( - ConversationName conversation, Map contextReferences) { + @Nullable ConversationName conversation, + Map contextReferences) { IngestContextReferencesRequest request = IngestContextReferencesRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -1288,7 +1292,7 @@ public final IngestContextReferencesResponse ingestContextReferences( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateMessagesResponse batchCreateMessages( - ConversationName parent, List requests) { + @Nullable ConversationName parent, List requests) { BatchCreateMessagesRequest request = BatchCreateMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1428,7 +1432,7 @@ public final BatchCreateMessagesResponse batchCreateMessages(BatchCreateMessages * ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessagesPagedResponse listMessages(ConversationName parent) { + public final ListMessagesPagedResponse listMessages(@Nullable ConversationName parent) { ListMessagesRequest request = ListMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1618,7 +1622,7 @@ public final UnaryCallable listMessag * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SuggestConversationSummaryResponse suggestConversationSummary( - ConversationName conversation) { + @Nullable ConversationName conversation) { SuggestConversationSummaryRequest request = SuggestConversationSummaryRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -1996,7 +2000,8 @@ public final SearchKnowledgeResponse searchKnowledge(SearchKnowledgeRequest requ * configured in it to be able to get suggestions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateSuggestionsResponse generateSuggestions(ConversationName conversation) { + public final GenerateSuggestionsResponse generateSuggestions( + @Nullable ConversationName conversation) { GenerateSuggestionsRequest request = GenerateSuggestionsRequest.newBuilder() .setConversation(conversation == null ? null : conversation.toString()) @@ -2363,8 +2368,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -2374,14 +2380,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2396,7 +2404,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2406,7 +2414,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -2439,8 +2447,8 @@ public static class ListMessagesPage extends AbstractPage { private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { super(context, response); } @@ -2450,14 +2458,14 @@ private static ListMessagesPage createEmptyPage() { @Override protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { return new ListMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2471,7 +2479,8 @@ public static class ListMessagesFixedSizeCollection ListMessagesPage, ListMessagesFixedSizeCollection> { - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { + private ListMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2481,7 +2490,7 @@ private static ListMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessagesFixedSizeCollection(pages, collectionSize); } } @@ -2515,8 +2524,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2526,14 +2535,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2547,7 +2556,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2557,7 +2567,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsSettings.java index 46f16a4360d7..4ebec689eabc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index 374e07e23993..b4d9e5100942 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -43,6 +43,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. /** @@ -315,7 +316,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DocumentsClient implements BackgroundResource { - private final DocumentsSettings settings; + private final @Nullable DocumentsSettings settings; private final DocumentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -361,7 +362,7 @@ protected DocumentsClient(DocumentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentsSettings getSettings() { + public final @Nullable DocumentsSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(KnowledgeBaseName parent) { + public final ListDocumentsPagedResponse listDocuments(@Nullable KnowledgeBaseName parent) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -605,7 +606,7 @@ public final UnaryCallable listDocu * ID>/documents/<Document ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -750,7 +751,7 @@ public final UnaryCallable getDocumentCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDocumentAsync( - KnowledgeBaseName parent, Document document) { + @Nullable KnowledgeBaseName parent, Document document) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1096,7 +1097,7 @@ public final UnaryCallable importDocumentsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDocumentAsync( - DocumentName name) { + @Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDocumentAsync(request); @@ -1522,7 +1523,7 @@ public final UnaryCallable updateDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reloadDocumentAsync( - DocumentName name, GcsSource gcsSource) { + @Nullable DocumentName name, GcsSource gcsSource) { ReloadDocumentRequest request = ReloadDocumentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1977,8 +1978,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1988,14 +1989,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2009,7 +2010,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2019,7 +2021,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } @@ -2053,8 +2055,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2064,14 +2066,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2085,7 +2087,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2095,7 +2098,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java index 82e719a5f991..070d4f32bfd8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -276,7 +277,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java index ec7d8bd8a54a..ca83976de08f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java @@ -41,6 +41,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. /** @@ -204,7 +205,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EncryptionSpecServiceClient implements BackgroundResource { - private final EncryptionSpecServiceSettings settings; + private final @Nullable EncryptionSpecServiceSettings settings; private final EncryptionSpecServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -252,7 +253,7 @@ protected EncryptionSpecServiceClient(EncryptionSpecServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EncryptionSpecServiceSettings getSettings() { + public final @Nullable EncryptionSpecServiceSettings getSettings() { return settings; } @@ -299,7 +300,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the encryption spec resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptionSpec getEncryptionSpec(EncryptionSpecName name) { + public final EncryptionSpec getEncryptionSpec(@Nullable EncryptionSpecName name) { GetEncryptionSpecRequest request = GetEncryptionSpecRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -790,8 +791,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -801,14 +802,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -822,7 +823,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -832,7 +834,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceSettings.java index 71d2198ee57f..3c8cba19f668 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -213,7 +214,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); } @@ -234,7 +235,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EncryptionSpecServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index 042c7453fefd..5257171cf483 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -44,6 +44,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. /** @@ -386,7 +387,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EntityTypesClient implements BackgroundResource { - private final EntityTypesSettings settings; + private final @Nullable EntityTypesSettings settings; private final EntityTypesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -433,7 +434,7 @@ protected EntityTypesClient(EntityTypesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EntityTypesSettings getSettings() { + public final @Nullable EntityTypesSettings getSettings() { return settings; } @@ -483,7 +484,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>/agent` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) { + public final ListEntityTypesPagedResponse listEntityTypes(@Nullable AgentName parent) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -552,7 +553,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent, String languageCode) { + public final ListEntityTypesPagedResponse listEntityTypes( + @Nullable AgentName parent, String languageCode) { ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -729,7 +731,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest * ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name) { + public final EntityType getEntityType(@Nullable EntityTypeName name) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntityType(request); @@ -791,7 +793,7 @@ public final EntityType getEntityType(String name) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType getEntityType(EntityTypeName name, String languageCode) { + public final EntityType getEntityType(@Nullable EntityTypeName name, String languageCode) { GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -921,7 +923,7 @@ public final UnaryCallable getEntityTypeCallab * @param entityType Required. The entity type to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EntityType createEntityType(AgentName parent, EntityType entityType) { + public final EntityType createEntityType(@Nullable AgentName parent, EntityType entityType) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -998,7 +1000,7 @@ public final EntityType createEntityType(String parent, EntityType entityType) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType createEntityType( - AgentName parent, EntityType entityType, String languageCode) { + @Nullable AgentName parent, EntityType entityType, String languageCode) { CreateEntityTypeRequest request = CreateEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1322,7 +1324,7 @@ public final UnaryCallable updateEntityType * Type ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntityType(EntityTypeName name) { + public final void deleteEntityType(@Nullable EntityTypeName name) { DeleteEntityTypeRequest request = DeleteEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEntityType(request); @@ -1593,7 +1595,7 @@ public final OperationFuture batchUpdate * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntityTypesAsync( - AgentName parent, List entityTypeNames) { + @Nullable AgentName parent, List entityTypeNames) { BatchDeleteEntityTypesRequest request = BatchDeleteEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1815,7 +1817,7 @@ public final OperationFuture batchDeleteEntityTypesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateEntitiesAsync( - EntityTypeName parent, List entities) { + @Nullable EntityTypeName parent, List entities) { BatchCreateEntitiesRequest request = BatchCreateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1914,7 +1916,7 @@ public final OperationFuture batchCreateEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateEntitiesAsync( - EntityTypeName parent, List entities, String languageCode) { + @Nullable EntityTypeName parent, List entities, String languageCode) { BatchCreateEntitiesRequest request = BatchCreateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2150,7 +2152,7 @@ public final UnaryCallable batchCreateEnt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateEntitiesAsync( - EntityTypeName parent, List entities) { + @Nullable EntityTypeName parent, List entities) { BatchUpdateEntitiesRequest request = BatchUpdateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2251,7 +2253,7 @@ public final OperationFuture batchUpdateEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateEntitiesAsync( - EntityTypeName parent, List entities, String languageCode) { + @Nullable EntityTypeName parent, List entities, String languageCode) { BatchUpdateEntitiesRequest request = BatchUpdateEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2494,7 +2496,7 @@ public final UnaryCallable batchUpdateEnt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntitiesAsync( - EntityTypeName parent, List entityValues) { + @Nullable EntityTypeName parent, List entityValues) { BatchDeleteEntitiesRequest request = BatchDeleteEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2598,7 +2600,7 @@ public final OperationFuture batchDeleteEntitiesAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteEntitiesAsync( - EntityTypeName parent, List entityValues, String languageCode) { + @Nullable EntityTypeName parent, List entityValues, String languageCode) { BatchDeleteEntitiesRequest request = BatchDeleteEntitiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3045,8 +3047,8 @@ public static class ListEntityTypesPage ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage> { private ListEntityTypesPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { super(context, response); } @@ -3056,14 +3058,14 @@ private static ListEntityTypesPage createEmptyPage() { @Override protected ListEntityTypesPage createPage( - PageContext context, - ListEntityTypesResponse response) { + @Nullable PageContext context, + @Nullable ListEntityTypesResponse response) { return new ListEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3078,7 +3080,7 @@ public static class ListEntityTypesFixedSizeCollection ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3088,7 +3090,7 @@ private static ListEntityTypesFixedSizeCollection createEmptyCollection() { @Override protected ListEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -3122,8 +3124,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3133,14 +3135,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3154,7 +3156,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3164,7 +3167,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesSettings.java index c0fe4e62e8cd..3a9e7929b647 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesSettings.java @@ -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. /** @@ -275,7 +276,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); } @@ -295,7 +296,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java index fb948bdf942f..ea68e182f751 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java @@ -38,6 +38,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. /** @@ -254,7 +255,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; /** Constructs an instance of EnvironmentsClient with default settings. */ @@ -293,7 +294,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.stub = stub; } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -326,7 +327,7 @@ public EnvironmentsStub getStub() { * ID>/agent` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnvironmentsPagedResponse listEnvironments(AgentName parent) { + public final ListEnvironmentsPagedResponse listEnvironments(@Nullable AgentName parent) { ListEnvironmentsRequest request = ListEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1083,8 +1084,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -1094,14 +1096,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1116,7 +1120,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1126,7 +1130,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -1164,9 +1168,10 @@ public static class GetEnvironmentHistoryPage GetEnvironmentHistoryPage> { private GetEnvironmentHistoryPage( - PageContext + @Nullable + PageContext context, - EnvironmentHistory response) { + @Nullable EnvironmentHistory response) { super(context, response); } @@ -1176,15 +1181,17 @@ private static GetEnvironmentHistoryPage createEmptyPage() { @Override protected GetEnvironmentHistoryPage createPage( - PageContext + @Nullable + PageContext context, - EnvironmentHistory response) { + @Nullable EnvironmentHistory response) { return new GetEnvironmentHistoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1200,7 +1207,7 @@ public static class GetEnvironmentHistoryFixedSizeCollection GetEnvironmentHistoryFixedSizeCollection> { private GetEnvironmentHistoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1210,7 +1217,7 @@ private static GetEnvironmentHistoryFixedSizeCollection createEmptyCollection() @Override protected GetEnvironmentHistoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GetEnvironmentHistoryFixedSizeCollection(pages, collectionSize); } } @@ -1244,8 +1251,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1255,14 +1262,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1276,7 +1283,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1286,7 +1294,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsSettings.java index b3e0196aa998..e070c18f189d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,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); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java index 51fc9a005ea5..e8fe52ae69c7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java @@ -38,6 +38,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. /** @@ -195,7 +196,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FulfillmentsClient implements BackgroundResource { - private final FulfillmentsSettings settings; + private final @Nullable FulfillmentsSettings settings; private final FulfillmentsStub stub; /** Constructs an instance of FulfillmentsClient with default settings. */ @@ -234,7 +235,7 @@ protected FulfillmentsClient(FulfillmentsStub stub) { this.stub = stub; } - public final FulfillmentsSettings getSettings() { + public final @Nullable FulfillmentsSettings getSettings() { return settings; } @@ -265,7 +266,7 @@ public FulfillmentsStub getStub() { * ID>/locations/<Location ID>/agent/fulfillment` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Fulfillment getFulfillment(FulfillmentName name) { + public final Fulfillment getFulfillment(@Nullable FulfillmentName name) { GetFulfillmentRequest request = GetFulfillmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFulfillment(request); @@ -696,8 +697,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -707,14 +708,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -728,7 +729,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -738,7 +740,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsSettings.java index 4fd7ce9db70c..9a60ebe00273 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -171,7 +172,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FulfillmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java index 00206420998d..34c31dc08561 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java @@ -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. /** @@ -246,7 +247,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GeneratorEvaluationsClient implements BackgroundResource { - private final GeneratorEvaluationsSettings settings; + private final @Nullable GeneratorEvaluationsSettings settings; private final GeneratorEvaluationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -294,7 +295,7 @@ protected GeneratorEvaluationsClient(GeneratorEvaluationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GeneratorEvaluationsSettings getSettings() { + public final @Nullable GeneratorEvaluationsSettings getSettings() { return settings; } @@ -349,7 +350,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createGeneratorEvaluationAsync( - GeneratorName parent, GeneratorEvaluation generatorEvaluation) { + @Nullable GeneratorName parent, GeneratorEvaluation generatorEvaluation) { CreateGeneratorEvaluationRequest request = CreateGeneratorEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -520,7 +521,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * ID>/evaluations/<Evaluation ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GeneratorEvaluation getGeneratorEvaluation(GeneratorEvaluationName name) { + public final GeneratorEvaluation getGeneratorEvaluation(@Nullable GeneratorEvaluationName name) { GetGeneratorEvaluationRequest request = GetGeneratorEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -653,7 +654,7 @@ public final GeneratorEvaluation getGeneratorEvaluation(GetGeneratorEvaluationRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( - GeneratorName parent) { + @Nullable GeneratorName parent) { ListGeneratorEvaluationsRequest request = ListGeneratorEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -829,7 +830,7 @@ public final ListGeneratorEvaluationsPagedResponse listGeneratorEvaluations( * evaluations/<Evaluation ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGeneratorEvaluation(GeneratorEvaluationName name) { + public final void deleteGeneratorEvaluation(@Nullable GeneratorEvaluationName name) { DeleteGeneratorEvaluationRequest request = DeleteGeneratorEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1198,12 +1199,13 @@ public static class ListGeneratorEvaluationsPage ListGeneratorEvaluationsPage> { private ListGeneratorEvaluationsPage( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> context, - ListGeneratorEvaluationsResponse response) { + @Nullable ListGeneratorEvaluationsResponse response) { super(context, response); } @@ -1213,18 +1215,20 @@ private static ListGeneratorEvaluationsPage createEmptyPage() { @Override protected ListGeneratorEvaluationsPage createPage( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> context, - ListGeneratorEvaluationsResponse response) { + @Nullable ListGeneratorEvaluationsResponse response) { return new ListGeneratorEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGeneratorEvaluationsRequest, ListGeneratorEvaluationsResponse, GeneratorEvaluation> @@ -1243,7 +1247,7 @@ public static class ListGeneratorEvaluationsFixedSizeCollection ListGeneratorEvaluationsFixedSizeCollection> { private ListGeneratorEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1253,7 +1257,7 @@ private static ListGeneratorEvaluationsFixedSizeCollection createEmptyCollection @Override protected ListGeneratorEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -1287,8 +1291,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1298,14 +1302,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1319,7 +1323,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1329,7 +1334,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java index a2403a97f271..034f6cf25dca 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorEvaluationsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java index 10bc999835e5..95998cf1b73f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java @@ -39,6 +39,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. /** @@ -258,7 +259,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GeneratorsClient implements BackgroundResource { - private final GeneratorsSettings settings; + private final @Nullable GeneratorsSettings settings; private final GeneratorsStub stub; /** Constructs an instance of GeneratorsClient with default settings. */ @@ -296,7 +297,7 @@ protected GeneratorsClient(GeneratorsStub stub) { this.stub = stub; } - public final GeneratorsSettings getSettings() { + public final @Nullable GeneratorsSettings getSettings() { return settings; } @@ -338,7 +339,7 @@ public GeneratorsStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Generator createGenerator( - ProjectName parent, Generator generator, String generatorId) { + @Nullable ProjectName parent, Generator generator, String generatorId) { CreateGeneratorRequest request = CreateGeneratorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -472,7 +473,7 @@ public final UnaryCallable createGeneratorCal * ID>/locations/<Location ID>`/generators/<Generator ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Generator getGenerator(GeneratorName name) { + public final Generator getGenerator(@Nullable GeneratorName name) { GetGeneratorRequest request = GetGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGenerator(request); @@ -584,7 +585,7 @@ public final UnaryCallable getGeneratorCallable( * `projects/<Project ID>/locations/<Location ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGeneratorsPagedResponse listGenerators(ProjectName parent) { + public final ListGeneratorsPagedResponse listGenerators(@Nullable ProjectName parent) { ListGeneratorsRequest request = ListGeneratorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -747,7 +748,7 @@ public final ListGeneratorsPagedResponse listGenerators(ListGeneratorsRequest re * ID>/locations/<Location ID>/generators/<Generator ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGenerator(GeneratorName name) { + public final void deleteGenerator(@Nullable GeneratorName name) { DeleteGeneratorRequest request = DeleteGeneratorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGenerator(request); @@ -1175,8 +1176,8 @@ public static class ListGeneratorsPage ListGeneratorsRequest, ListGeneratorsResponse, Generator, ListGeneratorsPage> { private ListGeneratorsPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { super(context, response); } @@ -1186,14 +1187,14 @@ private static ListGeneratorsPage createEmptyPage() { @Override protected ListGeneratorsPage createPage( - PageContext context, - ListGeneratorsResponse response) { + @Nullable PageContext context, + @Nullable ListGeneratorsResponse response) { return new ListGeneratorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1207,7 +1208,8 @@ public static class ListGeneratorsFixedSizeCollection ListGeneratorsPage, ListGeneratorsFixedSizeCollection> { - private ListGeneratorsFixedSizeCollection(List pages, int collectionSize) { + private ListGeneratorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1217,7 +1219,7 @@ private static ListGeneratorsFixedSizeCollection createEmptyCollection() { @Override protected ListGeneratorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGeneratorsFixedSizeCollection(pages, collectionSize); } } @@ -1251,8 +1253,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1262,14 +1264,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1283,7 +1285,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1293,7 +1296,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsSettings.java index 9469a47c1be0..e10edde5fe0c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeneratorsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index a9b58a4f5119..18f7ce5b6258 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -44,6 +44,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. /** @@ -317,7 +318,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IntentsClient implements BackgroundResource { - private final IntentsSettings settings; + private final @Nullable IntentsSettings settings; private final IntentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -363,7 +364,7 @@ protected IntentsClient(IntentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IntentsSettings getSettings() { + public final @Nullable IntentsSettings getSettings() { return settings; } @@ -417,7 +418,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * will not be returned for non-draft environment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent) { + public final ListIntentsPagedResponse listIntents(@Nullable AgentName parent) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -493,7 +494,8 @@ public final ListIntentsPagedResponse listIntents(String parent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntentsPagedResponse listIntents(AgentName parent, String languageCode) { + public final ListIntentsPagedResponse listIntents( + @Nullable AgentName parent, String languageCode) { ListIntentsRequest request = ListIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -673,7 +675,7 @@ public final UnaryCallable listIntentsC * ID>/locations/<Location ID>/agent/intents/<Intent ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name) { + public final Intent getIntent(@Nullable IntentName name) { GetIntentRequest request = GetIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIntent(request); @@ -735,7 +737,7 @@ public final Intent getIntent(String name) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent getIntent(IntentName name, String languageCode) { + public final Intent getIntent(@Nullable IntentName name, String languageCode) { GetIntentRequest request = GetIntentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -865,7 +867,7 @@ public final UnaryCallable getIntentCallable() { * @param intent Required. The intent to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -941,7 +943,7 @@ public final Intent createIntent(String parent, Intent intent) { * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Intent createIntent(AgentName parent, Intent intent, String languageCode) { + public final Intent createIntent(@Nullable AgentName parent, Intent intent, String languageCode) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1293,7 +1295,7 @@ public final UnaryCallable updateIntentCallable() { * ID>/locations/<Location ID>/agent/intents/<Intent ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIntent(IntentName name) { + public final void deleteIntent(@Nullable IntentName name) { DeleteIntentRequest request = DeleteIntentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIntent(request); @@ -1433,7 +1435,7 @@ public final UnaryCallable deleteIntentCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateIntentsAsync( - AgentName parent, IntentBatch intentBatchInline) { + @Nullable AgentName parent, IntentBatch intentBatchInline) { BatchUpdateIntentsRequest request = BatchUpdateIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1484,7 +1486,7 @@ public final OperationFuture batchUpdateInte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateIntentsAsync( - AgentName parent, String intentBatchUri) { + @Nullable AgentName parent, String intentBatchUri) { BatchUpdateIntentsRequest request = BatchUpdateIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1763,7 +1765,7 @@ public final UnaryCallable batchUpdateInte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchDeleteIntentsAsync( - AgentName parent, List intents) { + @Nullable AgentName parent, List intents) { BatchDeleteIntentsRequest request = BatchDeleteIntentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2188,8 +2190,8 @@ public static class ListIntentsPage extends AbstractPage { private ListIntentsPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { super(context, response); } @@ -2199,14 +2201,14 @@ private static ListIntentsPage createEmptyPage() { @Override protected ListIntentsPage createPage( - PageContext context, - ListIntentsResponse response) { + @Nullable PageContext context, + @Nullable ListIntentsResponse response) { return new ListIntentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2220,7 +2222,8 @@ public static class ListIntentsFixedSizeCollection ListIntentsPage, ListIntentsFixedSizeCollection> { - private ListIntentsFixedSizeCollection(List pages, int collectionSize) { + private ListIntentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2230,7 +2233,7 @@ private static ListIntentsFixedSizeCollection createEmptyCollection() { @Override protected ListIntentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntentsFixedSizeCollection(pages, collectionSize); } } @@ -2264,8 +2267,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2275,14 +2278,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2296,7 +2299,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2306,7 +2310,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsSettings.java index 6d330cdd89a3..d3f7a534115f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsSettings.java @@ -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. /** @@ -238,7 +239,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); } @@ -258,7 +259,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IntentsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index d26e7a0ffe89..8c7a91864f8b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -39,6 +39,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. /** @@ -264,7 +265,7 @@ @BetaApi @Generated("by gapic-generator-java") public class KnowledgeBasesClient implements BackgroundResource { - private final KnowledgeBasesSettings settings; + private final @Nullable KnowledgeBasesSettings settings; private final KnowledgeBasesStub stub; /** Constructs an instance of KnowledgeBasesClient with default settings. */ @@ -304,7 +305,7 @@ protected KnowledgeBasesClient(KnowledgeBasesStub stub) { this.stub = stub; } - public final KnowledgeBasesSettings getSettings() { + public final @Nullable KnowledgeBasesSettings getSettings() { return settings; } @@ -339,7 +340,7 @@ public KnowledgeBasesStub getStub() { * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKnowledgeBasesPagedResponse listKnowledgeBases(LocationName parent) { + public final ListKnowledgeBasesPagedResponse listKnowledgeBases(@Nullable LocationName parent) { ListKnowledgeBasesRequest request = ListKnowledgeBasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -374,7 +375,7 @@ public final ListKnowledgeBasesPagedResponse listKnowledgeBases(LocationName par * `projects/<Project ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKnowledgeBasesPagedResponse listKnowledgeBases(ProjectName parent) { + public final ListKnowledgeBasesPagedResponse listKnowledgeBases(@Nullable ProjectName parent) { ListKnowledgeBasesRequest request = ListKnowledgeBasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +560,7 @@ public final ListKnowledgeBasesPagedResponse listKnowledgeBases( * ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase getKnowledgeBase(KnowledgeBaseName name) { + public final KnowledgeBase getKnowledgeBase(@Nullable KnowledgeBaseName name) { GetKnowledgeBaseRequest request = GetKnowledgeBaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKnowledgeBase(request); @@ -689,7 +690,8 @@ public final UnaryCallable getKnowledgeB * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase createKnowledgeBase(LocationName parent, KnowledgeBase knowledgeBase) { + public final KnowledgeBase createKnowledgeBase( + @Nullable LocationName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -725,7 +727,8 @@ public final KnowledgeBase createKnowledgeBase(LocationName parent, KnowledgeBas * @param knowledgeBase Required. The knowledge base to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) { + public final KnowledgeBase createKnowledgeBase( + @Nullable ProjectName parent, KnowledgeBase knowledgeBase) { CreateKnowledgeBaseRequest request = CreateKnowledgeBaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -861,7 +864,7 @@ public final KnowledgeBase createKnowledgeBase(CreateKnowledgeBaseRequest reques * ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteKnowledgeBase(KnowledgeBaseName name) { + public final void deleteKnowledgeBase(@Nullable KnowledgeBaseName name) { DeleteKnowledgeBaseRequest request = DeleteKnowledgeBaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1354,8 +1357,9 @@ public static class ListKnowledgeBasesPage ListKnowledgeBasesPage> { private ListKnowledgeBasesPage( - PageContext context, - ListKnowledgeBasesResponse response) { + @Nullable PageContext + context, + @Nullable ListKnowledgeBasesResponse response) { super(context, response); } @@ -1365,14 +1369,16 @@ private static ListKnowledgeBasesPage createEmptyPage() { @Override protected ListKnowledgeBasesPage createPage( - PageContext context, - ListKnowledgeBasesResponse response) { + @Nullable PageContext + context, + @Nullable ListKnowledgeBasesResponse response) { return new ListKnowledgeBasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1387,7 +1393,7 @@ public static class ListKnowledgeBasesFixedSizeCollection ListKnowledgeBasesFixedSizeCollection> { private ListKnowledgeBasesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1397,7 +1403,7 @@ private static ListKnowledgeBasesFixedSizeCollection createEmptyCollection() { @Override protected ListKnowledgeBasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKnowledgeBasesFixedSizeCollection(pages, collectionSize); } } @@ -1431,8 +1437,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1442,14 +1448,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1463,7 +1469,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1473,7 +1480,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java index ed735cdce405..9864e01d39d5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KnowledgeBasesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 60f4a88e93de..b54c51651cf1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -39,6 +39,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. /** @@ -388,7 +389,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ParticipantsClient implements BackgroundResource { - private final ParticipantsSettings settings; + private final @Nullable ParticipantsSettings settings; private final ParticipantsStub stub; /** Constructs an instance of ParticipantsClient with default settings. */ @@ -427,7 +428,7 @@ protected ParticipantsClient(ParticipantsStub stub) { this.stub = stub; } - public final ParticipantsSettings getSettings() { + public final @Nullable ParticipantsSettings getSettings() { return settings; } @@ -461,7 +462,8 @@ public ParticipantsStub getStub() { * @param participant Required. The participant to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant createParticipant(ConversationName parent, Participant participant) { + public final Participant createParticipant( + @Nullable ConversationName parent, Participant participant) { CreateParticipantRequest request = CreateParticipantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -589,7 +591,7 @@ public final UnaryCallable createParticip * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant getParticipant(ParticipantName name) { + public final Participant getParticipant(@Nullable ParticipantName name) { GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getParticipant(request); @@ -714,7 +716,7 @@ public final UnaryCallable getParticipantCal * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParticipantsPagedResponse listParticipants(ConversationName parent) { + public final ListParticipantsPagedResponse listParticipants(@Nullable ConversationName parent) { ListParticipantsRequest request = ListParticipantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -987,7 +989,7 @@ public final UnaryCallable updateParticip * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, AudioInput audioInput) { + @Nullable ParticipantName participant, AudioInput audioInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -1028,7 +1030,7 @@ public final AnalyzeContentResponse analyzeContent( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, EventInput eventInput) { + @Nullable ParticipantName participant, EventInput eventInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -1069,7 +1071,7 @@ public final AnalyzeContentResponse analyzeContent( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeContentResponse analyzeContent( - ParticipantName participant, TextInput textInput) { + @Nullable ParticipantName participant, TextInput textInput) { AnalyzeContentRequest request = AnalyzeContentRequest.newBuilder() .setParticipant(participant == null ? null : participant.toString()) @@ -1401,7 +1403,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestArticlesResponse suggestArticles(ParticipantName parent) { + public final SuggestArticlesResponse suggestArticles(@Nullable ParticipantName parent) { SuggestArticlesRequest request = SuggestArticlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1555,7 +1557,7 @@ public final SuggestArticlesResponse suggestArticles(SuggestArticlesRequest requ * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestFaqAnswersResponse suggestFaqAnswers(ParticipantName parent) { + public final SuggestFaqAnswersResponse suggestFaqAnswers(@Nullable ParticipantName parent) { SuggestFaqAnswersRequest request = SuggestFaqAnswersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1695,7 +1697,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersReques * ID>/participants/<Participant ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SuggestSmartRepliesResponse suggestSmartReplies(ParticipantName parent) { + public final SuggestSmartRepliesResponse suggestSmartReplies(@Nullable ParticipantName parent) { SuggestSmartRepliesRequest request = SuggestSmartRepliesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2378,8 +2380,9 @@ public static class ListParticipantsPage ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage> { private ListParticipantsPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { super(context, response); } @@ -2389,14 +2392,16 @@ private static ListParticipantsPage createEmptyPage() { @Override protected ListParticipantsPage createPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { return new ListParticipantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2411,7 +2416,7 @@ public static class ListParticipantsFixedSizeCollection ListParticipantsFixedSizeCollection> { private ListParticipantsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2421,7 +2426,7 @@ private static ListParticipantsFixedSizeCollection createEmptyCollection() { @Override protected ListParticipantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantsFixedSizeCollection(pages, collectionSize); } } @@ -2455,8 +2460,8 @@ public static class ListSuggestionsPage ListSuggestionsRequest, ListSuggestionsResponse, Suggestion, ListSuggestionsPage> { private ListSuggestionsPage( - PageContext context, - ListSuggestionsResponse response) { + @Nullable PageContext context, + @Nullable ListSuggestionsResponse response) { super(context, response); } @@ -2466,14 +2471,14 @@ private static ListSuggestionsPage createEmptyPage() { @Override protected ListSuggestionsPage createPage( - PageContext context, - ListSuggestionsResponse response) { + @Nullable PageContext context, + @Nullable ListSuggestionsResponse response) { return new ListSuggestionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2488,7 +2493,7 @@ public static class ListSuggestionsFixedSizeCollection ListSuggestionsFixedSizeCollection> { private ListSuggestionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2498,7 +2503,7 @@ private static ListSuggestionsFixedSizeCollection createEmptyCollection() { @Override protected ListSuggestionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSuggestionsFixedSizeCollection(pages, collectionSize); } } @@ -2532,8 +2537,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2543,14 +2548,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2564,7 +2569,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2574,7 +2580,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java index 0a729b66369c..7b01ec4aec0f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,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); } @@ -271,7 +272,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ParticipantsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java index 572f85facfd1..3c6c6a70e4d3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java @@ -38,6 +38,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. /** @@ -236,7 +237,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PhoneNumbersClient implements BackgroundResource { - private final PhoneNumbersSettings settings; + private final @Nullable PhoneNumbersSettings settings; private final PhoneNumbersStub stub; /** Constructs an instance of PhoneNumbersClient with default settings. */ @@ -275,7 +276,7 @@ protected PhoneNumbersClient(PhoneNumbersStub stub) { this.stub = stub; } - public final PhoneNumbersSettings getSettings() { + public final @Nullable PhoneNumbersSettings getSettings() { return settings; } @@ -308,7 +309,7 @@ public PhoneNumbersStub getStub() { * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhoneNumbersPagedResponse listPhoneNumbers(LocationName parent) { + public final ListPhoneNumbersPagedResponse listPhoneNumbers(@Nullable LocationName parent) { ListPhoneNumbersRequest request = ListPhoneNumbersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -341,7 +342,7 @@ public final ListPhoneNumbersPagedResponse listPhoneNumbers(LocationName parent) * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhoneNumbersPagedResponse listPhoneNumbers(ProjectName parent) { + public final ListPhoneNumbersPagedResponse listPhoneNumbers(@Nullable ProjectName parent) { ListPhoneNumbersRequest request = ListPhoneNumbersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -607,7 +608,7 @@ public final UnaryCallable updatePhoneNum * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhoneNumber deletePhoneNumber(PhoneNumberName name) { + public final PhoneNumber deletePhoneNumber(@Nullable PhoneNumberName name) { DeletePhoneNumberRequest request = DeletePhoneNumberRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -745,7 +746,7 @@ public final UnaryCallable deletePhoneNum * ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhoneNumber undeletePhoneNumber(PhoneNumberName name) { + public final PhoneNumber undeletePhoneNumber(@Nullable PhoneNumberName name) { UndeletePhoneNumberRequest request = UndeletePhoneNumberRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1104,8 +1105,9 @@ public static class ListPhoneNumbersPage ListPhoneNumbersRequest, ListPhoneNumbersResponse, PhoneNumber, ListPhoneNumbersPage> { private ListPhoneNumbersPage( - PageContext context, - ListPhoneNumbersResponse response) { + @Nullable PageContext + context, + @Nullable ListPhoneNumbersResponse response) { super(context, response); } @@ -1115,14 +1117,16 @@ private static ListPhoneNumbersPage createEmptyPage() { @Override protected ListPhoneNumbersPage createPage( - PageContext context, - ListPhoneNumbersResponse response) { + @Nullable PageContext + context, + @Nullable ListPhoneNumbersResponse response) { return new ListPhoneNumbersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1137,7 +1141,7 @@ public static class ListPhoneNumbersFixedSizeCollection ListPhoneNumbersFixedSizeCollection> { private ListPhoneNumbersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1147,7 +1151,7 @@ private static ListPhoneNumbersFixedSizeCollection createEmptyCollection() { @Override protected ListPhoneNumbersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPhoneNumbersFixedSizeCollection(pages, collectionSize); } } @@ -1181,8 +1185,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1192,14 +1196,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1213,7 +1217,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1223,7 +1228,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersSettings.java index a1da1e840e17..9295f34ff3bd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PhoneNumbersStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index 0900650e8b0f..8e08bf1c4eb1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -39,6 +39,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. /** @@ -268,7 +269,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionEntityTypesClient implements BackgroundResource { - private final SessionEntityTypesSettings settings; + private final @Nullable SessionEntityTypesSettings settings; private final SessionEntityTypesStub stub; /** Constructs an instance of SessionEntityTypesClient with default settings. */ @@ -308,7 +309,7 @@ protected SessionEntityTypesClient(SessionEntityTypesStub stub) { this.stub = stub; } - public final SessionEntityTypesSettings getSettings() { + public final @Nullable SessionEntityTypesSettings getSettings() { return settings; } @@ -352,7 +353,8 @@ public SessionEntityTypesStub getStub() { * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionName parent) { + public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( + @Nullable SessionName parent) { ListSessionEntityTypesRequest request = ListSessionEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -555,7 +557,7 @@ public final ListSessionEntityTypesPagedResponse listSessionEntityTypes( * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SessionEntityType getSessionEntityType(SessionEntityTypeName name) { + public final SessionEntityType getSessionEntityType(@Nullable SessionEntityTypeName name) { GetSessionEntityTypeRequest request = GetSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -715,7 +717,7 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SessionEntityType createSessionEntityType( - SessionName parent, SessionEntityType sessionEntityType) { + @Nullable SessionName parent, SessionEntityType sessionEntityType) { CreateSessionEntityTypeRequest request = CreateSessionEntityTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1011,7 +1013,7 @@ public final SessionEntityType updateSessionEntityType(UpdateSessionEntityTypeRe * assume default '-' user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSessionEntityType(SessionEntityTypeName name) { + public final void deleteSessionEntityType(@Nullable SessionEntityTypeName name) { DeleteSessionEntityTypeRequest request = DeleteSessionEntityTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1389,10 +1391,11 @@ public static class ListSessionEntityTypesPage ListSessionEntityTypesPage> { private ListSessionEntityTypesPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { super(context, response); } @@ -1402,16 +1405,18 @@ private static ListSessionEntityTypesPage createEmptyPage() { @Override protected ListSessionEntityTypesPage createPage( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, - ListSessionEntityTypesResponse response) { + @Nullable ListSessionEntityTypesResponse response) { return new ListSessionEntityTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> context, ApiFuture futureResponse) { @@ -1428,7 +1433,7 @@ public static class ListSessionEntityTypesFixedSizeCollection ListSessionEntityTypesFixedSizeCollection> { private ListSessionEntityTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1438,7 +1443,7 @@ private static ListSessionEntityTypesFixedSizeCollection createEmptyCollection() @Override protected ListSessionEntityTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionEntityTypesFixedSizeCollection(pages, collectionSize); } } @@ -1472,8 +1477,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1483,14 +1488,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1504,7 +1509,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1514,7 +1520,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesSettings.java index 6251119e6a34..32fe684e0a85 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,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); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionEntityTypesStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java index 5056c42cbdda..68a8bdc73961 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java @@ -38,6 +38,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. /** @@ -194,7 +195,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionsClient implements BackgroundResource { - private final SessionsSettings settings; + private final @Nullable SessionsSettings settings; private final SessionsStub stub; /** Constructs an instance of SessionsClient with default settings. */ @@ -232,7 +233,7 @@ protected SessionsClient(SessionsStub stub) { this.stub = stub; } - public final SessionsSettings getSettings() { + public final @Nullable SessionsSettings getSettings() { return settings; } @@ -294,7 +295,8 @@ public SessionsStub getStub() { *

3. an event that specifies which intent to trigger. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DetectIntentResponse detectIntent(SessionName session, QueryInput queryInput) { + public final DetectIntentResponse detectIntent( + @Nullable SessionName session, QueryInput queryInput) { DetectIntentRequest request = DetectIntentRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -749,8 +751,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -760,14 +762,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -781,7 +783,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -791,7 +794,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsSettings.java index 5f07775309f5..8e6cd640dd56 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java index edc114f32af7..72643728b3a3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java @@ -39,6 +39,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. /** @@ -254,7 +255,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SipTrunksClient implements BackgroundResource { - private final SipTrunksSettings settings; + private final @Nullable SipTrunksSettings settings; private final SipTrunksStub stub; /** Constructs an instance of SipTrunksClient with default settings. */ @@ -292,7 +293,7 @@ protected SipTrunksClient(SipTrunksStub stub) { this.stub = stub; } - public final SipTrunksSettings getSettings() { + public final @Nullable SipTrunksSettings getSettings() { return settings; } @@ -324,7 +325,7 @@ public SipTrunksStub getStub() { * @param sipTrunk Required. The SIP trunk to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SipTrunk createSipTrunk(LocationName parent, SipTrunk sipTrunk) { + public final SipTrunk createSipTrunk(@Nullable LocationName parent, SipTrunk sipTrunk) { CreateSipTrunkRequest request = CreateSipTrunkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -442,7 +443,7 @@ public final UnaryCallable createSipTrunkCallab * ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSipTrunk(SipTrunkName name) { + public final void deleteSipTrunk(@Nullable SipTrunkName name) { DeleteSipTrunkRequest request = DeleteSipTrunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSipTrunk(request); @@ -554,7 +555,7 @@ public final UnaryCallable deleteSipTrunkCallable( * ID>/locations/<Location ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSipTrunksPagedResponse listSipTrunks(LocationName parent) { + public final ListSipTrunksPagedResponse listSipTrunks(@Nullable LocationName parent) { ListSipTrunksRequest request = ListSipTrunksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -715,7 +716,7 @@ public final UnaryCallable listSipT * ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SipTrunk getSipTrunk(SipTrunkName name) { + public final SipTrunk getSipTrunk(@Nullable SipTrunkName name) { GetSipTrunkRequest request = GetSipTrunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSipTrunk(request); @@ -1139,8 +1140,8 @@ public static class ListSipTrunksPage ListSipTrunksRequest, ListSipTrunksResponse, SipTrunk, ListSipTrunksPage> { private ListSipTrunksPage( - PageContext context, - ListSipTrunksResponse response) { + @Nullable PageContext context, + @Nullable ListSipTrunksResponse response) { super(context, response); } @@ -1150,14 +1151,14 @@ private static ListSipTrunksPage createEmptyPage() { @Override protected ListSipTrunksPage createPage( - PageContext context, - ListSipTrunksResponse response) { + @Nullable PageContext context, + @Nullable ListSipTrunksResponse response) { return new ListSipTrunksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1171,7 +1172,8 @@ public static class ListSipTrunksFixedSizeCollection ListSipTrunksPage, ListSipTrunksFixedSizeCollection> { - private ListSipTrunksFixedSizeCollection(List pages, int collectionSize) { + private ListSipTrunksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1181,7 +1183,7 @@ private static ListSipTrunksFixedSizeCollection createEmptyCollection() { @Override protected ListSipTrunksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSipTrunksFixedSizeCollection(pages, collectionSize); } } @@ -1215,8 +1217,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1226,14 +1228,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1247,7 +1249,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1257,7 +1260,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksSettings.java index bf9749de3fef..3920ee77cd3c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SipTrunksStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java index 4c51b8fc45dc..955597d9dbbe 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java @@ -39,6 +39,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. /** @@ -255,7 +256,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ToolsClient implements BackgroundResource { - private final ToolsSettings settings; + private final @Nullable ToolsSettings settings; private final ToolsStub stub; /** Constructs an instance of ToolsClient with default settings. */ @@ -293,7 +294,7 @@ protected ToolsClient(ToolsStub stub) { this.stub = stub; } - public final ToolsSettings getSettings() { + public final @Nullable ToolsSettings getSettings() { return settings; } @@ -333,7 +334,7 @@ public ToolsStub getStub() { * custom ID or not under a project to better ensure uniqueness. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool createTool(LocationName parent, Tool tool, String toolId) { + public final Tool createTool(@Nullable LocationName parent, Tool tool, String toolId) { CreateToolRequest request = CreateToolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -462,7 +463,7 @@ public final UnaryCallable createToolCallable() { * ID>/locations/<Location ID>/tools/<Tool ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tool getTool(ToolName name) { + public final Tool getTool(@Nullable ToolName name) { GetToolRequest request = GetToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTool(request); @@ -574,7 +575,7 @@ public final UnaryCallable getToolCallable() { * ID>/locations/<Location ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListToolsPagedResponse listTools(LocationName parent) { + public final ListToolsPagedResponse listTools(@Nullable LocationName parent) { ListToolsRequest request = ListToolsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTools(request); @@ -732,7 +733,7 @@ public final UnaryCallable listToolsCallabl * ID>/locations/<Location ID>/tools/<Tool ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTool(ToolName name) { + public final void deleteTool(@Nullable ToolName name) { DeleteToolRequest request = DeleteToolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTool(request); @@ -1149,8 +1150,8 @@ public static class ListToolsPage extends AbstractPage { private ListToolsPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { super(context, response); } @@ -1160,14 +1161,14 @@ private static ListToolsPage createEmptyPage() { @Override protected ListToolsPage createPage( - PageContext context, - ListToolsResponse response) { + @Nullable PageContext context, + @Nullable ListToolsResponse response) { return new ListToolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1177,7 +1178,7 @@ public static class ListToolsFixedSizeCollection extends AbstractFixedSizeCollection< ListToolsRequest, ListToolsResponse, Tool, ListToolsPage, ListToolsFixedSizeCollection> { - private ListToolsFixedSizeCollection(List pages, int collectionSize) { + private ListToolsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1187,7 +1188,7 @@ private static ListToolsFixedSizeCollection createEmptyCollection() { @Override protected ListToolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListToolsFixedSizeCollection(pages, collectionSize); } } @@ -1221,8 +1222,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1232,14 +1233,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1253,7 +1254,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1263,7 +1265,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java index f3807a234aeb..40229151b1f8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ToolsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java index 9d3a0f496a92..6d615efae638 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java @@ -39,6 +39,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. /** @@ -255,7 +256,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VersionsClient implements BackgroundResource { - private final VersionsSettings settings; + private final @Nullable VersionsSettings settings; private final VersionsStub stub; /** Constructs an instance of VersionsClient with default settings. */ @@ -293,7 +294,7 @@ protected VersionsClient(VersionsStub stub) { this.stub = stub; } - public final VersionsSettings getSettings() { + public final @Nullable VersionsSettings getSettings() { return settings; } @@ -326,7 +327,7 @@ public VersionsStub getStub() { * ID>/agent` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVersionsPagedResponse listVersions(AgentName parent) { + public final ListVersionsPagedResponse listVersions(@Nullable AgentName parent) { ListVersionsRequest request = ListVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -489,7 +490,7 @@ public final UnaryCallable listVersio * ID>/locations/<Location ID>/agent/versions/<Version ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version getVersion(VersionName name) { + public final Version getVersion(@Nullable VersionName name) { GetVersionRequest request = GetVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVersion(request); @@ -605,7 +606,7 @@ public final UnaryCallable getVersionCallable() { * @param version Required. The version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Version createVersion(AgentName parent, Version version) { + public final Version createVersion(@Nullable AgentName parent, Version version) { CreateVersionRequest request = CreateVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -828,7 +829,7 @@ public final UnaryCallable updateVersionCallable( * ID>/locations/<Location ID>/agent/versions/<Version ID>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVersion(VersionName name) { + public final void deleteVersion(@Nullable VersionName name) { DeleteVersionRequest request = DeleteVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVersion(request); @@ -1165,8 +1166,8 @@ public static class ListVersionsPage extends AbstractPage { private ListVersionsPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { super(context, response); } @@ -1176,14 +1177,14 @@ private static ListVersionsPage createEmptyPage() { @Override protected ListVersionsPage createPage( - PageContext context, - ListVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListVersionsResponse response) { return new ListVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1197,7 +1198,8 @@ public static class ListVersionsFixedSizeCollection ListVersionsPage, ListVersionsFixedSizeCollection> { - private ListVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1207,7 +1209,7 @@ private static ListVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1241,8 +1243,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1252,14 +1254,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1273,7 +1275,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1283,7 +1286,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsSettings.java index 869cc8988e6b..8f371df65998 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java index b210180dfc24..7137916ba2f8 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class AgentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java index 9a76e14e1819..6859995c4c41 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -468,7 +469,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); } @@ -568,7 +569,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java index 38a4f2760b42..a52d54ce6a21 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -457,7 +458,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAnswerRecordSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java index d7eb3d7ba1d4..2fba71112c39 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -384,7 +385,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); } @@ -466,7 +467,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listContextsSettings = PagedCallSettings.newBuilder(LIST_CONTEXTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStub.java index 1143ebb2af61..36703751acd0 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class ConversationProfilesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java index 1113be238462..54024f8ba265 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -495,7 +496,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); } @@ -603,7 +604,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConversationProfilesSettings = diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java index c98885ce9de1..917ee0b89c29 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -520,7 +521,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); } @@ -631,7 +632,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java index 85e533cd5aa4..5d4495ba653e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java index 837368763030..ad33768430f1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -465,7 +466,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); } @@ -573,7 +574,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDocumentsSettings = PagedCallSettings.newBuilder(LIST_DOCUMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStub.java index c0745fba4a7b..862ac922def7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStub.java @@ -35,6 +35,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class EncryptionSpecServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java index 141aa35e9992..a3fd588ba502 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EncryptionSpecServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -354,7 +355,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); } @@ -435,7 +436,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEncryptionSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStub.java index 90ef11e55fac..78cfffd159c9 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class EntityTypesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java index 655e2261c80a..d47b1c6db370 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -501,7 +502,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); } @@ -619,7 +620,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java index dfb32d54acb9..730d8262b07d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -460,7 +461,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); } @@ -547,7 +548,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEnvironmentsSettings = PagedCallSettings.newBuilder(LIST_ENVIRONMENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java index 244a804120bb..9e3c5cd247a5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,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); } @@ -375,7 +376,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFulfillmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java index c73178b919da..522ff477c375 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class GeneratorEvaluationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java index b177cef95a86..ec2f5f5813a5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorEvaluationsStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,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); } @@ -543,7 +544,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createGeneratorEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java index 6ad966b87422..300290f6b81a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GeneratorsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -381,7 +382,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); } @@ -462,7 +463,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createGeneratorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStub.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStub.java index 105324d7854f..fd367173f07b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStub.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Struct; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class IntentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java index 77a115c967ea..545c39c5bd81 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -438,7 +439,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); } @@ -532,7 +533,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listIntentsSettings = PagedCallSettings.newBuilder(LIST_INTENTS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java index fc17dc646b79..f15bdd937f91 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -393,7 +394,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); } @@ -476,7 +477,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listKnowledgeBasesSettings = PagedCallSettings.newBuilder(LIST_KNOWLEDGE_BASES_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java index 44fcfaca5e19..08698badf9b7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -540,7 +541,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); } @@ -689,7 +690,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createParticipantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java index 2eaeefa81e95..791d687ac79c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/PhoneNumbersStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -460,7 +461,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPhoneNumbersSettings = PagedCallSettings.newBuilder(LIST_PHONE_NUMBERS_PAGE_STR_FACT); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java index 1aaeb7198f0d..f32d64872818 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -411,7 +412,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); } @@ -497,7 +498,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSessionEntityTypesSettings = diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java index 5649eeb1b339..0060a2a9a3bc 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -303,7 +304,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); } @@ -401,7 +402,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); detectIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java index 353281c3be05..64cc1439962b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SipTrunksStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -377,7 +378,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSipTrunkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java index 55dd2f1bf7a6..acfe575cc1fe 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ToolsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createToolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java index 46e6ef28e3a0..1017dc94fca4 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -377,7 +378,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVersionsSettings = PagedCallSettings.newBuilder(LIST_VERSIONS_PAGE_STR_FACT); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java index 358552bb84b8..898d2035fc1b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -175,7 +176,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java index d8eb18af9138..70deb534bf34 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationAnswerRecordName( .toString(); } - public static AnswerRecordName parse(String formattedString) { + public static @Nullable AnswerRecordName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnswerRecordName> values) { List list = new ArrayList<>(values.size()); for (AnswerRecordName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java index 684a91d87e0b..a6e8b6c11c8b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -261,7 +262,7 @@ public static String formatProjectLocationEnvironmentUserSessionContextName( .toString(); } - public static ContextName parse(String formattedString) { + public static @Nullable ContextName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -307,7 +308,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContextName> values) { List list = new ArrayList<>(values.size()); for (ContextName value : values) { if (value == null) { @@ -367,7 +368,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetName.java index 648e7d405311..359fa6741ff5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String conversation .toString(); } - public static ConversationDatasetName parse(String formattedString) { + public static @Nullable ConversationDatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationDatasetName> values) { List list = new ArrayList<>(values.size()); for (ConversationDatasetName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelEvaluationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelEvaluationName.java index 629279a0845e..eb240535d9bb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelEvaluationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelEvaluationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -162,7 +163,7 @@ public static String formatProjectLocationConversationModelEvaluationName( .toString(); } - public static ConversationModelEvaluationName parse(String formattedString) { + public static @Nullable ConversationModelEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -191,7 +192,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationModelEvaluationName> values) { List list = new ArrayList<>(values.size()); for (ConversationModelEvaluationName value : values) { if (value == null) { @@ -243,7 +244,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java index 073c4c59fedc..23e5858cb0ac 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationConversationName( .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java index b253f3220f00..bfd646739c89 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -140,7 +141,7 @@ public static String formatProjectLocationConversationProfileName( .toString(); } - public static ConversationProfileName parse(String formattedString) { + public static @Nullable ConversationProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -165,7 +166,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationProfileName> values) { List list = new ArrayList<>(values.size()); for (ConversationProfileName value : values) { if (value == null) { @@ -214,7 +215,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java index fd4fad707dec..32df39e7927e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationKnowledgeBaseDocumentName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -188,7 +189,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -240,7 +241,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecName.java index f42a247ec456..10dd08515361 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static EncryptionSpecName parse(String formattedString) { + public static @Nullable EncryptionSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EncryptionSpecName> values) { List list = new ArrayList<>(values.size()); for (EncryptionSpecName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java index 6c750b6bf13e..e9f73d5401aa 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationEntityTypeName( .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java index ccc6e26708d9..b57f7806cbf2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationEnvironmentName( .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java index 2c058da81a60..8d963d1a681a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static FulfillmentName parse(String formattedString) { + public static @Nullable FulfillmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FulfillmentName> values) { List list = new ArrayList<>(values.size()); for (FulfillmentName value : values) { if (value == null) { @@ -176,7 +177,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationName.java index 3bdf68a41af0..61533570e2d6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GeneratorEvaluationName parse(String formattedString) { + public static @Nullable GeneratorEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorEvaluationName> values) { List list = new ArrayList<>(values.size()); for (GeneratorEvaluationName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorName.java index dcdd55cd7308..2ecf7d466082 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GeneratorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String generator) { .toString(); } - public static GeneratorName parse(String formattedString) { + public static @Nullable GeneratorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorName> values) { List list = new ArrayList<>(values.size()); for (GeneratorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java index 9877ca6e6ae6..493426e2a9a5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationIntentName( .toString(); } - public static IntentName parse(String formattedString) { + public static @Nullable IntentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntentName> values) { List list = new ArrayList<>(values.size()); for (IntentName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseName.java index cd79eb0fe0e4..47de8c0cff50 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationKnowledgeBaseName( .toString(); } - public static KnowledgeBaseName parse(String formattedString) { + public static @Nullable KnowledgeBaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KnowledgeBaseName> values) { List list = new ArrayList<>(values.size()); for (KnowledgeBaseName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/LocationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/LocationName.java index f88df5bc2210..a25fc9649a4d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/LocationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageName.java index 88467deeb44e..4f03043ccddd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/MessageName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationConversationMessageName( .toString(); } - public static MessageName parse(String formattedString) { + public static @Nullable MessageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MessageName> values) { List list = new ArrayList<>(values.size()); for (MessageName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantName.java index 2c1093fae160..168a64b401d1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationConversationParticipantName( .toString(); } - public static ParticipantName parse(String formattedString) { + public static @Nullable ParticipantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -188,7 +189,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantName> values) { List list = new ArrayList<>(values.size()); for (ParticipantName value : values) { if (value == null) { @@ -240,7 +241,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java index a3c3e7cf2b22..48fff6c4cb00 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java index b3e68c07a9af..c720d8dfc64a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -262,7 +263,7 @@ public static String formatProjectLocationEnvironmentUserSessionEntityTypeName( .toString(); } - public static SessionEntityTypeName parse(String formattedString) { + public static @Nullable SessionEntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -309,7 +310,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionEntityTypeName> values) { List list = new ArrayList<>(values.size()); for (SessionEntityTypeName value : values) { if (value == null) { @@ -369,7 +370,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java index 04bd008056a2..069b6e25df7e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -221,7 +222,7 @@ public static String formatProjectLocationEnvironmentUserSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -260,7 +261,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -317,7 +318,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipTrunkName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipTrunkName.java index e28b9b2f4155..f27d0ae1e7ee 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipTrunkName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipTrunkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String siptrunk) { .toString(); } - public static SipTrunkName parse(String formattedString) { + public static @Nullable SipTrunkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SipTrunkName> values) { List list = new ArrayList<>(values.size()); for (SipTrunkName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolName.java index dcd45ed8ecd0..2f5024226d2d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String tool) { return newBuilder().setProject(project).setLocation(location).setTool(tool).build().toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionName.java index 1654682007d3..4035d985342f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationVersionName( .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java index edf1c2f82a90..c113d4db24ac 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationAgentName(String project, String locat .toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -150,7 +151,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -195,7 +196,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordName.java index e1db15563def..0cb64f3f1d09 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationAnswerRecordName( .toString(); } - public static AnswerRecordName parse(String formattedString) { + public static @Nullable AnswerRecordName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnswerRecordName> values) { List list = new ArrayList<>(values.size()); for (AnswerRecordName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java index 11d76a6f107b..44fe7af67266 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -261,7 +262,7 @@ public static String formatProjectLocationEnvironmentUserSessionContextName( .toString(); } - public static ContextName parse(String formattedString) { + public static @Nullable ContextName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -307,7 +308,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContextName> values) { List list = new ArrayList<>(values.size()); for (ContextName value : values) { if (value == null) { @@ -367,7 +368,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationName.java index d388e392603b..f50a81deafc0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationConversationName( .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileName.java index b42ae15ef715..e56cf8c78247 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -140,7 +141,7 @@ public static String formatProjectLocationConversationProfileName( .toString(); } - public static ConversationProfileName parse(String formattedString) { + public static @Nullable ConversationProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -165,7 +166,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationProfileName> values) { List list = new ArrayList<>(values.size()); for (ConversationProfileName value : values) { if (value == null) { @@ -214,7 +215,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java index dce6094ef38e..4e18e599ee5e 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationKnowledgeBaseDocumentName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -188,7 +189,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -240,7 +241,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecName.java index 99a755f02c35..4d5268ead24b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static EncryptionSpecName parse(String formattedString) { + public static @Nullable EncryptionSpecName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EncryptionSpecName> values) { List list = new ArrayList<>(values.size()); for (EncryptionSpecName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java index 28397e76519f..ff223f9cc22b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationEntityTypeName( .toString(); } - public static EntityTypeName parse(String formattedString) { + public static @Nullable EntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityTypeName> values) { List list = new ArrayList<>(values.size()); for (EntityTypeName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentName.java index 78d7caa710a8..021f28a08f69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationEnvironmentName( .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentName.java index d47239c45688..d300a45c1aa2 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static FulfillmentName parse(String formattedString) { + public static @Nullable FulfillmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FulfillmentName> values) { List list = new ArrayList<>(values.size()); for (FulfillmentName value : values) { if (value == null) { @@ -176,7 +177,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java index e82549214349..9e381cb98747 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GeneratorEvaluationName parse(String formattedString) { + public static @Nullable GeneratorEvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorEvaluationName> values) { List list = new ArrayList<>(values.size()); for (GeneratorEvaluationName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorName.java index 157864b9c806..7763c5e62042 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String generator) { .toString(); } - public static GeneratorName parse(String formattedString) { + public static @Nullable GeneratorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GeneratorName> values) { List list = new ArrayList<>(values.size()); for (GeneratorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java index c81ace916f4d..6efa11a023b6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationIntentName( .toString(); } - public static IntentName parse(String formattedString) { + public static @Nullable IntentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntentName> values) { List list = new ArrayList<>(values.size()); for (IntentName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java index 8c08d6aa5ec6..4fdb49e71037 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationKnowledgeBaseName( .toString(); } - public static KnowledgeBaseName parse(String formattedString) { + public static @Nullable KnowledgeBaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KnowledgeBaseName> values) { List list = new ArrayList<>(values.size()); for (KnowledgeBaseName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/LocationName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/LocationName.java index 8f28baf477b3..2545fcd74fcd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/LocationName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageName.java index f365fc8b8afc..d529c7b391dd 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationConversationMessageName( .toString(); } - public static MessageName parse(String formattedString) { + public static @Nullable MessageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MessageName> values) { List list = new ArrayList<>(values.size()); for (MessageName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantName.java index c8abd4d5e974..51370bf812cb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationConversationParticipantName( .toString(); } - public static ParticipantName parse(String formattedString) { + public static @Nullable ParticipantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -188,7 +189,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantName> values) { List list = new ArrayList<>(values.size()); for (ParticipantName value : values) { if (value == null) { @@ -240,7 +241,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberName.java index 2ec260c34447..78a18432fdc7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumberName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationPhoneNumberName( .toString(); } - public static PhoneNumberName parse(String formattedString) { + public static @Nullable PhoneNumberName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhoneNumberName> values) { List list = new ArrayList<>(values.size()); for (PhoneNumberName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java index 42e5e8cc97d8..e1d0704c2542 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java index 966aeac59e3b..3d26fb3f0ae7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -262,7 +263,7 @@ public static String formatProjectLocationEnvironmentUserSessionEntityTypeName( .toString(); } - public static SessionEntityTypeName parse(String formattedString) { + public static @Nullable SessionEntityTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -309,7 +310,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionEntityTypeName> values) { List list = new ArrayList<>(values.size()); for (SessionEntityTypeName value : values) { if (value == null) { @@ -369,7 +370,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java index 4a4a6f31c7ab..aabf6eb21476 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -221,7 +222,7 @@ public static String formatProjectLocationEnvironmentUserSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -260,7 +261,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -317,7 +318,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunkName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunkName.java index f57a736a1a6c..09365b172428 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunkName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String siptrunk) { .toString(); } - public static SipTrunkName parse(String formattedString) { + public static @Nullable SipTrunkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SipTrunkName> values) { List list = new ArrayList<>(values.size()); for (SipTrunkName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java index ee73358c3216..cac03d598cfc 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String tool) { return newBuilder().setProject(project).setLocation(location).setTool(tool).build().toString(); } - public static ToolName parse(String formattedString) { + public static @Nullable ToolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ToolName> values) { List list = new ArrayList<>(values.size()); for (ToolName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionName.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionName.java index c3c098f2ed47..161287c8960a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionName.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationVersionName( .toString(); } - public static VersionName parse(String formattedString) { + public static @Nullable VersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VersionName> values) { List list = new ArrayList<>(values.size()); for (VersionName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java index 58d9ecf95fa8..c3dd717b21b4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceClient.java @@ -24,6 +24,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. /** @@ -144,7 +145,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AssistantServiceClient implements BackgroundResource { - private final AssistantServiceSettings settings; + private final @Nullable AssistantServiceSettings settings; private final AssistantServiceStub stub; /** Constructs an instance of AssistantServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected AssistantServiceClient(AssistantServiceStub stub) { this.stub = stub; } - public final AssistantServiceSettings getSettings() { + public final @Nullable AssistantServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java index 148fb9bcdd9e..c75d9bfcf327 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/AssistantServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssistantServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceClient.java index ced75008c6e2..1005b3faaae2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceClient.java @@ -30,6 +30,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. /** @@ -199,7 +200,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CmekConfigServiceClient implements BackgroundResource { - private final CmekConfigServiceSettings settings; + private final @Nullable CmekConfigServiceSettings settings; private final CmekConfigServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -247,7 +248,7 @@ protected CmekConfigServiceClient(CmekConfigServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CmekConfigServiceSettings getSettings() { + public final @Nullable CmekConfigServiceSettings getSettings() { return settings; } @@ -424,7 +425,7 @@ public final UnaryCallable updateCmekConfigC * exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CmekConfig getCmekConfig(CmekConfigName name) { + public final CmekConfig getCmekConfig(@Nullable CmekConfigName name) { GetCmekConfigRequest request = GetCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCmekConfig(request); @@ -543,7 +544,7 @@ public final UnaryCallable getCmekConfigCallab * of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCmekConfigsResponse listCmekConfigs(LocationName parent) { + public final ListCmekConfigsResponse listCmekConfigs(@Nullable LocationName parent) { ListCmekConfigsRequest request = ListCmekConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -664,7 +665,7 @@ public final ListCmekConfigsResponse listCmekConfigs(ListCmekConfigsRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCmekConfigAsync( - CmekConfigName name) { + @Nullable CmekConfigName name) { DeleteCmekConfigRequest request = DeleteCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCmekConfigAsync(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceSettings.java index 816b174dfe43..16b788c67ff8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -206,7 +207,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); } @@ -226,7 +227,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmekConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java index 900c5c17f722..e01784ccf6e7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -205,7 +206,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -253,7 +254,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java index 8a1269eaa4b7..ed0aecfd7560 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,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); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java index 0bf40fcd7c7c..2e7cfa69c238 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceClient.java @@ -34,6 +34,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. /** @@ -227,7 +228,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -267,7 +268,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -310,7 +311,8 @@ public ControlServiceStub getStub() { *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(DataStoreName parent, Control control, String controlId) { + public final Control createControl( + @Nullable DataStoreName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -354,7 +356,8 @@ public final Control createControl(DataStoreName parent, Control control, String *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(EngineName parent, Control control, String controlId) { + public final Control createControl( + @Nullable EngineName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -510,7 +513,7 @@ public final UnaryCallable createControlCallable( * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -745,7 +748,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -869,7 +872,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(DataStoreName parent) { + public final ListControlsPagedResponse listControls(@Nullable DataStoreName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -903,7 +906,7 @@ public final ListControlsPagedResponse listControls(DataStoreName parent) { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(EngineName parent) { + public final ListControlsPagedResponse listControls(@Nullable EngineName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1117,8 +1120,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -1128,14 +1131,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1149,7 +1152,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1159,7 +1163,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceSettings.java index 93539621f6a7..c8e19058d703 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java index 3a0c2b987e85..2b47ac34b972 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceClient.java @@ -35,6 +35,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. /** @@ -391,7 +392,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -434,7 +435,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } @@ -475,7 +476,7 @@ public ConversationalSearchServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConverseConversationResponse converseConversation( - ConversationName name, TextInput query) { + @Nullable ConversationName name, TextInput query) { ConverseConversationRequest request = ConverseConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -642,7 +643,8 @@ public final ConverseConversationResponse converseConversation( * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(DataStoreName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable DataStoreName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -791,7 +793,7 @@ public final UnaryCallable createConver * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1041,7 +1043,7 @@ public final UnaryCallable updateConver * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -1169,7 +1171,7 @@ public final UnaryCallable getConversation * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(DataStoreName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable DataStoreName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1510,7 +1512,7 @@ public final UnaryCallable answerQueryC * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Answer getAnswer(AnswerName name) { + public final Answer getAnswer(@Nullable AnswerName name) { GetAnswerRequest request = GetAnswerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnswer(request); @@ -1640,7 +1642,7 @@ public final UnaryCallable getAnswerCallable() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1785,7 +1787,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -2028,7 +2030,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -2157,7 +2159,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2381,8 +2383,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -2392,14 +2395,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2414,7 +2419,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2424,7 +2429,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -2457,8 +2462,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -2468,14 +2473,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2489,7 +2494,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2499,7 +2505,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java index 6a11ea9f006b..48d7533f3b76 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ConversationalSearchServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java index 66f54759b3b4..9becfe4b4879 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceClient.java @@ -39,6 +39,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. /** @@ -231,7 +232,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataStoreServiceClient implements BackgroundResource { - private final DataStoreServiceSettings settings; + private final @Nullable DataStoreServiceSettings settings; private final DataStoreServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -279,7 +280,7 @@ protected DataStoreServiceClient(DataStoreServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataStoreServiceSettings getSettings() { + public final @Nullable DataStoreServiceSettings getSettings() { return settings; } @@ -341,7 +342,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataStoreAsync( - CollectionName parent, DataStore dataStore, String dataStoreId) { + @Nullable CollectionName parent, DataStore dataStore, String dataStoreId) { CreateDataStoreRequest request = CreateDataStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -537,7 +538,7 @@ public final UnaryCallable createDataStoreCal * a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStore getDataStore(DataStoreName name) { + public final DataStore getDataStore(@Nullable DataStoreName name) { GetDataStoreRequest request = GetDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataStore(request); @@ -668,7 +669,7 @@ public final UnaryCallable getDataStoreCallable( * whether or not this data store exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStoresPagedResponse listDataStores(CollectionName parent) { + public final ListDataStoresPagedResponse listDataStores(@Nullable CollectionName parent) { ListDataStoresRequest request = ListDataStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,7 @@ public final ListDataStoresPagedResponse listDataStores(ListDataStoresRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataStoreAsync( - DataStoreName name) { + @Nullable DataStoreName name) { DeleteDataStoreRequest request = DeleteDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataStoreAsync(request); @@ -1143,8 +1144,8 @@ public static class ListDataStoresPage ListDataStoresRequest, ListDataStoresResponse, DataStore, ListDataStoresPage> { private ListDataStoresPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { super(context, response); } @@ -1154,14 +1155,14 @@ private static ListDataStoresPage createEmptyPage() { @Override protected ListDataStoresPage createPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { return new ListDataStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1175,7 +1176,8 @@ public static class ListDataStoresFixedSizeCollection ListDataStoresPage, ListDataStoresFixedSizeCollection> { - private ListDataStoresFixedSizeCollection(List pages, int collectionSize) { + private ListDataStoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1185,7 +1187,7 @@ private static ListDataStoresFixedSizeCollection createEmptyCollection() { @Override protected ListDataStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java index 0b273fb60a48..3c3ee510dafb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -235,7 +236,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java index 63cfadab8b38..d951ba5ef54c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceClient.java @@ -39,6 +39,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. /** @@ -281,7 +282,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentServiceClient implements BackgroundResource { - private final DocumentServiceSettings settings; + private final @Nullable DocumentServiceSettings settings; private final DocumentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -329,7 +330,7 @@ protected DocumentServiceClient(DocumentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentServiceSettings getSettings() { + public final @Nullable DocumentServiceSettings getSettings() { return settings; } @@ -384,7 +385,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -517,7 +518,7 @@ public final UnaryCallable getDocumentCallable() { * whether or not this branch exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(BranchName parent) { + public final ListDocumentsPagedResponse listDocuments(@Nullable BranchName parent) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -713,7 +714,8 @@ public final UnaryCallable listDocu * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document createDocument(BranchName parent, Document document, String documentId) { + public final Document createDocument( + @Nullable BranchName parent, Document document, String documentId) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -965,7 +967,7 @@ public final UnaryCallable updateDocumentCallab * `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocument(DocumentName name) { + public final void deleteDocument(@Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDocument(request); @@ -1358,7 +1360,8 @@ public final UnaryCallable purgeDocumentsCalla * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata(BranchName parent) { + public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( + @Nullable BranchName parent) { BatchGetDocumentsMetadataRequest request = BatchGetDocumentsMetadataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1527,8 +1530,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1538,14 +1541,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1559,7 +1562,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1569,7 +1573,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java index 547b0319098a..0bcf4041a9a1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/DocumentServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,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); } @@ -252,7 +253,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java index 2421f772db30..3200756172f5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceClient.java @@ -39,6 +39,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. /** @@ -226,7 +227,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EngineServiceClient implements BackgroundResource { - private final EngineServiceSettings settings; + private final @Nullable EngineServiceSettings settings; private final EngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -274,7 +275,7 @@ protected EngineServiceClient(EngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EngineServiceSettings getSettings() { + public final @Nullable EngineServiceSettings getSettings() { return settings; } @@ -330,7 +331,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEngineAsync( - CollectionName parent, Engine engine, String engineId) { + @Nullable CollectionName parent, Engine engine, String engineId) { CreateEngineRequest request = CreateEngineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -500,7 +501,8 @@ public final UnaryCallable createEngineCallable( * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEngineAsync(EngineName name) { + public final OperationFuture deleteEngineAsync( + @Nullable EngineName name) { DeleteEngineRequest request = DeleteEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEngineAsync(request); @@ -743,7 +745,7 @@ public final UnaryCallable updateEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine getEngine(EngineName name) { + public final Engine getEngine(@Nullable EngineName name) { GetEngineRequest request = GetEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEngine(request); @@ -858,7 +860,7 @@ public final UnaryCallable getEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnginesPagedResponse listEngines(CollectionName parent) { + public final ListEnginesPagedResponse listEngines(@Nullable CollectionName parent) { ListEnginesRequest request = ListEnginesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1056,8 +1058,8 @@ public static class ListEnginesPage extends AbstractPage { private ListEnginesPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { super(context, response); } @@ -1067,14 +1069,14 @@ private static ListEnginesPage createEmptyPage() { @Override protected ListEnginesPage createPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { return new ListEnginesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1088,7 +1090,8 @@ public static class ListEnginesFixedSizeCollection ListEnginesPage, ListEnginesFixedSizeCollection> { - private ListEnginesFixedSizeCollection(List pages, int collectionSize) { + private ListEnginesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1098,7 +1101,7 @@ private static ListEnginesFixedSizeCollection createEmptyCollection() { @Override protected ListEnginesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnginesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java index c0df7cd44988..ee06452cefbe 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/EngineServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -232,7 +233,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java index 1377969ab4fe..fe37412cb6bd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceClient.java @@ -25,6 +25,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. /** @@ -165,7 +166,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GroundedGenerationServiceClient implements BackgroundResource { - private final GroundedGenerationServiceSettings settings; + private final @Nullable GroundedGenerationServiceSettings settings; private final GroundedGenerationServiceStub stub; /** Constructs an instance of GroundedGenerationServiceClient with default settings. */ @@ -207,7 +208,7 @@ protected GroundedGenerationServiceClient(GroundedGenerationServiceStub stub) { this.stub = stub; } - public final GroundedGenerationServiceSettings getSettings() { + public final @Nullable GroundedGenerationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java index 4e81c7ee6d41..f7b9f1d7d422 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/GroundedGenerationServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GroundedGenerationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceClient.java index c25011efef56..9efff5f34e33 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceClient.java @@ -38,6 +38,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. /** @@ -258,7 +259,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IdentityMappingStoreServiceClient implements BackgroundResource { - private final IdentityMappingStoreServiceSettings settings; + private final @Nullable IdentityMappingStoreServiceSettings settings; private final IdentityMappingStoreServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -309,7 +310,7 @@ protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IdentityMappingStoreServiceSettings getSettings() { + public final @Nullable IdentityMappingStoreServiceSettings getSettings() { return settings; } @@ -366,7 +367,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IdentityMappingStore createIdentityMappingStore( - LocationName parent, + @Nullable LocationName parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) { CreateIdentityMappingStoreRequest request = @@ -512,7 +513,8 @@ public final IdentityMappingStore createIdentityMappingStore( * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IdentityMappingStore getIdentityMappingStore(IdentityMappingStoreName name) { + public final IdentityMappingStore getIdentityMappingStore( + @Nullable IdentityMappingStoreName name) { GetIdentityMappingStoreRequest request = GetIdentityMappingStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -642,7 +644,7 @@ public final IdentityMappingStore getIdentityMappingStore( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteIdentityMappingStoreAsync(IdentityMappingStoreName name) { + deleteIdentityMappingStoreAsync(@Nullable IdentityMappingStoreName name) { DeleteIdentityMappingStoreRequest request = DeleteIdentityMappingStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1135,7 +1137,7 @@ public final ListIdentityMappingsPagedResponse listIdentityMappings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores( - LocationName parent) { + @Nullable LocationName parent) { ListIdentityMappingStoresRequest request = ListIdentityMappingStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1351,9 +1353,11 @@ public static class ListIdentityMappingsPage ListIdentityMappingsPage> { private ListIdentityMappingsPage( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, - ListIdentityMappingsResponse response) { + @Nullable ListIdentityMappingsResponse response) { super(context, response); } @@ -1363,15 +1367,19 @@ private static ListIdentityMappingsPage createEmptyPage() { @Override protected ListIdentityMappingsPage createPage( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, - ListIdentityMappingsResponse response) { + @Nullable ListIdentityMappingsResponse response) { return new ListIdentityMappingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1387,7 +1395,7 @@ public static class ListIdentityMappingsFixedSizeCollection ListIdentityMappingsFixedSizeCollection> { private ListIdentityMappingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1397,7 +1405,7 @@ private static ListIdentityMappingsFixedSizeCollection createEmptyCollection() { @Override protected ListIdentityMappingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIdentityMappingsFixedSizeCollection(pages, collectionSize); } } @@ -1438,12 +1446,13 @@ public static class ListIdentityMappingStoresPage ListIdentityMappingStoresPage> { private ListIdentityMappingStoresPage( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> context, - ListIdentityMappingStoresResponse response) { + @Nullable ListIdentityMappingStoresResponse response) { super(context, response); } @@ -1453,18 +1462,20 @@ private static ListIdentityMappingStoresPage createEmptyPage() { @Override protected ListIdentityMappingStoresPage createPage( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> context, - ListIdentityMappingStoresResponse response) { + @Nullable ListIdentityMappingStoresResponse response) { return new ListIdentityMappingStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> @@ -1483,7 +1494,7 @@ public static class ListIdentityMappingStoresFixedSizeCollection ListIdentityMappingStoresFixedSizeCollection> { private ListIdentityMappingStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1493,7 +1504,7 @@ private static ListIdentityMappingStoresFixedSizeCollection createEmptyCollectio @Override protected ListIdentityMappingStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIdentityMappingStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceSettings.java index b641387307a1..4b5b59949e0e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -260,7 +261,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); } @@ -281,7 +282,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IdentityMappingStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java index 1584968e0cb2..c2ad1e1d6860 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java @@ -29,6 +29,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. /** @@ -139,7 +140,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProjectServiceClient implements BackgroundResource { - private final ProjectServiceSettings settings; + private final @Nullable ProjectServiceSettings settings; private final ProjectServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -187,7 +188,7 @@ protected ProjectServiceClient(ProjectServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProjectServiceSettings getSettings() { + public final @Nullable ProjectServiceSettings getSettings() { return settings; } @@ -240,7 +241,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture provisionProjectAsync( - ProjectName name) { + @Nullable ProjectName name) { ProvisionProjectRequest request = ProvisionProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return provisionProjectAsync(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceSettings.java index 7046e303f59f..2ece2007e627 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,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); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceClient.java index 0461863a3a49..cee2bd5e7e3c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceClient.java @@ -24,6 +24,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. /** @@ -135,7 +136,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RankServiceClient implements BackgroundResource { - private final RankServiceSettings settings; + private final @Nullable RankServiceSettings settings; private final RankServiceStub stub; /** Constructs an instance of RankServiceClient with default settings. */ @@ -174,7 +175,7 @@ protected RankServiceClient(RankServiceStub stub) { this.stub = stub; } - public final RankServiceSettings getSettings() { + public final @Nullable RankServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceSettings.java index 6ca47c52b5dd..c09c4e525792 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RankServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -147,7 +148,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); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RankServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceClient.java index 312792706102..f5921eed87a2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceClient.java @@ -24,6 +24,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. /** @@ -143,7 +144,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RecommendationServiceClient implements BackgroundResource { - private final RecommendationServiceSettings settings; + private final @Nullable RecommendationServiceSettings settings; private final RecommendationServiceStub stub; /** Constructs an instance of RecommendationServiceClient with default settings. */ @@ -183,7 +184,7 @@ protected RecommendationServiceClient(RecommendationServiceStub stub) { this.stub = stub; } - public final RecommendationServiceSettings getSettings() { + public final @Nullable RecommendationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceSettings.java index 2609290312f8..c828e7a13c74 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/RecommendationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecommendationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java index 749b696e0e2c..0202c94667f3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceClient.java @@ -38,6 +38,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { - private final SchemaServiceSettings settings; + private final @Nullable SchemaServiceSettings settings; private final SchemaServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -270,7 +271,7 @@ protected SchemaServiceClient(SchemaServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SchemaServiceSettings getSettings() { + public final @Nullable SchemaServiceSettings getSettings() { return settings; } @@ -319,7 +320,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema getSchema(SchemaName name) { + public final Schema getSchema(@Nullable SchemaName name) { GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchema(request); @@ -441,7 +442,7 @@ public final UnaryCallable getSchemaCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemasPagedResponse listSchemas(DataStoreName parent) { + public final ListSchemasPagedResponse listSchemas(@Nullable DataStoreName parent) { ListSchemasRequest request = ListSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -623,7 +624,7 @@ public final UnaryCallable listSchemasC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSchemaAsync( - DataStoreName parent, Schema schema, String schemaId) { + @Nullable DataStoreName parent, Schema schema, String schemaId) { CreateSchemaRequest request = CreateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -888,7 +889,8 @@ public final UnaryCallable updateSchemaCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSchemaAsync(SchemaName name) { + public final OperationFuture deleteSchemaAsync( + @Nullable SchemaName name) { DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSchemaAsync(request); @@ -1074,8 +1076,8 @@ public static class ListSchemasPage extends AbstractPage { private ListSchemasPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { super(context, response); } @@ -1085,14 +1087,14 @@ private static ListSchemasPage createEmptyPage() { @Override protected ListSchemasPage createPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { return new ListSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1106,7 +1108,8 @@ public static class ListSchemasFixedSizeCollection ListSchemasPage, ListSchemasFixedSizeCollection> { - private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + private ListSchemasFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1116,7 +1119,7 @@ private static ListSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemasFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java index 94d634313703..eec878a55f32 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SchemaServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java index 1c627691d83f..33bfb7576c0a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceClient.java @@ -32,6 +32,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. /** @@ -199,7 +200,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -239,7 +240,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -778,8 +779,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -789,14 +790,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -810,7 +811,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -820,7 +821,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } @@ -852,8 +853,8 @@ public static class SearchLitePage SearchRequest, SearchResponse, SearchResponse.SearchResult, SearchLitePage> { private SearchLitePage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -863,14 +864,14 @@ private static SearchLitePage createEmptyPage() { @Override protected SearchLitePage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchLitePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -884,7 +885,8 @@ public static class SearchLiteFixedSizeCollection SearchLitePage, SearchLiteFixedSizeCollection> { - private SearchLiteFixedSizeCollection(List pages, int collectionSize) { + private SearchLiteFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -894,7 +896,7 @@ private static SearchLiteFixedSizeCollection createEmptyCollection() { @Override protected SearchLiteFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchLiteFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java index f10bc43606b2..c8cf739ca397 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceClient.java index 90664706aed4..b19ecd7bbb0f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceClient.java @@ -29,6 +29,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SearchTuningServiceClient implements BackgroundResource { - private final SearchTuningServiceSettings settings; + private final @Nullable SearchTuningServiceSettings settings; private final SearchTuningServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -204,7 +205,7 @@ protected SearchTuningServiceClient(SearchTuningServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SearchTuningServiceSettings getSettings() { + public final @Nullable SearchTuningServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceSettings.java index e9894f7373dd..d410ab2adcf4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SearchTuningServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchTuningServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java index 3b640d28d412..71fb58c43e5d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceClient.java @@ -25,6 +25,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java index 9849eefa639d..fa76de717737 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java index 9dab73c9e14e..50ee719502a0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceClient.java @@ -34,6 +34,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; /** Constructs an instance of SessionServiceClient with default settings. */ @@ -262,7 +263,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.stub = stub; } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -298,7 +299,7 @@ public SessionServiceStub getStub() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -438,7 +439,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -672,7 +673,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -796,7 +797,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1011,8 +1012,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1022,14 +1023,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1043,7 +1044,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1053,7 +1055,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceSettings.java index e1cb941a1e06..db76bfc4cb61 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SessionServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java index 8bb897c7c160..f042615b844f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceClient.java @@ -38,6 +38,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. /** @@ -399,7 +400,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SiteSearchEngineServiceClient implements BackgroundResource { - private final SiteSearchEngineServiceSettings settings; + private final @Nullable SiteSearchEngineServiceSettings settings; private final SiteSearchEngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -448,7 +449,7 @@ protected SiteSearchEngineServiceClient(SiteSearchEngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SiteSearchEngineServiceSettings getSettings() { + public final @Nullable SiteSearchEngineServiceSettings getSettings() { return settings; } @@ -501,7 +502,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * whether or not it exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SiteSearchEngine getSiteSearchEngine(SiteSearchEngineName name) { + public final SiteSearchEngine getSiteSearchEngine(@Nullable SiteSearchEngineName name) { GetSiteSearchEngineRequest request = GetSiteSearchEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -640,7 +641,7 @@ public final SiteSearchEngine getSiteSearchEngine(GetSiteSearchEngineRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTargetSiteAsync( - SiteSearchEngineName parent, TargetSite targetSite) { + @Nullable SiteSearchEngineName parent, TargetSite targetSite) { CreateTargetSiteRequest request = CreateTargetSiteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -927,7 +928,7 @@ public final UnaryCallable createTargetSiteC * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TargetSite getTargetSite(TargetSiteName name) { + public final TargetSite getTargetSite(@Nullable TargetSiteName name) { GetTargetSiteRequest request = GetTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTargetSite(request); @@ -1188,7 +1189,7 @@ public final UnaryCallable updateTargetSiteC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTargetSiteAsync( - TargetSiteName name) { + @Nullable TargetSiteName name) { DeleteTargetSiteRequest request = DeleteTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTargetSiteAsync(request); @@ -1360,7 +1361,7 @@ public final UnaryCallable deleteTargetSiteC * regardless of whether or not this branch exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTargetSitesPagedResponse listTargetSites(SiteSearchEngineName parent) { + public final ListTargetSitesPagedResponse listTargetSites(@Nullable SiteSearchEngineName parent) { ListTargetSitesRequest request = ListTargetSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1552,7 +1553,7 @@ public final ListTargetSitesPagedResponse listTargetSites(ListTargetSitesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSitemapAsync( - SiteSearchEngineName parent, Sitemap sitemap) { + @Nullable SiteSearchEngineName parent, Sitemap sitemap) { CreateSitemapRequest request = CreateSitemapRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1729,7 +1730,8 @@ public final UnaryCallable createSitemapCallabl * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSitemapAsync(SitemapName name) { + public final OperationFuture deleteSitemapAsync( + @Nullable SitemapName name) { DeleteSitemapRequest request = DeleteSitemapRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSitemapAsync(request); @@ -1897,7 +1899,7 @@ public final UnaryCallable deleteSitemapCallabl * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchSitemapsResponse fetchSitemaps(SiteSearchEngineName parent) { + public final FetchSitemapsResponse fetchSitemaps(@Nullable SiteSearchEngineName parent) { FetchSitemapsRequest request = FetchSitemapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2613,8 +2615,8 @@ public static class ListTargetSitesPage ListTargetSitesRequest, ListTargetSitesResponse, TargetSite, ListTargetSitesPage> { private ListTargetSitesPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { super(context, response); } @@ -2624,14 +2626,14 @@ private static ListTargetSitesPage createEmptyPage() { @Override protected ListTargetSitesPage createPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { return new ListTargetSitesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2646,7 +2648,7 @@ public static class ListTargetSitesFixedSizeCollection ListTargetSitesFixedSizeCollection> { private ListTargetSitesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2656,7 +2658,7 @@ private static ListTargetSitesFixedSizeCollection createEmptyCollection() { @Override protected ListTargetSitesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTargetSitesFixedSizeCollection(pages, collectionSize); } } @@ -2698,12 +2700,13 @@ public static class FetchDomainVerificationStatusPage FetchDomainVerificationStatusPage> { private FetchDomainVerificationStatusPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { super(context, response); } @@ -2713,18 +2716,20 @@ private static FetchDomainVerificationStatusPage createEmptyPage() { @Override protected FetchDomainVerificationStatusPage createPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { return new FetchDomainVerificationStatusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> @@ -2743,7 +2748,7 @@ public static class FetchDomainVerificationStatusFixedSizeCollection FetchDomainVerificationStatusFixedSizeCollection> { private FetchDomainVerificationStatusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2753,7 +2758,7 @@ private static FetchDomainVerificationStatusFixedSizeCollection createEmptyColle @Override protected FetchDomainVerificationStatusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchDomainVerificationStatusFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceSettings.java index 73a01f0ad568..39e51db21674 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -351,7 +352,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); } @@ -372,7 +373,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SiteSearchEngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java index 281707299424..56a402206a53 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -190,7 +191,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -238,7 +239,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java index 32a7fa06fbc2..a3098999fc62 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java index 798027d3d32e..dc5f867e0f28 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceClient.java @@ -37,6 +37,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserLicenseServiceClient implements BackgroundResource { - private final UserLicenseServiceSettings settings; + private final @Nullable UserLicenseServiceSettings settings; private final UserLicenseServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -214,7 +215,7 @@ protected UserLicenseServiceClient(UserLicenseServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserLicenseServiceSettings getSettings() { + public final @Nullable UserLicenseServiceSettings getSettings() { return settings; } @@ -263,7 +264,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/userStores/{user_store_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserLicensesPagedResponse listUserLicenses(UserStoreName parent) { + public final ListUserLicensesPagedResponse listUserLicenses(@Nullable UserStoreName parent) { ListUserLicensesRequest request = ListUserLicensesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -562,8 +563,9 @@ public static class ListUserLicensesPage ListUserLicensesRequest, ListUserLicensesResponse, UserLicense, ListUserLicensesPage> { private ListUserLicensesPage( - PageContext context, - ListUserLicensesResponse response) { + @Nullable PageContext + context, + @Nullable ListUserLicensesResponse response) { super(context, response); } @@ -573,14 +575,16 @@ private static ListUserLicensesPage createEmptyPage() { @Override protected ListUserLicensesPage createPage( - PageContext context, - ListUserLicensesResponse response) { + @Nullable PageContext + context, + @Nullable ListUserLicensesResponse response) { return new ListUserLicensesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -595,7 +599,7 @@ public static class ListUserLicensesFixedSizeCollection ListUserLicensesFixedSizeCollection> { private ListUserLicensesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -605,7 +609,7 @@ private static ListUserLicensesFixedSizeCollection createEmptyCollection() { @Override protected ListUserLicensesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserLicensesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java index e4334c1ec824..5652c6fadb3f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/UserLicenseServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserLicenseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java index 0749323abbd2..8c6a2ef27b9f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/AssistantServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -280,7 +281,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamAssistSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStub.java index 1b7cf3699736..ecfaf19ad49e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStub.java @@ -32,6 +32,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,11 +44,12 @@ @Generated("by gapic-generator-java") public abstract class CmekConfigServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java index 31dda6293bef..013b2f13c3b5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CmekConfigServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,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); } @@ -357,7 +358,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateCmekConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java index ba02a5e1b49b..703e80f552b9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java index 210e55fc0e88..eef552936964 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/CompletionServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -346,7 +347,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java index 3a3ad0655c35..05cb2f17d29a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ControlServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -379,7 +380,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java index ae5dded9270a..1d251815af38 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ConversationalSearchServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -446,7 +447,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); } @@ -548,7 +549,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); converseConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java index 0cbd83a11a97..c69eef013676 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStub.java @@ -35,6 +35,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class DataStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java index 57902ad7b5a4..b959fceab76c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DataStoreServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -357,7 +358,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); } @@ -430,7 +431,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java index 6e440c9d443f..0ad976964d94 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java index 7f363faf40f5..2926ee093472 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/DocumentServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -491,7 +492,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java index 7794f07f2a2c..17f58ad2a88e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStub.java @@ -35,6 +35,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class EngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java index 6497b0349741..bd76bb380336 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/EngineServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -354,7 +355,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); } @@ -422,7 +423,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java index 580625422c2c..769530580d71 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/GroundedGenerationServiceStubSettings.java @@ -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. /** @@ -236,7 +237,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); } @@ -310,7 +311,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamGenerateGroundedContentSettings = StreamingCallSettings.newBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStub.java index e69285218046..b5217f717fca 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class IdentityMappingStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java index 551473236a9f..eef22973cacb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/IdentityMappingStoreServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -503,7 +504,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); } @@ -600,7 +601,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIdentityMappingStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStub.java index 91b94a794422..2b2ed6e70aa0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,11 +38,12 @@ @Generated("by gapic-generator-java") public abstract class ProjectServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java index ac2c9aa88861..c2275aea6f62 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ProjectServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -253,7 +254,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); } @@ -321,7 +322,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); provisionProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java index 723b1382a42e..ad7fb2d187ca 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RankServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -213,7 +214,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); } @@ -276,7 +277,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); rankSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java index 4bc48b2d8992..b3ba550ef65b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/RecommendationServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); recommendSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java index b8f72f1ffc90..cb96dec5a0c1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStub.java @@ -36,6 +36,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class SchemaServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java index 212203d0599c..88c874673c1c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SchemaServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -363,7 +364,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); } @@ -445,7 +446,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java index 24720a85b935..4efb639b57cf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -400,7 +401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStub.java index e864ab0725d5..231915887031 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStub.java @@ -28,6 +28,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class SearchTuningServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java index 44a97295fafb..ab303e966cec 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SearchTuningServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); trainCustomModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java index d24a72cb9e0d..7d74faeea146 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/ServingConfigServiceStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -270,7 +271,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java index e11ffd3e6922..7f3ec733e7d1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SessionServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -379,7 +380,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStub.java index ea72f3b440d4..018f3d35f2bf 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStub.java @@ -63,6 +63,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class SiteSearchEngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java index 6172b346ddf2..05eb523dbdcc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/SiteSearchEngineServiceStubSettings.java @@ -97,6 +97,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -633,7 +634,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); } @@ -781,7 +782,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSiteSearchEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java index 38f07817758f..39e8a5a28bf7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java index d532ff4d43cc..a4970a4c691c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserEventServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -385,7 +386,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java index 8fc4e132ee55..82fd1ae24cfa 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStub.java @@ -30,6 +30,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class UserLicenseServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java index 5a6746bf41b2..17b979b951f5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/UserLicenseServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listUserLicensesSettings = PagedCallSettings.newBuilder(LIST_USER_LICENSES_PAGE_STR_FACT); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java index bf4fd8c3376f..b5de184fb711 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java @@ -25,6 +25,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AclConfigServiceClient implements BackgroundResource { - private final AclConfigServiceSettings settings; + private final @Nullable AclConfigServiceSettings settings; private final AclConfigServiceStub stub; /** Constructs an instance of AclConfigServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected AclConfigServiceClient(AclConfigServiceStub stub) { this.stub = stub; } - public final AclConfigServiceSettings getSettings() { + public final @Nullable AclConfigServiceSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public final UnaryCallable updateAclConfigCal * it exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AclConfig getAclConfig(AclConfigName name) { + public final AclConfig getAclConfig(@Nullable AclConfigName name) { GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAclConfig(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java index ce840f7b112f..66537e0c6455 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AclConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java index d7bd0c7a4da1..adc29b6d7691 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java @@ -33,6 +33,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. /** @@ -164,7 +165,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ChunkServiceClient implements BackgroundResource { - private final ChunkServiceSettings settings; + private final @Nullable ChunkServiceSettings settings; private final ChunkServiceStub stub; /** Constructs an instance of ChunkServiceClient with default settings. */ @@ -203,7 +204,7 @@ protected ChunkServiceClient(ChunkServiceStub stub) { this.stub = stub; } - public final ChunkServiceSettings getSettings() { + public final @Nullable ChunkServiceSettings getSettings() { return settings; } @@ -241,7 +242,7 @@ public ChunkServiceStub getStub() { * `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Chunk getChunk(ChunkName name) { + public final Chunk getChunk(@Nullable ChunkName name) { GetChunkRequest request = GetChunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChunk(request); @@ -383,7 +384,7 @@ public final UnaryCallable getChunkCallable() { * whether or not this document exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChunksPagedResponse listChunks(DocumentName parent) { + public final ListChunksPagedResponse listChunks(@Nullable DocumentName parent) { ListChunksRequest request = ListChunksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listChunks(request); @@ -590,8 +591,8 @@ public static class ListChunksPage extends AbstractPage { private ListChunksPage( - PageContext context, - ListChunksResponse response) { + @Nullable PageContext context, + @Nullable ListChunksResponse response) { super(context, response); } @@ -601,14 +602,14 @@ private static ListChunksPage createEmptyPage() { @Override protected ListChunksPage createPage( - PageContext context, - ListChunksResponse response) { + @Nullable PageContext context, + @Nullable ListChunksResponse response) { return new ListChunksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -622,7 +623,8 @@ public static class ListChunksFixedSizeCollection ListChunksPage, ListChunksFixedSizeCollection> { - private ListChunksFixedSizeCollection(List pages, int collectionSize) { + private ListChunksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -632,7 +634,7 @@ private static ListChunksFixedSizeCollection createEmptyCollection() { @Override protected ListChunksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChunksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java index 6f0b1dd496c2..8c0a186d570f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ChunkServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java index 1514580bb5b9..43f2712b3759 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -206,7 +207,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -254,7 +255,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java index 73361b9c9e20..8f3c4bb96990 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -245,7 +246,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); } @@ -265,7 +266,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceClient.java index e624b2e5aacc..b5eb61dc20fb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceClient.java @@ -35,6 +35,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. /** @@ -229,7 +230,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -269,7 +270,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -312,7 +313,8 @@ public ControlServiceStub getStub() { *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(DataStoreName parent, Control control, String controlId) { + public final Control createControl( + @Nullable DataStoreName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -356,7 +358,8 @@ public final Control createControl(DataStoreName parent, Control control, String *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(EngineName parent, Control control, String controlId) { + public final Control createControl( + @Nullable EngineName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -512,7 +515,7 @@ public final UnaryCallable createControlCallable( * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -747,7 +750,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -871,7 +874,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(DataStoreName parent) { + public final ListControlsPagedResponse listControls(@Nullable DataStoreName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -905,7 +908,7 @@ public final ListControlsPagedResponse listControls(DataStoreName parent) { * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(EngineName parent) { + public final ListControlsPagedResponse listControls(@Nullable EngineName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1119,8 +1122,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -1130,14 +1133,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1151,7 +1154,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1161,7 +1165,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceSettings.java index 60e7c886306b..09ea95f07104 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java index befe6ee615cf..631de6a47afc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java @@ -35,6 +35,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. /** @@ -381,7 +382,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -424,7 +425,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } @@ -465,7 +466,7 @@ public ConversationalSearchServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConverseConversationResponse converseConversation( - ConversationName name, TextInput query) { + @Nullable ConversationName name, TextInput query) { ConverseConversationRequest request = ConverseConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -632,7 +633,8 @@ public final ConverseConversationResponse converseConversation( * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(DataStoreName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable DataStoreName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -781,7 +783,7 @@ public final UnaryCallable createConver * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1031,7 +1033,7 @@ public final UnaryCallable updateConver * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -1160,7 +1162,7 @@ public final UnaryCallable getConversation * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(DataStoreName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable DataStoreName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1447,7 +1449,7 @@ public final UnaryCallable answerQueryC * `projects/{project_number}/locations/{location_id}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Answer getAnswer(AnswerName name) { + public final Answer getAnswer(@Nullable AnswerName name) { GetAnswerRequest request = GetAnswerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnswer(request); @@ -1577,7 +1579,7 @@ public final UnaryCallable getAnswerCallable() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1722,7 +1724,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -1965,7 +1967,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -2094,7 +2096,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2318,8 +2320,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -2329,14 +2332,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2351,7 +2356,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2361,7 +2366,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -2394,8 +2399,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -2405,14 +2410,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2426,7 +2431,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2436,7 +2442,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java index 8786e97a62ee..743b0df7053a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java index 3c8c19b08ddf..c3cff296472c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java @@ -39,6 +39,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. /** @@ -269,7 +270,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataStoreServiceClient implements BackgroundResource { - private final DataStoreServiceSettings settings; + private final @Nullable DataStoreServiceSettings settings; private final DataStoreServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -317,7 +318,7 @@ protected DataStoreServiceClient(DataStoreServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataStoreServiceSettings getSettings() { + public final @Nullable DataStoreServiceSettings getSettings() { return settings; } @@ -380,7 +381,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataStoreAsync( - CollectionName parent, DataStore dataStore, String dataStoreId) { + @Nullable CollectionName parent, DataStore dataStore, String dataStoreId) { CreateDataStoreRequest request = CreateDataStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -577,7 +578,7 @@ public final UnaryCallable createDataStoreCal * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStore getDataStore(DataStoreName name) { + public final DataStore getDataStore(@Nullable DataStoreName name) { GetDataStoreRequest request = GetDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataStore(request); @@ -708,7 +709,7 @@ public final UnaryCallable getDataStoreCallable( * regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStoresPagedResponse listDataStores(CollectionName parent) { + public final ListDataStoresPagedResponse listDataStores(@Nullable CollectionName parent) { ListDataStoresRequest request = ListDataStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -890,7 +891,7 @@ public final ListDataStoresPagedResponse listDataStores(ListDataStoresRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataStoreAsync( - DataStoreName name) { + @Nullable DataStoreName name) { DeleteDataStoreRequest request = DeleteDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataStoreAsync(request); @@ -1150,7 +1151,7 @@ public final UnaryCallable updateDataStoreCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DocumentProcessingConfig getDocumentProcessingConfig( - DocumentProcessingConfigName name) { + @Nullable DocumentProcessingConfigName name) { GetDocumentProcessingConfigRequest request = GetDocumentProcessingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1445,8 +1446,8 @@ public static class ListDataStoresPage ListDataStoresRequest, ListDataStoresResponse, DataStore, ListDataStoresPage> { private ListDataStoresPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { super(context, response); } @@ -1456,14 +1457,14 @@ private static ListDataStoresPage createEmptyPage() { @Override protected ListDataStoresPage createPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { return new ListDataStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1477,7 +1478,8 @@ public static class ListDataStoresFixedSizeCollection ListDataStoresPage, ListDataStoresFixedSizeCollection> { - private ListDataStoresFixedSizeCollection(List pages, int collectionSize) { + private ListDataStoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1487,7 +1489,7 @@ private static ListDataStoresFixedSizeCollection createEmptyCollection() { @Override protected ListDataStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java index 693a5fd5a492..f3e62de6c734 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -229,7 +230,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); } @@ -249,7 +250,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java index 2ba0d6b12d77..8f1f509c9d1e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java @@ -39,6 +39,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. /** @@ -301,7 +302,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DocumentServiceClient implements BackgroundResource { - private final DocumentServiceSettings settings; + private final @Nullable DocumentServiceSettings settings; private final DocumentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -349,7 +350,7 @@ protected DocumentServiceClient(DocumentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentServiceSettings getSettings() { + public final @Nullable DocumentServiceSettings getSettings() { return settings; } @@ -404,7 +405,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -537,7 +538,7 @@ public final UnaryCallable getDocumentCallable() { * whether or not this branch exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(BranchName parent) { + public final ListDocumentsPagedResponse listDocuments(@Nullable BranchName parent) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -734,7 +735,8 @@ public final UnaryCallable listDocu * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document createDocument(BranchName parent, Document document, String documentId) { + public final Document createDocument( + @Nullable BranchName parent, Document document, String documentId) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -988,7 +990,7 @@ public final UnaryCallable updateDocumentCallab * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocument(DocumentName name) { + public final void deleteDocument(@Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDocument(request); @@ -1389,7 +1391,7 @@ public final UnaryCallable purgeDocumentsCalla * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessedDocument getProcessedDocument(DocumentName name) { + public final ProcessedDocument getProcessedDocument(@Nullable DocumentName name) { GetProcessedDocumentRequest request = GetProcessedDocumentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1526,7 +1528,8 @@ public final ProcessedDocument getProcessedDocument(GetProcessedDocumentRequest * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata(BranchName parent) { + public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( + @Nullable BranchName parent) { BatchGetDocumentsMetadataRequest request = BatchGetDocumentsMetadataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1695,8 +1698,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1706,14 +1709,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1727,7 +1730,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1737,7 +1741,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java index f424e78cbe6d..ac056a6b1c31 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java index f74bb22906ad..dfefe714bf18 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java @@ -39,6 +39,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. /** @@ -285,7 +286,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EngineServiceClient implements BackgroundResource { - private final EngineServiceSettings settings; + private final @Nullable EngineServiceSettings settings; private final EngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -333,7 +334,7 @@ protected EngineServiceClient(EngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EngineServiceSettings getSettings() { + public final @Nullable EngineServiceSettings getSettings() { return settings; } @@ -389,7 +390,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEngineAsync( - CollectionName parent, Engine engine, String engineId) { + @Nullable CollectionName parent, Engine engine, String engineId) { CreateEngineRequest request = CreateEngineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +560,8 @@ public final UnaryCallable createEngineCallable( * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEngineAsync(EngineName name) { + public final OperationFuture deleteEngineAsync( + @Nullable EngineName name) { DeleteEngineRequest request = DeleteEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEngineAsync(request); @@ -802,7 +804,7 @@ public final UnaryCallable updateEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine getEngine(EngineName name) { + public final Engine getEngine(@Nullable EngineName name) { GetEngineRequest request = GetEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEngine(request); @@ -918,7 +920,7 @@ public final UnaryCallable getEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnginesPagedResponse listEngines(CollectionName parent) { + public final ListEnginesPagedResponse listEngines(@Nullable CollectionName parent) { ListEnginesRequest request = ListEnginesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1088,7 +1090,7 @@ public final UnaryCallable listEnginesC * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine pauseEngine(EngineName name) { + public final Engine pauseEngine(@Nullable EngineName name) { PauseEngineRequest request = PauseEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseEngine(request); @@ -1208,7 +1210,7 @@ public final UnaryCallable pauseEngineCallable() { * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine resumeEngine(EngineName name) { + public final Engine resumeEngine(@Nullable EngineName name) { ResumeEngineRequest request = ResumeEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeEngine(request); @@ -1329,7 +1331,7 @@ public final UnaryCallable resumeEngineCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture tuneEngineAsync( - EngineName name) { + @Nullable EngineName name) { TuneEngineRequest request = TuneEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return tuneEngineAsync(request); @@ -1515,8 +1517,8 @@ public static class ListEnginesPage extends AbstractPage { private ListEnginesPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { super(context, response); } @@ -1526,14 +1528,14 @@ private static ListEnginesPage createEmptyPage() { @Override protected ListEnginesPage createPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { return new ListEnginesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1547,7 +1549,8 @@ public static class ListEnginesFixedSizeCollection ListEnginesPage, ListEnginesFixedSizeCollection> { - private ListEnginesFixedSizeCollection(List pages, int collectionSize) { + private ListEnginesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1557,7 +1560,7 @@ private static ListEnginesFixedSizeCollection createEmptyCollection() { @Override protected ListEnginesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnginesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceSettings.java index 3fc50c0e4075..5d7773bb399a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java index a429b3b97b15..0c304a738621 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java @@ -29,6 +29,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. /** @@ -142,7 +143,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EstimateBillingServiceClient implements BackgroundResource { - private final EstimateBillingServiceSettings settings; + private final @Nullable EstimateBillingServiceSettings settings; private final EstimateBillingServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -191,7 +192,7 @@ protected EstimateBillingServiceClient(EstimateBillingServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EstimateBillingServiceSettings getSettings() { + public final @Nullable EstimateBillingServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java index 1bd6a33bbf30..deb4fa41144b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EstimateBillingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java index 59daddb2c6ad..ae2d1a2361c8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceClient.java @@ -37,6 +37,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. /** @@ -211,7 +212,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EvaluationServiceClient implements BackgroundResource { - private final EvaluationServiceSettings settings; + private final @Nullable EvaluationServiceSettings settings; private final EvaluationServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -259,7 +260,7 @@ protected EvaluationServiceClient(EvaluationServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EvaluationServiceSettings getSettings() { + public final @Nullable EvaluationServiceSettings getSettings() { return settings; } @@ -312,7 +313,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -434,7 +435,7 @@ public final UnaryCallable getEvaluationCallab * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable LocationName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -607,7 +608,7 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEvaluationAsync( - LocationName parent, Evaluation evaluation) { + @Nullable LocationName parent, Evaluation evaluation) { CreateEvaluationRequest request = CreateEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -774,7 +775,8 @@ public final UnaryCallable createEvaluationC * error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) { + public final ListEvaluationResultsPagedResponse listEvaluationResults( + @Nullable EvaluationName evaluation) { ListEvaluationResultsRequest request = ListEvaluationResultsRequest.newBuilder() .setEvaluation(evaluation == null ? null : evaluation.toString()) @@ -990,8 +992,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -1001,14 +1003,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1023,7 +1025,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1033,7 +1035,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -1074,12 +1076,13 @@ public static class ListEvaluationResultsPage ListEvaluationResultsPage> { private ListEvaluationResultsPage( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { super(context, response); } @@ -1089,18 +1092,20 @@ private static ListEvaluationResultsPage createEmptyPage() { @Override protected ListEvaluationResultsPage createPage( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { return new ListEvaluationResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> @@ -1119,7 +1124,7 @@ public static class ListEvaluationResultsFixedSizeCollection ListEvaluationResultsFixedSizeCollection> { private ListEvaluationResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1129,7 +1134,7 @@ private static ListEvaluationResultsFixedSizeCollection createEmptyCollection() @Override protected ListEvaluationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationResultsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java index 5de00b433e87..a1bb9ec99b76 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -209,7 +210,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); } @@ -229,7 +230,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EvaluationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceClient.java index 9dade55d943d..4a57ae0ba59e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceClient.java @@ -25,6 +25,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. /** @@ -142,7 +143,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GroundedGenerationServiceClient implements BackgroundResource { - private final GroundedGenerationServiceSettings settings; + private final @Nullable GroundedGenerationServiceSettings settings; private final GroundedGenerationServiceStub stub; /** Constructs an instance of GroundedGenerationServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected GroundedGenerationServiceClient(GroundedGenerationServiceStub stub) { this.stub = stub; } - public final GroundedGenerationServiceSettings getSettings() { + public final @Nullable GroundedGenerationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceSettings.java index 52e6f02e6179..d889e6eebea8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundedGenerationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GroundedGenerationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceClient.java index f2442460ed39..e9466f89bd9b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceClient.java @@ -29,6 +29,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. /** @@ -183,7 +184,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProjectServiceClient implements BackgroundResource { - private final ProjectServiceSettings settings; + private final @Nullable ProjectServiceSettings settings; private final ProjectServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -231,7 +232,7 @@ protected ProjectServiceClient(ProjectServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProjectServiceSettings getSettings() { + public final @Nullable ProjectServiceSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id_or_number}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Project getProject(ProjectName name) { + public final Project getProject(@Nullable ProjectName name) { GetProjectRequest request = GetProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProject(request); @@ -396,7 +397,7 @@ public final UnaryCallable getProjectCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture provisionProjectAsync( - ProjectName name) { + @Nullable ProjectName name) { ProvisionProjectRequest request = ProvisionProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return provisionProjectAsync(request); @@ -592,7 +593,7 @@ public final UnaryCallable provisionProjectC */ public final Project reportConsentChange( ReportConsentChangeRequest.ConsentChangeAction consentChangeAction, - ProjectName project, + @Nullable ProjectName project, String serviceTermId, String serviceTermVersion) { ReportConsentChangeRequest request = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceSettings.java index 7998f85a929a..a739f92f4324 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceClient.java index 8d96693d902d..07e688836ef5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceClient.java @@ -25,6 +25,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. /** @@ -137,7 +138,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RankServiceClient implements BackgroundResource { - private final RankServiceSettings settings; + private final @Nullable RankServiceSettings settings; private final RankServiceStub stub; /** Constructs an instance of RankServiceClient with default settings. */ @@ -176,7 +177,7 @@ protected RankServiceClient(RankServiceStub stub) { this.stub = stub; } - public final RankServiceSettings getSettings() { + public final @Nullable RankServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceSettings.java index c642f13e44ee..8c06be1a6b28 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RankServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java index 2ab57cf3b8c4..3e30690b884a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceClient.java @@ -25,6 +25,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RecommendationServiceClient implements BackgroundResource { - private final RecommendationServiceSettings settings; + private final @Nullable RecommendationServiceSettings settings; private final RecommendationServiceStub stub; /** Constructs an instance of RecommendationServiceClient with default settings. */ @@ -185,7 +186,7 @@ protected RecommendationServiceClient(RecommendationServiceStub stub) { this.stub = stub; } - public final RecommendationServiceSettings getSettings() { + public final @Nullable RecommendationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java index 0e12da86e3aa..132829e96f74 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecommendationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java index 9377c9ff076b..cfeb096cddd2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceClient.java @@ -39,6 +39,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. /** @@ -245,7 +246,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SampleQueryServiceClient implements BackgroundResource { - private final SampleQueryServiceSettings settings; + private final @Nullable SampleQueryServiceSettings settings; private final SampleQueryServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -293,7 +294,7 @@ protected SampleQueryServiceClient(SampleQueryServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SampleQueryServiceSettings getSettings() { + public final @Nullable SampleQueryServiceSettings getSettings() { return settings; } @@ -347,7 +348,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * not exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SampleQuery getSampleQuery(SampleQueryName name) { + public final SampleQuery getSampleQuery(@Nullable SampleQueryName name) { GetSampleQueryRequest request = GetSampleQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSampleQuery(request); @@ -479,7 +480,8 @@ public final UnaryCallable getSampleQueryCal * is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSampleQueriesPagedResponse listSampleQueries(SampleQuerySetName parent) { + public final ListSampleQueriesPagedResponse listSampleQueries( + @Nullable SampleQuerySetName parent) { ListSampleQueriesRequest request = ListSampleQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -672,7 +674,7 @@ public final ListSampleQueriesPagedResponse listSampleQueries(ListSampleQueriesR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SampleQuery createSampleQuery( - SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { + @Nullable SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { CreateSampleQueryRequest request = CreateSampleQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -921,7 +923,7 @@ public final UnaryCallable updateSampleQu * not exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSampleQuery(SampleQueryName name) { + public final void deleteSampleQuery(@Nullable SampleQueryName name) { DeleteSampleQueryRequest request = DeleteSampleQueryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1191,8 +1193,9 @@ public static class ListSampleQueriesPage ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery, ListSampleQueriesPage> { private ListSampleQueriesPage( - PageContext context, - ListSampleQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSampleQueriesResponse response) { super(context, response); } @@ -1202,14 +1205,16 @@ private static ListSampleQueriesPage createEmptyPage() { @Override protected ListSampleQueriesPage createPage( - PageContext context, - ListSampleQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSampleQueriesResponse response) { return new ListSampleQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1224,7 +1229,7 @@ public static class ListSampleQueriesFixedSizeCollection ListSampleQueriesFixedSizeCollection> { private ListSampleQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1234,7 +1239,7 @@ private static ListSampleQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSampleQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSampleQueriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java index 87d48e57400f..7f607db5ca9e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SampleQueryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java index a0f49fed1fd6..5eed8f357a93 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceClient.java @@ -35,6 +35,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. /** @@ -226,7 +227,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SampleQuerySetServiceClient implements BackgroundResource { - private final SampleQuerySetServiceSettings settings; + private final @Nullable SampleQuerySetServiceSettings settings; private final SampleQuerySetServiceStub stub; /** Constructs an instance of SampleQuerySetServiceClient with default settings. */ @@ -266,7 +267,7 @@ protected SampleQuerySetServiceClient(SampleQuerySetServiceStub stub) { this.stub = stub; } - public final SampleQuerySetServiceSettings getSettings() { + public final @Nullable SampleQuerySetServiceSettings getSettings() { return settings; } @@ -304,7 +305,7 @@ public SampleQuerySetServiceStub getStub() { * does not exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SampleQuerySet getSampleQuerySet(SampleQuerySetName name) { + public final SampleQuerySet getSampleQuerySet(@Nullable SampleQuerySetName name) { GetSampleQuerySetRequest request = GetSampleQuerySetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -436,7 +437,7 @@ public final UnaryCallable getSampleQu * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSampleQuerySetsPagedResponse listSampleQuerySets(LocationName parent) { + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(@Nullable LocationName parent) { ListSampleQuerySetsRequest request = ListSampleQuerySetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -632,7 +633,7 @@ public final ListSampleQuerySetsPagedResponse listSampleQuerySets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SampleQuerySet createSampleQuerySet( - LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + @Nullable LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { CreateSampleQuerySetRequest request = CreateSampleQuerySetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -890,7 +891,7 @@ public final SampleQuerySet updateSampleQuerySet(UpdateSampleQuerySetRequest req * does not exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSampleQuerySet(SampleQuerySetName name) { + public final void deleteSampleQuerySet(@Nullable SampleQuerySetName name) { DeleteSampleQuerySetRequest request = DeleteSampleQuerySetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1057,9 +1058,10 @@ public static class ListSampleQuerySetsPage ListSampleQuerySetsPage> { private ListSampleQuerySetsPage( - PageContext + @Nullable + PageContext context, - ListSampleQuerySetsResponse response) { + @Nullable ListSampleQuerySetsResponse response) { super(context, response); } @@ -1069,15 +1071,17 @@ private static ListSampleQuerySetsPage createEmptyPage() { @Override protected ListSampleQuerySetsPage createPage( - PageContext + @Nullable + PageContext context, - ListSampleQuerySetsResponse response) { + @Nullable ListSampleQuerySetsResponse response) { return new ListSampleQuerySetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1093,7 +1097,7 @@ public static class ListSampleQuerySetsFixedSizeCollection ListSampleQuerySetsFixedSizeCollection> { private ListSampleQuerySetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1103,7 +1107,7 @@ private static ListSampleQuerySetsFixedSizeCollection createEmptyCollection() { @Override protected ListSampleQuerySetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSampleQuerySetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java index c6b934ec736b..193ffd9c2001 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SampleQuerySetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java index 199400cc4317..8a490d7546e7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceClient.java @@ -38,6 +38,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. /** @@ -223,7 +224,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { - private final SchemaServiceSettings settings; + private final @Nullable SchemaServiceSettings settings; private final SchemaServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -271,7 +272,7 @@ protected SchemaServiceClient(SchemaServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SchemaServiceSettings getSettings() { + public final @Nullable SchemaServiceSettings getSettings() { return settings; } @@ -320,7 +321,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema getSchema(SchemaName name) { + public final Schema getSchema(@Nullable SchemaName name) { GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchema(request); @@ -442,7 +443,7 @@ public final UnaryCallable getSchemaCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemasPagedResponse listSchemas(DataStoreName parent) { + public final ListSchemasPagedResponse listSchemas(@Nullable DataStoreName parent) { ListSchemasRequest request = ListSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -624,7 +625,7 @@ public final UnaryCallable listSchemasC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSchemaAsync( - DataStoreName parent, Schema schema, String schemaId) { + @Nullable DataStoreName parent, Schema schema, String schemaId) { CreateSchemaRequest request = CreateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -889,7 +890,8 @@ public final UnaryCallable updateSchemaCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSchemaAsync(SchemaName name) { + public final OperationFuture deleteSchemaAsync( + @Nullable SchemaName name) { DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSchemaAsync(request); @@ -1075,8 +1077,8 @@ public static class ListSchemasPage extends AbstractPage { private ListSchemasPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { super(context, response); } @@ -1086,14 +1088,14 @@ private static ListSchemasPage createEmptyPage() { @Override protected ListSchemasPage createPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { return new ListSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1107,7 +1109,8 @@ public static class ListSchemasFixedSizeCollection ListSchemasPage, ListSchemasFixedSizeCollection> { - private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + private ListSchemasFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1117,7 +1120,7 @@ private static ListSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemasFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java index 8452fbbea9a2..637f4045e2f7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java index ae6b647cb3f7..039de3f9d054 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java @@ -33,6 +33,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. /** @@ -181,7 +182,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -221,7 +222,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -498,8 +499,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -509,14 +510,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -530,7 +531,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -540,7 +541,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java index d71fa2a26bef..58cc9fb4682f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java index 5a47510b89cb..4f7aa7a495bc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceClient.java @@ -29,6 +29,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. /** @@ -157,7 +158,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchTuningServiceClient implements BackgroundResource { - private final SearchTuningServiceSettings settings; + private final @Nullable SearchTuningServiceSettings settings; private final SearchTuningServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -205,7 +206,7 @@ protected SearchTuningServiceClient(SearchTuningServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SearchTuningServiceSettings getSettings() { + public final @Nullable SearchTuningServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceSettings.java index 73638c241921..23879c246975 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchTuningServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchTuningServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java index b77fda5695d8..2f7a536a340d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java @@ -34,6 +34,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. /** @@ -191,7 +192,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -231,7 +232,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } @@ -374,7 +375,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig getServingConfig(ServingConfigName name) { + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServingConfig(request); @@ -508,7 +509,7 @@ public final UnaryCallable getServingCon * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable DataStoreName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +543,7 @@ public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName pa * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(EngineName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable EngineName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -765,8 +766,9 @@ public static class ListServingConfigsPage ListServingConfigsPage> { private ListServingConfigsPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { super(context, response); } @@ -776,14 +778,16 @@ private static ListServingConfigsPage createEmptyPage() { @Override protected ListServingConfigsPage createPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { return new ListServingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -798,7 +802,7 @@ public static class ListServingConfigsFixedSizeCollection ListServingConfigsFixedSizeCollection> { private ListServingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -808,7 +812,7 @@ private static ListServingConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServingConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java index 04c9f24929f9..58fee0b4c5d7 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceClient.java index c9939a45bd04..296ede16035a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceClient.java @@ -35,6 +35,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. /** @@ -244,7 +245,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; /** Constructs an instance of SessionServiceClient with default settings. */ @@ -284,7 +285,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.stub = stub; } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -320,7 +321,7 @@ public SessionServiceStub getStub() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -460,7 +461,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -694,7 +695,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -818,7 +819,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1002,7 +1003,7 @@ public final UnaryCallable listSessio * Name of the session resource to which the file belong. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFilesPagedResponse listFiles(SessionName parent) { + public final ListFilesPagedResponse listFiles(@Nullable SessionName parent) { ListFilesRequest request = ListFilesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFiles(request); @@ -1213,8 +1214,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1224,14 +1225,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1245,7 +1246,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1255,7 +1257,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } @@ -1286,8 +1288,8 @@ public static class ListFilesPage extends AbstractPage { private ListFilesPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { super(context, response); } @@ -1297,14 +1299,14 @@ private static ListFilesPage createEmptyPage() { @Override protected ListFilesPage createPage( - PageContext context, - ListFilesResponse response) { + @Nullable PageContext context, + @Nullable ListFilesResponse response) { return new ListFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1318,7 +1320,7 @@ public static class ListFilesFixedSizeCollection ListFilesPage, ListFilesFixedSizeCollection> { - private ListFilesFixedSizeCollection(List pages, int collectionSize) { + private ListFilesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1328,7 +1330,7 @@ private static ListFilesFixedSizeCollection createEmptyCollection() { @Override protected ListFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFilesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceSettings.java index a0ec536348ee..4ded1a6d5863 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,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); } @@ -202,7 +203,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java index daee713dad69..deaa89a82470 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceClient.java @@ -38,6 +38,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. /** @@ -370,7 +371,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SiteSearchEngineServiceClient implements BackgroundResource { - private final SiteSearchEngineServiceSettings settings; + private final @Nullable SiteSearchEngineServiceSettings settings; private final SiteSearchEngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -419,7 +420,7 @@ protected SiteSearchEngineServiceClient(SiteSearchEngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SiteSearchEngineServiceSettings getSettings() { + public final @Nullable SiteSearchEngineServiceSettings getSettings() { return settings; } @@ -472,7 +473,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * whether or not it exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SiteSearchEngine getSiteSearchEngine(SiteSearchEngineName name) { + public final SiteSearchEngine getSiteSearchEngine(@Nullable SiteSearchEngineName name) { GetSiteSearchEngineRequest request = GetSiteSearchEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -611,7 +612,7 @@ public final SiteSearchEngine getSiteSearchEngine(GetSiteSearchEngineRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTargetSiteAsync( - SiteSearchEngineName parent, TargetSite targetSite) { + @Nullable SiteSearchEngineName parent, TargetSite targetSite) { CreateTargetSiteRequest request = CreateTargetSiteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -898,7 +899,7 @@ public final UnaryCallable createTargetSiteC * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TargetSite getTargetSite(TargetSiteName name) { + public final TargetSite getTargetSite(@Nullable TargetSiteName name) { GetTargetSiteRequest request = GetTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTargetSite(request); @@ -1159,7 +1160,7 @@ public final UnaryCallable updateTargetSiteC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTargetSiteAsync( - TargetSiteName name) { + @Nullable TargetSiteName name) { DeleteTargetSiteRequest request = DeleteTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTargetSiteAsync(request); @@ -1332,7 +1333,7 @@ public final UnaryCallable deleteTargetSiteC * returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTargetSitesPagedResponse listTargetSites(SiteSearchEngineName parent) { + public final ListTargetSitesPagedResponse listTargetSites(@Nullable SiteSearchEngineName parent) { ListTargetSitesRequest request = ListTargetSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2281,8 +2282,8 @@ public static class ListTargetSitesPage ListTargetSitesRequest, ListTargetSitesResponse, TargetSite, ListTargetSitesPage> { private ListTargetSitesPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { super(context, response); } @@ -2292,14 +2293,14 @@ private static ListTargetSitesPage createEmptyPage() { @Override protected ListTargetSitesPage createPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { return new ListTargetSitesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2314,7 +2315,7 @@ public static class ListTargetSitesFixedSizeCollection ListTargetSitesFixedSizeCollection> { private ListTargetSitesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2324,7 +2325,7 @@ private static ListTargetSitesFixedSizeCollection createEmptyCollection() { @Override protected ListTargetSitesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTargetSitesFixedSizeCollection(pages, collectionSize); } } @@ -2366,12 +2367,13 @@ public static class FetchDomainVerificationStatusPage FetchDomainVerificationStatusPage> { private FetchDomainVerificationStatusPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { super(context, response); } @@ -2381,18 +2383,20 @@ private static FetchDomainVerificationStatusPage createEmptyPage() { @Override protected FetchDomainVerificationStatusPage createPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { return new FetchDomainVerificationStatusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> @@ -2411,7 +2415,7 @@ public static class FetchDomainVerificationStatusFixedSizeCollection FetchDomainVerificationStatusFixedSizeCollection> { private FetchDomainVerificationStatusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2421,7 +2425,7 @@ private static FetchDomainVerificationStatusFixedSizeCollection createEmptyColle @Override protected FetchDomainVerificationStatusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchDomainVerificationStatusFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java index 273aa2c31d0e..84a366b43d97 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -347,7 +348,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); } @@ -368,7 +369,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SiteSearchEngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java index 53fbffeb6a1f..cf9ffc73461b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -191,7 +192,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -239,7 +240,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java index 314bff5dd25b..264ba9ceb4b1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,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); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java index 4052fc904b90..b80c13e034fb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java index e08da15dc50a..515047774628 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,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); } @@ -339,7 +340,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getChunkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java index ad920a89a5ac..ecf897114489 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java index 62c6df18226d..283994609aed 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -347,7 +348,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); } @@ -455,7 +456,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java index 49db32cb50df..1474dc035701 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ControlServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -307,7 +308,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); } @@ -380,7 +381,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java index 0d4ec1bdd084..5f65a96f444c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ConversationalSearchServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -438,7 +439,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); } @@ -537,7 +538,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); converseConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java index 808fda8e8395..137d59040634 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class DataStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java index f01dfeddfc25..ea7cc07faf3b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -377,7 +378,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); } @@ -460,7 +461,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java index df99b7405bfa..266ed13f275b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java index ec8f014bd9a0..f695faf0b3ea 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DocumentServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -397,7 +398,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); } @@ -505,7 +506,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStub.java index 970b82372d8c..a007d689dc0e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class EngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java index 959808cd67a3..9db8f8da4ebd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EngineServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -464,7 +465,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java index 526e1baff96f..57ee17b6b383 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class EstimateBillingServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java index d209b4fc76fd..70e77e3e42ae 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -258,7 +259,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); } @@ -316,7 +317,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); estimateDataSizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java index 7dde64bd3b7c..dd07153d68fe 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStub.java @@ -35,6 +35,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class EvaluationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java index 35dceaaec806..02f32086218c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EvaluationServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -423,7 +424,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); } @@ -513,7 +514,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java index 58a555ced33a..a8006c182dca 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GroundedGenerationServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); checkGroundingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStub.java index 6c413b12dda6..6e150130f2ad 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class ProjectServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java index 1e19c942e594..975205d00b49 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ProjectServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -268,7 +269,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); } @@ -341,7 +342,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java index cf804b57e3b3..1f045192643e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RankServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -277,7 +278,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); rankSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java index 3a8d35451318..8e0d0f71c0d5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/RecommendationServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -280,7 +281,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); recommendSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java index aeadb8e9ac64..445b370c8efc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SampleQueryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java index a97c1eecfe5a..841f8cecd71f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQueryServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -368,7 +369,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java index d16d222e10fa..8541cd25ba10 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SampleQuerySetServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -323,7 +324,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); } @@ -403,7 +404,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java index ca52fa044219..e7dd1ea316a0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SchemaServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java index 61101e8c064b..63e541be90b2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SchemaServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -364,7 +365,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); } @@ -446,7 +447,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java index 5b87c41bc2d8..a8c706a42bea 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -274,7 +275,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); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStub.java index ffc3c0905ea0..59d53a9833d8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class SearchTuningServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java index 51b15c0ebd99..3e0ddfc0a976 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SearchTuningServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); trainCustomModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java index f3f8ca481111..e04e2d17917f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -304,7 +305,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); } @@ -365,7 +366,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SessionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SessionServiceStubSettings.java index edcf5e21e06f..f7041e2feb35 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SessionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SessionServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -370,7 +371,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); } @@ -447,7 +448,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java index e01c4a46514c..4e2d3f41c1af 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStub.java @@ -62,6 +62,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class SiteSearchEngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java index 606e83500bae..b13e196754ab 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/SiteSearchEngineServiceStubSettings.java @@ -95,6 +95,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -628,7 +629,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); } @@ -776,7 +777,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSiteSearchEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java index 23ddde231616..db2846a32f90 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStub.java @@ -34,6 +34,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java index 1ca0ab79bf46..849c52d8dcd6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/UserEventServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -386,7 +387,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java index 412a6ce34c95..d4bd2770cfff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java @@ -25,6 +25,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AclConfigServiceClient implements BackgroundResource { - private final AclConfigServiceSettings settings; + private final @Nullable AclConfigServiceSettings settings; private final AclConfigServiceStub stub; /** Constructs an instance of AclConfigServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected AclConfigServiceClient(AclConfigServiceStub stub) { this.stub = stub; } - public final AclConfigServiceSettings getSettings() { + public final @Nullable AclConfigServiceSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public final UnaryCallable updateAclConfigCal * exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AclConfig getAclConfig(AclConfigName name) { + public final AclConfig getAclConfig(@Nullable AclConfigName name) { GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAclConfig(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java index d389d55daef9..394c65fa5e67 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AclConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java index b89a1739b160..1b7546e18b2f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java @@ -36,6 +36,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. /** @@ -235,7 +236,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AssistantServiceClient implements BackgroundResource { - private final AssistantServiceSettings settings; + private final @Nullable AssistantServiceSettings settings; private final AssistantServiceStub stub; /** Constructs an instance of AssistantServiceClient with default settings. */ @@ -275,7 +276,7 @@ protected AssistantServiceClient(AssistantServiceStub stub) { this.stub = stub; } - public final AssistantServiceSettings getSettings() { + public final @Nullable AssistantServiceSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public final UnaryCallable createAssistantCal * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAssistant(AssistantName name) { + public final void deleteAssistant(@Nullable AssistantName name) { DeleteAssistantRequest request = DeleteAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAssistant(request); @@ -641,7 +642,7 @@ public final UnaryCallable updateAssistantCal * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assistant getAssistant(AssistantName name) { + public final Assistant getAssistant(@Nullable AssistantName name) { GetAssistantRequest request = GetAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAssistant(request); @@ -764,7 +765,7 @@ public final UnaryCallable getAssistantCallable( * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssistantsPagedResponse listAssistants(EngineName parent) { + public final ListAssistantsPagedResponse listAssistants(@Nullable EngineName parent) { ListAssistantsRequest request = ListAssistantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -973,8 +974,8 @@ public static class ListAssistantsPage ListAssistantsRequest, ListAssistantsResponse, Assistant, ListAssistantsPage> { private ListAssistantsPage( - PageContext context, - ListAssistantsResponse response) { + @Nullable PageContext context, + @Nullable ListAssistantsResponse response) { super(context, response); } @@ -984,14 +985,14 @@ private static ListAssistantsPage createEmptyPage() { @Override protected ListAssistantsPage createPage( - PageContext context, - ListAssistantsResponse response) { + @Nullable PageContext context, + @Nullable ListAssistantsResponse response) { return new ListAssistantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1005,7 +1006,8 @@ public static class ListAssistantsFixedSizeCollection ListAssistantsPage, ListAssistantsFixedSizeCollection> { - private ListAssistantsFixedSizeCollection(List pages, int collectionSize) { + private ListAssistantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1015,7 +1017,7 @@ private static ListAssistantsFixedSizeCollection createEmptyCollection() { @Override protected ListAssistantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssistantsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java index c1d255892ff4..746b0b97e513 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,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); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssistantServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java index 9ebe2898581a..c9e5eaae7433 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java @@ -30,6 +30,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. /** @@ -200,7 +201,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CmekConfigServiceClient implements BackgroundResource { - private final CmekConfigServiceSettings settings; + private final @Nullable CmekConfigServiceSettings settings; private final CmekConfigServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -248,7 +249,7 @@ protected CmekConfigServiceClient(CmekConfigServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CmekConfigServiceSettings getSettings() { + public final @Nullable CmekConfigServiceSettings getSettings() { return settings; } @@ -425,7 +426,7 @@ public final UnaryCallable updateCmekConfigC * it exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CmekConfig getCmekConfig(CmekConfigName name) { + public final CmekConfig getCmekConfig(@Nullable CmekConfigName name) { GetCmekConfigRequest request = GetCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCmekConfig(request); @@ -544,7 +545,7 @@ public final UnaryCallable getCmekConfigCallab * regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCmekConfigsResponse listCmekConfigs(LocationName parent) { + public final ListCmekConfigsResponse listCmekConfigs(@Nullable LocationName parent) { ListCmekConfigsRequest request = ListCmekConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -665,7 +666,7 @@ public final ListCmekConfigsResponse listCmekConfigs(ListCmekConfigsRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCmekConfigAsync( - CmekConfigName name) { + @Nullable CmekConfigName name) { DeleteCmekConfigRequest request = DeleteCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCmekConfigAsync(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java index 4eacb65964ca..7d1cdfc958b1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,7 +208,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); } @@ -227,7 +228,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CmekConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java index 8705d8ed9214..2090d9401572 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -234,7 +235,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -282,7 +283,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java index 2a359e289144..d09297e511aa 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -277,7 +278,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceClient.java index fda91cbbc5b6..239535742b94 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceClient.java @@ -35,6 +35,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. /** @@ -229,7 +230,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -269,7 +270,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -312,7 +313,8 @@ public ControlServiceStub getStub() { *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(DataStoreName parent, Control control, String controlId) { + public final Control createControl( + @Nullable DataStoreName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -356,7 +358,8 @@ public final Control createControl(DataStoreName parent, Control control, String *

This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(EngineName parent, Control control, String controlId) { + public final Control createControl( + @Nullable EngineName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -512,7 +515,7 @@ public final UnaryCallable createControlCallable( * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -747,7 +750,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -871,7 +874,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(DataStoreName parent) { + public final ListControlsPagedResponse listControls(@Nullable DataStoreName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -905,7 +908,7 @@ public final ListControlsPagedResponse listControls(DataStoreName parent) { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(EngineName parent) { + public final ListControlsPagedResponse listControls(@Nullable EngineName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1119,8 +1122,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -1130,14 +1133,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1151,7 +1154,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1161,7 +1165,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceSettings.java index cc174a1a2c3f..80746a3c6e3e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java index a7e0935e3478..005f39eef30c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java @@ -36,6 +36,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. /** @@ -393,7 +394,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -436,7 +437,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } @@ -477,7 +478,7 @@ public ConversationalSearchServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConverseConversationResponse converseConversation( - ConversationName name, TextInput query) { + @Nullable ConversationName name, TextInput query) { ConverseConversationRequest request = ConverseConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -644,7 +645,8 @@ public final ConverseConversationResponse converseConversation( * @param conversation Required. The conversation to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation createConversation(DataStoreName parent, Conversation conversation) { + public final Conversation createConversation( + @Nullable DataStoreName parent, Conversation conversation) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -793,7 +795,7 @@ public final UnaryCallable createConver * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1043,7 +1045,7 @@ public final UnaryCallable updateConver * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -1172,7 +1174,7 @@ public final UnaryCallable getConversation * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(DataStoreName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable DataStoreName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1518,7 +1520,7 @@ public final UnaryCallable answerQueryC * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Answer getAnswer(AnswerName name) { + public final Answer getAnswer(@Nullable AnswerName name) { GetAnswerRequest request = GetAnswerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnswer(request); @@ -1648,7 +1650,7 @@ public final UnaryCallable getAnswerCallable() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1795,7 +1797,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -2038,7 +2040,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -2167,7 +2169,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2391,8 +2393,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -2402,14 +2405,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2424,7 +2429,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2434,7 +2439,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -2467,8 +2472,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -2478,14 +2483,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2499,7 +2504,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2509,7 +2515,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java index bd828bcefebb..e577fd4efc01 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -255,7 +256,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java index 5564cc043d27..12214e4ed5c4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClient.java @@ -39,6 +39,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. /** @@ -232,7 +233,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataStoreServiceClient implements BackgroundResource { - private final DataStoreServiceSettings settings; + private final @Nullable DataStoreServiceSettings settings; private final DataStoreServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -280,7 +281,7 @@ protected DataStoreServiceClient(DataStoreServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataStoreServiceSettings getSettings() { + public final @Nullable DataStoreServiceSettings getSettings() { return settings; } @@ -343,7 +344,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataStoreAsync( - CollectionName parent, DataStore dataStore, String dataStoreId) { + @Nullable CollectionName parent, DataStore dataStore, String dataStoreId) { CreateDataStoreRequest request = CreateDataStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -540,7 +541,7 @@ public final UnaryCallable createDataStoreCal * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStore getDataStore(DataStoreName name) { + public final DataStore getDataStore(@Nullable DataStoreName name) { GetDataStoreRequest request = GetDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataStore(request); @@ -671,7 +672,7 @@ public final UnaryCallable getDataStoreCallable( * of whether or not this data store exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStoresPagedResponse listDataStores(CollectionName parent) { + public final ListDataStoresPagedResponse listDataStores(@Nullable CollectionName parent) { ListDataStoresRequest request = ListDataStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -853,7 +854,7 @@ public final ListDataStoresPagedResponse listDataStores(ListDataStoresRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDataStoreAsync( - DataStoreName name) { + @Nullable DataStoreName name) { DeleteDataStoreRequest request = DeleteDataStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataStoreAsync(request); @@ -1146,8 +1147,8 @@ public static class ListDataStoresPage ListDataStoresRequest, ListDataStoresResponse, DataStore, ListDataStoresPage> { private ListDataStoresPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { super(context, response); } @@ -1157,14 +1158,14 @@ private static ListDataStoresPage createEmptyPage() { @Override protected ListDataStoresPage createPage( - PageContext context, - ListDataStoresResponse response) { + @Nullable PageContext context, + @Nullable ListDataStoresResponse response) { return new ListDataStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1178,7 +1179,8 @@ public static class ListDataStoresFixedSizeCollection ListDataStoresPage, ListDataStoresFixedSizeCollection> { - private ListDataStoresFixedSizeCollection(List pages, int collectionSize) { + private ListDataStoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1188,7 +1190,7 @@ private static ListDataStoresFixedSizeCollection createEmptyCollection() { @Override protected ListDataStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceSettings.java index 612086a67e38..d2aab15dc558 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java index 6a1d4f7588bf..a6044ccfcaf4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java @@ -39,6 +39,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. /** @@ -282,7 +283,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DocumentServiceClient implements BackgroundResource { - private final DocumentServiceSettings settings; + private final @Nullable DocumentServiceSettings settings; private final DocumentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -330,7 +331,7 @@ protected DocumentServiceClient(DocumentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentServiceSettings getSettings() { + public final @Nullable DocumentServiceSettings getSettings() { return settings; } @@ -385,7 +386,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document getDocument(DocumentName name) { + public final Document getDocument(@Nullable DocumentName name) { GetDocumentRequest request = GetDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDocument(request); @@ -518,7 +519,7 @@ public final UnaryCallable getDocumentCallable() { * whether or not this branch exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(BranchName parent) { + public final ListDocumentsPagedResponse listDocuments(@Nullable BranchName parent) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -715,7 +716,8 @@ public final UnaryCallable listDocu * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Document createDocument(BranchName parent, Document document, String documentId) { + public final Document createDocument( + @Nullable BranchName parent, Document document, String documentId) { CreateDocumentRequest request = CreateDocumentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -969,7 +971,7 @@ public final UnaryCallable updateDocumentCallab * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDocument(DocumentName name) { + public final void deleteDocument(@Nullable DocumentName name) { DeleteDocumentRequest request = DeleteDocumentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDocument(request); @@ -1368,7 +1370,8 @@ public final UnaryCallable purgeDocumentsCalla * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata(BranchName parent) { + public final BatchGetDocumentsMetadataResponse batchGetDocumentsMetadata( + @Nullable BranchName parent) { BatchGetDocumentsMetadataRequest request = BatchGetDocumentsMetadataRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1537,8 +1540,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1548,14 +1551,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1569,7 +1572,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1579,7 +1583,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java index 64b7754e98da..03d9f432664c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java index 5357e993707c..4a4c12cdc906 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java @@ -43,6 +43,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. /** @@ -328,7 +329,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EngineServiceClient implements BackgroundResource { - private final EngineServiceSettings settings; + private final @Nullable EngineServiceSettings settings; private final EngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -376,7 +377,7 @@ protected EngineServiceClient(EngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EngineServiceSettings getSettings() { + public final @Nullable EngineServiceSettings getSettings() { return settings; } @@ -432,7 +433,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEngineAsync( - CollectionName parent, Engine engine, String engineId) { + @Nullable CollectionName parent, Engine engine, String engineId) { CreateEngineRequest request = CreateEngineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -602,7 +603,8 @@ public final UnaryCallable createEngineCallable( * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEngineAsync(EngineName name) { + public final OperationFuture deleteEngineAsync( + @Nullable EngineName name) { DeleteEngineRequest request = DeleteEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEngineAsync(request); @@ -845,7 +847,7 @@ public final UnaryCallable updateEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine getEngine(EngineName name) { + public final Engine getEngine(@Nullable EngineName name) { GetEngineRequest request = GetEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEngine(request); @@ -961,7 +963,7 @@ public final UnaryCallable getEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnginesPagedResponse listEngines(CollectionName parent) { + public final ListEnginesPagedResponse listEngines(@Nullable CollectionName parent) { ListEnginesRequest request = ListEnginesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1131,7 +1133,7 @@ public final UnaryCallable listEnginesC * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine pauseEngine(EngineName name) { + public final Engine pauseEngine(@Nullable EngineName name) { PauseEngineRequest request = PauseEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseEngine(request); @@ -1251,7 +1253,7 @@ public final UnaryCallable pauseEngineCallable() { * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Engine resumeEngine(EngineName name) { + public final Engine resumeEngine(@Nullable EngineName name) { ResumeEngineRequest request = ResumeEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeEngine(request); @@ -1372,7 +1374,7 @@ public final UnaryCallable resumeEngineCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture tuneEngineAsync( - EngineName name) { + @Nullable EngineName name) { TuneEngineRequest request = TuneEngineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return tuneEngineAsync(request); @@ -1526,7 +1528,7 @@ public final UnaryCallable tuneEngineCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1660,7 +1662,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1842,8 +1844,8 @@ public static class ListEnginesPage extends AbstractPage { private ListEnginesPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { super(context, response); } @@ -1853,14 +1855,14 @@ private static ListEnginesPage createEmptyPage() { @Override protected ListEnginesPage createPage( - PageContext context, - ListEnginesResponse response) { + @Nullable PageContext context, + @Nullable ListEnginesResponse response) { return new ListEnginesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1874,7 +1876,8 @@ public static class ListEnginesFixedSizeCollection ListEnginesPage, ListEnginesFixedSizeCollection> { - private ListEnginesFixedSizeCollection(List pages, int collectionSize) { + private ListEnginesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1884,7 +1887,7 @@ private static ListEnginesFixedSizeCollection createEmptyCollection() { @Override protected ListEnginesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnginesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java index 8d1e305eada6..6dc672569791 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -247,7 +248,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); } @@ -267,7 +268,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java index b8e6b060737f..8d4feb811739 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java @@ -37,6 +37,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. /** @@ -211,7 +212,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EvaluationServiceClient implements BackgroundResource { - private final EvaluationServiceSettings settings; + private final @Nullable EvaluationServiceSettings settings; private final EvaluationServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -259,7 +260,7 @@ protected EvaluationServiceClient(EvaluationServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EvaluationServiceSettings getSettings() { + public final @Nullable EvaluationServiceSettings getSettings() { return settings; } @@ -312,7 +313,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -434,7 +435,7 @@ public final UnaryCallable getEvaluationCallab * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable LocationName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -607,7 +608,7 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEvaluationAsync( - LocationName parent, Evaluation evaluation) { + @Nullable LocationName parent, Evaluation evaluation) { CreateEvaluationRequest request = CreateEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -775,7 +776,8 @@ public final UnaryCallable createEvaluationC * `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) { + public final ListEvaluationResultsPagedResponse listEvaluationResults( + @Nullable EvaluationName evaluation) { ListEvaluationResultsRequest request = ListEvaluationResultsRequest.newBuilder() .setEvaluation(evaluation == null ? null : evaluation.toString()) @@ -992,8 +994,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -1003,14 +1005,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1025,7 +1027,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1035,7 +1037,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -1076,12 +1078,13 @@ public static class ListEvaluationResultsPage ListEvaluationResultsPage> { private ListEvaluationResultsPage( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { super(context, response); } @@ -1091,18 +1094,20 @@ private static ListEvaluationResultsPage createEmptyPage() { @Override protected ListEvaluationResultsPage createPage( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> context, - ListEvaluationResultsResponse response) { + @Nullable ListEvaluationResultsResponse response) { return new ListEvaluationResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEvaluationResultsRequest, ListEvaluationResultsResponse, ListEvaluationResultsResponse.EvaluationResult> @@ -1121,7 +1126,7 @@ public static class ListEvaluationResultsFixedSizeCollection ListEvaluationResultsFixedSizeCollection> { private ListEvaluationResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1131,7 +1136,7 @@ private static ListEvaluationResultsFixedSizeCollection createEmptyCollection() @Override protected ListEvaluationResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationResultsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java index bb07598215b1..b4dd66771280 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -209,7 +210,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); } @@ -229,7 +230,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EvaluationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceClient.java index 94995d5524cd..16707d776d8a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceClient.java @@ -26,6 +26,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. /** @@ -167,7 +168,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GroundedGenerationServiceClient implements BackgroundResource { - private final GroundedGenerationServiceSettings settings; + private final @Nullable GroundedGenerationServiceSettings settings; private final GroundedGenerationServiceStub stub; /** Constructs an instance of GroundedGenerationServiceClient with default settings. */ @@ -209,7 +210,7 @@ protected GroundedGenerationServiceClient(GroundedGenerationServiceStub stub) { this.stub = stub; } - public final GroundedGenerationServiceSettings getSettings() { + public final @Nullable GroundedGenerationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceSettings.java index 14a2c84b38bf..350f81321140 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GroundedGenerationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java index 5b506c038070..01b4505f809f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java @@ -38,6 +38,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. /** @@ -259,7 +260,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IdentityMappingStoreServiceClient implements BackgroundResource { - private final IdentityMappingStoreServiceSettings settings; + private final @Nullable IdentityMappingStoreServiceSettings settings; private final IdentityMappingStoreServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -310,7 +311,7 @@ protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IdentityMappingStoreServiceSettings getSettings() { + public final @Nullable IdentityMappingStoreServiceSettings getSettings() { return settings; } @@ -367,7 +368,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IdentityMappingStore createIdentityMappingStore( - LocationName parent, + @Nullable LocationName parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) { CreateIdentityMappingStoreRequest request = @@ -513,7 +514,8 @@ public final IdentityMappingStore createIdentityMappingStore( * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IdentityMappingStore getIdentityMappingStore(IdentityMappingStoreName name) { + public final IdentityMappingStore getIdentityMappingStore( + @Nullable IdentityMappingStoreName name) { GetIdentityMappingStoreRequest request = GetIdentityMappingStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -643,7 +645,7 @@ public final IdentityMappingStore getIdentityMappingStore( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteIdentityMappingStoreAsync(IdentityMappingStoreName name) { + deleteIdentityMappingStoreAsync(@Nullable IdentityMappingStoreName name) { DeleteIdentityMappingStoreRequest request = DeleteIdentityMappingStoreRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1136,7 +1138,7 @@ public final ListIdentityMappingsPagedResponse listIdentityMappings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores( - LocationName parent) { + @Nullable LocationName parent) { ListIdentityMappingStoresRequest request = ListIdentityMappingStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1352,9 +1354,11 @@ public static class ListIdentityMappingsPage ListIdentityMappingsPage> { private ListIdentityMappingsPage( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, - ListIdentityMappingsResponse response) { + @Nullable ListIdentityMappingsResponse response) { super(context, response); } @@ -1364,15 +1368,19 @@ private static ListIdentityMappingsPage createEmptyPage() { @Override protected ListIdentityMappingsPage createPage( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, - ListIdentityMappingsResponse response) { + @Nullable ListIdentityMappingsResponse response) { return new ListIdentityMappingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1388,7 +1396,7 @@ public static class ListIdentityMappingsFixedSizeCollection ListIdentityMappingsFixedSizeCollection> { private ListIdentityMappingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1398,7 +1406,7 @@ private static ListIdentityMappingsFixedSizeCollection createEmptyCollection() { @Override protected ListIdentityMappingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIdentityMappingsFixedSizeCollection(pages, collectionSize); } } @@ -1439,12 +1447,13 @@ public static class ListIdentityMappingStoresPage ListIdentityMappingStoresPage> { private ListIdentityMappingStoresPage( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> context, - ListIdentityMappingStoresResponse response) { + @Nullable ListIdentityMappingStoresResponse response) { super(context, response); } @@ -1454,18 +1463,20 @@ private static ListIdentityMappingStoresPage createEmptyPage() { @Override protected ListIdentityMappingStoresPage createPage( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> context, - ListIdentityMappingStoresResponse response) { + @Nullable ListIdentityMappingStoresResponse response) { return new ListIdentityMappingStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> @@ -1484,7 +1495,7 @@ public static class ListIdentityMappingStoresFixedSizeCollection ListIdentityMappingStoresFixedSizeCollection> { private ListIdentityMappingStoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1494,7 +1505,7 @@ private static ListIdentityMappingStoresFixedSizeCollection createEmptyCollectio @Override protected ListIdentityMappingStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIdentityMappingStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java index 0ec0b4d0b262..1a27d4c9fb25 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -261,7 +262,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); } @@ -282,7 +283,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IdentityMappingStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java index 6819d3959e5c..00458c564171 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java @@ -34,6 +34,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. /** @@ -247,7 +248,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LicenseConfigServiceClient implements BackgroundResource { - private final LicenseConfigServiceSettings settings; + private final @Nullable LicenseConfigServiceSettings settings; private final LicenseConfigServiceStub stub; /** Constructs an instance of LicenseConfigServiceClient with default settings. */ @@ -287,7 +288,7 @@ protected LicenseConfigServiceClient(LicenseConfigServiceStub stub) { this.stub = stub; } - public final LicenseConfigServiceSettings getSettings() { + public final @Nullable LicenseConfigServiceSettings getSettings() { return settings; } @@ -330,7 +331,7 @@ public LicenseConfigServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LicenseConfig createLicenseConfig( - LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) { + @Nullable LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) { CreateLicenseConfigRequest request = CreateLicenseConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -578,7 +579,7 @@ public final LicenseConfig updateLicenseConfig(UpdateLicenseConfigRequest reques * not exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LicenseConfig getLicenseConfig(LicenseConfigName name) { + public final LicenseConfig getLicenseConfig(@Nullable LicenseConfigName name) { GetLicenseConfigRequest request = GetLicenseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLicenseConfig(request); @@ -705,7 +706,7 @@ public final UnaryCallable getLicenseCon * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLicenseConfigsPagedResponse listLicenseConfigs(LocationName parent) { + public final ListLicenseConfigsPagedResponse listLicenseConfigs(@Nullable LocationName parent) { ListLicenseConfigsRequest request = ListLicenseConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -904,7 +905,7 @@ public final ListLicenseConfigsPagedResponse listLicenseConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DistributeLicenseConfigResponse distributeLicenseConfig( - BillingAccountLicenseConfigName billingAccountLicenseConfig, + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, @@ -1100,8 +1101,8 @@ public final DistributeLicenseConfigResponse distributeLicenseConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetractLicenseConfigResponse retractLicenseConfig( - BillingAccountLicenseConfigName billingAccountLicenseConfig, - LicenseConfigName licenseConfig, + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, + @Nullable LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) { RetractLicenseConfigRequest request = @@ -1158,7 +1159,7 @@ public final RetractLicenseConfigResponse retractLicenseConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetractLicenseConfigResponse retractLicenseConfig( - BillingAccountLicenseConfigName billingAccountLicenseConfig, + @Nullable BillingAccountLicenseConfigName billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount) { @@ -1218,7 +1219,7 @@ public final RetractLicenseConfigResponse retractLicenseConfig( */ public final RetractLicenseConfigResponse retractLicenseConfig( String billingAccountLicenseConfig, - LicenseConfigName licenseConfig, + @Nullable LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) { RetractLicenseConfigRequest request = @@ -1430,8 +1431,9 @@ public static class ListLicenseConfigsPage ListLicenseConfigsPage> { private ListLicenseConfigsPage( - PageContext context, - ListLicenseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListLicenseConfigsResponse response) { super(context, response); } @@ -1441,14 +1443,16 @@ private static ListLicenseConfigsPage createEmptyPage() { @Override protected ListLicenseConfigsPage createPage( - PageContext context, - ListLicenseConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListLicenseConfigsResponse response) { return new ListLicenseConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1463,7 +1467,7 @@ public static class ListLicenseConfigsFixedSizeCollection ListLicenseConfigsFixedSizeCollection> { private ListLicenseConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1473,7 +1477,7 @@ private static ListLicenseConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListLicenseConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLicenseConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java index ce68234940ce..ac56a6ac7ba1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,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); } @@ -206,7 +207,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LicenseConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java index 3dae15596257..9196ba76b750 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java @@ -29,6 +29,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. /** @@ -140,7 +141,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProjectServiceClient implements BackgroundResource { - private final ProjectServiceSettings settings; + private final @Nullable ProjectServiceSettings settings; private final ProjectServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -188,7 +189,7 @@ protected ProjectServiceClient(ProjectServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProjectServiceSettings getSettings() { + public final @Nullable ProjectServiceSettings getSettings() { return settings; } @@ -241,7 +242,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture provisionProjectAsync( - ProjectName name) { + @Nullable ProjectName name) { ProvisionProjectRequest request = ProvisionProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return provisionProjectAsync(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceSettings.java index 6159d21d3303..8bc8bd008103 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceClient.java index 6323c6d7f1e7..09e32cab2af8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceClient.java @@ -25,6 +25,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. /** @@ -137,7 +138,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RankServiceClient implements BackgroundResource { - private final RankServiceSettings settings; + private final @Nullable RankServiceSettings settings; private final RankServiceStub stub; /** Constructs an instance of RankServiceClient with default settings. */ @@ -176,7 +177,7 @@ protected RankServiceClient(RankServiceStub stub) { this.stub = stub; } - public final RankServiceSettings getSettings() { + public final @Nullable RankServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceSettings.java index 8e8cebacd268..33044bf340a6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RankServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java index 91137ac43017..05b23110e1bd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClient.java @@ -25,6 +25,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RecommendationServiceClient implements BackgroundResource { - private final RecommendationServiceSettings settings; + private final @Nullable RecommendationServiceSettings settings; private final RecommendationServiceStub stub; /** Constructs an instance of RecommendationServiceClient with default settings. */ @@ -185,7 +186,7 @@ protected RecommendationServiceClient(RecommendationServiceStub stub) { this.stub = stub; } - public final RecommendationServiceSettings getSettings() { + public final @Nullable RecommendationServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java index c044e375624b..2e47dfb53c8d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecommendationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java index cf5fbd85cb35..09ab0771d820 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceClient.java @@ -39,6 +39,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. /** @@ -245,7 +246,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SampleQueryServiceClient implements BackgroundResource { - private final SampleQueryServiceSettings settings; + private final @Nullable SampleQueryServiceSettings settings; private final SampleQueryServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -293,7 +294,7 @@ protected SampleQueryServiceClient(SampleQueryServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SampleQueryServiceSettings getSettings() { + public final @Nullable SampleQueryServiceSettings getSettings() { return settings; } @@ -347,7 +348,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SampleQuery getSampleQuery(SampleQueryName name) { + public final SampleQuery getSampleQuery(@Nullable SampleQueryName name) { GetSampleQueryRequest request = GetSampleQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSampleQuery(request); @@ -479,7 +480,8 @@ public final UnaryCallable getSampleQueryCal * is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSampleQueriesPagedResponse listSampleQueries(SampleQuerySetName parent) { + public final ListSampleQueriesPagedResponse listSampleQueries( + @Nullable SampleQuerySetName parent) { ListSampleQueriesRequest request = ListSampleQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -671,7 +673,7 @@ public final ListSampleQueriesPagedResponse listSampleQueries(ListSampleQueriesR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SampleQuery createSampleQuery( - SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { + @Nullable SampleQuerySetName parent, SampleQuery sampleQuery, String sampleQueryId) { CreateSampleQueryRequest request = CreateSampleQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -919,7 +921,7 @@ public final UnaryCallable updateSampleQu * exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSampleQuery(SampleQueryName name) { + public final void deleteSampleQuery(@Nullable SampleQueryName name) { DeleteSampleQueryRequest request = DeleteSampleQueryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1189,8 +1191,9 @@ public static class ListSampleQueriesPage ListSampleQueriesRequest, ListSampleQueriesResponse, SampleQuery, ListSampleQueriesPage> { private ListSampleQueriesPage( - PageContext context, - ListSampleQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSampleQueriesResponse response) { super(context, response); } @@ -1200,14 +1203,16 @@ private static ListSampleQueriesPage createEmptyPage() { @Override protected ListSampleQueriesPage createPage( - PageContext context, - ListSampleQueriesResponse response) { + @Nullable PageContext + context, + @Nullable ListSampleQueriesResponse response) { return new ListSampleQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1222,7 +1227,7 @@ public static class ListSampleQueriesFixedSizeCollection ListSampleQueriesFixedSizeCollection> { private ListSampleQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1232,7 +1237,7 @@ private static ListSampleQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSampleQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSampleQueriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java index 104f9e5c4952..8548fb848337 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SampleQueryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java index a0730fd8170d..f44ea6233220 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceClient.java @@ -35,6 +35,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. /** @@ -226,7 +227,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SampleQuerySetServiceClient implements BackgroundResource { - private final SampleQuerySetServiceSettings settings; + private final @Nullable SampleQuerySetServiceSettings settings; private final SampleQuerySetServiceStub stub; /** Constructs an instance of SampleQuerySetServiceClient with default settings. */ @@ -266,7 +267,7 @@ protected SampleQuerySetServiceClient(SampleQuerySetServiceStub stub) { this.stub = stub; } - public final SampleQuerySetServiceSettings getSettings() { + public final @Nullable SampleQuerySetServiceSettings getSettings() { return settings; } @@ -304,7 +305,7 @@ public SampleQuerySetServiceStub getStub() { * does not exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SampleQuerySet getSampleQuerySet(SampleQuerySetName name) { + public final SampleQuerySet getSampleQuerySet(@Nullable SampleQuerySetName name) { GetSampleQuerySetRequest request = GetSampleQuerySetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -436,7 +437,7 @@ public final UnaryCallable getSampleQu * regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSampleQuerySetsPagedResponse listSampleQuerySets(LocationName parent) { + public final ListSampleQuerySetsPagedResponse listSampleQuerySets(@Nullable LocationName parent) { ListSampleQuerySetsRequest request = ListSampleQuerySetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -632,7 +633,7 @@ public final ListSampleQuerySetsPagedResponse listSampleQuerySets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SampleQuerySet createSampleQuerySet( - LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { + @Nullable LocationName parent, SampleQuerySet sampleQuerySet, String sampleQuerySetId) { CreateSampleQuerySetRequest request = CreateSampleQuerySetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -890,7 +891,7 @@ public final SampleQuerySet updateSampleQuerySet(UpdateSampleQuerySetRequest req * does not exist, a `NOT_FOUND` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSampleQuerySet(SampleQuerySetName name) { + public final void deleteSampleQuerySet(@Nullable SampleQuerySetName name) { DeleteSampleQuerySetRequest request = DeleteSampleQuerySetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1057,9 +1058,10 @@ public static class ListSampleQuerySetsPage ListSampleQuerySetsPage> { private ListSampleQuerySetsPage( - PageContext + @Nullable + PageContext context, - ListSampleQuerySetsResponse response) { + @Nullable ListSampleQuerySetsResponse response) { super(context, response); } @@ -1069,15 +1071,17 @@ private static ListSampleQuerySetsPage createEmptyPage() { @Override protected ListSampleQuerySetsPage createPage( - PageContext + @Nullable + PageContext context, - ListSampleQuerySetsResponse response) { + @Nullable ListSampleQuerySetsResponse response) { return new ListSampleQuerySetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1093,7 +1097,7 @@ public static class ListSampleQuerySetsFixedSizeCollection ListSampleQuerySetsFixedSizeCollection> { private ListSampleQuerySetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1103,7 +1107,7 @@ private static ListSampleQuerySetsFixedSizeCollection createEmptyCollection() { @Override protected ListSampleQuerySetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSampleQuerySetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java index ad1978efb5c3..689162357ce2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SampleQuerySetServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java index b94ff7a1d574..c21f47eb6792 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClient.java @@ -38,6 +38,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. /** @@ -223,7 +224,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { - private final SchemaServiceSettings settings; + private final @Nullable SchemaServiceSettings settings; private final SchemaServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -271,7 +272,7 @@ protected SchemaServiceClient(SchemaServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SchemaServiceSettings getSettings() { + public final @Nullable SchemaServiceSettings getSettings() { return settings; } @@ -320,7 +321,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema getSchema(SchemaName name) { + public final Schema getSchema(@Nullable SchemaName name) { GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchema(request); @@ -442,7 +443,7 @@ public final UnaryCallable getSchemaCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemasPagedResponse listSchemas(DataStoreName parent) { + public final ListSchemasPagedResponse listSchemas(@Nullable DataStoreName parent) { ListSchemasRequest request = ListSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -624,7 +625,7 @@ public final UnaryCallable listSchemasC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSchemaAsync( - DataStoreName parent, Schema schema, String schemaId) { + @Nullable DataStoreName parent, Schema schema, String schemaId) { CreateSchemaRequest request = CreateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -889,7 +890,8 @@ public final UnaryCallable updateSchemaCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSchemaAsync(SchemaName name) { + public final OperationFuture deleteSchemaAsync( + @Nullable SchemaName name) { DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSchemaAsync(request); @@ -1075,8 +1077,8 @@ public static class ListSchemasPage extends AbstractPage { private ListSchemasPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { super(context, response); } @@ -1086,14 +1088,14 @@ private static ListSchemasPage createEmptyPage() { @Override protected ListSchemasPage createPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { return new ListSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1107,7 +1109,8 @@ public static class ListSchemasFixedSizeCollection ListSchemasPage, ListSchemasFixedSizeCollection> { - private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + private ListSchemasFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1117,7 +1120,7 @@ private static ListSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemasFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java index 81098f58feda..85173debb5a5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java index 45cd86353e09..aae1a4c0ce23 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java @@ -33,6 +33,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. /** @@ -208,7 +209,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -248,7 +249,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -832,8 +833,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -843,14 +844,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -864,7 +865,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -874,7 +875,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } @@ -906,8 +907,8 @@ public static class SearchLitePage SearchRequest, SearchResponse, SearchResponse.SearchResult, SearchLitePage> { private SearchLitePage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -917,14 +918,14 @@ private static SearchLitePage createEmptyPage() { @Override protected SearchLitePage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchLitePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -938,7 +939,8 @@ public static class SearchLiteFixedSizeCollection SearchLitePage, SearchLiteFixedSizeCollection> { - private SearchLiteFixedSizeCollection(List pages, int collectionSize) { + private SearchLiteFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -948,7 +950,7 @@ private static SearchLiteFixedSizeCollection createEmptyCollection() { @Override protected SearchLiteFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchLiteFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java index 5c3c5f475bfe..a22a1415bca2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java index 3f7f3d4671ee..c75e4937ba0e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java @@ -29,6 +29,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. /** @@ -157,7 +158,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchTuningServiceClient implements BackgroundResource { - private final SearchTuningServiceSettings settings; + private final @Nullable SearchTuningServiceSettings settings; private final SearchTuningServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -205,7 +206,7 @@ protected SearchTuningServiceClient(SearchTuningServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SearchTuningServiceSettings getSettings() { + public final @Nullable SearchTuningServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java index d17797798c81..96c74192b694 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchTuningServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java index ba9d80caeaec..797ef214570b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java @@ -35,6 +35,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. /** @@ -236,7 +237,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -276,7 +277,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } @@ -324,7 +325,7 @@ public ServingConfigServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig createServingConfig( - DataStoreName parent, ServingConfig servingConfig, String servingConfigId) { + @Nullable DataStoreName parent, ServingConfig servingConfig, String servingConfigId) { CreateServingConfigRequest request = CreateServingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -373,7 +374,7 @@ public final ServingConfig createServingConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig createServingConfig( - EngineName parent, ServingConfig servingConfig, String servingConfigId) { + @Nullable EngineName parent, ServingConfig servingConfig, String servingConfigId) { CreateServingConfigRequest request = CreateServingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -544,7 +545,7 @@ public final ServingConfig createServingConfig(CreateServingConfigRequest reques * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServingConfig(ServingConfigName name) { + public final void deleteServingConfig(@Nullable ServingConfigName name) { DeleteServingConfigRequest request = DeleteServingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -789,7 +790,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig getServingConfig(ServingConfigName name) { + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServingConfig(request); @@ -923,7 +924,7 @@ public final UnaryCallable getServingCon * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable DataStoreName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -957,7 +958,7 @@ public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName pa * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(EngineName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable EngineName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1180,8 +1181,9 @@ public static class ListServingConfigsPage ListServingConfigsPage> { private ListServingConfigsPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { super(context, response); } @@ -1191,14 +1193,16 @@ private static ListServingConfigsPage createEmptyPage() { @Override protected ListServingConfigsPage createPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { return new ListServingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1213,7 +1217,7 @@ public static class ListServingConfigsFixedSizeCollection ListServingConfigsFixedSizeCollection> { private ListServingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1223,7 +1227,7 @@ private static ListServingConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServingConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java index 6b794d7cfc8b..3e1b70ce2a0f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java index 317371c772e8..d5bea287352b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java @@ -35,6 +35,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. /** @@ -224,7 +225,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SessionServiceClient implements BackgroundResource { - private final SessionServiceSettings settings; + private final @Nullable SessionServiceSettings settings; private final SessionServiceStub stub; /** Constructs an instance of SessionServiceClient with default settings. */ @@ -264,7 +265,7 @@ protected SessionServiceClient(SessionServiceStub stub) { this.stub = stub; } - public final SessionServiceSettings getSettings() { + public final @Nullable SessionServiceSettings getSettings() { return settings; } @@ -300,7 +301,7 @@ public SessionServiceStub getStub() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DataStoreName parent, Session session) { + public final Session createSession(@Nullable DataStoreName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -442,7 +443,7 @@ public final UnaryCallable createSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -676,7 +677,7 @@ public final UnaryCallable updateSessionCallable( * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -800,7 +801,7 @@ public final UnaryCallable getSessionCallable() { * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DataStoreName parent) { + public final ListSessionsPagedResponse listSessions(@Nullable DataStoreName parent) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1015,8 +1016,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1026,14 +1027,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1047,7 +1048,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1057,7 +1059,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceSettings.java index b95e9d41846a..d32aba57aee9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SessionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClient.java index f7c5344544b4..e6bbf6f6b33a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClient.java @@ -38,6 +38,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. /** @@ -400,7 +401,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SiteSearchEngineServiceClient implements BackgroundResource { - private final SiteSearchEngineServiceSettings settings; + private final @Nullable SiteSearchEngineServiceSettings settings; private final SiteSearchEngineServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -449,7 +450,7 @@ protected SiteSearchEngineServiceClient(SiteSearchEngineServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SiteSearchEngineServiceSettings getSettings() { + public final @Nullable SiteSearchEngineServiceSettings getSettings() { return settings; } @@ -502,7 +503,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * whether or not it exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SiteSearchEngine getSiteSearchEngine(SiteSearchEngineName name) { + public final SiteSearchEngine getSiteSearchEngine(@Nullable SiteSearchEngineName name) { GetSiteSearchEngineRequest request = GetSiteSearchEngineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -641,7 +642,7 @@ public final SiteSearchEngine getSiteSearchEngine(GetSiteSearchEngineRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTargetSiteAsync( - SiteSearchEngineName parent, TargetSite targetSite) { + @Nullable SiteSearchEngineName parent, TargetSite targetSite) { CreateTargetSiteRequest request = CreateTargetSiteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -928,7 +929,7 @@ public final UnaryCallable createTargetSiteC * exist, a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TargetSite getTargetSite(TargetSiteName name) { + public final TargetSite getTargetSite(@Nullable TargetSiteName name) { GetTargetSiteRequest request = GetTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTargetSite(request); @@ -1189,7 +1190,7 @@ public final UnaryCallable updateTargetSiteC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTargetSiteAsync( - TargetSiteName name) { + @Nullable TargetSiteName name) { DeleteTargetSiteRequest request = DeleteTargetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTargetSiteAsync(request); @@ -1362,7 +1363,7 @@ public final UnaryCallable deleteTargetSiteC * returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTargetSitesPagedResponse listTargetSites(SiteSearchEngineName parent) { + public final ListTargetSitesPagedResponse listTargetSites(@Nullable SiteSearchEngineName parent) { ListTargetSitesRequest request = ListTargetSitesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1555,7 +1556,7 @@ public final ListTargetSitesPagedResponse listTargetSites(ListTargetSitesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSitemapAsync( - SiteSearchEngineName parent, Sitemap sitemap) { + @Nullable SiteSearchEngineName parent, Sitemap sitemap) { CreateSitemapRequest request = CreateSitemapRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1732,7 +1733,8 @@ public final UnaryCallable createSitemapCallabl * a NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSitemapAsync(SitemapName name) { + public final OperationFuture deleteSitemapAsync( + @Nullable SitemapName name) { DeleteSitemapRequest request = DeleteSitemapRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSitemapAsync(request); @@ -1900,7 +1902,7 @@ public final UnaryCallable deleteSitemapCallabl * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchSitemapsResponse fetchSitemaps(SiteSearchEngineName parent) { + public final FetchSitemapsResponse fetchSitemaps(@Nullable SiteSearchEngineName parent) { FetchSitemapsRequest request = FetchSitemapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2616,8 +2618,8 @@ public static class ListTargetSitesPage ListTargetSitesRequest, ListTargetSitesResponse, TargetSite, ListTargetSitesPage> { private ListTargetSitesPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { super(context, response); } @@ -2627,14 +2629,14 @@ private static ListTargetSitesPage createEmptyPage() { @Override protected ListTargetSitesPage createPage( - PageContext context, - ListTargetSitesResponse response) { + @Nullable PageContext context, + @Nullable ListTargetSitesResponse response) { return new ListTargetSitesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2649,7 +2651,7 @@ public static class ListTargetSitesFixedSizeCollection ListTargetSitesFixedSizeCollection> { private ListTargetSitesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2659,7 +2661,7 @@ private static ListTargetSitesFixedSizeCollection createEmptyCollection() { @Override protected ListTargetSitesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTargetSitesFixedSizeCollection(pages, collectionSize); } } @@ -2701,12 +2703,13 @@ public static class FetchDomainVerificationStatusPage FetchDomainVerificationStatusPage> { private FetchDomainVerificationStatusPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { super(context, response); } @@ -2716,18 +2719,20 @@ private static FetchDomainVerificationStatusPage createEmptyPage() { @Override protected FetchDomainVerificationStatusPage createPage( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> context, - FetchDomainVerificationStatusResponse response) { + @Nullable FetchDomainVerificationStatusResponse response) { return new FetchDomainVerificationStatusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchDomainVerificationStatusRequest, FetchDomainVerificationStatusResponse, TargetSite> @@ -2746,7 +2751,7 @@ public static class FetchDomainVerificationStatusFixedSizeCollection FetchDomainVerificationStatusFixedSizeCollection> { private FetchDomainVerificationStatusFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2756,7 +2761,7 @@ private static FetchDomainVerificationStatusFixedSizeCollection createEmptyColle @Override protected FetchDomainVerificationStatusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchDomainVerificationStatusFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceSettings.java index 385fa1aff460..2b7e967b57cb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -352,7 +353,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); } @@ -373,7 +374,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SiteSearchEngineServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java index a97118deefa6..63a47a023009 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -191,7 +192,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -239,7 +240,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java index c017ac3f9d9a..35fe21cadc1b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,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); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java index bb2fa774ed40..1647482719f4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java @@ -37,6 +37,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. /** @@ -185,7 +186,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserLicenseServiceClient implements BackgroundResource { - private final UserLicenseServiceSettings settings; + private final @Nullable UserLicenseServiceSettings settings; private final UserLicenseServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -233,7 +234,7 @@ protected UserLicenseServiceClient(UserLicenseServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserLicenseServiceSettings getSettings() { + public final @Nullable UserLicenseServiceSettings getSettings() { return settings; } @@ -283,7 +284,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/userStores/{user_store_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserLicensesPagedResponse listUserLicenses(UserStoreName parent) { + public final ListUserLicensesPagedResponse listUserLicenses(@Nullable UserStoreName parent) { ListUserLicensesRequest request = ListUserLicensesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -459,7 +460,7 @@ public final ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats( - UserStoreName parent) { + @Nullable UserStoreName parent) { ListLicenseConfigsUsageStatsRequest request = ListLicenseConfigsUsageStatsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -715,8 +716,9 @@ public static class ListUserLicensesPage ListUserLicensesRequest, ListUserLicensesResponse, UserLicense, ListUserLicensesPage> { private ListUserLicensesPage( - PageContext context, - ListUserLicensesResponse response) { + @Nullable PageContext + context, + @Nullable ListUserLicensesResponse response) { super(context, response); } @@ -726,14 +728,16 @@ private static ListUserLicensesPage createEmptyPage() { @Override protected ListUserLicensesPage createPage( - PageContext context, - ListUserLicensesResponse response) { + @Nullable PageContext + context, + @Nullable ListUserLicensesResponse response) { return new ListUserLicensesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -748,7 +752,7 @@ public static class ListUserLicensesFixedSizeCollection ListUserLicensesFixedSizeCollection> { private ListUserLicensesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -758,7 +762,7 @@ private static ListUserLicensesFixedSizeCollection createEmptyCollection() { @Override protected ListUserLicensesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserLicensesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java index d85a84c7f99d..ca66675806dc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,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); } @@ -228,7 +229,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserLicenseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java index 71681ef9dbe0..de9a1e09924e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java @@ -26,6 +26,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. /** @@ -156,7 +157,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserStoreServiceClient implements BackgroundResource { - private final UserStoreServiceSettings settings; + private final @Nullable UserStoreServiceSettings settings; private final UserStoreServiceStub stub; /** Constructs an instance of UserStoreServiceClient with default settings. */ @@ -196,7 +197,7 @@ protected UserStoreServiceClient(UserStoreServiceStub stub) { this.stub = stub; } - public final UserStoreServiceSettings getSettings() { + public final @Nullable UserStoreServiceSettings getSettings() { return settings; } @@ -226,7 +227,7 @@ public UserStoreServiceStub getStub() { * `projects/{project}/locations/{location}/userStores/{user_store_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserStore getUserStore(UserStoreName name) { + public final UserStore getUserStore(@Nullable UserStoreName name) { GetUserStoreRequest request = GetUserStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUserStore(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java index d6fbeb5a7599..c319ada5bb24 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java index f334519e432d..fae3aab027f4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java index 503c015bba8d..17d6e9e8b488 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -427,7 +428,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamAssistSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java index 14dfb93e71e8..525b8c483ddb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java @@ -33,6 +33,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class CmekConfigServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java index d05598c43fc5..28e372d460ff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -293,7 +294,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); } @@ -362,7 +363,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateCmekConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java index 8013c94c4c87..382239c66582 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java @@ -42,6 +42,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java index b3d9f74741b7..af8dc108e233 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -373,7 +374,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); } @@ -488,7 +489,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java index 0fbb2b93eab2..70231503336d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java index 40f789e8daa3..b02d06b9bc21 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -451,7 +452,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); } @@ -553,7 +554,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); converseConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStub.java index c9dc909e8558..0e3d241c5997 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStub.java @@ -36,6 +36,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class DataStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java index ef2a5518e767..28f3efabc7e4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -362,7 +363,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); } @@ -435,7 +436,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java index d19c35729c54..122eb70ee228 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java index 0788a14ad2bb..b1328bf5310c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -391,7 +392,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); } @@ -496,7 +497,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java index ad8c5e86f5e4..3a497ffa001c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class EngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java index a83d2b68cea3..d076d356fbf3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -405,7 +406,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); } @@ -487,7 +488,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java index 02395d4d33d7..360aa00f6a4e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStub.java @@ -35,6 +35,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class EvaluationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java index 0aa593bbfda4..07b84dc3875d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -428,7 +429,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); } @@ -518,7 +519,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java index 49716bc37b7c..975748628145 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java @@ -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. /** @@ -241,7 +242,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); } @@ -315,7 +316,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamGenerateGroundedContentSettings = StreamingCallSettings.newBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java index a4ebaae8a77f..c007801284fe 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class IdentityMappingStoreServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java index 2c19e21eb077..6f9b31b7d4d8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -508,7 +509,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); } @@ -605,7 +606,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIdentityMappingStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java index e54433e28840..e040ce37a252 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -337,7 +338,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); } @@ -409,7 +410,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStub.java index 03326f2844f7..3976d257f6c9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class ProjectServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java index 7cc59767971f..4631734996dc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -258,7 +259,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); } @@ -326,7 +327,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); provisionProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java index d713010dd14e..f00ea8267961 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -281,7 +282,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); rankSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java index 39692ae51f2f..77f46b22d3a5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -284,7 +285,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); recommendSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java index 82fd00270f33..3c5d40c1398e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SampleQueryServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java index f702fb92aa42..1dfc3c7a6602 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -372,7 +373,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); } @@ -458,7 +459,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSampleQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java index 34120e45944e..93336c7f9e22 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -327,7 +328,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); } @@ -407,7 +408,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSampleQuerySetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java index 88323a2efe8c..a95aa6157fc2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SchemaServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java index 8b729382105a..961e8d533ce0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -368,7 +369,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); } @@ -450,7 +451,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java index 6f3e8407ddf5..a73c184ac656 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java index 068219a2aa61..1ac2d7553153 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class SearchTuningServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java index 07239874da58..837127f14c75 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,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); } @@ -332,7 +333,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); trainCustomModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java index 3a9f8456792e..3e5c82ed94c9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -392,7 +393,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java index 744102d78130..7d2e129a35fe 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,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); } @@ -385,7 +386,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStub.java index 700028ca7eda..ef5478215313 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStub.java @@ -64,6 +64,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,11 +77,12 @@ @Generated("by gapic-generator-java") public abstract class SiteSearchEngineServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java index 11f577bff49d..1afdf7498a1e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java @@ -97,6 +97,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -638,7 +639,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); } @@ -786,7 +787,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSiteSearchEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java index 618fdf6cf741..5ecdac5d08b6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStub.java @@ -34,6 +34,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java index 2300b0680dc5..674eeb0742cd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -296,7 +297,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); } @@ -391,7 +392,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java index 54f6ece1b9ab..9f26280b44b4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class UserLicenseServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java index 6e5856668a94..9d3aa0f327cd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,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); } @@ -428,7 +429,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listUserLicensesSettings = PagedCallSettings.newBuilder(LIST_USER_LICENSES_PAGE_STR_FACT); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java index 45c15fce64f6..8e27909d6567 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getUserStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerName.java index 6d100b74b754..b5970c6c5d12 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AnswerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -262,7 +263,7 @@ public static String formatProjectLocationCollectionEngineSessionAnswerName( .toString(); } - public static AnswerName parse(String formattedString) { + public static @Nullable AnswerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -307,7 +308,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnswerName> values) { List list = new ArrayList<>(values.size()); for (AnswerName value : values) { if (value == null) { @@ -369,7 +370,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantName.java index ee69a917c059..efbd543c29bb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/AssistantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static AssistantName parse(String formattedString) { + public static @Nullable AssistantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssistantName> values) { List list = new ArrayList<>(values.size()); for (AssistantName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java index ffa843f697f9..03c18bd4e8c1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/BranchName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreBranchName( .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigName.java index 6f9a6697be2a..568888f5fd14 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CmekConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationCmekConfigName( .toString(); } - public static CmekConfigName parse(String formattedString) { + public static @Nullable CmekConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmekConfigName> values) { List list = new ArrayList<>(values.size()); for (CmekConfigName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionName.java index 0d4832a371ec..dc6dcb02d039 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collection) .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlName.java index 52e29b495d69..9379bbb8fad5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ControlName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -223,7 +224,7 @@ public static String formatProjectLocationCollectionEngineControlName( .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -264,7 +265,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -323,7 +324,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java index 6929592d6f02..8c8eb473ef1a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineConversationName( .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java index e885bf7ef1ae..24a368b9a3ad 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DataStoreName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static DataStoreName parse(String formattedString) { + public static @Nullable DataStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataStoreName> values) { List list = new ArrayList<>(values.size()); for (DataStoreName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java index 76879da20952..76d22bf33640 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationCollectionDataStoreBranchDocumentName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -235,7 +236,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -293,7 +294,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineName.java index dfab86e639f1..9a0125a35137 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/EngineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String collection, .toString(); } - public static EngineName parse(String formattedString) { + public static @Nullable EngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EngineName> values) { List list = new ArrayList<>(values.size()); for (EngineName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundingConfigName.java index 7210a1c7ec3b..89f588564cb3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/GroundingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String groundingCon .toString(); } - public static GroundingConfigName parse(String formattedString) { + public static @Nullable GroundingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroundingConfigName> values) { List list = new ArrayList<>(values.size()); for (GroundingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreName.java index f88b6942bdc5..a74287cbd916 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/IdentityMappingStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String identityMapp .toString(); } - public static IdentityMappingStoreName parse(String formattedString) { + public static @Nullable IdentityMappingStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IdentityMappingStoreName> values) { List list = new ArrayList<>(values.size()); for (IdentityMappingStoreName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java index f59fc2f87a32..1ad29a9c6808 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectName.java index 381863a3d3e5..d107435090b6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingConfigName.java index ef9ea546f05c..0ca7a766a78c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/RankingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String rankingConfi .toString(); } - public static RankingConfigName parse(String formattedString) { + public static @Nullable RankingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RankingConfigName> values) { List list = new ArrayList<>(values.size()); for (RankingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java index 5dbc97aef975..e281883efd34 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SchemaName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreSchemaName( .toString(); } - public static SchemaName parse(String formattedString) { + public static @Nullable SchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaName> values) { List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java index ea1de087e959..e0e716c6d631 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ServingConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineServingConfigName( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java index 34c3cb1a90a3..0959c0688b0e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -223,7 +224,7 @@ public static String formatProjectLocationCollectionEngineSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -264,7 +265,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -323,7 +324,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineName.java index ea2d0a1399ec..08bf4b6bdd45 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SiteSearchEngineName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static SiteSearchEngineName parse(String formattedString) { + public static @Nullable SiteSearchEngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -180,7 +181,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SiteSearchEngineName> values) { List list = new ArrayList<>(values.size()); for (SiteSearchEngineName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SitemapName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SitemapName.java index d8ddedbbb6e4..da4755bf7eba 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SitemapName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/SitemapName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreSitemapName( .toString(); } - public static SitemapName parse(String formattedString) { + public static @Nullable SitemapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SitemapName> values) { List list = new ArrayList<>(values.size()); for (SitemapName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TargetSiteName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TargetSiteName.java index 51bf2bd288e6..dac2fbff4901 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TargetSiteName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/TargetSiteName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatProjectLocationCollectionDataStoreTargetSiteName( .toString(); } - public static TargetSiteName parse(String formattedString) { + public static @Nullable TargetSiteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -208,7 +209,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TargetSiteName> values) { List list = new ArrayList<>(values.size()); for (TargetSiteName value : values) { if (value == null) { @@ -263,7 +264,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreName.java index c904f179db82..311d36837ba6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/UserStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String userStore) { .toString(); } - public static UserStoreName parse(String formattedString) { + public static @Nullable UserStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserStoreName> values) { List list = new ArrayList<>(values.size()); for (UserStoreName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java index 07fd9afea466..eefd41cb3b0e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AclConfigName parse(String formattedString) { + public static @Nullable AclConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AclConfigName> values) { List list = new ArrayList<>(values.size()); for (AclConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AnswerName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AnswerName.java index 4980df06ccc1..a78beb0fc867 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AnswerName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AnswerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -262,7 +263,7 @@ public static String formatProjectLocationCollectionEngineSessionAnswerName( .toString(); } - public static AnswerName parse(String formattedString) { + public static @Nullable AnswerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -307,7 +308,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnswerName> values) { List list = new ArrayList<>(values.size()); for (AnswerName value : values) { if (value == null) { @@ -369,7 +370,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java index 54c6c296bb94..5fd3b81113c2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BranchName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreBranchName( .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java index 1f024dbd7798..f7d18b56540f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -236,7 +237,7 @@ public static String formatProjectLocationCollectionDataStoreBranchDocumentChunk .toString(); } - public static ChunkName parse(String formattedString) { + public static @Nullable ChunkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -274,7 +275,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChunkName> values) { List list = new ArrayList<>(values.size()); for (ChunkName value : values) { if (value == null) { @@ -335,7 +336,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectionName.java index 00235b6e9ba7..1c0460c9987f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collection) .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlName.java index 466051d224f0..e791e07d5f7b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ControlName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -223,7 +224,7 @@ public static String formatProjectLocationCollectionEngineControlName( .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -264,7 +265,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -323,7 +324,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java index a9ff7970338b..44a62a77fa60 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineConversationName( .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java index 9c81935a538d..bed33c1ff8be 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static DataStoreName parse(String formattedString) { + public static @Nullable DataStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataStoreName> values) { List list = new ArrayList<>(values.size()); for (DataStoreName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java index 54cea7eae31e..f6d188634582 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationCollectionDataStoreBranchDocumentName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -235,7 +236,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -293,7 +294,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java index 7d37cf3d43e0..9ee0997da985 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static DocumentProcessingConfigName parse(String formattedString) { + public static @Nullable DocumentProcessingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -180,7 +181,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentProcessingConfigName> values) { List list = new ArrayList<>(values.size()); for (DocumentProcessingConfigName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineName.java index ddfb80c4fc46..4577efe3c5f5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String collection, .toString(); } - public static EngineName parse(String formattedString) { + public static @Nullable EngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EngineName> values) { List list = new ArrayList<>(values.size()); for (EngineName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java index 4b05672c028d..dea3ddba74a7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String evaluation) .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundingConfigName.java index d3da300e8c29..df7045fdbc2f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GroundingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String groundingCon .toString(); } - public static GroundingConfigName parse(String formattedString) { + public static @Nullable GroundingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroundingConfigName> values) { List list = new ArrayList<>(values.size()); for (GroundingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java index 44ff29213b48..5a1bdea789c5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectName.java index 91b0bec5ce2e..228c731149cd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankingConfigName.java index 2fbeeebc55ca..12885e76f263 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RankingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String rankingConfi .toString(); } - public static RankingConfigName parse(String formattedString) { + public static @Nullable RankingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RankingConfigName> values) { List list = new ArrayList<>(values.size()); for (RankingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java index 7dd6c2a928c3..5f6ff5509278 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQueryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SampleQueryName parse(String formattedString) { + public static @Nullable SampleQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SampleQueryName> values) { List list = new ArrayList<>(values.size()); for (SampleQueryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java index ad647231d22c..814b57942866 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SampleQuerySetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String sampleQueryS .toString(); } - public static SampleQuerySetName parse(String formattedString) { + public static @Nullable SampleQuerySetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SampleQuerySetName> values) { List list = new ArrayList<>(values.size()); for (SampleQuerySetName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java index 105c1b8c7bf6..e6c6d15daf89 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreSchemaName( .toString(); } - public static SchemaName parse(String formattedString) { + public static @Nullable SchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaName> values) { List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java index 29be653fcc10..0f4f5f5eac14 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineServingConfigName( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionName.java index e20ac18efea3..3fcf8ba97b92 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -223,7 +224,7 @@ public static String formatProjectLocationCollectionEngineSessionName( .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -264,7 +265,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -323,7 +324,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java index 14c5ee7552fa..aad7f710c018 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static SiteSearchEngineName parse(String formattedString) { + public static @Nullable SiteSearchEngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -180,7 +181,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SiteSearchEngineName> values) { List list = new ArrayList<>(values.size()); for (SiteSearchEngineName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteName.java index 1866ff83d85e..137437d973cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatProjectLocationCollectionDataStoreTargetSiteName( .toString(); } - public static TargetSiteName parse(String formattedString) { + public static @Nullable TargetSiteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -208,7 +209,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TargetSiteName> values) { List list = new ArrayList<>(values.size()); for (TargetSiteName value : values) { if (value == null) { @@ -263,7 +264,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java index aee36bce4311..24cd986db11c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AclConfigName parse(String formattedString) { + public static @Nullable AclConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AclConfigName> values) { List list = new ArrayList<>(values.size()); for (AclConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerName.java index b9ba15a0b5bf..f05ef9a30abd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -262,7 +263,7 @@ public static String formatProjectLocationCollectionEngineSessionAnswerName( .toString(); } - public static AnswerName parse(String formattedString) { + public static @Nullable AnswerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -307,7 +308,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnswerName> values) { List list = new ArrayList<>(values.size()); for (AnswerName value : values) { if (value == null) { @@ -369,7 +370,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java index 43c7bd801c4d..c75e0c7e2f92 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static AssistantName parse(String formattedString) { + public static @Nullable AssistantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssistantName> values) { List list = new ArrayList<>(values.size()); for (AssistantName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java index f67627bdc607..038156e47ad5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -82,7 +83,7 @@ public static String format(String billingAccount, String billingAccountLicenseC .toString(); } - public static BillingAccountLicenseConfigName parse(String formattedString) { + public static @Nullable BillingAccountLicenseConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -101,7 +102,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountLicenseConfigName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountLicenseConfigName value : values) { if (value == null) { @@ -150,7 +151,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java index ed9dea1bb05b..699827ee99b5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BranchName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreBranchName( .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java index 11ceddf2060f..023c71a1a94c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationCmekConfigName( .toString(); } - public static CmekConfigName parse(String formattedString) { + public static @Nullable CmekConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmekConfigName> values) { List list = new ArrayList<>(values.size()); for (CmekConfigName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectionName.java index 31e36c22529a..6cba4def1f53 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collection) .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionConfigName.java index 97f1db61e42f..61c957c065f8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -197,7 +198,7 @@ public static String formatProjectLocationCollectionEngineName( .toString(); } - public static CompletionConfigName parse(String formattedString) { + public static @Nullable CompletionConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -232,7 +233,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompletionConfigName> values) { List list = new ArrayList<>(values.size()); for (CompletionConfigName value : values) { if (value == null) { @@ -288,7 +289,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlName.java index 66459362d6bc..4e83173f39c4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -223,7 +224,7 @@ public static String formatProjectLocationCollectionEngineControlName( .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -264,7 +265,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -323,7 +324,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java index f882c107578e..fc8ac569ca64 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineConversationName( .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java index 0aedc959d802..18e1fa3fd175 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static DataStoreName parse(String formattedString) { + public static @Nullable DataStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataStoreName> values) { List list = new ArrayList<>(values.size()); for (DataStoreName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java index 3dfffa0af27b..77e2b093f102 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationCollectionDataStoreBranchDocumentName( .toString(); } - public static DocumentName parse(String formattedString) { + public static @Nullable DocumentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -235,7 +236,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DocumentName> values) { List list = new ArrayList<>(values.size()); for (DocumentName value : values) { if (value == null) { @@ -293,7 +294,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineName.java index 10db29bef18b..75bf43c14860 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String collection, .toString(); } - public static EngineName parse(String formattedString) { + public static @Nullable EngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EngineName> values) { List list = new ArrayList<>(values.size()); for (EngineName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java index ec5311a0e405..15ee120e2f31 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String evaluation) .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingConfigName.java index 8cb91a794728..a1e314d10d81 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String groundingCon .toString(); } - public static GroundingConfigName parse(String formattedString) { + public static @Nullable GroundingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroundingConfigName> values) { List list = new ArrayList<>(values.size()); for (GroundingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java index 812c9874096c..b1382db3a4a4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String identityMapp .toString(); } - public static IdentityMappingStoreName parse(String formattedString) { + public static @Nullable IdentityMappingStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IdentityMappingStoreName> values) { List list = new ArrayList<>(values.size()); for (IdentityMappingStoreName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java index 0c47c471bd9c..32e49ea80f1d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String licenseConfi .toString(); } - public static LicenseConfigName parse(String formattedString) { + public static @Nullable LicenseConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LicenseConfigName> values) { List list = new ArrayList<>(values.size()); for (LicenseConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java index 801aaa74e919..8e3bdc46a608 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectName.java index a423a6cc0a8b..f45412d191d6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingConfigName.java index 4fc3a423d7f8..25c35e76819c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String rankingConfi .toString(); } - public static RankingConfigName parse(String formattedString) { + public static @Nullable RankingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RankingConfigName> values) { List list = new ArrayList<>(values.size()); for (RankingConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java index a505e75dc0c7..3b6b3b58bb80 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SampleQueryName parse(String formattedString) { + public static @Nullable SampleQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SampleQueryName> values) { List list = new ArrayList<>(values.size()); for (SampleQueryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java index 93833f0f35c4..94cb351f46cc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String sampleQueryS .toString(); } - public static SampleQuerySetName parse(String formattedString) { + public static @Nullable SampleQuerySetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SampleQuerySetName> values) { List list = new ArrayList<>(values.size()); for (SampleQuerySetName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java index 37c860c27e27..70a756cc13c1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreSchemaName( .toString(); } - public static SchemaName parse(String formattedString) { + public static @Nullable SchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaName> values) { List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java index e94eaa1485e4..c626409f25ff 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -225,7 +226,7 @@ public static String formatProjectLocationCollectionEngineServingConfigName( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -267,7 +268,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -326,7 +327,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java index 4dc2743bb64e..c02a7719174b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -287,7 +288,7 @@ public static String formatProjectLocationCollectionEngineCollaborativeProjectSe .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -339,7 +340,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -403,7 +404,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineName.java index f1c298cf57d0..fb4f5530f9e3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectLocationCollectionDataStoreName( .toString(); } - public static SiteSearchEngineName parse(String formattedString) { + public static @Nullable SiteSearchEngineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -180,7 +181,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SiteSearchEngineName> values) { List list = new ArrayList<>(values.size()); for (SiteSearchEngineName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SitemapName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SitemapName.java index 8d714ceaf408..f0c67bc52b2a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SitemapName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SitemapName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationCollectionDataStoreSitemapName( .toString(); } - public static SitemapName parse(String formattedString) { + public static @Nullable SitemapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SitemapName> values) { List list = new ArrayList<>(values.size()); for (SitemapName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteName.java index 6717ff57c220..ad9175c02ac4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatProjectLocationCollectionDataStoreTargetSiteName( .toString(); } - public static TargetSiteName parse(String formattedString) { + public static @Nullable TargetSiteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -208,7 +209,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TargetSiteName> values) { List list = new ArrayList<>(values.size()); for (TargetSiteName value : values) { if (value == null) { @@ -263,7 +264,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java index c2fb8f5f596b..fd8e5d62600d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String userStore) { .toString(); } - public static UserStoreName parse(String formattedString) { + public static @Nullable UserStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserStoreName> values) { List list = new ArrayList<>(values.size()); for (UserStoreName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java index 516a8ea6ce2a..216f732050ac 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerClient.java @@ -43,6 +43,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. /** @@ -552,7 +553,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EdgeContainerClient implements BackgroundResource { - private final EdgeContainerSettings settings; + private final @Nullable EdgeContainerSettings settings; private final EdgeContainerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -600,7 +601,7 @@ protected EdgeContainerClient(EdgeContainerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EdgeContainerSettings getSettings() { + public final @Nullable EdgeContainerSettings getSettings() { return settings; } @@ -648,7 +649,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent location, which owns this collection of clusters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -814,7 +815,7 @@ public final UnaryCallable listCluste * @param name Required. The resource name of the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -927,7 +928,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1218,7 +1219,7 @@ public final UnaryCallable updateClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeClusterAsync( - ClusterName name, String targetVersion, UpgradeClusterRequest.Schedule schedule) { + @Nullable ClusterName name, String targetVersion, UpgradeClusterRequest.Schedule schedule) { UpgradeClusterRequest request = UpgradeClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1378,7 +1379,8 @@ public final UnaryCallable upgradeClusterCalla * @param name Required. The resource name of the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1519,7 +1521,7 @@ public final UnaryCallable deleteClusterCallabl * @param cluster Required. The resource name of the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateAccessTokenResponse generateAccessToken(ClusterName cluster) { + public final GenerateAccessTokenResponse generateAccessToken(@Nullable ClusterName cluster) { GenerateAccessTokenRequest request = GenerateAccessTokenRequest.newBuilder() .setCluster(cluster == null ? null : cluster.toString()) @@ -1633,7 +1635,8 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken * @param cluster Required. The resource name of the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateOfflineCredentialResponse generateOfflineCredential(ClusterName cluster) { + public final GenerateOfflineCredentialResponse generateOfflineCredential( + @Nullable ClusterName cluster) { GenerateOfflineCredentialRequest request = GenerateOfflineCredentialRequest.newBuilder() .setCluster(cluster == null ? null : cluster.toString()) @@ -1751,7 +1754,7 @@ public final GenerateOfflineCredentialResponse generateOfflineCredential( * @param parent Required. The parent cluster, which owns this collection of node pools. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodePoolsPagedResponse listNodePools(ClusterName parent) { + public final ListNodePoolsPagedResponse listNodePools(@Nullable ClusterName parent) { ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1917,7 +1920,7 @@ public final UnaryCallable listNode * @param name Required. The resource name of the node pool. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NodePool getNodePool(NodePoolName name) { + public final NodePool getNodePool(@Nullable NodePoolName name) { GetNodePoolRequest request = GetNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNodePool(request); @@ -2034,7 +2037,7 @@ public final UnaryCallable getNodePoolCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNodePoolAsync( - ClusterName parent, NodePool nodePool, String nodePoolId) { + @Nullable ClusterName parent, NodePool nodePool, String nodePoolId) { CreateNodePoolRequest request = CreateNodePoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2322,7 +2325,8 @@ public final UnaryCallable updateNodePoolCalla * @param name Required. The resource name of the node pool. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNodePoolAsync(NodePoolName name) { + public final OperationFuture deleteNodePoolAsync( + @Nullable NodePoolName name) { DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNodePoolAsync(request); @@ -2470,7 +2474,7 @@ public final UnaryCallable deleteNodePoolCalla * @param parent Required. The parent site, which owns this collection of machines. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMachinesPagedResponse listMachines(LocationName parent) { + public final ListMachinesPagedResponse listMachines(@Nullable LocationName parent) { ListMachinesRequest request = ListMachinesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2636,7 +2640,7 @@ public final UnaryCallable listMachin * @param name Required. The resource name of the machine. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Machine getMachine(MachineName name) { + public final Machine getMachine(@Nullable MachineName name) { GetMachineRequest request = GetMachineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMachine(request); @@ -2746,7 +2750,7 @@ public final UnaryCallable getMachineCallable() { * @param parent Required. The parent location, which owns this collection of VPN connections. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVpnConnectionsPagedResponse listVpnConnections(LocationName parent) { + public final ListVpnConnectionsPagedResponse listVpnConnections(@Nullable LocationName parent) { ListVpnConnectionsRequest request = ListVpnConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2916,7 +2920,7 @@ public final ListVpnConnectionsPagedResponse listVpnConnections( * @param name Required. The resource name of the vpn connection. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VpnConnection getVpnConnection(VpnConnectionName name) { + public final VpnConnection getVpnConnection(@Nullable VpnConnectionName name) { GetVpnConnectionRequest request = GetVpnConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVpnConnection(request); @@ -3035,7 +3039,7 @@ public final UnaryCallable getVpnConnect * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpnConnectionAsync( - LocationName parent, VpnConnection vpnConnection, String vpnConnectionId) { + @Nullable LocationName parent, VpnConnection vpnConnection, String vpnConnectionId) { CreateVpnConnectionRequest request = CreateVpnConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3201,7 +3205,7 @@ public final UnaryCallable createVpnConne * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpnConnectionAsync( - VpnConnectionName name) { + @Nullable VpnConnectionName name) { DeleteVpnConnectionRequest request = DeleteVpnConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3350,7 +3354,7 @@ public final UnaryCallable deleteVpnConne * the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerConfig getServerConfig(LocationName name) { + public final ServerConfig getServerConfig(@Nullable LocationName name) { GetServerConfigRequest request = GetServerConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServerConfig(request); @@ -3652,8 +3656,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -3663,14 +3667,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3684,7 +3688,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3694,7 +3699,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -3728,8 +3733,8 @@ public static class ListNodePoolsPage ListNodePoolsRequest, ListNodePoolsResponse, NodePool, ListNodePoolsPage> { private ListNodePoolsPage( - PageContext context, - ListNodePoolsResponse response) { + @Nullable PageContext context, + @Nullable ListNodePoolsResponse response) { super(context, response); } @@ -3739,14 +3744,14 @@ private static ListNodePoolsPage createEmptyPage() { @Override protected ListNodePoolsPage createPage( - PageContext context, - ListNodePoolsResponse response) { + @Nullable PageContext context, + @Nullable ListNodePoolsResponse response) { return new ListNodePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3760,7 +3765,8 @@ public static class ListNodePoolsFixedSizeCollection ListNodePoolsPage, ListNodePoolsFixedSizeCollection> { - private ListNodePoolsFixedSizeCollection(List pages, int collectionSize) { + private ListNodePoolsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3770,7 +3776,7 @@ private static ListNodePoolsFixedSizeCollection createEmptyCollection() { @Override protected ListNodePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodePoolsFixedSizeCollection(pages, collectionSize); } } @@ -3803,8 +3809,8 @@ public static class ListMachinesPage extends AbstractPage { private ListMachinesPage( - PageContext context, - ListMachinesResponse response) { + @Nullable PageContext context, + @Nullable ListMachinesResponse response) { super(context, response); } @@ -3814,14 +3820,14 @@ private static ListMachinesPage createEmptyPage() { @Override protected ListMachinesPage createPage( - PageContext context, - ListMachinesResponse response) { + @Nullable PageContext context, + @Nullable ListMachinesResponse response) { return new ListMachinesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3835,7 +3841,8 @@ public static class ListMachinesFixedSizeCollection ListMachinesPage, ListMachinesFixedSizeCollection> { - private ListMachinesFixedSizeCollection(List pages, int collectionSize) { + private ListMachinesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3845,7 +3852,7 @@ private static ListMachinesFixedSizeCollection createEmptyCollection() { @Override protected ListMachinesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMachinesFixedSizeCollection(pages, collectionSize); } } @@ -3882,8 +3889,9 @@ public static class ListVpnConnectionsPage ListVpnConnectionsPage> { private ListVpnConnectionsPage( - PageContext context, - ListVpnConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListVpnConnectionsResponse response) { super(context, response); } @@ -3893,14 +3901,16 @@ private static ListVpnConnectionsPage createEmptyPage() { @Override protected ListVpnConnectionsPage createPage( - PageContext context, - ListVpnConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListVpnConnectionsResponse response) { return new ListVpnConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3915,7 +3925,7 @@ public static class ListVpnConnectionsFixedSizeCollection ListVpnConnectionsFixedSizeCollection> { private ListVpnConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3925,7 +3935,7 @@ private static ListVpnConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListVpnConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVpnConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -3959,8 +3969,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3970,14 +3980,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3991,7 +4001,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4001,7 +4012,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerSettings.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerSettings.java index 2b52c2f747e1..70d901a15091 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerSettings.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/EdgeContainerSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -353,7 +354,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); } @@ -373,7 +374,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EdgeContainerStubSettings.newBuilder(clientContext)); } diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStub.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStub.java index 723120926b5e..9dd6c18814f1 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStub.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStub.java @@ -66,6 +66,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -77,11 +78,12 @@ @Generated("by gapic-generator-java") public abstract class EdgeContainerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java index 5777b65a08c9..7e32129f512b 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/EdgeContainerStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -775,7 +776,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); } @@ -945,7 +946,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/ClusterName.java b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/ClusterName.java index 4a0003ecd367..39d923b51d36 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/ClusterName.java +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/LocationName.java b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/LocationName.java index d46cfbb928d5..35774e528064 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/LocationName.java +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/MachineName.java b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/MachineName.java index 7e06847c407c..88db6cc438d1 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/MachineName.java +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/MachineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String machine) { .toString(); } - public static MachineName parse(String formattedString) { + public static @Nullable MachineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MachineName> values) { List list = new ArrayList<>(values.size()); for (MachineName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/NodePoolName.java b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/NodePoolName.java index ddc095673154..ca1bdd9c46d1 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/NodePoolName.java +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/NodePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static NodePoolName parse(String formattedString) { + public static @Nullable NodePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodePoolName> values) { List list = new ArrayList<>(values.size()); for (NodePoolName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/VpnConnectionName.java b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/VpnConnectionName.java index 1003fc8e34d5..7b70575e571b 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/VpnConnectionName.java +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/src/main/java/com/google/cloud/edgecontainer/v1/VpnConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String vpnConnectio .toString(); } - public static VpnConnectionName parse(String formattedString) { + public static @Nullable VpnConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VpnConnectionName> values) { List list = new ArrayList<>(values.size()); for (VpnConnectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 04d37aa9aa49..da283953145b 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -136,6 +136,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. /** @@ -1292,7 +1293,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DlpServiceClient implements BackgroundResource { - private final DlpServiceSettings settings; + private final @Nullable DlpServiceSettings settings; private final DlpServiceStub stub; /** Constructs an instance of DlpServiceClient with default settings. */ @@ -1330,7 +1331,7 @@ protected DlpServiceClient(DlpServiceStub stub) { this.stub = stub; } - public final DlpServiceSettings getSettings() { + public final @Nullable DlpServiceSettings getSettings() { return settings; } @@ -1796,7 +1797,7 @@ public final UnaryCallable listInfo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InspectTemplate createInspectTemplate( - LocationName parent, InspectTemplate inspectTemplate) { + @Nullable LocationName parent, InspectTemplate inspectTemplate) { CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1841,7 +1842,7 @@ public final InspectTemplate createInspectTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InspectTemplate createInspectTemplate( - OrganizationLocationName parent, InspectTemplate inspectTemplate) { + @Nullable OrganizationLocationName parent, InspectTemplate inspectTemplate) { CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1886,7 +1887,7 @@ public final InspectTemplate createInspectTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InspectTemplate createInspectTemplate( - OrganizationName parent, InspectTemplate inspectTemplate) { + @Nullable OrganizationName parent, InspectTemplate inspectTemplate) { CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1931,7 +1932,7 @@ public final InspectTemplate createInspectTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InspectTemplate createInspectTemplate( - ProjectName parent, InspectTemplate inspectTemplate) { + @Nullable ProjectName parent, InspectTemplate inspectTemplate) { CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2084,7 +2085,7 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InspectTemplate updateInspectTemplate( - InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask) { + @Nullable InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask) { UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2232,7 +2233,7 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest * projects/project-id/inspectTemplates/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InspectTemplate getInspectTemplate(InspectTemplateName name) { + public final InspectTemplate getInspectTemplate(@Nullable InspectTemplateName name) { GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2372,7 +2373,8 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName parent) { + public final ListInspectTemplatesPagedResponse listInspectTemplates( + @Nullable LocationName parent) { ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2415,7 +2417,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInspectTemplatesPagedResponse listInspectTemplates( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2457,7 +2459,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInspectTemplatesPagedResponse listInspectTemplates(OrganizationName parent) { + public final ListInspectTemplatesPagedResponse listInspectTemplates( + @Nullable OrganizationName parent) { ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2499,7 +2502,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName parent) { + public final ListInspectTemplatesPagedResponse listInspectTemplates( + @Nullable ProjectName parent) { ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2688,7 +2692,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( * projects/project-id/inspectTemplates/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInspectTemplate(InspectTemplateName name) { + public final void deleteInspectTemplate(@Nullable InspectTemplateName name) { DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2830,7 +2834,7 @@ public final UnaryCallable deleteInspectTem * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeidentifyTemplate createDeidentifyTemplate( - LocationName parent, DeidentifyTemplate deidentifyTemplate) { + @Nullable LocationName parent, DeidentifyTemplate deidentifyTemplate) { CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2876,7 +2880,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeidentifyTemplate createDeidentifyTemplate( - OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate) { + @Nullable OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate) { CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2922,7 +2926,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeidentifyTemplate createDeidentifyTemplate( - OrganizationName parent, DeidentifyTemplate deidentifyTemplate) { + @Nullable OrganizationName parent, DeidentifyTemplate deidentifyTemplate) { CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2968,7 +2972,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeidentifyTemplate createDeidentifyTemplate( - ProjectName parent, DeidentifyTemplate deidentifyTemplate) { + @Nullable ProjectName parent, DeidentifyTemplate deidentifyTemplate) { CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3123,7 +3127,9 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeidentifyTemplate updateDeidentifyTemplate( - DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) { + @Nullable DeidentifyTemplateName name, + DeidentifyTemplate deidentifyTemplate, + FieldMask updateMask) { UpdateDeidentifyTemplateRequest request = UpdateDeidentifyTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3272,7 +3278,7 @@ public final DeidentifyTemplate updateDeidentifyTemplate( * projects/project-id/deidentifyTemplates/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName name) { + public final DeidentifyTemplate getDeidentifyTemplate(@Nullable DeidentifyTemplateName name) { GetDeidentifyTemplateRequest request = GetDeidentifyTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3413,7 +3419,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(LocationName parent) { + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( + @Nullable LocationName parent) { ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3457,7 +3464,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3501,7 +3508,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3544,7 +3551,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(ProjectName parent) { + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( + @Nullable ProjectName parent) { ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3735,7 +3743,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( * projects/project-id/deidentifyTemplates/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeidentifyTemplate(DeidentifyTemplateName name) { + public final void deleteDeidentifyTemplate(@Nullable DeidentifyTemplateName name) { DeleteDeidentifyTemplateRequest request = DeleteDeidentifyTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3873,7 +3881,7 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque * @param jobTrigger Required. The JobTrigger to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrigger) { + public final JobTrigger createJobTrigger(@Nullable LocationName parent, JobTrigger jobTrigger) { CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3914,7 +3922,7 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig * @param jobTrigger Required. The JobTrigger to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigger) { + public final JobTrigger createJobTrigger(@Nullable ProjectName parent, JobTrigger jobTrigger) { CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4055,7 +4063,7 @@ public final UnaryCallable createJobTrigger * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final JobTrigger updateJobTrigger( - JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask) { + @Nullable JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask) { UpdateJobTriggerRequest request = UpdateJobTriggerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4192,7 +4200,7 @@ public final UnaryCallable updateJobTrigger * `projects/dlp-test-project/jobTriggers/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name) { + public final HybridInspectResponse hybridInspectJobTrigger(@Nullable JobTriggerName name) { HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4320,7 +4328,7 @@ public final HybridInspectResponse hybridInspectJobTrigger( * `projects/dlp-test-project/jobTriggers/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger getJobTrigger(JobTriggerName name) { + public final JobTrigger getJobTrigger(@Nullable JobTriggerName name) { GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJobTrigger(request); @@ -4444,7 +4452,7 @@ public final UnaryCallable getJobTriggerCallab *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { + public final ListJobTriggersPagedResponse listJobTriggers(@Nullable LocationName parent) { ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4483,7 +4491,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { + public final ListJobTriggersPagedResponse listJobTriggers(@Nullable ProjectName parent) { ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4669,7 +4677,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest * `projects/dlp-test-project/jobTriggers/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJobTrigger(JobTriggerName name) { + public final void deleteJobTrigger(@Nullable JobTriggerName name) { DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJobTrigger(request); @@ -4852,7 +4860,7 @@ public final UnaryCallable activateJobTrigger * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveryConfig createDiscoveryConfig( - LocationName parent, DiscoveryConfig discoveryConfig) { + @Nullable LocationName parent, DiscoveryConfig discoveryConfig) { CreateDiscoveryConfigRequest request = CreateDiscoveryConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4991,7 +4999,7 @@ public final DiscoveryConfig createDiscoveryConfig(CreateDiscoveryConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveryConfig updateDiscoveryConfig( - DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask) { + @Nullable DiscoveryConfigName name, DiscoveryConfig discoveryConfig, FieldMask updateMask) { UpdateDiscoveryConfigRequest request = UpdateDiscoveryConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5128,7 +5136,7 @@ public final DiscoveryConfig updateDiscoveryConfig(UpdateDiscoveryConfigRequest * `projects/dlp-test-project/discoveryConfigs/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscoveryConfig getDiscoveryConfig(DiscoveryConfigName name) { + public final DiscoveryConfig getDiscoveryConfig(@Nullable DiscoveryConfigName name) { GetDiscoveryConfigRequest request = GetDiscoveryConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5253,7 +5261,8 @@ public final DiscoveryConfig getDiscoveryConfig(GetDiscoveryConfigRequest reques *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDiscoveryConfigsPagedResponse listDiscoveryConfigs(LocationName parent) { + public final ListDiscoveryConfigsPagedResponse listDiscoveryConfigs( + @Nullable LocationName parent) { ListDiscoveryConfigsRequest request = ListDiscoveryConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5426,7 +5435,7 @@ public final ListDiscoveryConfigsPagedResponse listDiscoveryConfigs( * `projects/dlp-test-project/discoveryConfigs/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDiscoveryConfig(DiscoveryConfigName name) { + public final void deleteDiscoveryConfig(@Nullable DiscoveryConfigName name) { DeleteDiscoveryConfigRequest request = DeleteDiscoveryConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5559,7 +5568,7 @@ public final UnaryCallable deleteDiscoveryC * @param inspectJob An inspection job scans a storage repository for InfoTypes. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJob) { + public final DlpJob createDlpJob(@Nullable LocationName parent, InspectJobConfig inspectJob) { CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5605,7 +5614,7 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo * table. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig riskJob) { + public final DlpJob createDlpJob(@Nullable LocationName parent, RiskAnalysisJobConfig riskJob) { CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5650,7 +5659,7 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk * @param inspectJob An inspection job scans a storage repository for InfoTypes. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob) { + public final DlpJob createDlpJob(@Nullable ProjectName parent, InspectJobConfig inspectJob) { CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5696,7 +5705,7 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob * table. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob) { + public final DlpJob createDlpJob(@Nullable ProjectName parent, RiskAnalysisJobConfig riskJob) { CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5893,7 +5902,7 @@ public final UnaryCallable createDlpJobCallable() { *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { + public final ListDlpJobsPagedResponse listDlpJobs(@Nullable LocationName parent) { ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5933,7 +5942,7 @@ public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { + public final ListDlpJobsPagedResponse listDlpJobs(@Nullable ProjectName parent) { ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6121,7 +6130,7 @@ public final UnaryCallable listDlpJobsC * @param name Required. The name of the DlpJob resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob getDlpJob(DlpJobName name) { + public final DlpJob getDlpJob(@Nullable DlpJobName name) { GetDlpJobRequest request = GetDlpJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDlpJob(request); @@ -6238,7 +6247,7 @@ public final UnaryCallable getDlpJobCallable() { * @param name Required. The name of the DlpJob resource to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDlpJob(DlpJobName name) { + public final void deleteDlpJob(@Nullable DlpJobName name) { DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDlpJob(request); @@ -6431,7 +6440,7 @@ public final UnaryCallable cancelDlpJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StoredInfoType createStoredInfoType( - LocationName parent, StoredInfoTypeConfig config) { + @Nullable LocationName parent, StoredInfoTypeConfig config) { CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6476,7 +6485,7 @@ public final StoredInfoType createStoredInfoType( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StoredInfoType createStoredInfoType( - OrganizationLocationName parent, StoredInfoTypeConfig config) { + @Nullable OrganizationLocationName parent, StoredInfoTypeConfig config) { CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6521,7 +6530,7 @@ public final StoredInfoType createStoredInfoType( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StoredInfoType createStoredInfoType( - OrganizationName parent, StoredInfoTypeConfig config) { + @Nullable OrganizationName parent, StoredInfoTypeConfig config) { CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6566,7 +6575,7 @@ public final StoredInfoType createStoredInfoType( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StoredInfoType createStoredInfoType( - ProjectName parent, StoredInfoTypeConfig config) { + @Nullable ProjectName parent, StoredInfoTypeConfig config) { CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6717,7 +6726,7 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StoredInfoType updateStoredInfoType( - StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask) { + @Nullable StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask) { UpdateStoredInfoTypeRequest request = UpdateStoredInfoTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6872,7 +6881,7 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req * projects/project-id/storedInfoTypes/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StoredInfoType getStoredInfoType(StoredInfoTypeName name) { + public final StoredInfoType getStoredInfoType(@Nullable StoredInfoTypeName name) { GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7012,7 +7021,7 @@ public final UnaryCallable getStoredIn *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName parent) { + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable LocationName parent) { ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7054,7 +7063,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7095,7 +7104,8 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationName parent) { + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( + @Nullable OrganizationName parent) { ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7136,7 +7146,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa *

parent=projects/example-project/locations/europe-west3 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName parent) { + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(@Nullable ProjectName parent) { ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7328,7 +7338,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( * projects/project-id/storedInfoTypes/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStoredInfoType(StoredInfoTypeName name) { + public final void deleteStoredInfoType(@Nullable StoredInfoTypeName name) { DeleteStoredInfoTypeRequest request = DeleteStoredInfoTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7459,7 +7469,8 @@ public final UnaryCallable deleteStoredInfoT * @param parent Required. organizations/{org_id}/locations/{loc_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProjectDataProfilesPagedResponse listProjectDataProfiles(LocationName parent) { + public final ListProjectDataProfilesPagedResponse listProjectDataProfiles( + @Nullable LocationName parent) { ListProjectDataProfilesRequest request = ListProjectDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7492,7 +7503,7 @@ public final ListProjectDataProfilesPagedResponse listProjectDataProfiles(Locati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProjectDataProfilesPagedResponse listProjectDataProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListProjectDataProfilesRequest request = ListProjectDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7667,7 +7678,8 @@ public final ListProjectDataProfilesPagedResponse listProjectDataProfiles( * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTableDataProfilesPagedResponse listTableDataProfiles(LocationName parent) { + public final ListTableDataProfilesPagedResponse listTableDataProfiles( + @Nullable LocationName parent) { ListTableDataProfilesRequest request = ListTableDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7700,7 +7712,7 @@ public final ListTableDataProfilesPagedResponse listTableDataProfiles(LocationNa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTableDataProfilesPagedResponse listTableDataProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListTableDataProfilesRequest request = ListTableDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7876,7 +7888,8 @@ public final ListTableDataProfilesPagedResponse listTableDataProfiles( * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListColumnDataProfilesPagedResponse listColumnDataProfiles(LocationName parent) { + public final ListColumnDataProfilesPagedResponse listColumnDataProfiles( + @Nullable LocationName parent) { ListColumnDataProfilesRequest request = ListColumnDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7910,7 +7923,7 @@ public final ListColumnDataProfilesPagedResponse listColumnDataProfiles(Location * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListColumnDataProfilesPagedResponse listColumnDataProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListColumnDataProfilesRequest request = ListColumnDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8086,7 +8099,7 @@ public final ListColumnDataProfilesPagedResponse listColumnDataProfiles( * `organizations/12345/locations/us/projectDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProjectDataProfile getProjectDataProfile(ProjectDataProfileName name) { + public final ProjectDataProfile getProjectDataProfile(@Nullable ProjectDataProfileName name) { GetProjectDataProfileRequest request = GetProjectDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8214,7 +8227,7 @@ public final ProjectDataProfile getProjectDataProfile(GetProjectDataProfileReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( - LocationName parent) { + @Nullable LocationName parent) { ListFileStoreDataProfilesRequest request = ListFileStoreDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8248,7 +8261,7 @@ public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFileStoreDataProfilesRequest request = ListFileStoreDataProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8425,7 +8438,7 @@ public final ListFileStoreDataProfilesPagedResponse listFileStoreDataProfiles( * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FileStoreDataProfile getFileStoreDataProfile(ProjectDataProfileName name) { + public final FileStoreDataProfile getFileStoreDataProfile(@Nullable ProjectDataProfileName name) { GetFileStoreDataProfileRequest request = GetFileStoreDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8552,7 +8565,7 @@ public final FileStoreDataProfile getFileStoreDataProfile( * @param name Required. Resource name of the file store data profile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFileStoreDataProfile(FileStoreDataProfileName name) { + public final void deleteFileStoreDataProfile(@Nullable FileStoreDataProfileName name) { DeleteFileStoreDataProfileRequest request = DeleteFileStoreDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8680,7 +8693,7 @@ public final void deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest r * `organizations/12345/locations/us/tableDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TableDataProfile getTableDataProfile(TableDataProfileName name) { + public final TableDataProfile getTableDataProfile(@Nullable TableDataProfileName name) { GetTableDataProfileRequest request = GetTableDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8806,7 +8819,7 @@ public final TableDataProfile getTableDataProfile(GetTableDataProfileRequest req * `organizations/12345/locations/us/columnDataProfiles/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ColumnDataProfile getColumnDataProfile(ColumnDataProfileName name) { + public final ColumnDataProfile getColumnDataProfile(@Nullable ColumnDataProfileName name) { GetColumnDataProfileRequest request = GetColumnDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8932,7 +8945,7 @@ public final ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest * @param name Required. Resource name of the table data profile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTableDataProfile(TableDataProfileName name) { + public final void deleteTableDataProfile(@Nullable TableDataProfileName name) { DeleteTableDataProfileRequest request = DeleteTableDataProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9060,7 +9073,7 @@ public final void deleteTableDataProfile(DeleteTableDataProfileRequest request) * `projects/dlp-test-project/dlpJob/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { + public final HybridInspectResponse hybridInspectDlpJob(@Nullable DlpJobName name) { HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9250,7 +9263,7 @@ public final UnaryCallable finishDlpJobCallable() { * @param connection Required. The connection resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection createConnection(LocationName parent, Connection connection) { + public final Connection createConnection(@Nullable LocationName parent, Connection connection) { CreateConnectionRequest request = CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9286,7 +9299,8 @@ public final Connection createConnection(LocationName parent, Connection connect * @param connection Required. The connection resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection createConnection(OrganizationLocationName parent, Connection connection) { + public final Connection createConnection( + @Nullable OrganizationLocationName parent, Connection connection) { CreateConnectionRequest request = CreateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9409,7 +9423,7 @@ public final UnaryCallable createConnection * `projects/{project}/locations/{location}/connections/{connection}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection getConnection(ConnectionName name) { + public final Connection getConnection(@Nullable ConnectionName name) { GetConnectionRequest request = GetConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnection(request); @@ -9530,7 +9544,7 @@ public final UnaryCallable getConnectionCallab * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(LocationName parent) { + public final ListConnectionsPagedResponse listConnections(@Nullable LocationName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9563,7 +9577,8 @@ public final ListConnectionsPagedResponse listConnections(LocationName parent) { * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionsPagedResponse listConnections(OrganizationLocationName parent) { + public final ListConnectionsPagedResponse listConnections( + @Nullable OrganizationLocationName parent) { ListConnectionsRequest request = ListConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9735,7 +9750,7 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest * for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchConnectionsPagedResponse searchConnections(LocationName parent) { + public final SearchConnectionsPagedResponse searchConnections(@Nullable LocationName parent) { SearchConnectionsRequest request = SearchConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9767,7 +9782,8 @@ public final SearchConnectionsPagedResponse searchConnections(LocationName paren * for example, `organizations/433245324/locations/-` or `projects/project-id/locations/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchConnectionsPagedResponse searchConnections(OrganizationLocationName parent) { + public final SearchConnectionsPagedResponse searchConnections( + @Nullable OrganizationLocationName parent) { SearchConnectionsRequest request = SearchConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9936,7 +9952,7 @@ public final SearchConnectionsPagedResponse searchConnections(SearchConnectionsR * `projects/{project}/locations/{location}/connections/{connection}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConnection(ConnectionName name) { + public final void deleteConnection(@Nullable ConnectionName name) { DeleteConnectionRequest request = DeleteConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteConnection(request); @@ -10055,7 +10071,7 @@ public final UnaryCallable deleteConnectionCalla * `projects/{project}/locations/{location}/connections/{connection}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connection updateConnection(ConnectionName name) { + public final Connection updateConnection(@Nullable ConnectionName name) { UpdateConnectionRequest request = UpdateConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return updateConnection(request); @@ -10219,9 +10235,10 @@ public static class ListInspectTemplatesPage ListInspectTemplatesPage> { private ListInspectTemplatesPage( - PageContext + @Nullable + PageContext context, - ListInspectTemplatesResponse response) { + @Nullable ListInspectTemplatesResponse response) { super(context, response); } @@ -10231,15 +10248,17 @@ private static ListInspectTemplatesPage createEmptyPage() { @Override protected ListInspectTemplatesPage createPage( - PageContext + @Nullable + PageContext context, - ListInspectTemplatesResponse response) { + @Nullable ListInspectTemplatesResponse response) { return new ListInspectTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10255,7 +10274,7 @@ public static class ListInspectTemplatesFixedSizeCollection ListInspectTemplatesFixedSizeCollection> { private ListInspectTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10265,7 +10284,7 @@ private static ListInspectTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListInspectTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInspectTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -10304,10 +10323,11 @@ public static class ListDeidentifyTemplatesPage ListDeidentifyTemplatesPage> { private ListDeidentifyTemplatesPage( - PageContext< + @Nullable + PageContext< ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse, DeidentifyTemplate> context, - ListDeidentifyTemplatesResponse response) { + @Nullable ListDeidentifyTemplatesResponse response) { super(context, response); } @@ -10317,16 +10337,18 @@ private static ListDeidentifyTemplatesPage createEmptyPage() { @Override protected ListDeidentifyTemplatesPage createPage( - PageContext< + @Nullable + PageContext< ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse, DeidentifyTemplate> context, - ListDeidentifyTemplatesResponse response) { + @Nullable ListDeidentifyTemplatesResponse response) { return new ListDeidentifyTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse, DeidentifyTemplate> context, ApiFuture futureResponse) { @@ -10343,7 +10365,7 @@ public static class ListDeidentifyTemplatesFixedSizeCollection ListDeidentifyTemplatesFixedSizeCollection> { private ListDeidentifyTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10353,7 +10375,7 @@ private static ListDeidentifyTemplatesFixedSizeCollection createEmptyCollection( @Override protected ListDeidentifyTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeidentifyTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -10387,8 +10409,8 @@ public static class ListJobTriggersPage ListJobTriggersRequest, ListJobTriggersResponse, JobTrigger, ListJobTriggersPage> { private ListJobTriggersPage( - PageContext context, - ListJobTriggersResponse response) { + @Nullable PageContext context, + @Nullable ListJobTriggersResponse response) { super(context, response); } @@ -10398,14 +10420,14 @@ private static ListJobTriggersPage createEmptyPage() { @Override protected ListJobTriggersPage createPage( - PageContext context, - ListJobTriggersResponse response) { + @Nullable PageContext context, + @Nullable ListJobTriggersResponse response) { return new ListJobTriggersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10420,7 +10442,7 @@ public static class ListJobTriggersFixedSizeCollection ListJobTriggersFixedSizeCollection> { private ListJobTriggersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10430,7 +10452,7 @@ private static ListJobTriggersFixedSizeCollection createEmptyCollection() { @Override protected ListJobTriggersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobTriggersFixedSizeCollection(pages, collectionSize); } } @@ -10468,9 +10490,10 @@ public static class ListDiscoveryConfigsPage ListDiscoveryConfigsPage> { private ListDiscoveryConfigsPage( - PageContext + @Nullable + PageContext context, - ListDiscoveryConfigsResponse response) { + @Nullable ListDiscoveryConfigsResponse response) { super(context, response); } @@ -10480,15 +10503,17 @@ private static ListDiscoveryConfigsPage createEmptyPage() { @Override protected ListDiscoveryConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListDiscoveryConfigsResponse response) { + @Nullable ListDiscoveryConfigsResponse response) { return new ListDiscoveryConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10504,7 +10529,7 @@ public static class ListDiscoveryConfigsFixedSizeCollection ListDiscoveryConfigsFixedSizeCollection> { private ListDiscoveryConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10514,7 +10539,7 @@ private static ListDiscoveryConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListDiscoveryConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiscoveryConfigsFixedSizeCollection(pages, collectionSize); } } @@ -10545,8 +10570,8 @@ public static class ListDlpJobsPage extends AbstractPage { private ListDlpJobsPage( - PageContext context, - ListDlpJobsResponse response) { + @Nullable PageContext context, + @Nullable ListDlpJobsResponse response) { super(context, response); } @@ -10556,14 +10581,14 @@ private static ListDlpJobsPage createEmptyPage() { @Override protected ListDlpJobsPage createPage( - PageContext context, - ListDlpJobsResponse response) { + @Nullable PageContext context, + @Nullable ListDlpJobsResponse response) { return new ListDlpJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10577,7 +10602,8 @@ public static class ListDlpJobsFixedSizeCollection ListDlpJobsPage, ListDlpJobsFixedSizeCollection> { - private ListDlpJobsFixedSizeCollection(List pages, int collectionSize) { + private ListDlpJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10587,7 +10613,7 @@ private static ListDlpJobsFixedSizeCollection createEmptyCollection() { @Override protected ListDlpJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDlpJobsFixedSizeCollection(pages, collectionSize); } } @@ -10625,9 +10651,10 @@ public static class ListStoredInfoTypesPage ListStoredInfoTypesPage> { private ListStoredInfoTypesPage( - PageContext + @Nullable + PageContext context, - ListStoredInfoTypesResponse response) { + @Nullable ListStoredInfoTypesResponse response) { super(context, response); } @@ -10637,15 +10664,17 @@ private static ListStoredInfoTypesPage createEmptyPage() { @Override protected ListStoredInfoTypesPage createPage( - PageContext + @Nullable + PageContext context, - ListStoredInfoTypesResponse response) { + @Nullable ListStoredInfoTypesResponse response) { return new ListStoredInfoTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10661,7 +10690,7 @@ public static class ListStoredInfoTypesFixedSizeCollection ListStoredInfoTypesFixedSizeCollection> { private ListStoredInfoTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10671,7 +10700,7 @@ private static ListStoredInfoTypesFixedSizeCollection createEmptyCollection() { @Override protected ListStoredInfoTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStoredInfoTypesFixedSizeCollection(pages, collectionSize); } } @@ -10710,10 +10739,11 @@ public static class ListProjectDataProfilesPage ListProjectDataProfilesPage> { private ListProjectDataProfilesPage( - PageContext< + @Nullable + PageContext< ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> context, - ListProjectDataProfilesResponse response) { + @Nullable ListProjectDataProfilesResponse response) { super(context, response); } @@ -10723,16 +10753,18 @@ private static ListProjectDataProfilesPage createEmptyPage() { @Override protected ListProjectDataProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> context, - ListProjectDataProfilesResponse response) { + @Nullable ListProjectDataProfilesResponse response) { return new ListProjectDataProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> context, ApiFuture futureResponse) { @@ -10749,7 +10781,7 @@ public static class ListProjectDataProfilesFixedSizeCollection ListProjectDataProfilesFixedSizeCollection> { private ListProjectDataProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10759,7 +10791,7 @@ private static ListProjectDataProfilesFixedSizeCollection createEmptyCollection( @Override protected ListProjectDataProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProjectDataProfilesFixedSizeCollection(pages, collectionSize); } } @@ -10797,9 +10829,11 @@ public static class ListTableDataProfilesPage ListTableDataProfilesPage> { private ListTableDataProfilesPage( - PageContext + @Nullable + PageContext< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile> context, - ListTableDataProfilesResponse response) { + @Nullable ListTableDataProfilesResponse response) { super(context, response); } @@ -10809,15 +10843,19 @@ private static ListTableDataProfilesPage createEmptyPage() { @Override protected ListTableDataProfilesPage createPage( - PageContext + @Nullable + PageContext< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile> context, - ListTableDataProfilesResponse response) { + @Nullable ListTableDataProfilesResponse response) { return new ListTableDataProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10833,7 +10871,7 @@ public static class ListTableDataProfilesFixedSizeCollection ListTableDataProfilesFixedSizeCollection> { private ListTableDataProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10843,7 +10881,7 @@ private static ListTableDataProfilesFixedSizeCollection createEmptyCollection() @Override protected ListTableDataProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTableDataProfilesFixedSizeCollection(pages, collectionSize); } } @@ -10882,10 +10920,11 @@ public static class ListColumnDataProfilesPage ListColumnDataProfilesPage> { private ListColumnDataProfilesPage( - PageContext< + @Nullable + PageContext< ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> context, - ListColumnDataProfilesResponse response) { + @Nullable ListColumnDataProfilesResponse response) { super(context, response); } @@ -10895,16 +10934,18 @@ private static ListColumnDataProfilesPage createEmptyPage() { @Override protected ListColumnDataProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> context, - ListColumnDataProfilesResponse response) { + @Nullable ListColumnDataProfilesResponse response) { return new ListColumnDataProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> context, ApiFuture futureResponse) { @@ -10921,7 +10962,7 @@ public static class ListColumnDataProfilesFixedSizeCollection ListColumnDataProfilesFixedSizeCollection> { private ListColumnDataProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10931,7 +10972,7 @@ private static ListColumnDataProfilesFixedSizeCollection createEmptyCollection() @Override protected ListColumnDataProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListColumnDataProfilesFixedSizeCollection(pages, collectionSize); } } @@ -10972,12 +11013,13 @@ public static class ListFileStoreDataProfilesPage ListFileStoreDataProfilesPage> { private ListFileStoreDataProfilesPage( - PageContext< + @Nullable + PageContext< ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse, FileStoreDataProfile> context, - ListFileStoreDataProfilesResponse response) { + @Nullable ListFileStoreDataProfilesResponse response) { super(context, response); } @@ -10987,18 +11029,20 @@ private static ListFileStoreDataProfilesPage createEmptyPage() { @Override protected ListFileStoreDataProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse, FileStoreDataProfile> context, - ListFileStoreDataProfilesResponse response) { + @Nullable ListFileStoreDataProfilesResponse response) { return new ListFileStoreDataProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFileStoreDataProfilesRequest, ListFileStoreDataProfilesResponse, FileStoreDataProfile> @@ -11017,7 +11061,7 @@ public static class ListFileStoreDataProfilesFixedSizeCollection ListFileStoreDataProfilesFixedSizeCollection> { private ListFileStoreDataProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11027,7 +11071,7 @@ private static ListFileStoreDataProfilesFixedSizeCollection createEmptyCollectio @Override protected ListFileStoreDataProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFileStoreDataProfilesFixedSizeCollection(pages, collectionSize); } } @@ -11061,8 +11105,8 @@ public static class ListConnectionsPage ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage> { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -11072,14 +11116,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11094,7 +11138,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11104,7 +11148,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -11138,8 +11182,9 @@ public static class SearchConnectionsPage SearchConnectionsRequest, SearchConnectionsResponse, Connection, SearchConnectionsPage> { private SearchConnectionsPage( - PageContext context, - SearchConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable SearchConnectionsResponse response) { super(context, response); } @@ -11149,14 +11194,16 @@ private static SearchConnectionsPage createEmptyPage() { @Override protected SearchConnectionsPage createPage( - PageContext context, - SearchConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable SearchConnectionsResponse response) { return new SearchConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11171,7 +11218,7 @@ public static class SearchConnectionsFixedSizeCollection SearchConnectionsFixedSizeCollection> { private SearchConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11181,7 +11228,7 @@ private static SearchConnectionsFixedSizeCollection createEmptyCollection() { @Override protected SearchConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchConnectionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index c6ba7066b8da..e8d9db233d7a 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -131,6 +131,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -573,7 +574,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); } @@ -593,7 +594,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DlpServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index 91594d3aaf6d..7b98db1d55a8 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -150,6 +150,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1507,7 +1508,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); } @@ -1770,7 +1771,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); inspectContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-dlp/owlbot.py b/java-dlp/owlbot.py index 7581ff3e73ac..9bea6bd29761 100644 --- a/java-dlp/owlbot.py +++ b/java-dlp/owlbot.py @@ -28,7 +28,7 @@ ) java.remove_method( "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java", - "public static List toStringList(List values)" + "public static List toStringList(List<@Nullable InspectTemplateName> values)" ) java.remove_method( "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java", @@ -36,7 +36,7 @@ ) java.remove_method( "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java", - "public static List toStringList(List values)" + "public static List toStringList(List<@Nullable DeidentifyTemplateName> values)" ) java.remove_method( "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java", @@ -44,7 +44,7 @@ ) java.remove_method( "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java", - "public static List toStringList(List values)" + "public static List toStringList(List<@Nullable StoredInfoTypeName> values)" ) s.move(library) diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java index 8df36f71e5a5..67193184452c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationColumnDataProfileName( .toString(); } - public static ColumnDataProfileName parse(String formattedString) { + public static @Nullable ColumnDataProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ColumnDataProfileName> values) { List list = new ArrayList<>(values.size()); for (ColumnDataProfileName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java index 6f367dfac57d..9866526dbb4c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ConnectionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -149,7 +150,7 @@ public static String formatOrganizationLocationConnectionName( .toString(); } - public static ConnectionName parse(String formattedString) { + public static @Nullable ConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -173,7 +174,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionName> values) { List list = new ArrayList<>(values.size()); for (ConnectionName value : values) { if (value == null) { @@ -225,7 +226,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java index 681716e78f3c..4f65217b8001 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -219,7 +220,7 @@ public static String formatProjectLocationDeidentifyTemplateName( .toString(); } - public static DeidentifyTemplateName parse(String formattedString) { + public static @Nullable DeidentifyTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -289,7 +290,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigName.java index 2abd31520c9b..5c899dc61c68 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String discoveryCon .toString(); } - public static DiscoveryConfigName parse(String formattedString) { + public static @Nullable DiscoveryConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiscoveryConfigName> values) { List list = new ArrayList<>(values.size()); for (DiscoveryConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpContentName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpContentName.java index 6328d67f998a..0890fe01c344 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpContentName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpContentName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static DlpContentName parse(String formattedString) { + public static @Nullable DlpContentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DlpContentName> values) { List list = new ArrayList<>(values.size()); for (DlpContentName value : values) { if (value == null) { @@ -175,7 +176,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java index 45e04c52229a..3d566a62dd34 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationDlpJobName( .toString(); } - public static DlpJobName parse(String formattedString) { + public static @Nullable DlpJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DlpJobName> values) { List list = new ArrayList<>(values.size()); for (DlpJobName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java index 90fdcbd7aabe..f2c7b532f5ca 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileStoreDataProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationFileStoreDataProfileName( .toString(); } - public static FileStoreDataProfileName parse(String formattedString) { + public static @Nullable FileStoreDataProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -190,7 +191,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FileStoreDataProfileName> values) { List list = new ArrayList<>(values.size()); for (FileStoreDataProfileName value : values) { if (value == null) { @@ -242,7 +243,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java index a85f8c4a37ed..039672684f3b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -211,7 +212,7 @@ public static String formatProjectLocationInspectTemplateName( .toString(); } - public static InspectTemplateName parse(String formattedString) { + public static @Nullable InspectTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -277,7 +278,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java index a9f539b1ff68..5a31e6880888 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationJobTriggerName( .toString(); } - public static JobTriggerName parse(String formattedString) { + public static @Nullable JobTriggerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobTriggerName> values) { List list = new ArrayList<>(values.size()); for (JobTriggerName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java index f8d91953bce4..e536415fdf79 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java index b141e46b4141..e97c3efb25e5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationName.java index 2e711adc47b3..9fae501ccadb 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java index 70f3d6c5b9fc..3297b3d2a0aa 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationProjectDataProfileName( .toString(); } - public static ProjectDataProfileName parse(String formattedString) { + public static @Nullable ProjectDataProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectDataProfileName> values) { List list = new ArrayList<>(values.size()); for (ProjectDataProfileName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectName.java index fc7d20dafa12..45e717fd49b6 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java index dd22112c4298..69bfbcc2fe00 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -211,7 +212,7 @@ public static String formatProjectLocationStoredInfoTypeName( .toString(); } - public static StoredInfoTypeName parse(String formattedString) { + public static @Nullable StoredInfoTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java index 0439266de79d..3fba4ddcfeee 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatProjectLocationTableDataProfileName( .toString(); } - public static TableDataProfileName parse(String formattedString) { + public static @Nullable TableDataProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -186,7 +187,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableDataProfileName> values) { List list = new ArrayList<>(values.size()); for (TableDataProfileName value : values) { if (value == null) { @@ -238,7 +239,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index 1ce5a710ab7d..3f135010a660 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -38,6 +38,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. /** @@ -839,7 +840,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataMigrationServiceClient implements BackgroundResource { - private final DataMigrationServiceSettings settings; + private final @Nullable DataMigrationServiceSettings settings; private final DataMigrationServiceStub stub; private final OperationsClient operationsClient; @@ -882,7 +883,7 @@ protected DataMigrationServiceClient(DataMigrationServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DataMigrationServiceSettings getSettings() { + public final @Nullable DataMigrationServiceSettings getSettings() { return settings; } @@ -923,7 +924,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent which owns this collection of migrationJobs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMigrationJobsPagedResponse listMigrationJobs(LocationName parent) { + public final ListMigrationJobsPagedResponse listMigrationJobs(@Nullable LocationName parent) { ListMigrationJobsRequest request = ListMigrationJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1099,7 +1100,7 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(ListMigrationJobsR * @param name Required. Name of the migration job resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigrationJob getMigrationJob(MigrationJobName name) { + public final MigrationJob getMigrationJob(@Nullable MigrationJobName name) { GetMigrationJobRequest request = GetMigrationJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMigrationJob(request); @@ -1222,7 +1223,7 @@ public final UnaryCallable getMigrationJob * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMigrationJobAsync( - LocationName parent, MigrationJob migrationJob, String migrationJobId) { + @Nullable LocationName parent, MigrationJob migrationJob, String migrationJobId) { CreateMigrationJobRequest request = CreateMigrationJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1526,7 +1527,7 @@ public final UnaryCallable updateMigration * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMigrationJobAsync( - MigrationJobName name) { + @Nullable MigrationJobName name) { DeleteMigrationJobRequest request = DeleteMigrationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2373,7 +2374,8 @@ public final TcpProxyScript generateTcpProxyScript(GenerateTcpProxyScriptRequest * @param parent Required. The parent which owns this collection of connection profiles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectionProfilesPagedResponse listConnectionProfiles(LocationName parent) { + public final ListConnectionProfilesPagedResponse listConnectionProfiles( + @Nullable LocationName parent) { ListConnectionProfilesRequest request = ListConnectionProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2551,7 +2553,7 @@ public final ListConnectionProfilesPagedResponse listConnectionProfiles( * @param name Required. Name of the connection profile resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) { + public final ConnectionProfile getConnectionProfile(@Nullable ConnectionProfileName name) { GetConnectionProfileRequest request = GetConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2682,7 +2684,9 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectionProfileAsync( - LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) { + @Nullable LocationName parent, + ConnectionProfile connectionProfile, + String connectionProfileId) { CreateConnectionProfileRequest request = CreateConnectionProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3007,7 +3011,7 @@ public final OperationFuture updateConnect * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectionProfileAsync( - ConnectionProfileName name) { + @Nullable ConnectionProfileName name) { DeleteConnectionProfileRequest request = DeleteConnectionProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3180,7 +3184,9 @@ public final OperationFuture deleteConnectionProfileAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPrivateConnectionAsync( - LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + @Nullable LocationName parent, + PrivateConnection privateConnection, + String privateConnectionId) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3357,7 +3363,7 @@ public final OperationFuture createPrivate * @param name Required. The name of the private connection to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + public final PrivateConnection getPrivateConnection(@Nullable PrivateConnectionName name) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3482,7 +3488,8 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * @param parent Required. The parent that owns the collection of private connections. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + @Nullable LocationName parent) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3661,7 +3668,7 @@ public final ListPrivateConnectionsPagedResponse listPrivateConnections( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrivateConnectionAsync( - PrivateConnectionName name) { + @Nullable PrivateConnectionName name) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3820,7 +3827,7 @@ public final OperationFuture deletePrivateConnectionAs * @param name Required. Name of the conversion workspace resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionWorkspace getConversionWorkspace(ConversionWorkspaceName name) { + public final ConversionWorkspace getConversionWorkspace(@Nullable ConversionWorkspaceName name) { GetConversionWorkspaceRequest request = GetConversionWorkspaceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3946,7 +3953,8 @@ public final ConversionWorkspace getConversionWorkspace(GetConversionWorkspaceRe * @param parent Required. The parent which owns this collection of conversion workspaces. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversionWorkspacesPagedResponse listConversionWorkspaces(LocationName parent) { + public final ListConversionWorkspacesPagedResponse listConversionWorkspaces( + @Nullable LocationName parent) { ListConversionWorkspacesRequest request = ListConversionWorkspacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4129,7 +4137,7 @@ public final ListConversionWorkspacesPagedResponse listConversionWorkspaces( */ public final OperationFuture createConversionWorkspaceAsync( - LocationName parent, + @Nullable LocationName parent, ConversionWorkspace conversionWorkspace, String conversionWorkspaceId) { CreateConversionWorkspaceRequest request = @@ -4448,7 +4456,7 @@ public final ListConversionWorkspacesPagedResponse listConversionWorkspaces( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConversionWorkspaceAsync( - ConversionWorkspaceName name) { + @Nullable ConversionWorkspaceName name) { DeleteConversionWorkspaceRequest request = DeleteConversionWorkspaceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4622,7 +4630,7 @@ public final OperationFuture deleteConversionWorkspace * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MappingRule createMappingRule( - ConversionWorkspaceName parent, MappingRule mappingRule, String mappingRuleId) { + @Nullable ConversionWorkspaceName parent, MappingRule mappingRule, String mappingRuleId) { CreateMappingRuleRequest request = CreateMappingRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4765,7 +4773,7 @@ public final UnaryCallable createMappingR * @param name Required. Name of the mapping rule resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMappingRule(ConversionWorkspaceName name) { + public final void deleteMappingRule(@Nullable ConversionWorkspaceName name) { DeleteMappingRuleRequest request = DeleteMappingRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4893,7 +4901,8 @@ public final UnaryCallable deleteMappingRuleCal * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMappingRulesPagedResponse listMappingRules(ConversionWorkspaceName parent) { + public final ListMappingRulesPagedResponse listMappingRules( + @Nullable ConversionWorkspaceName parent) { ListMappingRulesRequest request = ListMappingRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5077,7 +5086,7 @@ public final ListMappingRulesPagedResponse listMappingRules(ListMappingRulesRequ * conversionWorkspace/123/mappingRules/rule123{@literal @}c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MappingRule getMappingRule(MappingRuleName name) { + public final MappingRule getMappingRule(@Nullable MappingRuleName name) { GetMappingRuleRequest request = GetMappingRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMappingRule(request); @@ -6128,7 +6137,7 @@ public final DescribeConversionWorkspaceRevisionsResponse describeConversionWork * returned. Must be in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { + public final FetchStaticIpsPagedResponse fetchStaticIps(@Nullable LocationName name) { FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return fetchStaticIps(request); @@ -6338,8 +6347,9 @@ public static class ListMigrationJobsPage ListMigrationJobsPage> { private ListMigrationJobsPage( - PageContext context, - ListMigrationJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListMigrationJobsResponse response) { super(context, response); } @@ -6349,14 +6359,16 @@ private static ListMigrationJobsPage createEmptyPage() { @Override protected ListMigrationJobsPage createPage( - PageContext context, - ListMigrationJobsResponse response) { + @Nullable PageContext + context, + @Nullable ListMigrationJobsResponse response) { return new ListMigrationJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6371,7 +6383,7 @@ public static class ListMigrationJobsFixedSizeCollection ListMigrationJobsFixedSizeCollection> { private ListMigrationJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6381,7 +6393,7 @@ private static ListMigrationJobsFixedSizeCollection createEmptyCollection() { @Override protected ListMigrationJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigrationJobsFixedSizeCollection(pages, collectionSize); } } @@ -6420,10 +6432,11 @@ public static class ListConnectionProfilesPage ListConnectionProfilesPage> { private ListConnectionProfilesPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { super(context, response); } @@ -6433,16 +6446,18 @@ private static ListConnectionProfilesPage createEmptyPage() { @Override protected ListConnectionProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, - ListConnectionProfilesResponse response) { + @Nullable ListConnectionProfilesResponse response) { return new ListConnectionProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> context, ApiFuture futureResponse) { @@ -6459,7 +6474,7 @@ public static class ListConnectionProfilesFixedSizeCollection ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6469,7 +6484,7 @@ private static ListConnectionProfilesFixedSizeCollection createEmptyCollection() @Override protected ListConnectionProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionProfilesFixedSizeCollection(pages, collectionSize); } } @@ -6508,10 +6523,11 @@ public static class ListPrivateConnectionsPage ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { super(context, response); } @@ -6521,16 +6537,18 @@ private static ListPrivateConnectionsPage createEmptyPage() { @Override protected ListPrivateConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { return new ListPrivateConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, ApiFuture futureResponse) { @@ -6547,7 +6565,7 @@ public static class ListPrivateConnectionsFixedSizeCollection ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6557,7 +6575,7 @@ private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() @Override protected ListPrivateConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -6598,12 +6616,13 @@ public static class ListConversionWorkspacesPage ListConversionWorkspacesPage> { private ListConversionWorkspacesPage( - PageContext< + @Nullable + PageContext< ListConversionWorkspacesRequest, ListConversionWorkspacesResponse, ConversionWorkspace> context, - ListConversionWorkspacesResponse response) { + @Nullable ListConversionWorkspacesResponse response) { super(context, response); } @@ -6613,18 +6632,20 @@ private static ListConversionWorkspacesPage createEmptyPage() { @Override protected ListConversionWorkspacesPage createPage( - PageContext< + @Nullable + PageContext< ListConversionWorkspacesRequest, ListConversionWorkspacesResponse, ConversionWorkspace> context, - ListConversionWorkspacesResponse response) { + @Nullable ListConversionWorkspacesResponse response) { return new ListConversionWorkspacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConversionWorkspacesRequest, ListConversionWorkspacesResponse, ConversionWorkspace> @@ -6643,7 +6664,7 @@ public static class ListConversionWorkspacesFixedSizeCollection ListConversionWorkspacesFixedSizeCollection> { private ListConversionWorkspacesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6653,7 +6674,7 @@ private static ListConversionWorkspacesFixedSizeCollection createEmptyCollection @Override protected ListConversionWorkspacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversionWorkspacesFixedSizeCollection(pages, collectionSize); } } @@ -6687,8 +6708,9 @@ public static class ListMappingRulesPage ListMappingRulesRequest, ListMappingRulesResponse, MappingRule, ListMappingRulesPage> { private ListMappingRulesPage( - PageContext context, - ListMappingRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListMappingRulesResponse response) { super(context, response); } @@ -6698,14 +6720,16 @@ private static ListMappingRulesPage createEmptyPage() { @Override protected ListMappingRulesPage createPage( - PageContext context, - ListMappingRulesResponse response) { + @Nullable PageContext + context, + @Nullable ListMappingRulesResponse response) { return new ListMappingRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6720,7 +6744,7 @@ public static class ListMappingRulesFixedSizeCollection ListMappingRulesFixedSizeCollection> { private ListMappingRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6730,7 +6754,7 @@ private static ListMappingRulesFixedSizeCollection createEmptyCollection() { @Override protected ListMappingRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMappingRulesFixedSizeCollection(pages, collectionSize); } } @@ -6769,10 +6793,11 @@ public static class DescribeDatabaseEntitiesPage DescribeDatabaseEntitiesPage> { private DescribeDatabaseEntitiesPage( - PageContext< + @Nullable + PageContext< DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> context, - DescribeDatabaseEntitiesResponse response) { + @Nullable DescribeDatabaseEntitiesResponse response) { super(context, response); } @@ -6782,16 +6807,18 @@ private static DescribeDatabaseEntitiesPage createEmptyPage() { @Override protected DescribeDatabaseEntitiesPage createPage( - PageContext< + @Nullable + PageContext< DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> context, - DescribeDatabaseEntitiesResponse response) { + @Nullable DescribeDatabaseEntitiesResponse response) { return new DescribeDatabaseEntitiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< DescribeDatabaseEntitiesRequest, DescribeDatabaseEntitiesResponse, DatabaseEntity> context, ApiFuture futureResponse) { @@ -6808,7 +6835,7 @@ public static class DescribeDatabaseEntitiesFixedSizeCollection DescribeDatabaseEntitiesFixedSizeCollection> { private DescribeDatabaseEntitiesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6818,7 +6845,7 @@ private static DescribeDatabaseEntitiesFixedSizeCollection createEmptyCollection @Override protected DescribeDatabaseEntitiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new DescribeDatabaseEntitiesFixedSizeCollection(pages, collectionSize); } } @@ -6852,8 +6879,8 @@ public static class FetchStaticIpsPage FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage> { private FetchStaticIpsPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { super(context, response); } @@ -6863,14 +6890,14 @@ private static FetchStaticIpsPage createEmptyPage() { @Override protected FetchStaticIpsPage createPage( - PageContext context, - FetchStaticIpsResponse response) { + @Nullable PageContext context, + @Nullable FetchStaticIpsResponse response) { return new FetchStaticIpsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6884,7 +6911,8 @@ public static class FetchStaticIpsFixedSizeCollection FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { - private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { + private FetchStaticIpsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6894,7 +6922,7 @@ private static FetchStaticIpsFixedSizeCollection createEmptyCollection() { @Override protected FetchStaticIpsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchStaticIpsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java index 01f81557ffe3..ae1190afff6d 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -595,7 +596,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -616,7 +617,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataMigrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java index 429d0735c04a..cdf2efe4fb74 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStub.java @@ -90,6 +90,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -101,7 +102,7 @@ @Generated("by gapic-generator-java") public abstract class DataMigrationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java index 5e71e6f62a71..b2cf06fb08e2 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java @@ -121,6 +121,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1260,7 +1261,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1589,7 +1590,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMigrationJobsSettings = PagedCallSettings.newBuilder(LIST_MIGRATION_JOBS_PAGE_STR_FACT); diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java index 6be17b074c96..94afa2dcc28b 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConnectionProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String connectionPr .toString(); } - public static ConnectionProfileName parse(String formattedString) { + public static @Nullable ConnectionProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectionProfileName> values) { List list = new ArrayList<>(values.size()); for (ConnectionProfileName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java index 93c8366d5987..d61acf32c958 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ConversionWorkspaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String conversionWo .toString(); } - public static ConversionWorkspaceName parse(String formattedString) { + public static @Nullable ConversionWorkspaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversionWorkspaceName> values) { List list = new ArrayList<>(values.size()); for (ConversionWorkspaceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java index 30b3eedb22fd..c51a29c2edf9 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java index a1b509e534eb..c86dd39405da 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MappingRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MappingRuleName parse(String formattedString) { + public static @Nullable MappingRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MappingRuleName> values) { List list = new ArrayList<>(values.size()); for (MappingRuleName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java index e02a69aa1329..c04b64485b37 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/MigrationJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String migrationJob .toString(); } - public static MigrationJobName parse(String formattedString) { + public static @Nullable MigrationJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigrationJobName> values) { List list = new ArrayList<>(values.size()); for (MigrationJobName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java index ec57094bffd6..a735f394a50b 100644 --- a/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java +++ b/java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/PrivateConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String privateConne .toString(); } - public static PrivateConnectionName parse(String formattedString) { + public static @Nullable PrivateConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateConnectionName> values) { List list = new ArrayList<>(values.size()); for (PrivateConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index 29a6b69ec34c..d457f1545a6e 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -43,6 +43,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. /** @@ -586,7 +587,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DocumentProcessorServiceClient implements BackgroundResource { - private final DocumentProcessorServiceSettings settings; + private final @Nullable DocumentProcessorServiceSettings settings; private final DocumentProcessorServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -636,7 +637,7 @@ protected DocumentProcessorServiceClient(DocumentProcessorServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentProcessorServiceSettings getSettings() { + public final @Nullable DocumentProcessorServiceSettings getSettings() { return settings; } @@ -689,7 +690,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessResponse processDocument(ResourceName name) { + public final ProcessResponse processDocument(@Nullable ResourceName name) { ProcessRequest request = ProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return processDocument(request); @@ -827,7 +828,7 @@ public final UnaryCallable processDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchProcessDocumentsAsync(ResourceName name) { + batchProcessDocumentsAsync(@Nullable ResourceName name) { BatchProcessRequest request = BatchProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return batchProcessDocumentsAsync(request); @@ -1005,7 +1006,7 @@ public final UnaryCallable batchProcessDocuments * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent) { + public final FetchProcessorTypesResponse fetchProcessorTypes(@Nullable LocationName parent) { FetchProcessorTypesRequest request = FetchProcessorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1135,7 +1136,7 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName parent) { + public final ListProcessorTypesPagedResponse listProcessorTypes(@Nullable LocationName parent) { ListProcessorTypesRequest request = ListProcessorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1307,7 +1308,7 @@ public final ListProcessorTypesPagedResponse listProcessorTypes( * @param name Required. The processor type resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessorType getProcessorType(ProcessorTypeName name) { + public final ProcessorType getProcessorType(@Nullable ProcessorTypeName name) { GetProcessorTypeRequest request = GetProcessorTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcessorType(request); @@ -1425,7 +1426,7 @@ public final UnaryCallable getProcessorT * Processors. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorsPagedResponse listProcessors(LocationName parent) { + public final ListProcessorsPagedResponse listProcessors(@Nullable LocationName parent) { ListProcessorsRequest request = ListProcessorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1594,7 +1595,7 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Processor getProcessor(ProcessorName name) { + public final Processor getProcessor(@Nullable ProcessorName name) { GetProcessorRequest request = GetProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcessor(request); @@ -1713,7 +1714,8 @@ public final UnaryCallable getProcessorCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) { + trainProcessorVersionAsync( + @Nullable ProcessorName parent, ProcessorVersion processorVersion) { TrainProcessorVersionRequest request = TrainProcessorVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1893,7 +1895,7 @@ public final UnaryCallable getProcessorCallable( * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessorVersion getProcessorVersion(ProcessorVersionName name) { + public final ProcessorVersion getProcessorVersion(@Nullable ProcessorVersionName name) { GetProcessorVersionRequest request = GetProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2022,7 +2024,8 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req * Format: `projects/{project}/locations/{location}/processors/{processor}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorVersionsPagedResponse listProcessorVersions(ProcessorName parent) { + public final ListProcessorVersionsPagedResponse listProcessorVersions( + @Nullable ProcessorName parent) { ListProcessorVersionsRequest request = ListProcessorVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2196,7 +2199,7 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProcessorVersionAsync( - ProcessorVersionName name) { + @Nullable ProcessorVersionName name) { DeleteProcessorVersionRequest request = DeleteProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2362,7 +2365,7 @@ public final OperationFuture deleteProces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deployProcessorVersionAsync(ProcessorVersionName name) { + deployProcessorVersionAsync(@Nullable ProcessorVersionName name) { DeployProcessorVersionRequest request = DeployProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2532,7 +2535,7 @@ public final OperationFuture deleteProces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployProcessorVersionAsync(ProcessorVersionName name) { + undeployProcessorVersionAsync(@Nullable ProcessorVersionName name) { UndeployProcessorVersionRequest request = UndeployProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2710,7 +2713,7 @@ public final OperationFuture deleteProces * must be set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Processor createProcessor(LocationName parent, Processor processor) { + public final Processor createProcessor(@Nullable LocationName parent, Processor processor) { CreateProcessorRequest request = CreateProcessorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2850,7 +2853,7 @@ public final UnaryCallable createProcessorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProcessorAsync( - ProcessorName name) { + @Nullable ProcessorName name) { DeleteProcessorRequest request = DeleteProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProcessorAsync(request); @@ -3305,7 +3308,7 @@ public final UnaryCallable disableProcessorC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) { + reviewDocumentAsync(@Nullable HumanReviewConfigName humanReviewConfig) { ReviewDocumentRequest request = ReviewDocumentRequest.newBuilder() .setHumanReviewConfig(humanReviewConfig == null ? null : humanReviewConfig.toString()) @@ -3477,7 +3480,7 @@ public final UnaryCallable reviewDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) { + evaluateProcessorVersionAsync(@Nullable ProcessorVersionName processorVersion) { EvaluateProcessorVersionRequest request = EvaluateProcessorVersionRequest.newBuilder() .setProcessorVersion(processorVersion == null ? null : processorVersion.toString()) @@ -3653,7 +3656,7 @@ public final UnaryCallable reviewDocumentCalla * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -3791,7 +3794,7 @@ public final UnaryCallable getEvaluationCallab * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(ProcessorVersionName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable ProcessorVersionName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4175,8 +4178,9 @@ public static class ListProcessorTypesPage ListProcessorTypesPage> { private ListProcessorTypesPage( - PageContext context, - ListProcessorTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListProcessorTypesResponse response) { super(context, response); } @@ -4186,14 +4190,16 @@ private static ListProcessorTypesPage createEmptyPage() { @Override protected ListProcessorTypesPage createPage( - PageContext context, - ListProcessorTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListProcessorTypesResponse response) { return new ListProcessorTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4208,7 +4214,7 @@ public static class ListProcessorTypesFixedSizeCollection ListProcessorTypesFixedSizeCollection> { private ListProcessorTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4218,7 +4224,7 @@ private static ListProcessorTypesFixedSizeCollection createEmptyCollection() { @Override protected ListProcessorTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorTypesFixedSizeCollection(pages, collectionSize); } } @@ -4252,8 +4258,8 @@ public static class ListProcessorsPage ListProcessorsRequest, ListProcessorsResponse, Processor, ListProcessorsPage> { private ListProcessorsPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { super(context, response); } @@ -4263,14 +4269,14 @@ private static ListProcessorsPage createEmptyPage() { @Override protected ListProcessorsPage createPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { return new ListProcessorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4284,7 +4290,8 @@ public static class ListProcessorsFixedSizeCollection ListProcessorsPage, ListProcessorsFixedSizeCollection> { - private ListProcessorsFixedSizeCollection(List pages, int collectionSize) { + private ListProcessorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4294,7 +4301,7 @@ private static ListProcessorsFixedSizeCollection createEmptyCollection() { @Override protected ListProcessorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorsFixedSizeCollection(pages, collectionSize); } } @@ -4332,9 +4339,11 @@ public static class ListProcessorVersionsPage ListProcessorVersionsPage> { private ListProcessorVersionsPage( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, - ListProcessorVersionsResponse response) { + @Nullable ListProcessorVersionsResponse response) { super(context, response); } @@ -4344,15 +4353,19 @@ private static ListProcessorVersionsPage createEmptyPage() { @Override protected ListProcessorVersionsPage createPage( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, - ListProcessorVersionsResponse response) { + @Nullable ListProcessorVersionsResponse response) { return new ListProcessorVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4368,7 +4381,7 @@ public static class ListProcessorVersionsFixedSizeCollection ListProcessorVersionsFixedSizeCollection> { private ListProcessorVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4378,7 +4391,7 @@ private static ListProcessorVersionsFixedSizeCollection createEmptyCollection() @Override protected ListProcessorVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4412,8 +4425,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -4423,14 +4436,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4445,7 +4458,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4455,7 +4468,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -4489,8 +4502,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4500,14 +4513,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4521,7 +4534,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4531,7 +4545,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java index ed9adc280beb..852230461f5e 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -427,7 +428,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); } @@ -448,7 +449,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentProcessorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java index b0e8343d0cfe..21362980028b 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java @@ -86,6 +86,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -97,11 +98,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentProcessorServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index 7afdd28e4647..48039b168135 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java @@ -120,6 +120,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -895,7 +896,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); } @@ -1118,7 +1119,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); processDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index c2136f5e9c89..01b04806a7a7 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -43,6 +43,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. /** @@ -608,7 +609,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DocumentProcessorServiceClient implements BackgroundResource { - private final DocumentProcessorServiceSettings settings; + private final @Nullable DocumentProcessorServiceSettings settings; private final DocumentProcessorServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -658,7 +659,7 @@ protected DocumentProcessorServiceClient(DocumentProcessorServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentProcessorServiceSettings getSettings() { + public final @Nullable DocumentProcessorServiceSettings getSettings() { return settings; } @@ -712,7 +713,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessResponse processDocument(ResourceName name) { + public final ProcessResponse processDocument(@Nullable ResourceName name) { ProcessRequest request = ProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return processDocument(request); @@ -851,7 +852,7 @@ public final UnaryCallable processDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchProcessDocumentsAsync(ResourceName name) { + batchProcessDocumentsAsync(@Nullable ResourceName name) { BatchProcessRequest request = BatchProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return batchProcessDocumentsAsync(request); @@ -1033,7 +1034,7 @@ public final UnaryCallable batchProcessDocuments * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent) { + public final FetchProcessorTypesResponse fetchProcessorTypes(@Nullable LocationName parent) { FetchProcessorTypesRequest request = FetchProcessorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1163,7 +1164,7 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName parent) { + public final ListProcessorTypesPagedResponse listProcessorTypes(@Nullable LocationName parent) { ListProcessorTypesRequest request = ListProcessorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1335,7 +1336,7 @@ public final ListProcessorTypesPagedResponse listProcessorTypes( * @param name Required. The processor type resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessorType getProcessorType(ProcessorTypeName name) { + public final ProcessorType getProcessorType(@Nullable ProcessorTypeName name) { GetProcessorTypeRequest request = GetProcessorTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcessorType(request); @@ -1453,7 +1454,7 @@ public final UnaryCallable getProcessorT * Processors. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorsPagedResponse listProcessors(LocationName parent) { + public final ListProcessorsPagedResponse listProcessors(@Nullable LocationName parent) { ListProcessorsRequest request = ListProcessorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1622,7 +1623,7 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Processor getProcessor(ProcessorName name) { + public final Processor getProcessor(@Nullable ProcessorName name) { GetProcessorRequest request = GetProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcessor(request); @@ -1741,7 +1742,8 @@ public final UnaryCallable getProcessorCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - trainProcessorVersionAsync(ProcessorName parent, ProcessorVersion processorVersion) { + trainProcessorVersionAsync( + @Nullable ProcessorName parent, ProcessorVersion processorVersion) { TrainProcessorVersionRequest request = TrainProcessorVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1921,7 +1923,7 @@ public final UnaryCallable getProcessorCallable( * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProcessorVersion getProcessorVersion(ProcessorVersionName name) { + public final ProcessorVersion getProcessorVersion(@Nullable ProcessorVersionName name) { GetProcessorVersionRequest request = GetProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2050,7 +2052,8 @@ public final ProcessorVersion getProcessorVersion(GetProcessorVersionRequest req * Format: `projects/{project}/locations/{location}/processors/{processor}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorVersionsPagedResponse listProcessorVersions(ProcessorName parent) { + public final ListProcessorVersionsPagedResponse listProcessorVersions( + @Nullable ProcessorName parent) { ListProcessorVersionsRequest request = ListProcessorVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2224,7 +2227,7 @@ public final ListProcessorVersionsPagedResponse listProcessorVersions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProcessorVersionAsync( - ProcessorVersionName name) { + @Nullable ProcessorVersionName name) { DeleteProcessorVersionRequest request = DeleteProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2390,7 +2393,7 @@ public final OperationFuture deleteProces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deployProcessorVersionAsync(ProcessorVersionName name) { + deployProcessorVersionAsync(@Nullable ProcessorVersionName name) { DeployProcessorVersionRequest request = DeployProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2560,7 +2563,7 @@ public final OperationFuture deleteProces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployProcessorVersionAsync(ProcessorVersionName name) { + undeployProcessorVersionAsync(@Nullable ProcessorVersionName name) { UndeployProcessorVersionRequest request = UndeployProcessorVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2738,7 +2741,7 @@ public final OperationFuture deleteProces * field must be set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Processor createProcessor(LocationName parent, Processor processor) { + public final Processor createProcessor(@Nullable LocationName parent, Processor processor) { CreateProcessorRequest request = CreateProcessorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2878,7 +2881,7 @@ public final UnaryCallable createProcessorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProcessorAsync( - ProcessorName name) { + @Nullable ProcessorName name) { DeleteProcessorRequest request = DeleteProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProcessorAsync(request); @@ -3335,7 +3338,7 @@ public final UnaryCallable disableProcessorC */ @Deprecated public final OperationFuture - reviewDocumentAsync(HumanReviewConfigName humanReviewConfig) { + reviewDocumentAsync(@Nullable HumanReviewConfigName humanReviewConfig) { ReviewDocumentRequest request = ReviewDocumentRequest.newBuilder() .setHumanReviewConfig(humanReviewConfig == null ? null : humanReviewConfig.toString()) @@ -3520,7 +3523,7 @@ public final UnaryCallable reviewDocumentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - evaluateProcessorVersionAsync(ProcessorVersionName processorVersion) { + evaluateProcessorVersionAsync(@Nullable ProcessorVersionName processorVersion) { EvaluateProcessorVersionRequest request = EvaluateProcessorVersionRequest.newBuilder() .setProcessorVersion(processorVersion == null ? null : processorVersion.toString()) @@ -3696,7 +3699,7 @@ public final UnaryCallable reviewDocumentCalla * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -3835,7 +3838,7 @@ public final UnaryCallable getEvaluationCallab * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(ProcessorVersionName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable ProcessorVersionName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4021,7 +4024,7 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importProcessorVersionAsync(ProcessorName parent) { + importProcessorVersionAsync(@Nullable ProcessorName parent) { ImportProcessorVersionRequest request = ImportProcessorVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4398,8 +4401,9 @@ public static class ListProcessorTypesPage ListProcessorTypesPage> { private ListProcessorTypesPage( - PageContext context, - ListProcessorTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListProcessorTypesResponse response) { super(context, response); } @@ -4409,14 +4413,16 @@ private static ListProcessorTypesPage createEmptyPage() { @Override protected ListProcessorTypesPage createPage( - PageContext context, - ListProcessorTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListProcessorTypesResponse response) { return new ListProcessorTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4431,7 +4437,7 @@ public static class ListProcessorTypesFixedSizeCollection ListProcessorTypesFixedSizeCollection> { private ListProcessorTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4441,7 +4447,7 @@ private static ListProcessorTypesFixedSizeCollection createEmptyCollection() { @Override protected ListProcessorTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorTypesFixedSizeCollection(pages, collectionSize); } } @@ -4475,8 +4481,8 @@ public static class ListProcessorsPage ListProcessorsRequest, ListProcessorsResponse, Processor, ListProcessorsPage> { private ListProcessorsPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { super(context, response); } @@ -4486,14 +4492,14 @@ private static ListProcessorsPage createEmptyPage() { @Override protected ListProcessorsPage createPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { return new ListProcessorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4507,7 +4513,8 @@ public static class ListProcessorsFixedSizeCollection ListProcessorsPage, ListProcessorsFixedSizeCollection> { - private ListProcessorsFixedSizeCollection(List pages, int collectionSize) { + private ListProcessorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4517,7 +4524,7 @@ private static ListProcessorsFixedSizeCollection createEmptyCollection() { @Override protected ListProcessorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorsFixedSizeCollection(pages, collectionSize); } } @@ -4555,9 +4562,11 @@ public static class ListProcessorVersionsPage ListProcessorVersionsPage> { private ListProcessorVersionsPage( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, - ListProcessorVersionsResponse response) { + @Nullable ListProcessorVersionsResponse response) { super(context, response); } @@ -4567,15 +4576,19 @@ private static ListProcessorVersionsPage createEmptyPage() { @Override protected ListProcessorVersionsPage createPage( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, - ListProcessorVersionsResponse response) { + @Nullable ListProcessorVersionsResponse response) { return new ListProcessorVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListProcessorVersionsRequest, ListProcessorVersionsResponse, ProcessorVersion> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4591,7 +4604,7 @@ public static class ListProcessorVersionsFixedSizeCollection ListProcessorVersionsFixedSizeCollection> { private ListProcessorVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4601,7 +4614,7 @@ private static ListProcessorVersionsFixedSizeCollection createEmptyCollection() @Override protected ListProcessorVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4635,8 +4648,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -4646,14 +4659,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4668,7 +4681,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4678,7 +4691,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -4712,8 +4725,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4723,14 +4736,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4744,7 +4757,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4754,7 +4768,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java index d004f806a11a..35de2984abe5 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -455,7 +456,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); } @@ -476,7 +477,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentProcessorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java index 53a647036698..be06d5893e23 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java @@ -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. /** @@ -299,7 +300,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DocumentServiceClient implements BackgroundResource { - private final DocumentServiceSettings settings; + private final @Nullable DocumentServiceSettings settings; private final DocumentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -347,7 +348,7 @@ protected DocumentServiceClient(DocumentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DocumentServiceSettings getSettings() { + public final @Nullable DocumentServiceSettings getSettings() { return settings; } @@ -527,7 +528,7 @@ public final UnaryCallable updateDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importDocumentsAsync(DatasetName dataset) { + importDocumentsAsync(@Nullable DatasetName dataset) { ImportDocumentsRequest request = ImportDocumentsRequest.newBuilder() .setDataset(dataset == null ? null : dataset.toString()) @@ -679,7 +680,7 @@ public final UnaryCallable importDocumentsCal * Format: projects/{project}/locations/{location}/processors/{processor}/dataset * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetDocumentResponse getDocument(DatasetName dataset) { + public final GetDocumentResponse getDocument(@Nullable DatasetName dataset) { GetDocumentRequest request = GetDocumentRequest.newBuilder() .setDataset(dataset == null ? null : dataset.toString()) @@ -800,7 +801,7 @@ public final UnaryCallable getDocumentC * projects/{project}/locations/{location}/processors/{processor}/dataset * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDocumentsPagedResponse listDocuments(DatasetName dataset) { + public final ListDocumentsPagedResponse listDocuments(@Nullable DatasetName dataset) { ListDocumentsRequest request = ListDocumentsRequest.newBuilder() .setDataset(dataset == null ? null : dataset.toString()) @@ -1094,7 +1095,7 @@ public final UnaryCallable listDocu * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DatasetSchema getDatasetSchema(DatasetSchemaName name) { + public final DatasetSchema getDatasetSchema(@Nullable DatasetSchemaName name) { GetDatasetSchemaRequest request = GetDatasetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatasetSchema(request); @@ -1511,8 +1512,9 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, DocumentMetadata, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext + context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1522,14 +1524,16 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext + context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1543,7 +1547,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1553,7 +1558,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } @@ -1587,8 +1592,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1598,14 +1603,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1619,7 +1624,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1629,7 +1635,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java index 058b4832f3eb..969e5900f11c 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,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); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DocumentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java index 213bbb32c0b7..09502dac1f86 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java @@ -90,6 +90,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -102,11 +103,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentProcessorServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index caef75ab9395..ff230af7dd31 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java @@ -123,6 +123,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -926,7 +927,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); } @@ -1159,7 +1160,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); processDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java index 0abc9b665755..76c8aa1b4cdf 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java @@ -47,6 +47,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class DocumentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java index e948a788af03..8e10ad898b90 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -462,7 +463,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); } @@ -552,7 +553,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluationName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluationName.java index 4b903573d7a2..2fbe1ad02fbb 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluationName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String format( .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -140,7 +141,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -204,7 +205,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewConfigName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewConfigName.java index 9a2612939028..78e85279ed95 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewConfigName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static HumanReviewConfigName parse(String formattedString) { + public static @Nullable HumanReviewConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HumanReviewConfigName> values) { List list = new ArrayList<>(values.size()); for (HumanReviewConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/LocationName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/LocationName.java index b25fb27dd54a..e9f6e617fbd9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/LocationName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorName.java index 508e9c0cbc2f..59902135d787 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static ProcessorName parse(String formattedString) { + public static @Nullable ProcessorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorName> values) { List list = new ArrayList<>(values.size()); for (ProcessorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeName.java index b03330c64973..303474c29f9b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String processorTyp .toString(); } - public static ProcessorTypeName parse(String formattedString) { + public static @Nullable ProcessorTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorTypeName> values) { List list = new ArrayList<>(values.size()); for (ProcessorTypeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionName.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionName.java index 7decae6a37bd..a959e3988e27 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ProcessorVersionName parse(String formattedString) { + public static @Nullable ProcessorVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorVersionName> values) { List list = new ArrayList<>(values.size()); for (ProcessorVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetName.java index 83812c2e686c..cb7e468cef0c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java index 38a720b223d6..5dd6e2513661 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static DatasetSchemaName parse(String formattedString) { + public static @Nullable DatasetSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetSchemaName> values) { List list = new ArrayList<>(values.size()); for (DatasetSchemaName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationName.java index 623fc87f0345..1aaee16e4420 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -117,7 +118,7 @@ public static String format( .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -140,7 +141,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -204,7 +205,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java index bf244ede42a8..14198ce83515 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static HumanReviewConfigName parse(String formattedString) { + public static @Nullable HumanReviewConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HumanReviewConfigName> values) { List list = new ArrayList<>(values.size()); for (HumanReviewConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/LocationName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/LocationName.java index 93ce270c6f28..b4406107902d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/LocationName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java index e13fe8947bc2..7211820e9246 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static ProcessorName parse(String formattedString) { + public static @Nullable ProcessorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorName> values) { List list = new ArrayList<>(values.size()); for (ProcessorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeName.java index 7a2dce6e41cd..c55a85dc7ede 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String processorTyp .toString(); } - public static ProcessorTypeName parse(String formattedString) { + public static @Nullable ProcessorTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorTypeName> values) { List list = new ArrayList<>(values.size()); for (ProcessorTypeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionName.java index 8f94e7c6ce8e..f518136ddd23 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionName.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ProcessorVersionName parse(String formattedString) { + public static @Nullable ProcessorVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorVersionName> values) { List list = new ArrayList<>(values.size()); for (ProcessorVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java index 02502840da52..2f94b9be3b2e 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java @@ -40,6 +40,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. /** @@ -443,7 +444,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; + private final @Nullable DomainsSettings settings; private final DomainsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -489,7 +490,7 @@ protected DomainsClient(DomainsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DomainsSettings getSettings() { + public final @Nullable DomainsSettings getSettings() { return settings; } @@ -540,7 +541,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param query Required. String used to search for available domain names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { + public final SearchDomainsResponse searchDomains(@Nullable LocationName location, String query) { SearchDomainsRequest request = SearchDomainsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -672,7 +673,7 @@ public final UnaryCallable searchDo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveRegisterParametersRequest request = RetrieveRegisterParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -818,7 +819,7 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { + @Nullable LocationName parent, Registration registration, Money yearlyPrice) { RegisterDomainRequest request = RegisterDomainRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1032,7 +1033,7 @@ public final UnaryCallable registerDomainCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveTransferParametersRequest request = RetrieveTransferParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -1201,7 +1202,7 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture transferDomainAsync( - LocationName parent, + @Nullable LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) { @@ -1456,7 +1457,7 @@ public final UnaryCallable transferDomainCalla * in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegistrationsPagedResponse listRegistrations(LocationName parent) { + public final ListRegistrationsPagedResponse listRegistrations(@Nullable LocationName parent) { ListRegistrationsRequest request = ListRegistrationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1624,7 +1625,7 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR * `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Registration getRegistration(RegistrationName name) { + public final Registration getRegistration(@Nullable RegistrationName name) { GetRegistrationRequest request = GetRegistrationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRegistration(request); @@ -1896,7 +1897,9 @@ public final UnaryCallable updateRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ManagementSettings managementSettings, + FieldMask updateMask) { ConfigureManagementSettingsRequest request = ConfigureManagementSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2080,7 +2083,7 @@ public final OperationFuture configureManagemen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { ConfigureDnsSettingsRequest request = ConfigureDnsSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2267,7 +2270,9 @@ public final OperationFuture configureDnsSettin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ContactSettings contactSettings, + FieldMask updateMask) { ConfigureContactSettingsRequest request = ConfigureContactSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2455,7 +2460,7 @@ public final OperationFuture configureContactSe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { ExportRegistrationRequest request = ExportRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2643,7 +2648,7 @@ public final UnaryCallable exportRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { DeleteRegistrationRequest request = DeleteRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2867,7 +2872,8 @@ public final UnaryCallable deleteRegistrat * retrieved, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode retrieveAuthorizationCode( + @Nullable RegistrationName registration) { RetrieveAuthorizationCodeRequest request = RetrieveAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3002,7 +3008,7 @@ public final AuthorizationCode retrieveAuthorizationCode( * reset, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode resetAuthorizationCode(@Nullable RegistrationName registration) { ResetAuthorizationCodeRequest request = ResetAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3169,8 +3175,9 @@ public static class ListRegistrationsPage ListRegistrationsPage> { private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { super(context, response); } @@ -3180,14 +3187,16 @@ private static ListRegistrationsPage createEmptyPage() { @Override protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { return new ListRegistrationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3202,7 +3211,7 @@ public static class ListRegistrationsFixedSizeCollection ListRegistrationsFixedSizeCollection> { private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3212,7 +3221,7 @@ private static ListRegistrationsFixedSizeCollection createEmptyCollection() { @Override protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegistrationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java index e11a8fe7c985..1e2e6b0d2772 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -303,7 +304,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); } @@ -323,7 +324,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DomainsStubSettings.newBuilder(clientContext)); } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java index a73d8b2a1899..120f8ad005be 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class DomainsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java index c25a22285a90..13fb4f339f3d 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -498,7 +499,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); } @@ -636,7 +637,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java index 626d57b27c9f..37d9c0a75cd6 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java @@ -40,6 +40,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. /** @@ -444,7 +445,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; + private final @Nullable DomainsSettings settings; private final DomainsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -490,7 +491,7 @@ protected DomainsClient(DomainsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DomainsSettings getSettings() { + public final @Nullable DomainsSettings getSettings() { return settings; } @@ -541,7 +542,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param query Required. String used to search for available domain names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { + public final SearchDomainsResponse searchDomains(@Nullable LocationName location, String query) { SearchDomainsRequest request = SearchDomainsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -673,7 +674,7 @@ public final UnaryCallable searchDo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveRegisterParametersRequest request = RetrieveRegisterParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -819,7 +820,7 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { + @Nullable LocationName parent, Registration registration, Money yearlyPrice) { RegisterDomainRequest request = RegisterDomainRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1033,7 +1034,7 @@ public final UnaryCallable registerDomainCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveTransferParametersRequest request = RetrieveTransferParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -1202,7 +1203,7 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture transferDomainAsync( - LocationName parent, + @Nullable LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) { @@ -1457,7 +1458,7 @@ public final UnaryCallable transferDomainCalla * in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegistrationsPagedResponse listRegistrations(LocationName parent) { + public final ListRegistrationsPagedResponse listRegistrations(@Nullable LocationName parent) { ListRegistrationsRequest request = ListRegistrationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1625,7 +1626,7 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR * `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Registration getRegistration(RegistrationName name) { + public final Registration getRegistration(@Nullable RegistrationName name) { GetRegistrationRequest request = GetRegistrationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRegistration(request); @@ -1897,7 +1898,9 @@ public final UnaryCallable updateRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ManagementSettings managementSettings, + FieldMask updateMask) { ConfigureManagementSettingsRequest request = ConfigureManagementSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2081,7 +2084,7 @@ public final OperationFuture configureManagemen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { ConfigureDnsSettingsRequest request = ConfigureDnsSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2268,7 +2271,9 @@ public final OperationFuture configureDnsSettin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ContactSettings contactSettings, + FieldMask updateMask) { ConfigureContactSettingsRequest request = ConfigureContactSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2456,7 +2461,7 @@ public final OperationFuture configureContactSe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { ExportRegistrationRequest request = ExportRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2644,7 +2649,7 @@ public final UnaryCallable exportRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { DeleteRegistrationRequest request = DeleteRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2868,7 +2873,8 @@ public final UnaryCallable deleteRegistrat * retrieved, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode retrieveAuthorizationCode( + @Nullable RegistrationName registration) { RetrieveAuthorizationCodeRequest request = RetrieveAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3003,7 +3009,7 @@ public final AuthorizationCode retrieveAuthorizationCode( * reset, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode resetAuthorizationCode(@Nullable RegistrationName registration) { ResetAuthorizationCodeRequest request = ResetAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3170,8 +3176,9 @@ public static class ListRegistrationsPage ListRegistrationsPage> { private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { super(context, response); } @@ -3181,14 +3188,16 @@ private static ListRegistrationsPage createEmptyPage() { @Override protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { return new ListRegistrationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3203,7 +3212,7 @@ public static class ListRegistrationsFixedSizeCollection ListRegistrationsFixedSizeCollection> { private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3213,7 +3222,7 @@ private static ListRegistrationsFixedSizeCollection createEmptyCollection() { @Override protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegistrationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java index 4fd03e027eeb..34db4c057c55 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -304,7 +305,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); } @@ -324,7 +325,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DomainsStubSettings.newBuilder(clientContext)); } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java index cc836fb53877..f44468091249 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class DomainsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java index 29dc4436515b..9d5b4f9ff161 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -499,7 +500,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); } @@ -637,7 +638,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java index 1034a5554028..b7592500c44f 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java @@ -40,6 +40,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. /** @@ -444,7 +445,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DomainsClient implements BackgroundResource { - private final DomainsSettings settings; + private final @Nullable DomainsSettings settings; private final DomainsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -490,7 +491,7 @@ protected DomainsClient(DomainsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DomainsSettings getSettings() { + public final @Nullable DomainsSettings getSettings() { return settings; } @@ -541,7 +542,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param query Required. String used to search for available domain names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchDomainsResponse searchDomains(LocationName location, String query) { + public final SearchDomainsResponse searchDomains(@Nullable LocationName location, String query) { SearchDomainsRequest request = SearchDomainsRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -673,7 +674,7 @@ public final UnaryCallable searchDo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveRegisterParametersRequest request = RetrieveRegisterParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -819,7 +820,7 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture registerDomainAsync( - LocationName parent, Registration registration, Money yearlyPrice) { + @Nullable LocationName parent, Registration registration, Money yearlyPrice) { RegisterDomainRequest request = RegisterDomainRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1033,7 +1034,7 @@ public final UnaryCallable registerDomainCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RetrieveTransferParametersResponse retrieveTransferParameters( - LocationName location, String domainName) { + @Nullable LocationName location, String domainName) { RetrieveTransferParametersRequest request = RetrieveTransferParametersRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -1202,7 +1203,7 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture transferDomainAsync( - LocationName parent, + @Nullable LocationName parent, Registration registration, Money yearlyPrice, AuthorizationCode authorizationCode) { @@ -1457,7 +1458,7 @@ public final UnaryCallable transferDomainCalla * in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegistrationsPagedResponse listRegistrations(LocationName parent) { + public final ListRegistrationsPagedResponse listRegistrations(@Nullable LocationName parent) { ListRegistrationsRequest request = ListRegistrationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1625,7 +1626,7 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR * `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Registration getRegistration(RegistrationName name) { + public final Registration getRegistration(@Nullable RegistrationName name) { GetRegistrationRequest request = GetRegistrationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRegistration(request); @@ -1897,7 +1898,9 @@ public final UnaryCallable updateRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureManagementSettingsAsync( - RegistrationName registration, ManagementSettings managementSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ManagementSettings managementSettings, + FieldMask updateMask) { ConfigureManagementSettingsRequest request = ConfigureManagementSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2081,7 +2084,7 @@ public final OperationFuture configureManagemen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureDnsSettingsAsync( - RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, DnsSettings dnsSettings, FieldMask updateMask) { ConfigureDnsSettingsRequest request = ConfigureDnsSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2268,7 +2271,9 @@ public final OperationFuture configureDnsSettin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture configureContactSettingsAsync( - RegistrationName registration, ContactSettings contactSettings, FieldMask updateMask) { + @Nullable RegistrationName registration, + ContactSettings contactSettings, + FieldMask updateMask) { ConfigureContactSettingsRequest request = ConfigureContactSettingsRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -2456,7 +2461,7 @@ public final OperationFuture configureContactSe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture exportRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { ExportRegistrationRequest request = ExportRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2644,7 +2649,7 @@ public final UnaryCallable exportRegistrat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRegistrationAsync( - RegistrationName name) { + @Nullable RegistrationName name) { DeleteRegistrationRequest request = DeleteRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2868,7 +2873,8 @@ public final UnaryCallable deleteRegistrat * retrieved, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode retrieveAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode retrieveAuthorizationCode( + @Nullable RegistrationName registration) { RetrieveAuthorizationCodeRequest request = RetrieveAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3003,7 +3009,7 @@ public final AuthorizationCode retrieveAuthorizationCode( * reset, in the format `projects/*/locations/*/registrations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationCode resetAuthorizationCode(RegistrationName registration) { + public final AuthorizationCode resetAuthorizationCode(@Nullable RegistrationName registration) { ResetAuthorizationCodeRequest request = ResetAuthorizationCodeRequest.newBuilder() .setRegistration(registration == null ? null : registration.toString()) @@ -3170,8 +3176,9 @@ public static class ListRegistrationsPage ListRegistrationsPage> { private ListRegistrationsPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { super(context, response); } @@ -3181,14 +3188,16 @@ private static ListRegistrationsPage createEmptyPage() { @Override protected ListRegistrationsPage createPage( - PageContext context, - ListRegistrationsResponse response) { + @Nullable PageContext + context, + @Nullable ListRegistrationsResponse response) { return new ListRegistrationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3203,7 +3212,7 @@ public static class ListRegistrationsFixedSizeCollection ListRegistrationsFixedSizeCollection> { private ListRegistrationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3213,7 +3222,7 @@ private static ListRegistrationsFixedSizeCollection createEmptyCollection() { @Override protected ListRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegistrationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java index f006431ce660..540b86f46d31 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -304,7 +305,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); } @@ -324,7 +325,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DomainsStubSettings.newBuilder(clientContext)); } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java index 0b3212858b0d..052e66ca10c2 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class DomainsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java index 4abc94beb876..94420e4df4ca 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/DomainsStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -499,7 +500,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); } @@ -637,7 +638,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDomainsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java b/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java index e2961bf38830..953811f5c46e 100644 --- a/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java +++ b/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java b/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java index 8080bee91137..b0d6cb530d4c 100644 --- a/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java +++ b/java-domains/proto-google-cloud-domains-v1/src/main/java/com/google/cloud/domains/v1/RegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String registration .toString(); } - public static RegistrationName parse(String formattedString) { + public static @Nullable RegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegistrationName> values) { List list = new ArrayList<>(values.size()); for (RegistrationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java b/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java index 197910067e8d..74ad2dc89848 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java +++ b/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java b/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java index aa0e0b898c58..a21d67417f68 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java +++ b/java-domains/proto-google-cloud-domains-v1alpha2/src/main/java/com/google/cloud/domains/v1alpha2/RegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String registration .toString(); } - public static RegistrationName parse(String formattedString) { + public static @Nullable RegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegistrationName> values) { List list = new ArrayList<>(values.size()); for (RegistrationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java b/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java index e34f4b466bb6..e68d46da5b9c 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java +++ b/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java b/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java index 4d8c2b5abdba..06d0bc8a3406 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java +++ b/java-domains/proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String registration .toString(); } - public static RegistrationName parse(String formattedString) { + public static @Nullable RegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegistrationName> values) { List list = new ArrayList<>(values.size()); for (RegistrationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java index 05916aa70ba3..5c7d84438358 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkClient.java @@ -43,6 +43,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. /** @@ -670,7 +671,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EdgeNetworkClient implements BackgroundResource { - private final EdgeNetworkSettings settings; + private final @Nullable EdgeNetworkSettings settings; private final EdgeNetworkStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -717,7 +718,7 @@ protected EdgeNetworkClient(EdgeNetworkStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EdgeNetworkSettings getSettings() { + public final @Nullable EdgeNetworkSettings getSettings() { return settings; } @@ -763,7 +764,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the zone resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InitializeZoneResponse initializeZone(ZoneName name) { + public final InitializeZoneResponse initializeZone(@Nullable ZoneName name) { InitializeZoneRequest request = InitializeZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return initializeZone(request); @@ -877,7 +878,7 @@ public final InitializeZoneResponse initializeZone(InitializeZoneRequest request * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListZonesPagedResponse listZones(LocationName parent) { + public final ListZonesPagedResponse listZones(@Nullable LocationName parent) { ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listZones(request); @@ -1051,7 +1052,7 @@ public final UnaryCallable listZonesCallabl * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final Zone getZone(ZoneName name) { + public final Zone getZone(@Nullable ZoneName name) { GetZoneRequest request = GetZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getZone(request); @@ -1168,7 +1169,7 @@ public final UnaryCallable getZoneCallable() { * @param parent Required. Parent value for ListNetworksRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworksPagedResponse listNetworks(ZoneName parent) { + public final ListNetworksPagedResponse listNetworks(@Nullable ZoneName parent) { ListNetworksRequest request = ListNetworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1333,7 +1334,7 @@ public final UnaryCallable listNetwor * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Network getNetwork(NetworkName name) { + public final Network getNetwork(@Nullable NetworkName name) { GetNetworkRequest request = GetNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNetwork(request); @@ -1441,7 +1442,7 @@ public final UnaryCallable getNetworkCallable() { * @param name Required. The name of the network resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiagnoseNetworkResponse diagnoseNetwork(NetworkName name) { + public final DiagnoseNetworkResponse diagnoseNetwork(@Nullable NetworkName name) { DiagnoseNetworkRequest request = DiagnoseNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return diagnoseNetwork(request); @@ -1557,7 +1558,7 @@ public final DiagnoseNetworkResponse diagnoseNetwork(DiagnoseNetworkRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNetworkAsync( - ZoneName parent, Network network, String networkId) { + @Nullable ZoneName parent, Network network, String networkId) { CreateNetworkRequest request = CreateNetworkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1719,7 +1720,8 @@ public final UnaryCallable createNetworkCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNetworkAsync(NetworkName name) { + public final OperationFuture deleteNetworkAsync( + @Nullable NetworkName name) { DeleteNetworkRequest request = DeleteNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNetworkAsync(request); @@ -1862,7 +1864,7 @@ public final UnaryCallable deleteNetworkCallabl * @param parent Required. Parent value for ListSubnetsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubnetsPagedResponse listSubnets(ZoneName parent) { + public final ListSubnetsPagedResponse listSubnets(@Nullable ZoneName parent) { ListSubnetsRequest request = ListSubnetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2027,7 +2029,7 @@ public final UnaryCallable listSubnetsC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subnet getSubnet(SubnetName name) { + public final Subnet getSubnet(@Nullable SubnetName name) { GetSubnetRequest request = GetSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSubnet(request); @@ -2141,7 +2143,7 @@ public final UnaryCallable getSubnetCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSubnetAsync( - ZoneName parent, Subnet subnet, String subnetId) { + @Nullable ZoneName parent, Subnet subnet, String subnetId) { CreateSubnetRequest request = CreateSubnetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2427,7 +2429,8 @@ public final UnaryCallable updateSubnetCallable( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSubnetAsync(SubnetName name) { + public final OperationFuture deleteSubnetAsync( + @Nullable SubnetName name) { DeleteSubnetRequest request = DeleteSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSubnetAsync(request); @@ -2570,7 +2573,7 @@ public final UnaryCallable deleteSubnetCallable( * @param parent Required. Parent value for ListInterconnectsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInterconnectsPagedResponse listInterconnects(ZoneName parent) { + public final ListInterconnectsPagedResponse listInterconnects(@Nullable ZoneName parent) { ListInterconnectsRequest request = ListInterconnectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2740,7 +2743,7 @@ public final ListInterconnectsPagedResponse listInterconnects(ListInterconnectsR * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Interconnect getInterconnect(InterconnectName name) { + public final Interconnect getInterconnect(@Nullable InterconnectName name) { GetInterconnectRequest request = GetInterconnectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInterconnect(request); @@ -2855,7 +2858,7 @@ public final UnaryCallable getInterconnect * @param name Required. The name of the interconnect resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiagnoseInterconnectResponse diagnoseInterconnect(InterconnectName name) { + public final DiagnoseInterconnectResponse diagnoseInterconnect(@Nullable InterconnectName name) { DiagnoseInterconnectRequest request = DiagnoseInterconnectRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2978,7 +2981,7 @@ public final DiagnoseInterconnectResponse diagnoseInterconnect( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachments( - ZoneName parent) { + @Nullable ZoneName parent) { ListInterconnectAttachmentsRequest request = ListInterconnectAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3154,7 +3157,8 @@ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachment * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InterconnectAttachment getInterconnectAttachment(InterconnectAttachmentName name) { + public final InterconnectAttachment getInterconnectAttachment( + @Nullable InterconnectAttachmentName name) { GetInterconnectAttachmentRequest request = GetInterconnectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3289,7 +3293,7 @@ public final InterconnectAttachment getInterconnectAttachment( */ public final OperationFuture createInterconnectAttachmentAsync( - ZoneName parent, + @Nullable ZoneName parent, InterconnectAttachment interconnectAttachment, String interconnectAttachmentId) { CreateInterconnectAttachmentRequest request = @@ -3468,7 +3472,7 @@ public final InterconnectAttachment getInterconnectAttachment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInterconnectAttachmentAsync( - InterconnectAttachmentName name) { + @Nullable InterconnectAttachmentName name) { DeleteInterconnectAttachmentRequest request = DeleteInterconnectAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3629,7 +3633,7 @@ public final OperationFuture deleteInterconnectAttachm * @param parent Required. Parent value for ListRoutersRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRoutersPagedResponse listRouters(ZoneName parent) { + public final ListRoutersPagedResponse listRouters(@Nullable ZoneName parent) { ListRoutersRequest request = ListRoutersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3794,7 +3798,7 @@ public final UnaryCallable listRoutersC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Router getRouter(RouterName name) { + public final Router getRouter(@Nullable RouterName name) { GetRouterRequest request = GetRouterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRouter(request); @@ -3902,7 +3906,7 @@ public final UnaryCallable getRouterCallable() { * @param name Required. The name of the router resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiagnoseRouterResponse diagnoseRouter(RouterName name) { + public final DiagnoseRouterResponse diagnoseRouter(@Nullable RouterName name) { DiagnoseRouterRequest request = DiagnoseRouterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return diagnoseRouter(request); @@ -4018,7 +4022,7 @@ public final DiagnoseRouterResponse diagnoseRouter(DiagnoseRouterRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRouterAsync( - ZoneName parent, Router router, String routerId) { + @Nullable ZoneName parent, Router router, String routerId) { CreateRouterRequest request = CreateRouterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4304,7 +4308,8 @@ public final UnaryCallable updateRouterCallable( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRouterAsync(RouterName name) { + public final OperationFuture deleteRouterAsync( + @Nullable RouterName name) { DeleteRouterRequest request = DeleteRouterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRouterAsync(request); @@ -4631,8 +4636,8 @@ public static class ListZonesPage extends AbstractPage { private ListZonesPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { super(context, response); } @@ -4642,14 +4647,14 @@ private static ListZonesPage createEmptyPage() { @Override protected ListZonesPage createPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { return new ListZonesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4659,7 +4664,7 @@ public static class ListZonesFixedSizeCollection extends AbstractFixedSizeCollection< ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { - private ListZonesFixedSizeCollection(List pages, int collectionSize) { + private ListZonesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4669,7 +4674,7 @@ private static ListZonesFixedSizeCollection createEmptyCollection() { @Override protected ListZonesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListZonesFixedSizeCollection(pages, collectionSize); } } @@ -4702,8 +4707,8 @@ public static class ListNetworksPage extends AbstractPage { private ListNetworksPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { super(context, response); } @@ -4713,14 +4718,14 @@ private static ListNetworksPage createEmptyPage() { @Override protected ListNetworksPage createPage( - PageContext context, - ListNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListNetworksResponse response) { return new ListNetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4734,7 +4739,8 @@ public static class ListNetworksFixedSizeCollection ListNetworksPage, ListNetworksFixedSizeCollection> { - private ListNetworksFixedSizeCollection(List pages, int collectionSize) { + private ListNetworksFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4744,7 +4750,7 @@ private static ListNetworksFixedSizeCollection createEmptyCollection() { @Override protected ListNetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworksFixedSizeCollection(pages, collectionSize); } } @@ -4775,8 +4781,8 @@ public static class ListSubnetsPage extends AbstractPage { private ListSubnetsPage( - PageContext context, - ListSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListSubnetsResponse response) { super(context, response); } @@ -4786,14 +4792,14 @@ private static ListSubnetsPage createEmptyPage() { @Override protected ListSubnetsPage createPage( - PageContext context, - ListSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListSubnetsResponse response) { return new ListSubnetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4807,7 +4813,8 @@ public static class ListSubnetsFixedSizeCollection ListSubnetsPage, ListSubnetsFixedSizeCollection> { - private ListSubnetsFixedSizeCollection(List pages, int collectionSize) { + private ListSubnetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4817,7 +4824,7 @@ private static ListSubnetsFixedSizeCollection createEmptyCollection() { @Override protected ListSubnetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubnetsFixedSizeCollection(pages, collectionSize); } } @@ -4854,8 +4861,9 @@ public static class ListInterconnectsPage ListInterconnectsPage> { private ListInterconnectsPage( - PageContext context, - ListInterconnectsResponse response) { + @Nullable PageContext + context, + @Nullable ListInterconnectsResponse response) { super(context, response); } @@ -4865,14 +4873,16 @@ private static ListInterconnectsPage createEmptyPage() { @Override protected ListInterconnectsPage createPage( - PageContext context, - ListInterconnectsResponse response) { + @Nullable PageContext + context, + @Nullable ListInterconnectsResponse response) { return new ListInterconnectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4887,7 +4897,7 @@ public static class ListInterconnectsFixedSizeCollection ListInterconnectsFixedSizeCollection> { private ListInterconnectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4897,7 +4907,7 @@ private static ListInterconnectsFixedSizeCollection createEmptyCollection() { @Override protected ListInterconnectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterconnectsFixedSizeCollection(pages, collectionSize); } } @@ -4939,12 +4949,13 @@ public static class ListInterconnectAttachmentsPage ListInterconnectAttachmentsPage> { private ListInterconnectAttachmentsPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, ListInterconnectAttachmentsResponse, InterconnectAttachment> context, - ListInterconnectAttachmentsResponse response) { + @Nullable ListInterconnectAttachmentsResponse response) { super(context, response); } @@ -4954,18 +4965,20 @@ private static ListInterconnectAttachmentsPage createEmptyPage() { @Override protected ListInterconnectAttachmentsPage createPage( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, ListInterconnectAttachmentsResponse, InterconnectAttachment> context, - ListInterconnectAttachmentsResponse response) { + @Nullable ListInterconnectAttachmentsResponse response) { return new ListInterconnectAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterconnectAttachmentsRequest, ListInterconnectAttachmentsResponse, InterconnectAttachment> @@ -4984,7 +4997,7 @@ public static class ListInterconnectAttachmentsFixedSizeCollection ListInterconnectAttachmentsFixedSizeCollection> { private ListInterconnectAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4994,7 +5007,7 @@ private static ListInterconnectAttachmentsFixedSizeCollection createEmptyCollect @Override protected ListInterconnectAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterconnectAttachmentsFixedSizeCollection(pages, collectionSize); } } @@ -5025,8 +5038,8 @@ public static class ListRoutersPage extends AbstractPage { private ListRoutersPage( - PageContext context, - ListRoutersResponse response) { + @Nullable PageContext context, + @Nullable ListRoutersResponse response) { super(context, response); } @@ -5036,14 +5049,14 @@ private static ListRoutersPage createEmptyPage() { @Override protected ListRoutersPage createPage( - PageContext context, - ListRoutersResponse response) { + @Nullable PageContext context, + @Nullable ListRoutersResponse response) { return new ListRoutersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5057,7 +5070,8 @@ public static class ListRoutersFixedSizeCollection ListRoutersPage, ListRoutersFixedSizeCollection> { - private ListRoutersFixedSizeCollection(List pages, int collectionSize) { + private ListRoutersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5067,7 +5081,7 @@ private static ListRoutersFixedSizeCollection createEmptyCollection() { @Override protected ListRoutersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutersFixedSizeCollection(pages, collectionSize); } } @@ -5101,8 +5115,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5112,14 +5126,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5133,7 +5147,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5143,7 +5158,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkSettings.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkSettings.java index 9848f5853dba..f3a4f18730d7 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkSettings.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/EdgeNetworkSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -411,7 +412,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); } @@ -431,7 +432,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EdgeNetworkStubSettings.newBuilder(clientContext)); } diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStub.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStub.java index 0691276134ca..406a4e70f546 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStub.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStub.java @@ -79,6 +79,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -90,11 +91,12 @@ @Generated("by gapic-generator-java") public abstract class EdgeNetworkStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java index cbce26459389..8fa079c8ec98 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/EdgeNetworkStubSettings.java @@ -113,6 +113,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -984,7 +985,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); } @@ -1177,7 +1178,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); initializeZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentName.java index 2206bef5fc7a..1bdfdf855475 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectAttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static InterconnectAttachmentName parse(String formattedString) { + public static @Nullable InterconnectAttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InterconnectAttachmentName> values) { List list = new ArrayList<>(values.size()); for (InterconnectAttachmentName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectName.java index 33dc81a9b46a..fad976121639 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/InterconnectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String zone, String .toString(); } - public static InterconnectName parse(String formattedString) { + public static @Nullable InterconnectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InterconnectName> values) { List list = new ArrayList<>(values.size()); for (InterconnectName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/LocationName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/LocationName.java index edd4c97c86e1..84a4c75fb3b7 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/LocationName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/NetworkName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/NetworkName.java index db50f0f20545..859c905a91f1 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/NetworkName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/NetworkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String zone, String .toString(); } - public static NetworkName parse(String formattedString) { + public static @Nullable NetworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NetworkName> values) { List list = new ArrayList<>(values.size()); for (NetworkName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RouterName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RouterName.java index 8a725e0edb3c..56c995d6105f 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RouterName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/RouterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String zone, String .toString(); } - public static RouterName parse(String formattedString) { + public static @Nullable RouterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RouterName> values) { List list = new ArrayList<>(values.size()); for (RouterName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/SubnetName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/SubnetName.java index 2cbcaa566e43..2823885265ef 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/SubnetName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/SubnetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String zone, String .toString(); } - public static SubnetName parse(String formattedString) { + public static @Nullable SubnetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubnetName> values) { List list = new ArrayList<>(values.size()); for (SubnetName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneName.java b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneName.java index 91317a1fd8ef..dc5425778b16 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneName.java +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/src/main/java/com/google/cloud/edgenetwork/v1/ZoneName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String zone) { return newBuilder().setProject(project).setLocation(location).setZone(zone).build().toString(); } - public static ZoneName parse(String formattedString) { + public static @Nullable ZoneName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ZoneName> values) { List list = new ArrayList<>(values.size()); for (ZoneName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java index 94124fd2c6ff..7b3a6759cfd1 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceClient.java @@ -33,6 +33,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. /** @@ -302,7 +303,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EnterpriseKnowledgeGraphServiceClient implements BackgroundResource { - private final EnterpriseKnowledgeGraphServiceSettings settings; + private final @Nullable EnterpriseKnowledgeGraphServiceSettings settings; private final EnterpriseKnowledgeGraphServiceStub stub; /** Constructs an instance of EnterpriseKnowledgeGraphServiceClient with default settings. */ @@ -347,7 +348,7 @@ protected EnterpriseKnowledgeGraphServiceClient(EnterpriseKnowledgeGraphServiceS this.stub = stub; } - public final EnterpriseKnowledgeGraphServiceSettings getSettings() { + public final @Nullable EnterpriseKnowledgeGraphServiceSettings getSettings() { return settings; } @@ -385,7 +386,7 @@ public EnterpriseKnowledgeGraphServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityReconciliationJob createEntityReconciliationJob( - LocationName parent, EntityReconciliationJob entityReconciliationJob) { + @Nullable LocationName parent, EntityReconciliationJob entityReconciliationJob) { CreateEntityReconciliationJobRequest request = CreateEntityReconciliationJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -526,7 +527,7 @@ public final EntityReconciliationJob createEntityReconciliationJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityReconciliationJob getEntityReconciliationJob( - EntityReconciliationJobName name) { + @Nullable EntityReconciliationJobName name) { GetEntityReconciliationJobRequest request = GetEntityReconciliationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -662,7 +663,7 @@ public final EntityReconciliationJob getEntityReconciliationJob( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEntityReconciliationJobsPagedResponse listEntityReconciliationJobs( - LocationName parent) { + @Nullable LocationName parent) { ListEntityReconciliationJobsRequest request = ListEntityReconciliationJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -848,7 +849,7 @@ public final ListEntityReconciliationJobsPagedResponse listEntityReconciliationJ * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelEntityReconciliationJob(EntityReconciliationJobName name) { + public final void cancelEntityReconciliationJob(@Nullable EntityReconciliationJobName name) { CancelEntityReconciliationJobRequest request = CancelEntityReconciliationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -979,7 +980,7 @@ public final void cancelEntityReconciliationJob(CancelEntityReconciliationJobReq * `projects/{project}/locations/{location}/entityReconciliationJobs/{entity_reconciliation_job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEntityReconciliationJob(EntityReconciliationJobName name) { + public final void deleteEntityReconciliationJob(@Nullable EntityReconciliationJobName name) { DeleteEntityReconciliationJobRequest request = DeleteEntityReconciliationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1113,7 +1114,7 @@ public final void deleteEntityReconciliationJob(DeleteEntityReconciliationJobReq * @param ids Required. The list of entity ids to be used for lookup. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LookupResponse lookup(LocationName parent, List ids) { + public final LookupResponse lookup(@Nullable LocationName parent, List ids) { LookupRequest request = LookupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1239,7 +1240,7 @@ public final UnaryCallable lookupCallable() { * @param query Required. The literal query string for search. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchResponse search(LocationName parent, String query) { + public final SearchResponse search(@Nullable LocationName parent, String query) { SearchRequest request = SearchRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1370,7 +1371,8 @@ public final UnaryCallable searchCallable() { * @param ids Required. The list of entity ids to be used for lookup. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LookupPublicKgResponse lookupPublicKg(LocationName parent, List ids) { + public final LookupPublicKgResponse lookupPublicKg( + @Nullable LocationName parent, List ids) { LookupPublicKgRequest request = LookupPublicKgRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1501,7 +1503,7 @@ public final LookupPublicKgResponse lookupPublicKg(LookupPublicKgRequest request * @param query Required. The literal query string for search. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchPublicKgResponse searchPublicKg(LocationName parent, String query) { + public final SearchPublicKgResponse searchPublicKg(@Nullable LocationName parent, String query) { SearchPublicKgRequest request = SearchPublicKgRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1677,12 +1679,13 @@ public static class ListEntityReconciliationJobsPage ListEntityReconciliationJobsPage> { private ListEntityReconciliationJobsPage( - PageContext< + @Nullable + PageContext< ListEntityReconciliationJobsRequest, ListEntityReconciliationJobsResponse, EntityReconciliationJob> context, - ListEntityReconciliationJobsResponse response) { + @Nullable ListEntityReconciliationJobsResponse response) { super(context, response); } @@ -1692,18 +1695,20 @@ private static ListEntityReconciliationJobsPage createEmptyPage() { @Override protected ListEntityReconciliationJobsPage createPage( - PageContext< + @Nullable + PageContext< ListEntityReconciliationJobsRequest, ListEntityReconciliationJobsResponse, EntityReconciliationJob> context, - ListEntityReconciliationJobsResponse response) { + @Nullable ListEntityReconciliationJobsResponse response) { return new ListEntityReconciliationJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEntityReconciliationJobsRequest, ListEntityReconciliationJobsResponse, EntityReconciliationJob> @@ -1722,7 +1727,7 @@ public static class ListEntityReconciliationJobsFixedSizeCollection ListEntityReconciliationJobsFixedSizeCollection> { private ListEntityReconciliationJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1732,7 +1737,7 @@ private static ListEntityReconciliationJobsFixedSizeCollection createEmptyCollec @Override protected ListEntityReconciliationJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntityReconciliationJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java index 5d6f565b4387..7eb2b44e338d 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EnterpriseKnowledgeGraphServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -210,7 +211,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); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnterpriseKnowledgeGraphServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java index d83c9ab38535..f5d143d2ab20 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/EnterpriseKnowledgeGraphServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -497,7 +498,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEntityReconciliationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java index 7715b9cf7a69..48642b541d90 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/CloudKnowledgeGraphEntityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String cloudKnowled .toString(); } - public static CloudKnowledgeGraphEntityName parse(String formattedString) { + public static @Nullable CloudKnowledgeGraphEntityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudKnowledgeGraphEntityName> values) { List list = new ArrayList<>(values.size()); for (CloudKnowledgeGraphEntityName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java index 4d990f21865c..d5172d218945 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/EntityReconciliationJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String entityReconc .toString(); } - public static EntityReconciliationJobName parse(String formattedString) { + public static @Nullable EntityReconciliationJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntityReconciliationJobName> values) { List list = new ArrayList<>(values.size()); for (EntityReconciliationJobName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java index 99f71cdbf71d..29b53a05cd8b 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java index 26cc7e97821e..4bef685124a9 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/PublicKnowledgeGraphEntityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String publicKnowle .toString(); } - public static PublicKnowledgeGraphEntityName parse(String formattedString) { + public static @Nullable PublicKnowledgeGraphEntityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PublicKnowledgeGraphEntityName> values) { List list = new ArrayList<>(values.size()); for (PublicKnowledgeGraphEntityName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java index c04119b6974a..2198fd701d20 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java @@ -25,6 +25,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. /** @@ -155,7 +156,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ErrorGroupServiceClient implements BackgroundResource { - private final ErrorGroupServiceSettings settings; + private final @Nullable ErrorGroupServiceSettings settings; private final ErrorGroupServiceStub stub; /** Constructs an instance of ErrorGroupServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected ErrorGroupServiceClient(ErrorGroupServiceStub stub) { this.stub = stub; } - public final ErrorGroupServiceSettings getSettings() { + public final @Nullable ErrorGroupServiceSettings getSettings() { return settings; } @@ -269,7 +270,7 @@ public final ErrorGroup getGroup(GroupName groupName) { * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ErrorGroup getGroup(ErrorGroupName groupName) { + public final ErrorGroup getGroup(@Nullable ErrorGroupName groupName) { GetGroupRequest request = GetGroupRequest.newBuilder() .setGroupName(groupName == null ? null : groupName.toString()) diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java index aba60a92b4c8..e8704472d6b7 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ErrorGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index 6765ece1d066..a3890478a119 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java @@ -33,6 +33,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. /** @@ -186,7 +187,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ErrorStatsServiceClient implements BackgroundResource { - private final ErrorStatsServiceSettings settings; + private final @Nullable ErrorStatsServiceSettings settings; private final ErrorStatsServiceStub stub; /** Constructs an instance of ErrorStatsServiceClient with default settings. */ @@ -226,7 +227,7 @@ protected ErrorStatsServiceClient(ErrorStatsServiceStub stub) { this.stub = stub; } - public final ErrorStatsServiceSettings getSettings() { + public final @Nullable ErrorStatsServiceSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public ErrorStatsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGroupStatsPagedResponse listGroupStats( - ProjectName projectName, QueryTimeRange timeRange) { + @Nullable ProjectName projectName, QueryTimeRange timeRange) { ListGroupStatsRequest request = ListGroupStatsRequest.newBuilder() .setProjectName(projectName == null ? null : projectName.toString()) @@ -507,7 +508,8 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re * Notice](https://cloud.google.com/terms/cloud-privacy-notice). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(ProjectName projectName, String groupId) { + public final ListEventsPagedResponse listEvents( + @Nullable ProjectName projectName, String groupId) { ListEventsRequest request = ListEventsRequest.newBuilder() .setProjectName(projectName == null ? null : projectName.toString()) @@ -698,7 +700,7 @@ public final UnaryCallable listEventsCall * when unspecified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeleteEventsResponse deleteEvents(ProjectName projectName) { + public final DeleteEventsResponse deleteEvents(@Nullable ProjectName projectName) { DeleteEventsRequest request = DeleteEventsRequest.newBuilder() .setProjectName(projectName == null ? null : projectName.toString()) @@ -855,8 +857,9 @@ public static class ListGroupStatsPage ListGroupStatsRequest, ListGroupStatsResponse, ErrorGroupStats, ListGroupStatsPage> { private ListGroupStatsPage( - PageContext context, - ListGroupStatsResponse response) { + @Nullable PageContext + context, + @Nullable ListGroupStatsResponse response) { super(context, response); } @@ -866,14 +869,16 @@ private static ListGroupStatsPage createEmptyPage() { @Override protected ListGroupStatsPage createPage( - PageContext context, - ListGroupStatsResponse response) { + @Nullable PageContext + context, + @Nullable ListGroupStatsResponse response) { return new ListGroupStatsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -887,7 +892,8 @@ public static class ListGroupStatsFixedSizeCollection ListGroupStatsPage, ListGroupStatsFixedSizeCollection> { - private ListGroupStatsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupStatsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -897,7 +903,7 @@ private static ListGroupStatsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupStatsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupStatsFixedSizeCollection(pages, collectionSize); } } @@ -928,8 +934,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -939,14 +945,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -960,7 +966,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -970,7 +977,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java index d60b00c6e750..f67ee15a6ce1 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ErrorStatsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java index 31aa8d78068f..024f39f16a31 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceClient.java @@ -25,6 +25,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. /** @@ -149,7 +150,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReportErrorsServiceClient implements BackgroundResource { - private final ReportErrorsServiceSettings settings; + private final @Nullable ReportErrorsServiceSettings settings; private final ReportErrorsServiceStub stub; /** Constructs an instance of ReportErrorsServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected ReportErrorsServiceClient(ReportErrorsServiceStub stub) { this.stub = stub; } - public final ReportErrorsServiceSettings getSettings() { + public final @Nullable ReportErrorsServiceSettings getSettings() { return settings; } @@ -246,7 +247,7 @@ public ReportErrorsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReportErrorEventResponse reportErrorEvent( - ProjectName projectName, ReportedErrorEvent event) { + @Nullable ProjectName projectName, ReportedErrorEvent event) { ReportErrorEventRequest request = ReportErrorEventRequest.newBuilder() .setProjectName(projectName == null ? null : projectName.toString()) diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java index 2f6b79335ab5..877467f7f54a 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ReportErrorsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReportErrorsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java index ecb72c949848..f821dd658e0c 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorGroupServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -289,7 +290,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java index 5e3f563f1b1f..1f5905171b2c 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ErrorStatsServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -356,7 +357,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); } @@ -430,7 +431,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGroupStatsSettings = PagedCallSettings.newBuilder(LIST_GROUP_STATS_PAGE_STR_FACT); diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java index ca7916f9dfc2..7176e2477532 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/ReportErrorsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -278,7 +279,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); reportErrorEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupName.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupName.java index 0ef2f7d55ec0..18cb43fbe568 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupName.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String group) { return newBuilder().setProject(project).setGroup(group).build().toString(); } - public static ErrorGroupName parse(String formattedString) { + public static @Nullable ErrorGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ErrorGroupName> values) { List list = new ArrayList<>(values.size()); for (ErrorGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ProjectName.java b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ProjectName.java index 4f561f75903a..8d4125934800 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ProjectName.java +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java index 9065f869c4e0..a9f4d0bf5f4a 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java @@ -34,6 +34,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. /** @@ -256,7 +257,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EssentialContactsServiceClient implements BackgroundResource { - private final EssentialContactsServiceSettings settings; + private final @Nullable EssentialContactsServiceSettings settings; private final EssentialContactsServiceStub stub; /** Constructs an instance of EssentialContactsServiceClient with default settings. */ @@ -298,7 +299,7 @@ protected EssentialContactsServiceClient(EssentialContactsServiceStub stub) { this.stub = stub; } - public final EssentialContactsServiceSettings getSettings() { + public final @Nullable EssentialContactsServiceSettings getSettings() { return settings; } @@ -331,7 +332,7 @@ public EssentialContactsServiceStub getStub() { * @param contact Required. The contact to create. Must specify an email address and language tag. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact createContact(FolderName parent, Contact contact) { + public final Contact createContact(@Nullable FolderName parent, Contact contact) { CreateContactRequest request = CreateContactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -365,7 +366,7 @@ public final Contact createContact(FolderName parent, Contact contact) { * @param contact Required. The contact to create. Must specify an email address and language tag. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact createContact(OrganizationName parent, Contact contact) { + public final Contact createContact(@Nullable OrganizationName parent, Contact contact) { CreateContactRequest request = CreateContactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -399,7 +400,7 @@ public final Contact createContact(OrganizationName parent, Contact contact) { * @param contact Required. The contact to create. Must specify an email address and language tag. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact createContact(ProjectName parent, Contact contact) { + public final Contact createContact(@Nullable ProjectName parent, Contact contact) { CreateContactRequest request = CreateContactRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -617,7 +618,7 @@ public final UnaryCallable updateContactCallable( * folders/{folder_id} or projects/{project_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContactsPagedResponse listContacts(FolderName parent) { + public final ListContactsPagedResponse listContacts(@Nullable FolderName parent) { ListContactsRequest request = ListContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -650,7 +651,7 @@ public final ListContactsPagedResponse listContacts(FolderName parent) { * folders/{folder_id} or projects/{project_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContactsPagedResponse listContacts(OrganizationName parent) { + public final ListContactsPagedResponse listContacts(@Nullable OrganizationName parent) { ListContactsRequest request = ListContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -683,7 +684,7 @@ public final ListContactsPagedResponse listContacts(OrganizationName parent) { * folders/{folder_id} or projects/{project_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListContactsPagedResponse listContacts(ProjectName parent) { + public final ListContactsPagedResponse listContacts(@Nullable ProjectName parent) { ListContactsRequest request = ListContactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -852,7 +853,7 @@ public final UnaryCallable listContac * folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Contact getContact(ContactName name) { + public final Contact getContact(@Nullable ContactName name) { GetContactRequest request = GetContactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getContact(request); @@ -969,7 +970,7 @@ public final UnaryCallable getContactCallable() { * folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteContact(ContactName name) { + public final void deleteContact(@Nullable ContactName name) { DeleteContactRequest request = DeleteContactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteContact(request); @@ -1298,8 +1299,8 @@ public static class ListContactsPage extends AbstractPage { private ListContactsPage( - PageContext context, - ListContactsResponse response) { + @Nullable PageContext context, + @Nullable ListContactsResponse response) { super(context, response); } @@ -1309,14 +1310,14 @@ private static ListContactsPage createEmptyPage() { @Override protected ListContactsPage createPage( - PageContext context, - ListContactsResponse response) { + @Nullable PageContext context, + @Nullable ListContactsResponse response) { return new ListContactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1330,7 +1331,8 @@ public static class ListContactsFixedSizeCollection ListContactsPage, ListContactsFixedSizeCollection> { - private ListContactsFixedSizeCollection(List pages, int collectionSize) { + private ListContactsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1340,7 +1342,7 @@ private static ListContactsFixedSizeCollection createEmptyCollection() { @Override protected ListContactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListContactsFixedSizeCollection(pages, collectionSize); } } @@ -1374,8 +1376,8 @@ public static class ComputeContactsPage ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage> { private ComputeContactsPage( - PageContext context, - ComputeContactsResponse response) { + @Nullable PageContext context, + @Nullable ComputeContactsResponse response) { super(context, response); } @@ -1385,14 +1387,14 @@ private static ComputeContactsPage createEmptyPage() { @Override protected ComputeContactsPage createPage( - PageContext context, - ComputeContactsResponse response) { + @Nullable PageContext context, + @Nullable ComputeContactsResponse response) { return new ComputeContactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1407,7 +1409,7 @@ public static class ComputeContactsFixedSizeCollection ComputeContactsFixedSizeCollection> { private ComputeContactsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1417,7 +1419,7 @@ private static ComputeContactsFixedSizeCollection createEmptyCollection() { @Override protected ComputeContactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ComputeContactsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java index a1624ab9d3ce..5296e659d0e4 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EssentialContactsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java index 67a561db3c7f..2e4c0884a803 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -381,7 +382,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); } @@ -471,7 +472,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createContactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java index c63b06c68d4a..03559916ba8f 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -153,7 +154,7 @@ public static String formatOrganizationContactName(String organization, String c .toString(); } - public static ContactName parse(String formattedString) { + public static @Nullable ContactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -178,7 +179,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ContactName> values) { List list = new ArrayList<>(values.size()); for (ContactName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java index a7fb9a036466..e3590e20baaf 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java index 73adf5a51a4d..634cedbe1db8 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java index 0e8288c05e03..c14088783677 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java index 16c79183a4b2..6f38daf74cfd 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java @@ -24,6 +24,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PublisherClient implements BackgroundResource { - private final PublisherSettings settings; + private final @Nullable PublisherSettings settings; private final PublisherStub stub; /** Constructs an instance of PublisherClient with default settings. */ @@ -221,7 +222,7 @@ protected PublisherClient(PublisherStub stub) { this.stub = stub; } - public final PublisherSettings getSettings() { + public final @Nullable PublisherSettings getSettings() { return settings; } diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java index a8c170ff7723..574ab98f5e8f 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublisherStubSettings.newBuilder(clientContext)); } diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java index 3490bbf366d5..5fd62f46ae12 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -301,7 +302,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); publishChannelConnectionEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java index 1ed78af63302..17fcac103fc0 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java @@ -47,6 +47,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. /** @@ -971,7 +972,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EventarcClient implements BackgroundResource { - private final EventarcSettings settings; + private final @Nullable EventarcSettings settings; private final EventarcStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1017,7 +1018,7 @@ protected EventarcClient(EventarcStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EventarcSettings getSettings() { + public final @Nullable EventarcSettings getSettings() { return settings; } @@ -1063,7 +1064,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the trigger to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Trigger getTrigger(TriggerName name) { + public final Trigger getTrigger(@Nullable TriggerName name) { GetTriggerRequest request = GetTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTrigger(request); @@ -1173,7 +1174,7 @@ public final UnaryCallable getTriggerCallable() { * @param parent Required. The parent collection to list triggers on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTriggersPagedResponse listTriggers(LocationName parent) { + public final ListTriggersPagedResponse listTriggers(@Nullable LocationName parent) { ListTriggersRequest request = ListTriggersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1343,7 +1344,7 @@ public final UnaryCallable listTrigge * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTriggerAsync( - LocationName parent, Trigger trigger, String triggerId) { + @Nullable LocationName parent, Trigger trigger, String triggerId) { CreateTriggerRequest request = CreateTriggerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1641,7 +1642,7 @@ public final UnaryCallable updateTriggerCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTriggerAsync( - TriggerName name, boolean allowMissing) { + @Nullable TriggerName name, boolean allowMissing) { DeleteTriggerRequest request = DeleteTriggerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1796,7 +1797,7 @@ public final UnaryCallable deleteTriggerCallabl * @param name Required. The name of the channel to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Channel getChannel(ChannelName name) { + public final Channel getChannel(@Nullable ChannelName name) { GetChannelRequest request = GetChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChannel(request); @@ -1906,7 +1907,7 @@ public final UnaryCallable getChannelCallable() { * @param parent Required. The parent collection to list channels on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChannelsPagedResponse listChannels(LocationName parent) { + public final ListChannelsPagedResponse listChannels(@Nullable LocationName parent) { ListChannelsRequest request = ListChannelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2073,7 +2074,7 @@ public final UnaryCallable listChanne * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createChannelAsync( - LocationName parent, Channel channel, String channelId) { + @Nullable LocationName parent, Channel channel, String channelId) { CreateChannelRequest request = CreateChannelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2357,7 +2358,8 @@ public final UnaryCallable updateChannelCallabl * @param name Required. The name of the channel to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteChannelAsync(ChannelName name) { + public final OperationFuture deleteChannelAsync( + @Nullable ChannelName name) { DeleteChannelRequest request = DeleteChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteChannelAsync(request); @@ -2498,7 +2500,7 @@ public final UnaryCallable deleteChannelCallabl * @param name Required. The name of the provider to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Provider getProvider(ProviderName name) { + public final Provider getProvider(@Nullable ProviderName name) { GetProviderRequest request = GetProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProvider(request); @@ -2608,7 +2610,7 @@ public final UnaryCallable getProviderCallable() { * @param parent Required. The parent of the provider to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProvidersPagedResponse listProviders(LocationName parent) { + public final ListProvidersPagedResponse listProviders(@Nullable LocationName parent) { ListProvidersRequest request = ListProvidersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2774,7 +2776,7 @@ public final UnaryCallable listProv * @param name Required. The name of the channel connection to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelConnection getChannelConnection(ChannelConnectionName name) { + public final ChannelConnection getChannelConnection(@Nullable ChannelConnectionName name) { GetChannelConnectionRequest request = GetChannelConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2894,7 +2896,8 @@ public final ChannelConnection getChannelConnection(GetChannelConnectionRequest * @param parent Required. The parent collection from which to list channel connections. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChannelConnectionsPagedResponse listChannelConnections(LocationName parent) { + public final ListChannelConnectionsPagedResponse listChannelConnections( + @Nullable LocationName parent) { ListChannelConnectionsRequest request = ListChannelConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3068,7 +3071,9 @@ public final ListChannelConnectionsPagedResponse listChannelConnections( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createChannelConnectionAsync( - LocationName parent, ChannelConnection channelConnection, String channelConnectionId) { + @Nullable LocationName parent, + ChannelConnection channelConnection, + String channelConnectionId) { CreateChannelConnectionRequest request = CreateChannelConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3235,7 +3240,7 @@ public final OperationFuture createChannel * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteChannelConnectionAsync( - ChannelConnectionName name) { + @Nullable ChannelConnectionName name) { DeleteChannelConnectionRequest request = DeleteChannelConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3388,7 +3393,7 @@ public final OperationFuture deleteChannel * @param name Required. The name of the config to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleChannelConfig getGoogleChannelConfig(GoogleChannelConfigName name) { + public final GoogleChannelConfig getGoogleChannelConfig(@Nullable GoogleChannelConfigName name) { GetGoogleChannelConfigRequest request = GetGoogleChannelConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3600,7 +3605,7 @@ public final GoogleChannelConfig updateGoogleChannelConfig( * @param name Required. The name of the message bus to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MessageBus getMessageBus(MessageBusName name) { + public final MessageBus getMessageBus(@Nullable MessageBusName name) { GetMessageBusRequest request = GetMessageBusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMessageBus(request); @@ -3710,7 +3715,7 @@ public final UnaryCallable getMessageBusCallab * @param parent Required. The parent collection to list message buses on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessageBusesPagedResponse listMessageBuses(LocationName parent) { + public final ListMessageBusesPagedResponse listMessageBuses(@Nullable LocationName parent) { ListMessageBusesRequest request = ListMessageBusesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3881,7 +3886,7 @@ public final ListMessageBusesPagedResponse listMessageBuses(ListMessageBusesRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMessageBusEnrollmentsPagedResponse listMessageBusEnrollments( - MessageBusName parent) { + @Nullable MessageBusName parent) { ListMessageBusEnrollmentsRequest request = ListMessageBusEnrollmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4053,7 +4058,7 @@ public final ListMessageBusEnrollmentsPagedResponse listMessageBusEnrollments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMessageBusAsync( - LocationName parent, MessageBus messageBus, String messageBusId) { + @Nullable LocationName parent, MessageBus messageBus, String messageBusId) { CreateMessageBusRequest request = CreateMessageBusRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4349,7 +4354,7 @@ public final UnaryCallable updateMessageBusC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMessageBusAsync( - MessageBusName name, String etag) { + @Nullable MessageBusName name, String etag) { DeleteMessageBusRequest request = DeleteMessageBusRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4504,7 +4509,7 @@ public final UnaryCallable deleteMessageBusC * @param name Required. The name of the Enrollment to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Enrollment getEnrollment(EnrollmentName name) { + public final Enrollment getEnrollment(@Nullable EnrollmentName name) { GetEnrollmentRequest request = GetEnrollmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEnrollment(request); @@ -4614,7 +4619,7 @@ public final UnaryCallable getEnrollmentCallab * @param parent Required. The parent collection to list triggers on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnrollmentsPagedResponse listEnrollments(LocationName parent) { + public final ListEnrollmentsPagedResponse listEnrollments(@Nullable LocationName parent) { ListEnrollmentsRequest request = ListEnrollmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4788,7 +4793,7 @@ public final ListEnrollmentsPagedResponse listEnrollments(ListEnrollmentsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEnrollmentAsync( - LocationName parent, Enrollment enrollment, String enrollmentId) { + @Nullable LocationName parent, Enrollment enrollment, String enrollmentId) { CreateEnrollmentRequest request = CreateEnrollmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5084,7 +5089,7 @@ public final UnaryCallable updateEnrollmentC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEnrollmentAsync( - EnrollmentName name, String etag) { + @Nullable EnrollmentName name, String etag) { DeleteEnrollmentRequest request = DeleteEnrollmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5239,7 +5244,7 @@ public final UnaryCallable deleteEnrollmentC * @param name Required. The name of the pipeline to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Pipeline getPipeline(PipelineName name) { + public final Pipeline getPipeline(@Nullable PipelineName name) { GetPipelineRequest request = GetPipelineRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPipeline(request); @@ -5349,7 +5354,7 @@ public final UnaryCallable getPipelineCallable() { * @param parent Required. The parent collection to list pipelines on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPipelinesPagedResponse listPipelines(LocationName parent) { + public final ListPipelinesPagedResponse listPipelines(@Nullable LocationName parent) { ListPipelinesRequest request = ListPipelinesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5520,7 +5525,7 @@ public final UnaryCallable listPipe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPipelineAsync( - LocationName parent, Pipeline pipeline, String pipelineId) { + @Nullable LocationName parent, Pipeline pipeline, String pipelineId) { CreatePipelineRequest request = CreatePipelineRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5812,7 +5817,7 @@ public final UnaryCallable updatePipelineCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePipelineAsync( - PipelineName name, String etag) { + @Nullable PipelineName name, String etag) { DeletePipelineRequest request = DeletePipelineRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5968,7 +5973,7 @@ public final UnaryCallable deletePipelineCalla * @param name Required. The name of the google api source to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleApiSource getGoogleApiSource(GoogleApiSourceName name) { + public final GoogleApiSource getGoogleApiSource(@Nullable GoogleApiSourceName name) { GetGoogleApiSourceRequest request = GetGoogleApiSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6088,7 +6093,8 @@ public final GoogleApiSource getGoogleApiSource(GetGoogleApiSourceRequest reques * @param parent Required. The parent collection to list GoogleApiSources on. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGoogleApiSourcesPagedResponse listGoogleApiSources(LocationName parent) { + public final ListGoogleApiSourcesPagedResponse listGoogleApiSources( + @Nullable LocationName parent) { ListGoogleApiSourcesRequest request = ListGoogleApiSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6267,7 +6273,7 @@ public final ListGoogleApiSourcesPagedResponse listGoogleApiSources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGoogleApiSourceAsync( - LocationName parent, GoogleApiSource googleApiSource, String googleApiSourceId) { + @Nullable LocationName parent, GoogleApiSource googleApiSource, String googleApiSourceId) { CreateGoogleApiSourceRequest request = CreateGoogleApiSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6571,7 +6577,7 @@ public final OperationFuture updateGoogleApi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGoogleApiSourceAsync( - GoogleApiSourceName name, String etag) { + @Nullable GoogleApiSourceName name, String etag) { DeleteGoogleApiSourceRequest request = DeleteGoogleApiSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7117,8 +7123,8 @@ public static class ListTriggersPage extends AbstractPage { private ListTriggersPage( - PageContext context, - ListTriggersResponse response) { + @Nullable PageContext context, + @Nullable ListTriggersResponse response) { super(context, response); } @@ -7128,14 +7134,14 @@ private static ListTriggersPage createEmptyPage() { @Override protected ListTriggersPage createPage( - PageContext context, - ListTriggersResponse response) { + @Nullable PageContext context, + @Nullable ListTriggersResponse response) { return new ListTriggersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7149,7 +7155,8 @@ public static class ListTriggersFixedSizeCollection ListTriggersPage, ListTriggersFixedSizeCollection> { - private ListTriggersFixedSizeCollection(List pages, int collectionSize) { + private ListTriggersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7159,7 +7166,7 @@ private static ListTriggersFixedSizeCollection createEmptyCollection() { @Override protected ListTriggersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTriggersFixedSizeCollection(pages, collectionSize); } } @@ -7192,8 +7199,8 @@ public static class ListChannelsPage extends AbstractPage { private ListChannelsPage( - PageContext context, - ListChannelsResponse response) { + @Nullable PageContext context, + @Nullable ListChannelsResponse response) { super(context, response); } @@ -7203,14 +7210,14 @@ private static ListChannelsPage createEmptyPage() { @Override protected ListChannelsPage createPage( - PageContext context, - ListChannelsResponse response) { + @Nullable PageContext context, + @Nullable ListChannelsResponse response) { return new ListChannelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7224,7 +7231,8 @@ public static class ListChannelsFixedSizeCollection ListChannelsPage, ListChannelsFixedSizeCollection> { - private ListChannelsFixedSizeCollection(List pages, int collectionSize) { + private ListChannelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7234,7 +7242,7 @@ private static ListChannelsFixedSizeCollection createEmptyCollection() { @Override protected ListChannelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelsFixedSizeCollection(pages, collectionSize); } } @@ -7268,8 +7276,8 @@ public static class ListProvidersPage ListProvidersRequest, ListProvidersResponse, Provider, ListProvidersPage> { private ListProvidersPage( - PageContext context, - ListProvidersResponse response) { + @Nullable PageContext context, + @Nullable ListProvidersResponse response) { super(context, response); } @@ -7279,14 +7287,14 @@ private static ListProvidersPage createEmptyPage() { @Override protected ListProvidersPage createPage( - PageContext context, - ListProvidersResponse response) { + @Nullable PageContext context, + @Nullable ListProvidersResponse response) { return new ListProvidersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7300,7 +7308,8 @@ public static class ListProvidersFixedSizeCollection ListProvidersPage, ListProvidersFixedSizeCollection> { - private ListProvidersFixedSizeCollection(List pages, int collectionSize) { + private ListProvidersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7310,7 +7319,7 @@ private static ListProvidersFixedSizeCollection createEmptyCollection() { @Override protected ListProvidersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProvidersFixedSizeCollection(pages, collectionSize); } } @@ -7349,10 +7358,11 @@ public static class ListChannelConnectionsPage ListChannelConnectionsPage> { private ListChannelConnectionsPage( - PageContext< + @Nullable + PageContext< ListChannelConnectionsRequest, ListChannelConnectionsResponse, ChannelConnection> context, - ListChannelConnectionsResponse response) { + @Nullable ListChannelConnectionsResponse response) { super(context, response); } @@ -7362,16 +7372,18 @@ private static ListChannelConnectionsPage createEmptyPage() { @Override protected ListChannelConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListChannelConnectionsRequest, ListChannelConnectionsResponse, ChannelConnection> context, - ListChannelConnectionsResponse response) { + @Nullable ListChannelConnectionsResponse response) { return new ListChannelConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListChannelConnectionsRequest, ListChannelConnectionsResponse, ChannelConnection> context, ApiFuture futureResponse) { @@ -7388,7 +7400,7 @@ public static class ListChannelConnectionsFixedSizeCollection ListChannelConnectionsFixedSizeCollection> { private ListChannelConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7398,7 +7410,7 @@ private static ListChannelConnectionsFixedSizeCollection createEmptyCollection() @Override protected ListChannelConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -7432,8 +7444,9 @@ public static class ListMessageBusesPage ListMessageBusesRequest, ListMessageBusesResponse, MessageBus, ListMessageBusesPage> { private ListMessageBusesPage( - PageContext context, - ListMessageBusesResponse response) { + @Nullable PageContext + context, + @Nullable ListMessageBusesResponse response) { super(context, response); } @@ -7443,14 +7456,16 @@ private static ListMessageBusesPage createEmptyPage() { @Override protected ListMessageBusesPage createPage( - PageContext context, - ListMessageBusesResponse response) { + @Nullable PageContext + context, + @Nullable ListMessageBusesResponse response) { return new ListMessageBusesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7465,7 +7480,7 @@ public static class ListMessageBusesFixedSizeCollection ListMessageBusesFixedSizeCollection> { private ListMessageBusesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7475,7 +7490,7 @@ private static ListMessageBusesFixedSizeCollection createEmptyCollection() { @Override protected ListMessageBusesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessageBusesFixedSizeCollection(pages, collectionSize); } } @@ -7513,9 +7528,10 @@ public static class ListMessageBusEnrollmentsPage ListMessageBusEnrollmentsPage> { private ListMessageBusEnrollmentsPage( - PageContext + @Nullable + PageContext context, - ListMessageBusEnrollmentsResponse response) { + @Nullable ListMessageBusEnrollmentsResponse response) { super(context, response); } @@ -7525,15 +7541,17 @@ private static ListMessageBusEnrollmentsPage createEmptyPage() { @Override protected ListMessageBusEnrollmentsPage createPage( - PageContext + @Nullable + PageContext context, - ListMessageBusEnrollmentsResponse response) { + @Nullable ListMessageBusEnrollmentsResponse response) { return new ListMessageBusEnrollmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7549,7 +7567,7 @@ public static class ListMessageBusEnrollmentsFixedSizeCollection ListMessageBusEnrollmentsFixedSizeCollection> { private ListMessageBusEnrollmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7559,7 +7577,7 @@ private static ListMessageBusEnrollmentsFixedSizeCollection createEmptyCollectio @Override protected ListMessageBusEnrollmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessageBusEnrollmentsFixedSizeCollection(pages, collectionSize); } } @@ -7593,8 +7611,8 @@ public static class ListEnrollmentsPage ListEnrollmentsRequest, ListEnrollmentsResponse, Enrollment, ListEnrollmentsPage> { private ListEnrollmentsPage( - PageContext context, - ListEnrollmentsResponse response) { + @Nullable PageContext context, + @Nullable ListEnrollmentsResponse response) { super(context, response); } @@ -7604,14 +7622,14 @@ private static ListEnrollmentsPage createEmptyPage() { @Override protected ListEnrollmentsPage createPage( - PageContext context, - ListEnrollmentsResponse response) { + @Nullable PageContext context, + @Nullable ListEnrollmentsResponse response) { return new ListEnrollmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7626,7 +7644,7 @@ public static class ListEnrollmentsFixedSizeCollection ListEnrollmentsFixedSizeCollection> { private ListEnrollmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7636,7 +7654,7 @@ private static ListEnrollmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnrollmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnrollmentsFixedSizeCollection(pages, collectionSize); } } @@ -7670,8 +7688,8 @@ public static class ListPipelinesPage ListPipelinesRequest, ListPipelinesResponse, Pipeline, ListPipelinesPage> { private ListPipelinesPage( - PageContext context, - ListPipelinesResponse response) { + @Nullable PageContext context, + @Nullable ListPipelinesResponse response) { super(context, response); } @@ -7681,14 +7699,14 @@ private static ListPipelinesPage createEmptyPage() { @Override protected ListPipelinesPage createPage( - PageContext context, - ListPipelinesResponse response) { + @Nullable PageContext context, + @Nullable ListPipelinesResponse response) { return new ListPipelinesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7702,7 +7720,8 @@ public static class ListPipelinesFixedSizeCollection ListPipelinesPage, ListPipelinesFixedSizeCollection> { - private ListPipelinesFixedSizeCollection(List pages, int collectionSize) { + private ListPipelinesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7712,7 +7731,7 @@ private static ListPipelinesFixedSizeCollection createEmptyCollection() { @Override protected ListPipelinesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPipelinesFixedSizeCollection(pages, collectionSize); } } @@ -7750,9 +7769,10 @@ public static class ListGoogleApiSourcesPage ListGoogleApiSourcesPage> { private ListGoogleApiSourcesPage( - PageContext + @Nullable + PageContext context, - ListGoogleApiSourcesResponse response) { + @Nullable ListGoogleApiSourcesResponse response) { super(context, response); } @@ -7762,15 +7782,17 @@ private static ListGoogleApiSourcesPage createEmptyPage() { @Override protected ListGoogleApiSourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListGoogleApiSourcesResponse response) { + @Nullable ListGoogleApiSourcesResponse response) { return new ListGoogleApiSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7786,7 +7808,7 @@ public static class ListGoogleApiSourcesFixedSizeCollection ListGoogleApiSourcesFixedSizeCollection> { private ListGoogleApiSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7796,7 +7818,7 @@ private static ListGoogleApiSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListGoogleApiSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoogleApiSourcesFixedSizeCollection(pages, collectionSize); } } @@ -7830,8 +7852,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7841,14 +7863,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7862,7 +7884,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7872,7 +7895,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java index 36d1ed08a80f..5457c225c5cc 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -560,7 +561,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); } @@ -580,7 +581,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EventarcStubSettings.newBuilder(clientContext)); } diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStub.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStub.java index 583729611b3a..e6c0ccabbd14 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStub.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStub.java @@ -101,6 +101,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -112,11 +113,12 @@ @Generated("by gapic-generator-java") public abstract class EventarcStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java index a71a1e30c09e..fd228e3231d9 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStubSettings.java @@ -135,6 +135,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1376,7 +1377,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); } @@ -1661,7 +1662,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelConnectionName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelConnectionName.java index 40815c2eff36..1c761b70843e 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelConnectionName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String channelConne .toString(); } - public static ChannelConnectionName parse(String formattedString) { + public static @Nullable ChannelConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChannelConnectionName> values) { List list = new ArrayList<>(values.size()); for (ChannelConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelName.java index 67227f8fb80a..f8fd6f2f04c5 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ChannelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String channel) { .toString(); } - public static ChannelName parse(String formattedString) { + public static @Nullable ChannelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChannelName> values) { List list = new ArrayList<>(values.size()); for (ChannelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EnrollmentName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EnrollmentName.java index 570f873a0ce3..21dc5cd2a3bd 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EnrollmentName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/EnrollmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String enrollment) .toString(); } - public static EnrollmentName parse(String formattedString) { + public static @Nullable EnrollmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnrollmentName> values) { List list = new ArrayList<>(values.size()); for (EnrollmentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceName.java index c2fccbb90c07..eea31b08acd7 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String googleApiSou .toString(); } - public static GoogleApiSourceName parse(String formattedString) { + public static @Nullable GoogleApiSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoogleApiSourceName> values) { List list = new ArrayList<>(values.size()); for (GoogleApiSourceName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleChannelConfigName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleChannelConfigName.java index 9f74ca804a11..f4090538834f 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleChannelConfigName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleChannelConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static GoogleChannelConfigName parse(String formattedString) { + public static @Nullable GoogleChannelConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoogleChannelConfigName> values) { List list = new ArrayList<>(values.size()); for (GoogleChannelConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/LocationName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/LocationName.java index 0e97129be315..a54ee2068127 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/LocationName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/MessageBusName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/MessageBusName.java index f32a4d6ad89c..1438d503af5b 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/MessageBusName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/MessageBusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String messageBus) .toString(); } - public static MessageBusName parse(String formattedString) { + public static @Nullable MessageBusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MessageBusName> values) { List list = new ArrayList<>(values.size()); for (MessageBusName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/PipelineName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/PipelineName.java index b270bb734391..077c01b789f8 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/PipelineName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/PipelineName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String pipeline) { .toString(); } - public static PipelineName parse(String formattedString) { + public static @Nullable PipelineName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PipelineName> values) { List list = new ArrayList<>(values.size()); for (PipelineName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ProviderName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ProviderName.java index 61552505fc84..d45049c85573 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ProviderName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/ProviderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String provider) { .toString(); } - public static ProviderName parse(String formattedString) { + public static @Nullable ProviderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProviderName> values) { List list = new ArrayList<>(values.size()); for (ProviderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerName.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerName.java index e321428aaf21..3aca1439dcbc 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerName.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String trigger) { .toString(); } - public static TriggerName parse(String formattedString) { + public static @Nullable TriggerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TriggerName> values) { List list = new ArrayList<>(values.size()); for (TriggerName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java index 327ce26be2ae..9b40bf0036ce 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java @@ -40,6 +40,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. /** @@ -497,7 +498,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudFilestoreManagerClient implements BackgroundResource { - private final CloudFilestoreManagerSettings settings; + private final @Nullable CloudFilestoreManagerSettings settings; private final CloudFilestoreManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -545,7 +546,7 @@ protected CloudFilestoreManagerClient(CloudFilestoreManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudFilestoreManagerSettings getSettings() { + public final @Nullable CloudFilestoreManagerSettings getSettings() { return settings; } @@ -601,7 +602,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -781,7 +782,7 @@ public final UnaryCallable listInst * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -906,7 +907,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1410,7 +1411,8 @@ public final UnaryCallable revertInstanceCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1561,7 +1563,7 @@ public final UnaryCallable deleteInstanceCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(InstanceName parent) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable InstanceName parent) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1738,7 +1740,7 @@ public final UnaryCallable listSnap * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName name) { + public final Snapshot getSnapshot(@Nullable SnapshotName name) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSnapshot(request); @@ -1865,7 +1867,7 @@ public final UnaryCallable getSnapshotCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( - InstanceName parent, Snapshot snapshot, String snapshotId) { + @Nullable InstanceName parent, Snapshot snapshot, String snapshotId) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2035,7 +2037,8 @@ public final UnaryCallable createSnapshotCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSnapshotAsync(SnapshotName name) { + public final OperationFuture deleteSnapshotAsync( + @Nullable SnapshotName name) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSnapshotAsync(request); @@ -2314,7 +2317,7 @@ public final UnaryCallable updateSnapshotCalla * information for all locations, use "-" for the `{location}` value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2490,7 +2493,7 @@ public final UnaryCallable listBackupsC * `projects/{project_number}/locations/{location}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2616,7 +2619,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { + @Nullable LocationName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2788,7 +2791,8 @@ public final UnaryCallable createBackupCallable( * `projects/{project_number}/locations/{location}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3186,8 +3190,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -3197,14 +3201,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3218,7 +3222,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3228,7 +3233,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -3262,8 +3267,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -3273,14 +3278,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3294,7 +3299,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3304,7 +3310,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } @@ -3335,8 +3341,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3346,14 +3352,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3367,7 +3373,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3377,7 +3384,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index 38425479fdf4..2e7d0c884206 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -353,7 +354,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); } @@ -374,7 +375,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudFilestoreManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java index bd3218c7f801..3b6b7bd13d56 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,11 +65,12 @@ @Generated("by gapic-generator-java") public abstract class CloudFilestoreManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index 8c5010f52c89..2d5e60b9b024 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -639,7 +640,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); } @@ -821,7 +822,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java index 0077cdd08472..713e6f651f4c 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java @@ -40,6 +40,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. /** @@ -596,7 +597,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudFilestoreManagerClient implements BackgroundResource { - private final CloudFilestoreManagerSettings settings; + private final @Nullable CloudFilestoreManagerSettings settings; private final CloudFilestoreManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -644,7 +645,7 @@ protected CloudFilestoreManagerClient(CloudFilestoreManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudFilestoreManagerSettings getSettings() { + public final @Nullable CloudFilestoreManagerSettings getSettings() { return settings; } @@ -700,7 +701,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -880,7 +881,7 @@ public final UnaryCallable listInst * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1007,7 +1008,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1606,7 +1607,8 @@ public final UnaryCallable promoteReplicaCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1757,7 +1759,7 @@ public final UnaryCallable deleteInstanceCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(InstanceName parent) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable InstanceName parent) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1934,7 +1936,7 @@ public final UnaryCallable listSnap * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName name) { + public final Snapshot getSnapshot(@Nullable SnapshotName name) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSnapshot(request); @@ -2061,7 +2063,7 @@ public final UnaryCallable getSnapshotCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( - InstanceName parent, Snapshot snapshot, String snapshotId) { + @Nullable InstanceName parent, Snapshot snapshot, String snapshotId) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2231,7 +2233,8 @@ public final UnaryCallable createSnapshotCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSnapshotAsync(SnapshotName name) { + public final OperationFuture deleteSnapshotAsync( + @Nullable SnapshotName name) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSnapshotAsync(request); @@ -2514,7 +2517,7 @@ public final UnaryCallable updateSnapshotCalla * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2694,7 +2697,7 @@ public final UnaryCallable listBackupsC * `projects/{project_id}/locations/{location}/backups/{backup_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2819,7 +2822,7 @@ public final UnaryCallable getBackupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - LocationName parent, Backup backup, String backupId) { + @Nullable LocationName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2990,7 +2993,8 @@ public final UnaryCallable createBackupCallable( * `projects/{project_id}/locations/{location}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3262,7 +3266,7 @@ public final UnaryCallable updateBackupCallable( * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSharesPagedResponse listShares(InstanceName parent) { + public final ListSharesPagedResponse listShares(@Nullable InstanceName parent) { ListSharesRequest request = ListSharesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listShares(request); @@ -3433,7 +3437,7 @@ public final UnaryCallable listSharesCall * `projects/{project_id}/locations/{location}/instances/{instance_id}/shares/{share_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Share getShare(ShareName name) { + public final Share getShare(@Nullable ShareName name) { GetShareRequest request = GetShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getShare(request); @@ -3555,7 +3559,7 @@ public final UnaryCallable getShareCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createShareAsync( - InstanceName parent, Share share, String shareId) { + @Nullable InstanceName parent, Share share, String shareId) { CreateShareRequest request = CreateShareRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3724,7 +3728,8 @@ public final UnaryCallable createShareCallable() * `projects/{project_id}/locations/{location}/instances/{instance_id}/share/{share_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteShareAsync(ShareName name) { + public final OperationFuture deleteShareAsync( + @Nullable ShareName name) { DeleteShareRequest request = DeleteShareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteShareAsync(request); @@ -4037,8 +4042,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -4048,14 +4053,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4069,7 +4074,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4079,7 +4085,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -4113,8 +4119,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -4124,14 +4130,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4145,7 +4151,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4155,7 +4162,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } @@ -4186,8 +4193,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -4197,14 +4204,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4218,7 +4225,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4228,7 +4236,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -4259,8 +4267,8 @@ public static class ListSharesPage extends AbstractPage { private ListSharesPage( - PageContext context, - ListSharesResponse response) { + @Nullable PageContext context, + @Nullable ListSharesResponse response) { super(context, response); } @@ -4270,14 +4278,14 @@ private static ListSharesPage createEmptyPage() { @Override protected ListSharesPage createPage( - PageContext context, - ListSharesResponse response) { + @Nullable PageContext context, + @Nullable ListSharesResponse response) { return new ListSharesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4291,7 +4299,8 @@ public static class ListSharesFixedSizeCollection ListSharesPage, ListSharesFixedSizeCollection> { - private ListSharesFixedSizeCollection(List pages, int collectionSize) { + private ListSharesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4301,7 +4310,7 @@ private static ListSharesFixedSizeCollection createEmptyCollection() { @Override protected ListSharesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSharesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java index cafb7c775958..b82225c47d7e 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -399,7 +400,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); } @@ -420,7 +421,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudFilestoreManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java index af099f4cc996..654d40376728 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStub.java @@ -62,6 +62,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class CloudFilestoreManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index 85427c0816c4..f73bd06b3c92 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -95,6 +95,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -755,7 +756,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); } @@ -958,7 +959,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java index a4950e31d9e6..a5e6bb950d0e 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java index 0effb7cdecd5..d7eaed36c3ed 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java index 5a12f7a391da..0485e9935a4f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/SnapshotName.java b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/SnapshotName.java index c84e68301837..475eb5bafb4f 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/SnapshotName.java +++ b/java-filestore/proto-google-cloud-filestore-v1/src/main/java/com/google/cloud/filestore/v1/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java index b11ec4a4b36e..584b245aef42 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java index 3f7c3d58a30e..237e88c207cf 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java index 027106f76843..c8c775fc8133 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java index e88a7e6b8487..6462a91344e1 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/ShareName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static ShareName parse(String formattedString) { + public static @Nullable ShareName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ShareName> values) { List list = new ArrayList<>(values.size()); for (ShareName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java index cb2450ad2872..6ed57828a224 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/src/main/java/com/google/cloud/filestore/v1beta1/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLClient.java b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLClient.java index e25c69077561..30d7e7d48378 100644 --- a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLClient.java +++ b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLClient.java @@ -43,6 +43,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. /** @@ -906,7 +907,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AMLClient implements BackgroundResource { - private final AMLSettings settings; + private final @Nullable AMLSettings settings; private final AMLStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -952,7 +953,7 @@ protected AMLClient(AMLStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AMLSettings getSettings() { + public final @Nullable AMLSettings getSettings() { return settings; } @@ -1001,7 +1002,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * location has exactly one instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1167,7 +1168,7 @@ public final UnaryCallable listInst * @param name Required. The resource name of the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1281,7 +1282,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1568,7 +1569,8 @@ public final UnaryCallable updateInstanceCalla * @param name Required. The resource name of the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1726,7 +1728,7 @@ public final UnaryCallable deleteInstanceCalla */ public final OperationFuture importRegisteredPartiesAsync( - InstanceName name, + @Nullable InstanceName name, ImportRegisteredPartiesRequest.UpdateMode mode, LineOfBusiness lineOfBusiness, List partyTables) { @@ -1926,7 +1928,7 @@ public final UnaryCallable deleteInstanceCalla */ public final OperationFuture exportRegisteredPartiesAsync( - InstanceName name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) { + @Nullable InstanceName name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) { ExportRegisteredPartiesRequest request = ExportRegisteredPartiesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2100,7 +2102,7 @@ public final UnaryCallable deleteInstanceCalla * @param parent Required. The parent of the Dataset is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(InstanceName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable InstanceName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2265,7 +2267,7 @@ public final UnaryCallable listDatase * @param name Required. The resource name of the Dataset * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -2383,7 +2385,7 @@ public final UnaryCallable getDatasetCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetAsync( - InstanceName parent, Dataset dataset, String datasetId) { + @Nullable InstanceName parent, Dataset dataset, String datasetId) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2669,7 +2671,8 @@ public final UnaryCallable updateDatasetCallabl * @param name Required. The resource name of the Dataset. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDatasetAsync(DatasetName name) { + public final OperationFuture deleteDatasetAsync( + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -2819,7 +2822,7 @@ public final UnaryCallable deleteDatasetCallabl * @param parent Required. The parent of the Model is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(InstanceName parent) { + public final ListModelsPagedResponse listModels(@Nullable InstanceName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -2981,7 +2984,7 @@ public final UnaryCallable listModelsCall * @param name Required. The resource name of the Model * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -3096,7 +3099,7 @@ public final UnaryCallable getModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - InstanceName parent, Model model, String modelId) { + @Nullable InstanceName parent, Model model, String modelId) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3389,7 +3392,8 @@ public final UnaryCallable updateModelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportModelMetadataAsync(ModelName model, BigQueryDestination structuredMetadataDestination) { + exportModelMetadataAsync( + @Nullable ModelName model, BigQueryDestination structuredMetadataDestination) { ExportModelMetadataRequest request = ExportModelMetadataRequest.newBuilder() .setModel(model == null ? null : model.toString()) @@ -3555,7 +3559,8 @@ public final UnaryCallable exportModelMet * @param name Required. The resource name of the Model. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -3701,7 +3706,7 @@ public final UnaryCallable deleteModelCallable() * @param parent Required. The parent of the EngineConfig is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEngineConfigsPagedResponse listEngineConfigs(InstanceName parent) { + public final ListEngineConfigsPagedResponse listEngineConfigs(@Nullable InstanceName parent) { ListEngineConfigsRequest request = ListEngineConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3870,7 +3875,7 @@ public final ListEngineConfigsPagedResponse listEngineConfigs(ListEngineConfigsR * @param name Required. The resource name of the EngineConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EngineConfig getEngineConfig(EngineConfigName name) { + public final EngineConfig getEngineConfig(@Nullable EngineConfigName name) { GetEngineConfigRequest request = GetEngineConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEngineConfig(request); @@ -3992,7 +3997,7 @@ public final UnaryCallable getEngineConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEngineConfigAsync( - InstanceName parent, EngineConfig engineConfig, String engineConfigId) { + @Nullable InstanceName parent, EngineConfig engineConfig, String engineConfigId) { CreateEngineConfigRequest request = CreateEngineConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4293,7 +4298,8 @@ public final UnaryCallable updateEngineCon */ public final OperationFuture exportEngineConfigMetadataAsync( - EngineConfigName engineConfig, BigQueryDestination structuredMetadataDestination) { + @Nullable EngineConfigName engineConfig, + BigQueryDestination structuredMetadataDestination) { ExportEngineConfigMetadataRequest request = ExportEngineConfigMetadataRequest.newBuilder() .setEngineConfig(engineConfig == null ? null : engineConfig.toString()) @@ -4474,7 +4480,7 @@ public final UnaryCallable updateEngineCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEngineConfigAsync( - EngineConfigName name) { + @Nullable EngineConfigName name) { DeleteEngineConfigRequest request = DeleteEngineConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4630,7 +4636,7 @@ public final UnaryCallable deleteEngineCon * @param name Required. The resource name of the EngineVersion * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EngineVersion getEngineVersion(EngineVersionName name) { + public final EngineVersion getEngineVersion(@Nullable EngineVersionName name) { GetEngineVersionRequest request = GetEngineVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEngineVersion(request); @@ -4748,7 +4754,7 @@ public final UnaryCallable getEngineVers * @param parent Required. The parent of the EngineVersion is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEngineVersionsPagedResponse listEngineVersions(InstanceName parent) { + public final ListEngineVersionsPagedResponse listEngineVersions(@Nullable InstanceName parent) { ListEngineVersionsRequest request = ListEngineVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4919,7 +4925,8 @@ public final ListEngineVersionsPagedResponse listEngineVersions( * @param parent Required. The parent of the PredictionResult is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPredictionResultsPagedResponse listPredictionResults(InstanceName parent) { + public final ListPredictionResultsPagedResponse listPredictionResults( + @Nullable InstanceName parent) { ListPredictionResultsRequest request = ListPredictionResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5091,7 +5098,7 @@ public final ListPredictionResultsPagedResponse listPredictionResults( * @param name Required. The resource name of the PredictionResult * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PredictionResult getPredictionResult(PredictionResultName name) { + public final PredictionResult getPredictionResult(@Nullable PredictionResultName name) { GetPredictionResultRequest request = GetPredictionResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5219,7 +5226,7 @@ public final PredictionResult getPredictionResult(GetPredictionResultRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPredictionResultAsync( - InstanceName parent, PredictionResult predictionResult, String predictionResultId) { + @Nullable InstanceName parent, PredictionResult predictionResult, String predictionResultId) { CreatePredictionResultRequest request = CreatePredictionResultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5524,7 +5531,7 @@ public final OperationFuture updatePredicti */ public final OperationFuture exportPredictionResultMetadataAsync( - PredictionResultName predictionResult, + @Nullable PredictionResultName predictionResult, BigQueryDestination structuredMetadataDestination) { ExportPredictionResultMetadataRequest request = ExportPredictionResultMetadataRequest.newBuilder() @@ -5710,7 +5717,7 @@ public final OperationFuture updatePredicti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePredictionResultAsync( - PredictionResultName name) { + @Nullable PredictionResultName name) { DeletePredictionResultRequest request = DeletePredictionResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5869,7 +5876,7 @@ public final OperationFuture deletePredictionResultAsy * @param parent Required. The parent of the BacktestResult is the Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBacktestResultsPagedResponse listBacktestResults(InstanceName parent) { + public final ListBacktestResultsPagedResponse listBacktestResults(@Nullable InstanceName parent) { ListBacktestResultsRequest request = ListBacktestResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6040,7 +6047,7 @@ public final ListBacktestResultsPagedResponse listBacktestResults( * @param name Required. The resource name of the BacktestResult * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BacktestResult getBacktestResult(BacktestResultName name) { + public final BacktestResult getBacktestResult(@Nullable BacktestResultName name) { GetBacktestResultRequest request = GetBacktestResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6164,7 +6171,7 @@ public final UnaryCallable getBacktest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBacktestResultAsync( - InstanceName parent, BacktestResult backtestResult, String backtestResultId) { + @Nullable InstanceName parent, BacktestResult backtestResult, String backtestResultId) { CreateBacktestResultRequest request = CreateBacktestResultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6468,7 +6475,8 @@ public final OperationFuture updateBacktestRe */ public final OperationFuture exportBacktestResultMetadataAsync( - BacktestResultName backtestResult, BigQueryDestination structuredMetadataDestination) { + @Nullable BacktestResultName backtestResult, + BigQueryDestination structuredMetadataDestination) { ExportBacktestResultMetadataRequest request = ExportBacktestResultMetadataRequest.newBuilder() .setBacktestResult(backtestResult == null ? null : backtestResult.toString()) @@ -6651,7 +6659,7 @@ public final OperationFuture updateBacktestRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBacktestResultAsync( - BacktestResultName name) { + @Nullable BacktestResultName name) { DeleteBacktestResultRequest request = DeleteBacktestResultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6999,8 +7007,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -7010,14 +7018,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7031,7 +7039,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7041,7 +7050,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -7074,8 +7083,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -7085,14 +7094,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7106,7 +7115,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7116,7 +7126,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -7147,8 +7157,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -7158,14 +7168,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7179,7 +7189,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7189,7 +7200,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } @@ -7226,8 +7237,9 @@ public static class ListEngineConfigsPage ListEngineConfigsPage> { private ListEngineConfigsPage( - PageContext context, - ListEngineConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListEngineConfigsResponse response) { super(context, response); } @@ -7237,14 +7249,16 @@ private static ListEngineConfigsPage createEmptyPage() { @Override protected ListEngineConfigsPage createPage( - PageContext context, - ListEngineConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListEngineConfigsResponse response) { return new ListEngineConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7259,7 +7273,7 @@ public static class ListEngineConfigsFixedSizeCollection ListEngineConfigsFixedSizeCollection> { private ListEngineConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7269,7 +7283,7 @@ private static ListEngineConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListEngineConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEngineConfigsFixedSizeCollection(pages, collectionSize); } } @@ -7306,8 +7320,9 @@ public static class ListEngineVersionsPage ListEngineVersionsPage> { private ListEngineVersionsPage( - PageContext context, - ListEngineVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListEngineVersionsResponse response) { super(context, response); } @@ -7317,14 +7332,16 @@ private static ListEngineVersionsPage createEmptyPage() { @Override protected ListEngineVersionsPage createPage( - PageContext context, - ListEngineVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListEngineVersionsResponse response) { return new ListEngineVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7339,7 +7356,7 @@ public static class ListEngineVersionsFixedSizeCollection ListEngineVersionsFixedSizeCollection> { private ListEngineVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7349,7 +7366,7 @@ private static ListEngineVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListEngineVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEngineVersionsFixedSizeCollection(pages, collectionSize); } } @@ -7387,9 +7404,11 @@ public static class ListPredictionResultsPage ListPredictionResultsPage> { private ListPredictionResultsPage( - PageContext + @Nullable + PageContext< + ListPredictionResultsRequest, ListPredictionResultsResponse, PredictionResult> context, - ListPredictionResultsResponse response) { + @Nullable ListPredictionResultsResponse response) { super(context, response); } @@ -7399,15 +7418,19 @@ private static ListPredictionResultsPage createEmptyPage() { @Override protected ListPredictionResultsPage createPage( - PageContext + @Nullable + PageContext< + ListPredictionResultsRequest, ListPredictionResultsResponse, PredictionResult> context, - ListPredictionResultsResponse response) { + @Nullable ListPredictionResultsResponse response) { return new ListPredictionResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListPredictionResultsRequest, ListPredictionResultsResponse, PredictionResult> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7423,7 +7446,7 @@ public static class ListPredictionResultsFixedSizeCollection ListPredictionResultsFixedSizeCollection> { private ListPredictionResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7433,7 +7456,7 @@ private static ListPredictionResultsFixedSizeCollection createEmptyCollection() @Override protected ListPredictionResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPredictionResultsFixedSizeCollection(pages, collectionSize); } } @@ -7471,9 +7494,10 @@ public static class ListBacktestResultsPage ListBacktestResultsPage> { private ListBacktestResultsPage( - PageContext + @Nullable + PageContext context, - ListBacktestResultsResponse response) { + @Nullable ListBacktestResultsResponse response) { super(context, response); } @@ -7483,15 +7507,17 @@ private static ListBacktestResultsPage createEmptyPage() { @Override protected ListBacktestResultsPage createPage( - PageContext + @Nullable + PageContext context, - ListBacktestResultsResponse response) { + @Nullable ListBacktestResultsResponse response) { return new ListBacktestResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7507,7 +7533,7 @@ public static class ListBacktestResultsFixedSizeCollection ListBacktestResultsFixedSizeCollection> { private ListBacktestResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7517,7 +7543,7 @@ private static ListBacktestResultsFixedSizeCollection createEmptyCollection() { @Override protected ListBacktestResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBacktestResultsFixedSizeCollection(pages, collectionSize); } } @@ -7551,8 +7577,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7562,14 +7588,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7583,7 +7609,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7593,7 +7620,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLSettings.java b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLSettings.java index 96e866b3a347..69833b8bdc0e 100644 --- a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLSettings.java +++ b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/AMLSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -561,7 +562,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); } @@ -581,7 +582,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AMLStubSettings.newBuilder(clientContext)); } diff --git a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStub.java b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStub.java index 29efed1077e3..db7a3810bbb8 100644 --- a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStub.java +++ b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStub.java @@ -96,6 +96,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -107,11 +108,12 @@ @Generated("by gapic-generator-java") public abstract class AMLStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStubSettings.java b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStubSettings.java index eef8a60df478..488d0228a58e 100644 --- a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStubSettings.java +++ b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/AMLStubSettings.java @@ -130,6 +130,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1266,7 +1267,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); } @@ -1568,7 +1569,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/BacktestResultName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/BacktestResultName.java index 2b0e09087b70..9a3b044b8a74 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/BacktestResultName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/BacktestResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BacktestResultName parse(String formattedString) { + public static @Nullable BacktestResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BacktestResultName> values) { List list = new ArrayList<>(values.size()); for (BacktestResultName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/DatasetName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/DatasetName.java index c0db8b7fb244..e6e785018a6b 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/DatasetName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String projectNum, String location, String instance, .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineConfigName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineConfigName.java index d80e703b1e2b..96d06771f168 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineConfigName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EngineConfigName parse(String formattedString) { + public static @Nullable EngineConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EngineConfigName> values) { List list = new ArrayList<>(values.size()); for (EngineConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineVersionName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineVersionName.java index cf94d3b4b26a..dc5476807ebd 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineVersionName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/EngineVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static EngineVersionName parse(String formattedString) { + public static @Nullable EngineVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EngineVersionName> values) { List list = new ArrayList<>(values.size()); for (EngineVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/InstanceName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/InstanceName.java index 3a5e8217385e..68ab1be4d4f4 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/InstanceName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/LocationName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/LocationName.java index e5dee4299c91..2ef13fb3c541 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/LocationName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/ModelName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/ModelName.java index ffc3984d756c..3f0f7661a8c1 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/ModelName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String projectNum, String location, String instance, .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/PredictionResultName.java b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/PredictionResultName.java index 1f5295984c08..ac0b22f47367 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/PredictionResultName.java +++ b/java-financialservices/proto-google-cloud-financialservices-v1/src/main/java/com/google/cloud/financialservices/v1/PredictionResultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static PredictionResultName parse(String formattedString) { + public static @Nullable PredictionResultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PredictionResultName> values) { List list = new ArrayList<>(values.size()); for (PredictionResultName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java index c6e9eb430d53..d5be7139f857 100644 --- a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java +++ b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminClient.java @@ -104,6 +104,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. /** @@ -833,7 +834,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirestoreAdminClient implements BackgroundResource { - private final FirestoreAdminSettings settings; + private final @Nullable FirestoreAdminSettings settings; private final FirestoreAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -881,7 +882,7 @@ protected FirestoreAdminClient(FirestoreAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FirestoreAdminSettings getSettings() { + public final @Nullable FirestoreAdminSettings getSettings() { return settings; } @@ -935,7 +936,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - CollectionGroupName parent, Index index) { + @Nullable CollectionGroupName parent, Index index) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1103,7 +1104,7 @@ public final UnaryCallable createIndexCallable() * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(CollectionGroupName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable CollectionGroupName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1270,7 +1271,7 @@ public final UnaryCallable listIndexesC * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -1382,7 +1383,7 @@ public final UnaryCallable getIndexCallable() { * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteIndex(IndexName name) { + public final void deleteIndex(@Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteIndex(request); @@ -1494,7 +1495,7 @@ public final UnaryCallable deleteIndexCallable() { * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Field getField(FieldName name) { + public final Field getField(@Nullable FieldName name) { GetFieldRequest request = GetFieldRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getField(request); @@ -1776,7 +1777,7 @@ public final UnaryCallable updateFieldCallable() * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFieldsPagedResponse listFields(CollectionGroupName parent) { + public final ListFieldsPagedResponse listFields(@Nullable CollectionGroupName parent) { ListFieldsRequest request = ListFieldsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFields(request); @@ -1969,7 +1970,7 @@ public final UnaryCallable listFieldsCall * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - exportDocumentsAsync(DatabaseName name) { + exportDocumentsAsync(@Nullable DatabaseName name) { ExportDocumentsRequest request = ExportDocumentsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return exportDocumentsAsync(request); @@ -2160,7 +2161,7 @@ public final UnaryCallable exportDocumentsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDocumentsAsync( - DatabaseName name) { + @Nullable DatabaseName name) { ImportDocumentsRequest request = ImportDocumentsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return importDocumentsAsync(request); @@ -2330,7 +2331,7 @@ public final UnaryCallable importDocumentsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - bulkDeleteDocumentsAsync(DatabaseName name) { + bulkDeleteDocumentsAsync(@Nullable DatabaseName name) { BulkDeleteDocumentsRequest request = BulkDeleteDocumentsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2518,7 +2519,7 @@ public final UnaryCallable bulkDeleteDocu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatabaseAsync( - ProjectName parent, Database database, String databaseId) { + @Nullable ProjectName parent, Database database, String databaseId) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2683,7 +2684,7 @@ public final UnaryCallable createDatabaseCalla * @param name Required. A name of the form `projects/{project_id}/databases/{database_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database getDatabase(DatabaseName name) { + public final Database getDatabase(@Nullable DatabaseName name) { GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatabase(request); @@ -2791,7 +2792,7 @@ public final UnaryCallable getDatabaseCallable() { * @param parent Required. A parent name of the form `projects/{project_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesResponse listDatabases(ProjectName parent) { + public final ListDatabasesResponse listDatabases(@Nullable ProjectName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3024,7 +3025,7 @@ public final UnaryCallable updateDatabaseCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatabaseAsync( - DatabaseName name) { + @Nullable DatabaseName name) { DeleteDatabaseRequest request = DeleteDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatabaseAsync(request); @@ -3176,7 +3177,7 @@ public final UnaryCallable deleteDatabaseCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserCreds createUserCreds( - DatabaseName parent, UserCreds userCreds, String userCredsId) { + @Nullable DatabaseName parent, UserCreds userCreds, String userCredsId) { CreateUserCredsRequest request = CreateUserCredsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3309,7 +3310,7 @@ public final UnaryCallable createUserCredsCal * `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserCreds getUserCreds(UserCredsName name) { + public final UserCreds getUserCreds(@Nullable UserCredsName name) { GetUserCredsRequest request = GetUserCredsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUserCreds(request); @@ -3423,7 +3424,7 @@ public final UnaryCallable getUserCredsCallable( * `projects/{project_id}/databases/{database_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserCredsResponse listUserCreds(DatabaseName parent) { + public final ListUserCredsResponse listUserCreds(@Nullable DatabaseName parent) { ListUserCredsRequest request = ListUserCredsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3539,7 +3540,7 @@ public final UnaryCallable listUser * `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserCreds enableUserCreds(UserCredsName name) { + public final UserCreds enableUserCreds(@Nullable UserCredsName name) { EnableUserCredsRequest request = EnableUserCredsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return enableUserCreds(request); @@ -3650,7 +3651,7 @@ public final UnaryCallable enableUserCredsCal * `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserCreds disableUserCreds(UserCredsName name) { + public final UserCreds disableUserCreds(@Nullable UserCredsName name) { DisableUserCredsRequest request = DisableUserCredsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return disableUserCreds(request); @@ -3761,7 +3762,7 @@ public final UnaryCallable disableUserCredsC * `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserCreds resetUserPassword(UserCredsName name) { + public final UserCreds resetUserPassword(@Nullable UserCredsName name) { ResetUserPasswordRequest request = ResetUserPasswordRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3874,7 +3875,7 @@ public final UnaryCallable resetUserPasswor * `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserCreds(UserCredsName name) { + public final void deleteUserCreds(@Nullable UserCredsName name) { DeleteUserCredsRequest request = DeleteUserCredsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUserCreds(request); @@ -3984,7 +3985,7 @@ public final UnaryCallable deleteUserCredsCallabl *

Format is `projects/{project}/locations/{location}/backups/{backup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -4096,7 +4097,7 @@ public final UnaryCallable getBackupCallable() { * location or from all locations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsResponse listBackups(LocationName parent) { + public final ListBackupsResponse listBackups(@Nullable LocationName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4213,7 +4214,7 @@ public final UnaryCallable listBackupsC *

format is `projects/{project}/locations/{location}/backups/{backup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBackup(BackupName name) { + public final void deleteBackup(@Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBackup(request); @@ -4464,7 +4465,7 @@ public final UnaryCallable restoreDatabaseCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BackupSchedule createBackupSchedule( - DatabaseName parent, BackupSchedule backupSchedule) { + @Nullable DatabaseName parent, BackupSchedule backupSchedule) { CreateBackupScheduleRequest request = CreateBackupScheduleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4591,7 +4592,7 @@ public final BackupSchedule createBackupSchedule(CreateBackupScheduleRequest req *

Format `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupSchedule getBackupSchedule(BackupScheduleName name) { + public final BackupSchedule getBackupSchedule(@Nullable BackupScheduleName name) { GetBackupScheduleRequest request = GetBackupScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4707,7 +4708,7 @@ public final UnaryCallable getBackupSc *

Format is `projects/{project}/databases/{database}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupSchedulesResponse listBackupSchedules(DatabaseName parent) { + public final ListBackupSchedulesResponse listBackupSchedules(@Nullable DatabaseName parent) { ListBackupSchedulesRequest request = ListBackupSchedulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4916,7 +4917,7 @@ public final BackupSchedule updateBackupSchedule(UpdateBackupScheduleRequest req *

Format `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBackupSchedule(BackupScheduleName name) { + public final void deleteBackupSchedule(@Nullable BackupScheduleName name) { DeleteBackupScheduleRequest request = DeleteBackupScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5204,8 +5205,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -5215,14 +5216,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5236,7 +5237,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5246,7 +5248,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -5277,8 +5279,8 @@ public static class ListFieldsPage extends AbstractPage { private ListFieldsPage( - PageContext context, - ListFieldsResponse response) { + @Nullable PageContext context, + @Nullable ListFieldsResponse response) { super(context, response); } @@ -5288,14 +5290,14 @@ private static ListFieldsPage createEmptyPage() { @Override protected ListFieldsPage createPage( - PageContext context, - ListFieldsResponse response) { + @Nullable PageContext context, + @Nullable ListFieldsResponse response) { return new ListFieldsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5309,7 +5311,8 @@ public static class ListFieldsFixedSizeCollection ListFieldsPage, ListFieldsFixedSizeCollection> { - private ListFieldsFixedSizeCollection(List pages, int collectionSize) { + private ListFieldsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5319,7 +5322,7 @@ private static ListFieldsFixedSizeCollection createEmptyCollection() { @Override protected ListFieldsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFieldsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java index b2fc81ce2c42..cda2436055a6 100644 --- a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java +++ b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/FirestoreAdminSettings.java @@ -95,6 +95,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -459,7 +460,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); } @@ -479,7 +480,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirestoreAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java index 815b293a51f4..394e2617c666 100644 --- a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java +++ b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStub.java @@ -83,6 +83,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -94,11 +95,12 @@ @Generated("by gapic-generator-java") public abstract class FirestoreAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java index 10eb4c484e47..1853207f3fc8 100644 --- a/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java +++ b/java-firestore/google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java @@ -117,6 +117,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -697,7 +698,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); } @@ -911,7 +912,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java index 3219349bad08..235af2fe0971 100644 --- a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java +++ b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreClient.java @@ -69,6 +69,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. /** @@ -413,7 +414,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirestoreClient implements BackgroundResource { - private final FirestoreSettings settings; + private final @Nullable FirestoreSettings settings; private final FirestoreStub stub; /** Constructs an instance of FirestoreClient with default settings. */ @@ -451,7 +452,7 @@ protected FirestoreClient(FirestoreStub stub) { this.stub = stub; } - public final FirestoreSettings getSettings() { + public final @Nullable FirestoreSettings getSettings() { return settings; } @@ -1722,8 +1723,8 @@ public static class ListDocumentsPage ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage> { private ListDocumentsPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { super(context, response); } @@ -1733,14 +1734,14 @@ private static ListDocumentsPage createEmptyPage() { @Override protected ListDocumentsPage createPage( - PageContext context, - ListDocumentsResponse response) { + @Nullable PageContext context, + @Nullable ListDocumentsResponse response) { return new ListDocumentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1754,7 +1755,8 @@ public static class ListDocumentsFixedSizeCollection ListDocumentsPage, ListDocumentsFixedSizeCollection> { - private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { + private ListDocumentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1764,7 +1766,7 @@ private static ListDocumentsFixedSizeCollection createEmptyCollection() { @Override protected ListDocumentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDocumentsFixedSizeCollection(pages, collectionSize); } } @@ -1798,8 +1800,8 @@ public static class PartitionQueryPage PartitionQueryRequest, PartitionQueryResponse, Cursor, PartitionQueryPage> { private PartitionQueryPage( - PageContext context, - PartitionQueryResponse response) { + @Nullable PageContext context, + @Nullable PartitionQueryResponse response) { super(context, response); } @@ -1809,14 +1811,14 @@ private static PartitionQueryPage createEmptyPage() { @Override protected PartitionQueryPage createPage( - PageContext context, - PartitionQueryResponse response) { + @Nullable PageContext context, + @Nullable PartitionQueryResponse response) { return new PartitionQueryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1830,7 +1832,8 @@ public static class PartitionQueryFixedSizeCollection PartitionQueryPage, PartitionQueryFixedSizeCollection> { - private PartitionQueryFixedSizeCollection(List pages, int collectionSize) { + private PartitionQueryFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1840,7 +1843,7 @@ private static PartitionQueryFixedSizeCollection createEmptyCollection() { @Override protected PartitionQueryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PartitionQueryFixedSizeCollection(pages, collectionSize); } } @@ -1874,8 +1877,8 @@ public static class ListCollectionIdsPage ListCollectionIdsRequest, ListCollectionIdsResponse, String, ListCollectionIdsPage> { private ListCollectionIdsPage( - PageContext context, - ListCollectionIdsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionIdsResponse response) { super(context, response); } @@ -1885,14 +1888,14 @@ private static ListCollectionIdsPage createEmptyPage() { @Override protected ListCollectionIdsPage createPage( - PageContext context, - ListCollectionIdsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionIdsResponse response) { return new ListCollectionIdsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1907,7 +1910,7 @@ public static class ListCollectionIdsFixedSizeCollection ListCollectionIdsFixedSizeCollection> { private ListCollectionIdsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1917,7 +1920,7 @@ private static ListCollectionIdsFixedSizeCollection createEmptyCollection() { @Override protected ListCollectionIdsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCollectionIdsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java index bbe14f33a38c..21aa3bcbab53 100644 --- a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java +++ b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/FirestoreSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -293,7 +294,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirestoreStubSettings.newBuilder(clientContext)); } diff --git a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java index 5a4e8bc19f28..1b3d6141b2fa 100644 --- a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java +++ b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -529,7 +530,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); } @@ -741,7 +742,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDocumentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupName.java index 4f82cb097536..449833313271 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupScheduleName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupScheduleName.java index b52c1caa1fb8..8e1dc16506dc 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupScheduleName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/BackupScheduleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String database, String backupSchedu .toString(); } - public static BackupScheduleName parse(String formattedString) { + public static @Nullable BackupScheduleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupScheduleName> values) { List list = new ArrayList<>(values.size()); for (BackupScheduleName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java index 52175d243962..f5f73d8842b4 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/CollectionGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String database, String collection) .toString(); } - public static CollectionGroupName parse(String formattedString) { + public static @Nullable CollectionGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionGroupName> values) { List list = new ArrayList<>(values.size()); for (CollectionGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java index 7387fb28c705..9720a2d5d227 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String database) { return newBuilder().setProject(project).setDatabase(database).build().toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java index cf89592e2082..b92ddab51036 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/FieldName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String database, String collection, .toString(); } - public static FieldName parse(String formattedString) { + public static @Nullable FieldName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FieldName> values) { List list = new ArrayList<>(values.size()); for (FieldName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java index 910691f4d7e2..46ab9929a3c2 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String database, String collection, .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationName.java index af175ebf9b53..d6bd045a2258 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java index de05606e664b..9b47894be626 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UserCredsName.java b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UserCredsName.java index e787c4fe0aa3..30ef27c12fe9 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UserCredsName.java +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/src/main/java/com/google/firestore/admin/v1/UserCredsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String database, String userCreds) { .toString(); } - public static UserCredsName parse(String formattedString) { + public static @Nullable UserCredsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserCredsName> values) { List list = new ArrayList<>(values.size()); for (UserCredsName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java index ac274451de0d..eb6c8d7f2d57 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java @@ -46,6 +46,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. /** @@ -351,7 +352,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudFunctionsServiceClient implements BackgroundResource { - private final CloudFunctionsServiceSettings settings; + private final @Nullable CloudFunctionsServiceSettings settings; private final CloudFunctionsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -399,7 +400,7 @@ protected CloudFunctionsServiceClient(CloudFunctionsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudFunctionsServiceSettings getSettings() { + public final @Nullable CloudFunctionsServiceSettings getSettings() { return settings; } @@ -554,7 +555,7 @@ public final UnaryCallable listFunc * @param name Required. The name of the function which details should be obtained. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudFunction getFunction(CloudFunctionName name) { + public final CloudFunction getFunction(@Nullable CloudFunctionName name) { GetFunctionRequest request = GetFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFunction(request); @@ -675,7 +676,7 @@ public final UnaryCallable getFunctionCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFunctionAsync( - LocationName location, CloudFunction function) { + @Nullable LocationName location, CloudFunction function) { CreateFunctionRequest request = CreateFunctionRequest.newBuilder() .setLocation(location == null ? null : location.toString()) @@ -958,7 +959,7 @@ public final UnaryCallable updateFunctionCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFunctionAsync( - CloudFunctionName name) { + @Nullable CloudFunctionName name) { DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFunctionAsync(request); @@ -1110,7 +1111,7 @@ public final UnaryCallable deleteFunctionCalla * @param data Required. Input to be passed to the function. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CallFunctionResponse callFunction(CloudFunctionName name, String data) { + public final CallFunctionResponse callFunction(@Nullable CloudFunctionName name, String data) { CallFunctionRequest request = CallFunctionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1756,8 +1757,8 @@ public static class ListFunctionsPage ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage> { private ListFunctionsPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { super(context, response); } @@ -1767,14 +1768,14 @@ private static ListFunctionsPage createEmptyPage() { @Override protected ListFunctionsPage createPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { return new ListFunctionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1788,7 +1789,8 @@ public static class ListFunctionsFixedSizeCollection ListFunctionsPage, ListFunctionsFixedSizeCollection> { - private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { + private ListFunctionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1798,7 +1800,7 @@ private static ListFunctionsFixedSizeCollection createEmptyCollection() { @Override protected ListFunctionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFunctionsFixedSizeCollection(pages, collectionSize); } } @@ -1832,8 +1834,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1843,14 +1845,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1864,7 +1866,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1874,7 +1877,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java index 3ccc695e2800..c35708ea3f40 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,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); } @@ -292,7 +293,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudFunctionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java index ef87077cd20e..9747a1eceb66 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class CloudFunctionsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java index 038236b4282f..42e2162b4a23 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -482,7 +483,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); } @@ -605,7 +606,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFunctionsSettings = PagedCallSettings.newBuilder(LIST_FUNCTIONS_PAGE_STR_FACT); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java index 5172e6d36158..a7f9630c6adf 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceClient.java @@ -47,6 +47,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. /** @@ -361,7 +362,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FunctionServiceClient implements BackgroundResource { - private final FunctionServiceSettings settings; + private final @Nullable FunctionServiceSettings settings; private final FunctionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -409,7 +410,7 @@ protected FunctionServiceClient(FunctionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FunctionServiceSettings getSettings() { + public final @Nullable FunctionServiceSettings getSettings() { return settings; } @@ -455,7 +456,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the function which details should be obtained. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Function getFunction(FunctionName name) { + public final Function getFunction(@Nullable FunctionName name) { GetFunctionRequest request = GetFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFunction(request); @@ -571,7 +572,7 @@ public final UnaryCallable getFunctionCallable() { * reachable locations along with the names of any unreachable locations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFunctionsPagedResponse listFunctions(LocationName parent) { + public final ListFunctionsPagedResponse listFunctions(@Nullable LocationName parent) { ListFunctionsRequest request = ListFunctionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -752,7 +753,7 @@ public final UnaryCallable listFunc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFunctionAsync( - LocationName parent, Function function, String functionId) { + @Nullable LocationName parent, Function function, String functionId) { CreateFunctionRequest request = CreateFunctionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1040,7 +1041,8 @@ public final UnaryCallable updateFunctionCalla * @param name Required. The name of the function which should be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFunctionAsync(FunctionName name) { + public final OperationFuture deleteFunctionAsync( + @Nullable FunctionName name) { DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFunctionAsync(request); @@ -1360,7 +1362,7 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl * specified in the format `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimesResponse listRuntimes(LocationName parent) { + public final ListRuntimesResponse listRuntimes(@Nullable LocationName parent) { ListRuntimesRequest request = ListRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1810,8 +1812,8 @@ public static class ListFunctionsPage ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage> { private ListFunctionsPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { super(context, response); } @@ -1821,14 +1823,14 @@ private static ListFunctionsPage createEmptyPage() { @Override protected ListFunctionsPage createPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { return new ListFunctionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1842,7 +1844,8 @@ public static class ListFunctionsFixedSizeCollection ListFunctionsPage, ListFunctionsFixedSizeCollection> { - private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { + private ListFunctionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1852,7 +1855,7 @@ private static ListFunctionsFixedSizeCollection createEmptyCollection() { @Override protected ListFunctionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFunctionsFixedSizeCollection(pages, collectionSize); } } @@ -1886,8 +1889,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1897,14 +1900,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1918,7 +1921,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1928,7 +1932,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java index 85a972082f8b..457545ec4b86 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/FunctionServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FunctionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java index efba3bf6a0bc..9bfa9728e573 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStub.java @@ -48,6 +48,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,11 +60,12 @@ @Generated("by gapic-generator-java") public abstract class FunctionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java index a5cbc513fddb..6725193ba7bd 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/FunctionServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,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); } @@ -573,7 +574,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java index c504480b3349..14aa41027496 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceClient.java @@ -47,6 +47,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. /** @@ -362,7 +363,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FunctionServiceClient implements BackgroundResource { - private final FunctionServiceSettings settings; + private final @Nullable FunctionServiceSettings settings; private final FunctionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -410,7 +411,7 @@ protected FunctionServiceClient(FunctionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FunctionServiceSettings getSettings() { + public final @Nullable FunctionServiceSettings getSettings() { return settings; } @@ -456,7 +457,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the function which details should be obtained. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Function getFunction(FunctionName name) { + public final Function getFunction(@Nullable FunctionName name) { GetFunctionRequest request = GetFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFunction(request); @@ -572,7 +573,7 @@ public final UnaryCallable getFunctionCallable() { * reachable locations along with the names of any unreachable locations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFunctionsPagedResponse listFunctions(LocationName parent) { + public final ListFunctionsPagedResponse listFunctions(@Nullable LocationName parent) { ListFunctionsRequest request = ListFunctionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -753,7 +754,7 @@ public final UnaryCallable listFunc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFunctionAsync( - LocationName parent, Function function, String functionId) { + @Nullable LocationName parent, Function function, String functionId) { CreateFunctionRequest request = CreateFunctionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1041,7 +1042,8 @@ public final UnaryCallable updateFunctionCalla * @param name Required. The name of the function which should be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFunctionAsync(FunctionName name) { + public final OperationFuture deleteFunctionAsync( + @Nullable FunctionName name) { DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFunctionAsync(request); @@ -1361,7 +1363,7 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl * specified in the format `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimesResponse listRuntimes(LocationName parent) { + public final ListRuntimesResponse listRuntimes(@Nullable LocationName parent) { ListRuntimesRequest request = ListRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1811,8 +1813,8 @@ public static class ListFunctionsPage ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage> { private ListFunctionsPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { super(context, response); } @@ -1822,14 +1824,14 @@ private static ListFunctionsPage createEmptyPage() { @Override protected ListFunctionsPage createPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { return new ListFunctionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1843,7 +1845,8 @@ public static class ListFunctionsFixedSizeCollection ListFunctionsPage, ListFunctionsFixedSizeCollection> { - private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { + private ListFunctionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1853,7 +1856,7 @@ private static ListFunctionsFixedSizeCollection createEmptyCollection() { @Override protected ListFunctionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFunctionsFixedSizeCollection(pages, collectionSize); } } @@ -1887,8 +1890,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1898,14 +1901,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1919,7 +1922,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1929,7 +1933,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java index cf7560d8f1f7..8c9786d395de 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -268,7 +269,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); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FunctionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java index ea26f505841f..9ce4826d8434 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class FunctionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java index 60677862a137..dbdd761363da 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/FunctionServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -480,7 +481,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); } @@ -574,7 +575,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java index deaf0b077c9e..7e3f2d220463 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceClient.java @@ -47,6 +47,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. /** @@ -362,7 +363,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FunctionServiceClient implements BackgroundResource { - private final FunctionServiceSettings settings; + private final @Nullable FunctionServiceSettings settings; private final FunctionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -410,7 +411,7 @@ protected FunctionServiceClient(FunctionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FunctionServiceSettings getSettings() { + public final @Nullable FunctionServiceSettings getSettings() { return settings; } @@ -456,7 +457,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the function which details should be obtained. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Function getFunction(FunctionName name) { + public final Function getFunction(@Nullable FunctionName name) { GetFunctionRequest request = GetFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFunction(request); @@ -572,7 +573,7 @@ public final UnaryCallable getFunctionCallable() { * reachable locations along with the names of any unreachable locations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFunctionsPagedResponse listFunctions(LocationName parent) { + public final ListFunctionsPagedResponse listFunctions(@Nullable LocationName parent) { ListFunctionsRequest request = ListFunctionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -753,7 +754,7 @@ public final UnaryCallable listFunc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFunctionAsync( - LocationName parent, Function function, String functionId) { + @Nullable LocationName parent, Function function, String functionId) { CreateFunctionRequest request = CreateFunctionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1041,7 +1042,8 @@ public final UnaryCallable updateFunctionCalla * @param name Required. The name of the function which should be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFunctionAsync(FunctionName name) { + public final OperationFuture deleteFunctionAsync( + @Nullable FunctionName name) { DeleteFunctionRequest request = DeleteFunctionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFunctionAsync(request); @@ -1361,7 +1363,7 @@ public final GenerateDownloadUrlResponse generateDownloadUrl(GenerateDownloadUrl * specified in the format `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimesResponse listRuntimes(LocationName parent) { + public final ListRuntimesResponse listRuntimes(@Nullable LocationName parent) { ListRuntimesRequest request = ListRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1811,8 +1813,8 @@ public static class ListFunctionsPage ListFunctionsRequest, ListFunctionsResponse, Function, ListFunctionsPage> { private ListFunctionsPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { super(context, response); } @@ -1822,14 +1824,14 @@ private static ListFunctionsPage createEmptyPage() { @Override protected ListFunctionsPage createPage( - PageContext context, - ListFunctionsResponse response) { + @Nullable PageContext context, + @Nullable ListFunctionsResponse response) { return new ListFunctionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1843,7 +1845,8 @@ public static class ListFunctionsFixedSizeCollection ListFunctionsPage, ListFunctionsFixedSizeCollection> { - private ListFunctionsFixedSizeCollection(List pages, int collectionSize) { + private ListFunctionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1853,7 +1856,7 @@ private static ListFunctionsFixedSizeCollection createEmptyCollection() { @Override protected ListFunctionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFunctionsFixedSizeCollection(pages, collectionSize); } } @@ -1887,8 +1890,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1898,14 +1901,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1919,7 +1922,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1929,7 +1933,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java index 539aa3457a0e..023b6da0b2ab 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -268,7 +269,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); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FunctionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java index 204f69ec354e..6a91355ff7a7 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStub.java @@ -49,6 +49,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class FunctionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java index cfc94217b952..1406f65b0f1b 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/FunctionServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -480,7 +481,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); } @@ -574,7 +575,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFunctionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java index bc557c0a0106..27786ef0734e 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CloudFunctionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String function) { .toString(); } - public static CloudFunctionName parse(String formattedString) { + public static @Nullable CloudFunctionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudFunctionName> values) { List list = new ArrayList<>(values.size()); for (CloudFunctionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java index 8f3e2a8b8d27..bbd13e4b01f9 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java index 396ab3ca971b..c4e6cf4ebd46 100644 --- a/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java +++ b/java-functions/proto-google-cloud-functions-v1/src/main/java/com/google/cloud/functions/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CryptoKeyName.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CryptoKeyName.java index 2512d68e5a8b..8593e91abeab 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CryptoKeyName.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java index c7e3eea6f60b..fab4f7385852 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/FunctionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String function) { .toString(); } - public static FunctionName parse(String formattedString) { + public static @Nullable FunctionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FunctionName> values) { List list = new ArrayList<>(values.size()); for (FunctionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java index de9e7a37d6f1..95c5befdbcea 100644 --- a/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java +++ b/java-functions/proto-google-cloud-functions-v2/src/main/java/com/google/cloud/functions/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CryptoKeyName.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CryptoKeyName.java index 6cb273879def..98dded0f7572 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CryptoKeyName.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java index 3aa40f8c85e6..caab24819038 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String function) { .toString(); } - public static FunctionName parse(String formattedString) { + public static @Nullable FunctionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FunctionName> values) { List list = new ArrayList<>(values.size()); for (FunctionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java index 14992d8ad585..77df268e4285 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java +++ b/java-functions/proto-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java index 6e48c98b7121..e391b897a196 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java index 4bdd376b7974..cbb5b3f196b7 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String function) { .toString(); } - public static FunctionName parse(String formattedString) { + public static @Nullable FunctionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FunctionName> values) { List list = new ArrayList<>(values.size()); for (FunctionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java index f91d263d8a76..0d8742f472e3 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java +++ b/java-functions/proto-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java index ccbb57a7d67a..fa1ec328386f 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java @@ -44,6 +44,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. /** @@ -887,7 +888,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GDCHardwareManagementClient implements BackgroundResource { - private final GDCHardwareManagementSettings settings; + private final @Nullable GDCHardwareManagementSettings settings; private final GDCHardwareManagementStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -935,7 +936,7 @@ protected GDCHardwareManagementClient(GDCHardwareManagementStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GDCHardwareManagementSettings getSettings() { + public final @Nullable GDCHardwareManagementSettings getSettings() { return settings; } @@ -987,7 +988,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOrdersPagedResponse listOrders(LocationName parent) { + public final ListOrdersPagedResponse listOrders(@Nullable LocationName parent) { ListOrdersRequest request = ListOrdersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listOrders(request); @@ -1159,7 +1160,7 @@ public final UnaryCallable listOrdersCall * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Order getOrder(OrderName name) { + public final Order getOrder(@Nullable OrderName name) { GetOrderRequest request = GetOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOrder(request); @@ -1281,7 +1282,7 @@ public final UnaryCallable getOrderCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createOrderAsync( - LocationName parent, Order order, String orderId) { + @Nullable LocationName parent, Order order, String orderId) { CreateOrderRequest request = CreateOrderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1583,7 +1584,8 @@ public final UnaryCallable updateOrderCallable() * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteOrderAsync(OrderName name) { + public final OperationFuture deleteOrderAsync( + @Nullable OrderName name) { DeleteOrderRequest request = DeleteOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteOrderAsync(request); @@ -1735,7 +1737,8 @@ public final UnaryCallable deleteOrderCallable() * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture submitOrderAsync(OrderName name) { + public final OperationFuture submitOrderAsync( + @Nullable OrderName name) { SubmitOrderRequest request = SubmitOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return submitOrderAsync(request); @@ -1884,7 +1887,8 @@ public final UnaryCallable submitOrderCallable() * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture cancelOrderAsync(OrderName name) { + public final OperationFuture cancelOrderAsync( + @Nullable OrderName name) { CancelOrderRequest request = CancelOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelOrderAsync(request); @@ -2037,7 +2041,7 @@ public final UnaryCallable cancelOrderCallable() * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSitesPagedResponse listSites(LocationName parent) { + public final ListSitesPagedResponse listSites(@Nullable LocationName parent) { ListSitesRequest request = ListSitesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSites(request); @@ -2209,7 +2213,7 @@ public final UnaryCallable listSitesCallabl * `projects/{project}/locations/{location}/sites/{site}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Site getSite(SiteName name) { + public final Site getSite(@Nullable SiteName name) { GetSiteRequest request = GetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSite(request); @@ -2332,7 +2336,7 @@ public final UnaryCallable getSiteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSiteAsync( - LocationName parent, Site site, String siteId) { + @Nullable LocationName parent, Site site, String siteId) { CreateSiteRequest request = CreateSiteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2628,7 +2632,7 @@ public final UnaryCallable updateSiteCallable() { * `projects/{project}/locations/{location}/sites/{site}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSiteAsync(SiteName name) { + public final OperationFuture deleteSiteAsync(@Nullable SiteName name) { DeleteSiteRequest request = DeleteSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSiteAsync(request); @@ -2780,7 +2784,7 @@ public final UnaryCallable deleteSiteCallable() { * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHardwareGroupsPagedResponse listHardwareGroups(OrderName parent) { + public final ListHardwareGroupsPagedResponse listHardwareGroups(@Nullable OrderName parent) { ListHardwareGroupsRequest request = ListHardwareGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2960,7 +2964,7 @@ public final ListHardwareGroupsPagedResponse listHardwareGroups( * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HardwareGroup getHardwareGroup(HardwareGroupName name) { + public final HardwareGroup getHardwareGroup(@Nullable HardwareGroupName name) { GetHardwareGroupRequest request = GetHardwareGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHardwareGroup(request); @@ -3093,7 +3097,7 @@ public final UnaryCallable getHardwareGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHardwareGroupAsync( - OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId) { + @Nullable OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId) { CreateHardwareGroupRequest request = CreateHardwareGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3405,7 +3409,7 @@ public final UnaryCallable updateHardware * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHardwareGroupAsync( - HardwareGroupName name) { + @Nullable HardwareGroupName name) { DeleteHardwareGroupRequest request = DeleteHardwareGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3568,7 +3572,7 @@ public final UnaryCallable deleteHardware * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHardwarePagedResponse listHardware(LocationName parent) { + public final ListHardwarePagedResponse listHardware(@Nullable LocationName parent) { ListHardwareRequest request = ListHardwareRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3744,7 +3748,7 @@ public final UnaryCallable listHardwa * `projects/{project}/locations/{location}/hardware/{hardware}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Hardware getHardware(HardwareName name) { + public final Hardware getHardware(@Nullable HardwareName name) { GetHardwareRequest request = GetHardwareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHardware(request); @@ -3869,7 +3873,7 @@ public final UnaryCallable getHardwareCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHardwareAsync( - LocationName parent, Hardware hardware, String hardwareId) { + @Nullable LocationName parent, Hardware hardware, String hardwareId) { CreateHardwareRequest request = CreateHardwareRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4170,7 +4174,8 @@ public final UnaryCallable updateHardwareCalla * `projects/{project}/locations/{location}/hardware/{hardware}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHardwareAsync(HardwareName name) { + public final OperationFuture deleteHardwareAsync( + @Nullable HardwareName name) { DeleteHardwareRequest request = DeleteHardwareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHardwareAsync(request); @@ -4321,7 +4326,7 @@ public final UnaryCallable deleteHardwareCalla * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCommentsPagedResponse listComments(OrderName parent) { + public final ListCommentsPagedResponse listComments(@Nullable OrderName parent) { ListCommentsRequest request = ListCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4495,7 +4500,7 @@ public final UnaryCallable listCommen * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Comment getComment(CommentName name) { + public final Comment getComment(@Nullable CommentName name) { GetCommentRequest request = GetCommentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getComment(request); @@ -4620,7 +4625,7 @@ public final UnaryCallable getCommentCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCommentAsync( - OrderName parent, Comment comment, String commentId) { + @Nullable OrderName parent, Comment comment, String commentId) { CreateCommentRequest request = CreateCommentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4801,7 +4806,7 @@ public final UnaryCallable createCommentCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Comment recordActionOnComment( - CommentName name, RecordActionOnCommentRequest.ActionType actionType) { + @Nullable CommentName name, RecordActionOnCommentRequest.ActionType actionType) { RecordActionOnCommentRequest request = RecordActionOnCommentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4937,7 +4942,7 @@ public final Comment recordActionOnComment(RecordActionOnCommentRequest request) * `projects/{project}/locations/{location}/orders/{order}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChangeLogEntriesPagedResponse listChangeLogEntries(OrderName parent) { + public final ListChangeLogEntriesPagedResponse listChangeLogEntries(@Nullable OrderName parent) { ListChangeLogEntriesRequest request = ListChangeLogEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5117,7 +5122,7 @@ public final ListChangeLogEntriesPagedResponse listChangeLogEntries( * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChangeLogEntry getChangeLogEntry(ChangeLogEntryName name) { + public final ChangeLogEntry getChangeLogEntry(@Nullable ChangeLogEntryName name) { GetChangeLogEntryRequest request = GetChangeLogEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5244,7 +5249,7 @@ public final UnaryCallable getChangeLo * location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSkusPagedResponse listSkus(LocationName parent) { + public final ListSkusPagedResponse listSkus(@Nullable LocationName parent) { ListSkusRequest request = ListSkusRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSkus(request); @@ -5416,7 +5421,7 @@ public final UnaryCallable listSkusCallable() * `projects/{project}/locations/{location}/skus/{sku}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Sku getSku(SkuName name) { + public final Sku getSku(@Nullable SkuName name) { GetSkuRequest request = GetSkuRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSku(request); @@ -5534,7 +5539,7 @@ public final UnaryCallable getSkuCallable() { * the location and check the unreachable field in the response message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListZonesPagedResponse listZones(LocationName parent) { + public final ListZonesPagedResponse listZones(@Nullable LocationName parent) { ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listZones(request); @@ -5706,7 +5711,7 @@ public final UnaryCallable listZonesCallabl * `projects/{project}/locations/{location}/zones/{zone}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Zone getZone(ZoneName name) { + public final Zone getZone(@Nullable ZoneName name) { GetZoneRequest request = GetZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getZone(request); @@ -5829,7 +5834,7 @@ public final UnaryCallable getZoneCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createZoneAsync( - LocationName parent, Zone zone, String zoneId) { + @Nullable LocationName parent, Zone zone, String zoneId) { CreateZoneRequest request = CreateZoneRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6125,7 +6130,7 @@ public final UnaryCallable updateZoneCallable() { * `projects/{project}/locations/{location}/zones/{zone}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteZoneAsync(ZoneName name) { + public final OperationFuture deleteZoneAsync(@Nullable ZoneName name) { DeleteZoneRequest request = DeleteZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteZoneAsync(request); @@ -6279,7 +6284,7 @@ public final UnaryCallable deleteZoneCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture signalZoneStateAsync( - ZoneName name, SignalZoneStateRequest.StateSignal stateSignal) { + @Nullable ZoneName name, SignalZoneStateRequest.StateSignal stateSignal) { SignalZoneStateRequest request = SignalZoneStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6448,7 +6453,7 @@ public final UnaryCallable signalZoneStateCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture requestOrderDateChangeAsync( - OrderName name, Date requestedDate) { + @Nullable OrderName name, Date requestedDate) { RequestOrderDateChangeRequest request = RequestOrderDateChangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6805,8 +6810,8 @@ public static class ListOrdersPage extends AbstractPage { private ListOrdersPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { super(context, response); } @@ -6816,14 +6821,14 @@ private static ListOrdersPage createEmptyPage() { @Override protected ListOrdersPage createPage( - PageContext context, - ListOrdersResponse response) { + @Nullable PageContext context, + @Nullable ListOrdersResponse response) { return new ListOrdersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6837,7 +6842,8 @@ public static class ListOrdersFixedSizeCollection ListOrdersPage, ListOrdersFixedSizeCollection> { - private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + private ListOrdersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6847,7 +6853,7 @@ private static ListOrdersFixedSizeCollection createEmptyCollection() { @Override protected ListOrdersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrdersFixedSizeCollection(pages, collectionSize); } } @@ -6874,8 +6880,8 @@ public static class ListSitesPage extends AbstractPage { private ListSitesPage( - PageContext context, - ListSitesResponse response) { + @Nullable PageContext context, + @Nullable ListSitesResponse response) { super(context, response); } @@ -6885,14 +6891,14 @@ private static ListSitesPage createEmptyPage() { @Override protected ListSitesPage createPage( - PageContext context, - ListSitesResponse response) { + @Nullable PageContext context, + @Nullable ListSitesResponse response) { return new ListSitesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6902,7 +6908,7 @@ public static class ListSitesFixedSizeCollection extends AbstractFixedSizeCollection< ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { - private ListSitesFixedSizeCollection(List pages, int collectionSize) { + private ListSitesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6912,7 +6918,7 @@ private static ListSitesFixedSizeCollection createEmptyCollection() { @Override protected ListSitesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSitesFixedSizeCollection(pages, collectionSize); } } @@ -6949,8 +6955,9 @@ public static class ListHardwareGroupsPage ListHardwareGroupsPage> { private ListHardwareGroupsPage( - PageContext context, - ListHardwareGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListHardwareGroupsResponse response) { super(context, response); } @@ -6960,14 +6967,16 @@ private static ListHardwareGroupsPage createEmptyPage() { @Override protected ListHardwareGroupsPage createPage( - PageContext context, - ListHardwareGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListHardwareGroupsResponse response) { return new ListHardwareGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6982,7 +6991,7 @@ public static class ListHardwareGroupsFixedSizeCollection ListHardwareGroupsFixedSizeCollection> { private ListHardwareGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6992,7 +7001,7 @@ private static ListHardwareGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListHardwareGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHardwareGroupsFixedSizeCollection(pages, collectionSize); } } @@ -7025,8 +7034,8 @@ public static class ListHardwarePage extends AbstractPage { private ListHardwarePage( - PageContext context, - ListHardwareResponse response) { + @Nullable PageContext context, + @Nullable ListHardwareResponse response) { super(context, response); } @@ -7036,14 +7045,14 @@ private static ListHardwarePage createEmptyPage() { @Override protected ListHardwarePage createPage( - PageContext context, - ListHardwareResponse response) { + @Nullable PageContext context, + @Nullable ListHardwareResponse response) { return new ListHardwarePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7057,7 +7066,8 @@ public static class ListHardwareFixedSizeCollection ListHardwarePage, ListHardwareFixedSizeCollection> { - private ListHardwareFixedSizeCollection(List pages, int collectionSize) { + private ListHardwareFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7067,7 +7077,7 @@ private static ListHardwareFixedSizeCollection createEmptyCollection() { @Override protected ListHardwareFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHardwareFixedSizeCollection(pages, collectionSize); } } @@ -7100,8 +7110,8 @@ public static class ListCommentsPage extends AbstractPage { private ListCommentsPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { super(context, response); } @@ -7111,14 +7121,14 @@ private static ListCommentsPage createEmptyPage() { @Override protected ListCommentsPage createPage( - PageContext context, - ListCommentsResponse response) { + @Nullable PageContext context, + @Nullable ListCommentsResponse response) { return new ListCommentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7132,7 +7142,8 @@ public static class ListCommentsFixedSizeCollection ListCommentsPage, ListCommentsFixedSizeCollection> { - private ListCommentsFixedSizeCollection(List pages, int collectionSize) { + private ListCommentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7142,7 +7153,7 @@ private static ListCommentsFixedSizeCollection createEmptyCollection() { @Override protected ListCommentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCommentsFixedSizeCollection(pages, collectionSize); } } @@ -7180,9 +7191,10 @@ public static class ListChangeLogEntriesPage ListChangeLogEntriesPage> { private ListChangeLogEntriesPage( - PageContext + @Nullable + PageContext context, - ListChangeLogEntriesResponse response) { + @Nullable ListChangeLogEntriesResponse response) { super(context, response); } @@ -7192,15 +7204,17 @@ private static ListChangeLogEntriesPage createEmptyPage() { @Override protected ListChangeLogEntriesPage createPage( - PageContext + @Nullable + PageContext context, - ListChangeLogEntriesResponse response) { + @Nullable ListChangeLogEntriesResponse response) { return new ListChangeLogEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7216,7 +7230,7 @@ public static class ListChangeLogEntriesFixedSizeCollection ListChangeLogEntriesFixedSizeCollection> { private ListChangeLogEntriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7226,7 +7240,7 @@ private static ListChangeLogEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListChangeLogEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChangeLogEntriesFixedSizeCollection(pages, collectionSize); } } @@ -7253,7 +7267,8 @@ public static class ListSkusPage extends AbstractPage { private ListSkusPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { super(context, response); } @@ -7263,13 +7278,14 @@ private static ListSkusPage createEmptyPage() { @Override protected ListSkusPage createPage( - PageContext context, ListSkusResponse response) { + @Nullable PageContext context, + @Nullable ListSkusResponse response) { return new ListSkusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7279,7 +7295,7 @@ public static class ListSkusFixedSizeCollection extends AbstractFixedSizeCollection< ListSkusRequest, ListSkusResponse, Sku, ListSkusPage, ListSkusFixedSizeCollection> { - private ListSkusFixedSizeCollection(List pages, int collectionSize) { + private ListSkusFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7289,7 +7305,7 @@ private static ListSkusFixedSizeCollection createEmptyCollection() { @Override protected ListSkusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSkusFixedSizeCollection(pages, collectionSize); } } @@ -7316,8 +7332,8 @@ public static class ListZonesPage extends AbstractPage { private ListZonesPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { super(context, response); } @@ -7327,14 +7343,14 @@ private static ListZonesPage createEmptyPage() { @Override protected ListZonesPage createPage( - PageContext context, - ListZonesResponse response) { + @Nullable PageContext context, + @Nullable ListZonesResponse response) { return new ListZonesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7344,7 +7360,7 @@ public static class ListZonesFixedSizeCollection extends AbstractFixedSizeCollection< ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { - private ListZonesFixedSizeCollection(List pages, int collectionSize) { + private ListZonesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7354,7 +7370,7 @@ private static ListZonesFixedSizeCollection createEmptyCollection() { @Override protected ListZonesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListZonesFixedSizeCollection(pages, collectionSize); } } @@ -7388,8 +7404,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7399,14 +7415,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7420,7 +7436,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7430,7 +7447,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java index 2916be006c50..ef9f14421d34 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java @@ -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. /** @@ -527,7 +528,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); } @@ -548,7 +549,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GDCHardwareManagementStubSettings.newBuilder(clientContext)); } diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java index 698fb56e284b..b8b7ca3e451e 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java @@ -93,6 +93,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -105,11 +106,12 @@ @Generated("by gapic-generator-java") public abstract class GDCHardwareManagementStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java index be91f4d333a2..87891cda549f 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java @@ -126,6 +126,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1221,7 +1222,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); } @@ -1473,7 +1474,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listOrdersSettings = PagedCallSettings.newBuilder(LIST_ORDERS_PAGE_STR_FACT); diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java index e9eb8a545df0..8adc3b03d5f8 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ChangeLogEntryName parse(String formattedString) { + public static @Nullable ChangeLogEntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChangeLogEntryName> values) { List list = new ArrayList<>(values.size()); for (ChangeLogEntryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java index 529bf304f88e..0165cfb11a38 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String order, Strin .toString(); } - public static CommentName parse(String formattedString) { + public static @Nullable CommentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CommentName> values) { List list = new ArrayList<>(values.size()); for (CommentName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java index 1cae9dcebfdc..134b2f03b110 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String order, Strin .toString(); } - public static HardwareGroupName parse(String formattedString) { + public static @Nullable HardwareGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HardwareGroupName> values) { List list = new ArrayList<>(values.size()); for (HardwareGroupName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java index 8be35faabc07..8b141d57478d 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String hardware) { .toString(); } - public static HardwareName parse(String formattedString) { + public static @Nullable HardwareName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HardwareName> values) { List list = new ArrayList<>(values.size()); for (HardwareName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java index e9e4521fdb6e..47ba2072d163 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java index 5a00a05b5563..10872c37ce4e 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String order) { .toString(); } - public static OrderName parse(String formattedString) { + public static @Nullable OrderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrderName> values) { List list = new ArrayList<>(values.size()); for (OrderName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java index 2d58f7667e3b..74839f70b9dc 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String site) { return newBuilder().setProject(project).setLocation(location).setSite(site).build().toString(); } - public static SiteName parse(String formattedString) { + public static @Nullable SiteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SiteName> values) { List list = new ArrayList<>(values.size()); for (SiteName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java index d0113db4bb66..3b28abc097d2 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String sku) { return newBuilder().setProject(project).setLocation(location).setSku(sku).build().toString(); } - public static SkuName parse(String formattedString) { + public static @Nullable SkuName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SkuName> values) { List list = new ArrayList<>(values.size()); for (SkuName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java index cc6a767fa5ba..78e3809bd9ff 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String zone) { return newBuilder().setProject(project).setLocation(location).setZone(zone).build().toString(); } - public static ZoneName parse(String formattedString) { + public static @Nullable ZoneName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ZoneName> values) { List list = new ArrayList<>(values.size()); for (ZoneName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java index c12e8d4b1a09..0603a119775b 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java @@ -47,6 +47,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. /** @@ -382,7 +383,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataAgentServiceClient implements BackgroundResource { - private final DataAgentServiceSettings settings; + private final @Nullable DataAgentServiceSettings settings; private final DataAgentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -430,7 +431,7 @@ protected DataAgentServiceClient(DataAgentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataAgentServiceSettings getSettings() { + public final @Nullable DataAgentServiceSettings getSettings() { return settings; } @@ -478,7 +479,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListDataAgentsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataAgentsPagedResponse listDataAgents(LocationName parent) { + public final ListDataAgentsPagedResponse listDataAgents(@Nullable LocationName parent) { ListDataAgentsRequest request = ListDataAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -652,7 +653,8 @@ public final ListDataAgentsPagedResponse listDataAgents(ListDataAgentsRequest re * @param parent Required. Parent value for ListAccessibleDataAgentsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents(LocationName parent) { + public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents( + @Nullable LocationName parent) { ListAccessibleDataAgentsRequest request = ListAccessibleDataAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -827,7 +829,7 @@ public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataAgent getDataAgent(DataAgentName name) { + public final DataAgent getDataAgent(@Nullable DataAgentName name) { GetDataAgentRequest request = GetDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataAgent(request); @@ -944,7 +946,7 @@ public final UnaryCallable getDataAgentCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataAgentAsync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { + @Nullable LocationName parent, DataAgent dataAgent, String dataAgentId) { CreateDataAgentRequest request = CreateDataAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1117,7 +1119,7 @@ public final UnaryCallable createDataAgentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataAgent createDataAgentSync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { + @Nullable LocationName parent, DataAgent dataAgent, String dataAgentId) { CreateDataAgentRequest request = CreateDataAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1476,7 +1478,8 @@ public final UnaryCallable updateDataAgentSyn * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDataAgentAsync(DataAgentName name) { + public final OperationFuture deleteDataAgentAsync( + @Nullable DataAgentName name) { DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataAgentAsync(request); @@ -1618,7 +1621,7 @@ public final UnaryCallable deleteDataAgentCal * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataAgentSync(DataAgentName name) { + public final void deleteDataAgentSync(@Nullable DataAgentName name) { DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataAgentSync(request); @@ -1730,7 +1733,7 @@ public final UnaryCallable deleteDataAgentSyncCal * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1844,7 +1847,7 @@ public final UnaryCallable getIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource) { + public final Policy setIamPolicy(@Nullable ResourceName resource) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2189,8 +2192,8 @@ public static class ListDataAgentsPage ListDataAgentsRequest, ListDataAgentsResponse, DataAgent, ListDataAgentsPage> { private ListDataAgentsPage( - PageContext context, - ListDataAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAgentsResponse response) { super(context, response); } @@ -2200,14 +2203,14 @@ private static ListDataAgentsPage createEmptyPage() { @Override protected ListDataAgentsPage createPage( - PageContext context, - ListDataAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAgentsResponse response) { return new ListDataAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2221,7 +2224,8 @@ public static class ListDataAgentsFixedSizeCollection ListDataAgentsPage, ListDataAgentsFixedSizeCollection> { - private ListDataAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListDataAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2231,7 +2235,7 @@ private static ListDataAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2269,9 +2273,11 @@ public static class ListAccessibleDataAgentsPage ListAccessibleDataAgentsPage> { private ListAccessibleDataAgentsPage( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, - ListAccessibleDataAgentsResponse response) { + @Nullable ListAccessibleDataAgentsResponse response) { super(context, response); } @@ -2281,15 +2287,19 @@ private static ListAccessibleDataAgentsPage createEmptyPage() { @Override protected ListAccessibleDataAgentsPage createPage( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, - ListAccessibleDataAgentsResponse response) { + @Nullable ListAccessibleDataAgentsResponse response) { return new ListAccessibleDataAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2305,7 +2315,7 @@ public static class ListAccessibleDataAgentsFixedSizeCollection ListAccessibleDataAgentsFixedSizeCollection> { private ListAccessibleDataAgentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2315,7 +2325,7 @@ private static ListAccessibleDataAgentsFixedSizeCollection createEmptyCollection @Override protected ListAccessibleDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessibleDataAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2349,8 +2359,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2360,14 +2370,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2381,7 +2391,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2391,7 +2402,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceSettings.java index 64b050b8de44..135a3aab773f 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -275,7 +276,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); } @@ -295,7 +296,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataAgentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceClient.java index 6a91ce42c6ff..f025f6c5780d 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceClient.java @@ -38,6 +38,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. /** @@ -273,7 +274,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataChatServiceClient implements BackgroundResource { - private final DataChatServiceSettings settings; + private final @Nullable DataChatServiceSettings settings; private final DataChatServiceStub stub; /** Constructs an instance of DataChatServiceClient with default settings. */ @@ -313,7 +314,7 @@ protected DataChatServiceClient(DataChatServiceStub stub) { this.stub = stub; } - public final DataChatServiceSettings getSettings() { + public final @Nullable DataChatServiceSettings getSettings() { return settings; } @@ -383,7 +384,7 @@ public final ServerStreamingCallable chatCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Conversation createConversation( - LocationName parent, Conversation conversation, String conversationId) { + @Nullable LocationName parent, Conversation conversation, String conversationId) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -520,7 +521,7 @@ public final UnaryCallable createConver * `projects/{project}/locations/{location}/conversations/{conversation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -634,7 +635,7 @@ public final UnaryCallable deleteConversationC * `projects/{project}/locations/{location}/conversations/{conversation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -747,7 +748,7 @@ public final UnaryCallable getConversation * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(LocationName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable LocationName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -917,7 +918,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * `projects/{project}/locations/{location}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessagesPagedResponse listMessages(ConversationName parent) { + public final ListMessagesPagedResponse listMessages(@Nullable ConversationName parent) { ListMessagesRequest request = ListMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1317,8 +1318,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -1328,14 +1330,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1350,7 +1354,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1360,7 +1364,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -1394,8 +1398,8 @@ public static class ListMessagesPage ListMessagesRequest, ListMessagesResponse, StorageMessage, ListMessagesPage> { private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { super(context, response); } @@ -1405,14 +1409,14 @@ private static ListMessagesPage createEmptyPage() { @Override protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { return new ListMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1426,7 +1430,8 @@ public static class ListMessagesFixedSizeCollection ListMessagesPage, ListMessagesFixedSizeCollection> { - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { + private ListMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1436,7 +1441,7 @@ private static ListMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessagesFixedSizeCollection(pages, collectionSize); } } @@ -1470,8 +1475,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1481,14 +1486,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1502,7 +1507,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1512,7 +1518,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceSettings.java index fb9947a5c656..7044ce7009ce 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataChatServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataChatServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStub.java index dfeb9c56de4d..440cb6b53c07 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class DataAgentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java index 11be96e6fd87..d94fcb023c61 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -552,7 +553,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); } @@ -664,7 +665,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDataAgentsSettings = PagedCallSettings.newBuilder(LIST_DATA_AGENTS_PAGE_STR_FACT); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataChatServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataChatServiceStubSettings.java index 2850ec28d7ac..5875578f5488 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataChatServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataChatServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -454,7 +455,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); } @@ -540,7 +541,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); chatSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java index 12fe836aa692..afd132a70229 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java @@ -47,6 +47,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. /** @@ -383,7 +384,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataAgentServiceClient implements BackgroundResource { - private final DataAgentServiceSettings settings; + private final @Nullable DataAgentServiceSettings settings; private final DataAgentServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -431,7 +432,7 @@ protected DataAgentServiceClient(DataAgentServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataAgentServiceSettings getSettings() { + public final @Nullable DataAgentServiceSettings getSettings() { return settings; } @@ -479,7 +480,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListDataAgentsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataAgentsPagedResponse listDataAgents(LocationName parent) { + public final ListDataAgentsPagedResponse listDataAgents(@Nullable LocationName parent) { ListDataAgentsRequest request = ListDataAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -653,7 +654,8 @@ public final ListDataAgentsPagedResponse listDataAgents(ListDataAgentsRequest re * @param parent Required. Parent value for ListAccessibleDataAgentsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents(LocationName parent) { + public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents( + @Nullable LocationName parent) { ListAccessibleDataAgentsRequest request = ListAccessibleDataAgentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -828,7 +830,7 @@ public final ListAccessibleDataAgentsPagedResponse listAccessibleDataAgents( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataAgent getDataAgent(DataAgentName name) { + public final DataAgent getDataAgent(@Nullable DataAgentName name) { GetDataAgentRequest request = GetDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataAgent(request); @@ -945,7 +947,7 @@ public final UnaryCallable getDataAgentCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataAgentAsync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { + @Nullable LocationName parent, DataAgent dataAgent, String dataAgentId) { CreateDataAgentRequest request = CreateDataAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1118,7 +1120,7 @@ public final UnaryCallable createDataAgentCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataAgent createDataAgentSync( - LocationName parent, DataAgent dataAgent, String dataAgentId) { + @Nullable LocationName parent, DataAgent dataAgent, String dataAgentId) { CreateDataAgentRequest request = CreateDataAgentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1477,7 +1479,8 @@ public final UnaryCallable updateDataAgentSyn * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDataAgentAsync(DataAgentName name) { + public final OperationFuture deleteDataAgentAsync( + @Nullable DataAgentName name) { DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDataAgentAsync(request); @@ -1619,7 +1622,7 @@ public final UnaryCallable deleteDataAgentCal * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataAgentSync(DataAgentName name) { + public final void deleteDataAgentSync(@Nullable DataAgentName name) { DeleteDataAgentRequest request = DeleteDataAgentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataAgentSync(request); @@ -1731,7 +1734,7 @@ public final UnaryCallable deleteDataAgentSyncCal * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1845,7 +1848,7 @@ public final UnaryCallable getIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource) { + public final Policy setIamPolicy(@Nullable ResourceName resource) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2190,8 +2193,8 @@ public static class ListDataAgentsPage ListDataAgentsRequest, ListDataAgentsResponse, DataAgent, ListDataAgentsPage> { private ListDataAgentsPage( - PageContext context, - ListDataAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAgentsResponse response) { super(context, response); } @@ -2201,14 +2204,14 @@ private static ListDataAgentsPage createEmptyPage() { @Override protected ListDataAgentsPage createPage( - PageContext context, - ListDataAgentsResponse response) { + @Nullable PageContext context, + @Nullable ListDataAgentsResponse response) { return new ListDataAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2222,7 +2225,8 @@ public static class ListDataAgentsFixedSizeCollection ListDataAgentsPage, ListDataAgentsFixedSizeCollection> { - private ListDataAgentsFixedSizeCollection(List pages, int collectionSize) { + private ListDataAgentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2232,7 +2236,7 @@ private static ListDataAgentsFixedSizeCollection createEmptyCollection() { @Override protected ListDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2270,9 +2274,11 @@ public static class ListAccessibleDataAgentsPage ListAccessibleDataAgentsPage> { private ListAccessibleDataAgentsPage( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, - ListAccessibleDataAgentsResponse response) { + @Nullable ListAccessibleDataAgentsResponse response) { super(context, response); } @@ -2282,15 +2288,19 @@ private static ListAccessibleDataAgentsPage createEmptyPage() { @Override protected ListAccessibleDataAgentsPage createPage( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, - ListAccessibleDataAgentsResponse response) { + @Nullable ListAccessibleDataAgentsResponse response) { return new ListAccessibleDataAgentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListAccessibleDataAgentsRequest, ListAccessibleDataAgentsResponse, DataAgent> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2306,7 +2316,7 @@ public static class ListAccessibleDataAgentsFixedSizeCollection ListAccessibleDataAgentsFixedSizeCollection> { private ListAccessibleDataAgentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2316,7 +2326,7 @@ private static ListAccessibleDataAgentsFixedSizeCollection createEmptyCollection @Override protected ListAccessibleDataAgentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessibleDataAgentsFixedSizeCollection(pages, collectionSize); } } @@ -2350,8 +2360,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2361,14 +2371,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2382,7 +2392,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2392,7 +2403,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java index 4b1222faac52..d8afacfcf216 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataAgentServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index b72ba03f3a5d..fe82bfc958a5 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -39,6 +39,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. /** @@ -289,7 +290,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataChatServiceClient implements BackgroundResource { - private final DataChatServiceSettings settings; + private final @Nullable DataChatServiceSettings settings; private final DataChatServiceStub stub; /** Constructs an instance of DataChatServiceClient with default settings. */ @@ -329,7 +330,7 @@ protected DataChatServiceClient(DataChatServiceStub stub) { this.stub = stub; } - public final DataChatServiceSettings getSettings() { + public final @Nullable DataChatServiceSettings getSettings() { return settings; } @@ -400,7 +401,7 @@ public final ServerStreamingCallable chatCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Conversation createConversation( - LocationName parent, Conversation conversation, String conversationId) { + @Nullable LocationName parent, Conversation conversation, String conversationId) { CreateConversationRequest request = CreateConversationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -537,7 +538,7 @@ public final UnaryCallable createConver * `projects/{project}/locations/{location}/conversations/{conversation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversation(ConversationName name) { + public final void deleteConversation(@Nullable ConversationName name) { DeleteConversationRequest request = DeleteConversationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -651,7 +652,7 @@ public final UnaryCallable deleteConversationC * `projects/{project}/locations/{location}/conversations/{conversation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Conversation getConversation(ConversationName name) { + public final Conversation getConversation(@Nullable ConversationName name) { GetConversationRequest request = GetConversationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConversation(request); @@ -764,7 +765,7 @@ public final UnaryCallable getConversation * `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversationsPagedResponse listConversations(LocationName parent) { + public final ListConversationsPagedResponse listConversations(@Nullable LocationName parent) { ListConversationsRequest request = ListConversationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -934,7 +935,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * `projects/{project}/locations/{location}/conversations/{conversation_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMessagesPagedResponse listMessages(ConversationName parent) { + public final ListMessagesPagedResponse listMessages(@Nullable ConversationName parent) { ListMessagesRequest request = ListMessagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1396,8 +1397,9 @@ public static class ListConversationsPage ListConversationsPage> { private ListConversationsPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { super(context, response); } @@ -1407,14 +1409,16 @@ private static ListConversationsPage createEmptyPage() { @Override protected ListConversationsPage createPage( - PageContext context, - ListConversationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConversationsResponse response) { return new ListConversationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1429,7 +1433,7 @@ public static class ListConversationsFixedSizeCollection ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1439,7 +1443,7 @@ private static ListConversationsFixedSizeCollection createEmptyCollection() { @Override protected ListConversationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversationsFixedSizeCollection(pages, collectionSize); } } @@ -1473,8 +1477,8 @@ public static class ListMessagesPage ListMessagesRequest, ListMessagesResponse, StorageMessage, ListMessagesPage> { private ListMessagesPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { super(context, response); } @@ -1484,14 +1488,14 @@ private static ListMessagesPage createEmptyPage() { @Override protected ListMessagesPage createPage( - PageContext context, - ListMessagesResponse response) { + @Nullable PageContext context, + @Nullable ListMessagesResponse response) { return new ListMessagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1505,7 +1509,8 @@ public static class ListMessagesFixedSizeCollection ListMessagesPage, ListMessagesFixedSizeCollection> { - private ListMessagesFixedSizeCollection(List pages, int collectionSize) { + private ListMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1515,7 +1520,7 @@ private static ListMessagesFixedSizeCollection createEmptyCollection() { @Override protected ListMessagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMessagesFixedSizeCollection(pages, collectionSize); } } @@ -1549,8 +1554,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1560,14 +1565,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1581,7 +1586,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1591,7 +1597,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java index c0d408ba5935..1f608aebf8f2 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataChatServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java index f4eb60b748c3..e28b983d51bd 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class DataAgentServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java index 71884b67f7b7..e74f749944ec 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -553,7 +554,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); } @@ -665,7 +666,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDataAgentsSettings = PagedCallSettings.newBuilder(LIST_DATA_AGENTS_PAGE_STR_FACT); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java index 998c0dd92336..9438a9483d6f 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -463,7 +464,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); } @@ -551,7 +552,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); chatSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ConversationName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ConversationName.java index c42aa0218d4f..8c429d87d225 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ConversationName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ConversationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String conversation .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentName.java index ff9b383da77e..1210b8a1f698 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataAgent) { .toString(); } - public static DataAgentName parse(String formattedString) { + public static @Nullable DataAgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAgentName> values) { List list = new ArrayList<>(values.size()); for (DataAgentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/LocationName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/LocationName.java index 39509a997f33..3b201f17b145 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/LocationName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationName.java index 62b81d741c41..708d0735730e 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ConversationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String conversation .toString(); } - public static ConversationName parse(String formattedString) { + public static @Nullable ConversationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversationName> values) { List list = new ArrayList<>(values.size()); for (ConversationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentName.java index 7c4dbb40e1fa..c2922cc4499b 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataAgent) { .toString(); } - public static DataAgentName parse(String formattedString) { + public static @Nullable DataAgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataAgentName> values) { List list = new ArrayList<>(values.size()); for (DataAgentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LocationName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LocationName.java index 389e5326f344..ebc57c8db17d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LocationName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ProjectName.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ProjectName.java index 9b4149d8f21a..cf9397a64cd6 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ProjectName.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java index 8988a51edb8e..505a65c3aeb4 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java @@ -48,6 +48,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. /** @@ -972,7 +973,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BackupForGKEClient implements BackgroundResource { - private final BackupForGKESettings settings; + private final @Nullable BackupForGKESettings settings; private final BackupForGKEStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1019,7 +1020,7 @@ protected BackupForGKEClient(BackupForGKEStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final BackupForGKESettings getSettings() { + public final @Nullable BackupForGKESettings getSettings() { return settings; } @@ -1076,7 +1077,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPlanAsync( - LocationName parent, BackupPlan backupPlan, String backupPlanId) { + @Nullable LocationName parent, BackupPlan backupPlan, String backupPlanId) { CreateBackupPlanRequest request = CreateBackupPlanRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1244,7 +1245,7 @@ public final UnaryCallable createBackupPlanC * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupPlansPagedResponse listBackupPlans(LocationName parent) { + public final ListBackupPlansPagedResponse listBackupPlans(@Nullable LocationName parent) { ListBackupPlansRequest request = ListBackupPlansRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1414,7 +1415,7 @@ public final ListBackupPlansPagedResponse listBackupPlans(ListBackupPlansRequest * `projects/*/locations/*/backupPlans/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPlan getBackupPlan(BackupPlanName name) { + public final BackupPlan getBackupPlan(@Nullable BackupPlanName name) { GetBackupPlanRequest request = GetBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupPlan(request); @@ -1654,7 +1655,7 @@ public final UnaryCallable updateBackupPlanC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupPlanAsync( - BackupPlanName name) { + @Nullable BackupPlanName name) { DeleteBackupPlanRequest request = DeleteBackupPlanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupPlanAsync(request); @@ -1809,7 +1810,7 @@ public final UnaryCallable deleteBackupPlanC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupChannelAsync( - LocationName parent, BackupChannel backupChannel, String backupChannelId) { + @Nullable LocationName parent, BackupChannel backupChannel, String backupChannelId) { CreateBackupChannelRequest request = CreateBackupChannelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1978,7 +1979,7 @@ public final UnaryCallable createBackupCh * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupChannelsPagedResponse listBackupChannels(LocationName parent) { + public final ListBackupChannelsPagedResponse listBackupChannels(@Nullable LocationName parent) { ListBackupChannelsRequest request = ListBackupChannelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2150,7 +2151,7 @@ public final ListBackupChannelsPagedResponse listBackupChannels( * `projects/*/locations/*/backupChannels/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupChannel getBackupChannel(BackupChannelName name) { + public final BackupChannel getBackupChannel(@Nullable BackupChannelName name) { GetBackupChannelRequest request = GetBackupChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupChannel(request); @@ -2394,7 +2395,7 @@ public final UnaryCallable updateBackupCh * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupChannelAsync( - BackupChannelName name) { + @Nullable BackupChannelName name) { DeleteBackupChannelRequest request = DeleteBackupChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2552,7 +2553,7 @@ public final UnaryCallable deleteBackupCh * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListBackupPlanBindingsPagedResponse listBackupPlanBindings( - BackupChannelName parent) { + @Nullable BackupChannelName parent) { ListBackupPlanBindingsRequest request = ListBackupPlanBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2732,7 +2733,7 @@ public final ListBackupPlanBindingsPagedResponse listBackupPlanBindings( * `projects/*/locations/*/backupChannels/*/backupPlanBindings/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPlanBinding getBackupPlanBinding(BackupPlanBindingName name) { + public final BackupPlanBinding getBackupPlanBinding(@Nullable BackupPlanBindingName name) { GetBackupPlanBindingRequest request = GetBackupPlanBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2865,7 +2866,7 @@ public final BackupPlanBinding getBackupPlanBinding(GetBackupPlanBindingRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - BackupPlanName parent, Backup backup, String backupId) { + @Nullable BackupPlanName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3031,7 +3032,7 @@ public final UnaryCallable createBackupCallable( * `projects/*/locations/*/backupPlans/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(BackupPlanName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable BackupPlanName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3201,7 +3202,7 @@ public final UnaryCallable listBackupsC * `projects/*/locations/*/backupPlans/*/backups/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -3438,7 +3439,8 @@ public final UnaryCallable updateBackupCallable( * `projects/*/locations/*/backupPlans/*/backups/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -3590,7 +3592,7 @@ public final UnaryCallable deleteBackupCallable( * `projects/*/locations/*/backupPlans/*/backups/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeBackupsPagedResponse listVolumeBackups(BackupName parent) { + public final ListVolumeBackupsPagedResponse listVolumeBackups(@Nullable BackupName parent) { ListVolumeBackupsRequest request = ListVolumeBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3767,7 +3769,7 @@ public final ListVolumeBackupsPagedResponse listVolumeBackups(ListVolumeBackupsR * `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeBackup getVolumeBackup(VolumeBackupName name) { + public final VolumeBackup getVolumeBackup(@Nullable VolumeBackupName name) { GetVolumeBackupRequest request = GetVolumeBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVolumeBackup(request); @@ -3897,7 +3899,7 @@ public final UnaryCallable getVolumeBackup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRestorePlanAsync( - LocationName parent, RestorePlan restorePlan, String restorePlanId) { + @Nullable LocationName parent, RestorePlan restorePlan, String restorePlanId) { CreateRestorePlanRequest request = CreateRestorePlanRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4065,7 +4067,7 @@ public final UnaryCallable createRestorePla * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRestorePlansPagedResponse listRestorePlans(LocationName parent) { + public final ListRestorePlansPagedResponse listRestorePlans(@Nullable LocationName parent) { ListRestorePlansRequest request = ListRestorePlansRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4236,7 +4238,7 @@ public final ListRestorePlansPagedResponse listRestorePlans(ListRestorePlansRequ * `projects/*/locations/*/restorePlans/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestorePlan getRestorePlan(RestorePlanName name) { + public final RestorePlan getRestorePlan(@Nullable RestorePlanName name) { GetRestorePlanRequest request = GetRestorePlanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRestorePlan(request); @@ -4477,7 +4479,7 @@ public final UnaryCallable updateRestorePla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRestorePlanAsync( - RestorePlanName name) { + @Nullable RestorePlanName name) { DeleteRestorePlanRequest request = DeleteRestorePlanRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4639,7 +4641,7 @@ public final UnaryCallable deleteRestorePla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRestoreChannelAsync( - LocationName parent, RestoreChannel restoreChannel, String restoreChannelId) { + @Nullable LocationName parent, RestoreChannel restoreChannel, String restoreChannelId) { CreateRestoreChannelRequest request = CreateRestoreChannelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4811,7 +4813,7 @@ public final OperationFuture createRestoreCha * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRestoreChannelsPagedResponse listRestoreChannels(LocationName parent) { + public final ListRestoreChannelsPagedResponse listRestoreChannels(@Nullable LocationName parent) { ListRestoreChannelsRequest request = ListRestoreChannelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4984,7 +4986,7 @@ public final ListRestoreChannelsPagedResponse listRestoreChannels( * `projects/*/locations/*/restoreChannels/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestoreChannel getRestoreChannel(RestoreChannelName name) { + public final RestoreChannel getRestoreChannel(@Nullable RestoreChannelName name) { GetRestoreChannelRequest request = GetRestoreChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5233,7 +5235,7 @@ public final OperationFuture updateRestoreCha * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRestoreChannelAsync( - RestoreChannelName name) { + @Nullable RestoreChannelName name) { DeleteRestoreChannelRequest request = DeleteRestoreChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5390,7 +5392,7 @@ public final OperationFuture deleteRestoreChannelAsync * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRestorePlanBindingsPagedResponse listRestorePlanBindings( - RestoreChannelName parent) { + @Nullable RestoreChannelName parent) { ListRestorePlanBindingsRequest request = ListRestorePlanBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5570,7 +5572,7 @@ public final ListRestorePlanBindingsPagedResponse listRestorePlanBindings( * `projects/*/locations/*/restoreChannels/*/restorePlanBindings/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestorePlanBinding getRestorePlanBinding(RestorePlanBindingName name) { + public final RestorePlanBinding getRestorePlanBinding(@Nullable RestorePlanBindingName name) { GetRestorePlanBindingRequest request = GetRestorePlanBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5703,7 +5705,7 @@ public final RestorePlanBinding getRestorePlanBinding(GetRestorePlanBindingReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRestoreAsync( - RestorePlanName parent, Restore restore, String restoreId) { + @Nullable RestorePlanName parent, Restore restore, String restoreId) { CreateRestoreRequest request = CreateRestoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5869,7 +5871,7 @@ public final UnaryCallable createRestoreCallabl * `projects/*/locations/*/restorePlans/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRestoresPagedResponse listRestores(RestorePlanName parent) { + public final ListRestoresPagedResponse listRestores(@Nullable RestorePlanName parent) { ListRestoresRequest request = ListRestoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6037,7 +6039,7 @@ public final UnaryCallable listRestor * `projects/*/locations/*/restorePlans/*/restores/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Restore getRestore(RestoreName name) { + public final Restore getRestore(@Nullable RestoreName name) { GetRestoreRequest request = GetRestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRestore(request); @@ -6276,7 +6278,8 @@ public final UnaryCallable updateRestoreCallabl * `projects/*/locations/*/restorePlans/*/restores/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRestoreAsync(RestoreName name) { + public final OperationFuture deleteRestoreAsync( + @Nullable RestoreName name) { DeleteRestoreRequest request = DeleteRestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRestoreAsync(request); @@ -6431,7 +6434,7 @@ public final UnaryCallable deleteRestoreCallabl * `projects/*/locations/*/restorePlans/*/restores/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumeRestoresPagedResponse listVolumeRestores(RestoreName parent) { + public final ListVolumeRestoresPagedResponse listVolumeRestores(@Nullable RestoreName parent) { ListVolumeRestoresRequest request = ListVolumeRestoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6612,7 +6615,7 @@ public final ListVolumeRestoresPagedResponse listVolumeRestores( * `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VolumeRestore getVolumeRestore(VolumeRestoreName name) { + public final VolumeRestore getVolumeRestore(@Nullable VolumeRestoreName name) { GetVolumeRestoreRequest request = GetVolumeRestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVolumeRestore(request); @@ -6741,7 +6744,8 @@ public final UnaryCallable getVolumeRest * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetBackupIndexDownloadUrlResponse getBackupIndexDownloadUrl(BackupName backup) { + public final GetBackupIndexDownloadUrlResponse getBackupIndexDownloadUrl( + @Nullable BackupName backup) { GetBackupIndexDownloadUrlRequest request = GetBackupIndexDownloadUrlRequest.newBuilder() .setBackup(backup == null ? null : backup.toString()) @@ -7251,8 +7255,8 @@ public static class ListBackupPlansPage ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan, ListBackupPlansPage> { private ListBackupPlansPage( - PageContext context, - ListBackupPlansResponse response) { + @Nullable PageContext context, + @Nullable ListBackupPlansResponse response) { super(context, response); } @@ -7262,14 +7266,14 @@ private static ListBackupPlansPage createEmptyPage() { @Override protected ListBackupPlansPage createPage( - PageContext context, - ListBackupPlansResponse response) { + @Nullable PageContext context, + @Nullable ListBackupPlansResponse response) { return new ListBackupPlansPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7284,7 +7288,7 @@ public static class ListBackupPlansFixedSizeCollection ListBackupPlansFixedSizeCollection> { private ListBackupPlansFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7294,7 +7298,7 @@ private static ListBackupPlansFixedSizeCollection createEmptyCollection() { @Override protected ListBackupPlansFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPlansFixedSizeCollection(pages, collectionSize); } } @@ -7331,8 +7335,9 @@ public static class ListBackupChannelsPage ListBackupChannelsPage> { private ListBackupChannelsPage( - PageContext context, - ListBackupChannelsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupChannelsResponse response) { super(context, response); } @@ -7342,14 +7347,16 @@ private static ListBackupChannelsPage createEmptyPage() { @Override protected ListBackupChannelsPage createPage( - PageContext context, - ListBackupChannelsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupChannelsResponse response) { return new ListBackupChannelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7364,7 +7371,7 @@ public static class ListBackupChannelsFixedSizeCollection ListBackupChannelsFixedSizeCollection> { private ListBackupChannelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7374,7 +7381,7 @@ private static ListBackupChannelsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupChannelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupChannelsFixedSizeCollection(pages, collectionSize); } } @@ -7413,10 +7420,11 @@ public static class ListBackupPlanBindingsPage ListBackupPlanBindingsPage> { private ListBackupPlanBindingsPage( - PageContext< + @Nullable + PageContext< ListBackupPlanBindingsRequest, ListBackupPlanBindingsResponse, BackupPlanBinding> context, - ListBackupPlanBindingsResponse response) { + @Nullable ListBackupPlanBindingsResponse response) { super(context, response); } @@ -7426,16 +7434,18 @@ private static ListBackupPlanBindingsPage createEmptyPage() { @Override protected ListBackupPlanBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListBackupPlanBindingsRequest, ListBackupPlanBindingsResponse, BackupPlanBinding> context, - ListBackupPlanBindingsResponse response) { + @Nullable ListBackupPlanBindingsResponse response) { return new ListBackupPlanBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBackupPlanBindingsRequest, ListBackupPlanBindingsResponse, BackupPlanBinding> context, ApiFuture futureResponse) { @@ -7452,7 +7462,7 @@ public static class ListBackupPlanBindingsFixedSizeCollection ListBackupPlanBindingsFixedSizeCollection> { private ListBackupPlanBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7462,7 +7472,7 @@ private static ListBackupPlanBindingsFixedSizeCollection createEmptyCollection() @Override protected ListBackupPlanBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPlanBindingsFixedSizeCollection(pages, collectionSize); } } @@ -7493,8 +7503,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -7504,14 +7514,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7525,7 +7535,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7535,7 +7546,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -7572,8 +7583,9 @@ public static class ListVolumeBackupsPage ListVolumeBackupsPage> { private ListVolumeBackupsPage( - PageContext context, - ListVolumeBackupsResponse response) { + @Nullable PageContext + context, + @Nullable ListVolumeBackupsResponse response) { super(context, response); } @@ -7583,14 +7595,16 @@ private static ListVolumeBackupsPage createEmptyPage() { @Override protected ListVolumeBackupsPage createPage( - PageContext context, - ListVolumeBackupsResponse response) { + @Nullable PageContext + context, + @Nullable ListVolumeBackupsResponse response) { return new ListVolumeBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7605,7 +7619,7 @@ public static class ListVolumeBackupsFixedSizeCollection ListVolumeBackupsFixedSizeCollection> { private ListVolumeBackupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7615,7 +7629,7 @@ private static ListVolumeBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListVolumeBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVolumeBackupsFixedSizeCollection(pages, collectionSize); } } @@ -7649,8 +7663,9 @@ public static class ListRestorePlansPage ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan, ListRestorePlansPage> { private ListRestorePlansPage( - PageContext context, - ListRestorePlansResponse response) { + @Nullable PageContext + context, + @Nullable ListRestorePlansResponse response) { super(context, response); } @@ -7660,14 +7675,16 @@ private static ListRestorePlansPage createEmptyPage() { @Override protected ListRestorePlansPage createPage( - PageContext context, - ListRestorePlansResponse response) { + @Nullable PageContext + context, + @Nullable ListRestorePlansResponse response) { return new ListRestorePlansPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7682,7 +7699,7 @@ public static class ListRestorePlansFixedSizeCollection ListRestorePlansFixedSizeCollection> { private ListRestorePlansFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7692,7 +7709,7 @@ private static ListRestorePlansFixedSizeCollection createEmptyCollection() { @Override protected ListRestorePlansFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRestorePlansFixedSizeCollection(pages, collectionSize); } } @@ -7730,9 +7747,10 @@ public static class ListRestoreChannelsPage ListRestoreChannelsPage> { private ListRestoreChannelsPage( - PageContext + @Nullable + PageContext context, - ListRestoreChannelsResponse response) { + @Nullable ListRestoreChannelsResponse response) { super(context, response); } @@ -7742,15 +7760,17 @@ private static ListRestoreChannelsPage createEmptyPage() { @Override protected ListRestoreChannelsPage createPage( - PageContext + @Nullable + PageContext context, - ListRestoreChannelsResponse response) { + @Nullable ListRestoreChannelsResponse response) { return new ListRestoreChannelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7766,7 +7786,7 @@ public static class ListRestoreChannelsFixedSizeCollection ListRestoreChannelsFixedSizeCollection> { private ListRestoreChannelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7776,7 +7796,7 @@ private static ListRestoreChannelsFixedSizeCollection createEmptyCollection() { @Override protected ListRestoreChannelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRestoreChannelsFixedSizeCollection(pages, collectionSize); } } @@ -7815,10 +7835,11 @@ public static class ListRestorePlanBindingsPage ListRestorePlanBindingsPage> { private ListRestorePlanBindingsPage( - PageContext< + @Nullable + PageContext< ListRestorePlanBindingsRequest, ListRestorePlanBindingsResponse, RestorePlanBinding> context, - ListRestorePlanBindingsResponse response) { + @Nullable ListRestorePlanBindingsResponse response) { super(context, response); } @@ -7828,16 +7849,18 @@ private static ListRestorePlanBindingsPage createEmptyPage() { @Override protected ListRestorePlanBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListRestorePlanBindingsRequest, ListRestorePlanBindingsResponse, RestorePlanBinding> context, - ListRestorePlanBindingsResponse response) { + @Nullable ListRestorePlanBindingsResponse response) { return new ListRestorePlanBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRestorePlanBindingsRequest, ListRestorePlanBindingsResponse, RestorePlanBinding> context, ApiFuture futureResponse) { @@ -7854,7 +7877,7 @@ public static class ListRestorePlanBindingsFixedSizeCollection ListRestorePlanBindingsFixedSizeCollection> { private ListRestorePlanBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7864,7 +7887,7 @@ private static ListRestorePlanBindingsFixedSizeCollection createEmptyCollection( @Override protected ListRestorePlanBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRestorePlanBindingsFixedSizeCollection(pages, collectionSize); } } @@ -7897,8 +7920,8 @@ public static class ListRestoresPage extends AbstractPage { private ListRestoresPage( - PageContext context, - ListRestoresResponse response) { + @Nullable PageContext context, + @Nullable ListRestoresResponse response) { super(context, response); } @@ -7908,14 +7931,14 @@ private static ListRestoresPage createEmptyPage() { @Override protected ListRestoresPage createPage( - PageContext context, - ListRestoresResponse response) { + @Nullable PageContext context, + @Nullable ListRestoresResponse response) { return new ListRestoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7929,7 +7952,8 @@ public static class ListRestoresFixedSizeCollection ListRestoresPage, ListRestoresFixedSizeCollection> { - private ListRestoresFixedSizeCollection(List pages, int collectionSize) { + private ListRestoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7939,7 +7963,7 @@ private static ListRestoresFixedSizeCollection createEmptyCollection() { @Override protected ListRestoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRestoresFixedSizeCollection(pages, collectionSize); } } @@ -7976,8 +8000,9 @@ public static class ListVolumeRestoresPage ListVolumeRestoresPage> { private ListVolumeRestoresPage( - PageContext context, - ListVolumeRestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListVolumeRestoresResponse response) { super(context, response); } @@ -7987,14 +8012,16 @@ private static ListVolumeRestoresPage createEmptyPage() { @Override protected ListVolumeRestoresPage createPage( - PageContext context, - ListVolumeRestoresResponse response) { + @Nullable PageContext + context, + @Nullable ListVolumeRestoresResponse response) { return new ListVolumeRestoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8009,7 +8036,7 @@ public static class ListVolumeRestoresFixedSizeCollection ListVolumeRestoresFixedSizeCollection> { private ListVolumeRestoresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8019,7 +8046,7 @@ private static ListVolumeRestoresFixedSizeCollection createEmptyCollection() { @Override protected ListVolumeRestoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVolumeRestoresFixedSizeCollection(pages, collectionSize); } } @@ -8053,8 +8080,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8064,14 +8091,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8085,7 +8112,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8095,7 +8123,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java index 31e97b74cd4d..13945efa27fd 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -547,7 +548,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); } @@ -567,7 +568,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BackupForGKEStubSettings.newBuilder(clientContext)); } diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java index 3bbad5afa5cd..43cdc4c03e78 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java @@ -106,6 +106,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -117,11 +118,12 @@ @Generated("by gapic-generator-java") public abstract class BackupForGKEStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java index e24ab8233ceb..3dbc6e806f24 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStubSettings.java @@ -140,6 +140,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1437,7 +1438,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); } @@ -1742,7 +1743,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createBackupPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupChannelName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupChannelName.java index 427bcedb7c10..6481ed5d96b3 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupChannelName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupChannelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupChanne .toString(); } - public static BackupChannelName parse(String formattedString) { + public static @Nullable BackupChannelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupChannelName> values) { List list = new ArrayList<>(values.size()); for (BackupChannelName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java index 3f3d012afde0..f2c453c71b02 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String backupPlan, .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanBindingName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanBindingName.java index 86b56c80fbfd..a638eb60e513 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanBindingName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BackupPlanBindingName parse(String formattedString) { + public static @Nullable BackupPlanBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPlanBindingName> values) { List list = new ArrayList<>(values.size()); for (BackupPlanBindingName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java index a5c0f6c2f5ce..8a6c47a28839 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String backupPlan) .toString(); } - public static BackupPlanName parse(String formattedString) { + public static @Nullable BackupPlanName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPlanName> values) { List list = new ArrayList<>(values.size()); for (BackupPlanName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java index 22832b65e09a..53751f9efb28 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreChannelName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreChannelName.java index c8ca39b70420..3737c0a259b1 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreChannelName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreChannelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String restoreChann .toString(); } - public static RestoreChannelName parse(String formattedString) { + public static @Nullable RestoreChannelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RestoreChannelName> values) { List list = new ArrayList<>(values.size()); for (RestoreChannelName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java index a60c4453b5be..0fd161b7e972 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String restorePlan, .toString(); } - public static RestoreName parse(String formattedString) { + public static @Nullable RestoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RestoreName> values) { List list = new ArrayList<>(values.size()); for (RestoreName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanBindingName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanBindingName.java index ba49948214d2..4ac9cf6d9f82 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanBindingName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static RestorePlanBindingName parse(String formattedString) { + public static @Nullable RestorePlanBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RestorePlanBindingName> values) { List list = new ArrayList<>(values.size()); for (RestorePlanBindingName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java index f0115d3281c0..7ed1fcaa93c6 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestorePlanName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String restorePlan) .toString(); } - public static RestorePlanName parse(String formattedString) { + public static @Nullable RestorePlanName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RestorePlanName> values) { List list = new ArrayList<>(values.size()); for (RestorePlanName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java index ec61f95082df..57b6a8786be5 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeBackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VolumeBackupName parse(String formattedString) { + public static @Nullable VolumeBackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VolumeBackupName> values) { List list = new ArrayList<>(values.size()); for (VolumeBackupName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java index daf67518a5f0..813aa8795355 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeRestoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static VolumeRestoreName parse(String formattedString) { + public static @Nullable VolumeRestoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VolumeRestoreName> values) { List list = new ArrayList<>(values.size()); for (VolumeRestoreName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlClient.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlClient.java index b6336350d1dc..4d5e4af22ac6 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlClient.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlClient.java @@ -25,6 +25,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. /** @@ -120,7 +121,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GatewayControlClient implements BackgroundResource { - private final GatewayControlSettings settings; + private final @Nullable GatewayControlSettings settings; private final GatewayControlStub stub; /** Constructs an instance of GatewayControlClient with default settings. */ @@ -160,7 +161,7 @@ protected GatewayControlClient(GatewayControlStub stub) { this.stub = stub; } - public final GatewayControlSettings getSettings() { + public final @Nullable GatewayControlSettings getSettings() { return settings; } diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlSettings.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlSettings.java index 1f33f2fd812e..dee570ad19a9 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlSettings.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/GatewayControlSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -139,7 +140,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -159,7 +160,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GatewayControlStubSettings.newBuilder(clientContext)); } diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayControlStubSettings.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayControlStubSettings.java index 780644ba1678..6fe685a72301 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayControlStubSettings.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/GatewayControlStubSettings.java @@ -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. /** @@ -184,7 +185,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -248,7 +249,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateCredentialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java index 622ad0c45261..aa85e4804413 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClient.java @@ -39,6 +39,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. /** @@ -307,7 +308,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AttachedClustersClient implements BackgroundResource { - private final AttachedClustersSettings settings; + private final @Nullable AttachedClustersSettings settings; private final AttachedClustersStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -355,7 +356,7 @@ protected AttachedClustersClient(AttachedClustersStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AttachedClustersSettings getSettings() { + public final @Nullable AttachedClustersSettings getSettings() { return settings; } @@ -424,7 +425,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAttachedClusterAsync( - LocationName parent, AttachedCluster attachedCluster, String attachedClusterId) { + @Nullable LocationName parent, AttachedCluster attachedCluster, String attachedClusterId) { CreateAttachedClusterRequest request = CreateAttachedClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -773,7 +774,7 @@ public final OperationFuture updateAttachedC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importAttachedClusterAsync( - LocationName parent, String fleetMembership) { + @Nullable LocationName parent, String fleetMembership) { ImportAttachedClusterRequest request = ImportAttachedClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -981,7 +982,7 @@ public final OperationFuture importAttachedC * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttachedCluster getAttachedCluster(AttachedClusterName name) { + public final AttachedCluster getAttachedCluster(@Nullable AttachedClusterName name) { GetAttachedClusterRequest request = GetAttachedClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1112,7 +1113,8 @@ public final AttachedCluster getAttachedCluster(GetAttachedClusterRequest reques * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttachedClustersPagedResponse listAttachedClusters(LocationName parent) { + public final ListAttachedClustersPagedResponse listAttachedClusters( + @Nullable LocationName parent) { ListAttachedClustersRequest request = ListAttachedClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1297,7 +1299,7 @@ public final ListAttachedClustersPagedResponse listAttachedClusters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAttachedClusterAsync( - AttachedClusterName name) { + @Nullable AttachedClusterName name) { DeleteAttachedClusterRequest request = DeleteAttachedClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1486,7 +1488,8 @@ public final OperationFuture deleteAttachedClusterAsyn * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttachedServerConfig getAttachedServerConfig(AttachedServerConfigName name) { + public final AttachedServerConfig getAttachedServerConfig( + @Nullable AttachedServerConfigName name) { GetAttachedServerConfigRequest request = GetAttachedServerConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1623,7 +1626,8 @@ public final AttachedServerConfig getAttachedServerConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateAttachedClusterInstallManifestResponse - generateAttachedClusterInstallManifest(LocationName parent, String attachedClusterId) { + generateAttachedClusterInstallManifest( + @Nullable LocationName parent, String attachedClusterId) { GenerateAttachedClusterInstallManifestRequest request = GenerateAttachedClusterInstallManifestRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1892,9 +1896,10 @@ public static class ListAttachedClustersPage ListAttachedClustersPage> { private ListAttachedClustersPage( - PageContext + @Nullable + PageContext context, - ListAttachedClustersResponse response) { + @Nullable ListAttachedClustersResponse response) { super(context, response); } @@ -1904,15 +1909,17 @@ private static ListAttachedClustersPage createEmptyPage() { @Override protected ListAttachedClustersPage createPage( - PageContext + @Nullable + PageContext context, - ListAttachedClustersResponse response) { + @Nullable ListAttachedClustersResponse response) { return new ListAttachedClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1928,7 +1935,7 @@ public static class ListAttachedClustersFixedSizeCollection ListAttachedClustersFixedSizeCollection> { private ListAttachedClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1938,7 +1945,7 @@ private static ListAttachedClustersFixedSizeCollection createEmptyCollection() { @Override protected ListAttachedClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttachedClustersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java index dbf444817825..cc6f297d6e05 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClustersSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AttachedClustersStubSettings.newBuilder(clientContext)); } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java index ea50be72f2b6..64d1ee5afb54 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java @@ -39,6 +39,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. /** @@ -426,7 +427,7 @@ @Deprecated @Generated("by gapic-generator-java") public class AwsClustersClient implements BackgroundResource { - private final AwsClustersSettings settings; + private final @Nullable AwsClustersSettings settings; private final AwsClustersStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -473,7 +474,7 @@ protected AwsClustersClient(AwsClustersStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AwsClustersSettings getSettings() { + public final @Nullable AwsClustersSettings getSettings() { return settings; } @@ -542,7 +543,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ @Deprecated public final OperationFuture createAwsClusterAsync( - LocationName parent, AwsCluster awsCluster, String awsClusterId) { + @Nullable LocationName parent, AwsCluster awsCluster, String awsClusterId) { CreateAwsClusterRequest request = CreateAwsClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -906,7 +907,7 @@ public final UnaryCallable updateAwsClusterC * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AwsCluster getAwsCluster(AwsClusterName name) { + public final AwsCluster getAwsCluster(@Nullable AwsClusterName name) { GetAwsClusterRequest request = GetAwsClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAwsCluster(request); @@ -1035,7 +1036,7 @@ public final UnaryCallable getAwsClusterCallab * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListAwsClustersPagedResponse listAwsClusters(LocationName parent) { + public final ListAwsClustersPagedResponse listAwsClusters(@Nullable LocationName parent) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1230,7 +1231,7 @@ public final ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest */ @Deprecated public final OperationFuture deleteAwsClusterAsync( - AwsClusterName name) { + @Nullable AwsClusterName name) { DeleteAwsClusterRequest request = DeleteAwsClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAwsClusterAsync(request); @@ -1600,7 +1601,7 @@ public final GenerateAwsAccessTokenResponse generateAwsAccessToken( */ @Deprecated public final OperationFuture createAwsNodePoolAsync( - AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) { + @Nullable AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) { CreateAwsNodePoolRequest request = CreateAwsNodePoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1971,7 +1972,7 @@ public final UnaryCallable updateAwsNodePoo */ @Deprecated public final OperationFuture rollbackAwsNodePoolUpdateAsync( - AwsNodePoolName name) { + @Nullable AwsNodePoolName name) { RollbackAwsNodePoolUpdateRequest request = RollbackAwsNodePoolUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2165,7 +2166,7 @@ public final OperationFuture rollbackAwsNodePool * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AwsNodePool getAwsNodePool(AwsNodePoolName name) { + public final AwsNodePool getAwsNodePool(@Nullable AwsNodePoolName name) { GetAwsNodePoolRequest request = GetAwsNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAwsNodePool(request); @@ -2302,7 +2303,7 @@ public final UnaryCallable getAwsNodePoolCal * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListAwsNodePoolsPagedResponse listAwsNodePools(AwsClusterName parent) { + public final ListAwsNodePoolsPagedResponse listAwsNodePools(@Nullable AwsClusterName parent) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2497,7 +2498,7 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequ */ @Deprecated public final OperationFuture deleteAwsNodePoolAsync( - AwsNodePoolName name) { + @Nullable AwsNodePoolName name) { DeleteAwsNodePoolRequest request = DeleteAwsNodePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2826,7 +2827,7 @@ public final UnaryCallable getAwsJsonW * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AwsServerConfig getAwsServerConfig(AwsServerConfigName name) { + public final AwsServerConfig getAwsServerConfig(@Nullable AwsServerConfigName name) { GetAwsServerConfigRequest request = GetAwsServerConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2992,8 +2993,8 @@ public static class ListAwsClustersPage ListAwsClustersRequest, ListAwsClustersResponse, AwsCluster, ListAwsClustersPage> { private ListAwsClustersPage( - PageContext context, - ListAwsClustersResponse response) { + @Nullable PageContext context, + @Nullable ListAwsClustersResponse response) { super(context, response); } @@ -3003,14 +3004,14 @@ private static ListAwsClustersPage createEmptyPage() { @Override protected ListAwsClustersPage createPage( - PageContext context, - ListAwsClustersResponse response) { + @Nullable PageContext context, + @Nullable ListAwsClustersResponse response) { return new ListAwsClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3025,7 +3026,7 @@ public static class ListAwsClustersFixedSizeCollection ListAwsClustersFixedSizeCollection> { private ListAwsClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3035,7 +3036,7 @@ private static ListAwsClustersFixedSizeCollection createEmptyCollection() { @Override protected ListAwsClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAwsClustersFixedSizeCollection(pages, collectionSize); } } @@ -3069,8 +3070,9 @@ public static class ListAwsNodePoolsPage ListAwsNodePoolsRequest, ListAwsNodePoolsResponse, AwsNodePool, ListAwsNodePoolsPage> { private ListAwsNodePoolsPage( - PageContext context, - ListAwsNodePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListAwsNodePoolsResponse response) { super(context, response); } @@ -3080,14 +3082,16 @@ private static ListAwsNodePoolsPage createEmptyPage() { @Override protected ListAwsNodePoolsPage createPage( - PageContext context, - ListAwsNodePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListAwsNodePoolsResponse response) { return new ListAwsNodePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3102,7 +3106,7 @@ public static class ListAwsNodePoolsFixedSizeCollection ListAwsNodePoolsFixedSizeCollection> { private ListAwsNodePoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3112,7 +3116,7 @@ private static ListAwsNodePoolsFixedSizeCollection createEmptyCollection() { @Override protected ListAwsNodePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAwsNodePoolsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java index 6cbb4bb3a17f..78560004adbd 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -424,7 +425,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); } @@ -444,7 +445,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AwsClustersStubSettings.newBuilder(clientContext)); } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java index 3d0bb7536656..632f18d29373 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java @@ -39,6 +39,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. /** @@ -500,7 +501,7 @@ @Deprecated @Generated("by gapic-generator-java") public class AzureClustersClient implements BackgroundResource { - private final AzureClustersSettings settings; + private final @Nullable AzureClustersSettings settings; private final AzureClustersStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -548,7 +549,7 @@ protected AzureClustersClient(AzureClustersStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AzureClustersSettings getSettings() { + public final @Nullable AzureClustersSettings getSettings() { return settings; } @@ -620,7 +621,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ @Deprecated public final OperationFuture createAzureClientAsync( - LocationName parent, AzureClient azureClient, String azureClientId) { + @Nullable LocationName parent, AzureClient azureClient, String azureClientId) { CreateAzureClientRequest request = CreateAzureClientRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -842,7 +843,7 @@ public final UnaryCallable createAzureClien * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureClient getAzureClient(AzureClientName name) { + public final AzureClient getAzureClient(@Nullable AzureClientName name) { GetAzureClientRequest request = GetAzureClientRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAzureClient(request); @@ -972,7 +973,7 @@ public final UnaryCallable getAzureClientCal * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListAzureClientsPagedResponse listAzureClients(LocationName parent) { + public final ListAzureClientsPagedResponse listAzureClients(@Nullable LocationName parent) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1168,7 +1169,7 @@ public final ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequ */ @Deprecated public final OperationFuture deleteAzureClientAsync( - AzureClientName name) { + @Nullable AzureClientName name) { DeleteAzureClientRequest request = DeleteAzureClientRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1381,7 +1382,7 @@ public final UnaryCallable deleteAzureClien */ @Deprecated public final OperationFuture createAzureClusterAsync( - LocationName parent, AzureCluster azureCluster, String azureClusterId) { + @Nullable LocationName parent, AzureCluster azureCluster, String azureClusterId) { CreateAzureClusterRequest request = CreateAzureClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1739,7 +1740,7 @@ public final UnaryCallable updateAzureClus * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureCluster getAzureCluster(AzureClusterName name) { + public final AzureCluster getAzureCluster(@Nullable AzureClusterName name) { GetAzureClusterRequest request = GetAzureClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAzureCluster(request); @@ -1869,7 +1870,7 @@ public final UnaryCallable getAzureCluster * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListAzureClustersPagedResponse listAzureClusters(LocationName parent) { + public final ListAzureClustersPagedResponse listAzureClusters(@Nullable LocationName parent) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2065,7 +2066,7 @@ public final ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersR */ @Deprecated public final OperationFuture deleteAzureClusterAsync( - AzureClusterName name) { + @Nullable AzureClusterName name) { DeleteAzureClusterRequest request = DeleteAzureClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2441,7 +2442,7 @@ public final GenerateAzureAccessTokenResponse generateAzureAccessToken( */ @Deprecated public final OperationFuture createAzureNodePoolAsync( - AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) { + @Nullable AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) { CreateAzureNodePoolRequest request = CreateAzureNodePoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2800,7 +2801,7 @@ public final UnaryCallable updateAzureNod * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureNodePool getAzureNodePool(AzureNodePoolName name) { + public final AzureNodePool getAzureNodePool(@Nullable AzureNodePoolName name) { GetAzureNodePoolRequest request = GetAzureNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAzureNodePool(request); @@ -2939,7 +2940,8 @@ public final UnaryCallable getAzureNodeP * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final ListAzureNodePoolsPagedResponse listAzureNodePools(AzureClusterName parent) { + public final ListAzureNodePoolsPagedResponse listAzureNodePools( + @Nullable AzureClusterName parent) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3138,7 +3140,7 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools( */ @Deprecated public final OperationFuture deleteAzureNodePoolAsync( - AzureNodePoolName name) { + @Nullable AzureNodePoolName name) { DeleteAzureNodePoolRequest request = DeleteAzureNodePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3339,7 +3341,7 @@ public final UnaryCallable deleteAzureNod * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureOpenIdConfig getAzureOpenIdConfig(AzureClusterName azureCluster) { + public final AzureOpenIdConfig getAzureOpenIdConfig(@Nullable AzureClusterName azureCluster) { GetAzureOpenIdConfigRequest request = GetAzureOpenIdConfigRequest.newBuilder() .setAzureCluster(azureCluster == null ? null : azureCluster.toString()) @@ -3470,7 +3472,7 @@ public final AzureOpenIdConfig getAzureOpenIdConfig(GetAzureOpenIdConfigRequest * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureJsonWebKeys getAzureJsonWebKeys(AzureClusterName azureCluster) { + public final AzureJsonWebKeys getAzureJsonWebKeys(@Nullable AzureClusterName azureCluster) { GetAzureJsonWebKeysRequest request = GetAzureJsonWebKeysRequest.newBuilder() .setAzureCluster(azureCluster == null ? null : azureCluster.toString()) @@ -3602,7 +3604,7 @@ public final AzureJsonWebKeys getAzureJsonWebKeys(GetAzureJsonWebKeysRequest req * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final AzureServerConfig getAzureServerConfig(AzureServerConfigName name) { + public final AzureServerConfig getAzureServerConfig(@Nullable AzureServerConfigName name) { GetAzureServerConfigRequest request = GetAzureServerConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3768,8 +3770,9 @@ public static class ListAzureClientsPage ListAzureClientsRequest, ListAzureClientsResponse, AzureClient, ListAzureClientsPage> { private ListAzureClientsPage( - PageContext context, - ListAzureClientsResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureClientsResponse response) { super(context, response); } @@ -3779,14 +3782,16 @@ private static ListAzureClientsPage createEmptyPage() { @Override protected ListAzureClientsPage createPage( - PageContext context, - ListAzureClientsResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureClientsResponse response) { return new ListAzureClientsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3801,7 +3806,7 @@ public static class ListAzureClientsFixedSizeCollection ListAzureClientsFixedSizeCollection> { private ListAzureClientsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3811,7 +3816,7 @@ private static ListAzureClientsFixedSizeCollection createEmptyCollection() { @Override protected ListAzureClientsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAzureClientsFixedSizeCollection(pages, collectionSize); } } @@ -3848,8 +3853,9 @@ public static class ListAzureClustersPage ListAzureClustersPage> { private ListAzureClustersPage( - PageContext context, - ListAzureClustersResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureClustersResponse response) { super(context, response); } @@ -3859,14 +3865,16 @@ private static ListAzureClustersPage createEmptyPage() { @Override protected ListAzureClustersPage createPage( - PageContext context, - ListAzureClustersResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureClustersResponse response) { return new ListAzureClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3881,7 +3889,7 @@ public static class ListAzureClustersFixedSizeCollection ListAzureClustersFixedSizeCollection> { private ListAzureClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3891,7 +3899,7 @@ private static ListAzureClustersFixedSizeCollection createEmptyCollection() { @Override protected ListAzureClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAzureClustersFixedSizeCollection(pages, collectionSize); } } @@ -3928,8 +3936,9 @@ public static class ListAzureNodePoolsPage ListAzureNodePoolsPage> { private ListAzureNodePoolsPage( - PageContext context, - ListAzureNodePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureNodePoolsResponse response) { super(context, response); } @@ -3939,14 +3948,16 @@ private static ListAzureNodePoolsPage createEmptyPage() { @Override protected ListAzureNodePoolsPage createPage( - PageContext context, - ListAzureNodePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListAzureNodePoolsResponse response) { return new ListAzureNodePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3961,7 +3972,7 @@ public static class ListAzureNodePoolsFixedSizeCollection ListAzureNodePoolsFixedSizeCollection> { private ListAzureNodePoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3971,7 +3982,7 @@ private static ListAzureNodePoolsFixedSizeCollection createEmptyCollection() { @Override protected ListAzureNodePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAzureNodePoolsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java index 101ee50024ca..49fda9046439 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -468,7 +469,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); } @@ -488,7 +489,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AzureClustersStubSettings.newBuilder(clientContext)); } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java index 29b3bbbeb8e8..888526db463b 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class AttachedClustersStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java index a7d6babce739..14f4eeee96cd 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AttachedClustersStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -444,7 +445,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); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAttachedClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java index ba2a8e436e60..d6aaeb9fc066 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,11 +68,12 @@ @Generated("by gapic-generator-java") public abstract class AwsClustersStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java index fee624b9aee0..307f32c819e1 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -640,7 +641,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); } @@ -793,7 +794,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAwsClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java index 6963206e4150..5309ddc5a7d1 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java @@ -59,6 +59,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -73,11 +74,12 @@ @Generated("by gapic-generator-java") public abstract class AzureClustersStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java index d6ef18b94d90..8c8ade6b96a1 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java @@ -93,6 +93,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -756,7 +757,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); } @@ -928,7 +929,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAzureClientSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java index f2b89cc29df8..70ed5b4d4970 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String attachedClus .toString(); } - public static AttachedClusterName parse(String formattedString) { + public static @Nullable AttachedClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachedClusterName> values) { List list = new ArrayList<>(values.size()); for (AttachedClusterName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java index 8d002bdbcbf2..f68fd8cddd46 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServerConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AttachedServerConfigName parse(String formattedString) { + public static @Nullable AttachedServerConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttachedServerConfigName> values) { List list = new ArrayList<>(values.size()); for (AttachedServerConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterName.java index 1af61715f4db..f5ff63ab5397 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String awsCluster) .toString(); } - public static AwsClusterName parse(String formattedString) { + public static @Nullable AwsClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AwsClusterName> values) { List list = new ArrayList<>(values.size()); for (AwsClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolName.java index 26ca65976c1e..52b953c81ce9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AwsNodePoolName parse(String formattedString) { + public static @Nullable AwsNodePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AwsNodePoolName> values) { List list = new ArrayList<>(values.size()); for (AwsNodePoolName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigName.java index 71c2c1a05a0f..bec1ebbefa1f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AwsServerConfigName parse(String formattedString) { + public static @Nullable AwsServerConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AwsServerConfigName> values) { List list = new ArrayList<>(values.size()); for (AwsServerConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientName.java index e4ea0945a8fd..7da0d10b05b7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String azureClient) .toString(); } - public static AzureClientName parse(String formattedString) { + public static @Nullable AzureClientName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AzureClientName> values) { List list = new ArrayList<>(values.size()); for (AzureClientName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterName.java index b3da70999932..da33c02d7971 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String azureCluster .toString(); } - public static AzureClusterName parse(String formattedString) { + public static @Nullable AzureClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AzureClusterName> values) { List list = new ArrayList<>(values.size()); for (AzureClusterName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolName.java index 3e6e6d46e758..19900591e042 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AzureNodePoolName parse(String formattedString) { + public static @Nullable AzureNodePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AzureNodePoolName> values) { List list = new ArrayList<>(values.size()); for (AzureNodePoolName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigName.java index 82afbabe1be0..defced026978 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AzureServerConfigName parse(String formattedString) { + public static @Nullable AzureServerConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AzureServerConfigName> values) { List list = new ArrayList<>(values.size()); for (AzureServerConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/LocationName.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/LocationName.java index b4b011a4e2d8..66ec2ed13ac7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/LocationName.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index 508e7c458be9..87b04519d479 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -39,6 +39,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. /** @@ -1002,7 +1003,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; + private final @Nullable GkeHubSettings settings; private final GkeHubStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1048,7 +1049,7 @@ protected GkeHubClient(GkeHubStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GkeHubSettings getSettings() { + public final @Nullable GkeHubSettings getSettings() { return settings; } @@ -1098,7 +1099,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * memberships in all the regions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMembershipsPagedResponse listMemberships(LocationName parent) { + public final ListMembershipsPagedResponse listMemberships(@Nullable LocationName parent) { ListMembershipsRequest request = ListMembershipsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1271,7 +1272,8 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * `projects/*/locations/global/scopes/*`, to which the Memberships are bound. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBoundMembershipsPagedResponse listBoundMemberships(ScopeName scopeName) { + public final ListBoundMembershipsPagedResponse listBoundMemberships( + @Nullable ScopeName scopeName) { ListBoundMembershipsRequest request = ListBoundMembershipsRequest.newBuilder() .setScopeName(scopeName == null ? null : scopeName.toString()) @@ -1446,7 +1448,7 @@ public final ListBoundMembershipsPagedResponse listBoundMemberships( * Specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFeaturesPagedResponse listFeatures(LocationName parent) { + public final ListFeaturesPagedResponse listFeatures(@Nullable LocationName parent) { ListFeaturesRequest request = ListFeaturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1616,7 +1618,7 @@ public final UnaryCallable listFeatur * `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(MembershipName name) { + public final Membership getMembership(@Nullable MembershipName name) { GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMembership(request); @@ -1726,7 +1728,7 @@ public final UnaryCallable getMembershipCallab * `projects/*/locations/*/features/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feature getFeature(FeatureName name) { + public final Feature getFeature(@Nullable FeatureName name) { GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeature(request); @@ -1853,7 +1855,7 @@ public final UnaryCallable getFeatureCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMembershipAsync( - LocationName parent, Membership resource, String membershipId) { + @Nullable LocationName parent, Membership resource, String membershipId) { CreateMembershipRequest request = CreateMembershipRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2043,7 +2045,7 @@ public final UnaryCallable createMembershipC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFeatureAsync( - LocationName parent, Feature resource, String featureId) { + @Nullable LocationName parent, Feature resource, String featureId) { CreateFeatureRequest request = CreateFeatureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2211,7 +2213,7 @@ public final UnaryCallable createFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMembershipAsync( - MembershipName name) { + @Nullable MembershipName name) { DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteMembershipAsync(request); @@ -2373,7 +2375,8 @@ public final UnaryCallable deleteMembershipC * `projects/*/locations/*/features/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFeatureAsync(FeatureName name) { + public final OperationFuture deleteFeatureAsync( + @Nullable FeatureName name) { DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFeatureAsync(request); @@ -2529,7 +2532,7 @@ public final UnaryCallable deleteFeatureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateMembershipAsync( - MembershipName name, Membership resource, FieldMask updateMask) { + @Nullable MembershipName name, Membership resource, FieldMask updateMask) { UpdateMembershipRequest request = UpdateMembershipRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2707,7 +2710,7 @@ public final UnaryCallable updateMembershipC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateFeatureAsync( - FeatureName name, Feature resource, FieldMask updateMask) { + @Nullable FeatureName name, Feature resource, FieldMask updateMask) { UpdateFeatureRequest request = UpdateFeatureRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2954,7 +2957,7 @@ public final GenerateConnectManifestResponse generateConnectManifest( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFleetAsync( - LocationName parent, Fleet fleet) { + @Nullable LocationName parent, Fleet fleet) { CreateFleetRequest request = CreateFleetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3104,7 +3107,7 @@ public final UnaryCallable createFleetCallable() * `projects/*/locations/*/fleets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Fleet getFleet(FleetName name) { + public final Fleet getFleet(@Nullable FleetName name) { GetFleetRequest request = GetFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFleet(request); @@ -3338,7 +3341,8 @@ public final UnaryCallable updateFleetCallable() * `projects/*/locations/*/fleets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFleetAsync(FleetName name) { + public final OperationFuture deleteFleetAsync( + @Nullable FleetName name) { DeleteFleetRequest request = DeleteFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFleetAsync(request); @@ -3487,7 +3491,7 @@ public final UnaryCallable deleteFleetCallable() * `organizations/*/locations/*` or `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFleetsPagedResponse listFleets(LocationName parent) { + public final ListFleetsPagedResponse listFleets(@Nullable LocationName parent) { ListFleetsRequest request = ListFleetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listFleets(request); @@ -3645,7 +3649,7 @@ public final UnaryCallable listFleetsCall * `projects/*/locations/*/scopes/*/namespaces/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Namespace getScopeNamespace(NamespaceName name) { + public final Namespace getScopeNamespace(@Nullable NamespaceName name) { GetScopeNamespaceRequest request = GetScopeNamespaceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3771,7 +3775,7 @@ public final UnaryCallable getScopeNamespac * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createScopeNamespaceAsync( - ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) { + @Nullable ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) { CreateScopeNamespaceRequest request = CreateScopeNamespaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4063,7 +4067,7 @@ public final OperationFuture updateScopeNamespaceA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteScopeNamespaceAsync( - NamespaceName name) { + @Nullable NamespaceName name) { DeleteScopeNamespaceRequest request = DeleteScopeNamespaceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4213,7 +4217,7 @@ public final OperationFuture deleteScopeNamespaceAsync * Specified in the format `projects/*/locations/*/scopes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScopeNamespacesPagedResponse listScopeNamespaces(ScopeName parent) { + public final ListScopeNamespacesPagedResponse listScopeNamespaces(@Nullable ScopeName parent) { ListScopeNamespacesRequest request = ListScopeNamespacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4381,7 +4385,7 @@ public final ListScopeNamespacesPagedResponse listScopeNamespaces( * `projects/*/locations/*/scopes/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RBACRoleBinding getScopeRBACRoleBinding(RBACRoleBindingName name) { + public final RBACRoleBinding getScopeRBACRoleBinding(@Nullable RBACRoleBindingName name) { GetScopeRBACRoleBindingRequest request = GetScopeRBACRoleBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4518,7 +4522,7 @@ public final RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createScopeRBACRoleBindingAsync( - MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + @Nullable MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { CreateScopeRBACRoleBindingRequest request = CreateScopeRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4563,7 +4567,7 @@ public final OperationFuture createScopeRBAC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createScopeRBACRoleBindingAsync( - ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + @Nullable ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { CreateScopeRBACRoleBindingRequest request = CreateScopeRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4863,7 +4867,7 @@ public final OperationFuture updateScopeRBAC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteScopeRBACRoleBindingAsync( - RBACRoleBindingName name) { + @Nullable RBACRoleBindingName name) { DeleteScopeRBACRoleBindingRequest request = DeleteScopeRBACRoleBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5024,7 +5028,7 @@ public final OperationFuture deleteScopeRBACRoleBindin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( - MembershipName parent) { + @Nullable MembershipName parent) { ListScopeRBACRoleBindingsRequest request = ListScopeRBACRoleBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5056,7 +5060,8 @@ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( * Specified in the format `projects/*/locations/*/scopes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(ScopeName parent) { + public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( + @Nullable ScopeName parent) { ListScopeRBACRoleBindingsRequest request = ListScopeRBACRoleBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5223,7 +5228,7 @@ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings( * `projects/*/locations/*/scopes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Scope getScope(ScopeName name) { + public final Scope getScope(@Nullable ScopeName name) { GetScopeRequest request = GetScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScope(request); @@ -5338,7 +5343,7 @@ public final UnaryCallable getScopeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createScopeAsync( - LocationName parent, Scope scope, String scopeId) { + @Nullable LocationName parent, Scope scope, String scopeId) { CreateScopeRequest request = CreateScopeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5617,7 +5622,8 @@ public final UnaryCallable updateScopeCallable() * `projects/*/locations/*/scopes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteScopeAsync(ScopeName name) { + public final OperationFuture deleteScopeAsync( + @Nullable ScopeName name) { DeleteScopeRequest request = DeleteScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteScopeAsync(request); @@ -5759,7 +5765,7 @@ public final UnaryCallable deleteScopeCallable() * Specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScopesPagedResponse listScopes(LocationName parent) { + public final ListScopesPagedResponse listScopes(@Nullable LocationName parent) { ListScopesRequest request = ListScopesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listScopes(request); @@ -5919,7 +5925,7 @@ public final UnaryCallable listScopesCall * Specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPermittedScopesPagedResponse listPermittedScopes(LocationName parent) { + public final ListPermittedScopesPagedResponse listPermittedScopes(@Nullable LocationName parent) { ListPermittedScopesRequest request = ListPermittedScopesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6086,7 +6092,7 @@ public final ListPermittedScopesPagedResponse listPermittedScopes( * `projects/*/locations/*/memberships/*/bindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MembershipBinding getMembershipBinding(MembershipBindingName name) { + public final MembershipBinding getMembershipBinding(@Nullable MembershipBindingName name) { GetMembershipBindingRequest request = GetMembershipBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6217,7 +6223,9 @@ public final MembershipBinding getMembershipBinding(GetMembershipBindingRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMembershipBindingAsync( - MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) { + @Nullable MembershipName parent, + MembershipBinding membershipBinding, + String membershipBindingId) { CreateMembershipBindingRequest request = CreateMembershipBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6511,7 +6519,7 @@ public final OperationFuture updateMembers * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMembershipBindingAsync( - MembershipBindingName name) { + @Nullable MembershipBindingName name) { DeleteMembershipBindingRequest request = DeleteMembershipBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6669,7 +6677,8 @@ public final OperationFuture deleteMembershipBindingAs * Specified in the format `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMembershipBindingsPagedResponse listMembershipBindings(MembershipName parent) { + public final ListMembershipBindingsPagedResponse listMembershipBindings( + @Nullable MembershipName parent) { ListMembershipBindingsRequest request = ListMembershipBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6840,7 +6849,7 @@ public final ListMembershipBindingsPagedResponse listMembershipBindings( * `projects/*/locations/*/memberships/*/rbacrolebindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RBACRoleBinding getMembershipRBACRoleBinding(RBACRoleBindingName name) { + public final RBACRoleBinding getMembershipRBACRoleBinding(@Nullable RBACRoleBindingName name) { GetMembershipRBACRoleBindingRequest request = GetMembershipRBACRoleBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6979,7 +6988,9 @@ public final RBACRoleBinding getMembershipRBACRoleBinding( */ public final OperationFuture createMembershipRBACRoleBindingAsync( - MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + @Nullable MembershipName parent, + RBACRoleBinding rbacrolebinding, + String rbacrolebindingId) { CreateMembershipRBACRoleBindingRequest request = CreateMembershipRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7025,7 +7036,7 @@ public final RBACRoleBinding getMembershipRBACRoleBinding( */ public final OperationFuture createMembershipRBACRoleBindingAsync( - ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { + @Nullable ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) { CreateMembershipRBACRoleBindingRequest request = CreateMembershipRBACRoleBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7326,7 +7337,7 @@ public final RBACRoleBinding getMembershipRBACRoleBinding( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMembershipRBACRoleBindingAsync( - RBACRoleBindingName name) { + @Nullable RBACRoleBindingName name) { DeleteMembershipRBACRoleBindingRequest request = DeleteMembershipRBACRoleBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7488,7 +7499,7 @@ public final OperationFuture deleteMembershipRBACRoleB * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( - MembershipName parent) { + @Nullable MembershipName parent) { ListMembershipRBACRoleBindingsRequest request = ListMembershipRBACRoleBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7522,7 +7533,7 @@ public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleB * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMembershipRBACRoleBindingsPagedResponse listMembershipRBACRoleBindings( - ScopeName parent) { + @Nullable ScopeName parent) { ListMembershipRBACRoleBindingsRequest request = ListMembershipRBACRoleBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7797,8 +7808,8 @@ public static class ListMembershipsPage ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { private ListMembershipsPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { super(context, response); } @@ -7808,14 +7819,14 @@ private static ListMembershipsPage createEmptyPage() { @Override protected ListMembershipsPage createPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { return new ListMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7830,7 +7841,7 @@ public static class ListMembershipsFixedSizeCollection ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7840,7 +7851,7 @@ private static ListMembershipsFixedSizeCollection createEmptyCollection() { @Override protected ListMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembershipsFixedSizeCollection(pages, collectionSize); } } @@ -7877,8 +7888,9 @@ public static class ListBoundMembershipsPage ListBoundMembershipsPage> { private ListBoundMembershipsPage( - PageContext context, - ListBoundMembershipsResponse response) { + @Nullable PageContext + context, + @Nullable ListBoundMembershipsResponse response) { super(context, response); } @@ -7888,14 +7900,16 @@ private static ListBoundMembershipsPage createEmptyPage() { @Override protected ListBoundMembershipsPage createPage( - PageContext context, - ListBoundMembershipsResponse response) { + @Nullable PageContext + context, + @Nullable ListBoundMembershipsResponse response) { return new ListBoundMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7910,7 +7924,7 @@ public static class ListBoundMembershipsFixedSizeCollection ListBoundMembershipsFixedSizeCollection> { private ListBoundMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7920,7 +7934,7 @@ private static ListBoundMembershipsFixedSizeCollection createEmptyCollection() { @Override protected ListBoundMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBoundMembershipsFixedSizeCollection(pages, collectionSize); } } @@ -7953,8 +7967,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -7964,14 +7978,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7985,7 +7999,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7995,7 +8010,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } @@ -8026,8 +8041,8 @@ public static class ListFleetsPage extends AbstractPage { private ListFleetsPage( - PageContext context, - ListFleetsResponse response) { + @Nullable PageContext context, + @Nullable ListFleetsResponse response) { super(context, response); } @@ -8037,14 +8052,14 @@ private static ListFleetsPage createEmptyPage() { @Override protected ListFleetsPage createPage( - PageContext context, - ListFleetsResponse response) { + @Nullable PageContext context, + @Nullable ListFleetsResponse response) { return new ListFleetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8058,7 +8073,8 @@ public static class ListFleetsFixedSizeCollection ListFleetsPage, ListFleetsFixedSizeCollection> { - private ListFleetsFixedSizeCollection(List pages, int collectionSize) { + private ListFleetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8068,7 +8084,7 @@ private static ListFleetsFixedSizeCollection createEmptyCollection() { @Override protected ListFleetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFleetsFixedSizeCollection(pages, collectionSize); } } @@ -8105,8 +8121,9 @@ public static class ListScopeNamespacesPage ListScopeNamespacesPage> { private ListScopeNamespacesPage( - PageContext context, - ListScopeNamespacesResponse response) { + @Nullable PageContext + context, + @Nullable ListScopeNamespacesResponse response) { super(context, response); } @@ -8116,14 +8133,16 @@ private static ListScopeNamespacesPage createEmptyPage() { @Override protected ListScopeNamespacesPage createPage( - PageContext context, - ListScopeNamespacesResponse response) { + @Nullable PageContext + context, + @Nullable ListScopeNamespacesResponse response) { return new ListScopeNamespacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8138,7 +8157,7 @@ public static class ListScopeNamespacesFixedSizeCollection ListScopeNamespacesFixedSizeCollection> { private ListScopeNamespacesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8148,7 +8167,7 @@ private static ListScopeNamespacesFixedSizeCollection createEmptyCollection() { @Override protected ListScopeNamespacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScopeNamespacesFixedSizeCollection(pages, collectionSize); } } @@ -8189,12 +8208,13 @@ public static class ListScopeRBACRoleBindingsPage ListScopeRBACRoleBindingsPage> { private ListScopeRBACRoleBindingsPage( - PageContext< + @Nullable + PageContext< ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse, RBACRoleBinding> context, - ListScopeRBACRoleBindingsResponse response) { + @Nullable ListScopeRBACRoleBindingsResponse response) { super(context, response); } @@ -8204,18 +8224,20 @@ private static ListScopeRBACRoleBindingsPage createEmptyPage() { @Override protected ListScopeRBACRoleBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse, RBACRoleBinding> context, - ListScopeRBACRoleBindingsResponse response) { + @Nullable ListScopeRBACRoleBindingsResponse response) { return new ListScopeRBACRoleBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsResponse, RBACRoleBinding> @@ -8234,7 +8256,7 @@ public static class ListScopeRBACRoleBindingsFixedSizeCollection ListScopeRBACRoleBindingsFixedSizeCollection> { private ListScopeRBACRoleBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8244,7 +8266,7 @@ private static ListScopeRBACRoleBindingsFixedSizeCollection createEmptyCollectio @Override protected ListScopeRBACRoleBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScopeRBACRoleBindingsFixedSizeCollection(pages, collectionSize); } } @@ -8275,8 +8297,8 @@ public static class ListScopesPage extends AbstractPage { private ListScopesPage( - PageContext context, - ListScopesResponse response) { + @Nullable PageContext context, + @Nullable ListScopesResponse response) { super(context, response); } @@ -8286,14 +8308,14 @@ private static ListScopesPage createEmptyPage() { @Override protected ListScopesPage createPage( - PageContext context, - ListScopesResponse response) { + @Nullable PageContext context, + @Nullable ListScopesResponse response) { return new ListScopesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8307,7 +8329,8 @@ public static class ListScopesFixedSizeCollection ListScopesPage, ListScopesFixedSizeCollection> { - private ListScopesFixedSizeCollection(List pages, int collectionSize) { + private ListScopesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8317,7 +8340,7 @@ private static ListScopesFixedSizeCollection createEmptyCollection() { @Override protected ListScopesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScopesFixedSizeCollection(pages, collectionSize); } } @@ -8351,8 +8374,9 @@ public static class ListPermittedScopesPage ListPermittedScopesRequest, ListPermittedScopesResponse, Scope, ListPermittedScopesPage> { private ListPermittedScopesPage( - PageContext context, - ListPermittedScopesResponse response) { + @Nullable PageContext + context, + @Nullable ListPermittedScopesResponse response) { super(context, response); } @@ -8362,14 +8386,16 @@ private static ListPermittedScopesPage createEmptyPage() { @Override protected ListPermittedScopesPage createPage( - PageContext context, - ListPermittedScopesResponse response) { + @Nullable PageContext + context, + @Nullable ListPermittedScopesResponse response) { return new ListPermittedScopesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8384,7 +8410,7 @@ public static class ListPermittedScopesFixedSizeCollection ListPermittedScopesFixedSizeCollection> { private ListPermittedScopesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8394,7 +8420,7 @@ private static ListPermittedScopesFixedSizeCollection createEmptyCollection() { @Override protected ListPermittedScopesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPermittedScopesFixedSizeCollection(pages, collectionSize); } } @@ -8433,10 +8459,11 @@ public static class ListMembershipBindingsPage ListMembershipBindingsPage> { private ListMembershipBindingsPage( - PageContext< + @Nullable + PageContext< ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> context, - ListMembershipBindingsResponse response) { + @Nullable ListMembershipBindingsResponse response) { super(context, response); } @@ -8446,16 +8473,18 @@ private static ListMembershipBindingsPage createEmptyPage() { @Override protected ListMembershipBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> context, - ListMembershipBindingsResponse response) { + @Nullable ListMembershipBindingsResponse response) { return new ListMembershipBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMembershipBindingsRequest, ListMembershipBindingsResponse, MembershipBinding> context, ApiFuture futureResponse) { @@ -8472,7 +8501,7 @@ public static class ListMembershipBindingsFixedSizeCollection ListMembershipBindingsFixedSizeCollection> { private ListMembershipBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8482,7 +8511,7 @@ private static ListMembershipBindingsFixedSizeCollection createEmptyCollection() @Override protected ListMembershipBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembershipBindingsFixedSizeCollection(pages, collectionSize); } } @@ -8524,12 +8553,13 @@ public static class ListMembershipRBACRoleBindingsPage ListMembershipRBACRoleBindingsPage> { private ListMembershipRBACRoleBindingsPage( - PageContext< + @Nullable + PageContext< ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> context, - ListMembershipRBACRoleBindingsResponse response) { + @Nullable ListMembershipRBACRoleBindingsResponse response) { super(context, response); } @@ -8539,18 +8569,20 @@ private static ListMembershipRBACRoleBindingsPage createEmptyPage() { @Override protected ListMembershipRBACRoleBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> context, - ListMembershipRBACRoleBindingsResponse response) { + @Nullable ListMembershipRBACRoleBindingsResponse response) { return new ListMembershipRBACRoleBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMembershipRBACRoleBindingsRequest, ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> @@ -8569,7 +8601,7 @@ public static class ListMembershipRBACRoleBindingsFixedSizeCollection ListMembershipRBACRoleBindingsFixedSizeCollection> { private ListMembershipRBACRoleBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8579,7 +8611,7 @@ private static ListMembershipRBACRoleBindingsFixedSizeCollection createEmptyColl @Override protected ListMembershipRBACRoleBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembershipRBACRoleBindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index d8375b04cf89..3e4942dbc2b0 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -595,7 +596,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); } @@ -615,7 +616,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GkeHubStubSettings.newBuilder(clientContext)); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java index 05992b6979e7..ca53f8f62c4b 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java @@ -99,6 +99,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -110,11 +111,12 @@ @Generated("by gapic-generator-java") public abstract class GkeHubStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index 6fea01b13834..fa5292e42752 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -133,6 +133,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1479,7 +1480,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); } @@ -1791,7 +1792,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMembershipsSettings = PagedCallSettings.newBuilder(LIST_MEMBERSHIPS_PAGE_STR_FACT); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java index 4d05cfffb5e6..52222666ebf7 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java @@ -39,6 +39,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. /** @@ -234,7 +235,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; + private final @Nullable GkeHubSettings settings; private final GkeHubStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -280,7 +281,7 @@ protected GkeHubClient(GkeHubStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GkeHubSettings getSettings() { + public final @Nullable GkeHubSettings getSettings() { return settings; } @@ -961,8 +962,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -972,14 +973,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -993,7 +994,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1003,7 +1005,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java index 71293ecdf6fa..52a9875c633b 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GkeHubStubSettings.newBuilder(clientContext)); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java index 7abeb173f0b3..6a803abce51f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java @@ -35,6 +35,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class GkeHubStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index 74a4f6f2ac37..ebd16b8087d6 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,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); } @@ -440,7 +441,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java index dfca76bae401..09ff3f44541e 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java @@ -39,6 +39,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. /** @@ -234,7 +235,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; + private final @Nullable GkeHubSettings settings; private final GkeHubStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -280,7 +281,7 @@ protected GkeHubClient(GkeHubStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GkeHubSettings getSettings() { + public final @Nullable GkeHubSettings getSettings() { return settings; } @@ -961,8 +962,8 @@ public static class ListFeaturesPage extends AbstractPage { private ListFeaturesPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { super(context, response); } @@ -972,14 +973,14 @@ private static ListFeaturesPage createEmptyPage() { @Override protected ListFeaturesPage createPage( - PageContext context, - ListFeaturesResponse response) { + @Nullable PageContext context, + @Nullable ListFeaturesResponse response) { return new ListFeaturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -993,7 +994,8 @@ public static class ListFeaturesFixedSizeCollection ListFeaturesPage, ListFeaturesFixedSizeCollection> { - private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { + private ListFeaturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1003,7 +1005,7 @@ private static ListFeaturesFixedSizeCollection createEmptyCollection() { @Override protected ListFeaturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFeaturesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java index 50784696015e..e9301877c4b7 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GkeHubStubSettings.newBuilder(clientContext)); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java index 0676d91f3928..dd06ee6b43b2 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java @@ -35,6 +35,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class GkeHubStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index 14184366c501..456ff642c83f 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,7 +359,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); } @@ -440,7 +441,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFeaturesSettings = PagedCallSettings.newBuilder(LIST_FEATURES_PAGE_STR_FACT); diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java index 957185e65588..ad8729209925 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java @@ -48,6 +48,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. /** @@ -370,7 +371,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GkeHubMembershipServiceClient implements BackgroundResource { - private final GkeHubMembershipServiceSettings settings; + private final @Nullable GkeHubMembershipServiceSettings settings; private final GkeHubMembershipServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -419,7 +420,7 @@ protected GkeHubMembershipServiceClient(GkeHubMembershipServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final GkeHubMembershipServiceSettings getSettings() { + public final @Nullable GkeHubMembershipServiceSettings getSettings() { return settings; } @@ -471,7 +472,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * memberships in all the regions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMembershipsPagedResponse listMemberships(LocationName parent) { + public final ListMembershipsPagedResponse listMemberships(@Nullable LocationName parent) { ListMembershipsRequest request = ListMembershipsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -649,7 +650,7 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * `projects/*/locations/*/memberships/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Membership getMembership(MembershipName name) { + public final Membership getMembership(@Nullable MembershipName name) { GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMembership(request); @@ -779,7 +780,7 @@ public final UnaryCallable getMembershipCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMembershipAsync( - LocationName parent, Membership resource, String membershipId) { + @Nullable LocationName parent, Membership resource, String membershipId) { CreateMembershipRequest request = CreateMembershipRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -975,7 +976,7 @@ public final UnaryCallable createMembershipC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMembershipAsync( - MembershipName name) { + @Nullable MembershipName name) { DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteMembershipAsync(request); @@ -1155,7 +1156,7 @@ public final UnaryCallable deleteMembershipC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateMembershipAsync( - MembershipName name, Membership resource, FieldMask updateMask) { + @Nullable MembershipName name, Membership resource, FieldMask updateMask) { UpdateMembershipRequest request = UpdateMembershipRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1956,8 +1957,8 @@ public static class ListMembershipsPage ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage> { private ListMembershipsPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { super(context, response); } @@ -1967,14 +1968,14 @@ private static ListMembershipsPage createEmptyPage() { @Override protected ListMembershipsPage createPage( - PageContext context, - ListMembershipsResponse response) { + @Nullable PageContext context, + @Nullable ListMembershipsResponse response) { return new ListMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1989,7 +1990,7 @@ public static class ListMembershipsFixedSizeCollection ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1999,7 +2000,7 @@ private static ListMembershipsFixedSizeCollection createEmptyCollection() { @Override protected ListMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembershipsFixedSizeCollection(pages, collectionSize); } } @@ -2033,8 +2034,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2044,14 +2045,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2065,7 +2066,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2075,7 +2077,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java index fee17415cbc0..ba8cda36b9ab 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,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); } @@ -304,7 +305,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GkeHubMembershipServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java index 7e8a19ae0dfd..2a36e1046743 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class GkeHubMembershipServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java index dccdb3fd8915..7416d2f3f28c 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -495,7 +496,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); } @@ -608,7 +609,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMembershipsSettings = PagedCallSettings.newBuilder(LIST_MEMBERSHIPS_PAGE_STR_FACT); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java index 410c5fcd38bc..fd19cd0a417d 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String feature) { .toString(); } - public static FeatureName parse(String formattedString) { + public static @Nullable FeatureName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeatureName> values) { List list = new ArrayList<>(values.size()); for (FeatureName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java index 43f2f7e3e385..ffd1714c4b6f 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FleetName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -149,7 +150,7 @@ public static String formatOrganizationLocationFleetName( .toString(); } - public static FleetName parse(String formattedString) { + public static @Nullable FleetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -173,7 +174,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FleetName> values) { List list = new ArrayList<>(values.size()); for (FleetName value : values) { if (value == null) { @@ -225,7 +226,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java index a029d983730a..b70c1ed28dfe 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java index a3d334f442ab..266ffd859cd4 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MembershipBindingName parse(String formattedString) { + public static @Nullable MembershipBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MembershipBindingName> values) { List list = new ArrayList<>(values.size()); for (MembershipBindingName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java index 6c0a19bafbab..22b447111ed2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String membership) .toString(); } - public static MembershipName parse(String formattedString) { + public static @Nullable MembershipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MembershipName> values) { List list = new ArrayList<>(values.size()); for (MembershipName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java index 3c856c48fc67..ae2c5915fb90 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/NamespaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String scope, Strin .toString(); } - public static NamespaceName parse(String formattedString) { + public static @Nullable NamespaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NamespaceName> values) { List list = new ArrayList<>(values.size()); for (NamespaceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java index f6c0e4792c0d..32107fd074db 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/RBACRoleBindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationMembershipRbacrolebindingName( .toString(); } - public static RBACRoleBindingName parse(String formattedString) { + public static @Nullable RBACRoleBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -205,7 +206,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RBACRoleBindingName> values) { List list = new ArrayList<>(values.size()); for (RBACRoleBindingName value : values) { if (value == null) { @@ -260,7 +261,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java index a0b90845574c..8cd61cc4c8fb 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ScopeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String scope) { .toString(); } - public static ScopeName parse(String formattedString) { + public static @Nullable ScopeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScopeName> values) { List list = new ArrayList<>(values.size()); for (ScopeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/LocationName.java b/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/LocationName.java index d7aecdcd05f9..9e8433f9709f 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/LocationName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java b/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java index 5d4f80f0590b..b5d63a398122 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String membership) .toString(); } - public static MembershipName parse(String formattedString) { + public static @Nullable MembershipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MembershipName> values) { List list = new ArrayList<>(values.size()); for (MembershipName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartClient.java b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartClient.java index 4b6b483601fd..5a643caeb7fd 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartClient.java +++ b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartClient.java @@ -32,6 +32,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GkeInferenceQuickstartClient implements BackgroundResource { - private final GkeInferenceQuickstartSettings settings; + private final @Nullable GkeInferenceQuickstartSettings settings; private final GkeInferenceQuickstartStub stub; /** Constructs an instance of GkeInferenceQuickstartClient with default settings. */ @@ -266,7 +267,7 @@ protected GkeInferenceQuickstartClient(GkeInferenceQuickstartStub stub) { this.stub = stub; } - public final GkeInferenceQuickstartSettings getSettings() { + public final @Nullable GkeInferenceQuickstartSettings getSettings() { return settings; } @@ -960,8 +961,8 @@ public static class FetchModelsPage extends AbstractPage { private FetchModelsPage( - PageContext context, - FetchModelsResponse response) { + @Nullable PageContext context, + @Nullable FetchModelsResponse response) { super(context, response); } @@ -971,14 +972,14 @@ private static FetchModelsPage createEmptyPage() { @Override protected FetchModelsPage createPage( - PageContext context, - FetchModelsResponse response) { + @Nullable PageContext context, + @Nullable FetchModelsResponse response) { return new FetchModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -992,7 +993,8 @@ public static class FetchModelsFixedSizeCollection FetchModelsPage, FetchModelsFixedSizeCollection> { - private FetchModelsFixedSizeCollection(List pages, int collectionSize) { + private FetchModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1002,7 +1004,7 @@ private static FetchModelsFixedSizeCollection createEmptyCollection() { @Override protected FetchModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchModelsFixedSizeCollection(pages, collectionSize); } } @@ -1036,8 +1038,8 @@ public static class FetchModelServersPage FetchModelServersRequest, FetchModelServersResponse, String, FetchModelServersPage> { private FetchModelServersPage( - PageContext context, - FetchModelServersResponse response) { + @Nullable PageContext context, + @Nullable FetchModelServersResponse response) { super(context, response); } @@ -1047,14 +1049,14 @@ private static FetchModelServersPage createEmptyPage() { @Override protected FetchModelServersPage createPage( - PageContext context, - FetchModelServersResponse response) { + @Nullable PageContext context, + @Nullable FetchModelServersResponse response) { return new FetchModelServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1069,7 +1071,7 @@ public static class FetchModelServersFixedSizeCollection FetchModelServersFixedSizeCollection> { private FetchModelServersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1079,7 +1081,7 @@ private static FetchModelServersFixedSizeCollection createEmptyCollection() { @Override protected FetchModelServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchModelServersFixedSizeCollection(pages, collectionSize); } } @@ -1117,9 +1119,10 @@ public static class FetchModelServerVersionsPage FetchModelServerVersionsPage> { private FetchModelServerVersionsPage( - PageContext + @Nullable + PageContext context, - FetchModelServerVersionsResponse response) { + @Nullable FetchModelServerVersionsResponse response) { super(context, response); } @@ -1129,15 +1132,17 @@ private static FetchModelServerVersionsPage createEmptyPage() { @Override protected FetchModelServerVersionsPage createPage( - PageContext + @Nullable + PageContext context, - FetchModelServerVersionsResponse response) { + @Nullable FetchModelServerVersionsResponse response) { return new FetchModelServerVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1153,7 +1158,7 @@ public static class FetchModelServerVersionsFixedSizeCollection FetchModelServerVersionsFixedSizeCollection> { private FetchModelServerVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1163,7 +1168,7 @@ private static FetchModelServerVersionsFixedSizeCollection createEmptyCollection @Override protected FetchModelServerVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchModelServerVersionsFixedSizeCollection(pages, collectionSize); } } @@ -1197,8 +1202,8 @@ public static class FetchProfilesPage FetchProfilesRequest, FetchProfilesResponse, Profile, FetchProfilesPage> { private FetchProfilesPage( - PageContext context, - FetchProfilesResponse response) { + @Nullable PageContext context, + @Nullable FetchProfilesResponse response) { super(context, response); } @@ -1208,14 +1213,14 @@ private static FetchProfilesPage createEmptyPage() { @Override protected FetchProfilesPage createPage( - PageContext context, - FetchProfilesResponse response) { + @Nullable PageContext context, + @Nullable FetchProfilesResponse response) { return new FetchProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1229,7 +1234,8 @@ public static class FetchProfilesFixedSizeCollection FetchProfilesPage, FetchProfilesFixedSizeCollection> { - private FetchProfilesFixedSizeCollection(List pages, int collectionSize) { + private FetchProfilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1239,7 +1245,7 @@ private static FetchProfilesFixedSizeCollection createEmptyCollection() { @Override protected FetchProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchProfilesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartSettings.java b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartSettings.java index 29196eafa3f5..330df4247151 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartSettings.java +++ b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/GkeInferenceQuickstartSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GkeInferenceQuickstartStubSettings.newBuilder(clientContext)); } diff --git a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/GkeInferenceQuickstartStubSettings.java b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/GkeInferenceQuickstartStubSettings.java index 622c2683708b..8b2e77970000 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/GkeInferenceQuickstartStubSettings.java +++ b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/GkeInferenceQuickstartStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -514,7 +515,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); } @@ -598,7 +599,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); fetchModelsSettings = PagedCallSettings.newBuilder(FETCH_MODELS_PAGE_STR_FACT); diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java index f43199362fd0..150d2ee7bcf2 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasClient.java @@ -35,6 +35,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. /** @@ -388,7 +389,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GrafeasClient implements BackgroundResource { - private final GrafeasSettings settings; + private final @Nullable GrafeasSettings settings; private final GrafeasStub stub; /** Constructs an instance of GrafeasClient with default settings. */ @@ -426,7 +427,7 @@ protected GrafeasClient(GrafeasStub stub) { this.stub = stub; } - public final GrafeasSettings getSettings() { + public final @Nullable GrafeasSettings getSettings() { return settings; } @@ -456,7 +457,7 @@ public GrafeasStub getStub() { * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Occurrence getOccurrence(OccurrenceName name) { + public final Occurrence getOccurrence(@Nullable OccurrenceName name) { GetOccurrenceRequest request = GetOccurrenceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOccurrence(request); @@ -570,7 +571,8 @@ public final UnaryCallable getOccurrenceCallab * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOccurrencesPagedResponse listOccurrences(ProjectName parent, String filter) { + public final ListOccurrencesPagedResponse listOccurrences( + @Nullable ProjectName parent, String filter) { ListOccurrencesRequest request = ListOccurrencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -744,7 +746,7 @@ public final ListOccurrencesPagedResponse listOccurrences(ListOccurrencesRequest * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteOccurrence(OccurrenceName name) { + public final void deleteOccurrence(@Nullable OccurrenceName name) { DeleteOccurrenceRequest request = DeleteOccurrenceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteOccurrence(request); @@ -859,7 +861,7 @@ public final UnaryCallable deleteOccurrenceCalla * @param occurrence The occurrence to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Occurrence createOccurrence(ProjectName parent, Occurrence occurrence) { + public final Occurrence createOccurrence(@Nullable ProjectName parent, Occurrence occurrence) { CreateOccurrenceRequest request = CreateOccurrenceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -981,7 +983,7 @@ public final UnaryCallable createOccurrence * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateOccurrencesResponse batchCreateOccurrences( - ProjectName parent, List occurrences) { + @Nullable ProjectName parent, List occurrences) { BatchCreateOccurrencesRequest request = BatchCreateOccurrencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1112,7 +1114,7 @@ public final BatchCreateOccurrencesResponse batchCreateOccurrences( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Occurrence updateOccurrence( - OccurrenceName name, Occurrence occurrence, FieldMask updateMask) { + @Nullable OccurrenceName name, Occurrence occurrence, FieldMask updateMask) { UpdateOccurrenceRequest request = UpdateOccurrenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1241,7 +1243,7 @@ public final UnaryCallable updateOccurrence * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Note getOccurrenceNote(OccurrenceName name) { + public final Note getOccurrenceNote(@Nullable OccurrenceName name) { GetOccurrenceNoteRequest request = GetOccurrenceNoteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1355,7 +1357,7 @@ public final UnaryCallable getOccurrenceNoteCall * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Note getNote(NoteName name) { + public final Note getNote(@Nullable NoteName name) { GetNoteRequest request = GetNoteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNote(request); @@ -1467,7 +1469,7 @@ public final UnaryCallable getNoteCallable() { * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotesPagedResponse listNotes(ProjectName parent, String filter) { + public final ListNotesPagedResponse listNotes(@Nullable ProjectName parent, String filter) { ListNotesRequest request = ListNotesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1635,7 +1637,7 @@ public final UnaryCallable listNotesCallabl * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNote(NoteName name) { + public final void deleteNote(@Nullable NoteName name) { DeleteNoteRequest request = DeleteNoteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteNote(request); @@ -1748,7 +1750,7 @@ public final UnaryCallable deleteNoteCallable() { * @param note The note to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Note createNote(ProjectName parent, String noteId, Note note) { + public final Note createNote(@Nullable ProjectName parent, String noteId, Note note) { CreateNoteRequest request = CreateNoteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1874,7 +1876,7 @@ public final UnaryCallable createNoteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateNotesResponse batchCreateNotes( - ProjectName parent, Map notes) { + @Nullable ProjectName parent, Map notes) { BatchCreateNotesRequest request = BatchCreateNotesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1997,7 +1999,7 @@ public final BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest r * @param updateMask The fields to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Note updateNote(NoteName name, Note note, FieldMask updateMask) { + public final Note updateNote(@Nullable NoteName name, Note note, FieldMask updateMask) { UpdateNoteRequest request = UpdateNoteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2128,7 +2130,8 @@ public final UnaryCallable updateNoteCallable() { * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNoteOccurrencesPagedResponse listNoteOccurrences(NoteName name, String filter) { + public final ListNoteOccurrencesPagedResponse listNoteOccurrences( + @Nullable NoteName name, String filter) { ListNoteOccurrencesRequest request = ListNoteOccurrencesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2341,8 +2344,8 @@ public static class ListOccurrencesPage ListOccurrencesRequest, ListOccurrencesResponse, Occurrence, ListOccurrencesPage> { private ListOccurrencesPage( - PageContext context, - ListOccurrencesResponse response) { + @Nullable PageContext context, + @Nullable ListOccurrencesResponse response) { super(context, response); } @@ -2352,14 +2355,14 @@ private static ListOccurrencesPage createEmptyPage() { @Override protected ListOccurrencesPage createPage( - PageContext context, - ListOccurrencesResponse response) { + @Nullable PageContext context, + @Nullable ListOccurrencesResponse response) { return new ListOccurrencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2374,7 +2377,7 @@ public static class ListOccurrencesFixedSizeCollection ListOccurrencesFixedSizeCollection> { private ListOccurrencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2384,7 +2387,7 @@ private static ListOccurrencesFixedSizeCollection createEmptyCollection() { @Override protected ListOccurrencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOccurrencesFixedSizeCollection(pages, collectionSize); } } @@ -2411,8 +2414,8 @@ public static class ListNotesPage extends AbstractPage { private ListNotesPage( - PageContext context, - ListNotesResponse response) { + @Nullable PageContext context, + @Nullable ListNotesResponse response) { super(context, response); } @@ -2422,14 +2425,14 @@ private static ListNotesPage createEmptyPage() { @Override protected ListNotesPage createPage( - PageContext context, - ListNotesResponse response) { + @Nullable PageContext context, + @Nullable ListNotesResponse response) { return new ListNotesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2439,7 +2442,7 @@ public static class ListNotesFixedSizeCollection extends AbstractFixedSizeCollection< ListNotesRequest, ListNotesResponse, Note, ListNotesPage, ListNotesFixedSizeCollection> { - private ListNotesFixedSizeCollection(List pages, int collectionSize) { + private ListNotesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2449,7 +2452,7 @@ private static ListNotesFixedSizeCollection createEmptyCollection() { @Override protected ListNotesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotesFixedSizeCollection(pages, collectionSize); } } @@ -2486,8 +2489,9 @@ public static class ListNoteOccurrencesPage ListNoteOccurrencesPage> { private ListNoteOccurrencesPage( - PageContext context, - ListNoteOccurrencesResponse response) { + @Nullable PageContext + context, + @Nullable ListNoteOccurrencesResponse response) { super(context, response); } @@ -2497,14 +2501,16 @@ private static ListNoteOccurrencesPage createEmptyPage() { @Override protected ListNoteOccurrencesPage createPage( - PageContext context, - ListNoteOccurrencesResponse response) { + @Nullable PageContext + context, + @Nullable ListNoteOccurrencesResponse response) { return new ListNoteOccurrencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2519,7 +2525,7 @@ public static class ListNoteOccurrencesFixedSizeCollection ListNoteOccurrencesFixedSizeCollection> { private ListNoteOccurrencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2529,7 +2535,7 @@ private static ListNoteOccurrencesFixedSizeCollection createEmptyCollection() { @Override protected ListNoteOccurrencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNoteOccurrencesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasSettings.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasSettings.java index ba6ea1700f19..980e72e99ae2 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasSettings.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -211,7 +212,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GrafeasStubSettings.newBuilder(clientContext)); } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/NoteName.java b/java-grafeas/src/main/java/io/grafeas/v1/NoteName.java index 202ce7f50d09..05f354231144 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/NoteName.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/NoteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String note) { return newBuilder().setProject(project).setNote(note).build().toString(); } - public static NoteName parse(String formattedString) { + public static @Nullable NoteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NoteName> values) { List list = new ArrayList<>(values.size()); for (NoteName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceName.java b/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceName.java index 016f1bec3fcf..154040f40cd4 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceName.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String occurrence) { return newBuilder().setProject(project).setOccurrence(occurrence).build().toString(); } - public static OccurrenceName parse(String formattedString) { + public static @Nullable OccurrenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OccurrenceName> values) { List list = new ArrayList<>(values.size()); for (OccurrenceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ProjectName.java b/java-grafeas/src/main/java/io/grafeas/v1/ProjectName.java index 65a65e40233b..0d1edb16f582 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ProjectName.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java index 87734f5e5714..7ea7205ef9aa 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -462,7 +463,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -578,7 +579,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOccurrenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java index c68c1c11835a..83135068cb11 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java @@ -33,6 +33,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. /** @@ -312,7 +313,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GSuiteAddOnsClient implements BackgroundResource { - private final GSuiteAddOnsSettings settings; + private final @Nullable GSuiteAddOnsSettings settings; private final GSuiteAddOnsStub stub; /** Constructs an instance of GSuiteAddOnsClient with default settings. */ @@ -351,7 +352,7 @@ protected GSuiteAddOnsClient(GSuiteAddOnsStub stub) { this.stub = stub; } - public final GSuiteAddOnsSettings getSettings() { + public final @Nullable GSuiteAddOnsSettings getSettings() { return settings; } @@ -382,7 +383,7 @@ public GSuiteAddOnsStub getStub() { *

Example: `projects/my_project/authorization`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Authorization getAuthorization(AuthorizationName name) { + public final Authorization getAuthorization(@Nullable AuthorizationName name) { GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAuthorization(request); @@ -500,7 +501,7 @@ public final UnaryCallable getAuthorizat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - ProjectName parent, Deployment deployment, String deploymentId) { + @Nullable ProjectName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -713,7 +714,7 @@ public final UnaryCallable replaceDeployme *

Example: `projects/my_project/deployments/my_deployment`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -825,7 +826,7 @@ public final UnaryCallable getDeploymentCallab *

Example: `projects/my_project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(ProjectName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable ProjectName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -989,7 +990,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest *

Example: `projects/my_project/deployments/my_deployment`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeployment(DeploymentName name) { + public final void deleteDeployment(@Nullable DeploymentName name) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDeployment(request); @@ -1102,7 +1103,7 @@ public final UnaryCallable deleteDeploymentCalla *

Example: `projects/my_project/deployments/my_deployment`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void installDeployment(DeploymentName name) { + public final void installDeployment(@Nullable DeploymentName name) { InstallDeploymentRequest request = InstallDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1218,7 +1219,7 @@ public final UnaryCallable installDeploymentCal *

Example: `projects/my_project/deployments/my_deployment`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void uninstallDeployment(DeploymentName name) { + public final void uninstallDeployment(@Nullable DeploymentName name) { UninstallDeploymentRequest request = UninstallDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1335,7 +1336,7 @@ public final UnaryCallable uninstallDeploymen *

Example: `projects/my_project/deployments/my_deployment/installStatus`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstallStatus getInstallStatus(InstallStatusName name) { + public final InstallStatus getInstallStatus(@Nullable InstallStatusName name) { GetInstallStatusRequest request = GetInstallStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstallStatus(request); @@ -1483,8 +1484,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -1494,14 +1495,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1516,7 +1517,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1526,7 +1527,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java index 3a77a4dd177f..49a3576a7a93 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GSuiteAddOnsStubSettings.newBuilder(clientContext)); } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java index 638f1313a6ad..38f1705e8e33 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/GSuiteAddOnsStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,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); } @@ -449,7 +450,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AuthorizationName.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AuthorizationName.java index 27552a07c4be..e6a1401ba73c 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AuthorizationName.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AuthorizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static AuthorizationName parse(String formattedString) { + public static @Nullable AuthorizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthorizationName> values) { List list = new ArrayList<>(values.size()); for (AuthorizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentName.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentName.java index 6ebbbc1eb59b..32822be37dad 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentName.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String deployment) { return newBuilder().setProject(project).setDeployment(deployment).build().toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InstallStatusName.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InstallStatusName.java index 5f7d09f6f6b7..f8869bd7d957 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InstallStatusName.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/InstallStatusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String deployment) { return newBuilder().setProject(project).setDeployment(deployment).build().toString(); } - public static InstallStatusName parse(String formattedString) { + public static @Nullable InstallStatusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstallStatusName> values) { List list = new ArrayList<>(values.size()); for (InstallStatusName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ProjectName.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ProjectName.java index e15b06ec1a09..e1ff5e524105 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ProjectName.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceClient.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceClient.java index 12757b28f44b..384313fc3867 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceClient.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceClient.java @@ -37,6 +37,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. /** @@ -290,7 +291,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataPointsServiceClient implements BackgroundResource { - private final DataPointsServiceSettings settings; + private final @Nullable DataPointsServiceSettings settings; private final DataPointsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -338,7 +339,7 @@ protected DataPointsServiceClient(DataPointsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataPointsServiceSettings getSettings() { + public final @Nullable DataPointsServiceSettings getSettings() { return settings; } @@ -387,7 +388,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * and possible values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataPoint getDataPoint(DataPointName name) { + public final DataPoint getDataPoint(@Nullable DataPointName name) { GetDataPointRequest request = GetDataPointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataPoint(request); @@ -505,7 +506,7 @@ public final UnaryCallable getDataPointCallable( * data][google.devicesandservices.health.v4.DataPoint] union field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataPointsPagedResponse listDataPoints(DataTypeName parent) { + public final ListDataPointsPagedResponse listDataPoints(@Nullable DataTypeName parent) { ListDataPointsRequest request = ListDataPointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -678,7 +679,7 @@ public final ListDataPointsPagedResponse listDataPoints(ListDataPointsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDataPointAsync( - DataTypeName parent, DataPoint dataPoint) { + @Nullable DataTypeName parent, DataPoint dataPoint) { CreateDataPointRequest request = CreateDataPointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1355,7 +1356,7 @@ public final DailyRollUpDataPointsResponse dailyRollUpDataPoints( * `{data_point}` ID maps to the exercise ID, which is a long integer. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExportExerciseTcxResponse exportExerciseTcx(DataPointName name) { + public final ExportExerciseTcxResponse exportExerciseTcx(@Nullable DataPointName name) { ExportExerciseTcxRequest request = ExportExerciseTcxRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1553,8 +1554,8 @@ public static class ListDataPointsPage ListDataPointsRequest, ListDataPointsResponse, DataPoint, ListDataPointsPage> { private ListDataPointsPage( - PageContext context, - ListDataPointsResponse response) { + @Nullable PageContext context, + @Nullable ListDataPointsResponse response) { super(context, response); } @@ -1564,14 +1565,14 @@ private static ListDataPointsPage createEmptyPage() { @Override protected ListDataPointsPage createPage( - PageContext context, - ListDataPointsResponse response) { + @Nullable PageContext context, + @Nullable ListDataPointsResponse response) { return new ListDataPointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1585,7 +1586,8 @@ public static class ListDataPointsFixedSizeCollection ListDataPointsPage, ListDataPointsFixedSizeCollection> { - private ListDataPointsFixedSizeCollection(List pages, int collectionSize) { + private ListDataPointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1595,7 +1597,7 @@ private static ListDataPointsFixedSizeCollection createEmptyCollection() { @Override protected ListDataPointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataPointsFixedSizeCollection(pages, collectionSize); } } @@ -1633,9 +1635,11 @@ public static class ReconcileDataPointsPage ReconcileDataPointsPage> { private ReconcileDataPointsPage( - PageContext + @Nullable + PageContext< + ReconcileDataPointsRequest, ReconcileDataPointsResponse, ReconciledDataPoint> context, - ReconcileDataPointsResponse response) { + @Nullable ReconcileDataPointsResponse response) { super(context, response); } @@ -1645,15 +1649,19 @@ private static ReconcileDataPointsPage createEmptyPage() { @Override protected ReconcileDataPointsPage createPage( - PageContext + @Nullable + PageContext< + ReconcileDataPointsRequest, ReconcileDataPointsResponse, ReconciledDataPoint> context, - ReconcileDataPointsResponse response) { + @Nullable ReconcileDataPointsResponse response) { return new ReconcileDataPointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ReconcileDataPointsRequest, ReconcileDataPointsResponse, ReconciledDataPoint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1669,7 +1677,7 @@ public static class ReconcileDataPointsFixedSizeCollection ReconcileDataPointsFixedSizeCollection> { private ReconcileDataPointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1679,7 +1687,7 @@ private static ReconcileDataPointsFixedSizeCollection createEmptyCollection() { @Override protected ReconcileDataPointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ReconcileDataPointsFixedSizeCollection(pages, collectionSize); } } @@ -1716,8 +1724,9 @@ public static class RollUpDataPointsPage RollUpDataPointsPage> { private RollUpDataPointsPage( - PageContext context, - RollUpDataPointsResponse response) { + @Nullable PageContext + context, + @Nullable RollUpDataPointsResponse response) { super(context, response); } @@ -1727,14 +1736,16 @@ private static RollUpDataPointsPage createEmptyPage() { @Override protected RollUpDataPointsPage createPage( - PageContext context, - RollUpDataPointsResponse response) { + @Nullable PageContext + context, + @Nullable RollUpDataPointsResponse response) { return new RollUpDataPointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1749,7 +1760,7 @@ public static class RollUpDataPointsFixedSizeCollection RollUpDataPointsFixedSizeCollection> { private RollUpDataPointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1759,7 +1770,7 @@ private static RollUpDataPointsFixedSizeCollection createEmptyCollection() { @Override protected RollUpDataPointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new RollUpDataPointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceSettings.java index bd7f7e3b5167..389ffe2332b7 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataPointsServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -252,7 +253,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); } @@ -272,7 +273,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataPointsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java index 3a9966b6147a..a640fb50e42d 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java @@ -39,6 +39,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. /** @@ -299,7 +300,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataSubscriptionServiceClient implements BackgroundResource { - private final DataSubscriptionServiceSettings settings; + private final @Nullable DataSubscriptionServiceSettings settings; private final DataSubscriptionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -348,7 +349,7 @@ protected DataSubscriptionServiceClient(DataSubscriptionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DataSubscriptionServiceSettings getSettings() { + public final @Nullable DataSubscriptionServiceSettings getSettings() { return settings; } @@ -427,7 +428,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSubscriberAsync( - ProjectName parent, CreateSubscriberPayload subscriber, String subscriberId) { + @Nullable ProjectName parent, CreateSubscriberPayload subscriber, String subscriberId) { CreateSubscriberRequest request = CreateSubscriberRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -682,7 +683,7 @@ public final UnaryCallable createSubscriberC * projects/{project} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscribersPagedResponse listSubscribers(ProjectName parent) { + public final ListSubscribersPagedResponse listSubscribers(@Nullable ProjectName parent) { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1043,7 +1044,7 @@ public final UnaryCallable updateSubscriberC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriberAsync( - SubscriberName name) { + @Nullable SubscriberName name) { DeleteSubscriberRequest request = DeleteSubscriberRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSubscriberAsync(request); @@ -1210,7 +1211,9 @@ public final UnaryCallable deleteSubscriberC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - SubscriberName parent, CreateSubscriptionPayload subscription, String subscriptionId) { + @Nullable SubscriberName parent, + CreateSubscriptionPayload subscription, + String subscriptionId) { CreateSubscriptionRequest request = CreateSubscriptionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1357,7 +1360,7 @@ public final UnaryCallable createSubscr * system-generated otherwise. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscriptionsPagedResponse listSubscriptions(SubscriberName parent) { + public final ListSubscriptionsPagedResponse listSubscriptions(@Nullable SubscriberName parent) { ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1639,7 +1642,7 @@ public final UnaryCallable updateSubscr * /[a-z]([a-z0-9-]{2,34}[a-z0-9])/) or system-generated if not provided during creation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubscription(SubscriptionName name) { + public final void deleteSubscription(@Nullable SubscriptionName name) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1800,8 +1803,8 @@ public static class ListSubscribersPage ListSubscribersRequest, ListSubscribersResponse, Subscriber, ListSubscribersPage> { private ListSubscribersPage( - PageContext context, - ListSubscribersResponse response) { + @Nullable PageContext context, + @Nullable ListSubscribersResponse response) { super(context, response); } @@ -1811,14 +1814,14 @@ private static ListSubscribersPage createEmptyPage() { @Override protected ListSubscribersPage createPage( - PageContext context, - ListSubscribersResponse response) { + @Nullable PageContext context, + @Nullable ListSubscribersResponse response) { return new ListSubscribersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1833,7 +1836,7 @@ public static class ListSubscribersFixedSizeCollection ListSubscribersFixedSizeCollection> { private ListSubscribersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1843,7 +1846,7 @@ private static ListSubscribersFixedSizeCollection createEmptyCollection() { @Override protected ListSubscribersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscribersFixedSizeCollection(pages, collectionSize); } } @@ -1880,8 +1883,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -1891,14 +1895,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1913,7 +1919,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1923,7 +1929,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceSettings.java index 6464590b5b97..75f7daccc7d6 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,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); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataSubscriptionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceClient.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceClient.java index 677e03fdcb52..efba07ca563e 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceClient.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceClient.java @@ -33,6 +33,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. /** @@ -278,7 +279,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HealthProfileServiceClient implements BackgroundResource { - private final HealthProfileServiceSettings settings; + private final @Nullable HealthProfileServiceSettings settings; private final HealthProfileServiceStub stub; /** Constructs an instance of HealthProfileServiceClient with default settings. */ @@ -318,7 +319,7 @@ protected HealthProfileServiceClient(HealthProfileServiceStub stub) { this.stub = stub; } - public final HealthProfileServiceSettings getSettings() { + public final @Nullable HealthProfileServiceSettings getSettings() { return settings; } @@ -348,7 +349,7 @@ public HealthProfileServiceStub getStub() { * @param name Required. The name of the Profile. Format: `users/me/profile`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Profile getProfile(ProfileName name) { + public final Profile getProfile(@Nullable ProfileName name) { GetProfileRequest request = GetProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProfile(request); @@ -547,7 +548,7 @@ public final UnaryCallable updateProfileCallable( * @param name Required. The name of the Settings. Format: `users/me/settings`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -749,7 +750,7 @@ public final UnaryCallable updateSettingsCallab * @param name Required. The resource name of the Identity. Format: `users/me/identity` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Identity getIdentity(IdentityName name) { + public final Identity getIdentity(@Nullable IdentityName name) { GetIdentityRequest request = GetIdentityRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIdentity(request); @@ -871,7 +872,7 @@ public final UnaryCallable getIdentityCallable() { * refer to the authenticated user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IrnProfile getIrnProfile(IrnProfileName name) { + public final IrnProfile getIrnProfile(@Nullable IrnProfileName name) { GetIrnProfileRequest request = GetIrnProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIrnProfile(request); @@ -984,7 +985,7 @@ public final UnaryCallable getIrnProfileCallab * @param name Required. The name of the device to retrieve. Format: users/{user}/devices/{device} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PairedDevice getPairedDevice(PairedDeviceName name) { + public final PairedDevice getPairedDevice(@Nullable PairedDeviceName name) { GetPairedDeviceRequest request = GetPairedDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPairedDevice(request); @@ -1100,7 +1101,7 @@ public final UnaryCallable getPairedDevice * @param parent Required. The parent, which owns this collection of devices. Format: users/{user} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPairedDevicesPagedResponse listPairedDevices(UserName parent) { + public final ListPairedDevicesPagedResponse listPairedDevices(@Nullable UserName parent) { ListPairedDevicesRequest request = ListPairedDevicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1310,8 +1311,9 @@ public static class ListPairedDevicesPage ListPairedDevicesPage> { private ListPairedDevicesPage( - PageContext context, - ListPairedDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListPairedDevicesResponse response) { super(context, response); } @@ -1321,14 +1323,16 @@ private static ListPairedDevicesPage createEmptyPage() { @Override protected ListPairedDevicesPage createPage( - PageContext context, - ListPairedDevicesResponse response) { + @Nullable PageContext + context, + @Nullable ListPairedDevicesResponse response) { return new ListPairedDevicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1343,7 +1347,7 @@ public static class ListPairedDevicesFixedSizeCollection ListPairedDevicesFixedSizeCollection> { private ListPairedDevicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1353,7 +1357,7 @@ private static ListPairedDevicesFixedSizeCollection createEmptyCollection() { @Override protected ListPairedDevicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPairedDevicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceSettings.java index 3675b0e6516c..04291908c298 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/HealthProfileServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HealthProfileServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStub.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStub.java index 3f93c787ce71..7266e8a6573b 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStub.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStub.java @@ -46,6 +46,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class DataPointsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java index f451b5d1bef9..de99a8e6e2a2 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -548,7 +549,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); } @@ -666,7 +667,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDataPointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStub.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStub.java index c61b64698fe9..d138f14a4a4d 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStub.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class DataSubscriptionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStubSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStubSettings.java index bbbbfb0d60c0..7aacc428536d 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStubSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataSubscriptionServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -458,7 +459,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); } @@ -568,7 +569,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSubscriberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java index 72ac47184425..99d449f4cb41 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -349,7 +350,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); } @@ -440,7 +441,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointName.java index 19b2132c0b6e..2a52bbf5ba9d 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String user, String dataType, String dataPoint) { .toString(); } - public static DataPointName parse(String formattedString) { + public static @Nullable DataPointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataPointName> values) { List list = new ArrayList<>(values.size()); for (DataPointName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataTypeName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataTypeName.java index d071f9313ecc..d031ff10c3d6 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataTypeName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String dataType) { return newBuilder().setUser(user).setDataType(dataType).build().toString(); } - public static DataTypeName parse(String formattedString) { + public static @Nullable DataTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataTypeName> values) { List list = new ArrayList<>(values.size()); for (DataTypeName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IdentityName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IdentityName.java index 8c6f7f8b937d..6d1f1e446c32 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IdentityName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IdentityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static IdentityName parse(String formattedString) { + public static @Nullable IdentityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IdentityName> values) { List list = new ArrayList<>(values.size()); for (IdentityName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IrnProfileName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IrnProfileName.java index 81a969e674c9..014a93dd9e3e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IrnProfileName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/IrnProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static IrnProfileName parse(String formattedString) { + public static @Nullable IrnProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IrnProfileName> values) { List list = new ArrayList<>(values.size()); for (IrnProfileName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/PairedDeviceName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/PairedDeviceName.java index 02a9e1e4185c..f1766ff44b74 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/PairedDeviceName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/PairedDeviceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String pairedDevice) { return newBuilder().setUser(user).setPairedDevice(pairedDevice).build().toString(); } - public static PairedDeviceName parse(String formattedString) { + public static @Nullable PairedDeviceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PairedDeviceName> values) { List list = new ArrayList<>(values.size()); for (PairedDeviceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProfileName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProfileName.java index c3b29f7d6a23..34973d8019af 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProfileName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static ProfileName parse(String formattedString) { + public static @Nullable ProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProfileName> values) { List list = new ArrayList<>(values.size()); for (ProfileName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProjectName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProjectName.java index 8d7e3e33d469..d3904b8d0b26 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProjectName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsName.java index 7c109ad30471..c3542b56e135 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriberName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriberName.java index 4518c9ba7ba9..5ff624f2d6e2 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriberName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriberName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String subscriber) { return newBuilder().setProject(project).setSubscriber(subscriber).build().toString(); } - public static SubscriberName parse(String formattedString) { + public static @Nullable SubscriberName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriberName> values) { List list = new ArrayList<>(values.size()); for (SubscriberName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionName.java index 0bc13a2277c2..b2d6b2a35762 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String subscriber, String subscripti .toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/UserName.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/UserName.java index 0ed88ae529fc..efd32d6c5249 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/UserName.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterClient.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterClient.java index a576de148dd1..b7b724b5ddf1 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterClient.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterClient.java @@ -43,6 +43,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. /** @@ -263,7 +264,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HypercomputeClusterClient implements BackgroundResource { - private final HypercomputeClusterSettings settings; + private final @Nullable HypercomputeClusterSettings settings; private final HypercomputeClusterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -311,7 +312,7 @@ protected HypercomputeClusterClient(HypercomputeClusterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final HypercomputeClusterSettings getSettings() { + public final @Nullable HypercomputeClusterSettings getSettings() { return settings; } @@ -360,7 +361,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -529,7 +530,7 @@ public final UnaryCallable listCluste * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -648,7 +649,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -939,7 +940,8 @@ public final UnaryCallable updateClusterCallabl * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1294,8 +1296,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -1305,14 +1307,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1326,7 +1328,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1336,7 +1339,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -1370,8 +1373,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1381,14 +1384,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1402,7 +1405,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1412,7 +1416,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterSettings.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterSettings.java index 2b41e384ae2e..339610511da4 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterSettings.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/HypercomputeClusterSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HypercomputeClusterStubSettings.newBuilder(clientContext)); } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStub.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStub.java index b1b8a74c662b..c678c1270d6b 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStub.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class HypercomputeClusterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStubSettings.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStubSettings.java index 5a87475b5e74..905cc83df337 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStubSettings.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/HypercomputeClusterStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -434,7 +435,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); } @@ -536,7 +537,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterClient.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterClient.java index 33a8206c99e8..3a0d4f04516e 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterClient.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterClient.java @@ -43,6 +43,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. /** @@ -263,7 +264,7 @@ @BetaApi @Generated("by gapic-generator-java") public class HypercomputeClusterClient implements BackgroundResource { - private final HypercomputeClusterSettings settings; + private final @Nullable HypercomputeClusterSettings settings; private final HypercomputeClusterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -311,7 +312,7 @@ protected HypercomputeClusterClient(HypercomputeClusterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final HypercomputeClusterSettings getSettings() { + public final @Nullable HypercomputeClusterSettings getSettings() { return settings; } @@ -360,7 +361,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -529,7 +530,7 @@ public final UnaryCallable listCluste * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -648,7 +649,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -939,7 +940,8 @@ public final UnaryCallable updateClusterCallabl * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1276,8 +1278,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -1287,14 +1289,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1308,7 +1310,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1318,7 +1321,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -1352,8 +1355,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1363,14 +1366,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1384,7 +1387,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1394,7 +1398,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterSettings.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterSettings.java index 2f9afcc879b2..1c18bc71ba22 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterSettings.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/HypercomputeClusterSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,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); } @@ -258,7 +259,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HypercomputeClusterStubSettings.newBuilder(clientContext)); } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStub.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStub.java index bf19c0acc733..331054ace1a1 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStub.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class HypercomputeClusterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStubSettings.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStubSettings.java index 04c738739aca..7f89c07894eb 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStubSettings.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/HypercomputeClusterStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -435,7 +436,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); } @@ -537,7 +538,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/ClusterName.java b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/ClusterName.java index 210fe24c2d2a..251323446d33 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/ClusterName.java +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/LocationName.java b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/LocationName.java index 453594416c7e..4e906ad7c8f1 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/LocationName.java +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/src/main/java/com/google/cloud/hypercomputecluster/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/ClusterName.java b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/ClusterName.java index 95e74500b0ea..f3ab9f61d895 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/ClusterName.java +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/LocationName.java b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/LocationName.java index 692ffc998bef..a12ad8135598 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/LocationName.java +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/src/main/java/com/google/cloud/hypercomputecluster/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java index 3ee61ec51f4d..f3046848e7f5 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java @@ -87,6 +87,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. /** @@ -739,7 +740,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IAMClient implements BackgroundResource { - private final IAMSettings settings; + private final @Nullable IAMSettings settings; private final IAMStub stub; /** Constructs an instance of IAMClient with default settings. */ @@ -777,7 +778,7 @@ protected IAMClient(IAMStub stub) { this.stub = stub; } - public final IAMSettings getSettings() { + public final @Nullable IAMSettings getSettings() { return settings; } @@ -810,7 +811,7 @@ public IAMStub getStub() { * such as `projects/my-project-123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServiceAccountsPagedResponse listServiceAccounts(ProjectName name) { + public final ListServiceAccountsPagedResponse listServiceAccounts(@Nullable ProjectName name) { ListServiceAccountsRequest request = ListServiceAccountsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -982,7 +983,7 @@ public final ListServiceAccountsPagedResponse listServiceAccounts( * `email` address or the `unique_id` of the service account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceAccount getServiceAccount(ServiceAccountName name) { + public final ServiceAccount getServiceAccount(@Nullable ServiceAccountName name) { GetServiceAccountRequest request = GetServiceAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1106,7 +1107,7 @@ public final UnaryCallable getServiceA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceAccount createServiceAccount( - ProjectName name, String accountId, ServiceAccount serviceAccount) { + @Nullable ProjectName name, String accountId, ServiceAccount serviceAccount) { CreateServiceAccountRequest request = CreateServiceAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1397,7 +1398,7 @@ public final ServiceAccount patchServiceAccount(PatchServiceAccountRequest reque * `email` address or the `unique_id` of the service account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServiceAccount(ServiceAccountName name) { + public final void deleteServiceAccount(@Nullable ServiceAccountName name) { DeleteServiceAccountRequest request = DeleteServiceAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1767,7 +1768,7 @@ public final UnaryCallable disableServiceAc * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceAccountKeysResponse listServiceAccountKeys( - ServiceAccountName name, List keyTypes) { + @Nullable ServiceAccountName name, List keyTypes) { ListServiceAccountKeysRequest request = ListServiceAccountKeysRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1898,7 +1899,7 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceAccountKey getServiceAccountKey( - KeyName name, ServiceAccountPublicKeyType publicKeyType) { + @Nullable KeyName name, ServiceAccountPublicKeyType publicKeyType) { GetServiceAccountKeyRequest request = GetServiceAccountKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2035,7 +2036,7 @@ public final ServiceAccountKey getServiceAccountKey(GetServiceAccountKeyRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceAccountKey createServiceAccountKey( - ServiceAccountName name, + @Nullable ServiceAccountName name, ServiceAccountPrivateKeyType privateKeyType, ServiceAccountKeyAlgorithm keyAlgorithm) { CreateServiceAccountKeyRequest request = @@ -2245,7 +2246,7 @@ public final ServiceAccountKey uploadServiceAccountKey(UploadServiceAccountKeyRe * `email` address or the `unique_id` of the service account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServiceAccountKey(KeyName name) { + public final void deleteServiceAccountKey(@Nullable KeyName name) { DeleteServiceAccountKeyRequest request = DeleteServiceAccountKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2371,7 +2372,7 @@ public final void deleteServiceAccountKey(DeleteServiceAccountKeyRequest request * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void disableServiceAccountKey(KeyName name) { + public final void disableServiceAccountKey(@Nullable KeyName name) { DisableServiceAccountKeyRequest request = DisableServiceAccountKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2495,7 +2496,7 @@ public final void disableServiceAccountKey(DisableServiceAccountKeyRequest reque * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void enableServiceAccountKey(KeyName name) { + public final void enableServiceAccountKey(@Nullable KeyName name) { EnableServiceAccountKeyRequest request = EnableServiceAccountKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2628,7 +2629,8 @@ public final void enableServiceAccountKey(EnableServiceAccountKeyRequest request * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final SignBlobResponse signBlob(ServiceAccountName name, ByteString bytesToSign) { + public final SignBlobResponse signBlob( + @Nullable ServiceAccountName name, ByteString bytesToSign) { SignBlobRequest request = SignBlobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2802,7 +2804,7 @@ public final UnaryCallable signBlobCallable() * @deprecated This method is deprecated and will be removed in the next major version update. */ @Deprecated - public final SignJwtResponse signJwt(ServiceAccountName name, String payload) { + public final SignJwtResponse signJwt(@Nullable ServiceAccountName name, String payload) { SignJwtRequest request = SignJwtRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2966,7 +2968,7 @@ public final UnaryCallable signJwtCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3123,7 +3125,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3296,7 +3298,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4274,9 +4276,10 @@ public static class ListServiceAccountsPage ListServiceAccountsPage> { private ListServiceAccountsPage( - PageContext + @Nullable + PageContext context, - ListServiceAccountsResponse response) { + @Nullable ListServiceAccountsResponse response) { super(context, response); } @@ -4286,15 +4289,17 @@ private static ListServiceAccountsPage createEmptyPage() { @Override protected ListServiceAccountsPage createPage( - PageContext + @Nullable + PageContext context, - ListServiceAccountsResponse response) { + @Nullable ListServiceAccountsResponse response) { return new ListServiceAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4310,7 +4315,7 @@ public static class ListServiceAccountsFixedSizeCollection ListServiceAccountsFixedSizeCollection> { private ListServiceAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4320,7 +4325,7 @@ private static ListServiceAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListServiceAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceAccountsFixedSizeCollection(pages, collectionSize); } } @@ -4354,8 +4359,9 @@ public static class QueryGrantableRolesPage QueryGrantableRolesRequest, QueryGrantableRolesResponse, Role, QueryGrantableRolesPage> { private QueryGrantableRolesPage( - PageContext context, - QueryGrantableRolesResponse response) { + @Nullable PageContext + context, + @Nullable QueryGrantableRolesResponse response) { super(context, response); } @@ -4365,14 +4371,16 @@ private static QueryGrantableRolesPage createEmptyPage() { @Override protected QueryGrantableRolesPage createPage( - PageContext context, - QueryGrantableRolesResponse response) { + @Nullable PageContext + context, + @Nullable QueryGrantableRolesResponse response) { return new QueryGrantableRolesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4387,7 +4395,7 @@ public static class QueryGrantableRolesFixedSizeCollection QueryGrantableRolesFixedSizeCollection> { private QueryGrantableRolesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4397,7 +4405,7 @@ private static QueryGrantableRolesFixedSizeCollection createEmptyCollection() { @Override protected QueryGrantableRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryGrantableRolesFixedSizeCollection(pages, collectionSize); } } @@ -4424,8 +4432,8 @@ public static class ListRolesPage extends AbstractPage { private ListRolesPage( - PageContext context, - ListRolesResponse response) { + @Nullable PageContext context, + @Nullable ListRolesResponse response) { super(context, response); } @@ -4435,14 +4443,14 @@ private static ListRolesPage createEmptyPage() { @Override protected ListRolesPage createPage( - PageContext context, - ListRolesResponse response) { + @Nullable PageContext context, + @Nullable ListRolesResponse response) { return new ListRolesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4452,7 +4460,7 @@ public static class ListRolesFixedSizeCollection extends AbstractFixedSizeCollection< ListRolesRequest, ListRolesResponse, Role, ListRolesPage, ListRolesFixedSizeCollection> { - private ListRolesFixedSizeCollection(List pages, int collectionSize) { + private ListRolesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4462,7 +4470,7 @@ private static ListRolesFixedSizeCollection createEmptyCollection() { @Override protected ListRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolesFixedSizeCollection(pages, collectionSize); } } @@ -4500,9 +4508,11 @@ public static class QueryTestablePermissionsPage QueryTestablePermissionsPage> { private QueryTestablePermissionsPage( - PageContext + @Nullable + PageContext< + QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission> context, - QueryTestablePermissionsResponse response) { + @Nullable QueryTestablePermissionsResponse response) { super(context, response); } @@ -4512,15 +4522,19 @@ private static QueryTestablePermissionsPage createEmptyPage() { @Override protected QueryTestablePermissionsPage createPage( - PageContext + @Nullable + PageContext< + QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission> context, - QueryTestablePermissionsResponse response) { + @Nullable QueryTestablePermissionsResponse response) { return new QueryTestablePermissionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4536,7 +4550,7 @@ public static class QueryTestablePermissionsFixedSizeCollection QueryTestablePermissionsFixedSizeCollection> { private QueryTestablePermissionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4546,7 +4560,7 @@ private static QueryTestablePermissionsFixedSizeCollection createEmptyCollection @Override protected QueryTestablePermissionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryTestablePermissionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java index 5e3f790b83f4..c1559e34e7d2 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -365,7 +366,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -385,7 +386,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IAMStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java index 1877bcecea68..571e7bd4493b 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -702,7 +703,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -875,7 +876,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServiceAccountsSettings = diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java index 938270be42d2..34b9c66116e6 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String serviceAccount, String key) { .toString(); } - public static KeyName parse(String formattedString) { + public static @Nullable KeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyName> values) { List list = new ArrayList<>(values.size()); for (KeyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java index ea20c21d9133..3a2f73484207 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java index ae71b2f21a43..d7d53b8fbc4e 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java index 8b5753bef2f0..9c220aa52843 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesClient.java @@ -37,6 +37,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. /** @@ -219,7 +220,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PoliciesClient implements BackgroundResource { - private final PoliciesSettings settings; + private final @Nullable PoliciesSettings settings; private final PoliciesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -265,7 +266,7 @@ protected PoliciesClient(PoliciesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PoliciesSettings getSettings() { + public final @Nullable PoliciesSettings getSettings() { return settings; } @@ -926,8 +927,8 @@ public static class ListPoliciesPage extends AbstractPage { private ListPoliciesPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { super(context, response); } @@ -937,14 +938,14 @@ private static ListPoliciesPage createEmptyPage() { @Override protected ListPoliciesPage createPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { return new ListPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -958,7 +959,8 @@ public static class ListPoliciesFixedSizeCollection ListPoliciesPage, ListPoliciesFixedSizeCollection> { - private ListPoliciesFixedSizeCollection(List pages, int collectionSize) { + private ListPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -968,7 +970,7 @@ private static ListPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesSettings.java index 3cbcf033d481..f5c88aa64903 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/PoliciesSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -235,7 +236,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStub.java index e6cf998040d6..9402d13c9e16 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class PoliciesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java index 5fd04d2c60b2..6e3e53d7823b 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/PoliciesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -356,7 +357,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); } @@ -441,7 +442,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPoliciesSettings = PagedCallSettings.newBuilder(LIST_POLICIES_PAGE_STR_FACT); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java index 2de253b558e3..e342af216164 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesClient.java @@ -37,6 +37,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. /** @@ -220,7 +221,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PoliciesClient implements BackgroundResource { - private final PoliciesSettings settings; + private final @Nullable PoliciesSettings settings; private final PoliciesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -266,7 +267,7 @@ protected PoliciesClient(PoliciesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PoliciesSettings getSettings() { + public final @Nullable PoliciesSettings getSettings() { return settings; } @@ -927,8 +928,8 @@ public static class ListPoliciesPage extends AbstractPage { private ListPoliciesPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { super(context, response); } @@ -938,14 +939,14 @@ private static ListPoliciesPage createEmptyPage() { @Override protected ListPoliciesPage createPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { return new ListPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -959,7 +960,8 @@ public static class ListPoliciesFixedSizeCollection ListPoliciesPage, ListPoliciesFixedSizeCollection> { - private ListPoliciesFixedSizeCollection(List pages, int collectionSize) { + private ListPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -969,7 +971,7 @@ private static ListPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesSettings.java index bea6e4d502d5..4c5177acd10a 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/PoliciesSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStub.java index a86ff14cf350..aaceaf411659 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStub.java @@ -34,6 +34,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -46,11 +47,12 @@ @Generated("by gapic-generator-java") public abstract class PoliciesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java index 750eec7ba571..1edfbfaaf6e1 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/PoliciesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -357,7 +358,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); } @@ -442,7 +443,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPoliciesSettings = PagedCallSettings.newBuilder(LIST_POLICIES_PAGE_STR_FACT); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java index 9b8bcfd42017..e7265e3fb20c 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java @@ -39,6 +39,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. /** @@ -254,7 +255,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PolicyBindingsClient implements BackgroundResource { - private final PolicyBindingsSettings settings; + private final @Nullable PolicyBindingsSettings settings; private final PolicyBindingsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -302,7 +303,7 @@ protected PolicyBindingsClient(PolicyBindingsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PolicyBindingsSettings getSettings() { + public final @Nullable PolicyBindingsSettings getSettings() { return settings; } @@ -371,7 +372,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - FolderLocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable FolderLocationName parent, PolicyBinding policyBinding, String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -425,7 +426,7 @@ public final OperationFuture createPolicyBindi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - LocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable LocationName parent, PolicyBinding policyBinding, String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -479,7 +480,9 @@ public final OperationFuture createPolicyBindi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - OrganizationLocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable OrganizationLocationName parent, + PolicyBinding policyBinding, + String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -675,7 +678,7 @@ public final UnaryCallable createPolicyBi * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyBinding getPolicyBinding(PolicyBindingName name) { + public final PolicyBinding getPolicyBinding(@Nullable PolicyBindingName name) { GetPolicyBindingRequest request = GetPolicyBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicyBinding(request); @@ -953,7 +956,7 @@ public final UnaryCallable updatePolicyBi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePolicyBindingAsync( - PolicyBindingName name) { + @Nullable PolicyBindingName name) { DeletePolicyBindingRequest request = DeletePolicyBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1139,7 +1142,8 @@ public final UnaryCallable deletePolicyBi * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(FolderLocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings( + @Nullable FolderLocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1178,7 +1182,7 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings(FolderLocationNa * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(LocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings(@Nullable LocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1217,7 +1221,8 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings(LocationName par * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(OrganizationLocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings( + @Nullable OrganizationLocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1417,7 +1422,7 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - FolderLocationName parent, String target) { + @Nullable FolderLocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1472,7 +1477,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - LocationName parent, String target) { + @Nullable LocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1527,7 +1532,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - OrganizationLocationName parent, String target) { + @Nullable OrganizationLocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1761,8 +1766,9 @@ public static class ListPolicyBindingsPage ListPolicyBindingsPage> { private ListPolicyBindingsPage( - PageContext context, - ListPolicyBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListPolicyBindingsResponse response) { super(context, response); } @@ -1772,14 +1778,16 @@ private static ListPolicyBindingsPage createEmptyPage() { @Override protected ListPolicyBindingsPage createPage( - PageContext context, - ListPolicyBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListPolicyBindingsResponse response) { return new ListPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1794,7 +1802,7 @@ public static class ListPolicyBindingsFixedSizeCollection ListPolicyBindingsFixedSizeCollection> { private ListPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1804,7 +1812,7 @@ private static ListPolicyBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyBindingsFixedSizeCollection(pages, collectionSize); } } @@ -1845,12 +1853,13 @@ public static class SearchTargetPolicyBindingsPage SearchTargetPolicyBindingsPage> { private SearchTargetPolicyBindingsPage( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> context, - SearchTargetPolicyBindingsResponse response) { + @Nullable SearchTargetPolicyBindingsResponse response) { super(context, response); } @@ -1860,18 +1869,20 @@ private static SearchTargetPolicyBindingsPage createEmptyPage() { @Override protected SearchTargetPolicyBindingsPage createPage( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> context, - SearchTargetPolicyBindingsResponse response) { + @Nullable SearchTargetPolicyBindingsResponse response) { return new SearchTargetPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> @@ -1890,7 +1901,7 @@ public static class SearchTargetPolicyBindingsFixedSizeCollection SearchTargetPolicyBindingsFixedSizeCollection> { private SearchTargetPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1900,7 +1911,7 @@ private static SearchTargetPolicyBindingsFixedSizeCollection createEmptyCollecti @Override protected SearchTargetPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchTargetPolicyBindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsSettings.java index d72b4378ae53..0277b240f798 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,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); } @@ -250,7 +251,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyBindingsStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesClient.java index 161f66aa7aea..4fa0f2d33903 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesClient.java @@ -39,6 +39,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. /** @@ -254,7 +255,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PrincipalAccessBoundaryPoliciesClient implements BackgroundResource { - private final PrincipalAccessBoundaryPoliciesSettings settings; + private final @Nullable PrincipalAccessBoundaryPoliciesSettings settings; private final PrincipalAccessBoundaryPoliciesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -307,7 +308,7 @@ protected PrincipalAccessBoundaryPoliciesClient(PrincipalAccessBoundaryPoliciesS this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PrincipalAccessBoundaryPoliciesSettings getSettings() { + public final @Nullable PrincipalAccessBoundaryPoliciesSettings getSettings() { return settings; } @@ -371,7 +372,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createPrincipalAccessBoundaryPolicyAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, PrincipalAccessBoundaryPolicy principalAccessBoundaryPolicy, String principalAccessBoundaryPolicyId) { CreatePrincipalAccessBoundaryPolicyRequest request = @@ -571,7 +572,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PrincipalAccessBoundaryPolicy getPrincipalAccessBoundaryPolicy( - PrincipalAccessBoundaryPolicyName name) { + @Nullable PrincipalAccessBoundaryPolicyName name) { GetPrincipalAccessBoundaryPolicyRequest request = GetPrincipalAccessBoundaryPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -856,7 +857,7 @@ public final PrincipalAccessBoundaryPolicy getPrincipalAccessBoundaryPolicy( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrincipalAccessBoundaryPolicyAsync( - PrincipalAccessBoundaryPolicyName name) { + @Nullable PrincipalAccessBoundaryPolicyName name) { DeletePrincipalAccessBoundaryPolicyRequest request = DeletePrincipalAccessBoundaryPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1041,7 +1042,7 @@ public final OperationFuture deletePrincipalAccessBoun * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPrincipalAccessBoundaryPoliciesPagedResponse listPrincipalAccessBoundaryPolicies( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListPrincipalAccessBoundaryPoliciesRequest request = ListPrincipalAccessBoundaryPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1237,7 +1238,8 @@ public final ListPrincipalAccessBoundaryPoliciesPagedResponse listPrincipalAcces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchPrincipalAccessBoundaryPolicyBindingsPagedResponse - searchPrincipalAccessBoundaryPolicyBindings(PrincipalAccessBoundaryPolicyName name) { + searchPrincipalAccessBoundaryPolicyBindings( + @Nullable PrincipalAccessBoundaryPolicyName name) { SearchPrincipalAccessBoundaryPolicyBindingsRequest request = SearchPrincipalAccessBoundaryPolicyBindingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1485,12 +1487,13 @@ public static class ListPrincipalAccessBoundaryPoliciesPage ListPrincipalAccessBoundaryPoliciesPage> { private ListPrincipalAccessBoundaryPoliciesPage( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> context, - ListPrincipalAccessBoundaryPoliciesResponse response) { + @Nullable ListPrincipalAccessBoundaryPoliciesResponse response) { super(context, response); } @@ -1500,18 +1503,20 @@ private static ListPrincipalAccessBoundaryPoliciesPage createEmptyPage() { @Override protected ListPrincipalAccessBoundaryPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> context, - ListPrincipalAccessBoundaryPoliciesResponse response) { + @Nullable ListPrincipalAccessBoundaryPoliciesResponse response) { return new ListPrincipalAccessBoundaryPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> @@ -1530,7 +1535,7 @@ public static class ListPrincipalAccessBoundaryPoliciesFixedSizeCollection ListPrincipalAccessBoundaryPoliciesFixedSizeCollection> { private ListPrincipalAccessBoundaryPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1540,7 +1545,7 @@ private static ListPrincipalAccessBoundaryPoliciesFixedSizeCollection createEmpt @Override protected ListPrincipalAccessBoundaryPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrincipalAccessBoundaryPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -1585,12 +1590,13 @@ public static class SearchPrincipalAccessBoundaryPolicyBindingsPage SearchPrincipalAccessBoundaryPolicyBindingsPage> { private SearchPrincipalAccessBoundaryPolicyBindingsPage( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> context, - SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { + @Nullable SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { super(context, response); } @@ -1600,18 +1606,20 @@ private static SearchPrincipalAccessBoundaryPolicyBindingsPage createEmptyPage() @Override protected SearchPrincipalAccessBoundaryPolicyBindingsPage createPage( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> context, - SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { + @Nullable SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { return new SearchPrincipalAccessBoundaryPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> @@ -1630,7 +1638,7 @@ public static class SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollecti SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection> { private SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1641,7 +1649,7 @@ private SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( @Override protected SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( pages, collectionSize); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesSettings.java index de436b6ecc66..2a938210eee7 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPoliciesSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -277,7 +278,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrincipalAccessBoundaryPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStub.java index 90947138c71d..f914e5e352da 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class PolicyBindingsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStubSettings.java index 2495f161a0e2..509c60eaf2be 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PolicyBindingsStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -463,7 +464,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); } @@ -572,7 +573,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStub.java index 14a4be05da05..8f0719e561d6 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class PrincipalAccessBoundaryPoliciesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStubSettings.java index 060e55f8c890..3cec4f12cb90 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/PrincipalAccessBoundaryPoliciesStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -528,7 +529,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); } @@ -651,7 +652,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPrincipalAccessBoundaryPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java index cc67b197c9ca..20e965d5a521 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java @@ -38,6 +38,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. /** @@ -247,7 +248,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AccessPoliciesClient implements BackgroundResource { - private final AccessPoliciesSettings settings; + private final @Nullable AccessPoliciesSettings settings; private final AccessPoliciesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -295,7 +296,7 @@ protected AccessPoliciesClient(AccessPoliciesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AccessPoliciesSettings getSettings() { + public final @Nullable AccessPoliciesSettings getSettings() { return settings; } @@ -354,7 +355,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAccessPolicyAsync( - FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + @Nullable FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { CreateAccessPolicyRequest request = CreateAccessPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -398,7 +399,7 @@ public final OperationFuture createAccessPolicy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAccessPolicyAsync( - LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + @Nullable LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { CreateAccessPolicyRequest request = CreateAccessPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -442,7 +443,7 @@ public final OperationFuture createAccessPolicy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAccessPolicyAsync( - OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + @Nullable OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { CreateAccessPolicyRequest request = CreateAccessPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -618,7 +619,7 @@ public final UnaryCallable createAccessPol * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessPolicy getAccessPolicy(AccessPolicyName name) { + public final AccessPolicy getAccessPolicy(@Nullable AccessPolicyName name) { GetAccessPolicyRequest request = GetAccessPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccessPolicy(request); @@ -836,7 +837,7 @@ public final UnaryCallable updateAccessPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAccessPolicyAsync( - AccessPolicyName name) { + @Nullable AccessPolicyName name) { DeleteAccessPolicyRequest request = DeleteAccessPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1009,7 +1010,8 @@ public final UnaryCallable deleteAccessPol * `organizations/{organization_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessPoliciesPagedResponse listAccessPolicies(FolderLocationName parent) { + public final ListAccessPoliciesPagedResponse listAccessPolicies( + @Nullable FolderLocationName parent) { ListAccessPoliciesRequest request = ListAccessPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1044,7 +1046,7 @@ public final ListAccessPoliciesPagedResponse listAccessPolicies(FolderLocationNa * `organizations/{organization_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessPoliciesPagedResponse listAccessPolicies(LocationName parent) { + public final ListAccessPoliciesPagedResponse listAccessPolicies(@Nullable LocationName parent) { ListAccessPoliciesRequest request = ListAccessPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1079,7 +1081,8 @@ public final ListAccessPoliciesPagedResponse listAccessPolicies(LocationName par * `organizations/{organization_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessPoliciesPagedResponse listAccessPolicies(OrganizationLocationName parent) { + public final ListAccessPoliciesPagedResponse listAccessPolicies( + @Nullable OrganizationLocationName parent) { ListAccessPoliciesRequest request = ListAccessPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1258,7 +1261,7 @@ public final ListAccessPoliciesPagedResponse listAccessPolicies( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings( - AccessPolicyName name) { + @Nullable AccessPolicyName name) { SearchAccessPolicyBindingsRequest request = SearchAccessPolicyBindingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1486,8 +1489,9 @@ public static class ListAccessPoliciesPage ListAccessPoliciesPage> { private ListAccessPoliciesPage( - PageContext context, - ListAccessPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { super(context, response); } @@ -1497,14 +1501,16 @@ private static ListAccessPoliciesPage createEmptyPage() { @Override protected ListAccessPoliciesPage createPage( - PageContext context, - ListAccessPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { return new ListAccessPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1519,7 +1525,7 @@ public static class ListAccessPoliciesFixedSizeCollection ListAccessPoliciesFixedSizeCollection> { private ListAccessPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1529,7 +1535,7 @@ private static ListAccessPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListAccessPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccessPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -1570,12 +1576,13 @@ public static class SearchAccessPolicyBindingsPage SearchAccessPolicyBindingsPage> { private SearchAccessPolicyBindingsPage( - PageContext< + @Nullable + PageContext< SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse, PolicyBinding> context, - SearchAccessPolicyBindingsResponse response) { + @Nullable SearchAccessPolicyBindingsResponse response) { super(context, response); } @@ -1585,18 +1592,20 @@ private static SearchAccessPolicyBindingsPage createEmptyPage() { @Override protected SearchAccessPolicyBindingsPage createPage( - PageContext< + @Nullable + PageContext< SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse, PolicyBinding> context, - SearchAccessPolicyBindingsResponse response) { + @Nullable SearchAccessPolicyBindingsResponse response) { return new SearchAccessPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse, PolicyBinding> @@ -1615,7 +1624,7 @@ public static class SearchAccessPolicyBindingsFixedSizeCollection SearchAccessPolicyBindingsFixedSizeCollection> { private SearchAccessPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1625,7 +1634,7 @@ private static SearchAccessPolicyBindingsFixedSizeCollection createEmptyCollecti @Override protected SearchAccessPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAccessPolicyBindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java index 012bdc2b2e82..ca97a7bf0ba9 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccessPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java index f947390a1e87..33210791cd7b 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java @@ -39,6 +39,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. /** @@ -255,7 +256,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PolicyBindingsClient implements BackgroundResource { - private final PolicyBindingsSettings settings; + private final @Nullable PolicyBindingsSettings settings; private final PolicyBindingsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -303,7 +304,7 @@ protected PolicyBindingsClient(PolicyBindingsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PolicyBindingsSettings getSettings() { + public final @Nullable PolicyBindingsSettings getSettings() { return settings; } @@ -372,7 +373,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - FolderLocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable FolderLocationName parent, PolicyBinding policyBinding, String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -426,7 +427,7 @@ public final OperationFuture createPolicyBindi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - LocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable LocationName parent, PolicyBinding policyBinding, String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -480,7 +481,9 @@ public final OperationFuture createPolicyBindi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBindingAsync( - OrganizationLocationName parent, PolicyBinding policyBinding, String policyBindingId) { + @Nullable OrganizationLocationName parent, + PolicyBinding policyBinding, + String policyBindingId) { CreatePolicyBindingRequest request = CreatePolicyBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -676,7 +679,7 @@ public final UnaryCallable createPolicyBi * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyBinding getPolicyBinding(PolicyBindingName name) { + public final PolicyBinding getPolicyBinding(@Nullable PolicyBindingName name) { GetPolicyBindingRequest request = GetPolicyBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicyBinding(request); @@ -950,7 +953,7 @@ public final UnaryCallable updatePolicyBi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePolicyBindingAsync( - PolicyBindingName name) { + @Nullable PolicyBindingName name) { DeletePolicyBindingRequest request = DeletePolicyBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1136,7 +1139,8 @@ public final UnaryCallable deletePolicyBi * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(FolderLocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings( + @Nullable FolderLocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1175,7 +1179,7 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings(FolderLocationNa * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(LocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings(@Nullable LocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1214,7 +1218,8 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings(LocationName par * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBindingsPagedResponse listPolicyBindings(OrganizationLocationName parent) { + public final ListPolicyBindingsPagedResponse listPolicyBindings( + @Nullable OrganizationLocationName parent) { ListPolicyBindingsRequest request = ListPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1414,7 +1419,7 @@ public final ListPolicyBindingsPagedResponse listPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - FolderLocationName parent, String target) { + @Nullable FolderLocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1469,7 +1474,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - LocationName parent, String target) { + @Nullable LocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1524,7 +1529,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( - OrganizationLocationName parent, String target) { + @Nullable OrganizationLocationName parent, String target) { SearchTargetPolicyBindingsRequest request = SearchTargetPolicyBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1761,8 +1766,9 @@ public static class ListPolicyBindingsPage ListPolicyBindingsPage> { private ListPolicyBindingsPage( - PageContext context, - ListPolicyBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListPolicyBindingsResponse response) { super(context, response); } @@ -1772,14 +1778,16 @@ private static ListPolicyBindingsPage createEmptyPage() { @Override protected ListPolicyBindingsPage createPage( - PageContext context, - ListPolicyBindingsResponse response) { + @Nullable PageContext + context, + @Nullable ListPolicyBindingsResponse response) { return new ListPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1794,7 +1802,7 @@ public static class ListPolicyBindingsFixedSizeCollection ListPolicyBindingsFixedSizeCollection> { private ListPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1804,7 +1812,7 @@ private static ListPolicyBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyBindingsFixedSizeCollection(pages, collectionSize); } } @@ -1845,12 +1853,13 @@ public static class SearchTargetPolicyBindingsPage SearchTargetPolicyBindingsPage> { private SearchTargetPolicyBindingsPage( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> context, - SearchTargetPolicyBindingsResponse response) { + @Nullable SearchTargetPolicyBindingsResponse response) { super(context, response); } @@ -1860,18 +1869,20 @@ private static SearchTargetPolicyBindingsPage createEmptyPage() { @Override protected SearchTargetPolicyBindingsPage createPage( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> context, - SearchTargetPolicyBindingsResponse response) { + @Nullable SearchTargetPolicyBindingsResponse response) { return new SearchTargetPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchTargetPolicyBindingsRequest, SearchTargetPolicyBindingsResponse, PolicyBinding> @@ -1890,7 +1901,7 @@ public static class SearchTargetPolicyBindingsFixedSizeCollection SearchTargetPolicyBindingsFixedSizeCollection> { private SearchTargetPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1900,7 +1911,7 @@ private static SearchTargetPolicyBindingsFixedSizeCollection createEmptyCollecti @Override protected SearchTargetPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchTargetPolicyBindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsSettings.java index 391b2ec884a0..3056b9e44959 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyBindingsStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesClient.java index 3157fe0baad5..e5ef10d1303f 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesClient.java @@ -39,6 +39,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. /** @@ -255,7 +256,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PrincipalAccessBoundaryPoliciesClient implements BackgroundResource { - private final PrincipalAccessBoundaryPoliciesSettings settings; + private final @Nullable PrincipalAccessBoundaryPoliciesSettings settings; private final PrincipalAccessBoundaryPoliciesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -308,7 +309,7 @@ protected PrincipalAccessBoundaryPoliciesClient(PrincipalAccessBoundaryPoliciesS this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PrincipalAccessBoundaryPoliciesSettings getSettings() { + public final @Nullable PrincipalAccessBoundaryPoliciesSettings getSettings() { return settings; } @@ -372,7 +373,7 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createPrincipalAccessBoundaryPolicyAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, PrincipalAccessBoundaryPolicy principalAccessBoundaryPolicy, String principalAccessBoundaryPolicyId) { CreatePrincipalAccessBoundaryPolicyRequest request = @@ -572,7 +573,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PrincipalAccessBoundaryPolicy getPrincipalAccessBoundaryPolicy( - PrincipalAccessBoundaryPolicyName name) { + @Nullable PrincipalAccessBoundaryPolicyName name) { GetPrincipalAccessBoundaryPolicyRequest request = GetPrincipalAccessBoundaryPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -857,7 +858,7 @@ public final PrincipalAccessBoundaryPolicy getPrincipalAccessBoundaryPolicy( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrincipalAccessBoundaryPolicyAsync( - PrincipalAccessBoundaryPolicyName name) { + @Nullable PrincipalAccessBoundaryPolicyName name) { DeletePrincipalAccessBoundaryPolicyRequest request = DeletePrincipalAccessBoundaryPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1042,7 +1043,7 @@ public final OperationFuture deletePrincipalAccessBoun * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPrincipalAccessBoundaryPoliciesPagedResponse listPrincipalAccessBoundaryPolicies( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListPrincipalAccessBoundaryPoliciesRequest request = ListPrincipalAccessBoundaryPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1238,7 +1239,8 @@ public final ListPrincipalAccessBoundaryPoliciesPagedResponse listPrincipalAcces * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchPrincipalAccessBoundaryPolicyBindingsPagedResponse - searchPrincipalAccessBoundaryPolicyBindings(PrincipalAccessBoundaryPolicyName name) { + searchPrincipalAccessBoundaryPolicyBindings( + @Nullable PrincipalAccessBoundaryPolicyName name) { SearchPrincipalAccessBoundaryPolicyBindingsRequest request = SearchPrincipalAccessBoundaryPolicyBindingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1486,12 +1488,13 @@ public static class ListPrincipalAccessBoundaryPoliciesPage ListPrincipalAccessBoundaryPoliciesPage> { private ListPrincipalAccessBoundaryPoliciesPage( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> context, - ListPrincipalAccessBoundaryPoliciesResponse response) { + @Nullable ListPrincipalAccessBoundaryPoliciesResponse response) { super(context, response); } @@ -1501,18 +1504,20 @@ private static ListPrincipalAccessBoundaryPoliciesPage createEmptyPage() { @Override protected ListPrincipalAccessBoundaryPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> context, - ListPrincipalAccessBoundaryPoliciesResponse response) { + @Nullable ListPrincipalAccessBoundaryPoliciesResponse response) { return new ListPrincipalAccessBoundaryPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrincipalAccessBoundaryPoliciesRequest, ListPrincipalAccessBoundaryPoliciesResponse, PrincipalAccessBoundaryPolicy> @@ -1531,7 +1536,7 @@ public static class ListPrincipalAccessBoundaryPoliciesFixedSizeCollection ListPrincipalAccessBoundaryPoliciesFixedSizeCollection> { private ListPrincipalAccessBoundaryPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1541,7 +1546,7 @@ private static ListPrincipalAccessBoundaryPoliciesFixedSizeCollection createEmpt @Override protected ListPrincipalAccessBoundaryPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrincipalAccessBoundaryPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -1586,12 +1591,13 @@ public static class SearchPrincipalAccessBoundaryPolicyBindingsPage SearchPrincipalAccessBoundaryPolicyBindingsPage> { private SearchPrincipalAccessBoundaryPolicyBindingsPage( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> context, - SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { + @Nullable SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { super(context, response); } @@ -1601,18 +1607,20 @@ private static SearchPrincipalAccessBoundaryPolicyBindingsPage createEmptyPage() @Override protected SearchPrincipalAccessBoundaryPolicyBindingsPage createPage( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> context, - SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { + @Nullable SearchPrincipalAccessBoundaryPolicyBindingsResponse response) { return new SearchPrincipalAccessBoundaryPolicyBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchPrincipalAccessBoundaryPolicyBindingsRequest, SearchPrincipalAccessBoundaryPolicyBindingsResponse, PolicyBinding> @@ -1631,7 +1639,7 @@ public static class SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollecti SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection> { private SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1642,7 +1650,7 @@ private SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( @Override protected SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchPrincipalAccessBoundaryPolicyBindingsFixedSizeCollection( pages, collectionSize); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesSettings.java index a22a3fc5fbd1..7cb0353c0fcc 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPoliciesSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -278,7 +279,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrincipalAccessBoundaryPoliciesStubSettings.newBuilder(clientContext)); } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java index bfa96df1e281..1d49449c7ea0 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class AccessPoliciesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java index a1a5a24989f6..dafa14dcdca9 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -462,7 +463,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); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStub.java index c0b7ba812156..7018954cfd38 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class PolicyBindingsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStubSettings.java index 73ca2b1587f2..1949fcf452ee 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PolicyBindingsStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -573,7 +574,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPolicyBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStub.java index 3d822e81b4d2..1005c04b8cf1 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class PrincipalAccessBoundaryPoliciesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStubSettings.java index a0a9f4adf064..5b167b5a624d 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStubSettings.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/PrincipalAccessBoundaryPoliciesStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -529,7 +530,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); } @@ -652,7 +653,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPrincipalAccessBoundaryPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/FolderLocationName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/FolderLocationName.java index bfdf6315d2a7..3035777f7c12 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/FolderLocationName.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/LocationName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/LocationName.java index 2c47b7d74541..0b6546f53c43 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/LocationName.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/OrganizationLocationName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/OrganizationLocationName.java index abb160bc7e2e..f6b8ff37323f 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/OrganizationLocationName.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingName.java index e24f379b80c2..fd24f831c232 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingName.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationPolicyBindingName( .toString(); } - public static PolicyBindingName parse(String formattedString) { + public static @Nullable PolicyBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -228,7 +229,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyBindingName> values) { List list = new ArrayList<>(values.size()); for (PolicyBindingName value : values) { if (value == null) { @@ -284,7 +285,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPolicyName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPolicyName.java index 1bed80304348..45044a20419f 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPolicyName.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PrincipalAccessBoundaryPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static PrincipalAccessBoundaryPolicyName parse(String formattedString) { + public static @Nullable PrincipalAccessBoundaryPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable PrincipalAccessBoundaryPolicyName> values) { List list = new ArrayList<>(values.size()); for (PrincipalAccessBoundaryPolicyName value : values) { if (value == null) { @@ -168,7 +170,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java index 1abbea5386ba..78105b9e5b9d 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationAccessPolicyName( .toString(); } - public static AccessPolicyName parse(String formattedString) { + public static @Nullable AccessPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -228,7 +229,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccessPolicyName> values) { List list = new ArrayList<>(values.size()); for (AccessPolicyName value : values) { if (value == null) { @@ -284,7 +285,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/FolderLocationName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/FolderLocationName.java index 850e3816f944..726281ec2688 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/FolderLocationName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/LocationName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/LocationName.java index bc2327b88e71..9a930b1496f3 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/LocationName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/OrganizationLocationName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/OrganizationLocationName.java index 2a34aab86581..e09ef71dd17b 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/OrganizationLocationName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingName.java index 292b124f1738..04eae9a2a73e 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationPolicyBindingName( .toString(); } - public static PolicyBindingName parse(String formattedString) { + public static @Nullable PolicyBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -228,7 +229,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyBindingName> values) { List list = new ArrayList<>(values.size()); for (PolicyBindingName value : values) { if (value == null) { @@ -284,7 +285,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPolicyName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPolicyName.java index 8cc1fa2d2f1d..1c063dacbcc3 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPolicyName.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PrincipalAccessBoundaryPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static PrincipalAccessBoundaryPolicyName parse(String formattedString) { + public static @Nullable PrincipalAccessBoundaryPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable PrincipalAccessBoundaryPolicyName> values) { List list = new ArrayList<>(values.size()); for (PrincipalAccessBoundaryPolicyName value : values) { if (value == null) { @@ -168,7 +170,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java index 809d9f7bc606..afe0bf1c17a7 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java @@ -27,6 +27,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. /** @@ -202,7 +203,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IamCredentialsClient implements BackgroundResource { - private final IamCredentialsSettings settings; + private final @Nullable IamCredentialsSettings settings; private final IamCredentialsStub stub; /** Constructs an instance of IamCredentialsClient with default settings. */ @@ -242,7 +243,7 @@ protected IamCredentialsClient(IamCredentialsStub stub) { this.stub = stub; } - public final IamCredentialsSettings getSettings() { + public final @Nullable IamCredentialsSettings getSettings() { return settings; } @@ -293,7 +294,10 @@ public IamCredentialsStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateAccessTokenResponse generateAccessToken( - ServiceAccountName name, List delegates, List scope, Duration lifetime) { + @Nullable ServiceAccountName name, + List delegates, + List scope, + Duration lifetime) { GenerateAccessTokenRequest request = GenerateAccessTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -462,7 +466,10 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateIdTokenResponse generateIdToken( - ServiceAccountName name, List delegates, String audience, boolean includeEmail) { + @Nullable ServiceAccountName name, + List delegates, + String audience, + boolean includeEmail) { GenerateIdTokenRequest request = GenerateIdTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -624,7 +631,7 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SignBlobResponse signBlob( - ServiceAccountName name, List delegates, ByteString payload) { + @Nullable ServiceAccountName name, List delegates, ByteString payload) { SignBlobRequest request = SignBlobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -775,7 +782,7 @@ public final UnaryCallable signBlobCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SignJwtResponse signJwt( - ServiceAccountName name, List delegates, String payload) { + @Nullable ServiceAccountName name, List delegates, String payload) { SignJwtRequest request = SignJwtRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index a7752beb220f..3bcc850da5cb 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IamCredentialsStubSettings.newBuilder(clientContext)); } diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 1984c39278c8..bac09748fcc7 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -241,7 +242,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); } @@ -314,7 +315,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateAccessTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/ServiceAccountName.java b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/ServiceAccountName.java index 29071fff8871..294531d8a97c 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/ServiceAccountName.java +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceClient.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceClient.java index fabd76f1da6a..ee74315d61c2 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceClient.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceClient.java @@ -39,6 +39,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IdentityAwareProxyAdminServiceClient implements BackgroundResource { - private final IdentityAwareProxyAdminServiceSettings settings; + private final @Nullable IdentityAwareProxyAdminServiceSettings settings; private final IdentityAwareProxyAdminServiceStub stub; /** Constructs an instance of IdentityAwareProxyAdminServiceClient with default settings. */ @@ -362,7 +363,7 @@ protected IdentityAwareProxyAdminServiceClient(IdentityAwareProxyAdminServiceStu this.stub = stub; } - public final IdentityAwareProxyAdminServiceSettings getSettings() { + public final @Nullable IdentityAwareProxyAdminServiceSettings getSettings() { return settings; } @@ -782,7 +783,8 @@ public final ValidateIapAttributeExpressionResponse validateIapAttributeExpressi * location to group across all locations. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTunnelDestGroupsPagedResponse listTunnelDestGroups(TunnelLocationName parent) { + public final ListTunnelDestGroupsPagedResponse listTunnelDestGroups( + @Nullable TunnelLocationName parent) { ListTunnelDestGroupsRequest request = ListTunnelDestGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -971,7 +973,9 @@ public final ListTunnelDestGroupsPagedResponse listTunnelDestGroups( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TunnelDestGroup createTunnelDestGroup( - TunnelLocationName parent, TunnelDestGroup tunnelDestGroup, String tunnelDestGroupId) { + @Nullable TunnelLocationName parent, + TunnelDestGroup tunnelDestGroup, + String tunnelDestGroupId) { CreateTunnelDestGroupRequest request = CreateTunnelDestGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1110,7 +1114,7 @@ public final TunnelDestGroup createTunnelDestGroup(CreateTunnelDestGroupRequest * `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TunnelDestGroup getTunnelDestGroup(TunnelDestGroupName name) { + public final TunnelDestGroup getTunnelDestGroup(@Nullable TunnelDestGroupName name) { GetTunnelDestGroupRequest request = GetTunnelDestGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1229,7 +1233,7 @@ public final TunnelDestGroup getTunnelDestGroup(GetTunnelDestGroupRequest reques * `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTunnelDestGroup(TunnelDestGroupName name) { + public final void deleteTunnelDestGroup(@Nullable TunnelDestGroupName name) { DeleteTunnelDestGroupRequest request = DeleteTunnelDestGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1486,9 +1490,10 @@ public static class ListTunnelDestGroupsPage ListTunnelDestGroupsPage> { private ListTunnelDestGroupsPage( - PageContext + @Nullable + PageContext context, - ListTunnelDestGroupsResponse response) { + @Nullable ListTunnelDestGroupsResponse response) { super(context, response); } @@ -1498,15 +1503,17 @@ private static ListTunnelDestGroupsPage createEmptyPage() { @Override protected ListTunnelDestGroupsPage createPage( - PageContext + @Nullable + PageContext context, - ListTunnelDestGroupsResponse response) { + @Nullable ListTunnelDestGroupsResponse response) { return new ListTunnelDestGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1522,7 +1529,7 @@ public static class ListTunnelDestGroupsFixedSizeCollection ListTunnelDestGroupsFixedSizeCollection> { private ListTunnelDestGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1532,7 +1539,7 @@ private static ListTunnelDestGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListTunnelDestGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTunnelDestGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceSettings.java index b87b0888cf5f..e23b899a9dfe 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyAdminServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,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); } @@ -249,7 +250,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IdentityAwareProxyAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceClient.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceClient.java index f06fd5f8a962..c35ed5d14ca2 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceClient.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceClient.java @@ -33,6 +33,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. /** @@ -241,7 +242,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IdentityAwareProxyOAuthServiceClient implements BackgroundResource { - private final IdentityAwareProxyOAuthServiceSettings settings; + private final @Nullable IdentityAwareProxyOAuthServiceSettings settings; private final IdentityAwareProxyOAuthServiceStub stub; /** Constructs an instance of IdentityAwareProxyOAuthServiceClient with default settings. */ @@ -286,7 +287,7 @@ protected IdentityAwareProxyOAuthServiceClient(IdentityAwareProxyOAuthServiceStu this.stub = stub; } - public final IdentityAwareProxyOAuthServiceSettings getSettings() { + public final @Nullable IdentityAwareProxyOAuthServiceSettings getSettings() { return settings; } @@ -903,12 +904,13 @@ public static class ListIdentityAwareProxyClientsPage ListIdentityAwareProxyClientsPage> { private ListIdentityAwareProxyClientsPage( - PageContext< + @Nullable + PageContext< ListIdentityAwareProxyClientsRequest, ListIdentityAwareProxyClientsResponse, IdentityAwareProxyClient> context, - ListIdentityAwareProxyClientsResponse response) { + @Nullable ListIdentityAwareProxyClientsResponse response) { super(context, response); } @@ -918,18 +920,20 @@ private static ListIdentityAwareProxyClientsPage createEmptyPage() { @Override protected ListIdentityAwareProxyClientsPage createPage( - PageContext< + @Nullable + PageContext< ListIdentityAwareProxyClientsRequest, ListIdentityAwareProxyClientsResponse, IdentityAwareProxyClient> context, - ListIdentityAwareProxyClientsResponse response) { + @Nullable ListIdentityAwareProxyClientsResponse response) { return new ListIdentityAwareProxyClientsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListIdentityAwareProxyClientsRequest, ListIdentityAwareProxyClientsResponse, IdentityAwareProxyClient> @@ -948,7 +952,7 @@ public static class ListIdentityAwareProxyClientsFixedSizeCollection ListIdentityAwareProxyClientsFixedSizeCollection> { private ListIdentityAwareProxyClientsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -958,7 +962,7 @@ private static ListIdentityAwareProxyClientsFixedSizeCollection createEmptyColle @Override protected ListIdentityAwareProxyClientsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIdentityAwareProxyClientsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceSettings.java index 00c5115ec3cd..0f94d73b46c1 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/IdentityAwareProxyOAuthServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -202,7 +203,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); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IdentityAwareProxyOAuthServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java index eec7bb420d3d..159d30128d0a 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyAdminServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -480,7 +481,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java index 938e4cfb19b4..4d1feadfb235 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/IdentityAwareProxyOAuthServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -375,7 +376,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); } @@ -466,7 +467,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listBrandsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelDestGroupName.java b/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelDestGroupName.java index 90f3c25428b7..9c3b61e75010 100644 --- a/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelDestGroupName.java +++ b/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelDestGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String destGroup) { .toString(); } - public static TunnelDestGroupName parse(String formattedString) { + public static @Nullable TunnelDestGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TunnelDestGroupName> values) { List list = new ArrayList<>(values.size()); for (TunnelDestGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelLocationName.java b/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelLocationName.java index d74e18132164..710db50cf8cf 100644 --- a/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelLocationName.java +++ b/java-iap/proto-google-cloud-iap-v1/src/main/java/com/google/cloud/iap/v1/TunnelLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static TunnelLocationName parse(String formattedString) { + public static @Nullable TunnelLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TunnelLocationName> values) { List list = new ArrayList<>(values.size()); for (TunnelLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java index e287a057bae1..fff4fb0a3972 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSClient.java @@ -38,6 +38,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IDSClient implements BackgroundResource { - private final IDSSettings settings; + private final @Nullable IDSSettings settings; private final IDSStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -249,7 +250,7 @@ protected IDSClient(IDSStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final IDSSettings getSettings() { + public final @Nullable IDSSettings getSettings() { return settings; } @@ -297,7 +298,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent, which owns this collection of endpoints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(LocationName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable LocationName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -463,7 +464,7 @@ public final UnaryCallable listEndp * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -580,7 +581,7 @@ public final UnaryCallable getEndpointCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointAsync( - LocationName parent, Endpoint endpoint, String endpointId) { + @Nullable LocationName parent, Endpoint endpoint, String endpointId) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -744,7 +745,8 @@ public final UnaryCallable createEndpointCalla * @param name Required. The name of the endpoint to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEndpointAsync(EndpointName name) { + public final OperationFuture deleteEndpointAsync( + @Nullable EndpointName name) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEndpointAsync(request); @@ -923,8 +925,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -934,14 +936,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -955,7 +957,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -965,7 +968,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSSettings.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSSettings.java index 567427ab69df..1187c131ef1a 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSSettings.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/IDSSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IDSStubSettings.newBuilder(clientContext)); } diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStub.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStub.java index f9e20532fa7f..6f8fb294df76 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStub.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStub.java @@ -33,6 +33,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class IDSStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java index 7ac5cbf8d294..c42fd7551d22 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/IDSStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -441,7 +442,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEndpointsSettings = PagedCallSettings.newBuilder(LIST_ENDPOINTS_PAGE_STR_FACT); diff --git a/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/EndpointName.java b/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/EndpointName.java index 34dd3dcd8845..6d4bb9b34bc2 100644 --- a/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/EndpointName.java +++ b/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String endpoint) { .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/LocationName.java b/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/LocationName.java index ce0d11051832..4307a32246a8 100644 --- a/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/LocationName.java +++ b/java-ids/proto-google-cloud-ids-v1/src/main/java/com/google/cloud/ids/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java index 2089aca2e9cf..bed2eda4fbb8 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigClient.java @@ -48,6 +48,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. /** @@ -945,7 +946,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigClient implements BackgroundResource { - private final ConfigSettings settings; + private final @Nullable ConfigSettings settings; private final ConfigStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -991,7 +992,7 @@ protected ConfigClient(ConfigStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ConfigSettings getSettings() { + public final @Nullable ConfigSettings getSettings() { return settings; } @@ -1040,7 +1041,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * value is in the format: 'projects/{project_id}/locations/{location}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(LocationName parent) { + public final ListDeploymentsPagedResponse listDeployments(@Nullable LocationName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1209,7 +1210,7 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -1326,7 +1327,7 @@ public final UnaryCallable getDeploymentCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDeploymentAsync( - LocationName parent, Deployment deployment, String deploymentId) { + @Nullable LocationName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1622,7 +1623,7 @@ public final UnaryCallable updateDeploymentC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeploymentAsync( - DeploymentName name) { + @Nullable DeploymentName name) { DeleteDeploymentRequest request = DeleteDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDeploymentAsync(request); @@ -1770,7 +1771,7 @@ public final UnaryCallable deleteDeploymentC * is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRevisionsPagedResponse listRevisions(DeploymentName parent) { + public final ListRevisionsPagedResponse listRevisions(@Nullable DeploymentName parent) { ListRevisionsRequest request = ListRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1937,7 +1938,7 @@ public final UnaryCallable listRevi * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Revision getRevision(RevisionName name) { + public final Revision getRevision(@Nullable RevisionName name) { GetRevisionRequest request = GetRevisionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRevision(request); @@ -2053,7 +2054,7 @@ public final UnaryCallable getRevisionCallable() { * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}/resource/{resource}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Resource getResource(ResourceName name) { + public final Resource getResource(@Nullable ResourceName name) { GetResourceRequest request = GetResourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getResource(request); @@ -2175,7 +2176,7 @@ public final UnaryCallable getResourceCallable() { * 'projects/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revision}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourcesPagedResponse listResources(RevisionName parent) { + public final ListResourcesPagedResponse listResources(@Nullable RevisionName parent) { ListResourcesRequest request = ListResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2474,7 +2475,7 @@ public final Statefile exportRevisionStatefile(ExportRevisionStatefileRequest re * state file previously locked the Deployment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Statefile importStatefile(DeploymentName parent, long lockId) { + public final Statefile importStatefile(@Nullable DeploymentName parent, long lockId) { ImportStatefileRequest request = ImportStatefileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2598,7 +2599,7 @@ public final UnaryCallable importStatefileCal * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStatefile(DeploymentName name) { + public final void deleteStatefile(@Nullable DeploymentName name) { DeleteStatefileRequest request = DeleteStatefileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteStatefile(request); @@ -2711,7 +2712,7 @@ public final UnaryCallable deleteStatefileCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture lockDeploymentAsync( - DeploymentName name) { + @Nullable DeploymentName name) { LockDeploymentRequest request = LockDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return lockDeploymentAsync(request); @@ -2854,7 +2855,7 @@ public final UnaryCallable lockDeploymentCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture unlockDeploymentAsync( - DeploymentName name, long lockId) { + @Nullable DeploymentName name, long lockId) { UnlockDeploymentRequest request = UnlockDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3004,7 +3005,7 @@ public final UnaryCallable unlockDeploymentC * 'projects/{project_id}/locations/{location}/deployments/{deployment}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LockInfo exportLockInfo(DeploymentName name) { + public final LockInfo exportLockInfo(@Nullable DeploymentName name) { ExportLockInfoRequest request = ExportLockInfoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return exportLockInfo(request); @@ -3117,7 +3118,7 @@ public final UnaryCallable exportLockInfoCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPreviewAsync( - LocationName parent, Preview preview) { + @Nullable LocationName parent, Preview preview) { CreatePreviewRequest request = CreatePreviewRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3273,7 +3274,7 @@ public final UnaryCallable createPreviewCallabl * 'projects/{project_id}/locations/{location}/previews/{preview}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Preview getPreview(PreviewName name) { + public final Preview getPreview(@Nullable PreviewName name) { GetPreviewRequest request = GetPreviewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPreview(request); @@ -3385,7 +3386,7 @@ public final UnaryCallable getPreviewCallable() { * is in the format: 'projects/{project_id}/locations/{location}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPreviewsPagedResponse listPreviews(LocationName parent) { + public final ListPreviewsPagedResponse listPreviews(@Nullable LocationName parent) { ListPreviewsRequest request = ListPreviewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3552,7 +3553,8 @@ public final UnaryCallable listPrevie * 'projects/{project_id}/locations/{location}/previews/{preview}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePreviewAsync(PreviewName name) { + public final OperationFuture deletePreviewAsync( + @Nullable PreviewName name) { DeletePreviewRequest request = DeletePreviewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deletePreviewAsync(request); @@ -3755,7 +3757,8 @@ public final ExportPreviewResultResponse exportPreviewResult(ExportPreviewResult * parent value is in the format: 'projects/{project_id}/locations/{location}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTerraformVersionsPagedResponse listTerraformVersions(LocationName parent) { + public final ListTerraformVersionsPagedResponse listTerraformVersions( + @Nullable LocationName parent) { ListTerraformVersionsRequest request = ListTerraformVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3932,7 +3935,7 @@ public final ListTerraformVersionsPagedResponse listTerraformVersions( * 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TerraformVersion getTerraformVersion(TerraformVersionName name) { + public final TerraformVersion getTerraformVersion(@Nullable TerraformVersionName name) { GetTerraformVersionRequest request = GetTerraformVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4054,7 +4057,7 @@ public final TerraformVersion getTerraformVersion(GetTerraformVersionRequest req * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceChangesPagedResponse listResourceChanges(PreviewName parent) { + public final ListResourceChangesPagedResponse listResourceChanges(@Nullable PreviewName parent) { ListResourceChangesRequest request = ListResourceChangesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4227,7 +4230,7 @@ public final ListResourceChangesPagedResponse listResourceChanges( * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceChange getResourceChange(ResourceChangeName name) { + public final ResourceChange getResourceChange(@Nullable ResourceChangeName name) { GetResourceChangeRequest request = GetResourceChangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4348,7 +4351,7 @@ public final UnaryCallable getResource * value is in the format: 'projects/{project_id}/locations/{location}/previews/{preview}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceDriftsPagedResponse listResourceDrifts(PreviewName parent) { + public final ListResourceDriftsPagedResponse listResourceDrifts(@Nullable PreviewName parent) { ListResourceDriftsRequest request = ListResourceDriftsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4521,7 +4524,7 @@ public final ListResourceDriftsPagedResponse listResourceDrifts( * 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceDrift getResourceDrift(ResourceDriftName name) { + public final ResourceDrift getResourceDrift(@Nullable ResourceDriftName name) { GetResourceDriftRequest request = GetResourceDriftRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getResourceDrift(request); @@ -4637,7 +4640,7 @@ public final UnaryCallable getResourceDr * 'projects/{project_id}/locations/{location}/AutoMigrationConfig'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutoMigrationConfig getAutoMigrationConfig(AutoMigrationConfigName name) { + public final AutoMigrationConfig getAutoMigrationConfig(@Nullable AutoMigrationConfigName name) { GetAutoMigrationConfigRequest request = GetAutoMigrationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4880,7 +4883,7 @@ public final AutoMigrationConfig getAutoMigrationConfig(GetAutoMigrationConfigRe * 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeploymentGroup getDeploymentGroup(DeploymentGroupName name) { + public final DeploymentGroup getDeploymentGroup(@Nullable DeploymentGroupName name) { GetDeploymentGroupRequest request = GetDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5007,7 +5010,7 @@ public final DeploymentGroup getDeploymentGroup(GetDeploymentGroupRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDeploymentGroupAsync( - LocationName parent, DeploymentGroup deploymentGroup, String deploymentGroupId) { + @Nullable LocationName parent, DeploymentGroup deploymentGroup, String deploymentGroupId) { CreateDeploymentGroupRequest request = CreateDeploymentGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5313,7 +5316,7 @@ public final OperationFuture updateDeploymen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDeploymentGroupAsync( - DeploymentGroupName name) { + @Nullable DeploymentGroupName name) { DeleteDeploymentGroupRequest request = DeleteDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5474,7 +5477,8 @@ public final OperationFuture deleteDeploymen * 'projects/{project_id}/locations/{location}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentGroupsPagedResponse listDeploymentGroups(LocationName parent) { + public final ListDeploymentGroupsPagedResponse listDeploymentGroups( + @Nullable LocationName parent) { ListDeploymentGroupsRequest request = ListDeploymentGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5659,7 +5663,7 @@ public final ListDeploymentGroupsPagedResponse listDeploymentGroups( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture provisionDeploymentGroupAsync( - DeploymentGroupName name) { + @Nullable DeploymentGroupName name) { ProvisionDeploymentGroupRequest request = ProvisionDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5873,7 +5877,7 @@ public final OperationFuture provisionDeploy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deprovisionDeploymentGroupAsync( - DeploymentGroupName name) { + @Nullable DeploymentGroupName name) { DeprovisionDeploymentGroupRequest request = DeprovisionDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6077,7 +6081,7 @@ public final OperationFuture deprovisionDepl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeploymentGroupRevision getDeploymentGroupRevision( - DeploymentGroupRevisionName name) { + @Nullable DeploymentGroupRevisionName name) { GetDeploymentGroupRevisionRequest request = GetDeploymentGroupRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6208,7 +6212,7 @@ public final DeploymentGroupRevision getDeploymentGroupRevision( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDeploymentGroupRevisionsPagedResponse listDeploymentGroupRevisions( - DeploymentGroupName parent) { + @Nullable DeploymentGroupName parent) { ListDeploymentGroupRevisionsRequest request = ListDeploymentGroupRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6811,8 +6815,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -6822,14 +6826,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6844,7 +6848,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6854,7 +6858,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -6888,8 +6892,8 @@ public static class ListRevisionsPage ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage> { private ListRevisionsPage( - PageContext context, - ListRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRevisionsResponse response) { super(context, response); } @@ -6899,14 +6903,14 @@ private static ListRevisionsPage createEmptyPage() { @Override protected ListRevisionsPage createPage( - PageContext context, - ListRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRevisionsResponse response) { return new ListRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6920,7 +6924,8 @@ public static class ListRevisionsFixedSizeCollection ListRevisionsPage, ListRevisionsFixedSizeCollection> { - private ListRevisionsFixedSizeCollection(List pages, int collectionSize) { + private ListRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6930,7 +6935,7 @@ private static ListRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6964,8 +6969,8 @@ public static class ListResourcesPage ListResourcesRequest, ListResourcesResponse, Resource, ListResourcesPage> { private ListResourcesPage( - PageContext context, - ListResourcesResponse response) { + @Nullable PageContext context, + @Nullable ListResourcesResponse response) { super(context, response); } @@ -6975,14 +6980,14 @@ private static ListResourcesPage createEmptyPage() { @Override protected ListResourcesPage createPage( - PageContext context, - ListResourcesResponse response) { + @Nullable PageContext context, + @Nullable ListResourcesResponse response) { return new ListResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6996,7 +7001,8 @@ public static class ListResourcesFixedSizeCollection ListResourcesPage, ListResourcesFixedSizeCollection> { - private ListResourcesFixedSizeCollection(List pages, int collectionSize) { + private ListResourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7006,7 +7012,7 @@ private static ListResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourcesFixedSizeCollection(pages, collectionSize); } } @@ -7039,8 +7045,8 @@ public static class ListPreviewsPage extends AbstractPage { private ListPreviewsPage( - PageContext context, - ListPreviewsResponse response) { + @Nullable PageContext context, + @Nullable ListPreviewsResponse response) { super(context, response); } @@ -7050,14 +7056,14 @@ private static ListPreviewsPage createEmptyPage() { @Override protected ListPreviewsPage createPage( - PageContext context, - ListPreviewsResponse response) { + @Nullable PageContext context, + @Nullable ListPreviewsResponse response) { return new ListPreviewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7071,7 +7077,8 @@ public static class ListPreviewsFixedSizeCollection ListPreviewsPage, ListPreviewsFixedSizeCollection> { - private ListPreviewsFixedSizeCollection(List pages, int collectionSize) { + private ListPreviewsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7081,7 +7088,7 @@ private static ListPreviewsFixedSizeCollection createEmptyCollection() { @Override protected ListPreviewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPreviewsFixedSizeCollection(pages, collectionSize); } } @@ -7119,9 +7126,11 @@ public static class ListTerraformVersionsPage ListTerraformVersionsPage> { private ListTerraformVersionsPage( - PageContext + @Nullable + PageContext< + ListTerraformVersionsRequest, ListTerraformVersionsResponse, TerraformVersion> context, - ListTerraformVersionsResponse response) { + @Nullable ListTerraformVersionsResponse response) { super(context, response); } @@ -7131,15 +7140,19 @@ private static ListTerraformVersionsPage createEmptyPage() { @Override protected ListTerraformVersionsPage createPage( - PageContext + @Nullable + PageContext< + ListTerraformVersionsRequest, ListTerraformVersionsResponse, TerraformVersion> context, - ListTerraformVersionsResponse response) { + @Nullable ListTerraformVersionsResponse response) { return new ListTerraformVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTerraformVersionsRequest, ListTerraformVersionsResponse, TerraformVersion> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7155,7 +7168,7 @@ public static class ListTerraformVersionsFixedSizeCollection ListTerraformVersionsFixedSizeCollection> { private ListTerraformVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7165,7 +7178,7 @@ private static ListTerraformVersionsFixedSizeCollection createEmptyCollection() @Override protected ListTerraformVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTerraformVersionsFixedSizeCollection(pages, collectionSize); } } @@ -7203,9 +7216,10 @@ public static class ListResourceChangesPage ListResourceChangesPage> { private ListResourceChangesPage( - PageContext + @Nullable + PageContext context, - ListResourceChangesResponse response) { + @Nullable ListResourceChangesResponse response) { super(context, response); } @@ -7215,15 +7229,17 @@ private static ListResourceChangesPage createEmptyPage() { @Override protected ListResourceChangesPage createPage( - PageContext + @Nullable + PageContext context, - ListResourceChangesResponse response) { + @Nullable ListResourceChangesResponse response) { return new ListResourceChangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7239,7 +7255,7 @@ public static class ListResourceChangesFixedSizeCollection ListResourceChangesFixedSizeCollection> { private ListResourceChangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7249,7 +7265,7 @@ private static ListResourceChangesFixedSizeCollection createEmptyCollection() { @Override protected ListResourceChangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceChangesFixedSizeCollection(pages, collectionSize); } } @@ -7286,8 +7302,9 @@ public static class ListResourceDriftsPage ListResourceDriftsPage> { private ListResourceDriftsPage( - PageContext context, - ListResourceDriftsResponse response) { + @Nullable PageContext + context, + @Nullable ListResourceDriftsResponse response) { super(context, response); } @@ -7297,14 +7314,16 @@ private static ListResourceDriftsPage createEmptyPage() { @Override protected ListResourceDriftsPage createPage( - PageContext context, - ListResourceDriftsResponse response) { + @Nullable PageContext + context, + @Nullable ListResourceDriftsResponse response) { return new ListResourceDriftsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7319,7 +7338,7 @@ public static class ListResourceDriftsFixedSizeCollection ListResourceDriftsFixedSizeCollection> { private ListResourceDriftsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7329,7 +7348,7 @@ private static ListResourceDriftsFixedSizeCollection createEmptyCollection() { @Override protected ListResourceDriftsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceDriftsFixedSizeCollection(pages, collectionSize); } } @@ -7367,9 +7386,10 @@ public static class ListDeploymentGroupsPage ListDeploymentGroupsPage> { private ListDeploymentGroupsPage( - PageContext + @Nullable + PageContext context, - ListDeploymentGroupsResponse response) { + @Nullable ListDeploymentGroupsResponse response) { super(context, response); } @@ -7379,15 +7399,17 @@ private static ListDeploymentGroupsPage createEmptyPage() { @Override protected ListDeploymentGroupsPage createPage( - PageContext + @Nullable + PageContext context, - ListDeploymentGroupsResponse response) { + @Nullable ListDeploymentGroupsResponse response) { return new ListDeploymentGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7403,7 +7425,7 @@ public static class ListDeploymentGroupsFixedSizeCollection ListDeploymentGroupsFixedSizeCollection> { private ListDeploymentGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7413,7 +7435,7 @@ private static ListDeploymentGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentGroupsFixedSizeCollection(pages, collectionSize); } } @@ -7455,12 +7477,13 @@ public static class ListDeploymentGroupRevisionsPage ListDeploymentGroupRevisionsPage> { private ListDeploymentGroupRevisionsPage( - PageContext< + @Nullable + PageContext< ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse, DeploymentGroupRevision> context, - ListDeploymentGroupRevisionsResponse response) { + @Nullable ListDeploymentGroupRevisionsResponse response) { super(context, response); } @@ -7470,18 +7493,20 @@ private static ListDeploymentGroupRevisionsPage createEmptyPage() { @Override protected ListDeploymentGroupRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse, DeploymentGroupRevision> context, - ListDeploymentGroupRevisionsResponse response) { + @Nullable ListDeploymentGroupRevisionsResponse response) { return new ListDeploymentGroupRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDeploymentGroupRevisionsRequest, ListDeploymentGroupRevisionsResponse, DeploymentGroupRevision> @@ -7500,7 +7525,7 @@ public static class ListDeploymentGroupRevisionsFixedSizeCollection ListDeploymentGroupRevisionsFixedSizeCollection> { private ListDeploymentGroupRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7510,7 +7535,7 @@ private static ListDeploymentGroupRevisionsFixedSizeCollection createEmptyCollec @Override protected ListDeploymentGroupRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentGroupRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -7544,8 +7569,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7555,14 +7580,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7576,7 +7601,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7586,7 +7612,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java index 4a08793f8298..2caa3efeb620 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/ConfigSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -521,7 +522,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); } @@ -541,7 +542,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigStubSettings.newBuilder(clientContext)); } diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java index 03d1493a1ba7..7b57dde306bc 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStub.java @@ -105,6 +105,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -116,11 +117,12 @@ @Generated("by gapic-generator-java") public abstract class ConfigStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java index 17080077dbb6..e92b34ca5ca2 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/ConfigStubSettings.java @@ -139,6 +139,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1348,7 +1349,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); } @@ -1605,7 +1606,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDeploymentsSettings = PagedCallSettings.newBuilder(LIST_DEPLOYMENTS_PAGE_STR_FACT); diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/AutoMigrationConfigName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/AutoMigrationConfigName.java index 211c8fb93431..4c007439a38f 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/AutoMigrationConfigName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/AutoMigrationConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static AutoMigrationConfigName parse(String formattedString) { + public static @Nullable AutoMigrationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutoMigrationConfigName> values) { List list = new ArrayList<>(values.size()); for (AutoMigrationConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java index 062b206e5ddc..d3c12ac724cc 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String deploymentGr .toString(); } - public static DeploymentGroupName parse(String formattedString) { + public static @Nullable DeploymentGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentGroupName> values) { List list = new ArrayList<>(values.size()); for (DeploymentGroupName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java index 3e7e9724f05f..b5f903b0d570 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentGroupRevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DeploymentGroupRevisionName parse(String formattedString) { + public static @Nullable DeploymentGroupRevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentGroupRevisionName> values) { List list = new ArrayList<>(values.size()); for (DeploymentGroupRevisionName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentName.java index 74c65ad870ae..e2ce2f0875a0 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String deployment) .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/LocationName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/LocationName.java index 950c67a02942..f03ac72029b8 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/LocationName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewName.java index 98b9c9da7e4c..4f2f7c576209 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/PreviewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String preview) { .toString(); } - public static PreviewName parse(String formattedString) { + public static @Nullable PreviewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PreviewName> values) { List list = new ArrayList<>(values.size()); for (PreviewName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java index 40e33a0d92a3..536794f42456 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceChangeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ResourceChangeName parse(String formattedString) { + public static @Nullable ResourceChangeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceChangeName> values) { List list = new ArrayList<>(values.size()); for (ResourceChangeName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java index e223ac74a511..f0c9ada27842 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceDriftName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ResourceDriftName parse(String formattedString) { + public static @Nullable ResourceDriftName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceDriftName> values) { List list = new ArrayList<>(values.size()); for (ResourceDriftName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceName.java index b86d2dc17d0c..f209fed79434 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/ResourceName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String format( .toString(); } - public static ResourceName parse(String formattedString) { + public static @Nullable ResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceName> values) { List list = new ArrayList<>(values.size()); for (ResourceName value : values) { if (value == null) { @@ -195,7 +196,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionName.java index ce54b10367b5..11d31c728110 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/RevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String deployment, .toString(); } - public static RevisionName parse(String formattedString) { + public static @Nullable RevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RevisionName> values) { List list = new ArrayList<>(values.size()); for (RevisionName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVersionName.java b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVersionName.java index 6c7abd8aa565..44dbbaeb3cb2 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVersionName.java +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/src/main/java/com/google/cloud/config/v1/TerraformVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String terraformVer .toString(); } - public static TerraformVersionName parse(String formattedString) { + public static @Nullable TerraformVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TerraformVersionName> values) { List list = new ArrayList<>(values.size()); for (TerraformVersionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index da6b4141ed89..a9242d72c36a 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java @@ -41,6 +41,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. /** @@ -493,7 +494,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeviceManagerClient implements BackgroundResource { - private final DeviceManagerSettings settings; + private final @Nullable DeviceManagerSettings settings; private final DeviceManagerStub stub; /** Constructs an instance of DeviceManagerClient with default settings. */ @@ -533,7 +534,7 @@ protected DeviceManagerClient(DeviceManagerStub stub) { this.stub = stub; } - public final DeviceManagerSettings getSettings() { + public final @Nullable DeviceManagerSettings getSettings() { return settings; } @@ -567,7 +568,7 @@ public DeviceManagerStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeviceRegistry createDeviceRegistry( - LocationName parent, DeviceRegistry deviceRegistry) { + @Nullable LocationName parent, DeviceRegistry deviceRegistry) { CreateDeviceRegistryRequest request = CreateDeviceRegistryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -691,7 +692,7 @@ public final DeviceRegistry createDeviceRegistry(CreateDeviceRegistryRequest req * `projects/example-project/locations/us-central1/registries/my-registry`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceRegistry getDeviceRegistry(RegistryName name) { + public final DeviceRegistry getDeviceRegistry(@Nullable RegistryName name) { GetDeviceRegistryRequest request = GetDeviceRegistryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -902,7 +903,7 @@ public final DeviceRegistry updateDeviceRegistry(UpdateDeviceRegistryRequest req * `projects/example-project/locations/us-central1/registries/my-registry`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeviceRegistry(RegistryName name) { + public final void deleteDeviceRegistry(@Nullable RegistryName name) { DeleteDeviceRegistryRequest request = DeleteDeviceRegistryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1018,7 +1019,8 @@ public final UnaryCallable deleteDeviceRegis * `projects/example-project/locations/us-central1`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceRegistriesPagedResponse listDeviceRegistries(LocationName parent) { + public final ListDeviceRegistriesPagedResponse listDeviceRegistries( + @Nullable LocationName parent) { ListDeviceRegistriesRequest request = ListDeviceRegistriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1188,7 +1190,7 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries( * server generates `name` from the device registry `id` and the `parent` field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Device createDevice(RegistryName parent, Device device) { + public final Device createDevice(@Nullable RegistryName parent, Device device) { CreateDeviceRequest request = CreateDeviceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1308,7 +1310,7 @@ public final UnaryCallable createDeviceCallable() { * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Device getDevice(DeviceName name) { + public final Device getDevice(@Nullable DeviceName name) { GetDeviceRequest request = GetDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDevice(request); @@ -1515,7 +1517,7 @@ public final UnaryCallable updateDeviceCallable() { * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDevice(DeviceName name) { + public final void deleteDevice(@Nullable DeviceName name) { DeleteDeviceRequest request = DeleteDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDevice(request); @@ -1630,7 +1632,7 @@ public final UnaryCallable deleteDeviceCallable() { * `projects/my-project/locations/us-central1/registries/my-registry`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDevicesPagedResponse listDevices(RegistryName parent) { + public final ListDevicesPagedResponse listDevices(@Nullable RegistryName parent) { ListDevicesRequest request = ListDevicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1807,7 +1809,8 @@ public final UnaryCallable listDevicesC * @param binaryData Required. The configuration data for the device. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeviceConfig modifyCloudToDeviceConfig(DeviceName name, ByteString binaryData) { + public final DeviceConfig modifyCloudToDeviceConfig( + @Nullable DeviceName name, ByteString binaryData) { ModifyCloudToDeviceConfigRequest request = ModifyCloudToDeviceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1941,7 +1944,8 @@ public final DeviceConfig modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigReq * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(DeviceName name) { + public final ListDeviceConfigVersionsResponse listDeviceConfigVersions( + @Nullable DeviceName name) { ListDeviceConfigVersionsRequest request = ListDeviceConfigVersionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2068,7 +2072,7 @@ public final ListDeviceConfigVersionsResponse listDeviceConfigVersions( * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeviceStatesResponse listDeviceStates(DeviceName name) { + public final ListDeviceStatesResponse listDeviceStates(@Nullable DeviceName name) { ListDeviceStatesRequest request = ListDeviceStatesRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listDeviceStates(request); @@ -2189,7 +2193,7 @@ public final ListDeviceStatesResponse listDeviceStates(ListDeviceStatesRequest r * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2313,7 +2317,7 @@ public final UnaryCallable setIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2438,7 +2442,7 @@ public final UnaryCallable getIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2583,7 +2587,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SendCommandToDeviceResponse sendCommandToDevice( - DeviceName name, ByteString binaryData) { + @Nullable DeviceName name, ByteString binaryData) { SendCommandToDeviceRequest request = SendCommandToDeviceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2675,7 +2679,7 @@ public final SendCommandToDeviceResponse sendCommandToDevice(String name, ByteSt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SendCommandToDeviceResponse sendCommandToDevice( - DeviceName name, ByteString binaryData, String subfolder) { + @Nullable DeviceName name, ByteString binaryData, String subfolder) { SendCommandToDeviceRequest request = SendCommandToDeviceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2848,7 +2852,7 @@ public final SendCommandToDeviceResponse sendCommandToDevice(SendCommandToDevice * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BindDeviceToGatewayResponse bindDeviceToGateway( - RegistryName parent, String gatewayId, String deviceId) { + @Nullable RegistryName parent, String gatewayId, String deviceId) { BindDeviceToGatewayRequest request = BindDeviceToGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2989,7 +2993,7 @@ public final BindDeviceToGatewayResponse bindDeviceToGateway(BindDeviceToGateway * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UnbindDeviceFromGatewayResponse unbindDeviceFromGateway( - RegistryName parent, String gatewayId, String deviceId) { + @Nullable RegistryName parent, String gatewayId, String deviceId) { UnbindDeviceFromGatewayRequest request = UnbindDeviceFromGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3165,9 +3169,10 @@ public static class ListDeviceRegistriesPage ListDeviceRegistriesPage> { private ListDeviceRegistriesPage( - PageContext + @Nullable + PageContext context, - ListDeviceRegistriesResponse response) { + @Nullable ListDeviceRegistriesResponse response) { super(context, response); } @@ -3177,15 +3182,17 @@ private static ListDeviceRegistriesPage createEmptyPage() { @Override protected ListDeviceRegistriesPage createPage( - PageContext + @Nullable + PageContext context, - ListDeviceRegistriesResponse response) { + @Nullable ListDeviceRegistriesResponse response) { return new ListDeviceRegistriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3201,7 +3208,7 @@ public static class ListDeviceRegistriesFixedSizeCollection ListDeviceRegistriesFixedSizeCollection> { private ListDeviceRegistriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3211,7 +3218,7 @@ private static ListDeviceRegistriesFixedSizeCollection createEmptyCollection() { @Override protected ListDeviceRegistriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeviceRegistriesFixedSizeCollection(pages, collectionSize); } } @@ -3242,8 +3249,8 @@ public static class ListDevicesPage extends AbstractPage { private ListDevicesPage( - PageContext context, - ListDevicesResponse response) { + @Nullable PageContext context, + @Nullable ListDevicesResponse response) { super(context, response); } @@ -3253,14 +3260,14 @@ private static ListDevicesPage createEmptyPage() { @Override protected ListDevicesPage createPage( - PageContext context, - ListDevicesResponse response) { + @Nullable PageContext context, + @Nullable ListDevicesResponse response) { return new ListDevicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3274,7 +3281,8 @@ public static class ListDevicesFixedSizeCollection ListDevicesPage, ListDevicesFixedSizeCollection> { - private ListDevicesFixedSizeCollection(List pages, int collectionSize) { + private ListDevicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3284,7 +3292,7 @@ private static ListDevicesFixedSizeCollection createEmptyCollection() { @Override protected ListDevicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDevicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java index 676659a03704..7e3aa17dde5b 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -261,7 +262,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); } @@ -281,7 +282,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeviceManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java index b1f80b7f8c99..301d9e10536e 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -504,7 +505,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); } @@ -652,7 +653,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDeviceRegistrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java index 88926c5b6ed9..18c9cb91de32 100644 --- a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java +++ b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String registry, St .toString(); } - public static DeviceName parse(String formattedString) { + public static @Nullable DeviceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeviceName> values) { List list = new ArrayList<>(values.size()); for (DeviceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java index 14f06c48b716..e2076ea40d98 100644 --- a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java +++ b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java index 4a5f6ff74cbc..905e7e7ad8c8 100644 --- a/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java +++ b/java-iot/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String registry) { .toString(); } - public static RegistryName parse(String formattedString) { + public static @Nullable RegistryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegistryName> values) { List list = new ArrayList<>(values.size()); for (RegistryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceClient.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceClient.java index d4761ce744ab..b4633e44d7d9 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceClient.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AggregateProductStatusesServiceClient implements BackgroundResource { - private final AggregateProductStatusesServiceSettings settings; + private final @Nullable AggregateProductStatusesServiceSettings settings; private final AggregateProductStatusesServiceStub stub; /** Constructs an instance of AggregateProductStatusesServiceClient with default settings. */ @@ -193,7 +194,7 @@ protected AggregateProductStatusesServiceClient(AggregateProductStatusesServiceS this.stub = stub; } - public final AggregateProductStatusesServiceSettings getSettings() { + public final @Nullable AggregateProductStatusesServiceSettings getSettings() { return settings; } @@ -230,7 +231,7 @@ public AggregateProductStatusesServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAggregateProductStatusesPagedResponse listAggregateProductStatuses( - AccountName parent) { + @Nullable AccountName parent) { ListAggregateProductStatusesRequest request = ListAggregateProductStatusesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -467,12 +468,13 @@ public static class ListAggregateProductStatusesPage ListAggregateProductStatusesPage> { private ListAggregateProductStatusesPage( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> context, - ListAggregateProductStatusesResponse response) { + @Nullable ListAggregateProductStatusesResponse response) { super(context, response); } @@ -482,18 +484,20 @@ private static ListAggregateProductStatusesPage createEmptyPage() { @Override protected ListAggregateProductStatusesPage createPage( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> context, - ListAggregateProductStatusesResponse response) { + @Nullable ListAggregateProductStatusesResponse response) { return new ListAggregateProductStatusesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> @@ -512,7 +516,7 @@ public static class ListAggregateProductStatusesFixedSizeCollection ListAggregateProductStatusesFixedSizeCollection> { private ListAggregateProductStatusesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -522,7 +526,7 @@ private static ListAggregateProductStatusesFixedSizeCollection createEmptyCollec @Override protected ListAggregateProductStatusesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAggregateProductStatusesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceSettings.java index 908a8a1aa8cc..65213fa1a610 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusesServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AggregateProductStatusesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceClient.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceClient.java index cad9ccdb6a59..16442b24d36b 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceClient.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceClient.java @@ -24,6 +24,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. /** @@ -176,7 +177,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IssueResolutionServiceClient implements BackgroundResource { - private final IssueResolutionServiceSettings settings; + private final @Nullable IssueResolutionServiceSettings settings; private final IssueResolutionServiceStub stub; /** Constructs an instance of IssueResolutionServiceClient with default settings. */ @@ -217,7 +218,7 @@ protected IssueResolutionServiceClient(IssueResolutionServiceStub stub) { this.stub = stub; } - public final IssueResolutionServiceSettings getSettings() { + public final @Nullable IssueResolutionServiceSettings getSettings() { return settings; } @@ -249,7 +250,7 @@ public IssueResolutionServiceStub getStub() { * @param name Required. The account to fetch issues for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RenderAccountIssuesResponse renderAccountIssues(AccountName name) { + public final RenderAccountIssuesResponse renderAccountIssues(@Nullable AccountName name) { RenderAccountIssuesRequest request = RenderAccountIssuesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -382,7 +383,7 @@ public final RenderAccountIssuesResponse renderAccountIssues(RenderAccountIssues * `accounts/{account}/products/{product}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RenderProductIssuesResponse renderProductIssues(ProductName name) { + public final RenderProductIssuesResponse renderProductIssues(@Nullable ProductName name) { RenderProductIssuesRequest request = RenderProductIssuesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -522,7 +523,7 @@ public final RenderProductIssuesResponse renderProductIssues(RenderProductIssues * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TriggerActionResponse triggerAction(AccountName name) { + public final TriggerActionResponse triggerAction(@Nullable AccountName name) { TriggerActionRequest request = TriggerActionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return triggerAction(request); diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceSettings.java index 09ce1dee5b3b..36503682c84e 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/IssueResolutionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -161,7 +162,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); } @@ -182,7 +183,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IssueResolutionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/AggregateProductStatusesServiceStubSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/AggregateProductStatusesServiceStubSettings.java index f5ae8f1770e7..239f648fde7a 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/AggregateProductStatusesServiceStubSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/AggregateProductStatusesServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -314,7 +315,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); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAggregateProductStatusesSettings = diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/IssueResolutionServiceStubSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/IssueResolutionServiceStubSettings.java index 3b059e27828e..4a387bf59372 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/IssueResolutionServiceStubSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/IssueResolutionServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,7 +236,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); } @@ -306,7 +307,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); renderAccountIssuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceClient.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceClient.java index df67a1c9d632..d5e34edf0c13 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceClient.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceClient.java @@ -33,6 +33,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. /** @@ -150,7 +151,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AggregateProductStatusesServiceClient implements BackgroundResource { - private final AggregateProductStatusesServiceSettings settings; + private final @Nullable AggregateProductStatusesServiceSettings settings; private final AggregateProductStatusesServiceStub stub; /** Constructs an instance of AggregateProductStatusesServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected AggregateProductStatusesServiceClient(AggregateProductStatusesServiceS this.stub = stub; } - public final AggregateProductStatusesServiceSettings getSettings() { + public final @Nullable AggregateProductStatusesServiceSettings getSettings() { return settings; } @@ -232,7 +233,7 @@ public AggregateProductStatusesServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAggregateProductStatusesPagedResponse listAggregateProductStatuses( - AccountName parent) { + @Nullable AccountName parent) { ListAggregateProductStatusesRequest request = ListAggregateProductStatusesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -469,12 +470,13 @@ public static class ListAggregateProductStatusesPage ListAggregateProductStatusesPage> { private ListAggregateProductStatusesPage( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> context, - ListAggregateProductStatusesResponse response) { + @Nullable ListAggregateProductStatusesResponse response) { super(context, response); } @@ -484,18 +486,20 @@ private static ListAggregateProductStatusesPage createEmptyPage() { @Override protected ListAggregateProductStatusesPage createPage( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> context, - ListAggregateProductStatusesResponse response) { + @Nullable ListAggregateProductStatusesResponse response) { return new ListAggregateProductStatusesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAggregateProductStatusesRequest, ListAggregateProductStatusesResponse, AggregateProductStatus> @@ -514,7 +518,7 @@ public static class ListAggregateProductStatusesFixedSizeCollection ListAggregateProductStatusesFixedSizeCollection> { private ListAggregateProductStatusesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -524,7 +528,7 @@ private static ListAggregateProductStatusesFixedSizeCollection createEmptyCollec @Override protected ListAggregateProductStatusesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAggregateProductStatusesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceSettings.java index 4a1b88d176c4..ce7dbce8d1ed 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusesServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AggregateProductStatusesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceClient.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceClient.java index bef636ca966c..7f15440c006e 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceClient.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceClient.java @@ -25,6 +25,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. /** @@ -178,7 +179,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IssueResolutionServiceClient implements BackgroundResource { - private final IssueResolutionServiceSettings settings; + private final @Nullable IssueResolutionServiceSettings settings; private final IssueResolutionServiceStub stub; /** Constructs an instance of IssueResolutionServiceClient with default settings. */ @@ -219,7 +220,7 @@ protected IssueResolutionServiceClient(IssueResolutionServiceStub stub) { this.stub = stub; } - public final IssueResolutionServiceSettings getSettings() { + public final @Nullable IssueResolutionServiceSettings getSettings() { return settings; } @@ -251,7 +252,7 @@ public IssueResolutionServiceStub getStub() { * @param name Required. The account to fetch issues for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RenderAccountIssuesResponse renderAccountIssues(AccountName name) { + public final RenderAccountIssuesResponse renderAccountIssues(@Nullable AccountName name) { RenderAccountIssuesRequest request = RenderAccountIssuesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -384,7 +385,7 @@ public final RenderAccountIssuesResponse renderAccountIssues(RenderAccountIssues * `accounts/{account}/products/{product}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RenderProductIssuesResponse renderProductIssues(ProductName name) { + public final RenderProductIssuesResponse renderProductIssues(@Nullable ProductName name) { RenderProductIssuesRequest request = RenderProductIssuesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -524,7 +525,7 @@ public final RenderProductIssuesResponse renderProductIssues(RenderProductIssues * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TriggerActionResponse triggerAction(AccountName name) { + public final TriggerActionResponse triggerAction(@Nullable AccountName name) { TriggerActionRequest request = TriggerActionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return triggerAction(request); diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceSettings.java index cb7753a16bdd..35e035745971 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/IssueResolutionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IssueResolutionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/AggregateProductStatusesServiceStubSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/AggregateProductStatusesServiceStubSettings.java index 3309fe04dc96..173169179605 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/AggregateProductStatusesServiceStubSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/AggregateProductStatusesServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -315,7 +316,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); } @@ -385,7 +386,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAggregateProductStatusesSettings = diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/IssueResolutionServiceStubSettings.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/IssueResolutionServiceStubSettings.java index 3db5c45496f2..63253b210a54 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/IssueResolutionServiceStubSettings.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/IssueResolutionServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); renderAccountIssuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AccountName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AccountName.java index 2a729ec0e8a1..6bf437ff8da6 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AccountName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusName.java index 5c3c7b22c57f..6912ae60e4e2 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/AggregateProductStatusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String account, String aggregateProductStatus) { .toString(); } - public static AggregateProductStatusName parse(String formattedString) { + public static @Nullable AggregateProductStatusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AggregateProductStatusName> values) { List list = new ArrayList<>(values.size()); for (AggregateProductStatusName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/ProductName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/ProductName.java index 61d9f9076cda..7a416419af26 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/ProductName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/src/main/java/com/google/shopping/merchant/issueresolution/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AccountName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AccountName.java index 1ca1ef09aba1..38e4612c9fa8 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AccountName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusName.java index 1495f88f4bf9..86c1228f25b6 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/AggregateProductStatusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String account, String aggregateProductStatus) { .toString(); } - public static AggregateProductStatusName parse(String formattedString) { + public static @Nullable AggregateProductStatusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AggregateProductStatusName> values) { List list = new ArrayList<>(values.size()); for (AggregateProductStatusName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/ProductName.java b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/ProductName.java index 7ded21187f7b..81a65686a850 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/ProductName.java +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceClient.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceClient.java index 8f716d4e8e6f..a3a70f677ea4 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceClient.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceClient.java @@ -24,6 +24,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. /** @@ -139,7 +140,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrderTrackingSignalsServiceClient implements BackgroundResource { - private final OrderTrackingSignalsServiceSettings settings; + private final @Nullable OrderTrackingSignalsServiceSettings settings; private final OrderTrackingSignalsServiceStub stub; /** Constructs an instance of OrderTrackingSignalsServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected OrderTrackingSignalsServiceClient(OrderTrackingSignalsServiceStub stub this.stub = stub; } - public final OrderTrackingSignalsServiceSettings getSettings() { + public final @Nullable OrderTrackingSignalsServiceSettings getSettings() { return settings; } @@ -219,7 +220,7 @@ public OrderTrackingSignalsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OrderTrackingSignal createOrderTrackingSignal( - AccountName parent, String orderTrackingSignalId) { + @Nullable AccountName parent, String orderTrackingSignalId) { CreateOrderTrackingSignalRequest request = CreateOrderTrackingSignalRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceSettings.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceSettings.java index c2c2d350ab5d..c79637db858a 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceSettings.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/OrderTrackingSignalsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrderTrackingSignalsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/OrderTrackingSignalsServiceStubSettings.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/OrderTrackingSignalsServiceStubSettings.java index 6acf190b4bb5..225c9004ca3e 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/OrderTrackingSignalsServiceStubSettings.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/OrderTrackingSignalsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -281,7 +282,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createOrderTrackingSignalSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceClient.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceClient.java index 7f901fefabe0..0e52a9bf12f2 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceClient.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceClient.java @@ -25,6 +25,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. /** @@ -141,7 +142,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OrderTrackingSignalsServiceClient implements BackgroundResource { - private final OrderTrackingSignalsServiceSettings settings; + private final @Nullable OrderTrackingSignalsServiceSettings settings; private final OrderTrackingSignalsServiceStub stub; /** Constructs an instance of OrderTrackingSignalsServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected OrderTrackingSignalsServiceClient(OrderTrackingSignalsServiceStub stub this.stub = stub; } - public final OrderTrackingSignalsServiceSettings getSettings() { + public final @Nullable OrderTrackingSignalsServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public OrderTrackingSignalsServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OrderTrackingSignal createOrderTrackingSignal( - AccountName parent, String orderTrackingSignalId) { + @Nullable AccountName parent, String orderTrackingSignalId) { CreateOrderTrackingSignalRequest request = CreateOrderTrackingSignalRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceSettings.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceSettings.java index fec3b6355e7d..175e1bd66efb 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceSettings.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/OrderTrackingSignalsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrderTrackingSignalsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/OrderTrackingSignalsServiceStubSettings.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/OrderTrackingSignalsServiceStubSettings.java index 816e4fe4dd13..48c0348a79e9 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/OrderTrackingSignalsServiceStubSettings.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/OrderTrackingSignalsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createOrderTrackingSignalSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/AccountName.java b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/AccountName.java index dd1c9d11358d..a610bd78e1be 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/AccountName.java +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/src/main/java/com/google/shopping/merchant/ordertracking/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/AccountName.java b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/AccountName.java index 0c9c8f6599cc..e27696b35cdc 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/AccountName.java +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java index 786caf64ac1f..32455247503d 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminClient.java @@ -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. /** @@ -268,7 +269,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutokeyAdminClient implements BackgroundResource { - private final AutokeyAdminSettings settings; + private final @Nullable AutokeyAdminSettings settings; private final AutokeyAdminStub stub; /** Constructs an instance of AutokeyAdminClient with default settings. */ @@ -307,7 +308,7 @@ protected AutokeyAdminClient(AutokeyAdminStub stub) { this.stub = stub; } - public final AutokeyAdminSettings getSettings() { + public final @Nullable AutokeyAdminSettings getSettings() { return settings; } @@ -446,7 +447,7 @@ public final AutokeyConfig updateAutokeyConfig(UpdateAutokeyConfigRequest reques * e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutokeyConfig getAutokeyConfig(AutokeyConfigName name) { + public final AutokeyConfig getAutokeyConfig(@Nullable AutokeyConfigName name) { GetAutokeyConfigRequest request = GetAutokeyConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAutokeyConfig(request); @@ -559,7 +560,8 @@ public final UnaryCallable getAutokeyCon * configurations on a given resource project. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ShowEffectiveAutokeyConfigResponse showEffectiveAutokeyConfig(ProjectName parent) { + public final ShowEffectiveAutokeyConfigResponse showEffectiveAutokeyConfig( + @Nullable ProjectName parent) { ShowEffectiveAutokeyConfigRequest request = ShowEffectiveAutokeyConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1109,8 +1111,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1120,14 +1122,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1141,7 +1143,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1151,7 +1154,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminSettings.java index b56627951d35..68c3c046576d 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyAdminSettings.java @@ -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. /** @@ -198,7 +199,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); } @@ -218,7 +219,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutokeyAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java index af01f3049d00..c3071e114012 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeyClient.java @@ -46,6 +46,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. /** @@ -280,7 +281,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutokeyClient implements BackgroundResource { - private final AutokeySettings settings; + private final @Nullable AutokeySettings settings; private final AutokeyStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -326,7 +327,7 @@ protected AutokeyClient(AutokeyStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AutokeySettings getSettings() { + public final @Nullable AutokeySettings getSettings() { return settings; } @@ -386,7 +387,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKeyHandleAsync( - LocationName parent, KeyHandle keyHandle, String keyHandleId) { + @Nullable LocationName parent, KeyHandle keyHandle, String keyHandleId) { CreateKeyHandleRequest request = CreateKeyHandleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -569,7 +570,7 @@ public final UnaryCallable createKeyHandleCal * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyHandle getKeyHandle(KeyHandleName name) { + public final KeyHandle getKeyHandle(@Nullable KeyHandleName name) { GetKeyHandleRequest request = GetKeyHandleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyHandle(request); @@ -682,7 +683,7 @@ public final UnaryCallable getKeyHandleCallable( * `projects/{PROJECT_ID}/locations/{LOCATION}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeyHandlesPagedResponse listKeyHandles(LocationName parent) { + public final ListKeyHandlesPagedResponse listKeyHandles(@Nullable LocationName parent) { ListKeyHandlesRequest request = ListKeyHandlesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1278,8 +1279,8 @@ public static class ListKeyHandlesPage ListKeyHandlesRequest, ListKeyHandlesResponse, KeyHandle, ListKeyHandlesPage> { private ListKeyHandlesPage( - PageContext context, - ListKeyHandlesResponse response) { + @Nullable PageContext context, + @Nullable ListKeyHandlesResponse response) { super(context, response); } @@ -1289,14 +1290,14 @@ private static ListKeyHandlesPage createEmptyPage() { @Override protected ListKeyHandlesPage createPage( - PageContext context, - ListKeyHandlesResponse response) { + @Nullable PageContext context, + @Nullable ListKeyHandlesResponse response) { return new ListKeyHandlesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1310,7 +1311,8 @@ public static class ListKeyHandlesFixedSizeCollection ListKeyHandlesPage, ListKeyHandlesFixedSizeCollection> { - private ListKeyHandlesFixedSizeCollection(List pages, int collectionSize) { + private ListKeyHandlesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1320,7 +1322,7 @@ private static ListKeyHandlesFixedSizeCollection createEmptyCollection() { @Override protected ListKeyHandlesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeyHandlesFixedSizeCollection(pages, collectionSize); } } @@ -1354,8 +1356,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1365,14 +1367,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1386,7 +1388,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1396,7 +1399,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeySettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeySettings.java index 3cef2dee36ec..0b05503e7bee 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeySettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/AutokeySettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutokeyStubSettings.newBuilder(clientContext)); } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java index 8bf1eba75299..b09857eae5d6 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceClient.java @@ -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. /** @@ -343,7 +344,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EkmServiceClient implements BackgroundResource { - private final EkmServiceSettings settings; + private final @Nullable EkmServiceSettings settings; private final EkmServiceStub stub; /** Constructs an instance of EkmServiceClient with default settings. */ @@ -381,7 +382,7 @@ protected EkmServiceClient(EkmServiceStub stub) { this.stub = stub; } - public final EkmServiceSettings getSettings() { + public final @Nullable EkmServiceSettings getSettings() { return settings; } @@ -414,7 +415,7 @@ public EkmServiceStub getStub() { * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEkmConnectionsPagedResponse listEkmConnections(LocationName parent) { + public final ListEkmConnectionsPagedResponse listEkmConnections(@Nullable LocationName parent) { ListEkmConnectionsRequest request = ListEkmConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -587,7 +588,7 @@ public final ListEkmConnectionsPagedResponse listEkmConnections( * [EkmConnection][google.cloud.kms.v1.EkmConnection] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EkmConnection getEkmConnection(EkmConnectionName name) { + public final EkmConnection getEkmConnection(@Nullable EkmConnectionName name) { GetEkmConnectionRequest request = GetEkmConnectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEkmConnection(request); @@ -710,7 +711,7 @@ public final UnaryCallable getEkmConnect * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EkmConnection createEkmConnection( - LocationName parent, String ekmConnectionId, EkmConnection ekmConnection) { + @Nullable LocationName parent, String ekmConnectionId, EkmConnection ekmConnection) { CreateEkmConnectionRequest request = CreateEkmConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -941,7 +942,7 @@ public final EkmConnection updateEkmConnection(UpdateEkmConnectionRequest reques * [EkmConfig][google.cloud.kms.v1.EkmConfig] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EkmConfig getEkmConfig(EkmConfigName name) { + public final EkmConfig getEkmConfig(@Nullable EkmConfigName name) { GetEkmConfigRequest request = GetEkmConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEkmConfig(request); @@ -1149,7 +1150,7 @@ public final UnaryCallable updateEkmConfigCal * [EkmConnection][google.cloud.kms.v1.EkmConnection] to verify. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VerifyConnectivityResponse verifyConnectivity(EkmConnectionName name) { + public final VerifyConnectivityResponse verifyConnectivity(@Nullable EkmConnectionName name) { VerifyConnectivityRequest request = VerifyConnectivityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1709,8 +1710,9 @@ public static class ListEkmConnectionsPage ListEkmConnectionsPage> { private ListEkmConnectionsPage( - PageContext context, - ListEkmConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListEkmConnectionsResponse response) { super(context, response); } @@ -1720,14 +1722,16 @@ private static ListEkmConnectionsPage createEmptyPage() { @Override protected ListEkmConnectionsPage createPage( - PageContext context, - ListEkmConnectionsResponse response) { + @Nullable PageContext + context, + @Nullable ListEkmConnectionsResponse response) { return new ListEkmConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1742,7 +1746,7 @@ public static class ListEkmConnectionsFixedSizeCollection ListEkmConnectionsFixedSizeCollection> { private ListEkmConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1752,7 +1756,7 @@ private static ListEkmConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListEkmConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEkmConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -1786,8 +1790,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1797,14 +1801,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1818,7 +1822,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1828,7 +1833,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java index 331a213cb41e..7abff894c175 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/EkmServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EkmServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java index f5eaa8b286b6..7bff8c3d6c60 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementClient.java @@ -47,6 +47,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. /** @@ -396,7 +397,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HsmManagementClient implements BackgroundResource { - private final HsmManagementSettings settings; + private final @Nullable HsmManagementSettings settings; private final HsmManagementStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -444,7 +445,7 @@ protected HsmManagementClient(HsmManagementStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final HsmManagementSettings getSettings() { + public final @Nullable HsmManagementSettings getSettings() { return settings; } @@ -496,7 +497,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSingleTenantHsmInstancesPagedResponse listSingleTenantHsmInstances( - LocationName parent) { + @Nullable LocationName parent) { ListSingleTenantHsmInstancesRequest request = ListSingleTenantHsmInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -680,7 +681,7 @@ public final ListSingleTenantHsmInstancesPagedResponse listSingleTenantHsmInstan * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SingleTenantHsmInstance getSingleTenantHsmInstance( - SingleTenantHsmInstanceName name) { + @Nullable SingleTenantHsmInstanceName name) { GetSingleTenantHsmInstanceRequest request = GetSingleTenantHsmInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -824,7 +825,7 @@ public final SingleTenantHsmInstance getSingleTenantHsmInstance( */ public final OperationFuture createSingleTenantHsmInstanceAsync( - LocationName parent, + @Nullable LocationName parent, SingleTenantHsmInstance singleTenantHsmInstance, String singleTenantHsmInstanceId) { CreateSingleTenantHsmInstanceRequest request = @@ -1031,7 +1032,7 @@ public final SingleTenantHsmInstance getSingleTenantHsmInstance( public final OperationFuture< SingleTenantHsmInstanceProposal, CreateSingleTenantHsmInstanceProposalMetadata> createSingleTenantHsmInstanceProposalAsync( - SingleTenantHsmInstanceName parent, + @Nullable SingleTenantHsmInstanceName parent, SingleTenantHsmInstanceProposal singleTenantHsmInstanceProposal, String singleTenantHsmInstanceProposalId) { CreateSingleTenantHsmInstanceProposalRequest request = @@ -1254,7 +1255,7 @@ public final SingleTenantHsmInstance getSingleTenantHsmInstance( */ public final ApproveSingleTenantHsmInstanceProposalResponse approveSingleTenantHsmInstanceProposal( - SingleTenantHsmInstanceProposalName name, + @Nullable SingleTenantHsmInstanceProposalName name, ApproveSingleTenantHsmInstanceProposalRequest.QuorumReply quorumReply) { ApproveSingleTenantHsmInstanceProposalRequest request = ApproveSingleTenantHsmInstanceProposalRequest.newBuilder() @@ -1416,7 +1417,8 @@ public final SingleTenantHsmInstance getSingleTenantHsmInstance( public final OperationFuture< ExecuteSingleTenantHsmInstanceProposalResponse, ExecuteSingleTenantHsmInstanceProposalMetadata> - executeSingleTenantHsmInstanceProposalAsync(SingleTenantHsmInstanceProposalName name) { + executeSingleTenantHsmInstanceProposalAsync( + @Nullable SingleTenantHsmInstanceProposalName name) { ExecuteSingleTenantHsmInstanceProposalRequest request = ExecuteSingleTenantHsmInstanceProposalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1608,7 +1610,7 @@ public final SingleTenantHsmInstance getSingleTenantHsmInstance( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SingleTenantHsmInstanceProposal getSingleTenantHsmInstanceProposal( - SingleTenantHsmInstanceProposalName name) { + @Nullable SingleTenantHsmInstanceProposalName name) { GetSingleTenantHsmInstanceProposalRequest request = GetSingleTenantHsmInstanceProposalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1746,7 +1748,7 @@ public final SingleTenantHsmInstanceProposal getSingleTenantHsmInstanceProposal( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSingleTenantHsmInstanceProposalsPagedResponse - listSingleTenantHsmInstanceProposals(SingleTenantHsmInstanceName parent) { + listSingleTenantHsmInstanceProposals(@Nullable SingleTenantHsmInstanceName parent) { ListSingleTenantHsmInstanceProposalsRequest request = ListSingleTenantHsmInstanceProposalsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1947,7 +1949,7 @@ public final SingleTenantHsmInstanceProposal getSingleTenantHsmInstanceProposal( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSingleTenantHsmInstanceProposal( - SingleTenantHsmInstanceProposalName name) { + @Nullable SingleTenantHsmInstanceProposalName name) { DeleteSingleTenantHsmInstanceProposalRequest request = DeleteSingleTenantHsmInstanceProposalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2515,12 +2517,13 @@ public static class ListSingleTenantHsmInstancesPage ListSingleTenantHsmInstancesPage> { private ListSingleTenantHsmInstancesPage( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstancesRequest, ListSingleTenantHsmInstancesResponse, SingleTenantHsmInstance> context, - ListSingleTenantHsmInstancesResponse response) { + @Nullable ListSingleTenantHsmInstancesResponse response) { super(context, response); } @@ -2530,18 +2533,20 @@ private static ListSingleTenantHsmInstancesPage createEmptyPage() { @Override protected ListSingleTenantHsmInstancesPage createPage( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstancesRequest, ListSingleTenantHsmInstancesResponse, SingleTenantHsmInstance> context, - ListSingleTenantHsmInstancesResponse response) { + @Nullable ListSingleTenantHsmInstancesResponse response) { return new ListSingleTenantHsmInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstancesRequest, ListSingleTenantHsmInstancesResponse, SingleTenantHsmInstance> @@ -2560,7 +2565,7 @@ public static class ListSingleTenantHsmInstancesFixedSizeCollection ListSingleTenantHsmInstancesFixedSizeCollection> { private ListSingleTenantHsmInstancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2570,7 +2575,7 @@ private static ListSingleTenantHsmInstancesFixedSizeCollection createEmptyCollec @Override protected ListSingleTenantHsmInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSingleTenantHsmInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2613,12 +2618,13 @@ public static class ListSingleTenantHsmInstanceProposalsPage ListSingleTenantHsmInstanceProposalsPage> { private ListSingleTenantHsmInstanceProposalsPage( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstanceProposalsRequest, ListSingleTenantHsmInstanceProposalsResponse, SingleTenantHsmInstanceProposal> context, - ListSingleTenantHsmInstanceProposalsResponse response) { + @Nullable ListSingleTenantHsmInstanceProposalsResponse response) { super(context, response); } @@ -2628,18 +2634,20 @@ private static ListSingleTenantHsmInstanceProposalsPage createEmptyPage() { @Override protected ListSingleTenantHsmInstanceProposalsPage createPage( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstanceProposalsRequest, ListSingleTenantHsmInstanceProposalsResponse, SingleTenantHsmInstanceProposal> context, - ListSingleTenantHsmInstanceProposalsResponse response) { + @Nullable ListSingleTenantHsmInstanceProposalsResponse response) { return new ListSingleTenantHsmInstanceProposalsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSingleTenantHsmInstanceProposalsRequest, ListSingleTenantHsmInstanceProposalsResponse, SingleTenantHsmInstanceProposal> @@ -2658,7 +2666,7 @@ public static class ListSingleTenantHsmInstanceProposalsFixedSizeCollection ListSingleTenantHsmInstanceProposalsFixedSizeCollection> { private ListSingleTenantHsmInstanceProposalsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2668,7 +2676,7 @@ private static ListSingleTenantHsmInstanceProposalsFixedSizeCollection createEmp @Override protected ListSingleTenantHsmInstanceProposalsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSingleTenantHsmInstanceProposalsFixedSizeCollection(pages, collectionSize); } } @@ -2702,8 +2710,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2713,14 +2721,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2734,7 +2742,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2744,7 +2753,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementSettings.java index 3e57a111a4a8..2b5ab3057213 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/HsmManagementSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,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); } @@ -344,7 +345,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HsmManagementStubSettings.newBuilder(clientContext)); } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java index f4c0210d1adc..9c05347e62a3 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -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. /** @@ -851,7 +852,7 @@ @NullMarked @Generated("by gapic-generator-java") public class KeyManagementServiceClient implements BackgroundResource { - private final KeyManagementServiceSettings settings; + private final @Nullable KeyManagementServiceSettings settings; private final KeyManagementServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -899,7 +900,7 @@ protected KeyManagementServiceClient(KeyManagementServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final KeyManagementServiceSettings getSettings() { + public final @Nullable KeyManagementServiceSettings getSettings() { return settings; } @@ -949,7 +950,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeyRingsPagedResponse listKeyRings(LocationName parent) { + public final ListKeyRingsPagedResponse listKeyRings(@Nullable LocationName parent) { ListKeyRingsRequest request = ListKeyRingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1125,7 +1126,7 @@ public final UnaryCallable listKeyRin * list, in the format `projects/*/locations/*/keyRings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCryptoKeysPagedResponse listCryptoKeys(KeyRingName parent) { + public final ListCryptoKeysPagedResponse listCryptoKeys(@Nullable KeyRingName parent) { ListCryptoKeysRequest request = ListCryptoKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1304,7 +1305,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re * list, in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(CryptoKeyName parent) { + public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions( + @Nullable CryptoKeyName parent) { ListCryptoKeyVersionsRequest request = ListCryptoKeyVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1492,7 +1494,7 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions( * list, in the format `projects/*/locations/*/keyRings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImportJobsPagedResponse listImportJobs(KeyRingName parent) { + public final ListImportJobsPagedResponse listImportJobs(@Nullable KeyRingName parent) { ListImportJobsRequest request = ListImportJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1673,7 +1675,8 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRetiredResourcesPagedResponse listRetiredResources(LocationName parent) { + public final ListRetiredResourcesPagedResponse listRetiredResources( + @Nullable LocationName parent) { ListRetiredResourcesRequest request = ListRetiredResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1855,7 +1858,7 @@ public final ListRetiredResourcesPagedResponse listRetiredResources( * [KeyRing][google.cloud.kms.v1.KeyRing] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing getKeyRing(KeyRingName name) { + public final KeyRing getKeyRing(@Nullable KeyRingName name) { GetKeyRingRequest request = GetKeyRingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyRing(request); @@ -1973,7 +1976,7 @@ public final UnaryCallable getKeyRingCallable() { * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKey getCryptoKey(CryptoKeyName name) { + public final CryptoKey getCryptoKey(@Nullable CryptoKeyName name) { GetCryptoKeyRequest request = GetCryptoKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCryptoKey(request); @@ -2101,7 +2104,7 @@ public final UnaryCallable getCryptoKeyCallable( * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion getCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion getCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { GetCryptoKeyVersionRequest request = GetCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2242,7 +2245,7 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublicKey getPublicKey(CryptoKeyVersionName name) { + public final PublicKey getPublicKey(@Nullable CryptoKeyVersionName name) { GetPublicKeyRequest request = GetPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPublicKey(request); @@ -2384,7 +2387,7 @@ public final UnaryCallable getPublicKeyCallable( * [ImportJob][google.cloud.kms.v1.ImportJob] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImportJob getImportJob(ImportJobName name) { + public final ImportJob getImportJob(@Nullable ImportJobName name) { GetImportJobRequest request = GetImportJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getImportJob(request); @@ -2506,7 +2509,7 @@ public final UnaryCallable getImportJobCallable( * [RetiredResource][google.cloud.kms.v1.RetiredResource] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetiredResource getRetiredResource(RetiredResourceName name) { + public final RetiredResource getRetiredResource(@Nullable RetiredResourceName name) { GetRetiredResourceRequest request = GetRetiredResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2638,7 +2641,8 @@ public final RetiredResource getRetiredResource(GetRetiredResourceRequest reques * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) { + public final KeyRing createKeyRing( + @Nullable LocationName parent, String keyRingId, KeyRing keyRing) { CreateKeyRingRequest request = CreateKeyRingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2784,7 +2788,7 @@ public final UnaryCallable createKeyRingCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKey createCryptoKey( - KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { + @Nullable KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { CreateCryptoKeyRequest request = CreateCryptoKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2948,7 +2952,7 @@ public final UnaryCallable createCryptoKeyCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKeyVersion createCryptoKeyVersion( - CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { + @Nullable CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { CreateCryptoKeyVersionRequest request = CreateCryptoKeyVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3106,7 +3110,7 @@ public final CryptoKeyVersion createCryptoKeyVersion(CreateCryptoKeyVersionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCryptoKeyAsync( - CryptoKeyName name) { + @Nullable CryptoKeyName name) { DeleteCryptoKeyRequest request = DeleteCryptoKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCryptoKeyAsync(request); @@ -3290,7 +3294,7 @@ public final UnaryCallable deleteCryptoKeyCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCryptoKeyVersionAsync( - CryptoKeyVersionName name) { + @Nullable CryptoKeyVersionName name) { DeleteCryptoKeyVersionRequest request = DeleteCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3605,7 +3609,7 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ImportJob createImportJob( - KeyRingName parent, String importJobId, ImportJob importJob) { + @Nullable KeyRingName parent, String importJobId, ImportJob importJob) { CreateImportJobRequest request = CreateImportJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3974,7 +3978,7 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKey updateCryptoKeyPrimaryVersion( - CryptoKeyName name, String cryptoKeyVersionId) { + @Nullable CryptoKeyName name, String cryptoKeyVersionId) { UpdateCryptoKeyPrimaryVersionRequest request = UpdateCryptoKeyPrimaryVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4137,7 +4141,7 @@ public final CryptoKey updateCryptoKeyPrimaryVersion( * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion destroyCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { DestroyCryptoKeyVersionRequest request = DestroyCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4324,7 +4328,7 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion restoreCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { RestoreCryptoKeyVersionRequest request = RestoreCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4496,46 +4500,7 @@ public final CryptoKeyVersion restoreCryptoKeyVersion(RestoreCryptoKeyVersionReq * than 8KiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptResponse encrypt(ResourceName name, ByteString plaintext) { - EncryptRequest request = - EncryptRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setPlaintext(plaintext) - .build(); - return encrypt(request); - } - - // ADDED BY SYNTH - /** - * Encrypts data, so that it can only be recovered by a call to - * [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The - * [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be - * [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. - * - *

Sample code: - * - *


-   * try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
-   *   CryptoKeyPathName name = CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
-   *   ByteString plaintext = ByteString.copyFromUtf8("");
-   *   EncryptResponse response = keyManagementServiceClient.encrypt(name, plaintext);
-   * }
-   * 
- * - * @param name Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] or - * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for encryption. - *

If a [CryptoKey][google.cloud.kms.v1.CryptoKey] is specified, the server will use its - * [primary version][google.cloud.kms.v1.CryptoKey.primary]. - * @param plaintext Required. The data to encrypt. Must be no larger than 64KiB. - *

The maximum size depends on the key version's - * [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level]. For - * [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE] keys, the plaintext must be no - * larger than 64KiB. For [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] keys, the combined - * length of the plaintext and additional_authenticated_data fields must be no larger than - * 8KiB. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EncryptResponse encrypt(CryptoKeyPathName name, ByteString plaintext) { + public final EncryptResponse encrypt(@Nullable ResourceName name, ByteString plaintext) { EncryptRequest request = EncryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4694,7 +4659,7 @@ public final UnaryCallable encryptCallable() { * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DecryptResponse decrypt(CryptoKeyName name, ByteString ciphertext) { + public final DecryptResponse decrypt(@Nullable CryptoKeyName name, ByteString ciphertext) { DecryptRequest request = DecryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5003,7 +4968,8 @@ public final UnaryCallable rawDecryptCall * [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data] is supplied. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AsymmetricSignResponse asymmetricSign(CryptoKeyVersionName name, Digest digest) { + public final AsymmetricSignResponse asymmetricSign( + @Nullable CryptoKeyVersionName name, Digest digest) { AsymmetricSignRequest request = AsymmetricSignRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5173,7 +5139,7 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AsymmetricDecryptResponse asymmetricDecrypt( - CryptoKeyVersionName name, ByteString ciphertext) { + @Nullable CryptoKeyVersionName name, ByteString ciphertext) { AsymmetricDecryptRequest request = AsymmetricDecryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5334,7 +5300,7 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques * the specific algorithm. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MacSignResponse macSign(CryptoKeyVersionName name, ByteString data) { + public final MacSignResponse macSign(@Nullable CryptoKeyVersionName name, ByteString data) { MacSignRequest request = MacSignRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5492,7 +5458,7 @@ public final UnaryCallable macSignCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MacVerifyResponse macVerify( - CryptoKeyVersionName name, ByteString data, ByteString mac) { + @Nullable CryptoKeyVersionName name, ByteString data, ByteString mac) { MacVerifyRequest request = MacVerifyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6462,8 +6428,8 @@ public static class ListKeyRingsPage extends AbstractPage { private ListKeyRingsPage( - PageContext context, - ListKeyRingsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyRingsResponse response) { super(context, response); } @@ -6473,14 +6439,14 @@ private static ListKeyRingsPage createEmptyPage() { @Override protected ListKeyRingsPage createPage( - PageContext context, - ListKeyRingsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyRingsResponse response) { return new ListKeyRingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6494,7 +6460,8 @@ public static class ListKeyRingsFixedSizeCollection ListKeyRingsPage, ListKeyRingsFixedSizeCollection> { - private ListKeyRingsFixedSizeCollection(List pages, int collectionSize) { + private ListKeyRingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6504,7 +6471,7 @@ private static ListKeyRingsFixedSizeCollection createEmptyCollection() { @Override protected ListKeyRingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeyRingsFixedSizeCollection(pages, collectionSize); } } @@ -6538,8 +6505,8 @@ public static class ListCryptoKeysPage ListCryptoKeysRequest, ListCryptoKeysResponse, CryptoKey, ListCryptoKeysPage> { private ListCryptoKeysPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { super(context, response); } @@ -6549,14 +6516,14 @@ private static ListCryptoKeysPage createEmptyPage() { @Override protected ListCryptoKeysPage createPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { return new ListCryptoKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6570,7 +6537,8 @@ public static class ListCryptoKeysFixedSizeCollection ListCryptoKeysPage, ListCryptoKeysFixedSizeCollection> { - private ListCryptoKeysFixedSizeCollection(List pages, int collectionSize) { + private ListCryptoKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6580,7 +6548,7 @@ private static ListCryptoKeysFixedSizeCollection createEmptyCollection() { @Override protected ListCryptoKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCryptoKeysFixedSizeCollection(pages, collectionSize); } } @@ -6618,9 +6586,11 @@ public static class ListCryptoKeyVersionsPage ListCryptoKeyVersionsPage> { private ListCryptoKeyVersionsPage( - PageContext + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> context, - ListCryptoKeyVersionsResponse response) { + @Nullable ListCryptoKeyVersionsResponse response) { super(context, response); } @@ -6630,15 +6600,19 @@ private static ListCryptoKeyVersionsPage createEmptyPage() { @Override protected ListCryptoKeyVersionsPage createPage( - PageContext + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> context, - ListCryptoKeyVersionsResponse response) { + @Nullable ListCryptoKeyVersionsResponse response) { return new ListCryptoKeyVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6654,7 +6628,7 @@ public static class ListCryptoKeyVersionsFixedSizeCollection ListCryptoKeyVersionsFixedSizeCollection> { private ListCryptoKeyVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6664,7 +6638,7 @@ private static ListCryptoKeyVersionsFixedSizeCollection createEmptyCollection() @Override protected ListCryptoKeyVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCryptoKeyVersionsFixedSizeCollection(pages, collectionSize); } } @@ -6698,8 +6672,8 @@ public static class ListImportJobsPage ListImportJobsRequest, ListImportJobsResponse, ImportJob, ListImportJobsPage> { private ListImportJobsPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { super(context, response); } @@ -6709,14 +6683,14 @@ private static ListImportJobsPage createEmptyPage() { @Override protected ListImportJobsPage createPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { return new ListImportJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6730,7 +6704,8 @@ public static class ListImportJobsFixedSizeCollection ListImportJobsPage, ListImportJobsFixedSizeCollection> { - private ListImportJobsFixedSizeCollection(List pages, int collectionSize) { + private ListImportJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6740,7 +6715,7 @@ private static ListImportJobsFixedSizeCollection createEmptyCollection() { @Override protected ListImportJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImportJobsFixedSizeCollection(pages, collectionSize); } } @@ -6778,9 +6753,10 @@ public static class ListRetiredResourcesPage ListRetiredResourcesPage> { private ListRetiredResourcesPage( - PageContext + @Nullable + PageContext context, - ListRetiredResourcesResponse response) { + @Nullable ListRetiredResourcesResponse response) { super(context, response); } @@ -6790,15 +6766,17 @@ private static ListRetiredResourcesPage createEmptyPage() { @Override protected ListRetiredResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListRetiredResourcesResponse response) { + @Nullable ListRetiredResourcesResponse response) { return new ListRetiredResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6814,7 +6792,7 @@ public static class ListRetiredResourcesFixedSizeCollection ListRetiredResourcesFixedSizeCollection> { private ListRetiredResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6824,7 +6802,7 @@ private static ListRetiredResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListRetiredResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRetiredResourcesFixedSizeCollection(pages, collectionSize); } } @@ -6858,8 +6836,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6869,14 +6847,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6890,7 +6868,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6900,7 +6879,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index ae9fddae8974..19db6aa1eb50 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -421,7 +422,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); } @@ -442,7 +443,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KeyManagementServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java index f9edb589fc13..91e7a06a3a4a 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyAdminStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,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); } @@ -429,7 +430,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateAutokeyConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStub.java index 94c66bd4797e..29c2d9e14171 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStub.java @@ -41,6 +41,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class AutokeyStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java index f76249d17806..2ceab313660d 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/AutokeyStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -427,7 +428,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); } @@ -529,7 +530,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createKeyHandleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java index c774e5d7236c..758ea6dbbc8e 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/EkmServiceStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -433,7 +434,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); } @@ -533,7 +534,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEkmConnectionsSettings = PagedCallSettings.newBuilder(LIST_EKM_CONNECTIONS_PAGE_STR_FACT); diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStub.java index 4a2bfec21eda..1c9eac72af0a 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class HsmManagementStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStubSettings.java index 584c7d133ac1..709a83723d68 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/HsmManagementStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -669,7 +670,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); } @@ -816,7 +817,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSingleTenantHsmInstancesSettings = diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java index 412f8fa7a9cc..db1b85992aba 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java @@ -96,6 +96,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -107,11 +108,12 @@ @Generated("by gapic-generator-java") public abstract class KeyManagementServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 6747a083655f..b616efed15b5 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -130,6 +130,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -952,7 +953,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); } @@ -1151,7 +1152,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listKeyRingsSettings = PagedCallSettings.newBuilder(LIST_KEY_RINGS_PAGE_STR_FACT); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyConfigName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyConfigName.java index 16eaee2f3d73..c79669cba5ff 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyConfigName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AutokeyConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatProjectName(String project) { return newProjectBuilder().setProject(project).build().toString(); } - public static AutokeyConfigName parse(String formattedString) { + public static @Nullable AutokeyConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutokeyConfigName> values) { List list = new ArrayList<>(values.size()); for (AutokeyConfigName value : values) { if (value == null) { @@ -175,7 +176,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java index bd0052b559b0..30266e5a16b4 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java index c874db01eba9..81d1958f1e08 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static CryptoKeyVersionName parse(String formattedString) { + public static @Nullable CryptoKeyVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyVersionName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyVersionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConfigName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConfigName.java index 605a5effe045..eeb4efbf7278 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConfigName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static EkmConfigName parse(String formattedString) { + public static @Nullable EkmConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EkmConfigName> values) { List list = new ArrayList<>(values.size()); for (EkmConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java index 917ea3cf717f..18731aaa57e7 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/EkmConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String ekmConnectio .toString(); } - public static EkmConnectionName parse(String formattedString) { + public static @Nullable EkmConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EkmConnectionName> values) { List list = new ArrayList<>(values.size()); for (EkmConnectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java index 11769b9fcaec..fcbffe963ef9 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static ImportJobName parse(String formattedString) { + public static @Nullable ImportJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImportJobName> values) { List list = new ArrayList<>(values.size()); for (ImportJobName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyHandleName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyHandleName.java index ffd652354429..64e61504aa51 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyHandleName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyHandleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String keyHandle) { .toString(); } - public static KeyHandleName parse(String formattedString) { + public static @Nullable KeyHandleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyHandleName> values) { List list = new ArrayList<>(values.size()); for (KeyHandleName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java index a6e4ea9a12bd..414294e32c67 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java @@ -25,6 +25,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -84,7 +85,7 @@ public static String format(String project, String location, String keyRing) { .toString(); } - public static KeyRingName parse(String formattedString) { + public static @Nullable KeyRingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -102,7 +103,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyRingName> values) { List list = new ArrayList<>(values.size()); for (KeyRingName value : values) { if (value == null) { @@ -151,7 +152,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java index 8d115370779b..779051315dbb 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProjectName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProjectName.java index c7a8c3d405b6..8e0866667ff9 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProjectName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java index c46b49750b7c..7b01f2824036 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/RetiredResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String retiredResou .toString(); } - public static RetiredResourceName parse(String formattedString) { + public static @Nullable RetiredResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RetiredResourceName> values) { List list = new ArrayList<>(values.size()); for (RetiredResourceName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceName.java index 1c30e0a85889..49948e644591 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String singleTenant .toString(); } - public static SingleTenantHsmInstanceName parse(String formattedString) { + public static @Nullable SingleTenantHsmInstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SingleTenantHsmInstanceName> values) { List list = new ArrayList<>(values.size()); for (SingleTenantHsmInstanceName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceProposalName.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceProposalName.java index c604a3ea1a5d..979d8b805182 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceProposalName.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceProposalName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SingleTenantHsmInstanceProposalName parse(String formattedString) { + public static @Nullable SingleTenantHsmInstanceProposalName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,8 @@ public static List parseList(List f return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SingleTenantHsmInstanceProposalName> values) { List list = new ArrayList<>(values.size()); for (SingleTenantHsmInstanceProposalName value : values) { if (value == null) { @@ -182,7 +184,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java index 6f418169e476..0080d4a28df4 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceClient.java @@ -33,6 +33,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. /** @@ -147,7 +148,7 @@ @NullMarked @Generated("by gapic-generator-java") public class KeyDashboardServiceClient implements BackgroundResource { - private final KeyDashboardServiceSettings settings; + private final @Nullable KeyDashboardServiceSettings settings; private final KeyDashboardServiceStub stub; /** Constructs an instance of KeyDashboardServiceClient with default settings. */ @@ -187,7 +188,7 @@ protected KeyDashboardServiceClient(KeyDashboardServiceStub stub) { this.stub = stub; } - public final KeyDashboardServiceSettings getSettings() { + public final @Nullable KeyDashboardServiceSettings getSettings() { return settings; } @@ -221,7 +222,7 @@ public KeyDashboardServiceStub getStub() { * format `projects/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCryptoKeysPagedResponse listCryptoKeys(ProjectName parent) { + public final ListCryptoKeysPagedResponse listCryptoKeys(@Nullable ProjectName parent) { ListCryptoKeysRequest request = ListCryptoKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -430,8 +431,8 @@ public static class ListCryptoKeysPage ListCryptoKeysRequest, ListCryptoKeysResponse, CryptoKey, ListCryptoKeysPage> { private ListCryptoKeysPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { super(context, response); } @@ -441,14 +442,14 @@ private static ListCryptoKeysPage createEmptyPage() { @Override protected ListCryptoKeysPage createPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { return new ListCryptoKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -462,7 +463,8 @@ public static class ListCryptoKeysFixedSizeCollection ListCryptoKeysPage, ListCryptoKeysFixedSizeCollection> { - private ListCryptoKeysFixedSizeCollection(List pages, int collectionSize) { + private ListCryptoKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -472,7 +474,7 @@ private static ListCryptoKeysFixedSizeCollection createEmptyCollection() { @Override protected ListCryptoKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCryptoKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java index db51b12b949f..e5c8f11d6614 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyDashboardServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KeyDashboardServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java index 2c3d138705bc..dc7e0c5e681b 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceClient.java @@ -33,6 +33,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. /** @@ -172,7 +173,7 @@ @NullMarked @Generated("by gapic-generator-java") public class KeyTrackingServiceClient implements BackgroundResource { - private final KeyTrackingServiceSettings settings; + private final @Nullable KeyTrackingServiceSettings settings; private final KeyTrackingServiceStub stub; /** Constructs an instance of KeyTrackingServiceClient with default settings. */ @@ -212,7 +213,7 @@ protected KeyTrackingServiceClient(KeyTrackingServiceStub stub) { this.stub = stub; } - public final KeyTrackingServiceSettings getSettings() { + public final @Nullable KeyTrackingServiceSettings getSettings() { return settings; } @@ -253,7 +254,7 @@ public KeyTrackingServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ProtectedResourcesSummary getProtectedResourcesSummary( - ProtectedResourcesSummaryName name) { + @Nullable ProtectedResourcesSummaryName name) { GetProtectedResourcesSummaryRequest request = GetProtectedResourcesSummaryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -419,7 +420,7 @@ public final ProtectedResourcesSummary getProtectedResourcesSummary( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchProtectedResourcesPagedResponse searchProtectedResources( - OrganizationName scope, ResourceName cryptoKey) { + @Nullable OrganizationName scope, @Nullable ResourceName cryptoKey) { SearchProtectedResourcesRequest request = SearchProtectedResourcesRequest.newBuilder() .setScope(scope == null ? null : scope.toString()) @@ -464,7 +465,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchProtectedResourcesPagedResponse searchProtectedResources( - OrganizationName scope, String cryptoKey) { + @Nullable OrganizationName scope, String cryptoKey) { SearchProtectedResourcesRequest request = SearchProtectedResourcesRequest.newBuilder() .setScope(scope == null ? null : scope.toString()) @@ -509,7 +510,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchProtectedResourcesPagedResponse searchProtectedResources( - ProjectName scope, ResourceName cryptoKey) { + @Nullable ProjectName scope, @Nullable ResourceName cryptoKey) { SearchProtectedResourcesRequest request = SearchProtectedResourcesRequest.newBuilder() .setScope(scope == null ? null : scope.toString()) @@ -554,7 +555,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchProtectedResourcesPagedResponse searchProtectedResources( - ProjectName scope, String cryptoKey) { + @Nullable ProjectName scope, String cryptoKey) { SearchProtectedResourcesRequest request = SearchProtectedResourcesRequest.newBuilder() .setScope(scope == null ? null : scope.toString()) @@ -599,7 +600,7 @@ public final SearchProtectedResourcesPagedResponse searchProtectedResources( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchProtectedResourcesPagedResponse searchProtectedResources( - String scope, ResourceName cryptoKey) { + String scope, @Nullable ResourceName cryptoKey) { SearchProtectedResourcesRequest request = SearchProtectedResourcesRequest.newBuilder() .setScope(scope) @@ -835,12 +836,13 @@ public static class SearchProtectedResourcesPage SearchProtectedResourcesPage> { private SearchProtectedResourcesPage( - PageContext< + @Nullable + PageContext< SearchProtectedResourcesRequest, SearchProtectedResourcesResponse, ProtectedResource> context, - SearchProtectedResourcesResponse response) { + @Nullable SearchProtectedResourcesResponse response) { super(context, response); } @@ -850,18 +852,20 @@ private static SearchProtectedResourcesPage createEmptyPage() { @Override protected SearchProtectedResourcesPage createPage( - PageContext< + @Nullable + PageContext< SearchProtectedResourcesRequest, SearchProtectedResourcesResponse, ProtectedResource> context, - SearchProtectedResourcesResponse response) { + @Nullable SearchProtectedResourcesResponse response) { return new SearchProtectedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchProtectedResourcesRequest, SearchProtectedResourcesResponse, ProtectedResource> @@ -880,7 +884,7 @@ public static class SearchProtectedResourcesFixedSizeCollection SearchProtectedResourcesFixedSizeCollection> { private SearchProtectedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -890,7 +894,7 @@ private static SearchProtectedResourcesFixedSizeCollection createEmptyCollection @Override protected SearchProtectedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchProtectedResourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java index 97fbdb043d6f..268bba6e00f4 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/KeyTrackingServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KeyTrackingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java index cb9e0c729cd7..42f68b297d53 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyDashboardServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,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); } @@ -341,7 +342,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCryptoKeysSettings = PagedCallSettings.newBuilder(LIST_CRYPTO_KEYS_PAGE_STR_FACT); diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java index 2323f29bc115..c3cc78597518 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/KeyTrackingServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -382,7 +383,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProtectedResourcesSummarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java index 16c597fb2410..d8d8bf492a7e 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java index 362b03082896..c8f21ef783c6 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceScopeName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceScopeName.java index bb35cc38cbf2..de9304a56149 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceScopeName.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourceScopeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String formatProjectName(String project) { return newProjectBuilder().setProject(project).build().toString(); } - public static ProtectedResourceScopeName parse(String formattedString) { + public static @Nullable ProtectedResourceScopeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -131,7 +132,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProtectedResourceScopeName> values) { List list = new ArrayList<>(values.size()); for (ProtectedResourceScopeName value : values) { if (value == null) { @@ -176,7 +177,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java index 126cfb038bcc..774ea463aac1 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/src/main/java/com/google/cloud/kms/inventory/v1/ProtectedResourcesSummaryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatProjectLocationKeyRingCryptoKeyCryptoKeyVersionName( .toString(); } - public static ProtectedResourcesSummaryName parse(String formattedString) { + public static @Nullable ProtectedResourcesSummaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -209,7 +210,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProtectedResourcesSummaryName> values) { List list = new ArrayList<>(values.size()); for (ProtectedResourcesSummaryName value : values) { if (value == null) { @@ -264,7 +265,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java index 8452a04d746c..c65f0a0afa8d 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceClient.java @@ -24,6 +24,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. /** @@ -248,7 +249,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LanguageServiceClient implements BackgroundResource { - private final LanguageServiceSettings settings; + private final @Nullable LanguageServiceSettings settings; private final LanguageServiceStub stub; /** Constructs an instance of LanguageServiceClient with default settings. */ @@ -288,7 +289,7 @@ protected LanguageServiceClient(LanguageServiceStub stub) { this.stub = stub; } - public final LanguageServiceSettings getSettings() { + public final @Nullable LanguageServiceSettings getSettings() { return settings; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java index 51d9fa12e5a9..f6e2cb0eba2f 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/LanguageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LanguageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java index 9ab1a086f7bd..9b9d7a47d0f6 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -358,7 +359,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); analyzeSentimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java index fc7a3cfdbce3..7bb072d0b612 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceClient.java @@ -25,6 +25,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. /** @@ -250,7 +251,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LanguageServiceClient implements BackgroundResource { - private final LanguageServiceSettings settings; + private final @Nullable LanguageServiceSettings settings; private final LanguageServiceStub stub; /** Constructs an instance of LanguageServiceClient with default settings. */ @@ -290,7 +291,7 @@ protected LanguageServiceClient(LanguageServiceStub stub) { this.stub = stub; } - public final LanguageServiceSettings getSettings() { + public final @Nullable LanguageServiceSettings getSettings() { return settings; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java index 1abebfeb7588..303931977606 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/LanguageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -182,7 +183,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); } @@ -202,7 +203,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LanguageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java index 268d36541827..d6ee9a2a0942 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,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); } @@ -359,7 +360,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); analyzeSentimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java index a772f94631b7..6d5f90dbf1f7 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceClient.java @@ -24,6 +24,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. /** @@ -210,7 +211,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LanguageServiceClient implements BackgroundResource { - private final LanguageServiceSettings settings; + private final @Nullable LanguageServiceSettings settings; private final LanguageServiceStub stub; /** Constructs an instance of LanguageServiceClient with default settings. */ @@ -250,7 +251,7 @@ protected LanguageServiceClient(LanguageServiceStub stub) { this.stub = stub; } - public final LanguageServiceSettings getSettings() { + public final @Nullable LanguageServiceSettings getSettings() { return settings; } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceSettings.java index f1c4d8f5fa87..b076ee2b7541 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/LanguageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,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); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LanguageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java index 59947699655e..0e5f5594f085 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/LanguageServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,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); } @@ -329,7 +330,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); analyzeSentimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java index 64681c35bdd7..bba7f105ff3e 100644 --- a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerClient.java @@ -44,6 +44,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. /** @@ -416,7 +417,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LicenseManagerClient implements BackgroundResource { - private final LicenseManagerSettings settings; + private final @Nullable LicenseManagerSettings settings; private final LicenseManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -464,7 +465,7 @@ protected LicenseManagerClient(LicenseManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final LicenseManagerSettings getSettings() { + public final @Nullable LicenseManagerSettings getSettings() { return settings; } @@ -512,7 +513,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListConfigurationsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConfigurationsPagedResponse listConfigurations(LocationName parent) { + public final ListConfigurationsPagedResponse listConfigurations(@Nullable LocationName parent) { ListConfigurationsRequest request = ListConfigurationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -682,7 +683,7 @@ public final ListConfigurationsPagedResponse listConfigurations( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Configuration getConfiguration(ConfigurationName name) { + public final Configuration getConfiguration(@Nullable ConfigurationName name) { GetConfigurationRequest request = GetConfigurationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfiguration(request); @@ -801,7 +802,7 @@ public final UnaryCallable getConfigurat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConfigurationAsync( - LocationName parent, Configuration configuration, String configurationId) { + @Nullable LocationName parent, Configuration configuration, String configurationId) { CreateConfigurationRequest request = CreateConfigurationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1096,7 +1097,7 @@ public final UnaryCallable updateConfigur * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConfigurationAsync( - ConfigurationName name) { + @Nullable ConfigurationName name) { DeleteConfigurationRequest request = DeleteConfigurationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1246,7 +1247,7 @@ public final UnaryCallable deleteConfigur * @param parent Required. Parent value for ListInstancesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1412,7 +1413,7 @@ public final UnaryCallable listInst * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1521,7 +1522,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deactivateConfigurationAsync( - ConfigurationName name) { + @Nullable ConfigurationName name) { DeactivateConfigurationRequest request = DeactivateConfigurationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1672,7 +1673,7 @@ public final OperationFuture deactivateConfigu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reactivateConfigurationAsync( - ConfigurationName name) { + @Nullable ConfigurationName name) { ReactivateConfigurationRequest request = ReactivateConfigurationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1830,7 +1831,7 @@ public final OperationFuture reactivateConfigu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsage( - ConfigurationName name, Timestamp startTime, Timestamp endTime) { + @Nullable ConfigurationName name, Timestamp startTime, Timestamp endTime) { QueryConfigurationLicenseUsageRequest request = QueryConfigurationLicenseUsageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1976,7 +1977,7 @@ public final QueryConfigurationLicenseUsageResponse queryConfigurationLicenseUsa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AggregateUsagePagedResponse aggregateUsage( - ConfigurationName name, Timestamp startTime, Timestamp endTime) { + @Nullable ConfigurationName name, Timestamp startTime, Timestamp endTime) { AggregateUsageRequest request = AggregateUsageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2170,7 +2171,7 @@ public final AggregateUsagePagedResponse aggregateUsage(AggregateUsageRequest re * @param parent Required. Parent value for ListProductsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(LocationName parent) { + public final ListProductsPagedResponse listProducts(@Nullable LocationName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2336,7 +2337,7 @@ public final UnaryCallable listProduc * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -2640,8 +2641,9 @@ public static class ListConfigurationsPage ListConfigurationsPage> { private ListConfigurationsPage( - PageContext context, - ListConfigurationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConfigurationsResponse response) { super(context, response); } @@ -2651,14 +2653,16 @@ private static ListConfigurationsPage createEmptyPage() { @Override protected ListConfigurationsPage createPage( - PageContext context, - ListConfigurationsResponse response) { + @Nullable PageContext + context, + @Nullable ListConfigurationsResponse response) { return new ListConfigurationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2673,7 +2677,7 @@ public static class ListConfigurationsFixedSizeCollection ListConfigurationsFixedSizeCollection> { private ListConfigurationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2683,7 +2687,7 @@ private static ListConfigurationsFixedSizeCollection createEmptyCollection() { @Override protected ListConfigurationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConfigurationsFixedSizeCollection(pages, collectionSize); } } @@ -2717,8 +2721,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2728,14 +2732,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2749,7 +2753,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2759,7 +2764,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2793,8 +2798,8 @@ public static class AggregateUsagePage AggregateUsageRequest, AggregateUsageResponse, Usage, AggregateUsagePage> { private AggregateUsagePage( - PageContext context, - AggregateUsageResponse response) { + @Nullable PageContext context, + @Nullable AggregateUsageResponse response) { super(context, response); } @@ -2804,14 +2809,14 @@ private static AggregateUsagePage createEmptyPage() { @Override protected AggregateUsagePage createPage( - PageContext context, - AggregateUsageResponse response) { + @Nullable PageContext context, + @Nullable AggregateUsageResponse response) { return new AggregateUsagePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2825,7 +2830,8 @@ public static class AggregateUsageFixedSizeCollection AggregateUsagePage, AggregateUsageFixedSizeCollection> { - private AggregateUsageFixedSizeCollection(List pages, int collectionSize) { + private AggregateUsageFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2835,7 +2841,7 @@ private static AggregateUsageFixedSizeCollection createEmptyCollection() { @Override protected AggregateUsageFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregateUsageFixedSizeCollection(pages, collectionSize); } } @@ -2868,8 +2874,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -2879,14 +2885,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2900,7 +2906,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2910,7 +2917,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } @@ -2944,8 +2951,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2955,14 +2962,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2976,7 +2983,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2986,7 +2994,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java index a527d0046b90..65f55ceeb9e5 100644 --- a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/LicenseManagerSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -303,7 +304,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); } @@ -323,7 +324,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LicenseManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java index ee088f6d770e..ef956672909b 100644 --- a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStub.java @@ -56,6 +56,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,11 +68,12 @@ @Generated("by gapic-generator-java") public abstract class LicenseManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java index d59425f7f692..8ebf67083598 100644 --- a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/LicenseManagerStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -701,7 +702,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); } @@ -849,7 +850,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConfigurationsSettings = PagedCallSettings.newBuilder(LIST_CONFIGURATIONS_PAGE_STR_FACT); diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java index b0fd857bc4fa..81e12c37bfbb 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ConfigurationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String configuratio .toString(); } - public static ConfigurationName parse(String formattedString) { + public static @Nullable ConfigurationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigurationName> values) { List list = new ArrayList<>(values.size()); for (ConfigurationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java index 7463a7f2ba8d..4f0c12edb975 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java index 2de58df7b457..89c3241f2f0e 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java index 6d03cce03565..3a28b9ad6378 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/src/main/java/com/google/cloud/licensemanager/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String product) { .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java index 0760ca86ee36..bcd801ad2a44 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaClient.java @@ -41,6 +41,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. /** @@ -184,7 +185,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WorkflowsServiceV2BetaClient implements BackgroundResource { - private final WorkflowsServiceV2BetaSettings settings; + private final @Nullable WorkflowsServiceV2BetaSettings settings; private final WorkflowsServiceV2BetaStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -233,7 +234,7 @@ protected WorkflowsServiceV2BetaClient(WorkflowsServiceV2BetaStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkflowsServiceV2BetaSettings getSettings() { + public final @Nullable WorkflowsServiceV2BetaSettings getSettings() { return settings; } @@ -625,8 +626,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -636,14 +637,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -657,7 +658,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -667,7 +669,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaSettings.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaSettings.java index ed581d4fb12e..8972dc97e537 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaSettings.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/WorkflowsServiceV2BetaSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -202,7 +203,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); } @@ -223,7 +224,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkflowsServiceV2BetaStubSettings.newBuilder(clientContext)); } diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStub.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStub.java index d31741c70433..1e3352da9203 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStub.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class WorkflowsServiceV2BetaStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java index f7d0ebb2a74d..450f874a2f41 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/WorkflowsServiceV2BetaStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,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); } @@ -403,7 +404,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); runPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderClient.java b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderClient.java index b6ee12e54bad..e690530d702c 100644 --- a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderClient.java +++ b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderClient.java @@ -32,6 +32,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. /** @@ -185,7 +186,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudLocationFinderClient implements BackgroundResource { - private final CloudLocationFinderSettings settings; + private final @Nullable CloudLocationFinderSettings settings; private final CloudLocationFinderStub stub; /** Constructs an instance of CloudLocationFinderClient with default settings. */ @@ -225,7 +226,7 @@ protected CloudLocationFinderClient(CloudLocationFinderStub stub) { this.stub = stub; } - public final CloudLocationFinderSettings getSettings() { + public final @Nullable CloudLocationFinderSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public CloudLocationFinderStub getStub() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudLocationsPagedResponse listCloudLocations(LocationName parent) { + public final ListCloudLocationsPagedResponse listCloudLocations(@Nullable LocationName parent) { ListCloudLocationsRequest request = ListCloudLocationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -428,7 +429,7 @@ public final ListCloudLocationsPagedResponse listCloudLocations( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudLocation getCloudLocation(CloudLocationName name) { + public final CloudLocation getCloudLocation(@Nullable CloudLocationName name) { GetCloudLocationRequest request = GetCloudLocationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCloudLocation(request); @@ -553,7 +554,9 @@ public final UnaryCallable getCloudLocat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchCloudLocationsPagedResponse searchCloudLocations( - LocationName parent, CloudLocationName sourceCloudLocation, String query) { + @Nullable LocationName parent, + @Nullable CloudLocationName sourceCloudLocation, + String query) { SearchCloudLocationsRequest request = SearchCloudLocationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -599,7 +602,7 @@ public final SearchCloudLocationsPagedResponse searchCloudLocations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchCloudLocationsPagedResponse searchCloudLocations( - LocationName parent, String sourceCloudLocation, String query) { + @Nullable LocationName parent, String sourceCloudLocation, String query) { SearchCloudLocationsRequest request = SearchCloudLocationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -644,7 +647,7 @@ public final SearchCloudLocationsPagedResponse searchCloudLocations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchCloudLocationsPagedResponse searchCloudLocations( - String parent, CloudLocationName sourceCloudLocation, String query) { + String parent, @Nullable CloudLocationName sourceCloudLocation, String query) { SearchCloudLocationsRequest request = SearchCloudLocationsRequest.newBuilder() .setParent(parent) @@ -878,8 +881,9 @@ public static class ListCloudLocationsPage ListCloudLocationsPage> { private ListCloudLocationsPage( - PageContext context, - ListCloudLocationsResponse response) { + @Nullable PageContext + context, + @Nullable ListCloudLocationsResponse response) { super(context, response); } @@ -889,14 +893,16 @@ private static ListCloudLocationsPage createEmptyPage() { @Override protected ListCloudLocationsPage createPage( - PageContext context, - ListCloudLocationsResponse response) { + @Nullable PageContext + context, + @Nullable ListCloudLocationsResponse response) { return new ListCloudLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -911,7 +917,7 @@ public static class ListCloudLocationsFixedSizeCollection ListCloudLocationsFixedSizeCollection> { private ListCloudLocationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -921,7 +927,7 @@ private static ListCloudLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListCloudLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloudLocationsFixedSizeCollection(pages, collectionSize); } } @@ -959,9 +965,10 @@ public static class SearchCloudLocationsPage SearchCloudLocationsPage> { private SearchCloudLocationsPage( - PageContext + @Nullable + PageContext context, - SearchCloudLocationsResponse response) { + @Nullable SearchCloudLocationsResponse response) { super(context, response); } @@ -971,15 +978,17 @@ private static SearchCloudLocationsPage createEmptyPage() { @Override protected SearchCloudLocationsPage createPage( - PageContext + @Nullable + PageContext context, - SearchCloudLocationsResponse response) { + @Nullable SearchCloudLocationsResponse response) { return new SearchCloudLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -995,7 +1004,7 @@ public static class SearchCloudLocationsFixedSizeCollection SearchCloudLocationsFixedSizeCollection> { private SearchCloudLocationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1005,7 +1014,7 @@ private static SearchCloudLocationsFixedSizeCollection createEmptyCollection() { @Override protected SearchCloudLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCloudLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderSettings.java b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderSettings.java index 044d2edb85e7..e216e7a2b343 100644 --- a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderSettings.java +++ b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationFinderSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,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); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudLocationFinderStubSettings.newBuilder(clientContext)); } diff --git a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/CloudLocationFinderStubSettings.java b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/CloudLocationFinderStubSettings.java index 8d49b9e87cc5..1b824a107ae7 100644 --- a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/CloudLocationFinderStubSettings.java +++ b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/CloudLocationFinderStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -372,7 +373,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); } @@ -447,7 +448,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCloudLocationsSettings = PagedCallSettings.newBuilder(LIST_CLOUD_LOCATIONS_PAGE_STR_FACT); diff --git a/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationName.java b/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationName.java index afe22a480310..ffd07e864a6d 100644 --- a/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationName.java +++ b/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/CloudLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String cloudLocatio .toString(); } - public static CloudLocationName parse(String formattedString) { + public static @Nullable CloudLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudLocationName> values) { List list = new ArrayList<>(values.size()); for (CloudLocationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/LocationName.java b/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/LocationName.java index 02fa2b4a9966..b246bc3ffcca 100644 --- a/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/LocationName.java +++ b/java-locationfinder/proto-google-cloud-locationfinder-v1/src/main/java/com/google/cloud/locationfinder/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java index 023b7836d0e4..a8684d786baf 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -97,6 +97,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. /** @@ -755,7 +756,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigClient implements BackgroundResource { - private final ConfigSettings settings; + private final @Nullable ConfigSettings settings; private final ConfigServiceV2Stub stub; private final OperationsClient operationsClient; @@ -796,7 +797,7 @@ protected ConfigClient(ConfigServiceV2Stub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ConfigSettings getSettings() { + public final @Nullable ConfigSettings getSettings() { return settings; } @@ -842,7 +843,7 @@ public final OperationsClient getOperationsClient() { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable BillingAccountLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -879,7 +880,7 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable FolderLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -916,7 +917,7 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(LocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable LocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -953,7 +954,7 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(OrganizationLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable OrganizationLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2030,7 +2031,7 @@ public final UnaryCallable deleteViewCallable() { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(BillingAccountName parent) { + public final ListSinksPagedResponse listSinks(@Nullable BillingAccountName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -2061,7 +2062,7 @@ public final ListSinksPagedResponse listSinks(BillingAccountName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(FolderName parent) { + public final ListSinksPagedResponse listSinks(@Nullable FolderName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -2092,7 +2093,7 @@ public final ListSinksPagedResponse listSinks(FolderName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(OrganizationName parent) { + public final ListSinksPagedResponse listSinks(@Nullable OrganizationName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -2123,7 +2124,7 @@ public final ListSinksPagedResponse listSinks(OrganizationName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(ProjectName parent) { + public final ListSinksPagedResponse listSinks(@Nullable ProjectName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -2287,7 +2288,7 @@ public final UnaryCallable listSinksCallabl *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink getSink(LogSinkName sinkName) { + public final LogSink getSink(@Nullable LogSinkName sinkName) { GetSinkRequest request = GetSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2413,7 +2414,7 @@ public final UnaryCallable getSinkCallable() { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(BillingAccountName parent, LogSink sink) { + public final LogSink createSink(@Nullable BillingAccountName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2453,7 +2454,7 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(FolderName parent, LogSink sink) { + public final LogSink createSink(@Nullable FolderName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2493,7 +2494,7 @@ public final LogSink createSink(FolderName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(OrganizationName parent, LogSink sink) { + public final LogSink createSink(@Nullable OrganizationName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2533,7 +2534,7 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(ProjectName parent, LogSink sink) { + public final LogSink createSink(@Nullable ProjectName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2679,7 +2680,7 @@ public final UnaryCallable createSinkCallable() { * of `sink_name`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { + public final LogSink updateSink(@Nullable LogSinkName sinkName, LogSink sink) { UpdateSinkRequest request = UpdateSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2776,7 +2777,8 @@ public final LogSink updateSink(String sinkName, LogSink sink) { *

For example: `updateMask=filter` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) { + public final LogSink updateSink( + @Nullable LogSinkName sinkName, LogSink sink, FieldMask updateMask) { UpdateSinkRequest request = UpdateSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2941,7 +2943,7 @@ public final UnaryCallable updateSinkCallable() { *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSink(LogSinkName sinkName) { + public final void deleteSink(@Nullable LogSinkName sinkName) { DeleteSinkRequest request = DeleteSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -3073,7 +3075,7 @@ public final UnaryCallable deleteSinkCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLinkAsync( - LogBucketName parent, Link link, String linkId) { + @Nullable LogBucketName parent, Link link, String linkId) { CreateLinkRequest request = CreateLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3248,7 +3250,7 @@ public final UnaryCallable createLinkCallable() { * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteLinkAsync(LinkName name) { + public final OperationFuture deleteLinkAsync(@Nullable LinkName name) { DeleteLinkRequest request = DeleteLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteLinkAsync(request); @@ -3407,7 +3409,7 @@ public final UnaryCallable deleteLinkCallable() { * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLinksPagedResponse listLinks(LogBucketName parent) { + public final ListLinksPagedResponse listLinks(@Nullable LogBucketName parent) { ListLinksRequest request = ListLinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLinks(request); @@ -3580,7 +3582,7 @@ public final UnaryCallable listLinksCallabl * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Link getLink(LinkName name) { + public final Link getLink(@Nullable LinkName name) { GetLinkRequest request = GetLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLink(request); @@ -3704,7 +3706,7 @@ public final UnaryCallable getLinkCallable() { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(BillingAccountName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable BillingAccountName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3737,7 +3739,7 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(FolderName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable FolderName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3770,7 +3772,7 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable OrganizationName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3803,7 +3805,7 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(ProjectName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable ProjectName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3972,7 +3974,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion getExclusion(LogExclusionName name) { + public final LogExclusion getExclusion(@Nullable LogExclusionName name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExclusion(request); @@ -4096,7 +4098,8 @@ public final UnaryCallable getExclusionCallab * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(BillingAccountName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion( + @Nullable BillingAccountName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4134,7 +4137,7 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(FolderName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion(@Nullable FolderName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4172,7 +4175,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(OrganizationName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion( + @Nullable OrganizationName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4210,7 +4214,7 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion(@Nullable ProjectName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4351,7 +4355,7 @@ public final UnaryCallable createExclusion * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion updateExclusion( - LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { + @Nullable LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { UpdateExclusionRequest request = UpdateExclusionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4497,7 +4501,7 @@ public final UnaryCallable updateExclusion *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExclusion(LogExclusionName name) { + public final void deleteExclusion(@Nullable LogExclusionName name) { DeleteExclusionRequest request = DeleteExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExclusion(request); @@ -4782,7 +4786,7 @@ public final UnaryCallable updateCmekSe * Cloud organization. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -5180,8 +5184,8 @@ public static class ListBucketsPage extends AbstractPage { private ListBucketsPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { super(context, response); } @@ -5191,14 +5195,14 @@ private static ListBucketsPage createEmptyPage() { @Override protected ListBucketsPage createPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { return new ListBucketsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5212,7 +5216,8 @@ public static class ListBucketsFixedSizeCollection ListBucketsPage, ListBucketsFixedSizeCollection> { - private ListBucketsFixedSizeCollection(List pages, int collectionSize) { + private ListBucketsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5222,7 +5227,7 @@ private static ListBucketsFixedSizeCollection createEmptyCollection() { @Override protected ListBucketsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBucketsFixedSizeCollection(pages, collectionSize); } } @@ -5253,8 +5258,8 @@ public static class ListViewsPage extends AbstractPage { private ListViewsPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { super(context, response); } @@ -5264,14 +5269,14 @@ private static ListViewsPage createEmptyPage() { @Override protected ListViewsPage createPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { return new ListViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5285,7 +5290,7 @@ public static class ListViewsFixedSizeCollection ListViewsPage, ListViewsFixedSizeCollection> { - private ListViewsFixedSizeCollection(List pages, int collectionSize) { + private ListViewsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5295,7 +5300,7 @@ private static ListViewsFixedSizeCollection createEmptyCollection() { @Override protected ListViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViewsFixedSizeCollection(pages, collectionSize); } } @@ -5326,8 +5331,8 @@ public static class ListSinksPage extends AbstractPage { private ListSinksPage( - PageContext context, - ListSinksResponse response) { + @Nullable PageContext context, + @Nullable ListSinksResponse response) { super(context, response); } @@ -5337,14 +5342,14 @@ private static ListSinksPage createEmptyPage() { @Override protected ListSinksPage createPage( - PageContext context, - ListSinksResponse response) { + @Nullable PageContext context, + @Nullable ListSinksResponse response) { return new ListSinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5358,7 +5363,7 @@ public static class ListSinksFixedSizeCollection ListSinksPage, ListSinksFixedSizeCollection> { - private ListSinksFixedSizeCollection(List pages, int collectionSize) { + private ListSinksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5368,7 +5373,7 @@ private static ListSinksFixedSizeCollection createEmptyCollection() { @Override protected ListSinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSinksFixedSizeCollection(pages, collectionSize); } } @@ -5395,8 +5400,8 @@ public static class ListLinksPage extends AbstractPage { private ListLinksPage( - PageContext context, - ListLinksResponse response) { + @Nullable PageContext context, + @Nullable ListLinksResponse response) { super(context, response); } @@ -5406,14 +5411,14 @@ private static ListLinksPage createEmptyPage() { @Override protected ListLinksPage createPage( - PageContext context, - ListLinksResponse response) { + @Nullable PageContext context, + @Nullable ListLinksResponse response) { return new ListLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5423,7 +5428,7 @@ public static class ListLinksFixedSizeCollection extends AbstractFixedSizeCollection< ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { - private ListLinksFixedSizeCollection(List pages, int collectionSize) { + private ListLinksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5433,7 +5438,7 @@ private static ListLinksFixedSizeCollection createEmptyCollection() { @Override protected ListLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLinksFixedSizeCollection(pages, collectionSize); } } @@ -5467,8 +5472,8 @@ public static class ListExclusionsPage ListExclusionsRequest, ListExclusionsResponse, LogExclusion, ListExclusionsPage> { private ListExclusionsPage( - PageContext context, - ListExclusionsResponse response) { + @Nullable PageContext context, + @Nullable ListExclusionsResponse response) { super(context, response); } @@ -5478,14 +5483,14 @@ private static ListExclusionsPage createEmptyPage() { @Override protected ListExclusionsPage createPage( - PageContext context, - ListExclusionsResponse response) { + @Nullable PageContext context, + @Nullable ListExclusionsResponse response) { return new ListExclusionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5499,7 +5504,8 @@ public static class ListExclusionsFixedSizeCollection ListExclusionsPage, ListExclusionsFixedSizeCollection> { - private ListExclusionsFixedSizeCollection(List pages, int collectionSize) { + private ListExclusionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5509,7 +5515,7 @@ private static ListExclusionsFixedSizeCollection createEmptyCollection() { @Override protected ListExclusionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExclusionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java index bfbee5899272..421bbe44499a 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -405,7 +406,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -425,7 +426,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java index 03f5ae310809..ce7eb0ae95ef 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -54,6 +54,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. /** @@ -232,7 +233,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LoggingClient implements BackgroundResource { - private final LoggingSettings settings; + private final @Nullable LoggingSettings settings; private final LoggingServiceV2Stub stub; /** Constructs an instance of LoggingClient with default settings. */ @@ -270,7 +271,7 @@ protected LoggingClient(LoggingServiceV2Stub stub) { this.stub = stub; } - public final LoggingSettings getSettings() { + public final @Nullable LoggingSettings getSettings() { return settings; } @@ -311,7 +312,7 @@ public LoggingServiceV2Stub getStub() { *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLog(LogName logName) { + public final void deleteLog(@Nullable LogName logName) { DeleteLogRequest request = DeleteLogRequest.newBuilder() .setLogName(logName == null ? null : logName.toString()) @@ -488,7 +489,7 @@ public final UnaryCallable deleteLogCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteLogEntriesResponse writeLogEntries( - LogName logName, + @Nullable LogName logName, MonitoredResource resource, Map labels, List entries) { @@ -975,7 +976,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(BillingAccountName parent) { + public final ListLogsPagedResponse listLogs(@Nullable BillingAccountName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1012,7 +1013,7 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(FolderName parent) { + public final ListLogsPagedResponse listLogs(@Nullable FolderName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1049,7 +1050,7 @@ public final ListLogsPagedResponse listLogs(FolderName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(OrganizationName parent) { + public final ListLogsPagedResponse listLogs(@Nullable OrganizationName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1086,7 +1087,7 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(ProjectName parent) { + public final ListLogsPagedResponse listLogs(@Nullable ProjectName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1328,8 +1329,8 @@ public static class ListLogEntriesPage ListLogEntriesRequest, ListLogEntriesResponse, LogEntry, ListLogEntriesPage> { private ListLogEntriesPage( - PageContext context, - ListLogEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListLogEntriesResponse response) { super(context, response); } @@ -1339,14 +1340,14 @@ private static ListLogEntriesPage createEmptyPage() { @Override protected ListLogEntriesPage createPage( - PageContext context, - ListLogEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListLogEntriesResponse response) { return new ListLogEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1360,7 +1361,8 @@ public static class ListLogEntriesFixedSizeCollection ListLogEntriesPage, ListLogEntriesFixedSizeCollection> { - private ListLogEntriesFixedSizeCollection(List pages, int collectionSize) { + private ListLogEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1370,7 +1372,7 @@ private static ListLogEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListLogEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogEntriesFixedSizeCollection(pages, collectionSize); } } @@ -1413,12 +1415,13 @@ public static class ListMonitoredResourceDescriptorsPage ListMonitoredResourceDescriptorsPage> { private ListMonitoredResourceDescriptorsPage( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable ListMonitoredResourceDescriptorsResponse response) { super(context, response); } @@ -1428,18 +1431,20 @@ private static ListMonitoredResourceDescriptorsPage createEmptyPage() { @Override protected ListMonitoredResourceDescriptorsPage createPage( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable ListMonitoredResourceDescriptorsResponse response) { return new ListMonitoredResourceDescriptorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> @@ -1458,7 +1463,7 @@ public static class ListMonitoredResourceDescriptorsFixedSizeCollection ListMonitoredResourceDescriptorsFixedSizeCollection> { private ListMonitoredResourceDescriptorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1468,7 +1473,7 @@ private static ListMonitoredResourceDescriptorsFixedSizeCollection createEmptyCo @Override protected ListMonitoredResourceDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMonitoredResourceDescriptorsFixedSizeCollection(pages, collectionSize); } } @@ -1495,7 +1500,8 @@ public static class ListLogsPage extends AbstractPage { private ListLogsPage( - PageContext context, ListLogsResponse response) { + @Nullable PageContext context, + @Nullable ListLogsResponse response) { super(context, response); } @@ -1505,13 +1511,14 @@ private static ListLogsPage createEmptyPage() { @Override protected ListLogsPage createPage( - PageContext context, ListLogsResponse response) { + @Nullable PageContext context, + @Nullable ListLogsResponse response) { return new ListLogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1521,7 +1528,7 @@ public static class ListLogsFixedSizeCollection extends AbstractFixedSizeCollection< ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { - private ListLogsFixedSizeCollection(List pages, int collectionSize) { + private ListLogsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1531,7 +1538,7 @@ private static ListLogsFixedSizeCollection createEmptyCollection() { @Override protected ListLogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java index f5586807e30b..e633714d1363 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -206,7 +207,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LoggingServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java index 298de5923a4d..5739ab3e14bd 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -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. /** @@ -211,7 +212,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetricsClient implements BackgroundResource { - private final MetricsSettings settings; + private final @Nullable MetricsSettings settings; private final MetricsServiceV2Stub stub; /** Constructs an instance of MetricsClient with default settings. */ @@ -249,7 +250,7 @@ protected MetricsClient(MetricsServiceV2Stub stub) { this.stub = stub; } - public final MetricsSettings getSettings() { + public final @Nullable MetricsSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public MetricsServiceV2Stub getStub() { *

"projects/[PROJECT_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) { + public final ListLogMetricsPagedResponse listLogMetrics(@Nullable ProjectName parent) { ListLogMetricsRequest request = ListLogMetricsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -443,7 +444,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric getLogMetric(LogMetricName metricName) { + public final LogMetric getLogMetric(@Nullable LogMetricName metricName) { GetLogMetricRequest request = GetLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -560,7 +561,7 @@ public final UnaryCallable getLogMetricCallable( * already exists. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) { + public final LogMetric createLogMetric(@Nullable ProjectName parent, LogMetric metric) { CreateLogMetricRequest request = CreateLogMetricRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -685,7 +686,7 @@ public final UnaryCallable createLogMetricCal * @param metric Required. The updated metric. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metric) { + public final LogMetric updateLogMetric(@Nullable LogMetricName metricName, LogMetric metric) { UpdateLogMetricRequest request = UpdateLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -806,7 +807,7 @@ public final UnaryCallable updateLogMetricCal *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLogMetric(LogMetricName metricName) { + public final void deleteLogMetric(@Nullable LogMetricName metricName) { DeleteLogMetricRequest request = DeleteLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -956,8 +957,8 @@ public static class ListLogMetricsPage ListLogMetricsRequest, ListLogMetricsResponse, LogMetric, ListLogMetricsPage> { private ListLogMetricsPage( - PageContext context, - ListLogMetricsResponse response) { + @Nullable PageContext context, + @Nullable ListLogMetricsResponse response) { super(context, response); } @@ -967,14 +968,14 @@ private static ListLogMetricsPage createEmptyPage() { @Override protected ListLogMetricsPage createPage( - PageContext context, - ListLogMetricsResponse response) { + @Nullable PageContext context, + @Nullable ListLogMetricsResponse response) { return new ListLogMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -988,7 +989,8 @@ public static class ListLogMetricsFixedSizeCollection ListLogMetricsPage, ListLogMetricsFixedSizeCollection> { - private ListLogMetricsFixedSizeCollection(List pages, int collectionSize) { + private ListLogMetricsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -998,7 +1000,7 @@ private static ListLogMetricsFixedSizeCollection createEmptyCollection() { @Override protected ListLogMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogMetricsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java index 89db1c653f4d..68f72b315b1e 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -185,7 +186,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetricsServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 361610f53074..2a6d971d008f 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -76,6 +76,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -87,7 +88,7 @@ @Generated("by gapic-generator-java") public abstract class ConfigServiceV2Stub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index 6cf934ed1fa6..ee807f018385 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -106,6 +106,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -770,7 +771,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -947,7 +948,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listBucketsSettings = PagedCallSettings.newBuilder(LIST_BUCKETS_PAGE_STR_FACT); diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 4adba30cfdbc..5d2273a8b92f 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -507,7 +508,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -613,7 +614,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteLogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index 84009acad51e..2bfcbcadd9d5 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -368,7 +369,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLogMetricsSettings = PagedCallSettings.newBuilder(LIST_LOG_METRICS_PAGE_STR_FACT); diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java index 178a8e99bf96..dd867770c557 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String billingAccount, String location) { return newBuilder().setBillingAccount(billingAccount).setLocation(location).build().toString(); } - public static BillingAccountLocationName parse(String formattedString) { + public static @Nullable BillingAccountLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountLocationName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountLocationName value : values) { if (value == null) { @@ -138,7 +139,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java index 7a0fcf839421..f54a4f2d3510 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String billingAccount) { return newBuilder().setBillingAccount(billingAccount).build().toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java index 322d31849d48..86398de985a0 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -246,7 +247,7 @@ public static String formatBillingAccountCmekSettingsName(String billingAccount) .toString(); } - public static CmekSettingsName parse(String formattedString) { + public static @Nullable CmekSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -274,7 +275,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmekSettingsName> values) { List list = new ArrayList<>(values.size()); for (CmekSettingsName value : values) { if (value == null) { @@ -328,7 +329,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java index 4676ef17d701..dd98958024b4 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java index ad975e6564ff..1aad3dad5014 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java index ab07edb52275..cd4574b22509 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -266,7 +267,7 @@ public static String formatBillingAccountLocationBucketLinkName( .toString(); } - public static LinkName parse(String formattedString) { + public static @Nullable LinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -310,7 +311,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LinkName> values) { List list = new ArrayList<>(values.size()); for (LinkName value : values) { if (value == null) { @@ -373,7 +374,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java index e869cb57f633..0361527b6af9 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java index d99362e3017c..201618cf86af 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -237,7 +238,7 @@ public static String formatBillingAccountLocationBucketName( .toString(); } - public static LogBucketName parse(String formattedString) { + public static @Nullable LogBucketName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -269,7 +270,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogBucketName> values) { List list = new ArrayList<>(values.size()); for (LogBucketName value : values) { if (value == null) { @@ -329,7 +330,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java index cd76608933f8..3b52b38efe7d 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -195,7 +196,7 @@ public static String formatBillingAccountExclusionName(String billingAccount, St .toString(); } - public static LogExclusionName parse(String formattedString) { + public static @Nullable LogExclusionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -224,7 +225,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogExclusionName> values) { List list = new ArrayList<>(values.size()); for (LogExclusionName value : values) { if (value == null) { @@ -281,7 +282,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java index 4ed25f0ecaf5..9d9be5dee7c4 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String metric) { return newBuilder().setProject(project).setMetric(metric).build().toString(); } - public static LogMetricName parse(String formattedString) { + public static @Nullable LogMetricName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogMetricName> values) { List list = new ArrayList<>(values.size()); for (LogMetricName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java index 82c52e01b39f..810f546798c5 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -182,7 +183,7 @@ public static String formatBillingAccountLogName(String billingAccount, String l .toString(); } - public static LogName parse(String formattedString) { + public static @Nullable LogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -210,7 +211,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogName> values) { List list = new ArrayList<>(values.size()); for (LogName value : values) { if (value == null) { @@ -267,7 +268,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java index 1013e78a94be..be2d5c3a0e76 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -186,7 +187,7 @@ public static String formatBillingAccountSinkName(String billingAccount, String .toString(); } - public static LogSinkName parse(String formattedString) { + public static @Nullable LogSinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -214,7 +215,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogSinkName> values) { List list = new ArrayList<>(values.size()); for (LogSinkName value : values) { if (value == null) { @@ -271,7 +272,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java index 3654b06beb3a..711956ad319e 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -266,7 +267,7 @@ public static String formatBillingAccountLocationBucketViewName( .toString(); } - public static LogViewName parse(String formattedString) { + public static @Nullable LogViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -310,7 +311,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogViewName> values) { List list = new ArrayList<>(values.size()); for (LogViewName value : values) { if (value == null) { @@ -373,7 +374,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java index 63390df42c17..7aaa27d894ad 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java index d90f4ff73657..b64f94f47624 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java index 2cc797351ff5..49ba4e97dc04 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java index c3cbf592dab3..84683056be3a 100644 --- a/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java +++ b/java-logging/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -168,7 +169,7 @@ public static String formatBillingAccountName(String billingAccount) { return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -196,7 +197,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -250,7 +251,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreClient.java b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreClient.java index 5e86516dd6be..51e9f67c54f2 100644 --- a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreClient.java +++ b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreClient.java @@ -43,6 +43,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. /** @@ -291,7 +292,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LustreClient implements BackgroundResource { - private final LustreSettings settings; + private final @Nullable LustreSettings settings; private final LustreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -337,7 +338,7 @@ protected LustreClient(LustreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final LustreSettings getSettings() { + public final @Nullable LustreSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -557,7 +558,7 @@ public final UnaryCallable listInst * `projects/{projectId}/locations/{location}/instances/{instanceId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -680,7 +681,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -977,7 +978,8 @@ public final UnaryCallable updateInstanceCalla * `projects/{projectId}/locations/{location}/instances/{instanceId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1121,7 +1123,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importDataAsync( - InstanceName name) { + @Nullable InstanceName name) { ImportDataRequest request = ImportDataRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return importDataAsync(request); @@ -1550,8 +1552,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1561,14 +1563,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1582,7 +1584,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1592,7 +1595,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -1626,8 +1629,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1637,14 +1640,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1658,7 +1661,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1668,7 +1672,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreSettings.java b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreSettings.java index d7a5174b7209..b708a2ae4dc0 100644 --- a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreSettings.java +++ b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/LustreSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -254,7 +255,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); } @@ -274,7 +275,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LustreStubSettings.newBuilder(clientContext)); } diff --git a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStub.java b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStub.java index ac6feb05173e..05a9b1151a5c 100644 --- a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStub.java +++ b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class LustreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStubSettings.java b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStubSettings.java index 8d9a6d347c9c..76fdf25caa37 100644 --- a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStubSettings.java +++ b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/LustreStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -462,7 +463,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); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/InstanceName.java b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/InstanceName.java index 484ef1205a63..37b178c91619 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/InstanceName.java +++ b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LocationName.java b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LocationName.java index 0728a414cb4c..8f3c386bbf55 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LocationName.java +++ b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/ServiceAccountName.java b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/ServiceAccountName.java index 3cce4c5afeed..e5dcbfd125b6 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/ServiceAccountName.java +++ b/java-lustre/proto-google-cloud-lustre-v1/src/main/java/com/google/cloud/lustre/v1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceClient.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceClient.java index 0925f16504a0..fbce157733d6 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceClient.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceClient.java @@ -36,6 +36,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. /** @@ -212,7 +213,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MaintenanceClient implements BackgroundResource { - private final MaintenanceSettings settings; + private final @Nullable MaintenanceSettings settings; private final MaintenanceStub stub; /** Constructs an instance of MaintenanceClient with default settings. */ @@ -251,7 +252,7 @@ protected MaintenanceClient(MaintenanceStub stub) { this.stub = stub; } - public final MaintenanceSettings getSettings() { + public final @Nullable MaintenanceSettings getSettings() { return settings; } @@ -284,7 +285,8 @@ public MaintenanceStub getStub() { * `projects/123/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SummarizeMaintenancesPagedResponse summarizeMaintenances(LocationName parent) { + public final SummarizeMaintenancesPagedResponse summarizeMaintenances( + @Nullable LocationName parent) { SummarizeMaintenancesRequest request = SummarizeMaintenancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -460,7 +462,8 @@ public final SummarizeMaintenancesPagedResponse summarizeMaintenances( * @param parent Required. The parent of the resource maintenance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceMaintenancesPagedResponse listResourceMaintenances(LocationName parent) { + public final ListResourceMaintenancesPagedResponse listResourceMaintenances( + @Nullable LocationName parent) { ListResourceMaintenancesRequest request = ListResourceMaintenancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -633,7 +636,7 @@ public final ListResourceMaintenancesPagedResponse listResourceMaintenances( * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceMaintenance getResourceMaintenance(ResourceMaintenanceName name) { + public final ResourceMaintenance getResourceMaintenance(@Nullable ResourceMaintenanceName name) { GetResourceMaintenanceRequest request = GetResourceMaintenanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -949,9 +952,11 @@ public static class SummarizeMaintenancesPage SummarizeMaintenancesPage> { private SummarizeMaintenancesPage( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, - SummarizeMaintenancesResponse response) { + @Nullable SummarizeMaintenancesResponse response) { super(context, response); } @@ -961,15 +966,19 @@ private static SummarizeMaintenancesPage createEmptyPage() { @Override protected SummarizeMaintenancesPage createPage( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, - SummarizeMaintenancesResponse response) { + @Nullable SummarizeMaintenancesResponse response) { return new SummarizeMaintenancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -985,7 +994,7 @@ public static class SummarizeMaintenancesFixedSizeCollection SummarizeMaintenancesFixedSizeCollection> { private SummarizeMaintenancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -995,7 +1004,7 @@ private static SummarizeMaintenancesFixedSizeCollection createEmptyCollection() @Override protected SummarizeMaintenancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SummarizeMaintenancesFixedSizeCollection(pages, collectionSize); } } @@ -1036,12 +1045,13 @@ public static class ListResourceMaintenancesPage ListResourceMaintenancesPage> { private ListResourceMaintenancesPage( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> context, - ListResourceMaintenancesResponse response) { + @Nullable ListResourceMaintenancesResponse response) { super(context, response); } @@ -1051,18 +1061,20 @@ private static ListResourceMaintenancesPage createEmptyPage() { @Override protected ListResourceMaintenancesPage createPage( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> context, - ListResourceMaintenancesResponse response) { + @Nullable ListResourceMaintenancesResponse response) { return new ListResourceMaintenancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> @@ -1081,7 +1093,7 @@ public static class ListResourceMaintenancesFixedSizeCollection ListResourceMaintenancesFixedSizeCollection> { private ListResourceMaintenancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1091,7 +1103,7 @@ private static ListResourceMaintenancesFixedSizeCollection createEmptyCollection @Override protected ListResourceMaintenancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceMaintenancesFixedSizeCollection(pages, collectionSize); } } @@ -1125,8 +1137,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1136,14 +1148,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1157,7 +1169,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1167,7 +1180,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceSettings.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceSettings.java index b1932c17d4f8..93643b83281e 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceSettings.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/MaintenanceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,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); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MaintenanceStubSettings.newBuilder(clientContext)); } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/MaintenanceStubSettings.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/MaintenanceStubSettings.java index 10b6b86e9a84..5547732f299b 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/MaintenanceStubSettings.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/MaintenanceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -464,7 +465,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); } @@ -535,7 +536,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); summarizeMaintenancesSettings = diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceClient.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceClient.java index 2a28578e70dd..96ee3891e849 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceClient.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceClient.java @@ -37,6 +37,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. /** @@ -214,7 +215,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MaintenanceClient implements BackgroundResource { - private final MaintenanceSettings settings; + private final @Nullable MaintenanceSettings settings; private final MaintenanceStub stub; /** Constructs an instance of MaintenanceClient with default settings. */ @@ -253,7 +254,7 @@ protected MaintenanceClient(MaintenanceStub stub) { this.stub = stub; } - public final MaintenanceSettings getSettings() { + public final @Nullable MaintenanceSettings getSettings() { return settings; } @@ -286,7 +287,8 @@ public MaintenanceStub getStub() { * `projects/123/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SummarizeMaintenancesPagedResponse summarizeMaintenances(LocationName parent) { + public final SummarizeMaintenancesPagedResponse summarizeMaintenances( + @Nullable LocationName parent) { SummarizeMaintenancesRequest request = SummarizeMaintenancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -462,7 +464,8 @@ public final SummarizeMaintenancesPagedResponse summarizeMaintenances( * @param parent Required. The parent of the resource maintenance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListResourceMaintenancesPagedResponse listResourceMaintenances(LocationName parent) { + public final ListResourceMaintenancesPagedResponse listResourceMaintenances( + @Nullable LocationName parent) { ListResourceMaintenancesRequest request = ListResourceMaintenancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -635,7 +638,7 @@ public final ListResourceMaintenancesPagedResponse listResourceMaintenances( * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceMaintenance getResourceMaintenance(ResourceMaintenanceName name) { + public final ResourceMaintenance getResourceMaintenance(@Nullable ResourceMaintenanceName name) { GetResourceMaintenanceRequest request = GetResourceMaintenanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -951,9 +954,11 @@ public static class SummarizeMaintenancesPage SummarizeMaintenancesPage> { private SummarizeMaintenancesPage( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, - SummarizeMaintenancesResponse response) { + @Nullable SummarizeMaintenancesResponse response) { super(context, response); } @@ -963,15 +968,19 @@ private static SummarizeMaintenancesPage createEmptyPage() { @Override protected SummarizeMaintenancesPage createPage( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, - SummarizeMaintenancesResponse response) { + @Nullable SummarizeMaintenancesResponse response) { return new SummarizeMaintenancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SummarizeMaintenancesRequest, SummarizeMaintenancesResponse, MaintenanceSummary> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -987,7 +996,7 @@ public static class SummarizeMaintenancesFixedSizeCollection SummarizeMaintenancesFixedSizeCollection> { private SummarizeMaintenancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -997,7 +1006,7 @@ private static SummarizeMaintenancesFixedSizeCollection createEmptyCollection() @Override protected SummarizeMaintenancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SummarizeMaintenancesFixedSizeCollection(pages, collectionSize); } } @@ -1038,12 +1047,13 @@ public static class ListResourceMaintenancesPage ListResourceMaintenancesPage> { private ListResourceMaintenancesPage( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> context, - ListResourceMaintenancesResponse response) { + @Nullable ListResourceMaintenancesResponse response) { super(context, response); } @@ -1053,18 +1063,20 @@ private static ListResourceMaintenancesPage createEmptyPage() { @Override protected ListResourceMaintenancesPage createPage( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> context, - ListResourceMaintenancesResponse response) { + @Nullable ListResourceMaintenancesResponse response) { return new ListResourceMaintenancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceMaintenancesRequest, ListResourceMaintenancesResponse, ResourceMaintenance> @@ -1083,7 +1095,7 @@ public static class ListResourceMaintenancesFixedSizeCollection ListResourceMaintenancesFixedSizeCollection> { private ListResourceMaintenancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1093,7 +1105,7 @@ private static ListResourceMaintenancesFixedSizeCollection createEmptyCollection @Override protected ListResourceMaintenancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceMaintenancesFixedSizeCollection(pages, collectionSize); } } @@ -1127,8 +1139,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1138,14 +1150,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1159,7 +1171,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1169,7 +1182,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSettings.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSettings.java index 70b248ecaa17..73efac0ad6b0 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSettings.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/MaintenanceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,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); } @@ -206,7 +207,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MaintenanceStubSettings.newBuilder(clientContext)); } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/MaintenanceStubSettings.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/MaintenanceStubSettings.java index dab8e3147afd..0b939eb64c6c 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/MaintenanceStubSettings.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/MaintenanceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -465,7 +466,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); } @@ -536,7 +537,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); summarizeMaintenancesSettings = diff --git a/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/LocationName.java b/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/LocationName.java index e3b4cde7c49e..75ca681a272b 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/LocationName.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/ResourceMaintenanceName.java b/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/ResourceMaintenanceName.java index 0a82530247b5..9da59f48e523 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/ResourceMaintenanceName.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1/src/main/java/com/google/cloud/maintenance/api/v1/ResourceMaintenanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String resourceMain .toString(); } - public static ResourceMaintenanceName parse(String formattedString) { + public static @Nullable ResourceMaintenanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceMaintenanceName> values) { List list = new ArrayList<>(values.size()); for (ResourceMaintenanceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/LocationName.java b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/LocationName.java index 9d792a8296a4..722c4417a5d8 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/LocationName.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/ResourceMaintenanceName.java b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/ResourceMaintenanceName.java index 8a2af5e0dea5..aacd10580778 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/ResourceMaintenanceName.java +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/src/main/java/com/google/cloud/maintenance/api/v1beta/ResourceMaintenanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String resourceMain .toString(); } - public static ResourceMaintenanceName parse(String formattedString) { + public static @Nullable ResourceMaintenanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceMaintenanceName> values) { List list = new ArrayList<>(values.size()); for (ResourceMaintenanceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java index 42dc828ed587..f211905f2434 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceClient.java @@ -38,6 +38,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. /** @@ -341,7 +342,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ManagedIdentitiesServiceClient implements BackgroundResource { - private final ManagedIdentitiesServiceSettings settings; + private final @Nullable ManagedIdentitiesServiceSettings settings; private final ManagedIdentitiesServiceStub stub; private final OperationsClient operationsClient; @@ -386,7 +387,7 @@ protected ManagedIdentitiesServiceClient(ManagedIdentitiesServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ManagedIdentitiesServiceSettings getSettings() { + public final @Nullable ManagedIdentitiesServiceSettings getSettings() { return settings; } @@ -439,7 +440,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMicrosoftAdDomainAsync( - LocationName parent, String domainName, Domain domain) { + @Nullable LocationName parent, String domainName, Domain domain) { CreateMicrosoftAdDomainRequest request = CreateMicrosoftAdDomainRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -617,7 +618,7 @@ public final OperationFuture createMicrosoftAdDomainAsync( * `projects/{project_id}/locations/global/domains/{domain_name}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResetAdminPasswordResponse resetAdminPassword(DomainName name) { + public final ResetAdminPasswordResponse resetAdminPassword(@Nullable DomainName name) { ResetAdminPasswordRequest request = ResetAdminPasswordRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -739,7 +740,7 @@ public final ResetAdminPasswordResponse resetAdminPassword(ResetAdminPasswordReq * `projects/{project_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDomainsPagedResponse listDomains(LocationName parent) { + public final ListDomainsPagedResponse listDomains(@Nullable LocationName parent) { ListDomainsRequest request = ListDomainsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -913,7 +914,7 @@ public final UnaryCallable listDomainsC * `projects/{project_id}/locations/global/domains/{domain_name}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Domain getDomain(DomainName name) { + public final Domain getDomain(@Nullable DomainName name) { GetDomainRequest request = GetDomainRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDomain(request); @@ -1154,7 +1155,7 @@ public final UnaryCallable updateDomainCallable( * `projects/{project_id}/locations/global/domains/{domain_name}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDomainAsync(DomainName name) { + public final OperationFuture deleteDomainAsync(@Nullable DomainName name) { DeleteDomainRequest request = DeleteDomainRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDomainAsync(request); @@ -1301,7 +1302,8 @@ public final UnaryCallable deleteDomainCallable( * @param trust Required. The domain trust resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture attachTrustAsync(DomainName name, Trust trust) { + public final OperationFuture attachTrustAsync( + @Nullable DomainName name, Trust trust) { AttachTrustRequest request = AttachTrustRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1465,7 +1467,7 @@ public final UnaryCallable attachTrustCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reconfigureTrustAsync( - DomainName name, String targetDomainName, List targetDnsIpAddresses) { + @Nullable DomainName name, String targetDomainName, List targetDnsIpAddresses) { ReconfigureTrustRequest request = ReconfigureTrustRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1638,7 +1640,8 @@ public final UnaryCallable reconfigureTrustC * @param trust Required. The domain trust resource to removed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture detachTrustAsync(DomainName name, Trust trust) { + public final OperationFuture detachTrustAsync( + @Nullable DomainName name, Trust trust) { DetachTrustRequest request = DetachTrustRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1796,7 +1799,7 @@ public final UnaryCallable detachTrustCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture validateTrustAsync( - DomainName name, Trust trust) { + @Nullable DomainName name, Trust trust) { ValidateTrustRequest request = ValidateTrustRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1988,8 +1991,8 @@ public static class ListDomainsPage extends AbstractPage { private ListDomainsPage( - PageContext context, - ListDomainsResponse response) { + @Nullable PageContext context, + @Nullable ListDomainsResponse response) { super(context, response); } @@ -1999,14 +2002,14 @@ private static ListDomainsPage createEmptyPage() { @Override protected ListDomainsPage createPage( - PageContext context, - ListDomainsResponse response) { + @Nullable PageContext context, + @Nullable ListDomainsResponse response) { return new ListDomainsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2020,7 +2023,8 @@ public static class ListDomainsFixedSizeCollection ListDomainsPage, ListDomainsFixedSizeCollection> { - private ListDomainsFixedSizeCollection(List pages, int collectionSize) { + private ListDomainsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2030,7 +2034,7 @@ private static ListDomainsFixedSizeCollection createEmptyCollection() { @Override protected ListDomainsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDomainsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceSettings.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceSettings.java index bad025664efc..73c4223a2d8c 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceSettings.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/ManagedIdentitiesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ManagedIdentitiesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStub.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStub.java index 9a4d823bd520..2d93da1eb1e3 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStub.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,7 +52,7 @@ @Generated("by gapic-generator-java") public abstract class ManagedIdentitiesServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java index afc15354215f..3b833fdd6fba 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/ManagedIdentitiesServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -401,7 +402,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -506,7 +507,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMicrosoftAdDomainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/DomainName.java b/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/DomainName.java index 8d81e6a7c90d..57fbfbff3da6 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/DomainName.java +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/DomainName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String domain) { .toString(); } - public static DomainName parse(String formattedString) { + public static @Nullable DomainName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DomainName> values) { List list = new ArrayList<>(values.size()); for (DomainName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/LocationName.java b/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/LocationName.java index dc4118a9040a..8436e768bd1c 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/LocationName.java +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/src/main/java/com/google/cloud/managedidentities/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaClient.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaClient.java index 07d928f58390..b16ca3ce5765 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaClient.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaClient.java @@ -43,6 +43,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. /** @@ -562,7 +563,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ManagedKafkaClient implements BackgroundResource { - private final ManagedKafkaSettings settings; + private final @Nullable ManagedKafkaSettings settings; private final ManagedKafkaStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -609,7 +610,7 @@ protected ManagedKafkaClient(ManagedKafkaStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ManagedKafkaSettings getSettings() { + public final @Nullable ManagedKafkaSettings getSettings() { return settings; } @@ -658,7 +659,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -825,7 +826,7 @@ public final UnaryCallable listCluste * @param name Required. The name of the cluster whose configuration to return. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -942,7 +943,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1231,7 +1232,8 @@ public final UnaryCallable updateClusterCallabl * @param name Required. The name of the cluster to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1375,7 +1377,7 @@ public final UnaryCallable deleteClusterCallabl * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicsPagedResponse listTopics(ClusterName parent) { + public final ListTopicsPagedResponse listTopics(@Nullable ClusterName parent) { ListTopicsRequest request = ListTopicsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTopics(request); @@ -1533,7 +1535,7 @@ public final UnaryCallable listTopicsCall * projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic getTopic(TopicName name) { + public final Topic getTopic(@Nullable TopicName name) { GetTopicRequest request = GetTopicRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTopic(request); @@ -1649,7 +1651,7 @@ public final UnaryCallable getTopicCallable() { *

This value is structured like: `my-topic-name`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic createTopic(ClusterName parent, Topic topic, String topicId) { + public final Topic createTopic(@Nullable ClusterName parent, Topic topic, String topicId) { CreateTopicRequest request = CreateTopicRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1867,7 +1869,7 @@ public final UnaryCallable updateTopicCallable() { * `projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTopic(TopicName name) { + public final void deleteTopic(@Nullable TopicName name) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTopic(request); @@ -1979,7 +1981,7 @@ public final UnaryCallable deleteTopicCallable() { * like `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConsumerGroupsPagedResponse listConsumerGroups(ClusterName parent) { + public final ListConsumerGroupsPagedResponse listConsumerGroups(@Nullable ClusterName parent) { ListConsumerGroupsRequest request = ListConsumerGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2146,7 +2148,7 @@ public final ListConsumerGroupsPagedResponse listConsumerGroups( * `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConsumerGroup getConsumerGroup(ConsumerGroupName name) { + public final ConsumerGroup getConsumerGroup(@Nullable ConsumerGroupName name) { GetConsumerGroupRequest request = GetConsumerGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConsumerGroup(request); @@ -2360,7 +2362,7 @@ public final ConsumerGroup updateConsumerGroup(UpdateConsumerGroupRequest reques * `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConsumerGroup(ConsumerGroupName name) { + public final void deleteConsumerGroup(@Nullable ConsumerGroupName name) { DeleteConsumerGroupRequest request = DeleteConsumerGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2482,7 +2484,7 @@ public final UnaryCallable deleteConsumerGrou * `projects/{project}/locations/{location}/clusters/{cluster}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAclsPagedResponse listAcls(ClusterName parent) { + public final ListAclsPagedResponse listAcls(@Nullable ClusterName parent) { ListAclsRequest request = ListAclsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAcls(request); @@ -2642,7 +2644,7 @@ public final UnaryCallable listAclsCallable() * pattern_type) of the acl. See `Acl.name` for details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Acl getAcl(AclName name) { + public final Acl getAcl(@Nullable AclName name) { GetAclRequest request = GetAclRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAcl(request); @@ -2768,7 +2770,7 @@ public final UnaryCallable getAclCallable() { * `consumerGroup/*`) `allTransactionalIds` (represents `transactionalId/*`) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Acl createAcl(ClusterName parent, Acl acl, String aclId) { + public final Acl createAcl(@Nullable ClusterName parent, Acl acl, String aclId) { CreateAclRequest request = CreateAclRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2993,7 +2995,7 @@ public final UnaryCallable updateAclCallable() { * pattern_type) of the acl. See `Acl.name` for details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAcl(AclName name) { + public final void deleteAcl(@Nullable AclName name) { DeleteAclRequest request = DeleteAclRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAcl(request); @@ -3109,7 +3111,7 @@ public final UnaryCallable deleteAclCallable() { * @param aclEntry Required. The acl entry to add. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AddAclEntryResponse addAclEntry(AclName acl, AclEntry aclEntry) { + public final AddAclEntryResponse addAclEntry(@Nullable AclName acl, AclEntry aclEntry) { AddAclEntryRequest request = AddAclEntryRequest.newBuilder() .setAcl(acl == null ? null : acl.toString()) @@ -3235,7 +3237,7 @@ public final UnaryCallable addAclEntryC * @param aclEntry Required. The acl entry to remove. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoveAclEntryResponse removeAclEntry(AclName acl, AclEntry aclEntry) { + public final RemoveAclEntryResponse removeAclEntry(@Nullable AclName acl, AclEntry aclEntry) { RemoveAclEntryRequest request = RemoveAclEntryRequest.newBuilder() .setAcl(acl == null ? null : acl.toString()) @@ -3551,8 +3553,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -3562,14 +3564,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3583,7 +3585,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3593,7 +3596,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -3624,8 +3627,8 @@ public static class ListTopicsPage extends AbstractPage { private ListTopicsPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { super(context, response); } @@ -3635,14 +3638,14 @@ private static ListTopicsPage createEmptyPage() { @Override protected ListTopicsPage createPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { return new ListTopicsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3656,7 +3659,8 @@ public static class ListTopicsFixedSizeCollection ListTopicsPage, ListTopicsFixedSizeCollection> { - private ListTopicsFixedSizeCollection(List pages, int collectionSize) { + private ListTopicsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3666,7 +3670,7 @@ private static ListTopicsFixedSizeCollection createEmptyCollection() { @Override protected ListTopicsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicsFixedSizeCollection(pages, collectionSize); } } @@ -3703,8 +3707,9 @@ public static class ListConsumerGroupsPage ListConsumerGroupsPage> { private ListConsumerGroupsPage( - PageContext context, - ListConsumerGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListConsumerGroupsResponse response) { super(context, response); } @@ -3714,14 +3719,16 @@ private static ListConsumerGroupsPage createEmptyPage() { @Override protected ListConsumerGroupsPage createPage( - PageContext context, - ListConsumerGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListConsumerGroupsResponse response) { return new ListConsumerGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3736,7 +3743,7 @@ public static class ListConsumerGroupsFixedSizeCollection ListConsumerGroupsFixedSizeCollection> { private ListConsumerGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3746,7 +3753,7 @@ private static ListConsumerGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListConsumerGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConsumerGroupsFixedSizeCollection(pages, collectionSize); } } @@ -3773,7 +3780,8 @@ public static class ListAclsPage extends AbstractPage { private ListAclsPage( - PageContext context, ListAclsResponse response) { + @Nullable PageContext context, + @Nullable ListAclsResponse response) { super(context, response); } @@ -3783,13 +3791,14 @@ private static ListAclsPage createEmptyPage() { @Override protected ListAclsPage createPage( - PageContext context, ListAclsResponse response) { + @Nullable PageContext context, + @Nullable ListAclsResponse response) { return new ListAclsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3799,7 +3808,7 @@ public static class ListAclsFixedSizeCollection extends AbstractFixedSizeCollection< ListAclsRequest, ListAclsResponse, Acl, ListAclsPage, ListAclsFixedSizeCollection> { - private ListAclsFixedSizeCollection(List pages, int collectionSize) { + private ListAclsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3809,7 +3818,7 @@ private static ListAclsFixedSizeCollection createEmptyCollection() { @Override protected ListAclsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAclsFixedSizeCollection(pages, collectionSize); } } @@ -3843,8 +3852,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3854,14 +3863,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3875,7 +3884,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3885,7 +3895,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectClient.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectClient.java index e52d82b0dffb..2d46a8b6a8ea 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectClient.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectClient.java @@ -43,6 +43,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. /** @@ -435,7 +436,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ManagedKafkaConnectClient implements BackgroundResource { - private final ManagedKafkaConnectSettings settings; + private final @Nullable ManagedKafkaConnectSettings settings; private final ManagedKafkaConnectStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -483,7 +484,7 @@ protected ManagedKafkaConnectClient(ManagedKafkaConnectStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ManagedKafkaConnectSettings getSettings() { + public final @Nullable ManagedKafkaConnectSettings getSettings() { return settings; } @@ -533,7 +534,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * Structured like `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectClustersPagedResponse listConnectClusters(LocationName parent) { + public final ListConnectClustersPagedResponse listConnectClusters(@Nullable LocationName parent) { ListConnectClustersRequest request = ListConnectClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -709,7 +710,7 @@ public final ListConnectClustersPagedResponse listConnectClusters( * `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectCluster getConnectCluster(ConnectClusterName name) { + public final ConnectCluster getConnectCluster(@Nullable ConnectClusterName name) { GetConnectClusterRequest request = GetConnectClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -838,7 +839,7 @@ public final UnaryCallable getConnectC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectClusterAsync( - LocationName parent, ConnectCluster connectCluster, String connectClusterId) { + @Nullable LocationName parent, ConnectCluster connectCluster, String connectClusterId) { CreateConnectClusterRequest request = CreateConnectClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1143,7 +1144,7 @@ public final OperationFuture updateConnectClu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectClusterAsync( - ConnectClusterName name) { + @Nullable ConnectClusterName name) { DeleteConnectClusterRequest request = DeleteConnectClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1299,7 +1300,7 @@ public final OperationFuture deleteConnectClusterAsync * `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectorsPagedResponse listConnectors(ConnectClusterName parent) { + public final ListConnectorsPagedResponse listConnectors(@Nullable ConnectClusterName parent) { ListConnectorsRequest request = ListConnectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1469,7 +1470,7 @@ public final ListConnectorsPagedResponse listConnectors(ListConnectorsRequest re * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connector getConnector(ConnectorName name) { + public final Connector getConnector(@Nullable ConnectorName name) { GetConnectorRequest request = GetConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnector(request); @@ -1596,7 +1597,7 @@ public final UnaryCallable getConnectorCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Connector createConnector( - ConnectClusterName parent, Connector connector, String connectorId) { + @Nullable ConnectClusterName parent, Connector connector, String connectorId) { CreateConnectorRequest request = CreateConnectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1825,7 +1826,7 @@ public final UnaryCallable updateConnectorCal * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConnector(ConnectorName name) { + public final void deleteConnector(@Nullable ConnectorName name) { DeleteConnectorRequest request = DeleteConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteConnector(request); @@ -1943,7 +1944,7 @@ public final UnaryCallable deleteConnectorCallabl * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PauseConnectorResponse pauseConnector(ConnectorName name) { + public final PauseConnectorResponse pauseConnector(@Nullable ConnectorName name) { PauseConnectorRequest request = PauseConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseConnector(request); @@ -2062,7 +2063,7 @@ public final PauseConnectorResponse pauseConnector(PauseConnectorRequest request * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResumeConnectorResponse resumeConnector(ConnectorName name) { + public final ResumeConnectorResponse resumeConnector(@Nullable ConnectorName name) { ResumeConnectorRequest request = ResumeConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeConnector(request); @@ -2181,7 +2182,7 @@ public final ResumeConnectorResponse resumeConnector(ResumeConnectorRequest requ * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RestartConnectorResponse restartConnector(ConnectorName name) { + public final RestartConnectorResponse restartConnector(@Nullable ConnectorName name) { RestartConnectorRequest request = RestartConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return restartConnector(request); @@ -2300,7 +2301,7 @@ public final RestartConnectorResponse restartConnector(RestartConnectorRequest r * projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StopConnectorResponse stopConnector(ConnectorName name) { + public final StopConnectorResponse stopConnector(@Nullable ConnectorName name) { StopConnectorRequest request = StopConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopConnector(request); @@ -2615,9 +2616,10 @@ public static class ListConnectClustersPage ListConnectClustersPage> { private ListConnectClustersPage( - PageContext + @Nullable + PageContext context, - ListConnectClustersResponse response) { + @Nullable ListConnectClustersResponse response) { super(context, response); } @@ -2627,15 +2629,17 @@ private static ListConnectClustersPage createEmptyPage() { @Override protected ListConnectClustersPage createPage( - PageContext + @Nullable + PageContext context, - ListConnectClustersResponse response) { + @Nullable ListConnectClustersResponse response) { return new ListConnectClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2651,7 +2655,7 @@ public static class ListConnectClustersFixedSizeCollection ListConnectClustersFixedSizeCollection> { private ListConnectClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2661,7 +2665,7 @@ private static ListConnectClustersFixedSizeCollection createEmptyCollection() { @Override protected ListConnectClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectClustersFixedSizeCollection(pages, collectionSize); } } @@ -2695,8 +2699,8 @@ public static class ListConnectorsPage ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage> { private ListConnectorsPage( - PageContext context, - ListConnectorsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectorsResponse response) { super(context, response); } @@ -2706,14 +2710,14 @@ private static ListConnectorsPage createEmptyPage() { @Override protected ListConnectorsPage createPage( - PageContext context, - ListConnectorsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectorsResponse response) { return new ListConnectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2727,7 +2731,8 @@ public static class ListConnectorsFixedSizeCollection ListConnectorsPage, ListConnectorsFixedSizeCollection> { - private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { + private ListConnectorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2737,7 +2742,7 @@ private static ListConnectorsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectorsFixedSizeCollection(pages, collectionSize); } } @@ -2771,8 +2776,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2782,14 +2787,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2803,7 +2808,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2813,7 +2819,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectSettings.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectSettings.java index b8628a625160..bd944187a87e 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectSettings.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaConnectSettings.java @@ -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. /** @@ -290,7 +291,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); } @@ -310,7 +311,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ManagedKafkaConnectStubSettings.newBuilder(clientContext)); } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaSettings.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaSettings.java index a06a52de3f46..5b076267e733 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaSettings.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/ManagedKafkaSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -321,7 +322,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); } @@ -341,7 +342,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ManagedKafkaStubSettings.newBuilder(clientContext)); } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStub.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStub.java index 168640e3156d..01997e14ae65 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStub.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class ManagedKafkaConnectStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStubSettings.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStubSettings.java index 81d8c8dad15c..716d6f112edc 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStubSettings.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaConnectStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -580,7 +581,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); } @@ -720,7 +721,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectClustersSettings = diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStub.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStub.java index 953b2a2ae20a..3e5de7e60445 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStub.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStub.java @@ -66,6 +66,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -77,11 +78,12 @@ @Generated("by gapic-generator-java") public abstract class ManagedKafkaStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java index dc65414f22ea..ed928aea4883 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/ManagedKafkaStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -726,7 +727,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); } @@ -870,7 +871,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/AclName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/AclName.java index 2ee840a23ebf..ec5459064ceb 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/AclName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/AclName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static AclName parse(String formattedString) { + public static @Nullable AclName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AclName> values) { List list = new ArrayList<>(values.size()); for (AclName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterName.java index 6c78cd0da925..885555a7b5ab 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectClusterName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectClusterName.java index d687493323e3..aadafcb14d12 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectClusterName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String connectClust .toString(); } - public static ConnectClusterName parse(String formattedString) { + public static @Nullable ConnectClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectClusterName> values) { List list = new ArrayList<>(values.size()); for (ConnectClusterName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectorName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectorName.java index 3afc9640cc71..c5512d2a640d 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectorName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ConnectorName parse(String formattedString) { + public static @Nullable ConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectorName> values) { List list = new ArrayList<>(values.size()); for (ConnectorName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConsumerGroupName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConsumerGroupName.java index 6c7128f980c2..30c93c7f8052 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConsumerGroupName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/ConsumerGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ConsumerGroupName parse(String formattedString) { + public static @Nullable ConsumerGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConsumerGroupName> values) { List list = new ArrayList<>(values.size()); for (ConsumerGroupName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/LocationName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/LocationName.java index f4d5aac7676a..a646d89d0447 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/LocationName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TopicName.java b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TopicName.java index 81c4c97cfb63..21f50726b4b8 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TopicName.java +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/src/main/java/com/google/cloud/managedkafka/v1/TopicName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static TopicName parse(String formattedString) { + public static @Nullable TopicName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TopicName> values) { List list = new ArrayList<>(values.size()); for (TopicName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java index 4cf4c41c5bb5..8b3e8617f599 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationClient.java @@ -24,6 +24,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. /** @@ -150,7 +151,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AddressValidationClient implements BackgroundResource { - private final AddressValidationSettings settings; + private final @Nullable AddressValidationSettings settings; private final AddressValidationStub stub; /** Constructs an instance of AddressValidationClient with default settings. */ @@ -190,7 +191,7 @@ protected AddressValidationClient(AddressValidationStub stub) { this.stub = stub; } - public final AddressValidationSettings getSettings() { + public final @Nullable AddressValidationSettings getSettings() { return settings; } diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationSettings.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationSettings.java index e2b47f65c7a6..f1614600c11a 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationSettings.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/AddressValidationSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -156,7 +157,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); } @@ -176,7 +177,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AddressValidationStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java index 14a94aac872a..8a2cb69669dd 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/AddressValidationStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -295,7 +296,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); validateAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsClient.java b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsClient.java index a497d6317557..e8f796edbad7 100644 --- a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsClient.java +++ b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsClient.java @@ -24,6 +24,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. /** @@ -129,7 +130,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AreaInsightsClient implements BackgroundResource { - private final AreaInsightsSettings settings; + private final @Nullable AreaInsightsSettings settings; private final AreaInsightsStub stub; /** Constructs an instance of AreaInsightsClient with default settings. */ @@ -168,7 +169,7 @@ protected AreaInsightsClient(AreaInsightsStub stub) { this.stub = stub; } - public final AreaInsightsSettings getSettings() { + public final @Nullable AreaInsightsSettings getSettings() { return settings; } diff --git a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsSettings.java b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsSettings.java index 956efd0e8743..6673c2b4e528 100644 --- a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsSettings.java +++ b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/AreaInsightsSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AreaInsightsStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/AreaInsightsStubSettings.java b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/AreaInsightsStubSettings.java index 2432c758d737..a9d6c5dfff1d 100644 --- a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/AreaInsightsStubSettings.java +++ b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/AreaInsightsStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -278,7 +279,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); computeInsightsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceClient.java b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceClient.java index 82b0520ac0da..e9d4580e4a4c 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceClient.java +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceClient.java @@ -34,6 +34,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. /** @@ -352,7 +353,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeliveryServiceClient implements BackgroundResource { - private final DeliveryServiceSettings settings; + private final @Nullable DeliveryServiceSettings settings; private final DeliveryServiceStub stub; /** Constructs an instance of DeliveryServiceClient with default settings. */ @@ -392,7 +393,7 @@ protected DeliveryServiceClient(DeliveryServiceStub stub) { this.stub = stub; } - public final DeliveryServiceSettings getSettings() { + public final @Nullable DeliveryServiceSettings getSettings() { return settings; } @@ -541,7 +542,7 @@ public final DeliveryVehicle createDeliveryVehicle(CreateDeliveryVehicleRequest * Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeliveryVehicle getDeliveryVehicle(DeliveryVehicleName name) { + public final DeliveryVehicle getDeliveryVehicle(@Nullable DeliveryVehicleName name) { GetDeliveryVehicleRequest request = GetDeliveryVehicleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -662,7 +663,7 @@ public final DeliveryVehicle getDeliveryVehicle(GetDeliveryVehicleRequest reques * Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeliveryVehicle(DeliveryVehicleName name) { + public final void deleteDeliveryVehicle(@Nullable DeliveryVehicleName name) { DeleteDeliveryVehicleRequest request = DeleteDeliveryVehicleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1080,7 +1081,7 @@ public final UnaryCallable createTaskCallable() { * must be the Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -1194,7 +1195,7 @@ public final UnaryCallable getTaskCallable() { * must be the Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTask(TaskName name) { + public final void deleteTask(@Nullable TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTask(request); @@ -1412,7 +1413,7 @@ public final UnaryCallable updateTaskCallable() { * the Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(ProviderName parent) { + public final ListTasksPagedResponse listTasks(@Nullable ProviderName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -1579,7 +1580,7 @@ public final UnaryCallable listTasksCallabl * `providers/sample-cloud-project/taskTrackingInfo/sample-tracking-id`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TaskTrackingInfo getTaskTrackingInfo(TaskTrackingInfoName name) { + public final TaskTrackingInfo getTaskTrackingInfo(@Nullable TaskTrackingInfoName name) { GetTaskTrackingInfoRequest request = GetTaskTrackingInfoRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1702,7 +1703,8 @@ public final TaskTrackingInfo getTaskTrackingInfo(GetTaskTrackingInfoRequest req * the Google Cloud Project ID. For example, `sample-cloud-project`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeliveryVehiclesPagedResponse listDeliveryVehicles(ProviderName parent) { + public final ListDeliveryVehiclesPagedResponse listDeliveryVehicles( + @Nullable ProviderName parent) { ListDeliveryVehiclesRequest request = ListDeliveryVehiclesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1909,8 +1911,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -1920,14 +1922,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1937,7 +1939,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1947,7 +1949,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -1985,9 +1987,10 @@ public static class ListDeliveryVehiclesPage ListDeliveryVehiclesPage> { private ListDeliveryVehiclesPage( - PageContext + @Nullable + PageContext context, - ListDeliveryVehiclesResponse response) { + @Nullable ListDeliveryVehiclesResponse response) { super(context, response); } @@ -1997,15 +2000,17 @@ private static ListDeliveryVehiclesPage createEmptyPage() { @Override protected ListDeliveryVehiclesPage createPage( - PageContext + @Nullable + PageContext context, - ListDeliveryVehiclesResponse response) { + @Nullable ListDeliveryVehiclesResponse response) { return new ListDeliveryVehiclesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2021,7 +2026,7 @@ public static class ListDeliveryVehiclesFixedSizeCollection ListDeliveryVehiclesFixedSizeCollection> { private ListDeliveryVehiclesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2031,7 +2036,7 @@ private static ListDeliveryVehiclesFixedSizeCollection createEmptyCollection() { @Override protected ListDeliveryVehiclesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeliveryVehiclesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceSettings.java b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceSettings.java index d3449fa1ee99..589238ecbef1 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceSettings.java +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeliveryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/DeliveryServiceStubSettings.java b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/DeliveryServiceStubSettings.java index 9bc87ad72aad..463f8cb89bc9 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/DeliveryServiceStubSettings.java +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/DeliveryServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -440,7 +441,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); } @@ -540,7 +541,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDeliveryVehicleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleName.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleName.java index fdb382ab2fee..4e4a6eeafdf3 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleName.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/DeliveryVehicleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String provider, String vehicle) { return newBuilder().setProvider(provider).setVehicle(vehicle).build().toString(); } - public static DeliveryVehicleName parse(String formattedString) { + public static @Nullable DeliveryVehicleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeliveryVehicleName> values) { List list = new ArrayList<>(values.size()); for (DeliveryVehicleName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/ProviderName.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/ProviderName.java index f8338a86a16c..ab1b072c1615 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/ProviderName.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/ProviderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String provider) { return newBuilder().setProvider(provider).build().toString(); } - public static ProviderName parse(String formattedString) { + public static @Nullable ProviderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProviderName> values) { List list = new ArrayList<>(values.size()); for (ProviderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskName.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskName.java index 705e9635092e..4e0cbb253366 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskName.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String provider, String task) { return newBuilder().setProvider(provider).setTask(task).build().toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskTrackingInfoName.java b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskTrackingInfoName.java index f21656a56011..e660b5f3c8b2 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskTrackingInfoName.java +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/src/main/java/com/google/maps/fleetengine/delivery/v1/TaskTrackingInfoName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String provider, String tracking) { return newBuilder().setProvider(provider).setTracking(tracking).build().toString(); } - public static TaskTrackingInfoName parse(String formattedString) { + public static @Nullable TaskTrackingInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskTrackingInfoName> values) { List list = new ArrayList<>(values.size()); for (TaskTrackingInfoName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceClient.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceClient.java index 1236fddc8372..2faa357fc19a 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceClient.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceClient.java @@ -33,6 +33,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. /** @@ -204,7 +205,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TripServiceClient implements BackgroundResource { - private final TripServiceSettings settings; + private final @Nullable TripServiceSettings settings; private final TripServiceStub stub; /** Constructs an instance of TripServiceClient with default settings. */ @@ -243,7 +244,7 @@ protected TripServiceClient(TripServiceStub stub) { this.stub = stub; } - public final TripServiceSettings getSettings() { + public final @Nullable TripServiceSettings getSettings() { return settings; } @@ -406,7 +407,7 @@ public final UnaryCallable getTripCallable() { * which the service account making this call is a member. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTrip(TripName name) { + public final void deleteTrip(@Nullable TripName name) { DeleteTripRequest request = DeleteTripRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTrip(request); @@ -795,8 +796,8 @@ public static class SearchTripsPage extends AbstractPage { private SearchTripsPage( - PageContext context, - SearchTripsResponse response) { + @Nullable PageContext context, + @Nullable SearchTripsResponse response) { super(context, response); } @@ -806,14 +807,14 @@ private static SearchTripsPage createEmptyPage() { @Override protected SearchTripsPage createPage( - PageContext context, - SearchTripsResponse response) { + @Nullable PageContext context, + @Nullable SearchTripsResponse response) { return new SearchTripsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -827,7 +828,8 @@ public static class SearchTripsFixedSizeCollection SearchTripsPage, SearchTripsFixedSizeCollection> { - private SearchTripsFixedSizeCollection(List pages, int collectionSize) { + private SearchTripsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -837,7 +839,7 @@ private static SearchTripsFixedSizeCollection createEmptyCollection() { @Override protected SearchTripsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchTripsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceSettings.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceSettings.java index b0768db34bfe..a56bec66277e 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceSettings.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/TripServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -182,7 +183,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TripServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceClient.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceClient.java index adf30229235d..fd3e310f2e98 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceClient.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceClient.java @@ -33,6 +33,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. /** @@ -252,7 +253,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VehicleServiceClient implements BackgroundResource { - private final VehicleServiceSettings settings; + private final @Nullable VehicleServiceSettings settings; private final VehicleServiceStub stub; /** Constructs an instance of VehicleServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected VehicleServiceClient(VehicleServiceStub stub) { this.stub = stub; } - public final VehicleServiceSettings getSettings() { + public final @Nullable VehicleServiceSettings getSettings() { return settings; } @@ -509,7 +510,7 @@ public final UnaryCallable getVehicleCallable() { * Project of which the service account making this call is a member. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteVehicle(VehicleName name) { + public final void deleteVehicle(@Nullable VehicleName name) { DeleteVehicleRequest request = DeleteVehicleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteVehicle(request); @@ -1054,8 +1055,8 @@ public static class ListVehiclesPage extends AbstractPage { private ListVehiclesPage( - PageContext context, - ListVehiclesResponse response) { + @Nullable PageContext context, + @Nullable ListVehiclesResponse response) { super(context, response); } @@ -1065,14 +1066,14 @@ private static ListVehiclesPage createEmptyPage() { @Override protected ListVehiclesPage createPage( - PageContext context, - ListVehiclesResponse response) { + @Nullable PageContext context, + @Nullable ListVehiclesResponse response) { return new ListVehiclesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1086,7 +1087,8 @@ public static class ListVehiclesFixedSizeCollection ListVehiclesPage, ListVehiclesFixedSizeCollection> { - private ListVehiclesFixedSizeCollection(List pages, int collectionSize) { + private ListVehiclesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1096,7 +1098,7 @@ private static ListVehiclesFixedSizeCollection createEmptyCollection() { @Override protected ListVehiclesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVehiclesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceSettings.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceSettings.java index 0278982967b4..21bcc0f10b78 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceSettings.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/VehicleServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VehicleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/TripServiceStubSettings.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/TripServiceStubSettings.java index 16a70b72c1e8..d29e291e01cc 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/TripServiceStubSettings.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/TripServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -277,7 +278,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -356,7 +357,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTripSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/VehicleServiceStubSettings.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/VehicleServiceStubSettings.java index 2c7c83e3a30f..7e13655369fa 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/VehicleServiceStubSettings.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/VehicleServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -373,7 +374,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createVehicleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripName.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripName.java index 3f5241b41c40..98c78114d00a 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripName.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/TripName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String provider, String trip) { return newBuilder().setProvider(provider).setTrip(trip).build().toString(); } - public static TripName parse(String formattedString) { + public static @Nullable TripName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TripName> values) { List list = new ArrayList<>(values.size()); for (TripName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleName.java b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleName.java index 9fb1d41bfa70..3909f660fd03 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleName.java +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/src/main/java/com/google/maps/fleetengine/v1/VehicleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String provider, String vehicle) { return newBuilder().setProvider(provider).setVehicle(vehicle).build().toString(); } - public static VehicleName parse(String formattedString) { + public static @Nullable VehicleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VehicleName> values) { List list = new ArrayList<>(values.size()); for (VehicleName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceClient.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceClient.java index f61e2e4d03e7..879788dc11ad 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceClient.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceClient.java @@ -24,6 +24,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. /** @@ -139,7 +140,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DestinationServiceClient implements BackgroundResource { - private final DestinationServiceSettings settings; + private final @Nullable DestinationServiceSettings settings; private final DestinationServiceStub stub; /** Constructs an instance of DestinationServiceClient with default settings. */ @@ -179,7 +180,7 @@ protected DestinationServiceClient(DestinationServiceStub stub) { this.stub = stub; } - public final DestinationServiceSettings getSettings() { + public final @Nullable DestinationServiceSettings getSettings() { return settings; } diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceSettings.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceSettings.java index 21d7b9ac3a4c..7a67ca970ecd 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceSettings.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/DestinationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DestinationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceClient.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceClient.java index 869c948b5f70..b6fecefa6b82 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceClient.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceClient.java @@ -24,6 +24,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. /** @@ -159,7 +160,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GeocodeServiceClient implements BackgroundResource { - private final GeocodeServiceSettings settings; + private final @Nullable GeocodeServiceSettings settings; private final GeocodeServiceStub stub; /** Constructs an instance of GeocodeServiceClient with default settings. */ @@ -199,7 +200,7 @@ protected GeocodeServiceClient(GeocodeServiceStub stub) { this.stub = stub; } - public final GeocodeServiceSettings getSettings() { + public final @Nullable GeocodeServiceSettings getSettings() { return settings; } diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceSettings.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceSettings.java index a8b385f8291d..537e8b174177 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceSettings.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/GeocodeServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GeocodeServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/DestinationServiceStubSettings.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/DestinationServiceStubSettings.java index 9ab291b92a7f..849b314d236d 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/DestinationServiceStubSettings.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/DestinationServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -285,7 +286,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDestinationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/GeocodeServiceStubSettings.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/GeocodeServiceStubSettings.java index 4017fe9cc764..7a0768a879d8 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/GeocodeServiceStubSettings.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/GeocodeServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,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); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); geocodeAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java index 138d926cdf19..33a643e32de6 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementClient.java @@ -35,6 +35,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. /** @@ -425,7 +426,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MapManagementClient implements BackgroundResource { - private final MapManagementSettings settings; + private final @Nullable MapManagementSettings settings; private final MapManagementStub stub; /** Constructs an instance of MapManagementClient with default settings. */ @@ -465,7 +466,7 @@ protected MapManagementClient(MapManagementStub stub) { this.stub = stub; } - public final MapManagementSettings getSettings() { + public final @Nullable MapManagementSettings getSettings() { return settings; } @@ -497,7 +498,7 @@ public MapManagementStub getStub() { * @param mapConfig Required. The MapConfig to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MapConfig createMapConfig(ProjectName parent, MapConfig mapConfig) { + public final MapConfig createMapConfig(@Nullable ProjectName parent, MapConfig mapConfig) { CreateMapConfigRequest request = CreateMapConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -616,7 +617,7 @@ public final UnaryCallable createMapConfigCal * `projects/{project}/mapConfigs/{map_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MapConfig getMapConfig(MapConfigName name) { + public final MapConfig getMapConfig(@Nullable MapConfigName name) { GetMapConfigRequest request = GetMapConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMapConfig(request); @@ -727,7 +728,7 @@ public final UnaryCallable getMapConfigCallable( * @param parent Required. Parent project that owns the MapConfigs. Format: `projects/{project}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMapConfigsPagedResponse listMapConfigs(ProjectName parent) { + public final ListMapConfigsPagedResponse listMapConfigs(@Nullable ProjectName parent) { ListMapConfigsRequest request = ListMapConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -992,7 +993,7 @@ public final UnaryCallable updateMapConfigCal * deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMapConfig(MapConfigName name, boolean force) { + public final void deleteMapConfig(@Nullable MapConfigName name, boolean force) { DeleteMapConfigRequest request = DeleteMapConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1113,7 +1114,8 @@ public final UnaryCallable deleteMapConfigCallabl * @param styleConfig Required. The StyleConfig to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StyleConfig createStyleConfig(ProjectName parent, StyleConfig styleConfig) { + public final StyleConfig createStyleConfig( + @Nullable ProjectName parent, StyleConfig styleConfig) { CreateStyleConfigRequest request = CreateStyleConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1232,7 +1234,7 @@ public final UnaryCallable createStyleCon * `projects/{project}/styleConfigs/{style_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StyleConfig getStyleConfig(StyleConfigName name) { + public final StyleConfig getStyleConfig(@Nullable StyleConfigName name) { GetStyleConfigRequest request = GetStyleConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStyleConfig(request); @@ -1344,7 +1346,7 @@ public final UnaryCallable getStyleConfigCal * @param parent Required. Parent project that owns the StyleConfigs. Format: `projects/{project}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStyleConfigsPagedResponse listStyleConfigs(ProjectName parent) { + public final ListStyleConfigsPagedResponse listStyleConfigs(@Nullable ProjectName parent) { ListStyleConfigsRequest request = ListStyleConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1613,7 +1615,7 @@ public final UnaryCallable updateStyleCon * `projects/{project}/styleConfigs/{style_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStyleConfig(StyleConfigName name) { + public final void deleteStyleConfig(@Nullable StyleConfigName name) { DeleteStyleConfigRequest request = DeleteStyleConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1729,7 +1731,7 @@ public final UnaryCallable deleteStyleConfigCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MapContextConfig createMapContextConfig( - MapConfigName parent, MapContextConfig mapContextConfig) { + @Nullable MapConfigName parent, MapContextConfig mapContextConfig) { CreateMapContextConfigRequest request = CreateMapContextConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1855,7 +1857,7 @@ public final MapContextConfig createMapContextConfig(CreateMapContextConfigReque * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MapContextConfig getMapContextConfig(MapContextConfigName name) { + public final MapContextConfig getMapContextConfig(@Nullable MapContextConfigName name) { GetMapContextConfigRequest request = GetMapContextConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1978,7 +1980,8 @@ public final MapContextConfig getMapContextConfig(GetMapContextConfigRequest req * `projects/{project}/mapConfigs/{map_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMapContextConfigsPagedResponse listMapContextConfigs(MapConfigName parent) { + public final ListMapContextConfigsPagedResponse listMapContextConfigs( + @Nullable MapConfigName parent) { ListMapContextConfigsRequest request = ListMapContextConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2251,7 +2254,7 @@ public final MapContextConfig updateMapContextConfig(UpdateMapContextConfigReque * `projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMapContextConfig(MapContextConfigName name) { + public final void deleteMapContextConfig(@Nullable MapContextConfigName name) { DeleteMapContextConfigRequest request = DeleteMapContextConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2408,8 +2411,8 @@ public static class ListMapConfigsPage ListMapConfigsRequest, ListMapConfigsResponse, MapConfig, ListMapConfigsPage> { private ListMapConfigsPage( - PageContext context, - ListMapConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMapConfigsResponse response) { super(context, response); } @@ -2419,14 +2422,14 @@ private static ListMapConfigsPage createEmptyPage() { @Override protected ListMapConfigsPage createPage( - PageContext context, - ListMapConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMapConfigsResponse response) { return new ListMapConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2440,7 +2443,8 @@ public static class ListMapConfigsFixedSizeCollection ListMapConfigsPage, ListMapConfigsFixedSizeCollection> { - private ListMapConfigsFixedSizeCollection(List pages, int collectionSize) { + private ListMapConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2450,7 +2454,7 @@ private static ListMapConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListMapConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMapConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2484,8 +2488,9 @@ public static class ListStyleConfigsPage ListStyleConfigsRequest, ListStyleConfigsResponse, StyleConfig, ListStyleConfigsPage> { private ListStyleConfigsPage( - PageContext context, - ListStyleConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListStyleConfigsResponse response) { super(context, response); } @@ -2495,14 +2500,16 @@ private static ListStyleConfigsPage createEmptyPage() { @Override protected ListStyleConfigsPage createPage( - PageContext context, - ListStyleConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListStyleConfigsResponse response) { return new ListStyleConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2517,7 +2524,7 @@ public static class ListStyleConfigsFixedSizeCollection ListStyleConfigsFixedSizeCollection> { private ListStyleConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2527,7 +2534,7 @@ private static ListStyleConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListStyleConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStyleConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2565,9 +2572,11 @@ public static class ListMapContextConfigsPage ListMapContextConfigsPage> { private ListMapContextConfigsPage( - PageContext + @Nullable + PageContext< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig> context, - ListMapContextConfigsResponse response) { + @Nullable ListMapContextConfigsResponse response) { super(context, response); } @@ -2577,15 +2586,19 @@ private static ListMapContextConfigsPage createEmptyPage() { @Override protected ListMapContextConfigsPage createPage( - PageContext + @Nullable + PageContext< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig> context, - ListMapContextConfigsResponse response) { + @Nullable ListMapContextConfigsResponse response) { return new ListMapContextConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListMapContextConfigsRequest, ListMapContextConfigsResponse, MapContextConfig> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2601,7 +2614,7 @@ public static class ListMapContextConfigsFixedSizeCollection ListMapContextConfigsFixedSizeCollection> { private ListMapContextConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2611,7 +2624,7 @@ private static ListMapContextConfigsFixedSizeCollection createEmptyCollection() @Override protected ListMapContextConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMapContextConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java index a04a51eb79c3..dfcfaff69e47 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/MapManagementSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,7 +236,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); } @@ -255,7 +256,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MapManagementStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java index 8c9d484b0118..55d4d6435cb9 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/MapManagementStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -522,7 +523,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); } @@ -620,7 +621,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createMapConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java index 0fc246e4d38e..08fb2f1919d6 100644 --- a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String mapConfig) { return newBuilder().setProject(project).setMapConfig(mapConfig).build().toString(); } - public static MapConfigName parse(String formattedString) { + public static @Nullable MapConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MapConfigName> values) { List list = new ArrayList<>(values.size()); for (MapConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java index 52268c43ed9f..80624d9ca771 100644 --- a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/MapContextConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String mapConfig, String mapContextC .toString(); } - public static MapContextConfigName parse(String formattedString) { + public static @Nullable MapContextConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MapContextConfigName> values) { List list = new ArrayList<>(values.size()); for (MapContextConfigName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java index 0d6fe50c6544..b4bdc4215d81 100644 --- a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java index 2ec4df0c6a70..d6dca40ce1c0 100644 --- a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/src/main/java/com/google/maps/mapmanagement/v2beta/StyleConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String styleConfig) { return newBuilder().setProject(project).setStyleConfig(styleConfig).build().toString(); } - public static StyleConfigName parse(String formattedString) { + public static @Nullable StyleConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StyleConfigName> values) { List list = new ArrayList<>(values.size()); for (StyleConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java index e2d72a5ddaeb..38b14dcaad08 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsClient.java @@ -35,6 +35,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. /** @@ -244,7 +245,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MapsPlatformDatasetsClient implements BackgroundResource { - private final MapsPlatformDatasetsSettings settings; + private final @Nullable MapsPlatformDatasetsSettings settings; private final MapsPlatformDatasetsStub stub; /** Constructs an instance of MapsPlatformDatasetsClient with default settings. */ @@ -284,7 +285,7 @@ protected MapsPlatformDatasetsClient(MapsPlatformDatasetsStub stub) { this.stub = stub; } - public final MapsPlatformDatasetsSettings getSettings() { + public final @Nullable MapsPlatformDatasetsSettings getSettings() { return settings; } @@ -316,7 +317,7 @@ public MapsPlatformDatasetsStub getStub() { * @param dataset Required. The dataset version to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset createDataset(ProjectName parent, Dataset dataset) { + public final Dataset createDataset(@Nullable ProjectName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -537,7 +538,7 @@ public final Dataset updateDatasetMetadata(UpdateDatasetMetadataRequest request) * if the dataset does not have one. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -657,7 +658,7 @@ public final UnaryCallable getDatasetCallable() { * projects/{project}/datasets/{dataset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchDatasetErrorsPagedResponse fetchDatasetErrors(DatasetName dataset) { + public final FetchDatasetErrorsPagedResponse fetchDatasetErrors(@Nullable DatasetName dataset) { FetchDatasetErrorsRequest request = FetchDatasetErrorsRequest.newBuilder() .setDataset(dataset == null ? null : dataset.toString()) @@ -830,7 +831,7 @@ public final FetchDatasetErrorsPagedResponse fetchDatasetErrors( * projects/{project} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(ProjectName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable ProjectName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1001,7 +1002,7 @@ public final UnaryCallable listDatase * projects/{project}/datasets/{dataset_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataset(DatasetName name) { + public final void deleteDataset(@Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataset(request); @@ -1152,8 +1153,9 @@ public static class FetchDatasetErrorsPage FetchDatasetErrorsRequest, FetchDatasetErrorsResponse, Status, FetchDatasetErrorsPage> { private FetchDatasetErrorsPage( - PageContext context, - FetchDatasetErrorsResponse response) { + @Nullable PageContext + context, + @Nullable FetchDatasetErrorsResponse response) { super(context, response); } @@ -1163,14 +1165,16 @@ private static FetchDatasetErrorsPage createEmptyPage() { @Override protected FetchDatasetErrorsPage createPage( - PageContext context, - FetchDatasetErrorsResponse response) { + @Nullable PageContext + context, + @Nullable FetchDatasetErrorsResponse response) { return new FetchDatasetErrorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1185,7 +1189,7 @@ public static class FetchDatasetErrorsFixedSizeCollection FetchDatasetErrorsFixedSizeCollection> { private FetchDatasetErrorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1195,7 +1199,7 @@ private static FetchDatasetErrorsFixedSizeCollection createEmptyCollection() { @Override protected FetchDatasetErrorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchDatasetErrorsFixedSizeCollection(pages, collectionSize); } } @@ -1228,8 +1232,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -1239,14 +1243,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1260,7 +1264,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1270,7 +1275,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java index e9eb7a032ea5..2bd6a9d22399 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/MapsPlatformDatasetsSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MapsPlatformDatasetsStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java index 1460d429b991..afd6d30471df 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/MapsPlatformDatasetsStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -381,7 +382,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); } @@ -470,7 +471,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/DatasetName.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/DatasetName.java index e8b55b66b5ce..f286cb8f20fa 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/DatasetName.java +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String dataset) { return newBuilder().setProject(project).setDataset(dataset).build().toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/ProjectName.java b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/ProjectName.java index 69efeb667f2a..479400b3f3d7 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/ProjectName.java +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/src/main/java/com/google/maps/mapsplatformdatasets/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java index 3872b3c8c2de..4562a865c720 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesClient.java @@ -24,6 +24,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. /** @@ -205,7 +206,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PlacesClient implements BackgroundResource { - private final PlacesSettings settings; + private final @Nullable PlacesSettings settings; private final PlacesStub stub; /** Constructs an instance of PlacesClient with default settings. */ @@ -243,7 +244,7 @@ protected PlacesClient(PlacesStub stub) { this.stub = stub; } - public final PlacesSettings getSettings() { + public final @Nullable PlacesSettings getSettings() { return settings; } @@ -437,7 +438,7 @@ public final UnaryCallable searchTextCall * at the end of the photo resource to get the photo media resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhotoMedia getPhotoMedia(PhotoMediaName name) { + public final PhotoMedia getPhotoMedia(@Nullable PhotoMediaName name) { GetPhotoMediaRequest request = GetPhotoMediaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPhotoMedia(request); @@ -556,7 +557,7 @@ public final UnaryCallable getPhotoMediaCallab * @param name Required. The resource name of a place, in the `places/{place_id}` format. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Place getPlace(PlaceName name) { + public final Place getPlace(@Nullable PlaceName name) { GetPlaceRequest request = GetPlaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPlace(request); diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesSettings.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesSettings.java index d7c91e4e6311..2660cc2bab93 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesSettings.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/PlacesSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PlacesStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java index d293bc8a7a37..dec0b2779541 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/PlacesStubSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,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); } @@ -305,7 +306,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchNearbySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoMediaName.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoMediaName.java index 5a9624bec2b4..fd233a5e92b9 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoMediaName.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoMediaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String placeId, String photoReference) { return newBuilder().setPlaceId(placeId).setPhotoReference(photoReference).build().toString(); } - public static PhotoMediaName parse(String formattedString) { + public static @Nullable PhotoMediaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhotoMediaName> values) { List list = new ArrayList<>(values.size()); for (PhotoMediaName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceName.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceName.java index e653324d38c0..61660a8f9bef 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceName.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String placeId) { return newBuilder().setPlaceId(placeId).build().toString(); } - public static PlaceName parse(String formattedString) { + public static @Nullable PlaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlaceName> values) { List list = new ArrayList<>(values.size()); for (PlaceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationClient.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationClient.java index f127e5fecdbf..5512e4551049 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationClient.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationClient.java @@ -29,6 +29,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. /** @@ -219,7 +220,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RouteOptimizationClient implements BackgroundResource { - private final RouteOptimizationSettings settings; + private final @Nullable RouteOptimizationSettings settings; private final RouteOptimizationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -267,7 +268,7 @@ protected RouteOptimizationClient(RouteOptimizationStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final RouteOptimizationSettings getSettings() { + public final @Nullable RouteOptimizationSettings getSettings() { return settings; } diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationSettings.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationSettings.java index abab1b39f820..3c692f259966 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationSettings.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/RouteOptimizationSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -235,7 +236,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RouteOptimizationStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStub.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStub.java index 85a4b196e89a..b6899fe86eab 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStub.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStub.java @@ -32,6 +32,7 @@ import com.google.maps.routeoptimization.v1.OptimizeToursUriResponse; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,11 +44,12 @@ @Generated("by gapic-generator-java") public abstract class RouteOptimizationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java index 1d301a706337..569ad81ab079 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/RouteOptimizationStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -301,7 +302,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); } @@ -391,7 +392,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); optimizeToursSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java index 7d2a4ce48563..7d6e03df25c1 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java @@ -25,6 +25,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. /** @@ -180,7 +181,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RoutesClient implements BackgroundResource { - private final RoutesSettings settings; + private final @Nullable RoutesSettings settings; private final RoutesStub stub; /** Constructs an instance of RoutesClient with default settings. */ @@ -218,7 +219,7 @@ protected RoutesClient(RoutesStub stub) { this.stub = stub; } - public final RoutesSettings getSettings() { + public final @Nullable RoutesSettings getSettings() { return settings; } diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java index 6b8c6c58658c..bab737eb7825 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RoutesStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java index 38f5b78554bb..5b85cf1e2340 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -276,7 +277,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); computeRoutesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarClient.java b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarClient.java index 6927893d7589..f6d199f009d8 100644 --- a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarClient.java +++ b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarClient.java @@ -25,6 +25,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. /** @@ -159,7 +160,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SolarClient implements BackgroundResource { - private final SolarSettings settings; + private final @Nullable SolarSettings settings; private final SolarStub stub; /** Constructs an instance of SolarClient with default settings. */ @@ -197,7 +198,7 @@ protected SolarClient(SolarStub stub) { this.stub = stub; } - public final SolarSettings getSettings() { + public final @Nullable SolarSettings getSettings() { return settings; } diff --git a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarSettings.java b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarSettings.java index 711802e1d514..8f4c697b247d 100644 --- a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarSettings.java +++ b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/SolarSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SolarStubSettings.newBuilder(clientContext)); } diff --git a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java index 79852c4c5681..1f33a3ab9198 100644 --- a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java +++ b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/SolarStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -296,7 +297,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); findClosestBuildingInsightsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java index fc5d9666f5dc..ae854ecfd2be 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceClient.java @@ -34,6 +34,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. /** @@ -275,7 +276,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MarketingplatformAdminServiceClient implements BackgroundResource { - private final MarketingplatformAdminServiceSettings settings; + private final @Nullable MarketingplatformAdminServiceSettings settings; private final MarketingplatformAdminServiceStub stub; /** Constructs an instance of MarketingplatformAdminServiceClient with default settings. */ @@ -319,7 +320,7 @@ protected MarketingplatformAdminServiceClient(MarketingplatformAdminServiceStub this.stub = stub; } - public final MarketingplatformAdminServiceSettings getSettings() { + public final @Nullable MarketingplatformAdminServiceSettings getSettings() { return settings; } @@ -349,7 +350,7 @@ public MarketingplatformAdminServiceStub getStub() { * @param name Required. The name of the Organization to retrieve. Format: organizations/{org_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Organization getOrganization(OrganizationName name) { + public final Organization getOrganization(@Nullable OrganizationName name) { GetOrganizationRequest request = GetOrganizationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOrganization(request); @@ -646,7 +647,7 @@ public final FindSalesPartnerManagedClientsResponse findSalesPartnerManagedClien * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAnalyticsAccountLinksPagedResponse listAnalyticsAccountLinks( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListAnalyticsAccountLinksRequest request = ListAnalyticsAccountLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -835,7 +836,7 @@ public final ListAnalyticsAccountLinksPagedResponse listAnalyticsAccountLinks( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyticsAccountLink createAnalyticsAccountLink( - OrganizationName parent, AnalyticsAccountLink analyticsAccountLink) { + @Nullable OrganizationName parent, AnalyticsAccountLink analyticsAccountLink) { CreateAnalyticsAccountLinkRequest request = CreateAnalyticsAccountLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -986,7 +987,7 @@ public final AnalyticsAccountLink createAnalyticsAccountLink( * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAnalyticsAccountLink(AnalyticsAccountLinkName name) { + public final void deleteAnalyticsAccountLink(@Nullable AnalyticsAccountLinkName name) { DeleteAnalyticsAccountLinkRequest request = DeleteAnalyticsAccountLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1374,8 +1375,9 @@ public static class ListOrganizationsPage ListOrganizationsPage> { private ListOrganizationsPage( - PageContext context, - ListOrganizationsResponse response) { + @Nullable PageContext + context, + @Nullable ListOrganizationsResponse response) { super(context, response); } @@ -1385,14 +1387,16 @@ private static ListOrganizationsPage createEmptyPage() { @Override protected ListOrganizationsPage createPage( - PageContext context, - ListOrganizationsResponse response) { + @Nullable PageContext + context, + @Nullable ListOrganizationsResponse response) { return new ListOrganizationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1407,7 +1411,7 @@ public static class ListOrganizationsFixedSizeCollection ListOrganizationsFixedSizeCollection> { private ListOrganizationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1417,7 +1421,7 @@ private static ListOrganizationsFixedSizeCollection createEmptyCollection() { @Override protected ListOrganizationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrganizationsFixedSizeCollection(pages, collectionSize); } } @@ -1458,12 +1462,13 @@ public static class ListAnalyticsAccountLinksPage ListAnalyticsAccountLinksPage> { private ListAnalyticsAccountLinksPage( - PageContext< + @Nullable + PageContext< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> context, - ListAnalyticsAccountLinksResponse response) { + @Nullable ListAnalyticsAccountLinksResponse response) { super(context, response); } @@ -1473,18 +1478,20 @@ private static ListAnalyticsAccountLinksPage createEmptyPage() { @Override protected ListAnalyticsAccountLinksPage createPage( - PageContext< + @Nullable + PageContext< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> context, - ListAnalyticsAccountLinksResponse response) { + @Nullable ListAnalyticsAccountLinksResponse response) { return new ListAnalyticsAccountLinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAnalyticsAccountLinksRequest, ListAnalyticsAccountLinksResponse, AnalyticsAccountLink> @@ -1503,7 +1510,7 @@ public static class ListAnalyticsAccountLinksFixedSizeCollection ListAnalyticsAccountLinksFixedSizeCollection> { private ListAnalyticsAccountLinksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1513,7 +1520,7 @@ private static ListAnalyticsAccountLinksFixedSizeCollection createEmptyCollectio @Override protected ListAnalyticsAccountLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnalyticsAccountLinksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java index 0d01f9f25a82..abb107e3f116 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/MarketingplatformAdminServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -233,7 +234,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MarketingplatformAdminServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java index 2146d96c546e..1d480b3f69b2 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/MarketingplatformAdminServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -443,7 +444,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); } @@ -540,7 +541,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOrganizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsAccountLinkName.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsAccountLinkName.java index d0c63bcd09af..0ec0cbbf3d14 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsAccountLinkName.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/AnalyticsAccountLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String organization, String analyticsAccountLink) { .toString(); } - public static AnalyticsAccountLinkName parse(String formattedString) { + public static @Nullable AnalyticsAccountLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnalyticsAccountLinkName> values) { List list = new ArrayList<>(values.size()); for (AnalyticsAccountLinkName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/OrganizationName.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/OrganizationName.java index 68ae4f762382..5f8fb71c58e0 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/OrganizationName.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/PropertyName.java b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/PropertyName.java index f0483ebf20cd..766c40cea050 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/PropertyName.java +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/PropertyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String property) { return newBuilder().setProperty(property).build().toString(); } - public static PropertyName parse(String formattedString) { + public static @Nullable PropertyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PropertyName> values) { List list = new ArrayList<>(values.size()); for (PropertyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java index ff51bf8aa68d..dd51e1a307d9 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceClient.java @@ -25,6 +25,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. /** @@ -120,7 +121,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SpeechTranslationServiceClient implements BackgroundResource { - private final SpeechTranslationServiceSettings settings; + private final @Nullable SpeechTranslationServiceSettings settings; private final SpeechTranslationServiceStub stub; /** Constructs an instance of SpeechTranslationServiceClient with default settings. */ @@ -162,7 +163,7 @@ protected SpeechTranslationServiceClient(SpeechTranslationServiceStub stub) { this.stub = stub; } - public final SpeechTranslationServiceSettings getSettings() { + public final @Nullable SpeechTranslationServiceSettings getSettings() { return settings; } diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java index 8d477ecdaf05..dc14e635ae4e 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/SpeechTranslationServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -142,7 +143,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -163,7 +164,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpeechTranslationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java index 877d9086d24a..7171d9f10e9e 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/SpeechTranslationServiceStubSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -249,7 +250,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamingTranslateSpeechSettings = StreamingCallSettings.newBuilder(); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java index f420a9df5ee2..010d58b41f9f 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceClient.java @@ -32,6 +32,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. /** @@ -356,7 +357,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConferenceRecordsServiceClient implements BackgroundResource { - private final ConferenceRecordsServiceSettings settings; + private final @Nullable ConferenceRecordsServiceSettings settings; private final ConferenceRecordsServiceStub stub; /** Constructs an instance of ConferenceRecordsServiceClient with default settings. */ @@ -398,7 +399,7 @@ protected ConferenceRecordsServiceClient(ConferenceRecordsServiceStub stub) { this.stub = stub; } - public final ConferenceRecordsServiceSettings getSettings() { + public final @Nullable ConferenceRecordsServiceSettings getSettings() { return settings; } @@ -428,7 +429,7 @@ public ConferenceRecordsServiceStub getStub() { * @param name Required. Resource name of the conference. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConferenceRecord getConferenceRecord(ConferenceRecordName name) { + public final ConferenceRecord getConferenceRecord(@Nullable ConferenceRecordName name) { GetConferenceRecordRequest request = GetConferenceRecordRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -655,7 +656,7 @@ public final ListConferenceRecordsPagedResponse listConferenceRecords( * @param name Required. Resource name of the participant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant getParticipant(ParticipantName name) { + public final Participant getParticipant(@Nullable ParticipantName name) { GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getParticipant(request); @@ -774,7 +775,8 @@ public final UnaryCallable getParticipantCal * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParticipantsPagedResponse listParticipants(ConferenceRecordName parent) { + public final ListParticipantsPagedResponse listParticipants( + @Nullable ConferenceRecordName parent) { ListParticipantsRequest request = ListParticipantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -961,7 +963,7 @@ public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequ * @param name Required. Resource name of the participant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ParticipantSession getParticipantSession(ParticipantSessionName name) { + public final ParticipantSession getParticipantSession(@Nullable ParticipantSessionName name) { GetParticipantSessionRequest request = GetParticipantSessionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1094,7 +1096,7 @@ public final ParticipantSession getParticipantSession(GetParticipantSessionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListParticipantSessionsPagedResponse listParticipantSessions( - ParticipantName parent) { + @Nullable ParticipantName parent) { ListParticipantSessionsRequest request = ListParticipantSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1281,7 +1283,7 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( * @param name Required. Resource name of the recording. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Recording getRecording(RecordingName name) { + public final Recording getRecording(@Nullable RecordingName name) { GetRecordingRequest request = GetRecordingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRecording(request); @@ -1397,7 +1399,7 @@ public final UnaryCallable getRecordingCallable( * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRecordingsPagedResponse listRecordings(ConferenceRecordName parent) { + public final ListRecordingsPagedResponse listRecordings(@Nullable ConferenceRecordName parent) { ListRecordingsRequest request = ListRecordingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1569,7 +1571,7 @@ public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest re * @param name Required. Resource name of the transcript. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Transcript getTranscript(TranscriptName name) { + public final Transcript getTranscript(@Nullable TranscriptName name) { GetTranscriptRequest request = GetTranscriptRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTranscript(request); @@ -1686,7 +1688,7 @@ public final UnaryCallable getTranscriptCallab * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTranscriptsPagedResponse listTranscripts(ConferenceRecordName parent) { + public final ListTranscriptsPagedResponse listTranscripts(@Nullable ConferenceRecordName parent) { ListTranscriptsRequest request = ListTranscriptsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1864,7 +1866,7 @@ public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest * @param name Required. Resource name of the `TranscriptEntry`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TranscriptEntry getTranscriptEntry(TranscriptEntryName name) { + public final TranscriptEntry getTranscriptEntry(@Nullable TranscriptEntryName name) { GetTranscriptEntryRequest request = GetTranscriptEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2007,7 +2009,8 @@ public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest reques * `conferenceRecords/{conference_record}/transcripts/{transcript}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTranscriptEntriesPagedResponse listTranscriptEntries(TranscriptName parent) { + public final ListTranscriptEntriesPagedResponse listTranscriptEntries( + @Nullable TranscriptName parent) { ListTranscriptEntriesRequest request = ListTranscriptEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2240,9 +2243,11 @@ public static class ListConferenceRecordsPage ListConferenceRecordsPage> { private ListConferenceRecordsPage( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, - ListConferenceRecordsResponse response) { + @Nullable ListConferenceRecordsResponse response) { super(context, response); } @@ -2252,15 +2257,19 @@ private static ListConferenceRecordsPage createEmptyPage() { @Override protected ListConferenceRecordsPage createPage( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, - ListConferenceRecordsResponse response) { + @Nullable ListConferenceRecordsResponse response) { return new ListConferenceRecordsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2276,7 +2285,7 @@ public static class ListConferenceRecordsFixedSizeCollection ListConferenceRecordsFixedSizeCollection> { private ListConferenceRecordsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2286,7 +2295,7 @@ private static ListConferenceRecordsFixedSizeCollection createEmptyCollection() @Override protected ListConferenceRecordsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConferenceRecordsFixedSizeCollection(pages, collectionSize); } } @@ -2320,8 +2329,9 @@ public static class ListParticipantsPage ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage> { private ListParticipantsPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { super(context, response); } @@ -2331,14 +2341,16 @@ private static ListParticipantsPage createEmptyPage() { @Override protected ListParticipantsPage createPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { return new ListParticipantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2353,7 +2365,7 @@ public static class ListParticipantsFixedSizeCollection ListParticipantsFixedSizeCollection> { private ListParticipantsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2363,7 +2375,7 @@ private static ListParticipantsFixedSizeCollection createEmptyCollection() { @Override protected ListParticipantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantsFixedSizeCollection(pages, collectionSize); } } @@ -2402,10 +2414,11 @@ public static class ListParticipantSessionsPage ListParticipantSessionsPage> { private ListParticipantSessionsPage( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, - ListParticipantSessionsResponse response) { + @Nullable ListParticipantSessionsResponse response) { super(context, response); } @@ -2415,16 +2428,18 @@ private static ListParticipantSessionsPage createEmptyPage() { @Override protected ListParticipantSessionsPage createPage( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, - ListParticipantSessionsResponse response) { + @Nullable ListParticipantSessionsResponse response) { return new ListParticipantSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, ApiFuture futureResponse) { @@ -2441,7 +2456,7 @@ public static class ListParticipantSessionsFixedSizeCollection ListParticipantSessionsFixedSizeCollection> { private ListParticipantSessionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2451,7 +2466,7 @@ private static ListParticipantSessionsFixedSizeCollection createEmptyCollection( @Override protected ListParticipantSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantSessionsFixedSizeCollection(pages, collectionSize); } } @@ -2485,8 +2500,8 @@ public static class ListRecordingsPage ListRecordingsRequest, ListRecordingsResponse, Recording, ListRecordingsPage> { private ListRecordingsPage( - PageContext context, - ListRecordingsResponse response) { + @Nullable PageContext context, + @Nullable ListRecordingsResponse response) { super(context, response); } @@ -2496,14 +2511,14 @@ private static ListRecordingsPage createEmptyPage() { @Override protected ListRecordingsPage createPage( - PageContext context, - ListRecordingsResponse response) { + @Nullable PageContext context, + @Nullable ListRecordingsResponse response) { return new ListRecordingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2517,7 +2532,8 @@ public static class ListRecordingsFixedSizeCollection ListRecordingsPage, ListRecordingsFixedSizeCollection> { - private ListRecordingsFixedSizeCollection(List pages, int collectionSize) { + private ListRecordingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2527,7 +2543,7 @@ private static ListRecordingsFixedSizeCollection createEmptyCollection() { @Override protected ListRecordingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecordingsFixedSizeCollection(pages, collectionSize); } } @@ -2561,8 +2577,8 @@ public static class ListTranscriptsPage ListTranscriptsRequest, ListTranscriptsResponse, Transcript, ListTranscriptsPage> { private ListTranscriptsPage( - PageContext context, - ListTranscriptsResponse response) { + @Nullable PageContext context, + @Nullable ListTranscriptsResponse response) { super(context, response); } @@ -2572,14 +2588,14 @@ private static ListTranscriptsPage createEmptyPage() { @Override protected ListTranscriptsPage createPage( - PageContext context, - ListTranscriptsResponse response) { + @Nullable PageContext context, + @Nullable ListTranscriptsResponse response) { return new ListTranscriptsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2594,7 +2610,7 @@ public static class ListTranscriptsFixedSizeCollection ListTranscriptsFixedSizeCollection> { private ListTranscriptsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2604,7 +2620,7 @@ private static ListTranscriptsFixedSizeCollection createEmptyCollection() { @Override protected ListTranscriptsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTranscriptsFixedSizeCollection(pages, collectionSize); } } @@ -2642,9 +2658,11 @@ public static class ListTranscriptEntriesPage ListTranscriptEntriesPage> { private ListTranscriptEntriesPage( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, - ListTranscriptEntriesResponse response) { + @Nullable ListTranscriptEntriesResponse response) { super(context, response); } @@ -2654,15 +2672,19 @@ private static ListTranscriptEntriesPage createEmptyPage() { @Override protected ListTranscriptEntriesPage createPage( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, - ListTranscriptEntriesResponse response) { + @Nullable ListTranscriptEntriesResponse response) { return new ListTranscriptEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2678,7 +2700,7 @@ public static class ListTranscriptEntriesFixedSizeCollection ListTranscriptEntriesFixedSizeCollection> { private ListTranscriptEntriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2688,7 +2710,7 @@ private static ListTranscriptEntriesFixedSizeCollection createEmptyCollection() @Override protected ListTranscriptEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTranscriptEntriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java index 81a8d61c4f79..08afc5e36992 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/ConferenceRecordsServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,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); } @@ -259,7 +260,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConferenceRecordsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java index 98bcef796abb..49e3cfb01971 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java @@ -26,6 +26,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. /** @@ -191,7 +192,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpacesServiceClient implements BackgroundResource { - private final SpacesServiceSettings settings; + private final @Nullable SpacesServiceSettings settings; private final SpacesServiceStub stub; /** Constructs an instance of SpacesServiceClient with default settings. */ @@ -231,7 +232,7 @@ protected SpacesServiceClient(SpacesServiceStub stub) { this.stub = stub; } - public final SpacesServiceSettings getSettings() { + public final @Nullable SpacesServiceSettings getSettings() { return settings; } @@ -352,7 +353,7 @@ public final UnaryCallable createSpaceCallable() { * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Space getSpace(SpaceName name) { + public final Space getSpace(@Nullable SpaceName name) { GetSpaceRequest request = GetSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpace(request); @@ -582,7 +583,7 @@ public final UnaryCallable updateSpaceCallable() { * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void endActiveConference(SpaceName name) { + public final void endActiveConference(@Nullable SpaceName name) { EndActiveConferenceRequest request = EndActiveConferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java index 322b492e7dcc..80af022d7ffe 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpacesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java index ccccc7f71306..f5cc592f6d9d 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/ConferenceRecordsServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -720,7 +721,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); } @@ -828,7 +829,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getConferenceRecordSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java index dfc401a67f9c..6b74e6875196 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -238,7 +239,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); } @@ -318,7 +319,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java index 5762c36eecd0..5e6a7f3d62c6 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java @@ -33,6 +33,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. /** @@ -358,7 +359,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConferenceRecordsServiceClient implements BackgroundResource { - private final ConferenceRecordsServiceSettings settings; + private final @Nullable ConferenceRecordsServiceSettings settings; private final ConferenceRecordsServiceStub stub; /** Constructs an instance of ConferenceRecordsServiceClient with default settings. */ @@ -400,7 +401,7 @@ protected ConferenceRecordsServiceClient(ConferenceRecordsServiceStub stub) { this.stub = stub; } - public final ConferenceRecordsServiceSettings getSettings() { + public final @Nullable ConferenceRecordsServiceSettings getSettings() { return settings; } @@ -430,7 +431,7 @@ public ConferenceRecordsServiceStub getStub() { * @param name Required. Resource name of the conference. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConferenceRecord getConferenceRecord(ConferenceRecordName name) { + public final ConferenceRecord getConferenceRecord(@Nullable ConferenceRecordName name) { GetConferenceRecordRequest request = GetConferenceRecordRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -657,7 +658,7 @@ public final ListConferenceRecordsPagedResponse listConferenceRecords( * @param name Required. Resource name of the participant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Participant getParticipant(ParticipantName name) { + public final Participant getParticipant(@Nullable ParticipantName name) { GetParticipantRequest request = GetParticipantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getParticipant(request); @@ -776,7 +777,8 @@ public final UnaryCallable getParticipantCal * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParticipantsPagedResponse listParticipants(ConferenceRecordName parent) { + public final ListParticipantsPagedResponse listParticipants( + @Nullable ConferenceRecordName parent) { ListParticipantsRequest request = ListParticipantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -963,7 +965,7 @@ public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequ * @param name Required. Resource name of the participant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ParticipantSession getParticipantSession(ParticipantSessionName name) { + public final ParticipantSession getParticipantSession(@Nullable ParticipantSessionName name) { GetParticipantSessionRequest request = GetParticipantSessionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1096,7 +1098,7 @@ public final ParticipantSession getParticipantSession(GetParticipantSessionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListParticipantSessionsPagedResponse listParticipantSessions( - ParticipantName parent) { + @Nullable ParticipantName parent) { ListParticipantSessionsRequest request = ListParticipantSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1283,7 +1285,7 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( * @param name Required. Resource name of the recording. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Recording getRecording(RecordingName name) { + public final Recording getRecording(@Nullable RecordingName name) { GetRecordingRequest request = GetRecordingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRecording(request); @@ -1399,7 +1401,7 @@ public final UnaryCallable getRecordingCallable( * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRecordingsPagedResponse listRecordings(ConferenceRecordName parent) { + public final ListRecordingsPagedResponse listRecordings(@Nullable ConferenceRecordName parent) { ListRecordingsRequest request = ListRecordingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1571,7 +1573,7 @@ public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest re * @param name Required. Resource name of the transcript. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Transcript getTranscript(TranscriptName name) { + public final Transcript getTranscript(@Nullable TranscriptName name) { GetTranscriptRequest request = GetTranscriptRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTranscript(request); @@ -1688,7 +1690,7 @@ public final UnaryCallable getTranscriptCallab * @param parent Required. Format: `conferenceRecords/{conference_record}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTranscriptsPagedResponse listTranscripts(ConferenceRecordName parent) { + public final ListTranscriptsPagedResponse listTranscripts(@Nullable ConferenceRecordName parent) { ListTranscriptsRequest request = ListTranscriptsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1866,7 +1868,7 @@ public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest * @param name Required. Resource name of the `TranscriptEntry`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TranscriptEntry getTranscriptEntry(TranscriptEntryName name) { + public final TranscriptEntry getTranscriptEntry(@Nullable TranscriptEntryName name) { GetTranscriptEntryRequest request = GetTranscriptEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2009,7 +2011,8 @@ public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest reques * `conferenceRecords/{conference_record}/transcripts/{transcript}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTranscriptEntriesPagedResponse listTranscriptEntries(TranscriptName parent) { + public final ListTranscriptEntriesPagedResponse listTranscriptEntries( + @Nullable TranscriptName parent) { ListTranscriptEntriesRequest request = ListTranscriptEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2242,9 +2245,11 @@ public static class ListConferenceRecordsPage ListConferenceRecordsPage> { private ListConferenceRecordsPage( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, - ListConferenceRecordsResponse response) { + @Nullable ListConferenceRecordsResponse response) { super(context, response); } @@ -2254,15 +2259,19 @@ private static ListConferenceRecordsPage createEmptyPage() { @Override protected ListConferenceRecordsPage createPage( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, - ListConferenceRecordsResponse response) { + @Nullable ListConferenceRecordsResponse response) { return new ListConferenceRecordsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConferenceRecordsRequest, ListConferenceRecordsResponse, ConferenceRecord> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2278,7 +2287,7 @@ public static class ListConferenceRecordsFixedSizeCollection ListConferenceRecordsFixedSizeCollection> { private ListConferenceRecordsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2288,7 +2297,7 @@ private static ListConferenceRecordsFixedSizeCollection createEmptyCollection() @Override protected ListConferenceRecordsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConferenceRecordsFixedSizeCollection(pages, collectionSize); } } @@ -2322,8 +2331,9 @@ public static class ListParticipantsPage ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage> { private ListParticipantsPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { super(context, response); } @@ -2333,14 +2343,16 @@ private static ListParticipantsPage createEmptyPage() { @Override protected ListParticipantsPage createPage( - PageContext context, - ListParticipantsResponse response) { + @Nullable PageContext + context, + @Nullable ListParticipantsResponse response) { return new ListParticipantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2355,7 +2367,7 @@ public static class ListParticipantsFixedSizeCollection ListParticipantsFixedSizeCollection> { private ListParticipantsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2365,7 +2377,7 @@ private static ListParticipantsFixedSizeCollection createEmptyCollection() { @Override protected ListParticipantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantsFixedSizeCollection(pages, collectionSize); } } @@ -2404,10 +2416,11 @@ public static class ListParticipantSessionsPage ListParticipantSessionsPage> { private ListParticipantSessionsPage( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, - ListParticipantSessionsResponse response) { + @Nullable ListParticipantSessionsResponse response) { super(context, response); } @@ -2417,16 +2430,18 @@ private static ListParticipantSessionsPage createEmptyPage() { @Override protected ListParticipantSessionsPage createPage( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, - ListParticipantSessionsResponse response) { + @Nullable ListParticipantSessionsResponse response) { return new ListParticipantSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListParticipantSessionsRequest, ListParticipantSessionsResponse, ParticipantSession> context, ApiFuture futureResponse) { @@ -2443,7 +2458,7 @@ public static class ListParticipantSessionsFixedSizeCollection ListParticipantSessionsFixedSizeCollection> { private ListParticipantSessionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2453,7 +2468,7 @@ private static ListParticipantSessionsFixedSizeCollection createEmptyCollection( @Override protected ListParticipantSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParticipantSessionsFixedSizeCollection(pages, collectionSize); } } @@ -2487,8 +2502,8 @@ public static class ListRecordingsPage ListRecordingsRequest, ListRecordingsResponse, Recording, ListRecordingsPage> { private ListRecordingsPage( - PageContext context, - ListRecordingsResponse response) { + @Nullable PageContext context, + @Nullable ListRecordingsResponse response) { super(context, response); } @@ -2498,14 +2513,14 @@ private static ListRecordingsPage createEmptyPage() { @Override protected ListRecordingsPage createPage( - PageContext context, - ListRecordingsResponse response) { + @Nullable PageContext context, + @Nullable ListRecordingsResponse response) { return new ListRecordingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2519,7 +2534,8 @@ public static class ListRecordingsFixedSizeCollection ListRecordingsPage, ListRecordingsFixedSizeCollection> { - private ListRecordingsFixedSizeCollection(List pages, int collectionSize) { + private ListRecordingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2529,7 +2545,7 @@ private static ListRecordingsFixedSizeCollection createEmptyCollection() { @Override protected ListRecordingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecordingsFixedSizeCollection(pages, collectionSize); } } @@ -2563,8 +2579,8 @@ public static class ListTranscriptsPage ListTranscriptsRequest, ListTranscriptsResponse, Transcript, ListTranscriptsPage> { private ListTranscriptsPage( - PageContext context, - ListTranscriptsResponse response) { + @Nullable PageContext context, + @Nullable ListTranscriptsResponse response) { super(context, response); } @@ -2574,14 +2590,14 @@ private static ListTranscriptsPage createEmptyPage() { @Override protected ListTranscriptsPage createPage( - PageContext context, - ListTranscriptsResponse response) { + @Nullable PageContext context, + @Nullable ListTranscriptsResponse response) { return new ListTranscriptsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2596,7 +2612,7 @@ public static class ListTranscriptsFixedSizeCollection ListTranscriptsFixedSizeCollection> { private ListTranscriptsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2606,7 +2622,7 @@ private static ListTranscriptsFixedSizeCollection createEmptyCollection() { @Override protected ListTranscriptsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTranscriptsFixedSizeCollection(pages, collectionSize); } } @@ -2644,9 +2660,11 @@ public static class ListTranscriptEntriesPage ListTranscriptEntriesPage> { private ListTranscriptEntriesPage( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, - ListTranscriptEntriesResponse response) { + @Nullable ListTranscriptEntriesResponse response) { super(context, response); } @@ -2656,15 +2674,19 @@ private static ListTranscriptEntriesPage createEmptyPage() { @Override protected ListTranscriptEntriesPage createPage( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, - ListTranscriptEntriesResponse response) { + @Nullable ListTranscriptEntriesResponse response) { return new ListTranscriptEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListTranscriptEntriesRequest, ListTranscriptEntriesResponse, TranscriptEntry> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2680,7 +2702,7 @@ public static class ListTranscriptEntriesFixedSizeCollection ListTranscriptEntriesFixedSizeCollection> { private ListTranscriptEntriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2690,7 +2712,7 @@ private static ListTranscriptEntriesFixedSizeCollection createEmptyCollection() @Override protected ListTranscriptEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTranscriptEntriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceSettings.java index 74f5399d0987..9be2d527813a 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConferenceRecordsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java index 663b61168183..756fc988e8b8 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java @@ -35,6 +35,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. /** @@ -302,7 +303,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SpacesServiceClient implements BackgroundResource { - private final SpacesServiceSettings settings; + private final @Nullable SpacesServiceSettings settings; private final SpacesServiceStub stub; /** Constructs an instance of SpacesServiceClient with default settings. */ @@ -342,7 +343,7 @@ protected SpacesServiceClient(SpacesServiceStub stub) { this.stub = stub; } - public final SpacesServiceSettings getSettings() { + public final @Nullable SpacesServiceSettings getSettings() { return settings; } @@ -463,7 +464,7 @@ public final UnaryCallable createSpaceCallable() { * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Space getSpace(SpaceName name) { + public final Space getSpace(@Nullable SpaceName name) { GetSpaceRequest request = GetSpaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpace(request); @@ -693,7 +694,7 @@ public final UnaryCallable updateSpaceCallable() { * @param name Required. Resource name of the space. Format: spaces/{spaceId} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectActiveConferenceResponse connectActiveConference(SpaceName name) { + public final ConnectActiveConferenceResponse connectActiveConference(@Nullable SpaceName name) { ConnectActiveConferenceRequest request = ConnectActiveConferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -842,7 +843,7 @@ public final ConnectActiveConferenceResponse connectActiveConference( * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void endActiveConference(SpaceName name) { + public final void endActiveConference(@Nullable SpaceName name) { EndActiveConferenceRequest request = EndActiveConferenceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -974,7 +975,7 @@ public final UnaryCallable endActiveConferenc * @param member Required. The member to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Member createMember(SpaceName parent, Member member) { + public final Member createMember(@Nullable SpaceName parent, Member member) { CreateMemberRequest request = CreateMemberRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1106,7 +1107,7 @@ public final UnaryCallable createMemberCallable() { * @param name Required. Format: “spaces/{space}/members/{member}” * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Member getMember(MemberName name) { + public final Member getMember(@Nullable MemberName name) { GetMemberRequest request = GetMemberRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMember(request); @@ -1232,7 +1233,7 @@ public final UnaryCallable getMemberCallable() { * @param parent Required. Format: spaces/{space} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMembersPagedResponse listMembers(SpaceName parent) { + public final ListMembersPagedResponse listMembers(@Nullable SpaceName parent) { ListMembersRequest request = ListMembersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1408,7 +1409,7 @@ public final UnaryCallable listMembersC * @param name Required. Format: “spaces/{space}/members/{member}” * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMember(MemberName name) { + public final void deleteMember(@Nullable MemberName name) { DeleteMemberRequest request = DeleteMemberRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteMember(request); @@ -1554,8 +1555,8 @@ public static class ListMembersPage extends AbstractPage { private ListMembersPage( - PageContext context, - ListMembersResponse response) { + @Nullable PageContext context, + @Nullable ListMembersResponse response) { super(context, response); } @@ -1565,14 +1566,14 @@ private static ListMembersPage createEmptyPage() { @Override protected ListMembersPage createPage( - PageContext context, - ListMembersResponse response) { + @Nullable PageContext context, + @Nullable ListMembersResponse response) { return new ListMembersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1586,7 +1587,8 @@ public static class ListMembersFixedSizeCollection ListMembersPage, ListMembersFixedSizeCollection> { - private ListMembersFixedSizeCollection(List pages, int collectionSize) { + private ListMembersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1596,7 +1598,7 @@ private static ListMembersFixedSizeCollection createEmptyCollection() { @Override protected ListMembersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMembersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java index 46d1e8f75643..e4522d65c754 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpacesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java index 37ea83fa4672..314893eab72a 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -721,7 +722,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); } @@ -829,7 +830,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getConferenceRecordSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java index dacb312e9403..fced454f4764 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -344,7 +345,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); } @@ -441,7 +442,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java index 214efa96c6be..127511cb4eda 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ConferenceRecordName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String conferenceRecord) { return newBuilder().setConferenceRecord(conferenceRecord).build().toString(); } - public static ConferenceRecordName parse(String formattedString) { + public static @Nullable ConferenceRecordName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConferenceRecordName> values) { List list = new ArrayList<>(values.size()); for (ConferenceRecordName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java index 5e6ebc6203a5..d4668d46829e 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String participant) { .toString(); } - public static ParticipantName parse(String formattedString) { + public static @Nullable ParticipantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantName> values) { List list = new ArrayList<>(values.size()); for (ParticipantName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java index 5f166a943ede..13cf37219d10 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ParticipantSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format( .toString(); } - public static ParticipantSessionName parse(String formattedString) { + public static @Nullable ParticipantSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantSessionName> values) { List list = new ArrayList<>(values.size()); for (ParticipantSessionName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java index f0448e874c78..8b2363c50b89 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/RecordingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String recording) { .toString(); } - public static RecordingName parse(String formattedString) { + public static @Nullable RecordingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecordingName> values) { List list = new ArrayList<>(values.size()); for (RecordingName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java index 5a0ffd5b6289..d2193aaae476 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String space) { return newBuilder().setSpace(space).build().toString(); } - public static SpaceName parse(String formattedString) { + public static @Nullable SpaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -82,7 +83,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceName> values) { List list = new ArrayList<>(values.size()); for (SpaceName value : values) { if (value == null) { @@ -124,7 +125,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java index 90f91bb3afc0..3a572662f3e8 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptEntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String conferenceRecord, String transcript, String e .toString(); } - public static TranscriptEntryName parse(String formattedString) { + public static @Nullable TranscriptEntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TranscriptEntryName> values) { List list = new ArrayList<>(values.size()); for (TranscriptEntryName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java index 4edc18e7344d..6350a9d74764 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/TranscriptName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String transcript) { .toString(); } - public static TranscriptName parse(String formattedString) { + public static @Nullable TranscriptName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TranscriptName> values) { List list = new ArrayList<>(values.size()); for (TranscriptName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordName.java index fe165824d943..e1203c83349f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String conferenceRecord) { return newBuilder().setConferenceRecord(conferenceRecord).build().toString(); } - public static ConferenceRecordName parse(String formattedString) { + public static @Nullable ConferenceRecordName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConferenceRecordName> values) { List list = new ArrayList<>(values.size()); for (ConferenceRecordName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java index 9f1ed26d8693..7396a508f6ed 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String space, String member) { return newBuilder().setSpace(space).setMember(member).build().toString(); } - public static MemberName parse(String formattedString) { + public static @Nullable MemberName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MemberName> values) { List list = new ArrayList<>(values.size()); for (MemberName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantName.java index 2ee87fea9436..a2e777abcb47 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String participant) { .toString(); } - public static ParticipantName parse(String formattedString) { + public static @Nullable ParticipantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantName> values) { List list = new ArrayList<>(values.size()); for (ParticipantName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionName.java index 8e4dfcb35ad1..d279a8d5c514 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format( .toString(); } - public static ParticipantSessionName parse(String formattedString) { + public static @Nullable ParticipantSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParticipantSessionName> values) { List list = new ArrayList<>(values.size()); for (ParticipantSessionName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingName.java index 6343f66d79ef..c96e6f0cf21f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String recording) { .toString(); } - public static RecordingName parse(String formattedString) { + public static @Nullable RecordingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecordingName> values) { List list = new ArrayList<>(values.size()); for (RecordingName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceName.java index 0ea4a01f3514..0c83788fc899 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String space) { return newBuilder().setSpace(space).build().toString(); } - public static SpaceName parse(String formattedString) { + public static @Nullable SpaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -82,7 +83,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpaceName> values) { List list = new ArrayList<>(values.size()); for (SpaceName value : values) { if (value == null) { @@ -124,7 +125,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryName.java index bfe1fa85018c..e3f5a84d6137 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String conferenceRecord, String transcript, String e .toString(); } - public static TranscriptEntryName parse(String formattedString) { + public static @Nullable TranscriptEntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TranscriptEntryName> values) { List list = new ArrayList<>(values.size()); for (TranscriptEntryName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptName.java index 0053a9958e48..b30f9e96a6de 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptName.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String conferenceRecord, String transcript) { .toString(); } - public static TranscriptName parse(String formattedString) { + public static @Nullable TranscriptName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TranscriptName> values) { List list = new ArrayList<>(values.size()); for (TranscriptName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java index 0a3ee1860039..cadf57e0d8c1 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java @@ -44,6 +44,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. /** @@ -337,7 +338,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudMemcacheClient implements BackgroundResource { - private final CloudMemcacheSettings settings; + private final @Nullable CloudMemcacheSettings settings; private final CloudMemcacheStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -385,7 +386,7 @@ protected CloudMemcacheClient(CloudMemcacheStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudMemcacheSettings getSettings() { + public final @Nullable CloudMemcacheSettings getSettings() { return settings; } @@ -434,7 +435,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -603,7 +604,7 @@ public final UnaryCallable listInst * refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -729,7 +730,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1029,7 +1030,7 @@ public final UnaryCallable updateInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateParametersAsync( - InstanceName name, FieldMask updateMask, MemcacheParameters parameters) { + @Nullable InstanceName name, FieldMask updateMask, MemcacheParameters parameters) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1200,7 +1201,8 @@ public final UnaryCallable updateParametersC * refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1350,7 +1352,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture applyParametersAsync( - InstanceName name, List nodeIds, boolean applyAll) { + @Nullable InstanceName name, List nodeIds, boolean applyAll) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1529,7 +1531,7 @@ public final UnaryCallable applyParametersCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName instance, + @Nullable InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -1891,8 +1893,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1902,14 +1904,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1923,7 +1925,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1933,7 +1936,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -1967,8 +1970,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1978,14 +1981,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1999,7 +2002,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2009,7 +2013,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java index 42d8161a5f7b..261f6c85be6e 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudMemcacheStubSettings.newBuilder(clientContext)); } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java index d9c48add721e..bc49976f2e5f 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class CloudMemcacheStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java index 825110b49e90..3fb906b17c59 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,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); } @@ -590,7 +591,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java index 0cadbde5836b..70c15abd2ec2 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java @@ -44,6 +44,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. /** @@ -358,7 +359,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudMemcacheClient implements BackgroundResource { - private final CloudMemcacheSettings settings; + private final @Nullable CloudMemcacheSettings settings; private final CloudMemcacheStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -406,7 +407,7 @@ protected CloudMemcacheClient(CloudMemcacheStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudMemcacheSettings getSettings() { + public final @Nullable CloudMemcacheSettings getSettings() { return settings; } @@ -455,7 +456,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -624,7 +625,7 @@ public final UnaryCallable listInst * refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -750,7 +751,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, String instanceId, Instance resource) { + @Nullable LocationName parent, String instanceId, Instance resource) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1050,7 +1051,7 @@ public final UnaryCallable updateInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateParametersAsync( - InstanceName name, FieldMask updateMask, MemcacheParameters parameters) { + @Nullable InstanceName name, FieldMask updateMask, MemcacheParameters parameters) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1221,7 +1222,8 @@ public final UnaryCallable updateParametersC * refers to a GCP region * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1371,7 +1373,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture applyParametersAsync( - InstanceName name, List nodeIds, boolean applyAll) { + @Nullable InstanceName name, List nodeIds, boolean applyAll) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1547,7 +1549,7 @@ public final UnaryCallable applyParametersCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture applySoftwareUpdateAsync( - InstanceName instance, List nodeIds, boolean applyAll) { + @Nullable InstanceName instance, List nodeIds, boolean applyAll) { ApplySoftwareUpdateRequest request = ApplySoftwareUpdateRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) @@ -1724,7 +1726,7 @@ public final UnaryCallable applySoftwareU * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName instance, + @Nullable InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -2086,8 +2088,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2097,14 +2099,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2118,7 +2120,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2128,7 +2131,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2162,8 +2165,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2173,14 +2176,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2194,7 +2197,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2204,7 +2208,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java index c3241a4c6a15..a4d3e15ecc49 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,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); } @@ -299,7 +300,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudMemcacheStubSettings.newBuilder(clientContext)); } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java index 9148329db2d2..0f4e50ce8d43 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class CloudMemcacheStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java index d3a4cccfb316..1bb24b721b0b 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -496,7 +497,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); } @@ -615,7 +616,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java b/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java index fe1d960199a1..5ac49df7e765 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java +++ b/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java b/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java index 75808d521ac2..6caa24c30373 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java +++ b/java-memcache/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java b/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java index 6f7035afce1c..6a338df6e81a 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java b/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java index de112df8d641..ee559dccec86 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterClient.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterClient.java index 3e7530ab7701..29bf9b955f05 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterClient.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterClient.java @@ -43,6 +43,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. /** @@ -1089,7 +1090,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MigrationCenterClient implements BackgroundResource { - private final MigrationCenterSettings settings; + private final @Nullable MigrationCenterSettings settings; private final MigrationCenterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1137,7 +1138,7 @@ protected MigrationCenterClient(MigrationCenterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final MigrationCenterSettings getSettings() { + public final @Nullable MigrationCenterSettings getSettings() { return settings; } @@ -1185,7 +1186,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for `ListAssetsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(LocationName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable LocationName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -1350,7 +1351,7 @@ public final UnaryCallable listAssetsCall * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Asset getAsset(AssetName name) { + public final Asset getAsset(@Nullable AssetName name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAsset(request); @@ -1556,7 +1557,7 @@ public final UnaryCallable updateAssetCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateAssetsResponse batchUpdateAssets( - LocationName parent, List requests) { + @Nullable LocationName parent, List requests) { BatchUpdateAssetsRequest request = BatchUpdateAssetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1677,7 +1678,7 @@ public final BatchUpdateAssetsResponse batchUpdateAssets(BatchUpdateAssetsReques * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAsset(AssetName name) { + public final void deleteAsset(@Nullable AssetName name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAsset(request); @@ -1790,7 +1791,7 @@ public final UnaryCallable deleteAssetCallable() { * in a batch. Format: projects/{project}/locations/{location}/assets/{name}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteAssets(LocationName parent, List names) { + public final void batchDeleteAssets(@Nullable LocationName parent, List names) { BatchDeleteAssetsRequest request = BatchDeleteAssetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2039,7 +2040,7 @@ public final AggregateAssetsValuesResponse aggregateAssetsValues( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createImportJobAsync( - LocationName parent, ImportJob importJob, String importJobId) { + @Nullable LocationName parent, ImportJob importJob, String importJobId) { CreateImportJobRequest request = CreateImportJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2204,7 +2205,7 @@ public final UnaryCallable createImportJobCal * @param parent Required. Parent value for `ListImportJobsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImportJobsPagedResponse listImportJobs(LocationName parent) { + public final ListImportJobsPagedResponse listImportJobs(@Nullable LocationName parent) { ListImportJobsRequest request = ListImportJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2375,7 +2376,7 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImportJob getImportJob(ImportJobName name) { + public final ImportJob getImportJob(@Nullable ImportJobName name) { GetImportJobRequest request = GetImportJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getImportJob(request); @@ -2486,7 +2487,8 @@ public final UnaryCallable getImportJobCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteImportJobAsync(ImportJobName name) { + public final OperationFuture deleteImportJobAsync( + @Nullable ImportJobName name) { DeleteImportJobRequest request = DeleteImportJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteImportJobAsync(request); @@ -2760,7 +2762,7 @@ public final UnaryCallable updateImportJobCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture validateImportJobAsync( - ImportJobName name) { + @Nullable ImportJobName name) { ValidateImportJobRequest request = ValidateImportJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2904,7 +2906,8 @@ public final UnaryCallable validateImportJo * @param name Required. The name of the import job to run. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture runImportJobAsync(ImportJobName name) { + public final OperationFuture runImportJobAsync( + @Nullable ImportJobName name) { RunImportJobRequest request = RunImportJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runImportJobAsync(request); @@ -3047,7 +3050,7 @@ public final UnaryCallable runImportJobCallable( * @param name Required. Name of the ImportDataFile. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImportDataFile getImportDataFile(ImportDataFileName name) { + public final ImportDataFile getImportDataFile(@Nullable ImportDataFileName name) { GetImportDataFileRequest request = GetImportDataFileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3169,7 +3172,8 @@ public final UnaryCallable getImportDa * @param parent Required. Name of the parent of the `ImportDataFiles` resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImportDataFilesPagedResponse listImportDataFiles(ImportJobName parent) { + public final ListImportDataFilesPagedResponse listImportDataFiles( + @Nullable ImportJobName parent) { ListImportDataFilesRequest request = ListImportDataFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3349,7 +3353,7 @@ public final ListImportDataFilesPagedResponse listImportDataFiles( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createImportDataFileAsync( - ImportJobName parent, ImportDataFile importDataFile, String importDataFileId) { + @Nullable ImportJobName parent, ImportDataFile importDataFile, String importDataFileId) { CreateImportDataFileRequest request = CreateImportDataFileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3517,7 +3521,7 @@ public final OperationFuture createImportData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteImportDataFileAsync( - ImportDataFileName name) { + @Nullable ImportDataFileName name) { DeleteImportDataFileRequest request = DeleteImportDataFileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3676,7 +3680,7 @@ public final OperationFuture deleteImportDataFileAsync * @param parent Required. Parent value for `ListGroupsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(LocationName parent) { + public final ListGroupsPagedResponse listGroups(@Nullable LocationName parent) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listGroups(request); @@ -3838,7 +3842,7 @@ public final UnaryCallable listGroupsCall * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group getGroup(GroupName name) { + public final Group getGroup(@Nullable GroupName name) { GetGroupRequest request = GetGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGroup(request); @@ -3954,7 +3958,7 @@ public final UnaryCallable getGroupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGroupAsync( - LocationName parent, Group group, String groupId) { + @Nullable LocationName parent, Group group, String groupId) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4242,7 +4246,8 @@ public final UnaryCallable updateGroupCallable() * @param name Required. Name of the group resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGroupAsync(GroupName name) { + public final OperationFuture deleteGroupAsync( + @Nullable GroupName name) { DeleteGroupRequest request = DeleteGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGroupAsync(request); @@ -4383,7 +4388,8 @@ public final UnaryCallable deleteGroupCallable() * @param group Required. Group reference. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture addAssetsToGroupAsync(GroupName group) { + public final OperationFuture addAssetsToGroupAsync( + @Nullable GroupName group) { AddAssetsToGroupRequest request = AddAssetsToGroupRequest.newBuilder() .setGroup(group == null ? null : group.toString()) @@ -4534,7 +4540,7 @@ public final UnaryCallable addAssetsToGroupC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture removeAssetsFromGroupAsync( - GroupName group) { + @Nullable GroupName group) { RemoveAssetsFromGroupRequest request = RemoveAssetsFromGroupRequest.newBuilder() .setGroup(group == null ? null : group.toString()) @@ -4688,7 +4694,7 @@ public final OperationFuture removeAssetsFromGroupAsyn * @param parent Required. Parent value (the source) for `ListErrorFramesRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListErrorFramesPagedResponse listErrorFrames(SourceName parent) { + public final ListErrorFramesPagedResponse listErrorFrames(@Nullable SourceName parent) { ListErrorFramesRequest request = ListErrorFramesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4855,7 +4861,7 @@ public final ListErrorFramesPagedResponse listErrorFrames(ListErrorFramesRequest * projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ErrorFrame getErrorFrame(ErrorFrameName name) { + public final ErrorFrame getErrorFrame(@Nullable ErrorFrameName name) { GetErrorFrameRequest request = GetErrorFrameRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getErrorFrame(request); @@ -4974,7 +4980,7 @@ public final UnaryCallable getErrorFrameCallab * @param parent Required. Parent value for `ListSourcesRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(LocationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable LocationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5140,7 +5146,7 @@ public final UnaryCallable listSourcesC * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -5256,7 +5262,7 @@ public final UnaryCallable getSourceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSourceAsync( - LocationName parent, Source source, String sourceId) { + @Nullable LocationName parent, Source source, String sourceId) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5546,7 +5552,8 @@ public final UnaryCallable updateSourceCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSourceAsync(SourceName name) { + public final OperationFuture deleteSourceAsync( + @Nullable SourceName name) { DeleteSourceRequest request = DeleteSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSourceAsync(request); @@ -5690,7 +5697,7 @@ public final UnaryCallable deleteSourceCallable( * @param parent Required. Parent value for `ListPreferenceSetsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPreferenceSetsPagedResponse listPreferenceSets(LocationName parent) { + public final ListPreferenceSetsPagedResponse listPreferenceSets(@Nullable LocationName parent) { ListPreferenceSetsRequest request = ListPreferenceSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5857,7 +5864,7 @@ public final ListPreferenceSetsPagedResponse listPreferenceSets( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PreferenceSet getPreferenceSet(PreferenceSetName name) { + public final PreferenceSet getPreferenceSet(@Nullable PreferenceSetName name) { GetPreferenceSetRequest request = GetPreferenceSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPreferenceSet(request); @@ -5979,7 +5986,7 @@ public final UnaryCallable getPreference * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPreferenceSetAsync( - LocationName parent, PreferenceSet preferenceSet, String preferenceSetId) { + @Nullable LocationName parent, PreferenceSet preferenceSet, String preferenceSetId) { CreatePreferenceSetRequest request = CreatePreferenceSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6277,7 +6284,7 @@ public final UnaryCallable updatePreferen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePreferenceSetAsync( - PreferenceSetName name) { + @Nullable PreferenceSetName name) { DeletePreferenceSetRequest request = DeletePreferenceSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6425,7 +6432,7 @@ public final UnaryCallable deletePreferen * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -6667,7 +6674,7 @@ public final UnaryCallable updateSettingsCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReportConfigAsync( - LocationName parent, ReportConfig reportConfig, String reportConfigId) { + @Nullable LocationName parent, ReportConfig reportConfig, String reportConfigId) { CreateReportConfigRequest request = CreateReportConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6833,7 +6840,7 @@ public final UnaryCallable createReportCon * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportConfig getReportConfig(ReportConfigName name) { + public final ReportConfig getReportConfig(@Nullable ReportConfigName name) { GetReportConfigRequest request = GetReportConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReportConfig(request); @@ -6944,7 +6951,7 @@ public final UnaryCallable getReportConfig * @param parent Required. Parent value for `ListReportConfigsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportConfigsPagedResponse listReportConfigs(LocationName parent) { + public final ListReportConfigsPagedResponse listReportConfigs(@Nullable LocationName parent) { ListReportConfigsRequest request = ListReportConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7114,7 +7121,7 @@ public final ListReportConfigsPagedResponse listReportConfigs(ListReportConfigsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteReportConfigAsync( - ReportConfigName name) { + @Nullable ReportConfigName name) { DeleteReportConfigRequest request = DeleteReportConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7270,7 +7277,7 @@ public final UnaryCallable deleteReportCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReportAsync( - ReportConfigName parent, Report report, String reportId) { + @Nullable ReportConfigName parent, Report report, String reportId) { CreateReportRequest request = CreateReportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7438,7 +7445,7 @@ public final UnaryCallable createReportCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Report getReport(ReportName name) { + public final Report getReport(@Nullable ReportName name) { GetReportRequest request = GetReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReport(request); @@ -7555,7 +7562,7 @@ public final UnaryCallable getReportCallable() { * @param parent Required. Parent value for `ListReportsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportsPagedResponse listReports(ReportConfigName parent) { + public final ListReportsPagedResponse listReports(@Nullable ReportConfigName parent) { ListReportsRequest request = ListReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7727,7 +7734,8 @@ public final UnaryCallable listReportsC * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteReportAsync(ReportName name) { + public final OperationFuture deleteReportAsync( + @Nullable ReportName name) { DeleteReportRequest request = DeleteReportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteReportAsync(request); @@ -8067,8 +8075,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -8078,14 +8086,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8099,7 +8107,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8109,7 +8118,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -8143,8 +8152,8 @@ public static class ListImportJobsPage ListImportJobsRequest, ListImportJobsResponse, ImportJob, ListImportJobsPage> { private ListImportJobsPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { super(context, response); } @@ -8154,14 +8163,14 @@ private static ListImportJobsPage createEmptyPage() { @Override protected ListImportJobsPage createPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { return new ListImportJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8175,7 +8184,8 @@ public static class ListImportJobsFixedSizeCollection ListImportJobsPage, ListImportJobsFixedSizeCollection> { - private ListImportJobsFixedSizeCollection(List pages, int collectionSize) { + private ListImportJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8185,7 +8195,7 @@ private static ListImportJobsFixedSizeCollection createEmptyCollection() { @Override protected ListImportJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImportJobsFixedSizeCollection(pages, collectionSize); } } @@ -8223,9 +8233,10 @@ public static class ListImportDataFilesPage ListImportDataFilesPage> { private ListImportDataFilesPage( - PageContext + @Nullable + PageContext context, - ListImportDataFilesResponse response) { + @Nullable ListImportDataFilesResponse response) { super(context, response); } @@ -8235,15 +8246,17 @@ private static ListImportDataFilesPage createEmptyPage() { @Override protected ListImportDataFilesPage createPage( - PageContext + @Nullable + PageContext context, - ListImportDataFilesResponse response) { + @Nullable ListImportDataFilesResponse response) { return new ListImportDataFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8259,7 +8272,7 @@ public static class ListImportDataFilesFixedSizeCollection ListImportDataFilesFixedSizeCollection> { private ListImportDataFilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8269,7 +8282,7 @@ private static ListImportDataFilesFixedSizeCollection createEmptyCollection() { @Override protected ListImportDataFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImportDataFilesFixedSizeCollection(pages, collectionSize); } } @@ -8300,8 +8313,8 @@ public static class ListGroupsPage extends AbstractPage { private ListGroupsPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { super(context, response); } @@ -8311,14 +8324,14 @@ private static ListGroupsPage createEmptyPage() { @Override protected ListGroupsPage createPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { return new ListGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8332,7 +8345,8 @@ public static class ListGroupsFixedSizeCollection ListGroupsPage, ListGroupsFixedSizeCollection> { - private ListGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8342,7 +8356,7 @@ private static ListGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupsFixedSizeCollection(pages, collectionSize); } } @@ -8376,8 +8390,8 @@ public static class ListErrorFramesPage ListErrorFramesRequest, ListErrorFramesResponse, ErrorFrame, ListErrorFramesPage> { private ListErrorFramesPage( - PageContext context, - ListErrorFramesResponse response) { + @Nullable PageContext context, + @Nullable ListErrorFramesResponse response) { super(context, response); } @@ -8387,14 +8401,14 @@ private static ListErrorFramesPage createEmptyPage() { @Override protected ListErrorFramesPage createPage( - PageContext context, - ListErrorFramesResponse response) { + @Nullable PageContext context, + @Nullable ListErrorFramesResponse response) { return new ListErrorFramesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8409,7 +8423,7 @@ public static class ListErrorFramesFixedSizeCollection ListErrorFramesFixedSizeCollection> { private ListErrorFramesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8419,7 +8433,7 @@ private static ListErrorFramesFixedSizeCollection createEmptyCollection() { @Override protected ListErrorFramesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListErrorFramesFixedSizeCollection(pages, collectionSize); } } @@ -8450,8 +8464,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -8461,14 +8475,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8482,7 +8496,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8492,7 +8507,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } @@ -8529,8 +8544,9 @@ public static class ListPreferenceSetsPage ListPreferenceSetsPage> { private ListPreferenceSetsPage( - PageContext context, - ListPreferenceSetsResponse response) { + @Nullable PageContext + context, + @Nullable ListPreferenceSetsResponse response) { super(context, response); } @@ -8540,14 +8556,16 @@ private static ListPreferenceSetsPage createEmptyPage() { @Override protected ListPreferenceSetsPage createPage( - PageContext context, - ListPreferenceSetsResponse response) { + @Nullable PageContext + context, + @Nullable ListPreferenceSetsResponse response) { return new ListPreferenceSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8562,7 +8580,7 @@ public static class ListPreferenceSetsFixedSizeCollection ListPreferenceSetsFixedSizeCollection> { private ListPreferenceSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8572,7 +8590,7 @@ private static ListPreferenceSetsFixedSizeCollection createEmptyCollection() { @Override protected ListPreferenceSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPreferenceSetsFixedSizeCollection(pages, collectionSize); } } @@ -8609,8 +8627,9 @@ public static class ListReportConfigsPage ListReportConfigsPage> { private ListReportConfigsPage( - PageContext context, - ListReportConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportConfigsResponse response) { super(context, response); } @@ -8620,14 +8639,16 @@ private static ListReportConfigsPage createEmptyPage() { @Override protected ListReportConfigsPage createPage( - PageContext context, - ListReportConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportConfigsResponse response) { return new ListReportConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8642,7 +8663,7 @@ public static class ListReportConfigsFixedSizeCollection ListReportConfigsFixedSizeCollection> { private ListReportConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8652,7 +8673,7 @@ private static ListReportConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListReportConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportConfigsFixedSizeCollection(pages, collectionSize); } } @@ -8683,8 +8704,8 @@ public static class ListReportsPage extends AbstractPage { private ListReportsPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { super(context, response); } @@ -8694,14 +8715,14 @@ private static ListReportsPage createEmptyPage() { @Override protected ListReportsPage createPage( - PageContext context, - ListReportsResponse response) { + @Nullable PageContext context, + @Nullable ListReportsResponse response) { return new ListReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8715,7 +8736,8 @@ public static class ListReportsFixedSizeCollection ListReportsPage, ListReportsFixedSizeCollection> { - private ListReportsFixedSizeCollection(List pages, int collectionSize) { + private ListReportsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8725,7 +8747,7 @@ private static ListReportsFixedSizeCollection createEmptyCollection() { @Override protected ListReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportsFixedSizeCollection(pages, collectionSize); } } @@ -8759,8 +8781,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -8770,14 +8792,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8791,7 +8813,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8801,7 +8824,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterSettings.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterSettings.java index ef4fbd5d62ca..c3e433008ae5 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterSettings.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/MigrationCenterSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -599,7 +600,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); } @@ -619,7 +620,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MigrationCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStub.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStub.java index c823c02d5d20..0450104d0c7f 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStub.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStub.java @@ -110,6 +110,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -121,11 +122,12 @@ @Generated("by gapic-generator-java") public abstract class MigrationCenterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java index 828b582d79a4..4ac7e272c39b 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/MigrationCenterStubSettings.java @@ -144,6 +144,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1398,7 +1399,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); } @@ -1696,7 +1697,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAssetsSettings = PagedCallSettings.newBuilder(LIST_ASSETS_PAGE_STR_FACT); diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/AssetName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/AssetName.java index eb0888f373c5..5e1f20698815 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/AssetName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/AssetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String asset) { .toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ErrorFrameName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ErrorFrameName.java index 85306d51de9d..e5aecfb7625f 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ErrorFrameName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ErrorFrameName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String source, Stri .toString(); } - public static ErrorFrameName parse(String formattedString) { + public static @Nullable ErrorFrameName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ErrorFrameName> values) { List list = new ArrayList<>(values.size()); for (ErrorFrameName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/GroupName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/GroupName.java index 60d26837b4b3..9eb7bfbbbcf4 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/GroupName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/GroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String group) { .toString(); } - public static GroupName parse(String formattedString) { + public static @Nullable GroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroupName> values) { List list = new ArrayList<>(values.size()); for (GroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportDataFileName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportDataFileName.java index 479f8001954a..241c5e753879 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportDataFileName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportDataFileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ImportDataFileName parse(String formattedString) { + public static @Nullable ImportDataFileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImportDataFileName> values) { List list = new ArrayList<>(values.size()); for (ImportDataFileName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportJobName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportJobName.java index 5a373e2e3801..8af18437192e 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportJobName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ImportJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String importJob) { .toString(); } - public static ImportJobName parse(String formattedString) { + public static @Nullable ImportJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImportJobName> values) { List list = new ArrayList<>(values.size()); for (ImportJobName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/LocationName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/LocationName.java index 6fb1474497c1..75b816d898cc 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/LocationName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/PreferenceSetName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/PreferenceSetName.java index 41f464bc906a..4e3d6dada657 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/PreferenceSetName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/PreferenceSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String preferenceSe .toString(); } - public static PreferenceSetName parse(String formattedString) { + public static @Nullable PreferenceSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PreferenceSetName> values) { List list = new ArrayList<>(values.size()); for (PreferenceSetName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportConfigName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportConfigName.java index 9db2e760a1a8..4f7049aecd2d 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportConfigName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reportConfig .toString(); } - public static ReportConfigName parse(String formattedString) { + public static @Nullable ReportConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportConfigName> values) { List list = new ArrayList<>(values.size()); for (ReportConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportName.java index 102c03a7e45d..cda4b64885a5 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/ReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String reportConfig .toString(); } - public static ReportName parse(String formattedString) { + public static @Nullable ReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportName> values) { List list = new ArrayList<>(values.size()); for (ReportName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SettingsName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SettingsName.java index 9e6caf64cd7b..e7f6ea4aed4d 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SettingsName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SourceName.java b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SourceName.java index c4f4c33fe909..18ba3f05f880 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SourceName.java +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/src/main/java/com/google/cloud/migrationcenter/v1/SourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String source) { .toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java index 00aee1eac9c1..f998d9b626ff 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorClient.java @@ -39,6 +39,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. /** @@ -335,7 +336,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ModelArmorClient implements BackgroundResource { - private final ModelArmorSettings settings; + private final @Nullable ModelArmorSettings settings; private final ModelArmorStub stub; /** Constructs an instance of ModelArmorClient with default settings. */ @@ -373,7 +374,7 @@ protected ModelArmorClient(ModelArmorStub stub) { this.stub = stub; } - public final ModelArmorSettings getSettings() { + public final @Nullable ModelArmorSettings getSettings() { return settings; } @@ -404,7 +405,7 @@ public ModelArmorStub getStub() { * @param parent Required. Parent value for ListTemplatesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTemplatesPagedResponse listTemplates(LocationName parent) { + public final ListTemplatesPagedResponse listTemplates(@Nullable LocationName parent) { ListTemplatesRequest request = ListTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -570,7 +571,7 @@ public final UnaryCallable listTemp * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Template getTemplate(TemplateName name) { + public final Template getTemplate(@Nullable TemplateName name) { GetTemplateRequest request = GetTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTemplate(request); @@ -683,7 +684,8 @@ public final UnaryCallable getTemplateCallable() { * remove this field and template_id from the method_signature of Create RPC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Template createTemplate(LocationName parent, Template template, String templateId) { + public final Template createTemplate( + @Nullable LocationName parent, Template template, String templateId) { CreateTemplateRequest request = CreateTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -902,7 +904,7 @@ public final UnaryCallable updateTemplateCallab * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTemplate(TemplateName name) { + public final void deleteTemplate(@Nullable TemplateName name) { DeleteTemplateRequest request = DeleteTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTemplate(request); @@ -1012,7 +1014,7 @@ public final UnaryCallable deleteTemplateCallable( * @param name Required. The name of the floor setting to get, example projects/123/floorsetting. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FloorSetting getFloorSetting(FloorSettingName name) { + public final FloorSetting getFloorSetting(@Nullable FloorSettingName name) { GetFloorSettingRequest request = GetFloorSettingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFloorSetting(request); @@ -1611,8 +1613,8 @@ public static class ListTemplatesPage ListTemplatesRequest, ListTemplatesResponse, Template, ListTemplatesPage> { private ListTemplatesPage( - PageContext context, - ListTemplatesResponse response) { + @Nullable PageContext context, + @Nullable ListTemplatesResponse response) { super(context, response); } @@ -1622,14 +1624,14 @@ private static ListTemplatesPage createEmptyPage() { @Override protected ListTemplatesPage createPage( - PageContext context, - ListTemplatesResponse response) { + @Nullable PageContext context, + @Nullable ListTemplatesResponse response) { return new ListTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1643,7 +1645,8 @@ public static class ListTemplatesFixedSizeCollection ListTemplatesPage, ListTemplatesFixedSizeCollection> { - private ListTemplatesFixedSizeCollection(List pages, int collectionSize) { + private ListTemplatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1653,7 +1656,7 @@ private static ListTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -1687,8 +1690,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1698,14 +1701,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1719,7 +1722,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1729,7 +1733,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorSettings.java index b5023635fa87..9dbef01a5b48 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorSettings.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/ModelArmorSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelArmorStubSettings.newBuilder(clientContext)); } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/ModelArmorStubSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/ModelArmorStubSettings.java index 3affc8943f2b..d59fa16dcea4 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/ModelArmorStubSettings.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/ModelArmorStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -428,7 +429,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); } @@ -542,7 +543,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTemplatesSettings = PagedCallSettings.newBuilder(LIST_TEMPLATES_PAGE_STR_FACT); diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java index 87a829c97c76..097bf7b0d0e8 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java @@ -40,6 +40,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. /** @@ -339,7 +340,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelArmorClient implements BackgroundResource { - private final ModelArmorSettings settings; + private final @Nullable ModelArmorSettings settings; private final ModelArmorStub stub; /** Constructs an instance of ModelArmorClient with default settings. */ @@ -377,7 +378,7 @@ protected ModelArmorClient(ModelArmorStub stub) { this.stub = stub; } - public final ModelArmorSettings getSettings() { + public final @Nullable ModelArmorSettings getSettings() { return settings; } @@ -408,7 +409,7 @@ public ModelArmorStub getStub() { * @param parent Required. Parent value for ListTemplatesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTemplatesPagedResponse listTemplates(LocationName parent) { + public final ListTemplatesPagedResponse listTemplates(@Nullable LocationName parent) { ListTemplatesRequest request = ListTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -574,7 +575,7 @@ public final UnaryCallable listTemp * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Template getTemplate(TemplateName name) { + public final Template getTemplate(@Nullable TemplateName name) { GetTemplateRequest request = GetTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTemplate(request); @@ -687,7 +688,8 @@ public final UnaryCallable getTemplateCallable() { * remove this field and template_id from the method_signature of Create RPC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Template createTemplate(LocationName parent, Template template, String templateId) { + public final Template createTemplate( + @Nullable LocationName parent, Template template, String templateId) { CreateTemplateRequest request = CreateTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -906,7 +908,7 @@ public final UnaryCallable updateTemplateCallab * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTemplate(TemplateName name) { + public final void deleteTemplate(@Nullable TemplateName name) { DeleteTemplateRequest request = DeleteTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTemplate(request); @@ -1016,7 +1018,7 @@ public final UnaryCallable deleteTemplateCallable( * @param name Required. The name of the floor setting to get, example projects/123/floorsetting. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FloorSetting getFloorSetting(FloorSettingName name) { + public final FloorSetting getFloorSetting(@Nullable FloorSettingName name) { GetFloorSettingRequest request = GetFloorSettingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFloorSetting(request); @@ -1651,8 +1653,8 @@ public static class ListTemplatesPage ListTemplatesRequest, ListTemplatesResponse, Template, ListTemplatesPage> { private ListTemplatesPage( - PageContext context, - ListTemplatesResponse response) { + @Nullable PageContext context, + @Nullable ListTemplatesResponse response) { super(context, response); } @@ -1662,14 +1664,14 @@ private static ListTemplatesPage createEmptyPage() { @Override protected ListTemplatesPage createPage( - PageContext context, - ListTemplatesResponse response) { + @Nullable PageContext context, + @Nullable ListTemplatesResponse response) { return new ListTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1683,7 +1685,8 @@ public static class ListTemplatesFixedSizeCollection ListTemplatesPage, ListTemplatesFixedSizeCollection> { - private ListTemplatesFixedSizeCollection(List pages, int collectionSize) { + private ListTemplatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1693,7 +1696,7 @@ private static ListTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -1727,8 +1730,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1738,14 +1741,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1759,7 +1762,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1769,7 +1773,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java index 3911eb49bb38..f9994a186185 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -223,7 +224,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelArmorStubSettings.newBuilder(clientContext)); } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java index 0732dd636ab6..1049666cda66 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -429,7 +430,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); } @@ -543,7 +544,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTemplatesSettings = PagedCallSettings.newBuilder(LIST_TEMPLATES_PAGE_STR_FACT); diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FloorSettingName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FloorSettingName.java index e101b823c0da..e76623a88c52 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FloorSettingName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FloorSettingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -154,7 +155,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static FloorSettingName parse(String formattedString) { + public static @Nullable FloorSettingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FloorSettingName> values) { List list = new ArrayList<>(values.size()); for (FloorSettingName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/LocationName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/LocationName.java index 429036e887eb..b8c4815c320a 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/LocationName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/TemplateName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/TemplateName.java index 559bec46b3f1..a46b002b7be4 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/TemplateName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/TemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String template) { .toString(); } - public static TemplateName parse(String formattedString) { + public static @Nullable TemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TemplateName> values) { List list = new ArrayList<>(values.size()); for (TemplateName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingName.java index 41c3b719b1f4..b4d13a021820 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -154,7 +155,7 @@ public static String formatOrganizationLocationName(String organization, String .toString(); } - public static FloorSettingName parse(String formattedString) { + public static @Nullable FloorSettingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FloorSettingName> values) { List list = new ArrayList<>(values.size()); for (FloorSettingName value : values) { if (value == null) { @@ -232,7 +233,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/LocationName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/LocationName.java index 3a267baed759..cb2eef03649d 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/LocationName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/TemplateName.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/TemplateName.java index ad5f5b1ffae2..06083d6d25a5 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/TemplateName.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/TemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String template) { .toString(); } - public static TemplateName parse(String formattedString) { + public static @Nullable TemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TemplateName> values) { List list = new ArrayList<>(values.size()); for (TemplateName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java index 37f0e3d3b487..2d5a00ab4233 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java @@ -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. /** @@ -231,7 +232,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DashboardsServiceClient implements BackgroundResource { - private final DashboardsServiceSettings settings; + private final @Nullable DashboardsServiceSettings settings; private final DashboardsServiceStub stub; /** Constructs an instance of DashboardsServiceClient with default settings. */ @@ -271,7 +272,7 @@ protected DashboardsServiceClient(DashboardsServiceStub stub) { this.stub = stub; } - public final DashboardsServiceSettings getSettings() { + public final @Nullable DashboardsServiceSettings getSettings() { return settings; } @@ -308,7 +309,7 @@ public DashboardsServiceStub getStub() { * @param dashboard Required. The initial dashboard specification. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dashboard createDashboard(ProjectName parent, Dashboard dashboard) { + public final Dashboard createDashboard(@Nullable ProjectName parent, Dashboard dashboard) { CreateDashboardRequest request = CreateDashboardRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -447,7 +448,7 @@ public final UnaryCallable createDashboardCal *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDashboardsPagedResponse listDashboards(ProjectName parent) { + public final ListDashboardsPagedResponse listDashboards(@Nullable ProjectName parent) { ListDashboardsRequest request = ListDashboardsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -627,7 +628,7 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re * `projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID]` (for custom dashboards). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dashboard getDashboard(DashboardName name) { + public final Dashboard getDashboard(@Nullable DashboardName name) { GetDashboardRequest request = GetDashboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDashboard(request); @@ -752,7 +753,7 @@ public final UnaryCallable getDashboardCallable( *

projects/[PROJECT_ID_OR_NUMBER]/dashboards/[DASHBOARD_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDashboard(DashboardName name) { + public final void deleteDashboard(@Nullable DashboardName name) { DeleteDashboardRequest request = DeleteDashboardRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDashboard(request); @@ -978,8 +979,8 @@ public static class ListDashboardsPage ListDashboardsRequest, ListDashboardsResponse, Dashboard, ListDashboardsPage> { private ListDashboardsPage( - PageContext context, - ListDashboardsResponse response) { + @Nullable PageContext context, + @Nullable ListDashboardsResponse response) { super(context, response); } @@ -989,14 +990,14 @@ private static ListDashboardsPage createEmptyPage() { @Override protected ListDashboardsPage createPage( - PageContext context, - ListDashboardsResponse response) { + @Nullable PageContext context, + @Nullable ListDashboardsResponse response) { return new ListDashboardsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1010,7 +1011,8 @@ public static class ListDashboardsFixedSizeCollection ListDashboardsPage, ListDashboardsFixedSizeCollection> { - private ListDashboardsFixedSizeCollection(List pages, int collectionSize) { + private ListDashboardsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1020,7 +1022,7 @@ private static ListDashboardsFixedSizeCollection createEmptyCollection() { @Override protected ListDashboardsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDashboardsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java index bf7b382e536f..2438793ee139 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DashboardsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java index 7983700bb983..13050d1c16d3 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -400,7 +401,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDashboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java index cfcd0488dfc1..8e3c51618bc4 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DashboardName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String dashboard) { return newBuilder().setProject(project).setDashboard(dashboard).build().toString(); } - public static DashboardName parse(String formattedString) { + public static @Nullable DashboardName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DashboardName> values) { List list = new ArrayList<>(values.size()); for (DashboardName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java index 9a51ef006b88..456b4e37e3a2 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesClient.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesClient.java index 19b0c500fcad..8e6d8ccedfc4 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesClient.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesClient.java @@ -29,6 +29,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. /** @@ -177,7 +178,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetricsScopesClient implements BackgroundResource { - private final MetricsScopesSettings settings; + private final @Nullable MetricsScopesSettings settings; private final MetricsScopesStub stub; private final OperationsClient operationsClient; @@ -220,7 +221,7 @@ protected MetricsScopesClient(MetricsScopesStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MetricsScopesSettings getSettings() { + public final @Nullable MetricsScopesSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public final OperationsClient getOperationsClient() { * `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetricsScope getMetricsScope(MetricsScopeName name) { + public final MetricsScope getMetricsScope(@Nullable MetricsScopeName name) { GetMetricsScopeRequest request = GetMetricsScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetricsScope(request); @@ -440,7 +441,7 @@ public final ListMetricsScopesByMonitoredProjectResponse listMetricsScopesByMoni * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMonitoredProjectAsync( - MetricsScopeName parent, MonitoredProject monitoredProject) { + @Nullable MetricsScopeName parent, MonitoredProject monitoredProject) { CreateMonitoredProjectRequest request = CreateMonitoredProjectRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -603,7 +604,7 @@ public final OperationFuture createMonitore * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMonitoredProjectAsync( - MonitoredProjectName name) { + @Nullable MonitoredProjectName name) { DeleteMonitoredProjectRequest request = DeleteMonitoredProjectRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesSettings.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesSettings.java index a6f8e2d5eb70..2aaec15ef914 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesSettings.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopesSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -195,7 +196,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetricsScopesStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStub.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStub.java index df01b41b105f..143ddee7d50b 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStub.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStub.java @@ -32,6 +32,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,7 +44,7 @@ @Generated("by gapic-generator-java") public abstract class MetricsScopesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java index 3d57d9520ea8..0e6c257b3672 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/MetricsScopesStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMetricsScopeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopeName.java b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopeName.java index 390fbd1bee14..2dd24897a711 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopeName.java +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MetricsScopeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String metricsScope) { return newBuilder().setMetricsScope(metricsScope).build().toString(); } - public static MetricsScopeName parse(String formattedString) { + public static @Nullable MetricsScopeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetricsScopeName> values) { List list = new ArrayList<>(values.size()); for (MetricsScopeName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MonitoredProjectName.java b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MonitoredProjectName.java index 363a24b69a6c..214e55848d64 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MonitoredProjectName.java +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/src/main/java/com/google/monitoring/metricsscope/v1/MonitoredProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String metricsScope, String project) { return newBuilder().setMetricsScope(metricsScope).setProject(project).build().toString(); } - public static MonitoredProjectName parse(String formattedString) { + public static @Nullable MonitoredProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MonitoredProjectName> values) { List list = new ArrayList<>(values.size()); for (MonitoredProjectName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index c08a6920efce..2e83d4b927ca 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -45,6 +45,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. /** @@ -230,7 +231,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AlertPolicyServiceClient implements BackgroundResource { - private final AlertPolicyServiceSettings settings; + private final @Nullable AlertPolicyServiceSettings settings; private final AlertPolicyServiceStub stub; /** Constructs an instance of AlertPolicyServiceClient with default settings. */ @@ -270,7 +271,7 @@ protected AlertPolicyServiceClient(AlertPolicyServiceStub stub) { this.stub = stub; } - public final AlertPolicyServiceSettings getSettings() { + public final @Nullable AlertPolicyServiceSettings getSettings() { return settings; } @@ -307,7 +308,7 @@ public AlertPolicyServiceStub getStub() { * instead. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) { + public final ListAlertPoliciesPagedResponse listAlertPolicies(@Nullable ResourceName name) { ListAlertPoliciesRequest request = ListAlertPoliciesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -344,7 +345,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) * instead. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName name) { + public final ListAlertPoliciesPagedResponse listAlertPolicies(@Nullable OrganizationName name) { ListAlertPoliciesRequest request = ListAlertPoliciesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -381,7 +382,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName n * instead. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name) { + public final ListAlertPoliciesPagedResponse listAlertPolicies(@Nullable ProjectName name) { ListAlertPoliciesRequest request = ListAlertPoliciesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -557,7 +558,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR *

projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertPolicy getAlertPolicy(AlertPolicyName name) { + public final AlertPolicy getAlertPolicy(@Nullable AlertPolicyName name) { GetAlertPolicyRequest request = GetAlertPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAlertPolicy(request); @@ -688,7 +689,7 @@ public final UnaryCallable getAlertPolicyCal * `[ALERT_POLICY_ID]` value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertPolicy) { + public final AlertPolicy createAlertPolicy(@Nullable ResourceName name, AlertPolicy alertPolicy) { CreateAlertPolicyRequest request = CreateAlertPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -734,7 +735,8 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP * `[ALERT_POLICY_ID]` value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy alertPolicy) { + public final AlertPolicy createAlertPolicy( + @Nullable OrganizationName name, AlertPolicy alertPolicy) { CreateAlertPolicyRequest request = CreateAlertPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -780,7 +782,7 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al * `[ALERT_POLICY_ID]` value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPolicy) { + public final AlertPolicy createAlertPolicy(@Nullable ProjectName name, AlertPolicy alertPolicy) { CreateAlertPolicyRequest request = CreateAlertPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -926,7 +928,7 @@ public final UnaryCallable createAlertPol *

For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAlertPolicy(AlertPolicyName name) { + public final void deleteAlertPolicy(@Nullable AlertPolicyName name) { DeleteAlertPolicyRequest request = DeleteAlertPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1218,8 +1220,9 @@ public static class ListAlertPoliciesPage ListAlertPoliciesRequest, ListAlertPoliciesResponse, AlertPolicy, ListAlertPoliciesPage> { private ListAlertPoliciesPage( - PageContext context, - ListAlertPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAlertPoliciesResponse response) { super(context, response); } @@ -1229,14 +1232,16 @@ private static ListAlertPoliciesPage createEmptyPage() { @Override protected ListAlertPoliciesPage createPage( - PageContext context, - ListAlertPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAlertPoliciesResponse response) { return new ListAlertPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1251,7 +1256,7 @@ public static class ListAlertPoliciesFixedSizeCollection ListAlertPoliciesFixedSizeCollection> { private ListAlertPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1261,7 +1266,7 @@ private static ListAlertPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListAlertPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAlertPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java index f3dc7ea5e0d6..014f33fa0ca4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AlertPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java index 7740d8ce001e..59296541153a 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java @@ -47,6 +47,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. /** @@ -248,7 +249,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GroupServiceClient implements BackgroundResource { - private final GroupServiceSettings settings; + private final @Nullable GroupServiceSettings settings; private final GroupServiceStub stub; /** Constructs an instance of GroupServiceClient with default settings. */ @@ -287,7 +288,7 @@ protected GroupServiceClient(GroupServiceStub stub) { this.stub = stub; } - public final GroupServiceSettings getSettings() { + public final @Nullable GroupServiceSettings getSettings() { return settings; } @@ -320,7 +321,7 @@ public GroupServiceStub getStub() { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(ResourceName name) { + public final ListGroupsPagedResponse listGroups(@Nullable ResourceName name) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroups(request); @@ -351,7 +352,7 @@ public final ListGroupsPagedResponse listGroups(ResourceName name) { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(OrganizationName name) { + public final ListGroupsPagedResponse listGroups(@Nullable OrganizationName name) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroups(request); @@ -382,7 +383,7 @@ public final ListGroupsPagedResponse listGroups(OrganizationName name) { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(ProjectName name) { + public final ListGroupsPagedResponse listGroups(@Nullable ProjectName name) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroups(request); @@ -541,7 +542,7 @@ public final UnaryCallable listGroupsCall *

projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group getGroup(GroupName name) { + public final Group getGroup(@Nullable GroupName name) { GetGroupRequest request = GetGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGroup(request); @@ -655,7 +656,7 @@ public final UnaryCallable getGroupCallable() { * the system assigns the name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group createGroup(ResourceName name, Group group) { + public final Group createGroup(@Nullable ResourceName name, Group group) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -690,7 +691,7 @@ public final Group createGroup(ResourceName name, Group group) { * the system assigns the name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group createGroup(OrganizationName name, Group group) { + public final Group createGroup(@Nullable OrganizationName name, Group group) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -725,7 +726,7 @@ public final Group createGroup(OrganizationName name, Group group) { * the system assigns the name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group createGroup(ProjectName name, Group group) { + public final Group createGroup(@Nullable ProjectName name, Group group) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -931,7 +932,7 @@ public final UnaryCallable updateGroupCallable() { *

projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGroup(GroupName name) { + public final void deleteGroup(@Nullable GroupName name) { DeleteGroupRequest request = DeleteGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteGroup(request); @@ -1045,7 +1046,7 @@ public final UnaryCallable deleteGroupCallable() { *

projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupMembersPagedResponse listGroupMembers(GroupName name) { + public final ListGroupMembersPagedResponse listGroupMembers(@Nullable GroupName name) { ListGroupMembersRequest request = ListGroupMembersRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listGroupMembers(request); @@ -1247,8 +1248,8 @@ public static class ListGroupsPage extends AbstractPage { private ListGroupsPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { super(context, response); } @@ -1258,14 +1259,14 @@ private static ListGroupsPage createEmptyPage() { @Override protected ListGroupsPage createPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { return new ListGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1279,7 +1280,8 @@ public static class ListGroupsFixedSizeCollection ListGroupsPage, ListGroupsFixedSizeCollection> { - private ListGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1289,7 +1291,7 @@ private static ListGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupsFixedSizeCollection(pages, collectionSize); } } @@ -1326,8 +1328,9 @@ public static class ListGroupMembersPage ListGroupMembersPage> { private ListGroupMembersPage( - PageContext context, - ListGroupMembersResponse response) { + @Nullable PageContext + context, + @Nullable ListGroupMembersResponse response) { super(context, response); } @@ -1337,14 +1340,16 @@ private static ListGroupMembersPage createEmptyPage() { @Override protected ListGroupMembersPage createPage( - PageContext context, - ListGroupMembersResponse response) { + @Nullable PageContext + context, + @Nullable ListGroupMembersResponse response) { return new ListGroupMembersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1359,7 +1364,7 @@ public static class ListGroupMembersFixedSizeCollection ListGroupMembersFixedSizeCollection> { private ListGroupMembersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1369,7 +1374,7 @@ private static ListGroupMembersFixedSizeCollection createEmptyCollection() { @Override protected ListGroupMembersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupMembersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java index 360d3eb7b2e8..81fe83c1f695 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java @@ -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. /** @@ -175,7 +176,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index aa0f067203bc..a291db28ffb5 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -53,6 +53,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. /** @@ -313,7 +314,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetricServiceClient implements BackgroundResource { - private final MetricServiceSettings settings; + private final @Nullable MetricServiceSettings settings; private final MetricServiceStub stub; /** Constructs an instance of MetricServiceClient with default settings. */ @@ -353,7 +354,7 @@ protected MetricServiceClient(MetricServiceStub stub) { this.stub = stub; } - public final MetricServiceSettings getSettings() { + public final @Nullable MetricServiceSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public MetricServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - ResourceName name) { + @Nullable ResourceName name) { ListMonitoredResourceDescriptorsRequest request = ListMonitoredResourceDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -423,7 +424,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - OrganizationName name) { + @Nullable OrganizationName name) { ListMonitoredResourceDescriptorsRequest request = ListMonitoredResourceDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -458,7 +459,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - ProjectName name) { + @Nullable ProjectName name) { ListMonitoredResourceDescriptorsRequest request = ListMonitoredResourceDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -638,7 +639,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( - MonitoredResourceDescriptorName name) { + @Nullable MonitoredResourceDescriptorName name) { GetMonitoredResourceDescriptorRequest request = GetMonitoredResourceDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -770,7 +771,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceName name) { + public final ListMetricDescriptorsPagedResponse listMetricDescriptors( + @Nullable ResourceName name) { ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -804,7 +806,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceNa *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetricDescriptorsPagedResponse listMetricDescriptors(OrganizationName name) { + public final ListMetricDescriptorsPagedResponse listMetricDescriptors( + @Nullable OrganizationName name) { ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -838,7 +841,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(Organizati *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectName name) { + public final ListMetricDescriptorsPagedResponse listMetricDescriptors( + @Nullable ProjectName name) { ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1016,7 +1020,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MetricDescriptor getMetricDescriptor(MetricDescriptorName name) { + public final MetricDescriptor getMetricDescriptor(@Nullable MetricDescriptorName name) { GetMetricDescriptorRequest request = GetMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1148,7 +1152,7 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetricDescriptor createMetricDescriptor( - ResourceName name, MetricDescriptor metricDescriptor) { + @Nullable ResourceName name, MetricDescriptor metricDescriptor) { CreateMetricDescriptorRequest request = CreateMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1186,7 +1190,7 @@ public final MetricDescriptor createMetricDescriptor( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetricDescriptor createMetricDescriptor( - OrganizationName name, MetricDescriptor metricDescriptor) { + @Nullable OrganizationName name, MetricDescriptor metricDescriptor) { CreateMetricDescriptorRequest request = CreateMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1224,7 +1228,7 @@ public final MetricDescriptor createMetricDescriptor( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MetricDescriptor createMetricDescriptor( - ProjectName name, MetricDescriptor metricDescriptor) { + @Nullable ProjectName name, MetricDescriptor metricDescriptor) { CreateMetricDescriptorRequest request = CreateMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1359,7 +1363,7 @@ public final MetricDescriptor createMetricDescriptor(CreateMetricDescriptorReque *

An example of `[METRIC_ID]` is: `"custom.googleapis.com/my_test_metric"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMetricDescriptor(MetricDescriptorName name) { + public final void deleteMetricDescriptor(@Nullable MetricDescriptorName name) { DeleteMetricDescriptorRequest request = DeleteMetricDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1503,7 +1507,7 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTimeSeriesPagedResponse listTimeSeries( - ResourceName name, + @Nullable ResourceName name, String filter, TimeInterval interval, ListTimeSeriesRequest.TimeSeriesView view) { @@ -1556,7 +1560,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTimeSeriesPagedResponse listTimeSeries( - OrganizationName name, + @Nullable OrganizationName name, String filter, TimeInterval interval, ListTimeSeriesRequest.TimeSeriesView view) { @@ -1609,7 +1613,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTimeSeriesPagedResponse listTimeSeries( - ProjectName name, + @Nullable ProjectName name, String filter, TimeInterval interval, ListTimeSeriesRequest.TimeSeriesView view) { @@ -1829,7 +1833,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re *

The maximum number of `TimeSeries` objects per `Create` request is 200. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void createTimeSeries(ProjectName name, List timeSeries) { + public final void createTimeSeries(@Nullable ProjectName name, List timeSeries) { CreateTimeSeriesRequest request = CreateTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1976,7 +1980,8 @@ public final UnaryCallable createTimeSeriesCalla *

The maximum number of `TimeSeries` objects per `Create` request is 200. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void createServiceTimeSeries(ProjectName name, List timeSeries) { + public final void createServiceTimeSeries( + @Nullable ProjectName name, List timeSeries) { CreateTimeSeriesRequest request = CreateTimeSeriesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2161,12 +2166,13 @@ public static class ListMonitoredResourceDescriptorsPage ListMonitoredResourceDescriptorsPage> { private ListMonitoredResourceDescriptorsPage( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable ListMonitoredResourceDescriptorsResponse response) { super(context, response); } @@ -2176,18 +2182,20 @@ private static ListMonitoredResourceDescriptorsPage createEmptyPage() { @Override protected ListMonitoredResourceDescriptorsPage createPage( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable ListMonitoredResourceDescriptorsResponse response) { return new ListMonitoredResourceDescriptorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> @@ -2206,7 +2214,7 @@ public static class ListMonitoredResourceDescriptorsFixedSizeCollection ListMonitoredResourceDescriptorsFixedSizeCollection> { private ListMonitoredResourceDescriptorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2216,7 +2224,7 @@ private static ListMonitoredResourceDescriptorsFixedSizeCollection createEmptyCo @Override protected ListMonitoredResourceDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMonitoredResourceDescriptorsFixedSizeCollection(pages, collectionSize); } } @@ -2254,9 +2262,11 @@ public static class ListMetricDescriptorsPage ListMetricDescriptorsPage> { private ListMetricDescriptorsPage( - PageContext + @Nullable + PageContext< + ListMetricDescriptorsRequest, ListMetricDescriptorsResponse, MetricDescriptor> context, - ListMetricDescriptorsResponse response) { + @Nullable ListMetricDescriptorsResponse response) { super(context, response); } @@ -2266,15 +2276,19 @@ private static ListMetricDescriptorsPage createEmptyPage() { @Override protected ListMetricDescriptorsPage createPage( - PageContext + @Nullable + PageContext< + ListMetricDescriptorsRequest, ListMetricDescriptorsResponse, MetricDescriptor> context, - ListMetricDescriptorsResponse response) { + @Nullable ListMetricDescriptorsResponse response) { return new ListMetricDescriptorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListMetricDescriptorsRequest, ListMetricDescriptorsResponse, MetricDescriptor> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2290,7 +2304,7 @@ public static class ListMetricDescriptorsFixedSizeCollection ListMetricDescriptorsFixedSizeCollection> { private ListMetricDescriptorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2300,7 +2314,7 @@ private static ListMetricDescriptorsFixedSizeCollection createEmptyCollection() @Override protected ListMetricDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMetricDescriptorsFixedSizeCollection(pages, collectionSize); } } @@ -2334,8 +2348,8 @@ public static class ListTimeSeriesPage ListTimeSeriesRequest, ListTimeSeriesResponse, TimeSeries, ListTimeSeriesPage> { private ListTimeSeriesPage( - PageContext context, - ListTimeSeriesResponse response) { + @Nullable PageContext context, + @Nullable ListTimeSeriesResponse response) { super(context, response); } @@ -2345,14 +2359,14 @@ private static ListTimeSeriesPage createEmptyPage() { @Override protected ListTimeSeriesPage createPage( - PageContext context, - ListTimeSeriesResponse response) { + @Nullable PageContext context, + @Nullable ListTimeSeriesResponse response) { return new ListTimeSeriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2366,7 +2380,8 @@ public static class ListTimeSeriesFixedSizeCollection ListTimeSeriesPage, ListTimeSeriesFixedSizeCollection> { - private ListTimeSeriesFixedSizeCollection(List pages, int collectionSize) { + private ListTimeSeriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2376,7 +2391,7 @@ private static ListTimeSeriesFixedSizeCollection createEmptyCollection() { @Override protected ListTimeSeriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTimeSeriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java index 1a782b0c7507..7f08345de2fb 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -206,7 +207,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -226,7 +227,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetricServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index 15c5265f8751..0e15d84b9edc 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -54,6 +54,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. /** @@ -337,7 +338,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NotificationChannelServiceClient implements BackgroundResource { - private final NotificationChannelServiceSettings settings; + private final @Nullable NotificationChannelServiceSettings settings; private final NotificationChannelServiceStub stub; /** Constructs an instance of NotificationChannelServiceClient with default settings. */ @@ -379,7 +380,7 @@ protected NotificationChannelServiceClient(NotificationChannelServiceStub stub) this.stub = stub; } - public final NotificationChannelServiceSettings getSettings() { + public final @Nullable NotificationChannelServiceSettings getSettings() { return settings; } @@ -421,7 +422,7 @@ public NotificationChannelServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelDescriptorsPagedResponse listNotificationChannelDescriptors( - ResourceName name) { + @Nullable ResourceName name) { ListNotificationChannelDescriptorsRequest request = ListNotificationChannelDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -463,7 +464,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelDescriptorsPagedResponse listNotificationChannelDescriptors( - OrganizationName name) { + @Nullable OrganizationName name) { ListNotificationChannelDescriptorsRequest request = ListNotificationChannelDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -505,7 +506,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelDescriptorsPagedResponse listNotificationChannelDescriptors( - ProjectName name) { + @Nullable ProjectName name) { ListNotificationChannelDescriptorsRequest request = ListNotificationChannelDescriptorsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -703,7 +704,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannelDescriptor getNotificationChannelDescriptor( - NotificationChannelDescriptorName name) { + @Nullable NotificationChannelDescriptorName name) { GetNotificationChannelDescriptorRequest request = GetNotificationChannelDescriptorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -848,7 +849,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationChannelsPagedResponse listNotificationChannels(ResourceName name) { + public final ListNotificationChannelsPagedResponse listNotificationChannels( + @Nullable ResourceName name) { ListNotificationChannelsRequest request = ListNotificationChannelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -889,7 +891,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Reso * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationChannelsPagedResponse listNotificationChannels( - OrganizationName name) { + @Nullable OrganizationName name) { ListNotificationChannelsRequest request = ListNotificationChannelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -929,7 +931,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( * operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationChannelsPagedResponse listNotificationChannels(ProjectName name) { + public final ListNotificationChannelsPagedResponse listNotificationChannels( + @Nullable ProjectName name) { ListNotificationChannelsRequest request = ListNotificationChannelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1124,7 +1127,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( *

projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotificationChannel getNotificationChannel(NotificationChannelName name) { + public final NotificationChannel getNotificationChannel(@Nullable NotificationChannelName name) { GetNotificationChannelRequest request = GetNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1276,7 +1279,7 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel createNotificationChannel( - ResourceName name, NotificationChannel notificationChannel) { + @Nullable ResourceName name, NotificationChannel notificationChannel) { CreateNotificationChannelRequest request = CreateNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1322,7 +1325,7 @@ public final NotificationChannel createNotificationChannel( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel createNotificationChannel( - OrganizationName name, NotificationChannel notificationChannel) { + @Nullable OrganizationName name, NotificationChannel notificationChannel) { CreateNotificationChannelRequest request = CreateNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1368,7 +1371,7 @@ public final NotificationChannel createNotificationChannel( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel createNotificationChannel( - ProjectName name, NotificationChannel notificationChannel) { + @Nullable ProjectName name, NotificationChannel notificationChannel) { CreateNotificationChannelRequest request = CreateNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1642,7 +1645,8 @@ public final NotificationChannel updateNotificationChannel( * will fail if the notification channel is referenced by existing alerting policies. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationChannel(NotificationChannelName name, boolean force) { + public final void deleteNotificationChannel( + @Nullable NotificationChannelName name, boolean force) { DeleteNotificationChannelRequest request = DeleteNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1791,7 +1795,8 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req * @param name Required. The notification channel to which to send a verification code. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void sendNotificationChannelVerificationCode(NotificationChannelName name) { + public final void sendNotificationChannelVerificationCode( + @Nullable NotificationChannelName name) { SendNotificationChannelVerificationCodeRequest request = SendNotificationChannelVerificationCodeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1944,7 +1949,7 @@ public final void sendNotificationChannelVerificationCode( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GetNotificationChannelVerificationCodeResponse - getNotificationChannelVerificationCode(NotificationChannelName name) { + getNotificationChannelVerificationCode(@Nullable NotificationChannelName name) { GetNotificationChannelVerificationCodeRequest request = GetNotificationChannelVerificationCodeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2140,7 +2145,7 @@ public final void sendNotificationChannelVerificationCode( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel verifyNotificationChannel( - NotificationChannelName name, String code) { + @Nullable NotificationChannelName name, String code) { VerifyNotificationChannelRequest request = VerifyNotificationChannelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2328,12 +2333,13 @@ public static class ListNotificationChannelDescriptorsPage ListNotificationChannelDescriptorsPage> { private ListNotificationChannelDescriptorsPage( - PageContext< + @Nullable + PageContext< ListNotificationChannelDescriptorsRequest, ListNotificationChannelDescriptorsResponse, NotificationChannelDescriptor> context, - ListNotificationChannelDescriptorsResponse response) { + @Nullable ListNotificationChannelDescriptorsResponse response) { super(context, response); } @@ -2343,18 +2349,20 @@ private static ListNotificationChannelDescriptorsPage createEmptyPage() { @Override protected ListNotificationChannelDescriptorsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationChannelDescriptorsRequest, ListNotificationChannelDescriptorsResponse, NotificationChannelDescriptor> context, - ListNotificationChannelDescriptorsResponse response) { + @Nullable ListNotificationChannelDescriptorsResponse response) { return new ListNotificationChannelDescriptorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationChannelDescriptorsRequest, ListNotificationChannelDescriptorsResponse, NotificationChannelDescriptor> @@ -2373,7 +2381,7 @@ public static class ListNotificationChannelDescriptorsFixedSizeCollection ListNotificationChannelDescriptorsFixedSizeCollection> { private ListNotificationChannelDescriptorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2383,7 +2391,7 @@ private static ListNotificationChannelDescriptorsFixedSizeCollection createEmpty @Override protected ListNotificationChannelDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationChannelDescriptorsFixedSizeCollection(pages, collectionSize); } } @@ -2424,12 +2432,13 @@ public static class ListNotificationChannelsPage ListNotificationChannelsPage> { private ListNotificationChannelsPage( - PageContext< + @Nullable + PageContext< ListNotificationChannelsRequest, ListNotificationChannelsResponse, NotificationChannel> context, - ListNotificationChannelsResponse response) { + @Nullable ListNotificationChannelsResponse response) { super(context, response); } @@ -2439,18 +2448,20 @@ private static ListNotificationChannelsPage createEmptyPage() { @Override protected ListNotificationChannelsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationChannelsRequest, ListNotificationChannelsResponse, NotificationChannel> context, - ListNotificationChannelsResponse response) { + @Nullable ListNotificationChannelsResponse response) { return new ListNotificationChannelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationChannelsRequest, ListNotificationChannelsResponse, NotificationChannel> @@ -2469,7 +2480,7 @@ public static class ListNotificationChannelsFixedSizeCollection ListNotificationChannelsFixedSizeCollection> { private ListNotificationChannelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2479,7 +2490,7 @@ private static ListNotificationChannelsFixedSizeCollection createEmptyCollection @Override protected ListNotificationChannelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationChannelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java index 0ba23336f04a..d66b843ca3e4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java @@ -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. /** @@ -233,7 +234,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotificationChannelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java index e456d192cf80..8ccede7b77cc 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java @@ -35,6 +35,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. /** @@ -134,7 +135,7 @@ @NullMarked @Generated("by gapic-generator-java") public class QueryServiceClient implements BackgroundResource { - private final QueryServiceSettings settings; + private final @Nullable QueryServiceSettings settings; private final QueryServiceStub stub; /** Constructs an instance of QueryServiceClient with default settings. */ @@ -173,7 +174,7 @@ protected QueryServiceClient(QueryServiceStub stub) { this.stub = stub; } - public final QueryServiceSettings getSettings() { + public final @Nullable QueryServiceSettings getSettings() { return settings; } @@ -362,8 +363,9 @@ public static class QueryTimeSeriesPage QueryTimeSeriesRequest, QueryTimeSeriesResponse, TimeSeriesData, QueryTimeSeriesPage> { private QueryTimeSeriesPage( - PageContext context, - QueryTimeSeriesResponse response) { + @Nullable PageContext + context, + @Nullable QueryTimeSeriesResponse response) { super(context, response); } @@ -373,14 +375,16 @@ private static QueryTimeSeriesPage createEmptyPage() { @Override protected QueryTimeSeriesPage createPage( - PageContext context, - QueryTimeSeriesResponse response) { + @Nullable PageContext + context, + @Nullable QueryTimeSeriesResponse response) { return new QueryTimeSeriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -395,7 +399,7 @@ public static class QueryTimeSeriesFixedSizeCollection QueryTimeSeriesFixedSizeCollection> { private QueryTimeSeriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -405,7 +409,7 @@ private static QueryTimeSeriesFixedSizeCollection createEmptyCollection() { @Override protected QueryTimeSeriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryTimeSeriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java index b91c2bc48923..16ef45093e4e 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -145,7 +146,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -165,7 +166,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QueryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java index be35cd6a6027..9a51cdd8d895 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java @@ -52,6 +52,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. /** @@ -327,7 +328,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceMonitoringServiceClient implements BackgroundResource { - private final ServiceMonitoringServiceSettings settings; + private final @Nullable ServiceMonitoringServiceSettings settings; private final ServiceMonitoringServiceStub stub; /** Constructs an instance of ServiceMonitoringServiceClient with default settings. */ @@ -369,7 +370,7 @@ protected ServiceMonitoringServiceClient(ServiceMonitoringServiceStub stub) { this.stub = stub; } - public final ServiceMonitoringServiceSettings getSettings() { + public final @Nullable ServiceMonitoringServiceSettings getSettings() { return settings; } @@ -404,7 +405,7 @@ public ServiceMonitoringServiceStub getStub() { * @param service Required. The `Service` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(ResourceName parent, Service service) { + public final Service createService(@Nullable ResourceName parent, Service service) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -440,7 +441,7 @@ public final Service createService(ResourceName parent, Service service) { * @param service Required. The `Service` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(OrganizationName parent, Service service) { + public final Service createService(@Nullable OrganizationName parent, Service service) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -476,7 +477,7 @@ public final Service createService(OrganizationName parent, Service service) { * @param service Required. The `Service` to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(ProjectName parent, Service service) { + public final Service createService(@Nullable ProjectName parent, Service service) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -603,7 +604,7 @@ public final UnaryCallable createServiceCallable( *

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -722,7 +723,7 @@ public final UnaryCallable getServiceCallable() { *

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(ResourceName parent) { + public final ListServicesPagedResponse listServices(@Nullable ResourceName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -757,7 +758,7 @@ public final ListServicesPagedResponse listServices(ResourceName parent) { *

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(OrganizationName parent) { + public final ListServicesPagedResponse listServices(@Nullable OrganizationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -792,7 +793,7 @@ public final ListServicesPagedResponse listServices(OrganizationName parent) { *

projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(ProjectName parent) { + public final ListServicesPagedResponse listServices(@Nullable ProjectName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1053,7 +1054,7 @@ public final UnaryCallable updateServiceCallable( *

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteService(ServiceName name) { + public final void deleteService(@Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteService(request); @@ -1173,7 +1174,7 @@ public final UnaryCallable deleteServiceCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceLevelObjective createServiceLevelObjective( - ServiceName parent, ServiceLevelObjective serviceLevelObjective) { + @Nullable ServiceName parent, ServiceLevelObjective serviceLevelObjective) { CreateServiceLevelObjectiveRequest request = CreateServiceLevelObjectiveRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1310,7 +1311,8 @@ public final ServiceLevelObjective createServiceLevelObjective( *

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceLevelObjective getServiceLevelObjective(ServiceLevelObjectiveName name) { + public final ServiceLevelObjective getServiceLevelObjective( + @Nullable ServiceLevelObjectiveName name) { GetServiceLevelObjectiveRequest request = GetServiceLevelObjectiveRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1447,7 +1449,7 @@ public final ServiceLevelObjective getServiceLevelObjective( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( - ServiceName parent) { + @Nullable ServiceName parent) { ListServiceLevelObjectivesRequest request = ListServiceLevelObjectivesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1726,7 +1728,7 @@ public final ServiceLevelObjective updateServiceLevelObjective( *

projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServiceLevelObjective(ServiceLevelObjectiveName name) { + public final void deleteServiceLevelObjective(@Nullable ServiceLevelObjectiveName name) { DeleteServiceLevelObjectiveRequest request = DeleteServiceLevelObjectiveRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1889,8 +1891,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -1900,14 +1902,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1921,7 +1923,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1931,7 +1934,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -1972,12 +1975,13 @@ public static class ListServiceLevelObjectivesPage ListServiceLevelObjectivesPage> { private ListServiceLevelObjectivesPage( - PageContext< + @Nullable + PageContext< ListServiceLevelObjectivesRequest, ListServiceLevelObjectivesResponse, ServiceLevelObjective> context, - ListServiceLevelObjectivesResponse response) { + @Nullable ListServiceLevelObjectivesResponse response) { super(context, response); } @@ -1987,18 +1991,20 @@ private static ListServiceLevelObjectivesPage createEmptyPage() { @Override protected ListServiceLevelObjectivesPage createPage( - PageContext< + @Nullable + PageContext< ListServiceLevelObjectivesRequest, ListServiceLevelObjectivesResponse, ServiceLevelObjective> context, - ListServiceLevelObjectivesResponse response) { + @Nullable ListServiceLevelObjectivesResponse response) { return new ListServiceLevelObjectivesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListServiceLevelObjectivesRequest, ListServiceLevelObjectivesResponse, ServiceLevelObjective> @@ -2017,7 +2023,7 @@ public static class ListServiceLevelObjectivesFixedSizeCollection ListServiceLevelObjectivesFixedSizeCollection> { private ListServiceLevelObjectivesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2027,7 +2033,7 @@ private static ListServiceLevelObjectivesFixedSizeCollection createEmptyCollecti @Override protected ListServiceLevelObjectivesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceLevelObjectivesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java index 8d4afb555c97..56627f7bb08b 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -235,7 +236,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceMonitoringServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java index 31f8c835d127..143be59c32b5 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceClient.java @@ -41,6 +41,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. /** @@ -194,7 +195,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SnoozeServiceClient implements BackgroundResource { - private final SnoozeServiceSettings settings; + private final @Nullable SnoozeServiceSettings settings; private final SnoozeServiceStub stub; /** Constructs an instance of SnoozeServiceClient with default settings. */ @@ -234,7 +235,7 @@ protected SnoozeServiceClient(SnoozeServiceStub stub) { this.stub = stub; } - public final SnoozeServiceSettings getSettings() { + public final @Nullable SnoozeServiceSettings getSettings() { return settings; } @@ -269,7 +270,7 @@ public SnoozeServiceStub getStub() { * by the API. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snooze createSnooze(ProjectName parent, Snooze snooze) { + public final Snooze createSnooze(@Nullable ProjectName parent, Snooze snooze) { CreateSnoozeRequest request = CreateSnoozeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -396,7 +397,7 @@ public final UnaryCallable createSnoozeCallable() { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnoozesPagedResponse listSnoozes(ProjectName parent) { + public final ListSnoozesPagedResponse listSnoozes(@Nullable ProjectName parent) { ListSnoozesRequest request = ListSnoozesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,7 +566,7 @@ public final UnaryCallable listSnoozesC *

projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snooze getSnooze(SnoozeName name) { + public final Snooze getSnooze(@Nullable SnoozeName name) { GetSnoozeRequest request = GetSnoozeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSnooze(request); @@ -806,8 +807,8 @@ public static class ListSnoozesPage extends AbstractPage { private ListSnoozesPage( - PageContext context, - ListSnoozesResponse response) { + @Nullable PageContext context, + @Nullable ListSnoozesResponse response) { super(context, response); } @@ -817,14 +818,14 @@ private static ListSnoozesPage createEmptyPage() { @Override protected ListSnoozesPage createPage( - PageContext context, - ListSnoozesResponse response) { + @Nullable PageContext context, + @Nullable ListSnoozesResponse response) { return new ListSnoozesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -838,7 +839,8 @@ public static class ListSnoozesFixedSizeCollection ListSnoozesPage, ListSnoozesFixedSizeCollection> { - private ListSnoozesFixedSizeCollection(List pages, int collectionSize) { + private ListSnoozesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -848,7 +850,7 @@ private static ListSnoozesFixedSizeCollection createEmptyCollection() { @Override protected ListSnoozesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnoozesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java index ea1459b26924..ca0b4f4faf95 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/SnoozeServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SnoozeServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index 78ece74a367f..77f9c552eab2 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -47,6 +47,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. /** @@ -245,7 +246,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UptimeCheckServiceClient implements BackgroundResource { - private final UptimeCheckServiceSettings settings; + private final @Nullable UptimeCheckServiceSettings settings; private final UptimeCheckServiceStub stub; /** Constructs an instance of UptimeCheckServiceClient with default settings. */ @@ -285,7 +286,7 @@ protected UptimeCheckServiceClient(UptimeCheckServiceStub stub) { this.stub = stub; } - public final UptimeCheckServiceSettings getSettings() { + public final @Nullable UptimeCheckServiceSettings getSettings() { return settings; } @@ -320,7 +321,8 @@ public UptimeCheckServiceStub getStub() { *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ResourceName parent) { + public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( + @Nullable ResourceName parent) { ListUptimeCheckConfigsRequest request = ListUptimeCheckConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -355,7 +357,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Resource *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(OrganizationName parent) { + public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( + @Nullable OrganizationName parent) { ListUptimeCheckConfigsRequest request = ListUptimeCheckConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -390,7 +393,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Organiza *

projects/[PROJECT_ID_OR_NUMBER] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ProjectName parent) { + public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( + @Nullable ProjectName parent) { ListUptimeCheckConfigsRequest request = ListUptimeCheckConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -568,7 +572,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( *

projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UptimeCheckConfig getUptimeCheckConfig(UptimeCheckConfigName name) { + public final UptimeCheckConfig getUptimeCheckConfig(@Nullable UptimeCheckConfigName name) { GetUptimeCheckConfigRequest request = GetUptimeCheckConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -696,7 +700,7 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig createUptimeCheckConfig( - ResourceName parent, UptimeCheckConfig uptimeCheckConfig) { + @Nullable ResourceName parent, UptimeCheckConfig uptimeCheckConfig) { CreateUptimeCheckConfigRequest request = CreateUptimeCheckConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -732,7 +736,7 @@ public final UptimeCheckConfig createUptimeCheckConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig createUptimeCheckConfig( - OrganizationName parent, UptimeCheckConfig uptimeCheckConfig) { + @Nullable OrganizationName parent, UptimeCheckConfig uptimeCheckConfig) { CreateUptimeCheckConfigRequest request = CreateUptimeCheckConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -768,7 +772,7 @@ public final UptimeCheckConfig createUptimeCheckConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig createUptimeCheckConfig( - ProjectName parent, UptimeCheckConfig uptimeCheckConfig) { + @Nullable ProjectName parent, UptimeCheckConfig uptimeCheckConfig) { CreateUptimeCheckConfigRequest request = CreateUptimeCheckConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -998,7 +1002,7 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UpdateUptimeCheckConfigRe *

projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUptimeCheckConfig(UptimeCheckConfigName name) { + public final void deleteUptimeCheckConfig(@Nullable UptimeCheckConfigName name) { DeleteUptimeCheckConfigRequest request = DeleteUptimeCheckConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1273,10 +1277,11 @@ public static class ListUptimeCheckConfigsPage ListUptimeCheckConfigsPage> { private ListUptimeCheckConfigsPage( - PageContext< + @Nullable + PageContext< ListUptimeCheckConfigsRequest, ListUptimeCheckConfigsResponse, UptimeCheckConfig> context, - ListUptimeCheckConfigsResponse response) { + @Nullable ListUptimeCheckConfigsResponse response) { super(context, response); } @@ -1286,16 +1291,18 @@ private static ListUptimeCheckConfigsPage createEmptyPage() { @Override protected ListUptimeCheckConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListUptimeCheckConfigsRequest, ListUptimeCheckConfigsResponse, UptimeCheckConfig> context, - ListUptimeCheckConfigsResponse response) { + @Nullable ListUptimeCheckConfigsResponse response) { return new ListUptimeCheckConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUptimeCheckConfigsRequest, ListUptimeCheckConfigsResponse, UptimeCheckConfig> context, ApiFuture futureResponse) { @@ -1312,7 +1319,7 @@ public static class ListUptimeCheckConfigsFixedSizeCollection ListUptimeCheckConfigsFixedSizeCollection> { private ListUptimeCheckConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1322,7 +1329,7 @@ private static ListUptimeCheckConfigsFixedSizeCollection createEmptyCollection() @Override protected ListUptimeCheckConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUptimeCheckConfigsFixedSizeCollection(pages, collectionSize); } } @@ -1359,8 +1366,9 @@ public static class ListUptimeCheckIpsPage ListUptimeCheckIpsPage> { private ListUptimeCheckIpsPage( - PageContext context, - ListUptimeCheckIpsResponse response) { + @Nullable PageContext + context, + @Nullable ListUptimeCheckIpsResponse response) { super(context, response); } @@ -1370,14 +1378,16 @@ private static ListUptimeCheckIpsPage createEmptyPage() { @Override protected ListUptimeCheckIpsPage createPage( - PageContext context, - ListUptimeCheckIpsResponse response) { + @Nullable PageContext + context, + @Nullable ListUptimeCheckIpsResponse response) { return new ListUptimeCheckIpsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1392,7 +1402,7 @@ public static class ListUptimeCheckIpsFixedSizeCollection ListUptimeCheckIpsFixedSizeCollection> { private ListUptimeCheckIpsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1402,7 +1412,7 @@ private static ListUptimeCheckIpsFixedSizeCollection createEmptyCollection() { @Override protected ListUptimeCheckIpsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUptimeCheckIpsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java index 1d80299607ae..4bd4766ae9d5 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java @@ -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. /** @@ -184,7 +185,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UptimeCheckServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java index 97f3f0a894a7..8376cd6038a4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -373,7 +374,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAlertPoliciesSettings = PagedCallSettings.newBuilder(LIST_ALERT_POLICIES_PAGE_STR_FACT); diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java index 1017eea44bc1..511f4fbbfde0 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -345,7 +346,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -446,7 +447,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGroupsSettings = PagedCallSettings.newBuilder(LIST_GROUPS_PAGE_STR_FACT); diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java index ea4e4a2d28d0..bdd0ca81723a 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -604,7 +605,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMonitoredResourceDescriptorsSettings = diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java index 58e33fb1b76e..09a6b84f5a72 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -456,7 +457,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -571,7 +572,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listNotificationChannelDescriptorsSettings = diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java index 84068831902c..2579ab0d0907 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -311,7 +312,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); queryTimeSeriesSettings = PagedCallSettings.newBuilder(QUERY_TIME_SERIES_PAGE_STR_FACT); diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java index 8bd8f382c6a4..32e9992e63c4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -406,7 +407,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -514,7 +515,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java index 8cab4bebbe6a..1655c3c3194a 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/SnoozeServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -347,7 +348,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSnoozeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java index 7c4b49726117..b85f0b5140c6 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -473,7 +474,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listUptimeCheckConfigsSettings = diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java index 64e7d7274dc4..7ac362da9a12 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatFolderAlertPolicyName(String folder, String alertPoli .toString(); } - public static AlertPolicyName parse(String formattedString) { + public static @Nullable AlertPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -185,7 +186,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AlertPolicyName> values) { List list = new ArrayList<>(values.size()); for (AlertPolicyName value : values) { if (value == null) { @@ -238,7 +239,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java index 1025f6df8f29..9862c32140c9 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java index 072975308fdb..c4ef56bc6a5a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatFolderGroupName(String folder, String group) { return newFolderGroupBuilder().setFolder(folder).setGroup(group).build().toString(); } - public static GroupName parse(String formattedString) { + public static @Nullable GroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroupName> values) { List list = new ArrayList<>(values.size()); for (GroupName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java index b7e230c6acc0..4e5b41b30b9d 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -175,7 +176,7 @@ public static String formatFolderMetricDescriptorName(String folder, String metr .toString(); } - public static MetricDescriptorName parse(String formattedString) { + public static @Nullable MetricDescriptorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -204,7 +205,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetricDescriptorName> values) { List list = new ArrayList<>(values.size()); for (MetricDescriptorName value : values) { if (value == null) { @@ -257,7 +258,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java index 35e90d7474bd..c5195255e9d6 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -189,7 +190,7 @@ public static String formatFolderMonitoredResourceDescriptorName( .toString(); } - public static MonitoredResourceDescriptorName parse(String formattedString) { + public static @Nullable MonitoredResourceDescriptorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -219,7 +220,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MonitoredResourceDescriptorName> values) { List list = new ArrayList<>(values.size()); for (MonitoredResourceDescriptorName value : values) { if (value == null) { @@ -272,7 +273,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java index 6b2fc8b53865..4d0f318df48f 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatFolderChannelDescriptorName(String folder, String cha .toString(); } - public static NotificationChannelDescriptorName parse(String formattedString) { + public static @Nullable NotificationChannelDescriptorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -205,7 +206,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable NotificationChannelDescriptorName> values) { List list = new ArrayList<>(values.size()); for (NotificationChannelDescriptorName value : values) { if (value == null) { @@ -258,7 +260,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java index 194ae281a03c..cc008eb6d226 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -177,7 +178,7 @@ public static String formatFolderNotificationChannelName( .toString(); } - public static NotificationChannelName parse(String formattedString) { + public static @Nullable NotificationChannelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationChannelName> values) { List list = new ArrayList<>(values.size()); for (NotificationChannelName value : values) { if (value == null) { @@ -259,7 +260,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java index 76a0efeb409b..b79fcbefa6a2 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java index 7d236d591868..e1d11d519794 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java index b718f8309c41..e4d0afcd3437 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -203,7 +204,7 @@ public static String formatFolderServiceServiceLevelObjectiveName( .toString(); } - public static ServiceLevelObjectiveName parse(String formattedString) { + public static @Nullable ServiceLevelObjectiveName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -237,7 +238,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceLevelObjectiveName> values) { List list = new ArrayList<>(values.size()); for (ServiceLevelObjectiveName value : values) { if (value == null) { @@ -293,7 +294,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java index 66ea8f55b3c1..a2507582ebcd 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -153,7 +154,7 @@ public static String formatFolderServiceName(String folder, String service) { return newFolderServiceBuilder().setFolder(folder).setService(service).build().toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -178,7 +179,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -231,7 +232,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java index 7750efdad883..d1c3c6ab010a 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SnoozeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String snooze) { return newBuilder().setProject(project).setSnooze(snooze).build().toString(); } - public static SnoozeName parse(String formattedString) { + public static @Nullable SnoozeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnoozeName> values) { List list = new ArrayList<>(values.size()); for (SnoozeName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java index 2614268958f6..eda46c557a8b 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatFolderTimeSeriesName(String folder, String timeSeries .toString(); } - public static TimeSeriesName parse(String formattedString) { + public static @Nullable TimeSeriesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -185,7 +186,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TimeSeriesName> values) { List list = new ArrayList<>(values.size()); for (TimeSeriesName value : values) { if (value == null) { @@ -238,7 +239,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java index 3eb7864e6533..508fce281a56 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -176,7 +177,7 @@ public static String formatFolderUptimeCheckConfigName(String folder, String upt .toString(); } - public static UptimeCheckConfigName parse(String formattedString) { + public static @Nullable UptimeCheckConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -205,7 +206,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UptimeCheckConfigName> values) { List list = new ArrayList<>(values.size()); for (UptimeCheckConfigName value : values) { if (value == null) { @@ -258,7 +259,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index 7b7fa0ef2fdb..1d23a5aa9703 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -43,6 +43,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. /** @@ -1473,7 +1474,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetAppClient implements BackgroundResource { - private final NetAppSettings settings; + private final @Nullable NetAppSettings settings; private final NetAppStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1519,7 +1520,7 @@ protected NetAppClient(NetAppStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final NetAppSettings getSettings() { + public final @Nullable NetAppSettings getSettings() { return settings; } @@ -1567,7 +1568,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStoragePoolsPagedResponse listStoragePools(LocationName parent) { + public final ListStoragePoolsPagedResponse listStoragePools(@Nullable LocationName parent) { ListStoragePoolsRequest request = ListStoragePoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1743,7 +1744,7 @@ public final ListStoragePoolsPagedResponse listStoragePools(ListStoragePoolsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStoragePoolAsync( - LocationName parent, StoragePool storagePool, String storagePoolId) { + @Nullable LocationName parent, StoragePool storagePool, String storagePoolId) { CreateStoragePoolRequest request = CreateStoragePoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1904,7 +1905,7 @@ public final UnaryCallable createStoragePoo * @param name Required. Name of the storage pool * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StoragePool getStoragePool(StoragePoolName name) { + public final StoragePool getStoragePool(@Nullable StoragePoolName name) { GetStoragePoolRequest request = GetStoragePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStoragePool(request); @@ -2137,7 +2138,7 @@ public final UnaryCallable updateStoragePoo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteStoragePoolAsync( - StoragePoolName name) { + @Nullable StoragePoolName name) { DeleteStoragePoolRequest request = DeleteStoragePoolRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2459,7 +2460,7 @@ public final OperationFuture switchActiveReplica * @param parent Required. Parent value for ListVolumesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVolumesPagedResponse listVolumes(LocationName parent) { + public final ListVolumesPagedResponse listVolumes(@Nullable LocationName parent) { ListVolumesRequest request = ListVolumesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2624,7 +2625,7 @@ public final UnaryCallable listVolumesC * @param name Required. Name of the volume * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Volume getVolume(VolumeName name) { + public final Volume getVolume(@Nullable VolumeName name) { GetVolumeRequest request = GetVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVolume(request); @@ -2739,7 +2740,7 @@ public final UnaryCallable getVolumeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVolumeAsync( - LocationName parent, Volume volume, String volumeId) { + @Nullable LocationName parent, Volume volume, String volumeId) { CreateVolumeRequest request = CreateVolumeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3020,7 +3021,8 @@ public final UnaryCallable updateVolumeCallable( * @param name Required. Name of the volume * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteVolumeAsync(VolumeName name) { + public final OperationFuture deleteVolumeAsync( + @Nullable VolumeName name) { DeleteVolumeRequest request = DeleteVolumeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteVolumeAsync(request); @@ -3357,7 +3359,7 @@ public final OperationFuture establishVolumePeeringAs * `projects/{project_id}/locations/{location}/volumes/{volume_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(VolumeName parent) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable VolumeName parent) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3524,7 +3526,7 @@ public final UnaryCallable listSnap * `projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName name) { + public final Snapshot getSnapshot(@Nullable SnapshotName name) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSnapshot(request); @@ -3643,7 +3645,7 @@ public final UnaryCallable getSnapshotCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSnapshotAsync( - VolumeName parent, Snapshot snapshot, String snapshotId) { + @Nullable VolumeName parent, Snapshot snapshot, String snapshotId) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3805,7 +3807,8 @@ public final UnaryCallable createSnapshotCalla * `projects/*/locations/*/volumes/*/snapshots/{snapshot_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSnapshotAsync(SnapshotName name) { + public final OperationFuture deleteSnapshotAsync( + @Nullable SnapshotName name) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSnapshotAsync(request); @@ -4068,7 +4071,8 @@ public final UnaryCallable updateSnapshotCalla * @param parent Required. Parent value for ListActiveDirectoriesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListActiveDirectoriesPagedResponse listActiveDirectories(LocationName parent) { + public final ListActiveDirectoriesPagedResponse listActiveDirectories( + @Nullable LocationName parent) { ListActiveDirectoriesRequest request = ListActiveDirectoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4239,7 +4243,7 @@ public final ListActiveDirectoriesPagedResponse listActiveDirectories( * @param name Required. Name of the active directory. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ActiveDirectory getActiveDirectory(ActiveDirectoryName name) { + public final ActiveDirectory getActiveDirectory(@Nullable ActiveDirectoryName name) { GetActiveDirectoryRequest request = GetActiveDirectoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4365,7 +4369,7 @@ public final ActiveDirectory getActiveDirectory(GetActiveDirectoryRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createActiveDirectoryAsync( - LocationName parent, ActiveDirectory activeDirectory, String activeDirectoryId) { + @Nullable LocationName parent, ActiveDirectory activeDirectory, String activeDirectoryId) { CreateActiveDirectoryRequest request = CreateActiveDirectoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4657,7 +4661,7 @@ public final OperationFuture updateActiveDir * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteActiveDirectoryAsync( - ActiveDirectoryName name) { + @Nullable ActiveDirectoryName name) { DeleteActiveDirectoryRequest request = DeleteActiveDirectoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4809,7 +4813,7 @@ public final OperationFuture deleteActiveDirectoryAsyn * @param parent Required. Parent value * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKmsConfigsPagedResponse listKmsConfigs(LocationName parent) { + public final ListKmsConfigsPagedResponse listKmsConfigs(@Nullable LocationName parent) { ListKmsConfigsRequest request = ListKmsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4982,7 +4986,7 @@ public final ListKmsConfigsPagedResponse listKmsConfigs(ListKmsConfigsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createKmsConfigAsync( - LocationName parent, KmsConfig kmsConfig, String kmsConfigId) { + @Nullable LocationName parent, KmsConfig kmsConfig, String kmsConfigId) { CreateKmsConfigRequest request = CreateKmsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5142,7 +5146,7 @@ public final UnaryCallable createKmsConfigCal * @param name Required. Name of the KmsConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KmsConfig getKmsConfig(KmsConfigName name) { + public final KmsConfig getKmsConfig(@Nullable KmsConfigName name) { GetKmsConfigRequest request = GetKmsConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKmsConfig(request); @@ -5519,7 +5523,8 @@ public final VerifyKmsConfigResponse verifyKmsConfig(VerifyKmsConfigRequest requ * @param name Required. Name of the KmsConfig. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteKmsConfigAsync(KmsConfigName name) { + public final OperationFuture deleteKmsConfigAsync( + @Nullable KmsConfigName name) { DeleteKmsConfigRequest request = DeleteKmsConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteKmsConfigAsync(request); @@ -5660,7 +5665,7 @@ public final UnaryCallable deleteKmsConfigCal * `projects/{project_id}/locations/{location}/volumes/{volume_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReplicationsPagedResponse listReplications(VolumeName parent) { + public final ListReplicationsPagedResponse listReplications(@Nullable VolumeName parent) { ListReplicationsRequest request = ListReplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5831,7 +5836,7 @@ public final ListReplicationsPagedResponse listReplications(ListReplicationsRequ * `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Replication getReplication(ReplicationName name) { + public final Replication getReplication(@Nullable ReplicationName name) { GetReplicationRequest request = GetReplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReplication(request); @@ -5954,7 +5959,7 @@ public final UnaryCallable getReplicationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createReplicationAsync( - VolumeName parent, Replication replication, String replicationId) { + @Nullable VolumeName parent, Replication replication, String replicationId) { CreateReplicationRequest request = CreateReplicationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6119,7 +6124,7 @@ public final UnaryCallable createReplicatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteReplicationAsync( - ReplicationName name) { + @Nullable ReplicationName name) { DeleteReplicationRequest request = DeleteReplicationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6873,7 +6878,7 @@ public final UnaryCallable syncReplicationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupVaultAsync( - LocationName parent, BackupVault backupVault, String backupVaultId) { + @Nullable LocationName parent, BackupVault backupVault, String backupVaultId) { CreateBackupVaultRequest request = CreateBackupVaultRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7036,7 +7041,7 @@ public final UnaryCallable createBackupVaul * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupVault getBackupVault(BackupVaultName name) { + public final BackupVault getBackupVault(@Nullable BackupVaultName name) { GetBackupVaultRequest request = GetBackupVaultRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupVault(request); @@ -7148,7 +7153,7 @@ public final UnaryCallable getBackupVaultCal * format `projects/{project_id}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupVaultsPagedResponse listBackupVaults(LocationName parent) { + public final ListBackupVaultsPagedResponse listBackupVaults(@Nullable LocationName parent) { ListBackupVaultsRequest request = ListBackupVaultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7443,7 +7448,7 @@ public final UnaryCallable updateBackupVaul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupVaultAsync( - BackupVaultName name) { + @Nullable BackupVaultName name) { DeleteBackupVaultRequest request = DeleteBackupVaultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7594,7 +7599,7 @@ public final UnaryCallable deleteBackupVaul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - BackupVaultName parent, Backup backup, String backupId) { + @Nullable BackupVaultName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7764,7 +7769,7 @@ public final UnaryCallable createBackupCallable( * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -7883,7 +7888,7 @@ public final UnaryCallable getBackupCallable() { * specify volume full name with the filter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(BackupVaultName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable BackupVaultName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8054,7 +8059,8 @@ public final UnaryCallable listBackupsC * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -8327,7 +8333,7 @@ public final UnaryCallable updateBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupPolicyAsync( - LocationName parent, BackupPolicy backupPolicy, String backupPolicyId) { + @Nullable LocationName parent, BackupPolicy backupPolicy, String backupPolicyId) { CreateBackupPolicyRequest request = CreateBackupPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8490,7 +8496,7 @@ public final UnaryCallable createBackupPol * `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupPolicy getBackupPolicy(BackupPolicyName name) { + public final BackupPolicy getBackupPolicy(@Nullable BackupPolicyName name) { GetBackupPolicyRequest request = GetBackupPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackupPolicy(request); @@ -8601,7 +8607,7 @@ public final UnaryCallable getBackupPolicy * @param parent Required. Parent value for ListBackupPoliciesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupPoliciesPagedResponse listBackupPolicies(LocationName parent) { + public final ListBackupPoliciesPagedResponse listBackupPolicies(@Nullable LocationName parent) { ListBackupPoliciesRequest request = ListBackupPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8897,7 +8903,7 @@ public final UnaryCallable updateBackupPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackupPolicyAsync( - BackupPolicyName name) { + @Nullable BackupPolicyName name) { DeleteBackupPolicyRequest request = DeleteBackupPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9041,7 +9047,7 @@ public final UnaryCallable deleteBackupPol * @param parent Required. Parent value for ListQuotaRulesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaRulesPagedResponse listQuotaRules(VolumeName parent) { + public final ListQuotaRulesPagedResponse listQuotaRules(@Nullable VolumeName parent) { ListQuotaRulesRequest request = ListQuotaRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9207,7 +9213,7 @@ public final ListQuotaRulesPagedResponse listQuotaRules(ListQuotaRulesRequest re * @param name Required. Name of the quota rule * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QuotaRule getQuotaRule(QuotaRuleName name) { + public final QuotaRule getQuotaRule(@Nullable QuotaRuleName name) { GetQuotaRuleRequest request = GetQuotaRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQuotaRule(request); @@ -9328,7 +9334,7 @@ public final UnaryCallable getQuotaRuleCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createQuotaRuleAsync( - VolumeName parent, QuotaRule quotaRule, String quotaRuleId) { + @Nullable VolumeName parent, QuotaRule quotaRule, String quotaRuleId) { CreateQuotaRuleRequest request = CreateQuotaRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9613,7 +9619,8 @@ public final UnaryCallable updateQuotaRuleCal * @param name Required. Name of the quota rule. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteQuotaRuleAsync(QuotaRuleName name) { + public final OperationFuture deleteQuotaRuleAsync( + @Nullable QuotaRuleName name) { DeleteQuotaRuleRequest request = DeleteQuotaRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteQuotaRuleAsync(request); @@ -9859,7 +9866,7 @@ public final UnaryCallable restoreBackupFi * @param parent Required. Parent value for ListHostGroupsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHostGroupsPagedResponse listHostGroups(LocationName parent) { + public final ListHostGroupsPagedResponse listHostGroups(@Nullable LocationName parent) { ListHostGroupsRequest request = ListHostGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10030,7 +10037,7 @@ public final ListHostGroupsPagedResponse listHostGroups(ListHostGroupsRequest re * `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HostGroup getHostGroup(HostGroupName name) { + public final HostGroup getHostGroup(@Nullable HostGroupName name) { GetHostGroupRequest request = GetHostGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHostGroup(request); @@ -10146,7 +10153,7 @@ public final UnaryCallable getHostGroupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHostGroupAsync( - LocationName parent, HostGroup hostGroup, String hostGroupId) { + @Nullable LocationName parent, HostGroup hostGroup, String hostGroupId) { CreateHostGroupRequest request = CreateHostGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10430,7 +10437,8 @@ public final UnaryCallable updateHostGroupCal * `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHostGroupAsync(HostGroupName name) { + public final OperationFuture deleteHostGroupAsync( + @Nullable HostGroupName name) { DeleteHostGroupRequest request = DeleteHostGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHostGroupAsync(request); @@ -11021,8 +11029,9 @@ public static class ListStoragePoolsPage ListStoragePoolsRequest, ListStoragePoolsResponse, StoragePool, ListStoragePoolsPage> { private ListStoragePoolsPage( - PageContext context, - ListStoragePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListStoragePoolsResponse response) { super(context, response); } @@ -11032,14 +11041,16 @@ private static ListStoragePoolsPage createEmptyPage() { @Override protected ListStoragePoolsPage createPage( - PageContext context, - ListStoragePoolsResponse response) { + @Nullable PageContext + context, + @Nullable ListStoragePoolsResponse response) { return new ListStoragePoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11054,7 +11065,7 @@ public static class ListStoragePoolsFixedSizeCollection ListStoragePoolsFixedSizeCollection> { private ListStoragePoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11064,7 +11075,7 @@ private static ListStoragePoolsFixedSizeCollection createEmptyCollection() { @Override protected ListStoragePoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStoragePoolsFixedSizeCollection(pages, collectionSize); } } @@ -11095,8 +11106,8 @@ public static class ListVolumesPage extends AbstractPage { private ListVolumesPage( - PageContext context, - ListVolumesResponse response) { + @Nullable PageContext context, + @Nullable ListVolumesResponse response) { super(context, response); } @@ -11106,14 +11117,14 @@ private static ListVolumesPage createEmptyPage() { @Override protected ListVolumesPage createPage( - PageContext context, - ListVolumesResponse response) { + @Nullable PageContext context, + @Nullable ListVolumesResponse response) { return new ListVolumesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11127,7 +11138,8 @@ public static class ListVolumesFixedSizeCollection ListVolumesPage, ListVolumesFixedSizeCollection> { - private ListVolumesFixedSizeCollection(List pages, int collectionSize) { + private ListVolumesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11137,7 +11149,7 @@ private static ListVolumesFixedSizeCollection createEmptyCollection() { @Override protected ListVolumesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVolumesFixedSizeCollection(pages, collectionSize); } } @@ -11171,8 +11183,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -11182,14 +11194,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11203,7 +11215,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11213,7 +11226,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } @@ -11251,9 +11264,11 @@ public static class ListActiveDirectoriesPage ListActiveDirectoriesPage> { private ListActiveDirectoriesPage( - PageContext + @Nullable + PageContext< + ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory> context, - ListActiveDirectoriesResponse response) { + @Nullable ListActiveDirectoriesResponse response) { super(context, response); } @@ -11263,15 +11278,19 @@ private static ListActiveDirectoriesPage createEmptyPage() { @Override protected ListActiveDirectoriesPage createPage( - PageContext + @Nullable + PageContext< + ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory> context, - ListActiveDirectoriesResponse response) { + @Nullable ListActiveDirectoriesResponse response) { return new ListActiveDirectoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListActiveDirectoriesRequest, ListActiveDirectoriesResponse, ActiveDirectory> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11287,7 +11306,7 @@ public static class ListActiveDirectoriesFixedSizeCollection ListActiveDirectoriesFixedSizeCollection> { private ListActiveDirectoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11297,7 +11316,7 @@ private static ListActiveDirectoriesFixedSizeCollection createEmptyCollection() @Override protected ListActiveDirectoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListActiveDirectoriesFixedSizeCollection(pages, collectionSize); } } @@ -11331,8 +11350,8 @@ public static class ListKmsConfigsPage ListKmsConfigsRequest, ListKmsConfigsResponse, KmsConfig, ListKmsConfigsPage> { private ListKmsConfigsPage( - PageContext context, - ListKmsConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListKmsConfigsResponse response) { super(context, response); } @@ -11342,14 +11361,14 @@ private static ListKmsConfigsPage createEmptyPage() { @Override protected ListKmsConfigsPage createPage( - PageContext context, - ListKmsConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListKmsConfigsResponse response) { return new ListKmsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11363,7 +11382,8 @@ public static class ListKmsConfigsFixedSizeCollection ListKmsConfigsPage, ListKmsConfigsFixedSizeCollection> { - private ListKmsConfigsFixedSizeCollection(List pages, int collectionSize) { + private ListKmsConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11373,7 +11393,7 @@ private static ListKmsConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListKmsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKmsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -11407,8 +11427,9 @@ public static class ListReplicationsPage ListReplicationsRequest, ListReplicationsResponse, Replication, ListReplicationsPage> { private ListReplicationsPage( - PageContext context, - ListReplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReplicationsResponse response) { super(context, response); } @@ -11418,14 +11439,16 @@ private static ListReplicationsPage createEmptyPage() { @Override protected ListReplicationsPage createPage( - PageContext context, - ListReplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReplicationsResponse response) { return new ListReplicationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11440,7 +11463,7 @@ public static class ListReplicationsFixedSizeCollection ListReplicationsFixedSizeCollection> { private ListReplicationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11450,7 +11473,7 @@ private static ListReplicationsFixedSizeCollection createEmptyCollection() { @Override protected ListReplicationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReplicationsFixedSizeCollection(pages, collectionSize); } } @@ -11484,8 +11507,9 @@ public static class ListBackupVaultsPage ListBackupVaultsRequest, ListBackupVaultsResponse, BackupVault, ListBackupVaultsPage> { private ListBackupVaultsPage( - PageContext context, - ListBackupVaultsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupVaultsResponse response) { super(context, response); } @@ -11495,14 +11519,16 @@ private static ListBackupVaultsPage createEmptyPage() { @Override protected ListBackupVaultsPage createPage( - PageContext context, - ListBackupVaultsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupVaultsResponse response) { return new ListBackupVaultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11517,7 +11543,7 @@ public static class ListBackupVaultsFixedSizeCollection ListBackupVaultsFixedSizeCollection> { private ListBackupVaultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11527,7 +11553,7 @@ private static ListBackupVaultsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupVaultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupVaultsFixedSizeCollection(pages, collectionSize); } } @@ -11558,8 +11584,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -11569,14 +11595,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11590,7 +11616,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11600,7 +11627,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -11637,8 +11664,9 @@ public static class ListBackupPoliciesPage ListBackupPoliciesPage> { private ListBackupPoliciesPage( - PageContext context, - ListBackupPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupPoliciesResponse response) { super(context, response); } @@ -11648,14 +11676,16 @@ private static ListBackupPoliciesPage createEmptyPage() { @Override protected ListBackupPoliciesPage createPage( - PageContext context, - ListBackupPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupPoliciesResponse response) { return new ListBackupPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11670,7 +11700,7 @@ public static class ListBackupPoliciesFixedSizeCollection ListBackupPoliciesFixedSizeCollection> { private ListBackupPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11680,7 +11710,7 @@ private static ListBackupPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListBackupPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -11714,8 +11744,8 @@ public static class ListQuotaRulesPage ListQuotaRulesRequest, ListQuotaRulesResponse, QuotaRule, ListQuotaRulesPage> { private ListQuotaRulesPage( - PageContext context, - ListQuotaRulesResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaRulesResponse response) { super(context, response); } @@ -11725,14 +11755,14 @@ private static ListQuotaRulesPage createEmptyPage() { @Override protected ListQuotaRulesPage createPage( - PageContext context, - ListQuotaRulesResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaRulesResponse response) { return new ListQuotaRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11746,7 +11776,8 @@ public static class ListQuotaRulesFixedSizeCollection ListQuotaRulesPage, ListQuotaRulesFixedSizeCollection> { - private ListQuotaRulesFixedSizeCollection(List pages, int collectionSize) { + private ListQuotaRulesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11756,7 +11787,7 @@ private static ListQuotaRulesFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaRulesFixedSizeCollection(pages, collectionSize); } } @@ -11790,8 +11821,8 @@ public static class ListHostGroupsPage ListHostGroupsRequest, ListHostGroupsResponse, HostGroup, ListHostGroupsPage> { private ListHostGroupsPage( - PageContext context, - ListHostGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListHostGroupsResponse response) { super(context, response); } @@ -11801,14 +11832,14 @@ private static ListHostGroupsPage createEmptyPage() { @Override protected ListHostGroupsPage createPage( - PageContext context, - ListHostGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListHostGroupsResponse response) { return new ListHostGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11822,7 +11853,8 @@ public static class ListHostGroupsFixedSizeCollection ListHostGroupsPage, ListHostGroupsFixedSizeCollection> { - private ListHostGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListHostGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11832,7 +11864,7 @@ private static ListHostGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListHostGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHostGroupsFixedSizeCollection(pages, collectionSize); } } @@ -11866,8 +11898,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -11877,14 +11909,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11898,7 +11930,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11908,7 +11941,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java index d32df455f8ca..0390da23d9b5 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -852,7 +853,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); } @@ -872,7 +873,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetAppStubSettings.newBuilder(clientContext)); } diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java index 63b90c542aae..84d3215436f6 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStub.java @@ -141,6 +141,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,11 +153,12 @@ @Generated("by gapic-generator-java") public abstract class NetAppStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java index 5ffb409a3a1c..d5c926f2450a 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/NetAppStubSettings.java @@ -175,6 +175,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1877,7 +1878,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); } @@ -2350,7 +2351,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listStoragePoolsSettings = PagedCallSettings.newBuilder(LIST_STORAGE_POOLS_PAGE_STR_FACT); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryName.java index fb10b82db81d..309d4a693ca3 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String activeDirect .toString(); } - public static ActiveDirectoryName parse(String formattedString) { + public static @Nullable ActiveDirectoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ActiveDirectoryName> values) { List list = new ArrayList<>(values.size()); for (ActiveDirectoryName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupName.java index 98002854a883..87f9b72453fe 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String backupVault, .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupPolicyName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupPolicyName.java index e3a02376245a..c86057f850e4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupPolicyName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupPolicy .toString(); } - public static BackupPolicyName parse(String formattedString) { + public static @Nullable BackupPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupPolicyName> values) { List list = new ArrayList<>(values.size()); for (BackupPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultName.java index 9e19b52da8c4..ced3747e7c08 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/BackupVaultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupVault) .toString(); } - public static BackupVaultName parse(String formattedString) { + public static @Nullable BackupVaultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupVaultName> values) { List list = new ArrayList<>(values.size()); for (BackupVaultName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HostGroupName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HostGroupName.java index 4203e6191a2e..245969285f5c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HostGroupName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HostGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String hostGroup) { .toString(); } - public static HostGroupName parse(String formattedString) { + public static @Nullable HostGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HostGroupName> values) { List list = new ArrayList<>(values.size()); for (HostGroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigName.java index 6033dbbac804..f34db4574342 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/KmsConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String kmsConfig) { .toString(); } - public static KmsConfigName parse(String formattedString) { + public static @Nullable KmsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KmsConfigName> values) { List list = new ArrayList<>(values.size()); for (KmsConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationName.java index d106ff334387..581bd5987ef4 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QuotaRuleName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QuotaRuleName.java index ea5dec9f7468..334a6a8b0f89 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QuotaRuleName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QuotaRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String volume, Stri .toString(); } - public static QuotaRuleName parse(String formattedString) { + public static @Nullable QuotaRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaRuleName> values) { List list = new ArrayList<>(values.size()); for (QuotaRuleName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationName.java index 90b443bc49af..80843e79be1b 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ReplicationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String volume, Stri .toString(); } - public static ReplicationName parse(String formattedString) { + public static @Nullable ReplicationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReplicationName> values) { List list = new ArrayList<>(values.size()); for (ReplicationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SnapshotName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SnapshotName.java index 30e38833d766..369a543ed13c 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SnapshotName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String volume, Stri .toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolName.java index 92d810376ee7..f7e39feb692d 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String storagePool) .toString(); } - public static StoragePoolName parse(String formattedString) { + public static @Nullable StoragePoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StoragePoolName> values) { List list = new ArrayList<>(values.size()); for (StoragePoolName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeName.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeName.java index 6557eb7d1aa9..0280154f5a39 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeName.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String volume) { .toString(); } - public static VolumeName parse(String formattedString) { + public static @Nullable VolumeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VolumeName> values) { List list = new ArrayList<>(values.size()); for (VolumeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java index e4b836fe2f38..4461e86f0cda 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClient.java @@ -48,6 +48,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. /** @@ -324,7 +325,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrganizationVpcFlowLogsServiceClient implements BackgroundResource { - private final OrganizationVpcFlowLogsServiceSettings settings; + private final @Nullable OrganizationVpcFlowLogsServiceSettings settings; private final OrganizationVpcFlowLogsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -377,7 +378,7 @@ protected OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceStu this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OrganizationVpcFlowLogsServiceSettings getSettings() { + public final @Nullable OrganizationVpcFlowLogsServiceSettings getSettings() { return settings; } @@ -430,7 +431,8 @@ public final OperationsClient getHttpJsonOperationsClient() { *

- For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + @Nullable LocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -467,7 +469,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -656,7 +658,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + public final VpcFlowLogsConfig getVpcFlowLogsConfig(@Nullable VpcFlowLogsConfigName name) { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -807,9 +809,9 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, + @Nullable LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -862,7 +864,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + @Nullable LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -913,9 +917,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -968,7 +972,7 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = @@ -1023,7 +1027,7 @@ public final OperationFuture createVpcFlow public final OperationFuture createVpcFlowLogsConfigAsync( String parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent) @@ -1409,7 +1413,7 @@ public final OperationFuture updateVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( - VpcFlowLogsConfigName name) { + @Nullable VpcFlowLogsConfigName name) { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2001,10 +2005,11 @@ public static class ListVpcFlowLogsConfigsPage ListVpcFlowLogsConfigsPage> { private ListVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2014,16 +2019,18 @@ private static ListVpcFlowLogsConfigsPage createEmptyPage() { @Override protected ListVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { return new ListVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, ApiFuture futureResponse) { @@ -2040,7 +2047,7 @@ public static class ListVpcFlowLogsConfigsFixedSizeCollection ListVpcFlowLogsConfigsFixedSizeCollection> { private ListVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2050,7 +2057,7 @@ private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() @Override protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2084,8 +2091,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2095,14 +2102,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2116,7 +2123,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2126,7 +2134,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java index 35ddc01ddeed..55c8eb1f0ef7 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -275,7 +276,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); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationVpcFlowLogsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java index a54596df8146..da05dc9eb28d 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java @@ -48,6 +48,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. /** @@ -340,7 +341,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReachabilityServiceClient implements BackgroundResource { - private final ReachabilityServiceSettings settings; + private final @Nullable ReachabilityServiceSettings settings; private final ReachabilityServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -388,7 +389,7 @@ protected ReachabilityServiceClient(ReachabilityServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ReachabilityServiceSettings getSettings() { + public final @Nullable ReachabilityServiceSettings getSettings() { return settings; } @@ -438,7 +439,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectivityTestsPagedResponse listConnectivityTests(ProjectName parent) { + public final ListConnectivityTestsPagedResponse listConnectivityTests( + @Nullable ProjectName parent) { ListConnectivityTestsRequest request = ListConnectivityTestsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -612,7 +614,7 @@ public final ListConnectivityTestsPagedResponse listConnectivityTests( * `projects/{project_id}/locations/global/connectivityTests/{test_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConnectivityTest getConnectivityTest(ConnectivityTestName name) { + public final ConnectivityTest getConnectivityTest(@Nullable ConnectivityTestName name) { GetConnectivityTestRequest request = GetConnectivityTestRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -751,7 +753,7 @@ public final ConnectivityTest getConnectivityTest(GetConnectivityTestRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectivityTestAsync( - ProjectName parent, String testId, ConnectivityTest resource) { + @Nullable ProjectName parent, String testId, ConnectivityTest resource) { CreateConnectivityTestRequest request = CreateConnectivityTestRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1246,7 +1248,7 @@ public final OperationFuture rerunConnectiv * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteConnectivityTestAsync( - ConnectivityTestName name) { + @Nullable ConnectivityTestName name) { DeleteConnectivityTestRequest request = DeleteConnectivityTestRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1800,9 +1802,11 @@ public static class ListConnectivityTestsPage ListConnectivityTestsPage> { private ListConnectivityTestsPage( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, - ListConnectivityTestsResponse response) { + @Nullable ListConnectivityTestsResponse response) { super(context, response); } @@ -1812,15 +1816,19 @@ private static ListConnectivityTestsPage createEmptyPage() { @Override protected ListConnectivityTestsPage createPage( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, - ListConnectivityTestsResponse response) { + @Nullable ListConnectivityTestsResponse response) { return new ListConnectivityTestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1836,7 +1844,7 @@ public static class ListConnectivityTestsFixedSizeCollection ListConnectivityTestsFixedSizeCollection> { private ListConnectivityTestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1846,7 +1854,7 @@ private static ListConnectivityTestsFixedSizeCollection createEmptyCollection() @Override protected ListConnectivityTestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectivityTestsFixedSizeCollection(pages, collectionSize); } } @@ -1880,8 +1888,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1891,14 +1899,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1912,7 +1920,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1922,7 +1931,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceSettings.java index 21ab9e90465c..2a1b5a2f7334 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,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); } @@ -301,7 +302,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReachabilityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java index 98f5615995fa..1cdb4b7c0a97 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java @@ -48,6 +48,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. /** @@ -353,7 +354,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VpcFlowLogsServiceClient implements BackgroundResource { - private final VpcFlowLogsServiceSettings settings; + private final @Nullable VpcFlowLogsServiceSettings settings; private final VpcFlowLogsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -401,7 +402,7 @@ protected VpcFlowLogsServiceClient(VpcFlowLogsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VpcFlowLogsServiceSettings getSettings() { + public final @Nullable VpcFlowLogsServiceSettings getSettings() { return settings; } @@ -453,7 +454,8 @@ public final OperationsClient getHttpJsonOperationsClient() { *

- For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + @Nullable LocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -489,7 +491,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -671,7 +673,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + public final VpcFlowLogsConfig getVpcFlowLogsConfig(@Nullable VpcFlowLogsConfigName name) { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -817,9 +819,9 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, + @Nullable LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -871,7 +873,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + @Nullable LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -921,9 +925,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -975,7 +979,7 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = @@ -1029,7 +1033,7 @@ public final OperationFuture createVpcFlow public final OperationFuture createVpcFlowLogsConfigAsync( String parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent) @@ -1398,7 +1402,7 @@ public final OperationFuture updateVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( - VpcFlowLogsConfigName name) { + @Nullable VpcFlowLogsConfigName name) { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2201,10 +2205,11 @@ public static class ListVpcFlowLogsConfigsPage ListVpcFlowLogsConfigsPage> { private ListVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2214,16 +2219,18 @@ private static ListVpcFlowLogsConfigsPage createEmptyPage() { @Override protected ListVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { return new ListVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, ApiFuture futureResponse) { @@ -2240,7 +2247,7 @@ public static class ListVpcFlowLogsConfigsFixedSizeCollection ListVpcFlowLogsConfigsFixedSizeCollection> { private ListVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2250,7 +2257,7 @@ private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() @Override protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2291,12 +2298,13 @@ public static class QueryOrgVpcFlowLogsConfigsPage QueryOrgVpcFlowLogsConfigsPage> { private QueryOrgVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - QueryOrgVpcFlowLogsConfigsResponse response) { + @Nullable QueryOrgVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2306,18 +2314,20 @@ private static QueryOrgVpcFlowLogsConfigsPage createEmptyPage() { @Override protected QueryOrgVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - QueryOrgVpcFlowLogsConfigsResponse response) { + @Nullable QueryOrgVpcFlowLogsConfigsResponse response) { return new QueryOrgVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> @@ -2336,7 +2346,7 @@ public static class QueryOrgVpcFlowLogsConfigsFixedSizeCollection QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { private QueryOrgVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2346,7 +2356,7 @@ private static QueryOrgVpcFlowLogsConfigsFixedSizeCollection createEmptyCollecti @Override protected QueryOrgVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2388,12 +2398,13 @@ public static class ShowEffectiveFlowLogsConfigsPage ShowEffectiveFlowLogsConfigsPage> { private ShowEffectiveFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> context, - ShowEffectiveFlowLogsConfigsResponse response) { + @Nullable ShowEffectiveFlowLogsConfigsResponse response) { super(context, response); } @@ -2403,18 +2414,20 @@ private static ShowEffectiveFlowLogsConfigsPage createEmptyPage() { @Override protected ShowEffectiveFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> context, - ShowEffectiveFlowLogsConfigsResponse response) { + @Nullable ShowEffectiveFlowLogsConfigsResponse response) { return new ShowEffectiveFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> @@ -2433,7 +2446,7 @@ public static class ShowEffectiveFlowLogsConfigsFixedSizeCollection ShowEffectiveFlowLogsConfigsFixedSizeCollection> { private ShowEffectiveFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2443,7 +2456,7 @@ private static ShowEffectiveFlowLogsConfigsFixedSizeCollection createEmptyCollec @Override protected ShowEffectiveFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2477,8 +2490,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2488,14 +2501,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2509,7 +2522,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2519,7 +2533,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java index 0e35098aed74..9000dd9ed149 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java @@ -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. /** @@ -290,7 +291,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); } @@ -310,7 +311,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VpcFlowLogsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java index f55a210ebfa1..97185252e0c9 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class OrganizationVpcFlowLogsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java index 6282ae557b3d..69d807096697 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/OrganizationVpcFlowLogsServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -496,7 +497,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); } @@ -593,7 +594,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVpcFlowLogsConfigsSettings = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStub.java index 1b122ff544df..843ad8290366 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class ReachabilityServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java index 145a1db89338..9c8099f60d6a 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -504,7 +505,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); } @@ -616,7 +617,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectivityTestsSettings = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java index a3c12be7880d..a42b18c7bdb9 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,11 +62,12 @@ @Generated("by gapic-generator-java") public abstract class VpcFlowLogsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java index ffbb31ad23a9..0e56e45d455d 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -681,7 +682,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); } @@ -792,7 +793,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVpcFlowLogsConfigsSettings = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java index 6faec1437d63..e052818d2ef5 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClient.java @@ -48,6 +48,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. /** @@ -325,7 +326,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OrganizationVpcFlowLogsServiceClient implements BackgroundResource { - private final OrganizationVpcFlowLogsServiceSettings settings; + private final @Nullable OrganizationVpcFlowLogsServiceSettings settings; private final OrganizationVpcFlowLogsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -378,7 +379,7 @@ protected OrganizationVpcFlowLogsServiceClient(OrganizationVpcFlowLogsServiceStu this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OrganizationVpcFlowLogsServiceSettings getSettings() { + public final @Nullable OrganizationVpcFlowLogsServiceSettings getSettings() { return settings; } @@ -431,7 +432,8 @@ public final OperationsClient getHttpJsonOperationsClient() { *

- For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + @Nullable LocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -468,7 +470,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -657,7 +659,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + public final VpcFlowLogsConfig getVpcFlowLogsConfig(@Nullable VpcFlowLogsConfigName name) { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -808,9 +810,9 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, + @Nullable LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -863,7 +865,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + @Nullable LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -914,9 +918,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -969,7 +973,7 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = @@ -1024,7 +1028,7 @@ public final OperationFuture createVpcFlow public final OperationFuture createVpcFlowLogsConfigAsync( String parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent) @@ -1410,7 +1414,7 @@ public final OperationFuture updateVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( - VpcFlowLogsConfigName name) { + @Nullable VpcFlowLogsConfigName name) { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2002,10 +2006,11 @@ public static class ListVpcFlowLogsConfigsPage ListVpcFlowLogsConfigsPage> { private ListVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2015,16 +2020,18 @@ private static ListVpcFlowLogsConfigsPage createEmptyPage() { @Override protected ListVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { return new ListVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, ApiFuture futureResponse) { @@ -2041,7 +2048,7 @@ public static class ListVpcFlowLogsConfigsFixedSizeCollection ListVpcFlowLogsConfigsFixedSizeCollection> { private ListVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2051,7 +2058,7 @@ private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() @Override protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2085,8 +2092,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2096,14 +2103,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2117,7 +2124,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2127,7 +2135,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java index e4c84b6d13c8..f9f3799b7607 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -297,7 +298,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationVpcFlowLogsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java index beb740e42faf..542c622d129e 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java @@ -47,6 +47,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. /** @@ -319,7 +320,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReachabilityServiceClient implements BackgroundResource { - private final ReachabilityServiceSettings settings; + private final @Nullable ReachabilityServiceSettings settings; private final ReachabilityServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -367,7 +368,7 @@ protected ReachabilityServiceClient(ReachabilityServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ReachabilityServiceSettings getSettings() { + public final @Nullable ReachabilityServiceSettings getSettings() { return settings; } @@ -1440,9 +1441,11 @@ public static class ListConnectivityTestsPage ListConnectivityTestsPage> { private ListConnectivityTestsPage( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, - ListConnectivityTestsResponse response) { + @Nullable ListConnectivityTestsResponse response) { super(context, response); } @@ -1452,15 +1455,19 @@ private static ListConnectivityTestsPage createEmptyPage() { @Override protected ListConnectivityTestsPage createPage( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, - ListConnectivityTestsResponse response) { + @Nullable ListConnectivityTestsResponse response) { return new ListConnectivityTestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConnectivityTestsRequest, ListConnectivityTestsResponse, ConnectivityTest> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1476,7 +1483,7 @@ public static class ListConnectivityTestsFixedSizeCollection ListConnectivityTestsFixedSizeCollection> { private ListConnectivityTestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1486,7 +1493,7 @@ private static ListConnectivityTestsFixedSizeCollection createEmptyCollection() @Override protected ListConnectivityTestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectivityTestsFixedSizeCollection(pages, collectionSize); } } @@ -1520,8 +1527,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1531,14 +1538,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1552,7 +1559,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1562,7 +1570,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceSettings.java index aacc27cc4a3f..4010e7c71f09 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,7 +283,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); } @@ -302,7 +303,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReachabilityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java index c49b2325e955..6054038aa22e 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClient.java @@ -48,6 +48,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. /** @@ -354,7 +355,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VpcFlowLogsServiceClient implements BackgroundResource { - private final VpcFlowLogsServiceSettings settings; + private final @Nullable VpcFlowLogsServiceSettings settings; private final VpcFlowLogsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -402,7 +403,7 @@ protected VpcFlowLogsServiceClient(VpcFlowLogsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VpcFlowLogsServiceSettings getSettings() { + public final @Nullable VpcFlowLogsServiceSettings getSettings() { return settings; } @@ -454,7 +455,8 @@ public final OperationsClient getHttpJsonOperationsClient() { *

- For organization-level resources: `organizations/{organization_id}/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + @Nullable LocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -490,7 +492,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(Location * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListVpcFlowLogsConfigsRequest request = ListVpcFlowLogsConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -672,7 +674,7 @@ public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( * `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + public final VpcFlowLogsConfig getVpcFlowLogsConfig(@Nullable VpcFlowLogsConfigName name) { GetVpcFlowLogsConfigRequest request = GetVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -818,9 +820,9 @@ public final VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, + @Nullable LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -872,7 +874,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + @Nullable LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -922,9 +926,9 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -976,7 +980,7 @@ public final OperationFuture createVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVpcFlowLogsConfigAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = @@ -1030,7 +1034,7 @@ public final OperationFuture createVpcFlow public final OperationFuture createVpcFlowLogsConfigAsync( String parent, VpcFlowLogsConfig vpcFlowLogsConfig, - VpcFlowLogsConfigName vpcFlowLogsConfigId) { + @Nullable VpcFlowLogsConfigName vpcFlowLogsConfigId) { CreateVpcFlowLogsConfigRequest request = CreateVpcFlowLogsConfigRequest.newBuilder() .setParent(parent) @@ -1399,7 +1403,7 @@ public final OperationFuture updateVpcFlow * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVpcFlowLogsConfigAsync( - VpcFlowLogsConfigName name) { + @Nullable VpcFlowLogsConfigName name) { DeleteVpcFlowLogsConfigRequest request = DeleteVpcFlowLogsConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2202,10 +2206,11 @@ public static class ListVpcFlowLogsConfigsPage ListVpcFlowLogsConfigsPage> { private ListVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2215,16 +2220,18 @@ private static ListVpcFlowLogsConfigsPage createEmptyPage() { @Override protected ListVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - ListVpcFlowLogsConfigsResponse response) { + @Nullable ListVpcFlowLogsConfigsResponse response) { return new ListVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, ApiFuture futureResponse) { @@ -2241,7 +2248,7 @@ public static class ListVpcFlowLogsConfigsFixedSizeCollection ListVpcFlowLogsConfigsFixedSizeCollection> { private ListVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2251,7 +2258,7 @@ private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() @Override protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2292,12 +2299,13 @@ public static class QueryOrgVpcFlowLogsConfigsPage QueryOrgVpcFlowLogsConfigsPage> { private QueryOrgVpcFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - QueryOrgVpcFlowLogsConfigsResponse response) { + @Nullable QueryOrgVpcFlowLogsConfigsResponse response) { super(context, response); } @@ -2307,18 +2315,20 @@ private static QueryOrgVpcFlowLogsConfigsPage createEmptyPage() { @Override protected QueryOrgVpcFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> context, - QueryOrgVpcFlowLogsConfigsResponse response) { + @Nullable QueryOrgVpcFlowLogsConfigsResponse response) { return new QueryOrgVpcFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< QueryOrgVpcFlowLogsConfigsRequest, QueryOrgVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> @@ -2337,7 +2347,7 @@ public static class QueryOrgVpcFlowLogsConfigsFixedSizeCollection QueryOrgVpcFlowLogsConfigsFixedSizeCollection> { private QueryOrgVpcFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2347,7 +2357,7 @@ private static QueryOrgVpcFlowLogsConfigsFixedSizeCollection createEmptyCollecti @Override protected QueryOrgVpcFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryOrgVpcFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2389,12 +2399,13 @@ public static class ShowEffectiveFlowLogsConfigsPage ShowEffectiveFlowLogsConfigsPage> { private ShowEffectiveFlowLogsConfigsPage( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> context, - ShowEffectiveFlowLogsConfigsResponse response) { + @Nullable ShowEffectiveFlowLogsConfigsResponse response) { super(context, response); } @@ -2404,18 +2415,20 @@ private static ShowEffectiveFlowLogsConfigsPage createEmptyPage() { @Override protected ShowEffectiveFlowLogsConfigsPage createPage( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> context, - ShowEffectiveFlowLogsConfigsResponse response) { + @Nullable ShowEffectiveFlowLogsConfigsResponse response) { return new ShowEffectiveFlowLogsConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ShowEffectiveFlowLogsConfigsRequest, ShowEffectiveFlowLogsConfigsResponse, EffectiveVpcFlowLogsConfig> @@ -2434,7 +2447,7 @@ public static class ShowEffectiveFlowLogsConfigsFixedSizeCollection ShowEffectiveFlowLogsConfigsFixedSizeCollection> { private ShowEffectiveFlowLogsConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2444,7 +2457,7 @@ private static ShowEffectiveFlowLogsConfigsFixedSizeCollection createEmptyCollec @Override protected ShowEffectiveFlowLogsConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ShowEffectiveFlowLogsConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2478,8 +2491,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2489,14 +2502,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2510,7 +2523,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2520,7 +2534,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java index 75282f15b2af..daf83aa1d444 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceSettings.java @@ -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. /** @@ -291,7 +292,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); } @@ -311,7 +312,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VpcFlowLogsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java index 3adb8f26f0a7..ec9e80ba605c 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class OrganizationVpcFlowLogsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java index dcb547ee7474..8f24f14360e7 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/OrganizationVpcFlowLogsServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -497,7 +498,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); } @@ -594,7 +595,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVpcFlowLogsConfigsSettings = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStub.java index 56ec0aa41ce7..16f00d3749eb 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class ReachabilityServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java index 2a42da3f3ec0..f319f0fecf54 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -505,7 +506,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); } @@ -617,7 +618,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectivityTestsSettings = diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java index 63804af6db58..58b0495bf146 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStub.java @@ -51,6 +51,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class VpcFlowLogsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java index 506a5deeb1b7..334632732b01 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/VpcFlowLogsServiceStubSettings.java @@ -85,6 +85,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -682,7 +683,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); } @@ -793,7 +794,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVpcFlowLogsConfigsSettings = diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java index 3cbe497a60be..76b2459e0492 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String test) { return newBuilder().setProject(project).setTest(test).build().toString(); } - public static ConnectivityTestName parse(String formattedString) { + public static @Nullable ConnectivityTestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectivityTestName> values) { List list = new ArrayList<>(values.size()); for (ConnectivityTestName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java index c7ac5d11b0c5..d712a84b1328 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java index 629d44c5dd02..0200e43e6d0c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java index 0797251fd450..121065ed645e 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java index 28739cd456f2..75875960e8af 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatOrganizationLocationVpcFlowLogsConfigName( .toString(); } - public static VpcFlowLogsConfigName parse(String formattedString) { + public static @Nullable VpcFlowLogsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VpcFlowLogsConfigName> values) { List list = new ArrayList<>(values.size()); for (VpcFlowLogsConfigName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java index 9d335261fa01..f0d6bc729ee5 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String test) { return newBuilder().setProject(project).setTest(test).build().toString(); } - public static ConnectivityTestName parse(String formattedString) { + public static @Nullable ConnectivityTestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectivityTestName> values) { List list = new ArrayList<>(values.size()); for (ConnectivityTestName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LocationName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LocationName.java index 3b7c03235e97..20d792afcaaf 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LocationName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java index 8e14ddb39621..74aeae98e623 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java index d205d02899f1..28a641b65e95 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java index 5c2b1ecd0a06..4f0397b5e651 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatOrganizationLocationVpcFlowLogsConfigName( .toString(); } - public static VpcFlowLogsConfigName parse(String formattedString) { + public static @Nullable VpcFlowLogsConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VpcFlowLogsConfigName> values) { List list = new ArrayList<>(values.size()); for (VpcFlowLogsConfigName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java index 78627c38f125..1b25426f107f 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceClient.java @@ -47,6 +47,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. /** @@ -384,7 +385,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AddressGroupServiceClient implements BackgroundResource { - private final AddressGroupServiceSettings settings; + private final @Nullable AddressGroupServiceSettings settings; private final AddressGroupServiceStub stub; private final OperationsClient operationsClient; @@ -427,7 +428,7 @@ protected AddressGroupServiceClient(AddressGroupServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final AddressGroupServiceSettings getSettings() { + public final @Nullable AddressGroupServiceSettings getSettings() { return settings; } @@ -468,7 +469,7 @@ public final OperationsClient getOperationsClient() { * specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAddressGroupsPagedResponse listAddressGroups(LocationName parent) { + public final ListAddressGroupsPagedResponse listAddressGroups(@Nullable LocationName parent) { ListAddressGroupsRequest request = ListAddressGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -640,7 +641,7 @@ public final ListAddressGroupsPagedResponse listAddressGroups(ListAddressGroupsR * `projects/*/locations/{location}/addressGroups/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AddressGroup getAddressGroup(AddressGroupName name) { + public final AddressGroup getAddressGroup(@Nullable AddressGroupName name) { GetAddressGroupRequest request = GetAddressGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAddressGroup(request); @@ -770,7 +771,7 @@ public final UnaryCallable getAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAddressGroupAsync( - LocationName parent, AddressGroup addressGroup, String addressGroupId) { + @Nullable LocationName parent, AddressGroup addressGroup, String addressGroupId) { CreateAddressGroupRequest request = CreateAddressGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -812,7 +813,7 @@ public final OperationFuture createAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAddressGroupAsync( - OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { + @Nullable OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { CreateAddressGroupRequest request = CreateAddressGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1116,7 +1117,7 @@ public final UnaryCallable updateAddressGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture addAddressGroupItemsAsync( - AddressGroupName addressGroup, List items) { + @Nullable AddressGroupName addressGroup, List items) { AddAddressGroupItemsRequest request = AddAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1293,7 +1294,7 @@ public final OperationFuture addAddressGroupIte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture removeAddressGroupItemsAsync( - AddressGroupName addressGroup, List items) { + @Nullable AddressGroupName addressGroup, List items) { RemoveAddressGroupItemsRequest request = RemoveAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1474,7 +1475,7 @@ public final OperationFuture removeAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) { + @Nullable AddressGroupName addressGroup, @Nullable AddressGroupName sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1517,7 +1518,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - AddressGroupName addressGroup, String sourceAddressGroup) { + @Nullable AddressGroupName addressGroup, String sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1559,7 +1560,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - String addressGroup, AddressGroupName sourceAddressGroup) { + String addressGroup, @Nullable AddressGroupName sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup) @@ -1748,7 +1749,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAddressGroupAsync( - AddressGroupName name) { + @Nullable AddressGroupName name) { DeleteAddressGroupRequest request = DeleteAddressGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1913,7 +1914,7 @@ public final UnaryCallable deleteAddressGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( - AddressGroupName addressGroup) { + @Nullable AddressGroupName addressGroup) { ListAddressGroupReferencesRequest request = ListAddressGroupReferencesRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -2541,8 +2542,9 @@ public static class ListAddressGroupsPage ListAddressGroupsPage> { private ListAddressGroupsPage( - PageContext context, - ListAddressGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListAddressGroupsResponse response) { super(context, response); } @@ -2552,14 +2554,16 @@ private static ListAddressGroupsPage createEmptyPage() { @Override protected ListAddressGroupsPage createPage( - PageContext context, - ListAddressGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListAddressGroupsResponse response) { return new ListAddressGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2574,7 +2578,7 @@ public static class ListAddressGroupsFixedSizeCollection ListAddressGroupsFixedSizeCollection> { private ListAddressGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2584,7 +2588,7 @@ private static ListAddressGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListAddressGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAddressGroupsFixedSizeCollection(pages, collectionSize); } } @@ -2625,12 +2629,13 @@ public static class ListAddressGroupReferencesPage ListAddressGroupReferencesPage> { private ListAddressGroupReferencesPage( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> context, - ListAddressGroupReferencesResponse response) { + @Nullable ListAddressGroupReferencesResponse response) { super(context, response); } @@ -2640,18 +2645,20 @@ private static ListAddressGroupReferencesPage createEmptyPage() { @Override protected ListAddressGroupReferencesPage createPage( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> context, - ListAddressGroupReferencesResponse response) { + @Nullable ListAddressGroupReferencesResponse response) { return new ListAddressGroupReferencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> @@ -2670,7 +2677,7 @@ public static class ListAddressGroupReferencesFixedSizeCollection ListAddressGroupReferencesFixedSizeCollection> { private ListAddressGroupReferencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2680,7 +2687,7 @@ private static ListAddressGroupReferencesFixedSizeCollection createEmptyCollecti @Override protected ListAddressGroupReferencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAddressGroupReferencesFixedSizeCollection(pages, collectionSize); } } @@ -2714,8 +2721,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2725,14 +2732,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2746,7 +2753,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2756,7 +2764,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java index 2edcdc18ee94..a8ff79aed740 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -297,7 +298,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -317,7 +318,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AddressGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java index 745510adb1f1..4adff152abcb 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceClient.java @@ -43,6 +43,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. /** @@ -292,7 +293,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DnsThreatDetectorServiceClient implements BackgroundResource { - private final DnsThreatDetectorServiceSettings settings; + private final @Nullable DnsThreatDetectorServiceSettings settings; private final DnsThreatDetectorServiceStub stub; /** Constructs an instance of DnsThreatDetectorServiceClient with default settings. */ @@ -334,7 +335,7 @@ protected DnsThreatDetectorServiceClient(DnsThreatDetectorServiceStub stub) { this.stub = stub; } - public final DnsThreatDetectorServiceSettings getSettings() { + public final @Nullable DnsThreatDetectorServiceSettings getSettings() { return settings; } @@ -367,7 +368,8 @@ public DnsThreatDetectorServiceStub getStub() { * @param parent Required. The parent value for `ListDnsThreatDetectorsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors(LocationName parent) { + public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors( + @Nullable LocationName parent) { ListDnsThreatDetectorsRequest request = ListDnsThreatDetectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -539,7 +541,7 @@ public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors( * @param name Required. Name of the DnsThreatDetector resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DnsThreatDetector getDnsThreatDetector(DnsThreatDetectorName name) { + public final DnsThreatDetector getDnsThreatDetector(@Nullable DnsThreatDetectorName name) { GetDnsThreatDetectorRequest request = GetDnsThreatDetectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -669,7 +671,9 @@ public final DnsThreatDetector getDnsThreatDetector(GetDnsThreatDetectorRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DnsThreatDetector createDnsThreatDetector( - LocationName parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) { + @Nullable LocationName parent, + DnsThreatDetector dnsThreatDetector, + String dnsThreatDetectorId) { CreateDnsThreatDetectorRequest request = CreateDnsThreatDetectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -905,7 +909,7 @@ public final DnsThreatDetector updateDnsThreatDetector(UpdateDnsThreatDetectorRe * @param name Required. Name of the DnsThreatDetector resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDnsThreatDetector(DnsThreatDetectorName name) { + public final void deleteDnsThreatDetector(@Nullable DnsThreatDetectorName name) { DeleteDnsThreatDetectorRequest request = DeleteDnsThreatDetectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1485,10 +1489,11 @@ public static class ListDnsThreatDetectorsPage ListDnsThreatDetectorsPage> { private ListDnsThreatDetectorsPage( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, - ListDnsThreatDetectorsResponse response) { + @Nullable ListDnsThreatDetectorsResponse response) { super(context, response); } @@ -1498,16 +1503,18 @@ private static ListDnsThreatDetectorsPage createEmptyPage() { @Override protected ListDnsThreatDetectorsPage createPage( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, - ListDnsThreatDetectorsResponse response) { + @Nullable ListDnsThreatDetectorsResponse response) { return new ListDnsThreatDetectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, ApiFuture futureResponse) { @@ -1524,7 +1531,7 @@ public static class ListDnsThreatDetectorsFixedSizeCollection ListDnsThreatDetectorsFixedSizeCollection> { private ListDnsThreatDetectorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1534,7 +1541,7 @@ private static ListDnsThreatDetectorsFixedSizeCollection createEmptyCollection() @Override protected ListDnsThreatDetectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDnsThreatDetectorsFixedSizeCollection(pages, collectionSize); } } @@ -1568,8 +1575,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1579,14 +1586,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1600,7 +1607,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1610,7 +1618,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java index 6cb93dff1735..4f4e6c0399ae 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorServiceSettings.java @@ -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. /** @@ -211,7 +212,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -232,7 +233,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DnsThreatDetectorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java index 92f35bde025f..bf9323e1f2aa 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationClient.java @@ -47,6 +47,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. /** @@ -499,7 +500,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FirewallActivationClient implements BackgroundResource { - private final FirewallActivationSettings settings; + private final @Nullable FirewallActivationSettings settings; private final FirewallActivationStub stub; private final OperationsClient operationsClient; @@ -542,7 +543,7 @@ protected FirewallActivationClient(FirewallActivationStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final FirewallActivationSettings getSettings() { + public final @Nullable FirewallActivationSettings getSettings() { return settings; } @@ -582,7 +583,8 @@ public final OperationsClient getOperationsClient() { * @param parent Required. Parent value for ListEndpointsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirewallEndpointsPagedResponse listFirewallEndpoints(LocationName parent) { + public final ListFirewallEndpointsPagedResponse listFirewallEndpoints( + @Nullable LocationName parent) { ListFirewallEndpointsRequest request = ListFirewallEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -615,7 +617,7 @@ public final ListFirewallEndpointsPagedResponse listFirewallEndpoints(LocationNa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFirewallEndpointsPagedResponse listFirewallEndpoints( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFirewallEndpointsRequest request = ListFirewallEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -791,7 +793,7 @@ public final ListFirewallEndpointsPagedResponse listFirewallEndpoints( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProjectFirewallEndpointsPagedResponse listProjectFirewallEndpoints( - LocationName parent) { + @Nullable LocationName parent) { ListFirewallEndpointsRequest request = ListFirewallEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -824,7 +826,7 @@ public final ListProjectFirewallEndpointsPagedResponse listProjectFirewallEndpoi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProjectFirewallEndpointsPagedResponse listProjectFirewallEndpoints( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListFirewallEndpointsRequest request = ListFirewallEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1000,7 +1002,7 @@ public final ListProjectFirewallEndpointsPagedResponse listProjectFirewallEndpoi * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirewallEndpoint getFirewallEndpoint(FirewallEndpointName name) { + public final FirewallEndpoint getFirewallEndpoint(@Nullable FirewallEndpointName name) { GetFirewallEndpointRequest request = GetFirewallEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1124,7 +1126,7 @@ public final FirewallEndpoint getFirewallEndpoint(GetFirewallEndpointRequest req * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirewallEndpoint getProjectFirewallEndpoint(FirewallEndpointName name) { + public final FirewallEndpoint getProjectFirewallEndpoint(@Nullable FirewallEndpointName name) { GetFirewallEndpointRequest request = GetFirewallEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1256,7 +1258,7 @@ public final FirewallEndpoint getProjectFirewallEndpoint(GetFirewallEndpointRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFirewallEndpointAsync( - LocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { + @Nullable LocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { CreateFirewallEndpointRequest request = CreateFirewallEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1297,7 +1299,7 @@ public final OperationFuture createFirewall * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createFirewallEndpointAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { CreateFirewallEndpointRequest request = @@ -1479,7 +1481,9 @@ public final OperationFuture createFirewall */ public final OperationFuture createProjectFirewallEndpointAsync( - LocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { + @Nullable LocationName parent, + FirewallEndpoint firewallEndpoint, + String firewallEndpointId) { CreateFirewallEndpointRequest request = CreateFirewallEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1521,7 +1525,7 @@ public final OperationFuture createFirewall */ public final OperationFuture createProjectFirewallEndpointAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, FirewallEndpoint firewallEndpoint, String firewallEndpointId) { CreateFirewallEndpointRequest request = @@ -1698,7 +1702,7 @@ public final OperationFuture createFirewall * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFirewallEndpointAsync( - FirewallEndpointName name) { + @Nullable FirewallEndpointName name) { DeleteFirewallEndpointRequest request = DeleteFirewallEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1859,7 +1863,7 @@ public final OperationFuture deleteFirewallEndpointAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProjectFirewallEndpointAsync( - FirewallEndpointName name) { + @Nullable FirewallEndpointName name) { DeleteFirewallEndpointRequest request = DeleteFirewallEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2290,7 +2294,7 @@ public final OperationFuture updateFirewall * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFirewallEndpointAssociationsPagedResponse listFirewallEndpointAssociations( - LocationName parent) { + @Nullable LocationName parent) { ListFirewallEndpointAssociationsRequest request = ListFirewallEndpointAssociationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2471,7 +2475,7 @@ public final ListFirewallEndpointAssociationsPagedResponse listFirewallEndpointA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FirewallEndpointAssociation getFirewallEndpointAssociation( - FirewallEndpointAssociationName name) { + @Nullable FirewallEndpointAssociationName name) { GetFirewallEndpointAssociationRequest request = GetFirewallEndpointAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2609,7 +2613,7 @@ public final FirewallEndpointAssociation getFirewallEndpointAssociation( */ public final OperationFuture createFirewallEndpointAssociationAsync( - LocationName parent, + @Nullable LocationName parent, FirewallEndpointAssociation firewallEndpointAssociation, String firewallEndpointAssociationId) { CreateFirewallEndpointAssociationRequest request = @@ -2791,7 +2795,7 @@ public final FirewallEndpointAssociation getFirewallEndpointAssociation( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFirewallEndpointAssociationAsync( - FirewallEndpointAssociationName name) { + @Nullable FirewallEndpointAssociationName name) { DeleteFirewallEndpointAssociationRequest request = DeleteFirewallEndpointAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3536,9 +3540,11 @@ public static class ListFirewallEndpointsPage ListFirewallEndpointsPage> { private ListFirewallEndpointsPage( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, - ListFirewallEndpointsResponse response) { + @Nullable ListFirewallEndpointsResponse response) { super(context, response); } @@ -3548,15 +3554,19 @@ private static ListFirewallEndpointsPage createEmptyPage() { @Override protected ListFirewallEndpointsPage createPage( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, - ListFirewallEndpointsResponse response) { + @Nullable ListFirewallEndpointsResponse response) { return new ListFirewallEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3572,7 +3582,7 @@ public static class ListFirewallEndpointsFixedSizeCollection ListFirewallEndpointsFixedSizeCollection> { private ListFirewallEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3582,7 +3592,7 @@ private static ListFirewallEndpointsFixedSizeCollection createEmptyCollection() @Override protected ListFirewallEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFirewallEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -3621,9 +3631,11 @@ public static class ListProjectFirewallEndpointsPage ListProjectFirewallEndpointsPage> { private ListProjectFirewallEndpointsPage( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, - ListFirewallEndpointsResponse response) { + @Nullable ListFirewallEndpointsResponse response) { super(context, response); } @@ -3633,15 +3645,19 @@ private static ListProjectFirewallEndpointsPage createEmptyPage() { @Override protected ListProjectFirewallEndpointsPage createPage( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, - ListFirewallEndpointsResponse response) { + @Nullable ListFirewallEndpointsResponse response) { return new ListProjectFirewallEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListFirewallEndpointsRequest, ListFirewallEndpointsResponse, FirewallEndpoint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3657,7 +3673,7 @@ public static class ListProjectFirewallEndpointsFixedSizeCollection ListProjectFirewallEndpointsFixedSizeCollection> { private ListProjectFirewallEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3667,7 +3683,7 @@ private static ListProjectFirewallEndpointsFixedSizeCollection createEmptyCollec @Override protected ListProjectFirewallEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProjectFirewallEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -3710,12 +3726,13 @@ public static class ListFirewallEndpointAssociationsPage ListFirewallEndpointAssociationsPage> { private ListFirewallEndpointAssociationsPage( - PageContext< + @Nullable + PageContext< ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse, FirewallEndpointAssociation> context, - ListFirewallEndpointAssociationsResponse response) { + @Nullable ListFirewallEndpointAssociationsResponse response) { super(context, response); } @@ -3725,18 +3742,20 @@ private static ListFirewallEndpointAssociationsPage createEmptyPage() { @Override protected ListFirewallEndpointAssociationsPage createPage( - PageContext< + @Nullable + PageContext< ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse, FirewallEndpointAssociation> context, - ListFirewallEndpointAssociationsResponse response) { + @Nullable ListFirewallEndpointAssociationsResponse response) { return new ListFirewallEndpointAssociationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFirewallEndpointAssociationsRequest, ListFirewallEndpointAssociationsResponse, FirewallEndpointAssociation> @@ -3755,7 +3774,7 @@ public static class ListFirewallEndpointAssociationsFixedSizeCollection ListFirewallEndpointAssociationsFixedSizeCollection> { private ListFirewallEndpointAssociationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3765,7 +3784,7 @@ private static ListFirewallEndpointAssociationsFixedSizeCollection createEmptyCo @Override protected ListFirewallEndpointAssociationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFirewallEndpointAssociationsFixedSizeCollection(pages, collectionSize); } } @@ -3799,8 +3818,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3810,14 +3829,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3831,7 +3850,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3841,7 +3861,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java index 2a58b63a642f..e23aa08e5a00 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/FirewallActivationSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -396,7 +397,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FirewallActivationStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java index b5400f9fbc05..4a59fc970c8d 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptClient.java @@ -47,6 +47,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. /** @@ -590,7 +591,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InterceptClient implements BackgroundResource { - private final InterceptSettings settings; + private final @Nullable InterceptSettings settings; private final InterceptStub stub; private final OperationsClient operationsClient; @@ -631,7 +632,7 @@ protected InterceptClient(InterceptStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final InterceptSettings getSettings() { + public final @Nullable InterceptSettings getSettings() { return settings; } @@ -673,7 +674,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroups( - LocationName parent) { + @Nullable LocationName parent) { ListInterceptEndpointGroupsRequest request = ListInterceptEndpointGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,8 @@ public final ListInterceptEndpointGroupsPagedResponse listInterceptEndpointGroup * projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InterceptEndpointGroup getInterceptEndpointGroup(InterceptEndpointGroupName name) { + public final InterceptEndpointGroup getInterceptEndpointGroup( + @Nullable InterceptEndpointGroupName name) { GetInterceptEndpointGroupRequest request = GetInterceptEndpointGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -985,7 +987,7 @@ public final InterceptEndpointGroup getInterceptEndpointGroup( */ public final OperationFuture createInterceptEndpointGroupAsync( - LocationName parent, + @Nullable LocationName parent, InterceptEndpointGroup interceptEndpointGroup, String interceptEndpointGroupId) { CreateInterceptEndpointGroupRequest request = @@ -1297,7 +1299,7 @@ public final InterceptEndpointGroup getInterceptEndpointGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInterceptEndpointGroupAsync( - InterceptEndpointGroupName name) { + @Nullable InterceptEndpointGroupName name) { DeleteInterceptEndpointGroupRequest request = DeleteInterceptEndpointGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1460,7 +1462,7 @@ public final OperationFuture deleteInterceptEndpointGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInterceptEndpointGroupAssociationsPagedResponse - listInterceptEndpointGroupAssociations(LocationName parent) { + listInterceptEndpointGroupAssociations(@Nullable LocationName parent) { ListInterceptEndpointGroupAssociationsRequest request = ListInterceptEndpointGroupAssociationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1645,7 +1647,7 @@ public final OperationFuture deleteInterceptEndpointGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociation( - InterceptEndpointGroupAssociationName name) { + @Nullable InterceptEndpointGroupAssociationName name) { GetInterceptEndpointGroupAssociationRequest request = GetInterceptEndpointGroupAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1786,7 +1788,7 @@ public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociat */ public final OperationFuture createInterceptEndpointGroupAssociationAsync( - LocationName parent, + @Nullable LocationName parent, InterceptEndpointGroupAssociation interceptEndpointGroupAssociation, String interceptEndpointGroupAssociationId) { CreateInterceptEndpointGroupAssociationRequest request = @@ -2124,7 +2126,8 @@ public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteInterceptEndpointGroupAssociationAsync(InterceptEndpointGroupAssociationName name) { + deleteInterceptEndpointGroupAssociationAsync( + @Nullable InterceptEndpointGroupAssociationName name) { DeleteInterceptEndpointGroupAssociationRequest request = DeleteInterceptEndpointGroupAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2292,7 +2295,7 @@ public final InterceptEndpointGroupAssociation getInterceptEndpointGroupAssociat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentGroups( - LocationName parent) { + @Nullable LocationName parent) { ListInterceptDeploymentGroupsRequest request = ListInterceptDeploymentGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2472,7 +2475,7 @@ public final ListInterceptDeploymentGroupsPagedResponse listInterceptDeploymentG * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InterceptDeploymentGroup getInterceptDeploymentGroup( - InterceptDeploymentGroupName name) { + @Nullable InterceptDeploymentGroupName name) { GetInterceptDeploymentGroupRequest request = GetInterceptDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2608,7 +2611,7 @@ public final InterceptDeploymentGroup getInterceptDeploymentGroup( */ public final OperationFuture createInterceptDeploymentGroupAsync( - LocationName parent, + @Nullable LocationName parent, InterceptDeploymentGroup interceptDeploymentGroup, String interceptDeploymentGroupId) { CreateInterceptDeploymentGroupRequest request = @@ -2923,7 +2926,7 @@ public final InterceptDeploymentGroup getInterceptDeploymentGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInterceptDeploymentGroupAsync( - InterceptDeploymentGroupName name) { + @Nullable InterceptDeploymentGroupName name) { DeleteInterceptDeploymentGroupRequest request = DeleteInterceptDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3086,7 +3089,8 @@ public final OperationFuture deleteInterceptDeployment * details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInterceptDeploymentsPagedResponse listInterceptDeployments(LocationName parent) { + public final ListInterceptDeploymentsPagedResponse listInterceptDeployments( + @Nullable LocationName parent) { ListInterceptDeploymentsRequest request = ListInterceptDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3262,7 +3266,7 @@ public final ListInterceptDeploymentsPagedResponse listInterceptDeployments( * projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InterceptDeployment getInterceptDeployment(InterceptDeploymentName name) { + public final InterceptDeployment getInterceptDeployment(@Nullable InterceptDeploymentName name) { GetInterceptDeploymentRequest request = GetInterceptDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3393,7 +3397,7 @@ public final InterceptDeployment getInterceptDeployment(GetInterceptDeploymentRe */ public final OperationFuture createInterceptDeploymentAsync( - LocationName parent, + @Nullable LocationName parent, InterceptDeployment interceptDeployment, String interceptDeploymentId) { CreateInterceptDeploymentRequest request = @@ -3698,7 +3702,7 @@ public final InterceptDeployment getInterceptDeployment(GetInterceptDeploymentRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInterceptDeploymentAsync( - InterceptDeploymentName name) { + @Nullable InterceptDeploymentName name) { DeleteInterceptDeploymentRequest request = DeleteInterceptDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4298,12 +4302,13 @@ public static class ListInterceptEndpointGroupsPage ListInterceptEndpointGroupsPage> { private ListInterceptEndpointGroupsPage( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse, InterceptEndpointGroup> context, - ListInterceptEndpointGroupsResponse response) { + @Nullable ListInterceptEndpointGroupsResponse response) { super(context, response); } @@ -4313,18 +4318,20 @@ private static ListInterceptEndpointGroupsPage createEmptyPage() { @Override protected ListInterceptEndpointGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse, InterceptEndpointGroup> context, - ListInterceptEndpointGroupsResponse response) { + @Nullable ListInterceptEndpointGroupsResponse response) { return new ListInterceptEndpointGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupsRequest, ListInterceptEndpointGroupsResponse, InterceptEndpointGroup> @@ -4343,7 +4350,7 @@ public static class ListInterceptEndpointGroupsFixedSizeCollection ListInterceptEndpointGroupsFixedSizeCollection> { private ListInterceptEndpointGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4353,7 +4360,7 @@ private static ListInterceptEndpointGroupsFixedSizeCollection createEmptyCollect @Override protected ListInterceptEndpointGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterceptEndpointGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4397,12 +4404,13 @@ public static class ListInterceptEndpointGroupAssociationsPage ListInterceptEndpointGroupAssociationsPage> { private ListInterceptEndpointGroupAssociationsPage( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupAssociationsRequest, ListInterceptEndpointGroupAssociationsResponse, InterceptEndpointGroupAssociation> context, - ListInterceptEndpointGroupAssociationsResponse response) { + @Nullable ListInterceptEndpointGroupAssociationsResponse response) { super(context, response); } @@ -4412,18 +4420,20 @@ private static ListInterceptEndpointGroupAssociationsPage createEmptyPage() { @Override protected ListInterceptEndpointGroupAssociationsPage createPage( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupAssociationsRequest, ListInterceptEndpointGroupAssociationsResponse, InterceptEndpointGroupAssociation> context, - ListInterceptEndpointGroupAssociationsResponse response) { + @Nullable ListInterceptEndpointGroupAssociationsResponse response) { return new ListInterceptEndpointGroupAssociationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterceptEndpointGroupAssociationsRequest, ListInterceptEndpointGroupAssociationsResponse, InterceptEndpointGroupAssociation> @@ -4442,7 +4452,7 @@ public static class ListInterceptEndpointGroupAssociationsFixedSizeCollection ListInterceptEndpointGroupAssociationsFixedSizeCollection> { private ListInterceptEndpointGroupAssociationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4453,7 +4463,7 @@ private ListInterceptEndpointGroupAssociationsFixedSizeCollection( @Override protected ListInterceptEndpointGroupAssociationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterceptEndpointGroupAssociationsFixedSizeCollection(pages, collectionSize); } } @@ -4495,12 +4505,13 @@ public static class ListInterceptDeploymentGroupsPage ListInterceptDeploymentGroupsPage> { private ListInterceptDeploymentGroupsPage( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse, InterceptDeploymentGroup> context, - ListInterceptDeploymentGroupsResponse response) { + @Nullable ListInterceptDeploymentGroupsResponse response) { super(context, response); } @@ -4510,18 +4521,20 @@ private static ListInterceptDeploymentGroupsPage createEmptyPage() { @Override protected ListInterceptDeploymentGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse, InterceptDeploymentGroup> context, - ListInterceptDeploymentGroupsResponse response) { + @Nullable ListInterceptDeploymentGroupsResponse response) { return new ListInterceptDeploymentGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentGroupsRequest, ListInterceptDeploymentGroupsResponse, InterceptDeploymentGroup> @@ -4540,7 +4553,7 @@ public static class ListInterceptDeploymentGroupsFixedSizeCollection ListInterceptDeploymentGroupsFixedSizeCollection> { private ListInterceptDeploymentGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4550,7 +4563,7 @@ private static ListInterceptDeploymentGroupsFixedSizeCollection createEmptyColle @Override protected ListInterceptDeploymentGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterceptDeploymentGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4591,12 +4604,13 @@ public static class ListInterceptDeploymentsPage ListInterceptDeploymentsPage> { private ListInterceptDeploymentsPage( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentsRequest, ListInterceptDeploymentsResponse, InterceptDeployment> context, - ListInterceptDeploymentsResponse response) { + @Nullable ListInterceptDeploymentsResponse response) { super(context, response); } @@ -4606,18 +4620,20 @@ private static ListInterceptDeploymentsPage createEmptyPage() { @Override protected ListInterceptDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentsRequest, ListInterceptDeploymentsResponse, InterceptDeployment> context, - ListInterceptDeploymentsResponse response) { + @Nullable ListInterceptDeploymentsResponse response) { return new ListInterceptDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInterceptDeploymentsRequest, ListInterceptDeploymentsResponse, InterceptDeployment> @@ -4636,7 +4652,7 @@ public static class ListInterceptDeploymentsFixedSizeCollection ListInterceptDeploymentsFixedSizeCollection> { private ListInterceptDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4646,7 +4662,7 @@ private static ListInterceptDeploymentsFixedSizeCollection createEmptyCollection @Override protected ListInterceptDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInterceptDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -4680,8 +4696,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4691,14 +4707,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4712,7 +4728,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4722,7 +4739,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java index 00d956342461..349e88ae54fa 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/InterceptSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -467,7 +468,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InterceptStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java index 2ee0daedf6d6..7c78913139da 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringClient.java @@ -47,6 +47,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. /** @@ -590,7 +591,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MirroringClient implements BackgroundResource { - private final MirroringSettings settings; + private final @Nullable MirroringSettings settings; private final MirroringStub stub; private final OperationsClient operationsClient; @@ -631,7 +632,7 @@ protected MirroringClient(MirroringStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final MirroringSettings getSettings() { + public final @Nullable MirroringSettings getSettings() { return settings; } @@ -673,7 +674,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroups( - LocationName parent) { + @Nullable LocationName parent) { ListMirroringEndpointGroupsRequest request = ListMirroringEndpointGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -850,7 +851,8 @@ public final ListMirroringEndpointGroupsPagedResponse listMirroringEndpointGroup * projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MirroringEndpointGroup getMirroringEndpointGroup(MirroringEndpointGroupName name) { + public final MirroringEndpointGroup getMirroringEndpointGroup( + @Nullable MirroringEndpointGroupName name) { GetMirroringEndpointGroupRequest request = GetMirroringEndpointGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -985,7 +987,7 @@ public final MirroringEndpointGroup getMirroringEndpointGroup( */ public final OperationFuture createMirroringEndpointGroupAsync( - LocationName parent, + @Nullable LocationName parent, MirroringEndpointGroup mirroringEndpointGroup, String mirroringEndpointGroupId) { CreateMirroringEndpointGroupRequest request = @@ -1297,7 +1299,7 @@ public final MirroringEndpointGroup getMirroringEndpointGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMirroringEndpointGroupAsync( - MirroringEndpointGroupName name) { + @Nullable MirroringEndpointGroupName name) { DeleteMirroringEndpointGroupRequest request = DeleteMirroringEndpointGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1460,7 +1462,7 @@ public final OperationFuture deleteMirroringEndpointGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMirroringEndpointGroupAssociationsPagedResponse - listMirroringEndpointGroupAssociations(LocationName parent) { + listMirroringEndpointGroupAssociations(@Nullable LocationName parent) { ListMirroringEndpointGroupAssociationsRequest request = ListMirroringEndpointGroupAssociationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1645,7 +1647,7 @@ public final OperationFuture deleteMirroringEndpointGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociation( - MirroringEndpointGroupAssociationName name) { + @Nullable MirroringEndpointGroupAssociationName name) { GetMirroringEndpointGroupAssociationRequest request = GetMirroringEndpointGroupAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1786,7 +1788,7 @@ public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociat */ public final OperationFuture createMirroringEndpointGroupAssociationAsync( - LocationName parent, + @Nullable LocationName parent, MirroringEndpointGroupAssociation mirroringEndpointGroupAssociation, String mirroringEndpointGroupAssociationId) { CreateMirroringEndpointGroupAssociationRequest request = @@ -2124,7 +2126,8 @@ public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteMirroringEndpointGroupAssociationAsync(MirroringEndpointGroupAssociationName name) { + deleteMirroringEndpointGroupAssociationAsync( + @Nullable MirroringEndpointGroupAssociationName name) { DeleteMirroringEndpointGroupAssociationRequest request = DeleteMirroringEndpointGroupAssociationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2292,7 +2295,7 @@ public final MirroringEndpointGroupAssociation getMirroringEndpointGroupAssociat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentGroups( - LocationName parent) { + @Nullable LocationName parent) { ListMirroringDeploymentGroupsRequest request = ListMirroringDeploymentGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2472,7 +2475,7 @@ public final ListMirroringDeploymentGroupsPagedResponse listMirroringDeploymentG * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MirroringDeploymentGroup getMirroringDeploymentGroup( - MirroringDeploymentGroupName name) { + @Nullable MirroringDeploymentGroupName name) { GetMirroringDeploymentGroupRequest request = GetMirroringDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2608,7 +2611,7 @@ public final MirroringDeploymentGroup getMirroringDeploymentGroup( */ public final OperationFuture createMirroringDeploymentGroupAsync( - LocationName parent, + @Nullable LocationName parent, MirroringDeploymentGroup mirroringDeploymentGroup, String mirroringDeploymentGroupId) { CreateMirroringDeploymentGroupRequest request = @@ -2923,7 +2926,7 @@ public final MirroringDeploymentGroup getMirroringDeploymentGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMirroringDeploymentGroupAsync( - MirroringDeploymentGroupName name) { + @Nullable MirroringDeploymentGroupName name) { DeleteMirroringDeploymentGroupRequest request = DeleteMirroringDeploymentGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3086,7 +3089,8 @@ public final OperationFuture deleteMirroringDeployment * details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMirroringDeploymentsPagedResponse listMirroringDeployments(LocationName parent) { + public final ListMirroringDeploymentsPagedResponse listMirroringDeployments( + @Nullable LocationName parent) { ListMirroringDeploymentsRequest request = ListMirroringDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3262,7 +3266,7 @@ public final ListMirroringDeploymentsPagedResponse listMirroringDeployments( * projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MirroringDeployment getMirroringDeployment(MirroringDeploymentName name) { + public final MirroringDeployment getMirroringDeployment(@Nullable MirroringDeploymentName name) { GetMirroringDeploymentRequest request = GetMirroringDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3393,7 +3397,7 @@ public final MirroringDeployment getMirroringDeployment(GetMirroringDeploymentRe */ public final OperationFuture createMirroringDeploymentAsync( - LocationName parent, + @Nullable LocationName parent, MirroringDeployment mirroringDeployment, String mirroringDeploymentId) { CreateMirroringDeploymentRequest request = @@ -3698,7 +3702,7 @@ public final MirroringDeployment getMirroringDeployment(GetMirroringDeploymentRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMirroringDeploymentAsync( - MirroringDeploymentName name) { + @Nullable MirroringDeploymentName name) { DeleteMirroringDeploymentRequest request = DeleteMirroringDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4298,12 +4302,13 @@ public static class ListMirroringEndpointGroupsPage ListMirroringEndpointGroupsPage> { private ListMirroringEndpointGroupsPage( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse, MirroringEndpointGroup> context, - ListMirroringEndpointGroupsResponse response) { + @Nullable ListMirroringEndpointGroupsResponse response) { super(context, response); } @@ -4313,18 +4318,20 @@ private static ListMirroringEndpointGroupsPage createEmptyPage() { @Override protected ListMirroringEndpointGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse, MirroringEndpointGroup> context, - ListMirroringEndpointGroupsResponse response) { + @Nullable ListMirroringEndpointGroupsResponse response) { return new ListMirroringEndpointGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupsRequest, ListMirroringEndpointGroupsResponse, MirroringEndpointGroup> @@ -4343,7 +4350,7 @@ public static class ListMirroringEndpointGroupsFixedSizeCollection ListMirroringEndpointGroupsFixedSizeCollection> { private ListMirroringEndpointGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4353,7 +4360,7 @@ private static ListMirroringEndpointGroupsFixedSizeCollection createEmptyCollect @Override protected ListMirroringEndpointGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMirroringEndpointGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4397,12 +4404,13 @@ public static class ListMirroringEndpointGroupAssociationsPage ListMirroringEndpointGroupAssociationsPage> { private ListMirroringEndpointGroupAssociationsPage( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupAssociationsRequest, ListMirroringEndpointGroupAssociationsResponse, MirroringEndpointGroupAssociation> context, - ListMirroringEndpointGroupAssociationsResponse response) { + @Nullable ListMirroringEndpointGroupAssociationsResponse response) { super(context, response); } @@ -4412,18 +4420,20 @@ private static ListMirroringEndpointGroupAssociationsPage createEmptyPage() { @Override protected ListMirroringEndpointGroupAssociationsPage createPage( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupAssociationsRequest, ListMirroringEndpointGroupAssociationsResponse, MirroringEndpointGroupAssociation> context, - ListMirroringEndpointGroupAssociationsResponse response) { + @Nullable ListMirroringEndpointGroupAssociationsResponse response) { return new ListMirroringEndpointGroupAssociationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMirroringEndpointGroupAssociationsRequest, ListMirroringEndpointGroupAssociationsResponse, MirroringEndpointGroupAssociation> @@ -4442,7 +4452,7 @@ public static class ListMirroringEndpointGroupAssociationsFixedSizeCollection ListMirroringEndpointGroupAssociationsFixedSizeCollection> { private ListMirroringEndpointGroupAssociationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4453,7 +4463,7 @@ private ListMirroringEndpointGroupAssociationsFixedSizeCollection( @Override protected ListMirroringEndpointGroupAssociationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMirroringEndpointGroupAssociationsFixedSizeCollection(pages, collectionSize); } } @@ -4495,12 +4505,13 @@ public static class ListMirroringDeploymentGroupsPage ListMirroringDeploymentGroupsPage> { private ListMirroringDeploymentGroupsPage( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse, MirroringDeploymentGroup> context, - ListMirroringDeploymentGroupsResponse response) { + @Nullable ListMirroringDeploymentGroupsResponse response) { super(context, response); } @@ -4510,18 +4521,20 @@ private static ListMirroringDeploymentGroupsPage createEmptyPage() { @Override protected ListMirroringDeploymentGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse, MirroringDeploymentGroup> context, - ListMirroringDeploymentGroupsResponse response) { + @Nullable ListMirroringDeploymentGroupsResponse response) { return new ListMirroringDeploymentGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentGroupsRequest, ListMirroringDeploymentGroupsResponse, MirroringDeploymentGroup> @@ -4540,7 +4553,7 @@ public static class ListMirroringDeploymentGroupsFixedSizeCollection ListMirroringDeploymentGroupsFixedSizeCollection> { private ListMirroringDeploymentGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4550,7 +4563,7 @@ private static ListMirroringDeploymentGroupsFixedSizeCollection createEmptyColle @Override protected ListMirroringDeploymentGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMirroringDeploymentGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4591,12 +4604,13 @@ public static class ListMirroringDeploymentsPage ListMirroringDeploymentsPage> { private ListMirroringDeploymentsPage( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentsRequest, ListMirroringDeploymentsResponse, MirroringDeployment> context, - ListMirroringDeploymentsResponse response) { + @Nullable ListMirroringDeploymentsResponse response) { super(context, response); } @@ -4606,18 +4620,20 @@ private static ListMirroringDeploymentsPage createEmptyPage() { @Override protected ListMirroringDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentsRequest, ListMirroringDeploymentsResponse, MirroringDeployment> context, - ListMirroringDeploymentsResponse response) { + @Nullable ListMirroringDeploymentsResponse response) { return new ListMirroringDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMirroringDeploymentsRequest, ListMirroringDeploymentsResponse, MirroringDeployment> @@ -4636,7 +4652,7 @@ public static class ListMirroringDeploymentsFixedSizeCollection ListMirroringDeploymentsFixedSizeCollection> { private ListMirroringDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4646,7 +4662,7 @@ private static ListMirroringDeploymentsFixedSizeCollection createEmptyCollection @Override protected ListMirroringDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMirroringDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -4680,8 +4696,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4691,14 +4707,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4712,7 +4728,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4722,7 +4739,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java index 6ac3305f5d1a..5c24f1da2cd9 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/MirroringSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -467,7 +468,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MirroringStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java index 8f60d0ebdcde..db77614a1d0f 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecurityClient.java @@ -47,6 +47,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. /** @@ -1083,7 +1084,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkSecurityClient implements BackgroundResource { - private final NetworkSecuritySettings settings; + private final @Nullable NetworkSecuritySettings settings; private final NetworkSecurityStub stub; private final OperationsClient operationsClient; @@ -1126,7 +1127,7 @@ protected NetworkSecurityClient(NetworkSecurityStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final NetworkSecuritySettings getSettings() { + public final @Nullable NetworkSecuritySettings getSettings() { return settings; } @@ -1168,7 +1169,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( - LocationName parent) { + @Nullable LocationName parent) { ListAuthorizationPoliciesRequest request = ListAuthorizationPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1338,7 +1339,7 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * `projects/{project}/locations/{location}/authorizationPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName name) { + public final AuthorizationPolicy getAuthorizationPolicy(@Nullable AuthorizationPolicyName name) { GetAuthorizationPolicyRequest request = GetAuthorizationPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1470,7 +1471,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe */ public final OperationFuture createAuthorizationPolicyAsync( - LocationName parent, + @Nullable LocationName parent, AuthorizationPolicy authorizationPolicy, String authorizationPolicyId) { CreateAuthorizationPolicyRequest request = @@ -1776,7 +1777,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAuthorizationPolicyAsync( - AuthorizationPolicyName name) { + @Nullable AuthorizationPolicyName name) { DeleteAuthorizationPolicyRequest request = DeleteAuthorizationPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1934,7 +1935,7 @@ public final OperationFuture deleteAuthorizationPolicy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListBackendAuthenticationConfigsPagedResponse listBackendAuthenticationConfigs( - LocationName parent) { + @Nullable LocationName parent) { ListBackendAuthenticationConfigsRequest request = ListBackendAuthenticationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2109,7 +2110,7 @@ public final ListBackendAuthenticationConfigsPagedResponse listBackendAuthentica * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BackendAuthenticationConfig getBackendAuthenticationConfig( - BackendAuthenticationConfigName name) { + @Nullable BackendAuthenticationConfigName name) { GetBackendAuthenticationConfigRequest request = GetBackendAuthenticationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2251,7 +2252,7 @@ public final BackendAuthenticationConfig getBackendAuthenticationConfig( */ public final OperationFuture createBackendAuthenticationConfigAsync( - LocationName parent, + @Nullable LocationName parent, BackendAuthenticationConfig backendAuthenticationConfig, String backendAuthenticationConfigId) { CreateBackendAuthenticationConfigRequest request = @@ -2569,7 +2570,7 @@ public final BackendAuthenticationConfig getBackendAuthenticationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBackendAuthenticationConfigAsync( - BackendAuthenticationConfigName name) { + @Nullable BackendAuthenticationConfigName name) { DeleteBackendAuthenticationConfigRequest request = DeleteBackendAuthenticationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2735,7 +2736,8 @@ public final OperationFuture deleteBackendAuthenticati * listed, specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationName parent) { + public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( + @Nullable LocationName parent) { ListServerTlsPoliciesRequest request = ListServerTlsPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2907,7 +2909,7 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * `projects/*/locations/{location}/serverTlsPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName name) { + public final ServerTlsPolicy getServerTlsPolicy(@Nullable ServerTlsPolicyName name) { GetServerTlsPolicyRequest request = GetServerTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3037,7 +3039,7 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServerTlsPolicyAsync( - LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { + @Nullable LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3333,7 +3335,7 @@ public final OperationFuture updateServerTls * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServerTlsPolicyAsync( - ServerTlsPolicyName name) { + @Nullable ServerTlsPolicyName name) { DeleteServerTlsPolicyRequest request = DeleteServerTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3488,7 +3490,8 @@ public final OperationFuture deleteServerTlsPolicyAsyn * listed, specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationName parent) { + public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( + @Nullable LocationName parent) { ListClientTlsPoliciesRequest request = ListClientTlsPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3657,7 +3660,7 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * `projects/*/locations/{location}/clientTlsPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName name) { + public final ClientTlsPolicy getClientTlsPolicy(@Nullable ClientTlsPolicyName name) { GetClientTlsPolicyRequest request = GetClientTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3787,7 +3790,7 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClientTlsPolicyAsync( - LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { + @Nullable LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4083,7 +4086,7 @@ public final OperationFuture updateClientTls * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteClientTlsPolicyAsync( - ClientTlsPolicyName name) { + @Nullable ClientTlsPolicyName name) { DeleteClientTlsPolicyRequest request = DeleteClientTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4239,7 +4242,7 @@ public final OperationFuture deleteClientTlsPolicyAsyn * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGatewaySecurityPoliciesPagedResponse listGatewaySecurityPolicies( - LocationName parent) { + @Nullable LocationName parent) { ListGatewaySecurityPoliciesRequest request = ListGatewaySecurityPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4410,7 +4413,8 @@ public final ListGatewaySecurityPoliciesPagedResponse listGatewaySecurityPolicie * `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GatewaySecurityPolicy getGatewaySecurityPolicy(GatewaySecurityPolicyName name) { + public final GatewaySecurityPolicy getGatewaySecurityPolicy( + @Nullable GatewaySecurityPolicyName name) { GetGatewaySecurityPolicyRequest request = GetGatewaySecurityPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4547,7 +4551,7 @@ public final GatewaySecurityPolicy getGatewaySecurityPolicy( */ public final OperationFuture createGatewaySecurityPolicyAsync( - LocationName parent, + @Nullable LocationName parent, GatewaySecurityPolicy gatewaySecurityPolicy, String gatewaySecurityPolicyId) { CreateGatewaySecurityPolicyRequest request = @@ -4857,7 +4861,7 @@ public final GatewaySecurityPolicy getGatewaySecurityPolicy( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGatewaySecurityPolicyAsync( - GatewaySecurityPolicyName name) { + @Nullable GatewaySecurityPolicyName name) { DeleteGatewaySecurityPolicyRequest request = DeleteGatewaySecurityPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5020,7 +5024,7 @@ public final OperationFuture deleteGatewaySecurityPoli * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGatewaySecurityPolicyRulesPagedResponse listGatewaySecurityPolicyRules( - GatewaySecurityPolicyName parent) { + @Nullable GatewaySecurityPolicyName parent) { ListGatewaySecurityPolicyRulesRequest request = ListGatewaySecurityPolicyRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5206,7 +5210,7 @@ public final ListGatewaySecurityPolicyRulesPagedResponse listGatewaySecurityPoli * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule( - GatewaySecurityPolicyRuleName name) { + @Nullable GatewaySecurityPolicyRuleName name) { GetGatewaySecurityPolicyRuleRequest request = GetGatewaySecurityPolicyRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5346,7 +5350,7 @@ public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule( */ public final OperationFuture createGatewaySecurityPolicyRuleAsync( - GatewaySecurityPolicyName parent, + @Nullable GatewaySecurityPolicyName parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, String gatewaySecurityPolicyRuleId) { CreateGatewaySecurityPolicyRuleRequest request = @@ -5673,7 +5677,7 @@ public final GatewaySecurityPolicyRule getGatewaySecurityPolicyRule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGatewaySecurityPolicyRuleAsync( - GatewaySecurityPolicyRuleName name) { + @Nullable GatewaySecurityPolicyRuleName name) { DeleteGatewaySecurityPolicyRuleRequest request = DeleteGatewaySecurityPolicyRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5835,7 +5839,7 @@ public final OperationFuture deleteGatewaySecurityPoli * specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUrlListsPagedResponse listUrlLists(LocationName parent) { + public final ListUrlListsPagedResponse listUrlLists(@Nullable LocationName parent) { ListUrlListsRequest request = ListUrlListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5997,7 +6001,7 @@ public final UnaryCallable listUrlLis * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UrlList getUrlList(UrlListName name) { + public final UrlList getUrlList(@Nullable UrlListName name) { GetUrlListRequest request = GetUrlListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUrlList(request); @@ -6114,7 +6118,7 @@ public final UnaryCallable getUrlListCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createUrlListAsync( - LocationName parent, UrlList urlList, String urlListId) { + @Nullable LocationName parent, UrlList urlList, String urlListId) { CreateUrlListRequest request = CreateUrlListRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6399,7 +6403,8 @@ public final UnaryCallable updateUrlListCallabl * `projects/*/locations/{location}/urlLists/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteUrlListAsync(UrlListName name) { + public final OperationFuture deleteUrlListAsync( + @Nullable UrlListName name) { DeleteUrlListRequest request = DeleteUrlListRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteUrlListAsync(request); @@ -6544,7 +6549,7 @@ public final UnaryCallable deleteUrlListCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTlsInspectionPoliciesPagedResponse listTlsInspectionPolicies( - LocationName parent) { + @Nullable LocationName parent) { ListTlsInspectionPoliciesRequest request = ListTlsInspectionPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6714,7 +6719,7 @@ public final ListTlsInspectionPoliciesPagedResponse listTlsInspectionPolicies( * `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TlsInspectionPolicy getTlsInspectionPolicy(TlsInspectionPolicyName name) { + public final TlsInspectionPolicy getTlsInspectionPolicy(@Nullable TlsInspectionPolicyName name) { GetTlsInspectionPolicyRequest request = GetTlsInspectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6847,7 +6852,7 @@ public final TlsInspectionPolicy getTlsInspectionPolicy(GetTlsInspectionPolicyRe */ public final OperationFuture createTlsInspectionPolicyAsync( - LocationName parent, + @Nullable LocationName parent, TlsInspectionPolicy tlsInspectionPolicy, String tlsInspectionPolicyId) { CreateTlsInspectionPolicyRequest request = @@ -7154,7 +7159,7 @@ public final TlsInspectionPolicy getTlsInspectionPolicy(GetTlsInspectionPolicyRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTlsInspectionPolicyAsync( - TlsInspectionPolicyName name) { + @Nullable TlsInspectionPolicyName name) { DeleteTlsInspectionPolicyRequest request = DeleteTlsInspectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7313,7 +7318,7 @@ public final OperationFuture deleteTlsInspectionPolicy * listed, specified in the following format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthzPoliciesPagedResponse listAuthzPolicies(LocationName parent) { + public final ListAuthzPoliciesPagedResponse listAuthzPolicies(@Nullable LocationName parent) { ListAuthzPoliciesRequest request = ListAuthzPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7484,7 +7489,7 @@ public final ListAuthzPoliciesPagedResponse listAuthzPolicies(ListAuthzPoliciesR * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthzPolicy getAuthzPolicy(AuthzPolicyName name) { + public final AuthzPolicy getAuthzPolicy(@Nullable AuthzPolicyName name) { GetAuthzPolicyRequest request = GetAuthzPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAuthzPolicy(request); @@ -7601,7 +7606,7 @@ public final UnaryCallable getAuthzPolicyCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAuthzPolicyAsync( - LocationName parent, AuthzPolicy authzPolicy, String authzPolicyId) { + @Nullable LocationName parent, AuthzPolicy authzPolicy, String authzPolicyId) { CreateAuthzPolicyRequest request = CreateAuthzPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7896,7 +7901,7 @@ public final UnaryCallable updateAuthzPolic * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAuthzPolicyAsync( - AuthzPolicyName name) { + @Nullable AuthzPolicyName name) { DeleteAuthzPolicyRequest request = DeleteAuthzPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8487,12 +8492,13 @@ public static class ListAuthorizationPoliciesPage ListAuthorizationPoliciesPage> { private ListAuthorizationPoliciesPage( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, - ListAuthorizationPoliciesResponse response) { + @Nullable ListAuthorizationPoliciesResponse response) { super(context, response); } @@ -8502,18 +8508,20 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, - ListAuthorizationPoliciesResponse response) { + @Nullable ListAuthorizationPoliciesResponse response) { return new ListAuthorizationPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> @@ -8532,7 +8540,7 @@ public static class ListAuthorizationPoliciesFixedSizeCollection ListAuthorizationPoliciesFixedSizeCollection> { private ListAuthorizationPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8542,7 +8550,7 @@ private static ListAuthorizationPoliciesFixedSizeCollection createEmptyCollectio @Override protected ListAuthorizationPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthorizationPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -8585,12 +8593,13 @@ public static class ListBackendAuthenticationConfigsPage ListBackendAuthenticationConfigsPage> { private ListBackendAuthenticationConfigsPage( - PageContext< + @Nullable + PageContext< ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> context, - ListBackendAuthenticationConfigsResponse response) { + @Nullable ListBackendAuthenticationConfigsResponse response) { super(context, response); } @@ -8600,18 +8609,20 @@ private static ListBackendAuthenticationConfigsPage createEmptyPage() { @Override protected ListBackendAuthenticationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> context, - ListBackendAuthenticationConfigsResponse response) { + @Nullable ListBackendAuthenticationConfigsResponse response) { return new ListBackendAuthenticationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListBackendAuthenticationConfigsRequest, ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> @@ -8630,7 +8641,7 @@ public static class ListBackendAuthenticationConfigsFixedSizeCollection ListBackendAuthenticationConfigsFixedSizeCollection> { private ListBackendAuthenticationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8640,7 +8651,7 @@ private static ListBackendAuthenticationConfigsFixedSizeCollection createEmptyCo @Override protected ListBackendAuthenticationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackendAuthenticationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -8678,9 +8689,11 @@ public static class ListServerTlsPoliciesPage ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, - ListServerTlsPoliciesResponse response) { + @Nullable ListServerTlsPoliciesResponse response) { super(context, response); } @@ -8690,15 +8703,19 @@ private static ListServerTlsPoliciesPage createEmptyPage() { @Override protected ListServerTlsPoliciesPage createPage( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, - ListServerTlsPoliciesResponse response) { + @Nullable ListServerTlsPoliciesResponse response) { return new ListServerTlsPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8714,7 +8731,7 @@ public static class ListServerTlsPoliciesFixedSizeCollection ListServerTlsPoliciesFixedSizeCollection> { private ListServerTlsPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8724,7 +8741,7 @@ private static ListServerTlsPoliciesFixedSizeCollection createEmptyCollection() @Override protected ListServerTlsPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServerTlsPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -8762,9 +8779,11 @@ public static class ListClientTlsPoliciesPage ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, - ListClientTlsPoliciesResponse response) { + @Nullable ListClientTlsPoliciesResponse response) { super(context, response); } @@ -8774,15 +8793,19 @@ private static ListClientTlsPoliciesPage createEmptyPage() { @Override protected ListClientTlsPoliciesPage createPage( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, - ListClientTlsPoliciesResponse response) { + @Nullable ListClientTlsPoliciesResponse response) { return new ListClientTlsPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8798,7 +8821,7 @@ public static class ListClientTlsPoliciesFixedSizeCollection ListClientTlsPoliciesFixedSizeCollection> { private ListClientTlsPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8808,7 +8831,7 @@ private static ListClientTlsPoliciesFixedSizeCollection createEmptyCollection() @Override protected ListClientTlsPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClientTlsPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -8850,12 +8873,13 @@ public static class ListGatewaySecurityPoliciesPage ListGatewaySecurityPoliciesPage> { private ListGatewaySecurityPoliciesPage( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> context, - ListGatewaySecurityPoliciesResponse response) { + @Nullable ListGatewaySecurityPoliciesResponse response) { super(context, response); } @@ -8865,18 +8889,20 @@ private static ListGatewaySecurityPoliciesPage createEmptyPage() { @Override protected ListGatewaySecurityPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> context, - ListGatewaySecurityPoliciesResponse response) { + @Nullable ListGatewaySecurityPoliciesResponse response) { return new ListGatewaySecurityPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPoliciesRequest, ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> @@ -8895,7 +8921,7 @@ public static class ListGatewaySecurityPoliciesFixedSizeCollection ListGatewaySecurityPoliciesFixedSizeCollection> { private ListGatewaySecurityPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8905,7 +8931,7 @@ private static ListGatewaySecurityPoliciesFixedSizeCollection createEmptyCollect @Override protected ListGatewaySecurityPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewaySecurityPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -8947,12 +8973,13 @@ public static class ListGatewaySecurityPolicyRulesPage ListGatewaySecurityPolicyRulesPage> { private ListGatewaySecurityPolicyRulesPage( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> context, - ListGatewaySecurityPolicyRulesResponse response) { + @Nullable ListGatewaySecurityPolicyRulesResponse response) { super(context, response); } @@ -8962,18 +8989,20 @@ private static ListGatewaySecurityPolicyRulesPage createEmptyPage() { @Override protected ListGatewaySecurityPolicyRulesPage createPage( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> context, - ListGatewaySecurityPolicyRulesResponse response) { + @Nullable ListGatewaySecurityPolicyRulesResponse response) { return new ListGatewaySecurityPolicyRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGatewaySecurityPolicyRulesRequest, ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> @@ -8992,7 +9021,7 @@ public static class ListGatewaySecurityPolicyRulesFixedSizeCollection ListGatewaySecurityPolicyRulesFixedSizeCollection> { private ListGatewaySecurityPolicyRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9002,7 +9031,7 @@ private static ListGatewaySecurityPolicyRulesFixedSizeCollection createEmptyColl @Override protected ListGatewaySecurityPolicyRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewaySecurityPolicyRulesFixedSizeCollection(pages, collectionSize); } } @@ -9035,8 +9064,8 @@ public static class ListUrlListsPage extends AbstractPage { private ListUrlListsPage( - PageContext context, - ListUrlListsResponse response) { + @Nullable PageContext context, + @Nullable ListUrlListsResponse response) { super(context, response); } @@ -9046,14 +9075,14 @@ private static ListUrlListsPage createEmptyPage() { @Override protected ListUrlListsPage createPage( - PageContext context, - ListUrlListsResponse response) { + @Nullable PageContext context, + @Nullable ListUrlListsResponse response) { return new ListUrlListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9067,7 +9096,8 @@ public static class ListUrlListsFixedSizeCollection ListUrlListsPage, ListUrlListsFixedSizeCollection> { - private ListUrlListsFixedSizeCollection(List pages, int collectionSize) { + private ListUrlListsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9077,7 +9107,7 @@ private static ListUrlListsFixedSizeCollection createEmptyCollection() { @Override protected ListUrlListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUrlListsFixedSizeCollection(pages, collectionSize); } } @@ -9118,12 +9148,13 @@ public static class ListTlsInspectionPoliciesPage ListTlsInspectionPoliciesPage> { private ListTlsInspectionPoliciesPage( - PageContext< + @Nullable + PageContext< ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> context, - ListTlsInspectionPoliciesResponse response) { + @Nullable ListTlsInspectionPoliciesResponse response) { super(context, response); } @@ -9133,18 +9164,20 @@ private static ListTlsInspectionPoliciesPage createEmptyPage() { @Override protected ListTlsInspectionPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> context, - ListTlsInspectionPoliciesResponse response) { + @Nullable ListTlsInspectionPoliciesResponse response) { return new ListTlsInspectionPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTlsInspectionPoliciesRequest, ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> @@ -9163,7 +9196,7 @@ public static class ListTlsInspectionPoliciesFixedSizeCollection ListTlsInspectionPoliciesFixedSizeCollection> { private ListTlsInspectionPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9173,7 +9206,7 @@ private static ListTlsInspectionPoliciesFixedSizeCollection createEmptyCollectio @Override protected ListTlsInspectionPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTlsInspectionPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -9207,8 +9240,9 @@ public static class ListAuthzPoliciesPage ListAuthzPoliciesRequest, ListAuthzPoliciesResponse, AuthzPolicy, ListAuthzPoliciesPage> { private ListAuthzPoliciesPage( - PageContext context, - ListAuthzPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAuthzPoliciesResponse response) { super(context, response); } @@ -9218,14 +9252,16 @@ private static ListAuthzPoliciesPage createEmptyPage() { @Override protected ListAuthzPoliciesPage createPage( - PageContext context, - ListAuthzPoliciesResponse response) { + @Nullable PageContext + context, + @Nullable ListAuthzPoliciesResponse response) { return new ListAuthzPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9240,7 +9276,7 @@ public static class ListAuthzPoliciesFixedSizeCollection ListAuthzPoliciesFixedSizeCollection> { private ListAuthzPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9250,7 +9286,7 @@ private static ListAuthzPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListAuthzPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthzPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -9284,8 +9320,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -9295,14 +9331,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9316,7 +9352,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9326,7 +9363,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java index 1f37f5629ff4..94f690cbbf1a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/NetworkSecuritySettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -693,7 +694,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -713,7 +714,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkSecurityStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java index 842b78a086ef..b1dfe76134a4 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceClient.java @@ -47,6 +47,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. /** @@ -385,7 +386,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrganizationAddressGroupServiceClient implements BackgroundResource { - private final OrganizationAddressGroupServiceSettings settings; + private final @Nullable OrganizationAddressGroupServiceSettings settings; private final OrganizationAddressGroupServiceStub stub; private final OperationsClient operationsClient; @@ -433,7 +434,7 @@ protected OrganizationAddressGroupServiceClient(OrganizationAddressGroupServiceS this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final OrganizationAddressGroupServiceSettings getSettings() { + public final @Nullable OrganizationAddressGroupServiceSettings getSettings() { return settings; } @@ -475,7 +476,7 @@ public final OperationsClient getOperationsClient() { * specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAddressGroupsPagedResponse listAddressGroups(LocationName parent) { + public final ListAddressGroupsPagedResponse listAddressGroups(@Nullable LocationName parent) { ListAddressGroupsRequest request = ListAddressGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -654,7 +655,7 @@ public final ListAddressGroupsPagedResponse listAddressGroups(ListAddressGroupsR * `projects/*/locations/{location}/addressGroups/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AddressGroup getAddressGroup(AddressGroupName name) { + public final AddressGroup getAddressGroup(@Nullable AddressGroupName name) { GetAddressGroupRequest request = GetAddressGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAddressGroup(request); @@ -788,7 +789,7 @@ public final UnaryCallable getAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAddressGroupAsync( - LocationName parent, AddressGroup addressGroup, String addressGroupId) { + @Nullable LocationName parent, AddressGroup addressGroup, String addressGroupId) { CreateAddressGroupRequest request = CreateAddressGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -831,7 +832,7 @@ public final OperationFuture createAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAddressGroupAsync( - OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { + @Nullable OrganizationLocationName parent, AddressGroup addressGroup, String addressGroupId) { CreateAddressGroupRequest request = CreateAddressGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1154,7 +1155,7 @@ public final UnaryCallable updateAddressGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture addAddressGroupItemsAsync( - AddressGroupName addressGroup, List items) { + @Nullable AddressGroupName addressGroup, List items) { AddAddressGroupItemsRequest request = AddAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1343,7 +1344,7 @@ public final OperationFuture addAddressGroupIte * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture removeAddressGroupItemsAsync( - AddressGroupName addressGroup, List items) { + @Nullable AddressGroupName addressGroup, List items) { RemoveAddressGroupItemsRequest request = RemoveAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1536,7 +1537,7 @@ public final OperationFuture removeAddressGroup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - AddressGroupName addressGroup, AddressGroupName sourceAddressGroup) { + @Nullable AddressGroupName addressGroup, @Nullable AddressGroupName sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1580,7 +1581,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - AddressGroupName addressGroup, String sourceAddressGroup) { + @Nullable AddressGroupName addressGroup, String sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -1623,7 +1624,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cloneAddressGroupItemsAsync( - String addressGroup, AddressGroupName sourceAddressGroup) { + String addressGroup, @Nullable AddressGroupName sourceAddressGroup) { CloneAddressGroupItemsRequest request = CloneAddressGroupItemsRequest.newBuilder() .setAddressGroup(addressGroup) @@ -1822,7 +1823,7 @@ public final OperationFuture cloneAddressGroupI * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAddressGroupAsync( - AddressGroupName name) { + @Nullable AddressGroupName name) { DeleteAddressGroupRequest request = DeleteAddressGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1996,7 +1997,7 @@ public final UnaryCallable deleteAddressGr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAddressGroupReferencesPagedResponse listAddressGroupReferences( - AddressGroupName addressGroup) { + @Nullable AddressGroupName addressGroup) { ListAddressGroupReferencesRequest request = ListAddressGroupReferencesRequest.newBuilder() .setAddressGroup(addressGroup == null ? null : addressGroup.toString()) @@ -2647,8 +2648,9 @@ public static class ListAddressGroupsPage ListAddressGroupsPage> { private ListAddressGroupsPage( - PageContext context, - ListAddressGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListAddressGroupsResponse response) { super(context, response); } @@ -2658,14 +2660,16 @@ private static ListAddressGroupsPage createEmptyPage() { @Override protected ListAddressGroupsPage createPage( - PageContext context, - ListAddressGroupsResponse response) { + @Nullable PageContext + context, + @Nullable ListAddressGroupsResponse response) { return new ListAddressGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2680,7 +2684,7 @@ public static class ListAddressGroupsFixedSizeCollection ListAddressGroupsFixedSizeCollection> { private ListAddressGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2690,7 +2694,7 @@ private static ListAddressGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListAddressGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAddressGroupsFixedSizeCollection(pages, collectionSize); } } @@ -2731,12 +2735,13 @@ public static class ListAddressGroupReferencesPage ListAddressGroupReferencesPage> { private ListAddressGroupReferencesPage( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> context, - ListAddressGroupReferencesResponse response) { + @Nullable ListAddressGroupReferencesResponse response) { super(context, response); } @@ -2746,18 +2751,20 @@ private static ListAddressGroupReferencesPage createEmptyPage() { @Override protected ListAddressGroupReferencesPage createPage( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> context, - ListAddressGroupReferencesResponse response) { + @Nullable ListAddressGroupReferencesResponse response) { return new ListAddressGroupReferencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAddressGroupReferencesRequest, ListAddressGroupReferencesResponse, ListAddressGroupReferencesResponse.AddressGroupReference> @@ -2776,7 +2783,7 @@ public static class ListAddressGroupReferencesFixedSizeCollection ListAddressGroupReferencesFixedSizeCollection> { private ListAddressGroupReferencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2786,7 +2793,7 @@ private static ListAddressGroupReferencesFixedSizeCollection createEmptyCollecti @Override protected ListAddressGroupReferencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAddressGroupReferencesFixedSizeCollection(pages, collectionSize); } } @@ -2820,8 +2827,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2831,14 +2838,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2852,7 +2859,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2862,7 +2870,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java index f864c2fe6709..5f979becd350 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationAddressGroupServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -308,7 +309,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -329,7 +330,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationAddressGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java index 2ba122ff01f1..190fbf340688 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceClient.java @@ -47,6 +47,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. /** @@ -410,7 +411,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrganizationSecurityProfileGroupServiceClient implements BackgroundResource { - private final OrganizationSecurityProfileGroupServiceSettings settings; + private final @Nullable OrganizationSecurityProfileGroupServiceSettings settings; private final OrganizationSecurityProfileGroupServiceStub stub; private final OperationsClient operationsClient; @@ -462,7 +463,7 @@ protected OrganizationSecurityProfileGroupServiceClient( this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final OrganizationSecurityProfileGroupServiceSettings getSettings() { + public final @Nullable OrganizationSecurityProfileGroupServiceSettings getSettings() { return settings; } @@ -509,7 +510,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( - LocationName parent) { + @Nullable LocationName parent) { ListSecurityProfileGroupsRequest request = ListSecurityProfileGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -548,7 +549,7 @@ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListSecurityProfileGroupsRequest request = ListSecurityProfileGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -739,7 +740,8 @@ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecurityProfileGroup getSecurityProfileGroup(SecurityProfileGroupName name) { + public final SecurityProfileGroup getSecurityProfileGroup( + @Nullable SecurityProfileGroupName name) { GetSecurityProfileGroupRequest request = GetSecurityProfileGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -888,7 +890,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( */ public final OperationFuture createSecurityProfileGroupAsync( - LocationName parent, + @Nullable LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) { CreateSecurityProfileGroupRequest request = @@ -936,7 +938,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( */ public final OperationFuture createSecurityProfileGroupAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) { CreateSecurityProfileGroupRequest request = @@ -1274,7 +1276,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSecurityProfileGroupAsync( - SecurityProfileGroupName name) { + @Nullable SecurityProfileGroupName name) { DeleteSecurityProfileGroupRequest request = DeleteSecurityProfileGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1453,7 +1455,8 @@ public final OperationFuture deleteSecurityProfileGrou * `projects|organizations/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName parent) { + public final ListSecurityProfilesPagedResponse listSecurityProfiles( + @Nullable LocationName parent) { ListSecurityProfilesRequest request = ListSecurityProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1490,7 +1493,7 @@ public final ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfilesPagedResponse listSecurityProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListSecurityProfilesRequest request = ListSecurityProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1678,7 +1681,7 @@ public final ListSecurityProfilesPagedResponse listSecurityProfiles( * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecurityProfile getSecurityProfile(SecurityProfileName name) { + public final SecurityProfile getSecurityProfile(@Nullable SecurityProfileName name) { GetSecurityProfileRequest request = GetSecurityProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1824,7 +1827,7 @@ public final SecurityProfile getSecurityProfile(GetSecurityProfileRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecurityProfileAsync( - LocationName parent, SecurityProfile securityProfile, String securityProfileId) { + @Nullable LocationName parent, SecurityProfile securityProfile, String securityProfileId) { CreateSecurityProfileRequest request = CreateSecurityProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1868,7 +1871,9 @@ public final OperationFuture createSecurityP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecurityProfileAsync( - OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId) { + @Nullable OrganizationLocationName parent, + SecurityProfile securityProfile, + String securityProfileId) { CreateSecurityProfileRequest request = CreateSecurityProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2195,7 +2200,7 @@ public final OperationFuture updateSecurityP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSecurityProfileAsync( - SecurityProfileName name) { + @Nullable SecurityProfileName name) { DeleteSecurityProfileRequest request = DeleteSecurityProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2843,12 +2848,13 @@ public static class ListSecurityProfileGroupsPage ListSecurityProfileGroupsPage> { private ListSecurityProfileGroupsPage( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> context, - ListSecurityProfileGroupsResponse response) { + @Nullable ListSecurityProfileGroupsResponse response) { super(context, response); } @@ -2858,18 +2864,20 @@ private static ListSecurityProfileGroupsPage createEmptyPage() { @Override protected ListSecurityProfileGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> context, - ListSecurityProfileGroupsResponse response) { + @Nullable ListSecurityProfileGroupsResponse response) { return new ListSecurityProfileGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> @@ -2888,7 +2896,7 @@ public static class ListSecurityProfileGroupsFixedSizeCollection ListSecurityProfileGroupsFixedSizeCollection> { private ListSecurityProfileGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2898,7 +2906,7 @@ private static ListSecurityProfileGroupsFixedSizeCollection createEmptyCollectio @Override protected ListSecurityProfileGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityProfileGroupsFixedSizeCollection(pages, collectionSize); } } @@ -2936,9 +2944,10 @@ public static class ListSecurityProfilesPage ListSecurityProfilesPage> { private ListSecurityProfilesPage( - PageContext + @Nullable + PageContext context, - ListSecurityProfilesResponse response) { + @Nullable ListSecurityProfilesResponse response) { super(context, response); } @@ -2948,15 +2957,17 @@ private static ListSecurityProfilesPage createEmptyPage() { @Override protected ListSecurityProfilesPage createPage( - PageContext + @Nullable + PageContext context, - ListSecurityProfilesResponse response) { + @Nullable ListSecurityProfilesResponse response) { return new ListSecurityProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2972,7 +2983,7 @@ public static class ListSecurityProfilesFixedSizeCollection ListSecurityProfilesFixedSizeCollection> { private ListSecurityProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2982,7 +2993,7 @@ private static ListSecurityProfilesFixedSizeCollection createEmptyCollection() { @Override protected ListSecurityProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityProfilesFixedSizeCollection(pages, collectionSize); } } @@ -3016,8 +3027,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3027,14 +3038,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3048,7 +3059,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3058,7 +3070,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java index c9ffc9c30236..678bc1805fd5 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/OrganizationSecurityProfileGroupServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -354,7 +355,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationSecurityProfileGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceClient.java index 15cbdf36ed20..81ec52146022 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceClient.java @@ -46,6 +46,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. /** @@ -356,7 +357,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SSERealmServiceClient implements BackgroundResource { - private final SSERealmServiceSettings settings; + private final @Nullable SSERealmServiceSettings settings; private final SSERealmServiceStub stub; private final OperationsClient operationsClient; @@ -399,7 +400,7 @@ protected SSERealmServiceClient(SSERealmServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SSERealmServiceSettings getSettings() { + public final @Nullable SSERealmServiceSettings getSettings() { return settings; } @@ -438,7 +439,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent, in the form `projects/{project}/locations/global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSACRealmsPagedResponse listSACRealms(LocationName parent) { + public final ListSACRealmsPagedResponse listSACRealms(@Nullable LocationName parent) { ListSACRealmsRequest request = ListSACRealmsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -606,7 +607,7 @@ public final UnaryCallable listSACR * `projects/{project}/locations/global/sacRealms/{sacRealm}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SACRealm getSACRealm(SACRealmName name) { + public final SACRealm getSACRealm(@Nullable SACRealmName name) { GetSACRealmRequest request = GetSACRealmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSACRealm(request); @@ -726,7 +727,7 @@ public final UnaryCallable getSACRealmCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSACRealmAsync( - LocationName parent, SACRealm sacRealm, String sacRealmId) { + @Nullable LocationName parent, SACRealm sacRealm, String sacRealmId) { CreateSACRealmRequest request = CreateSACRealmRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -895,7 +896,8 @@ public final UnaryCallable createSACRealmCalla * `projects/{project}/locations/global/sacRealms/{sacRealm}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSACRealmAsync(SACRealmName name) { + public final OperationFuture deleteSACRealmAsync( + @Nullable SACRealmName name) { DeleteSACRealmRequest request = DeleteSACRealmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSACRealmAsync(request); @@ -1040,7 +1042,7 @@ public final UnaryCallable deleteSACRealmCalla * @param parent Required. The parent, in the form `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSACAttachmentsPagedResponse listSACAttachments(LocationName parent) { + public final ListSACAttachmentsPagedResponse listSACAttachments(@Nullable LocationName parent) { ListSACAttachmentsRequest request = ListSACAttachmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1211,7 +1213,7 @@ public final ListSACAttachmentsPagedResponse listSACAttachments( * `projects/{project}/locations/{location}/sacAttachments/{sac_attachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SACAttachment getSACAttachment(SACAttachmentName name) { + public final SACAttachment getSACAttachment(@Nullable SACAttachmentName name) { GetSACAttachmentRequest request = GetSACAttachmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSACAttachment(request); @@ -1336,7 +1338,7 @@ public final UnaryCallable getSACAttachm * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSACAttachmentAsync( - LocationName parent, SACAttachment sacAttachment, String sacAttachmentId) { + @Nullable LocationName parent, SACAttachment sacAttachment, String sacAttachmentId) { CreateSACAttachmentRequest request = CreateSACAttachmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1508,7 +1510,7 @@ public final UnaryCallable createSACAttac * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSACAttachmentAsync( - SACAttachmentName name) { + @Nullable SACAttachmentName name) { DeleteSACAttachmentRequest request = DeleteSACAttachmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2096,8 +2098,8 @@ public static class ListSACRealmsPage ListSACRealmsRequest, ListSACRealmsResponse, SACRealm, ListSACRealmsPage> { private ListSACRealmsPage( - PageContext context, - ListSACRealmsResponse response) { + @Nullable PageContext context, + @Nullable ListSACRealmsResponse response) { super(context, response); } @@ -2107,14 +2109,14 @@ private static ListSACRealmsPage createEmptyPage() { @Override protected ListSACRealmsPage createPage( - PageContext context, - ListSACRealmsResponse response) { + @Nullable PageContext context, + @Nullable ListSACRealmsResponse response) { return new ListSACRealmsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2128,7 +2130,8 @@ public static class ListSACRealmsFixedSizeCollection ListSACRealmsPage, ListSACRealmsFixedSizeCollection> { - private ListSACRealmsFixedSizeCollection(List pages, int collectionSize) { + private ListSACRealmsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2138,7 +2141,7 @@ private static ListSACRealmsFixedSizeCollection createEmptyCollection() { @Override protected ListSACRealmsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSACRealmsFixedSizeCollection(pages, collectionSize); } } @@ -2175,8 +2178,9 @@ public static class ListSACAttachmentsPage ListSACAttachmentsPage> { private ListSACAttachmentsPage( - PageContext context, - ListSACAttachmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListSACAttachmentsResponse response) { super(context, response); } @@ -2186,14 +2190,16 @@ private static ListSACAttachmentsPage createEmptyPage() { @Override protected ListSACAttachmentsPage createPage( - PageContext context, - ListSACAttachmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListSACAttachmentsResponse response) { return new ListSACAttachmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2208,7 +2214,7 @@ public static class ListSACAttachmentsFixedSizeCollection ListSACAttachmentsFixedSizeCollection> { private ListSACAttachmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2218,7 +2224,7 @@ private static ListSACAttachmentsFixedSizeCollection createEmptyCollection() { @Override protected ListSACAttachmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSACAttachmentsFixedSizeCollection(pages, collectionSize); } } @@ -2252,8 +2258,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2263,14 +2269,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2284,7 +2290,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2294,7 +2301,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceSettings.java index 6d7f221b6a7d..62c0eae4a13d 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SSERealmServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SSERealmServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceClient.java index 902916dac5ff..ddf0f99995eb 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceClient.java @@ -47,6 +47,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. /** @@ -404,7 +405,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityProfileGroupServiceClient implements BackgroundResource { - private final SecurityProfileGroupServiceSettings settings; + private final @Nullable SecurityProfileGroupServiceSettings settings; private final SecurityProfileGroupServiceStub stub; private final OperationsClient operationsClient; @@ -450,7 +451,7 @@ protected SecurityProfileGroupServiceClient(SecurityProfileGroupServiceStub stub this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final SecurityProfileGroupServiceSettings getSettings() { + public final @Nullable SecurityProfileGroupServiceSettings getSettings() { return settings; } @@ -494,7 +495,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( - LocationName parent) { + @Nullable LocationName parent) { ListSecurityProfileGroupsRequest request = ListSecurityProfileGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -530,7 +531,7 @@ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListSecurityProfileGroupsRequest request = ListSecurityProfileGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -710,7 +711,8 @@ public final ListSecurityProfileGroupsPagedResponse listSecurityProfileGroups( * `projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecurityProfileGroup getSecurityProfileGroup(SecurityProfileGroupName name) { + public final SecurityProfileGroup getSecurityProfileGroup( + @Nullable SecurityProfileGroupName name) { GetSecurityProfileGroupRequest request = GetSecurityProfileGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -853,7 +855,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( */ public final OperationFuture createSecurityProfileGroupAsync( - LocationName parent, + @Nullable LocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) { CreateSecurityProfileGroupRequest request = @@ -900,7 +902,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( */ public final OperationFuture createSecurityProfileGroupAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, SecurityProfileGroup securityProfileGroup, String securityProfileGroupId) { CreateSecurityProfileGroupRequest request = @@ -1225,7 +1227,7 @@ public final SecurityProfileGroup getSecurityProfileGroup( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSecurityProfileGroupAsync( - SecurityProfileGroupName name) { + @Nullable SecurityProfileGroupName name) { DeleteSecurityProfileGroupRequest request = DeleteSecurityProfileGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1399,7 +1401,8 @@ public final OperationFuture deleteSecurityProfileGrou * `projects|organizations/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName parent) { + public final ListSecurityProfilesPagedResponse listSecurityProfiles( + @Nullable LocationName parent) { ListSecurityProfilesRequest request = ListSecurityProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1435,7 +1438,7 @@ public final ListSecurityProfilesPagedResponse listSecurityProfiles(LocationName * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityProfilesPagedResponse listSecurityProfiles( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListSecurityProfilesRequest request = ListSecurityProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1611,7 +1614,7 @@ public final ListSecurityProfilesPagedResponse listSecurityProfiles( * `projects|organizations/*/locations/{location}/securityProfiles/{security_profile_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecurityProfile getSecurityProfile(SecurityProfileName name) { + public final SecurityProfile getSecurityProfile(@Nullable SecurityProfileName name) { GetSecurityProfileRequest request = GetSecurityProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1749,7 +1752,7 @@ public final SecurityProfile getSecurityProfile(GetSecurityProfileRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecurityProfileAsync( - LocationName parent, SecurityProfile securityProfile, String securityProfileId) { + @Nullable LocationName parent, SecurityProfile securityProfile, String securityProfileId) { CreateSecurityProfileRequest request = CreateSecurityProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1792,7 +1795,9 @@ public final OperationFuture createSecurityP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSecurityProfileAsync( - OrganizationLocationName parent, SecurityProfile securityProfile, String securityProfileId) { + @Nullable OrganizationLocationName parent, + SecurityProfile securityProfile, + String securityProfileId) { CreateSecurityProfileRequest request = CreateSecurityProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2106,7 +2111,7 @@ public final OperationFuture updateSecurityP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSecurityProfileAsync( - SecurityProfileName name) { + @Nullable SecurityProfileName name) { DeleteSecurityProfileRequest request = DeleteSecurityProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2733,12 +2738,13 @@ public static class ListSecurityProfileGroupsPage ListSecurityProfileGroupsPage> { private ListSecurityProfileGroupsPage( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> context, - ListSecurityProfileGroupsResponse response) { + @Nullable ListSecurityProfileGroupsResponse response) { super(context, response); } @@ -2748,18 +2754,20 @@ private static ListSecurityProfileGroupsPage createEmptyPage() { @Override protected ListSecurityProfileGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> context, - ListSecurityProfileGroupsResponse response) { + @Nullable ListSecurityProfileGroupsResponse response) { return new ListSecurityProfileGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSecurityProfileGroupsRequest, ListSecurityProfileGroupsResponse, SecurityProfileGroup> @@ -2778,7 +2786,7 @@ public static class ListSecurityProfileGroupsFixedSizeCollection ListSecurityProfileGroupsFixedSizeCollection> { private ListSecurityProfileGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2788,7 +2796,7 @@ private static ListSecurityProfileGroupsFixedSizeCollection createEmptyCollectio @Override protected ListSecurityProfileGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityProfileGroupsFixedSizeCollection(pages, collectionSize); } } @@ -2826,9 +2834,10 @@ public static class ListSecurityProfilesPage ListSecurityProfilesPage> { private ListSecurityProfilesPage( - PageContext + @Nullable + PageContext context, - ListSecurityProfilesResponse response) { + @Nullable ListSecurityProfilesResponse response) { super(context, response); } @@ -2838,15 +2847,17 @@ private static ListSecurityProfilesPage createEmptyPage() { @Override protected ListSecurityProfilesPage createPage( - PageContext + @Nullable + PageContext context, - ListSecurityProfilesResponse response) { + @Nullable ListSecurityProfilesResponse response) { return new ListSecurityProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2862,7 +2873,7 @@ public static class ListSecurityProfilesFixedSizeCollection ListSecurityProfilesFixedSizeCollection> { private ListSecurityProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2872,7 +2883,7 @@ private static ListSecurityProfilesFixedSizeCollection createEmptyCollection() { @Override protected ListSecurityProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityProfilesFixedSizeCollection(pages, collectionSize); } } @@ -2906,8 +2917,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2917,14 +2928,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2938,7 +2949,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2948,7 +2960,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceSettings.java index 4b3cc7470a1e..6238502c7c39 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -323,7 +324,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -344,7 +345,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityProfileGroupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java index a41615da5de0..3a5d4c09fa75 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class AddressGroupServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java index e340a1370e0b..03f86b8fbe1b 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/AddressGroupServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -578,7 +579,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -703,7 +704,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAddressGroupsSettings = PagedCallSettings.newBuilder(LIST_ADDRESS_GROUPS_PAGE_STR_FACT); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java index d60b6c31a4e3..52e92f71f349 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/DnsThreatDetectorServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -399,7 +400,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -481,7 +482,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDnsThreatDetectorsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java index bb375bd69b47..85b07851f2c6 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,7 +65,7 @@ @Generated("by gapic-generator-java") public abstract class FirewallActivationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java index 3c206eb809a2..3f35a762a402 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/FirewallActivationStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -756,7 +757,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -934,7 +935,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listFirewallEndpointsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java index f686621e2803..6a6456511bf3 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStub.java @@ -68,6 +68,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,7 +80,7 @@ @Generated("by gapic-generator-java") public abstract class InterceptStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java index 8b1f1027d246..800a7ac6841a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/InterceptStubSettings.java @@ -98,6 +98,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -970,7 +971,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1189,7 +1190,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInterceptEndpointGroupsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java index 60b24d3a13fb..6bcc3294f0b8 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStub.java @@ -68,6 +68,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,7 +80,7 @@ @Generated("by gapic-generator-java") public abstract class MirroringStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java index cee40f4a4819..64cb7d1255d9 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/MirroringStubSettings.java @@ -98,6 +98,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -970,7 +971,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1189,7 +1190,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMirroringEndpointGroupsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java index 7cbba4d78ee7..a3d93d716c27 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStub.java @@ -108,6 +108,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -119,7 +120,7 @@ @Generated("by gapic-generator-java") public abstract class NetworkSecurityStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java index 2fe561b85987..11a10c33d7e5 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/NetworkSecurityStubSettings.java @@ -138,6 +138,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1630,7 +1631,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -2002,7 +2003,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAuthorizationPoliciesSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java index 3293a2cf0dd4..62f8ca2333e9 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class OrganizationAddressGroupServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java index 6b6ca8d8da0f..038c69b484da 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationAddressGroupServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -582,7 +583,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -708,7 +709,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAddressGroupsSettings = PagedCallSettings.newBuilder(LIST_ADDRESS_GROUPS_PAGE_STR_FACT); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java index d10ece2cbe08..6e533e863ae0 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,7 +64,7 @@ @Generated("by gapic-generator-java") public abstract class OrganizationSecurityProfileGroupServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java index b84289a39cbd..4df3f576097a 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/OrganizationSecurityProfileGroupServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -613,7 +614,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -747,7 +748,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSecurityProfileGroupsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStub.java index 033b59a9a5e4..311cb1affdaf 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStub.java @@ -50,6 +50,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class SSERealmServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStubSettings.java index 9fd10b342ff2..05494fcc9839 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SSERealmServiceStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -521,7 +522,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -625,7 +626,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSACRealmsSettings = PagedCallSettings.newBuilder(LIST_S_A_C_REALMS_PAGE_STR_FACT); diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStub.java index 98b7eb25fe8c..6a2e7221c015 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,7 +64,7 @@ @Generated("by gapic-generator-java") public abstract class SecurityProfileGroupServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStubSettings.java index 2382339f6390..30d7af7fa50f 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/SecurityProfileGroupServiceStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -608,7 +609,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -741,7 +742,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSecurityProfileGroupsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceClient.java index 7d0dc57fad8f..52f7a57c179e 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceClient.java @@ -44,6 +44,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. /** @@ -307,7 +308,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DnsThreatDetectorServiceClient implements BackgroundResource { - private final DnsThreatDetectorServiceSettings settings; + private final @Nullable DnsThreatDetectorServiceSettings settings; private final DnsThreatDetectorServiceStub stub; /** Constructs an instance of DnsThreatDetectorServiceClient with default settings. */ @@ -349,7 +350,7 @@ protected DnsThreatDetectorServiceClient(DnsThreatDetectorServiceStub stub) { this.stub = stub; } - public final DnsThreatDetectorServiceSettings getSettings() { + public final @Nullable DnsThreatDetectorServiceSettings getSettings() { return settings; } @@ -382,7 +383,8 @@ public DnsThreatDetectorServiceStub getStub() { * @param parent Required. The parent value for `ListDnsThreatDetectorsRequest`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors(LocationName parent) { + public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors( + @Nullable LocationName parent) { ListDnsThreatDetectorsRequest request = ListDnsThreatDetectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -554,7 +556,7 @@ public final ListDnsThreatDetectorsPagedResponse listDnsThreatDetectors( * @param name Required. Name of the DnsThreatDetector resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DnsThreatDetector getDnsThreatDetector(DnsThreatDetectorName name) { + public final DnsThreatDetector getDnsThreatDetector(@Nullable DnsThreatDetectorName name) { GetDnsThreatDetectorRequest request = GetDnsThreatDetectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -684,7 +686,9 @@ public final DnsThreatDetector getDnsThreatDetector(GetDnsThreatDetectorRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DnsThreatDetector createDnsThreatDetector( - LocationName parent, DnsThreatDetector dnsThreatDetector, String dnsThreatDetectorId) { + @Nullable LocationName parent, + DnsThreatDetector dnsThreatDetector, + String dnsThreatDetectorId) { CreateDnsThreatDetectorRequest request = CreateDnsThreatDetectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -920,7 +924,7 @@ public final DnsThreatDetector updateDnsThreatDetector(UpdateDnsThreatDetectorRe * @param name Required. Name of the DnsThreatDetector resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDnsThreatDetector(DnsThreatDetectorName name) { + public final void deleteDnsThreatDetector(@Nullable DnsThreatDetectorName name) { DeleteDnsThreatDetectorRequest request = DeleteDnsThreatDetectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1458,10 +1462,11 @@ public static class ListDnsThreatDetectorsPage ListDnsThreatDetectorsPage> { private ListDnsThreatDetectorsPage( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, - ListDnsThreatDetectorsResponse response) { + @Nullable ListDnsThreatDetectorsResponse response) { super(context, response); } @@ -1471,16 +1476,18 @@ private static ListDnsThreatDetectorsPage createEmptyPage() { @Override protected ListDnsThreatDetectorsPage createPage( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, - ListDnsThreatDetectorsResponse response) { + @Nullable ListDnsThreatDetectorsResponse response) { return new ListDnsThreatDetectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDnsThreatDetectorsRequest, ListDnsThreatDetectorsResponse, DnsThreatDetector> context, ApiFuture futureResponse) { @@ -1497,7 +1504,7 @@ public static class ListDnsThreatDetectorsFixedSizeCollection ListDnsThreatDetectorsFixedSizeCollection> { private ListDnsThreatDetectorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1507,7 +1514,7 @@ private static ListDnsThreatDetectorsFixedSizeCollection createEmptyCollection() @Override protected ListDnsThreatDetectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDnsThreatDetectorsFixedSizeCollection(pages, collectionSize); } } @@ -1541,8 +1548,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1552,14 +1559,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1573,7 +1580,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1583,7 +1591,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceSettings.java index 152f32525068..ad0a94d514ff 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DnsThreatDetectorServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java index 28b7826b265e..6ef1e297c7a6 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecurityClient.java @@ -48,6 +48,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. /** @@ -510,7 +511,7 @@ @BetaApi @Generated("by gapic-generator-java") public class NetworkSecurityClient implements BackgroundResource { - private final NetworkSecuritySettings settings; + private final @Nullable NetworkSecuritySettings settings; private final NetworkSecurityStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -558,7 +559,7 @@ protected NetworkSecurityClient(NetworkSecurityStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final NetworkSecuritySettings getSettings() { + public final @Nullable NetworkSecuritySettings getSettings() { return settings; } @@ -609,7 +610,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( - LocationName parent) { + @Nullable LocationName parent) { ListAuthorizationPoliciesRequest request = ListAuthorizationPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -779,7 +780,7 @@ public final ListAuthorizationPoliciesPagedResponse listAuthorizationPolicies( * `projects/{project}/locations/{location}/authorizationPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthorizationPolicy getAuthorizationPolicy(AuthorizationPolicyName name) { + public final AuthorizationPolicy getAuthorizationPolicy(@Nullable AuthorizationPolicyName name) { GetAuthorizationPolicyRequest request = GetAuthorizationPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -911,7 +912,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe */ public final OperationFuture createAuthorizationPolicyAsync( - LocationName parent, + @Nullable LocationName parent, AuthorizationPolicy authorizationPolicy, String authorizationPolicyId) { CreateAuthorizationPolicyRequest request = @@ -1217,7 +1218,7 @@ public final AuthorizationPolicy getAuthorizationPolicy(GetAuthorizationPolicyRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAuthorizationPolicyAsync( - AuthorizationPolicyName name) { + @Nullable AuthorizationPolicyName name) { DeleteAuthorizationPolicyRequest request = DeleteAuthorizationPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1374,7 +1375,8 @@ public final OperationFuture deleteAuthorizationPolicy * listed, specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies(LocationName parent) { + public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( + @Nullable LocationName parent) { ListServerTlsPoliciesRequest request = ListServerTlsPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1543,7 +1545,7 @@ public final ListServerTlsPoliciesPagedResponse listServerTlsPolicies( * `projects/*/locations/{location}/serverTlsPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServerTlsPolicy getServerTlsPolicy(ServerTlsPolicyName name) { + public final ServerTlsPolicy getServerTlsPolicy(@Nullable ServerTlsPolicyName name) { GetServerTlsPolicyRequest request = GetServerTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1673,7 +1675,7 @@ public final ServerTlsPolicy getServerTlsPolicy(GetServerTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServerTlsPolicyAsync( - LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { + @Nullable LocationName parent, ServerTlsPolicy serverTlsPolicy, String serverTlsPolicyId) { CreateServerTlsPolicyRequest request = CreateServerTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1969,7 +1971,7 @@ public final OperationFuture updateServerTls * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServerTlsPolicyAsync( - ServerTlsPolicyName name) { + @Nullable ServerTlsPolicyName name) { DeleteServerTlsPolicyRequest request = DeleteServerTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2124,7 +2126,8 @@ public final OperationFuture deleteServerTlsPolicyAsyn * listed, specified in the format `projects/*/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies(LocationName parent) { + public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( + @Nullable LocationName parent) { ListClientTlsPoliciesRequest request = ListClientTlsPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2293,7 +2296,7 @@ public final ListClientTlsPoliciesPagedResponse listClientTlsPolicies( * `projects/*/locations/{location}/clientTlsPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientTlsPolicy getClientTlsPolicy(ClientTlsPolicyName name) { + public final ClientTlsPolicy getClientTlsPolicy(@Nullable ClientTlsPolicyName name) { GetClientTlsPolicyRequest request = GetClientTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2423,7 +2426,7 @@ public final ClientTlsPolicy getClientTlsPolicy(GetClientTlsPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClientTlsPolicyAsync( - LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { + @Nullable LocationName parent, ClientTlsPolicy clientTlsPolicy, String clientTlsPolicyId) { CreateClientTlsPolicyRequest request = CreateClientTlsPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2719,7 +2722,7 @@ public final OperationFuture updateClientTls * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteClientTlsPolicyAsync( - ClientTlsPolicyName name) { + @Nullable ClientTlsPolicyName name) { DeleteClientTlsPolicyRequest request = DeleteClientTlsPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3274,12 +3277,13 @@ public static class ListAuthorizationPoliciesPage ListAuthorizationPoliciesPage> { private ListAuthorizationPoliciesPage( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, - ListAuthorizationPoliciesResponse response) { + @Nullable ListAuthorizationPoliciesResponse response) { super(context, response); } @@ -3289,18 +3293,20 @@ private static ListAuthorizationPoliciesPage createEmptyPage() { @Override protected ListAuthorizationPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> context, - ListAuthorizationPoliciesResponse response) { + @Nullable ListAuthorizationPoliciesResponse response) { return new ListAuthorizationPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAuthorizationPoliciesRequest, ListAuthorizationPoliciesResponse, AuthorizationPolicy> @@ -3319,7 +3325,7 @@ public static class ListAuthorizationPoliciesFixedSizeCollection ListAuthorizationPoliciesFixedSizeCollection> { private ListAuthorizationPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3329,7 +3335,7 @@ private static ListAuthorizationPoliciesFixedSizeCollection createEmptyCollectio @Override protected ListAuthorizationPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthorizationPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -3367,9 +3373,11 @@ public static class ListServerTlsPoliciesPage ListServerTlsPoliciesPage> { private ListServerTlsPoliciesPage( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, - ListServerTlsPoliciesResponse response) { + @Nullable ListServerTlsPoliciesResponse response) { super(context, response); } @@ -3379,15 +3387,19 @@ private static ListServerTlsPoliciesPage createEmptyPage() { @Override protected ListServerTlsPoliciesPage createPage( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, - ListServerTlsPoliciesResponse response) { + @Nullable ListServerTlsPoliciesResponse response) { return new ListServerTlsPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListServerTlsPoliciesRequest, ListServerTlsPoliciesResponse, ServerTlsPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3403,7 +3415,7 @@ public static class ListServerTlsPoliciesFixedSizeCollection ListServerTlsPoliciesFixedSizeCollection> { private ListServerTlsPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3413,7 +3425,7 @@ private static ListServerTlsPoliciesFixedSizeCollection createEmptyCollection() @Override protected ListServerTlsPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServerTlsPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -3451,9 +3463,11 @@ public static class ListClientTlsPoliciesPage ListClientTlsPoliciesPage> { private ListClientTlsPoliciesPage( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, - ListClientTlsPoliciesResponse response) { + @Nullable ListClientTlsPoliciesResponse response) { super(context, response); } @@ -3463,15 +3477,19 @@ private static ListClientTlsPoliciesPage createEmptyPage() { @Override protected ListClientTlsPoliciesPage createPage( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, - ListClientTlsPoliciesResponse response) { + @Nullable ListClientTlsPoliciesResponse response) { return new ListClientTlsPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListClientTlsPoliciesRequest, ListClientTlsPoliciesResponse, ClientTlsPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3487,7 +3505,7 @@ public static class ListClientTlsPoliciesFixedSizeCollection ListClientTlsPoliciesFixedSizeCollection> { private ListClientTlsPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3497,7 +3515,7 @@ private static ListClientTlsPoliciesFixedSizeCollection createEmptyCollection() @Override protected ListClientTlsPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClientTlsPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -3531,8 +3549,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3542,14 +3560,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3563,7 +3581,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3573,7 +3592,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java index 7bcbf02ed59d..ea9d76f87052 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/NetworkSecuritySettings.java @@ -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. /** @@ -380,7 +381,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); } @@ -400,7 +401,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkSecurityStubSettings.newBuilder(clientContext)); } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java index dbe10a44a3d6..cb91e86bb248 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/DnsThreatDetectorServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -434,7 +435,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); } @@ -516,7 +517,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDnsThreatDetectorsSettings = diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java index 5225119e11c1..24dc41557199 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStub.java @@ -61,6 +61,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -73,11 +74,12 @@ @Generated("by gapic-generator-java") public abstract class NetworkSecurityStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java index f18c9508af16..6154e6de3d31 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/NetworkSecurityStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -784,7 +785,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); } @@ -953,7 +954,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAuthorizationPoliciesSettings = diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java index 53403b4f9ad8..857826958834 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AddressGroupName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatOrganizationLocationAddressGroupName( .toString(); } - public static AddressGroupName parse(String formattedString) { + public static @Nullable AddressGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AddressGroupName> values) { List list = new ArrayList<>(values.size()); for (AddressGroupName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java index bfd7896360ae..9f6a1c152388 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthorizationPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String authorizatio .toString(); } - public static AuthorizationPolicyName parse(String formattedString) { + public static @Nullable AuthorizationPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthorizationPolicyName> values) { List list = new ArrayList<>(values.size()); for (AuthorizationPolicyName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java index 710ced6adef9..8bdea67d3ab4 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/AuthzPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String authzPolicy) .toString(); } - public static AuthzPolicyName parse(String formattedString) { + public static @Nullable AuthzPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthzPolicyName> values) { List list = new ArrayList<>(values.size()); for (AuthzPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java index f29060cb3c68..291b542f646d 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/BackendAuthenticationConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String backendAuthe .toString(); } - public static BackendAuthenticationConfigName parse(String formattedString) { + public static @Nullable BackendAuthenticationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackendAuthenticationConfigName> values) { List list = new ArrayList<>(values.size()); for (BackendAuthenticationConfigName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java index 709c889d77c9..2781e2e00ac2 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ClientTlsPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String clientTlsPol .toString(); } - public static ClientTlsPolicyName parse(String formattedString) { + public static @Nullable ClientTlsPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClientTlsPolicyName> values) { List list = new ArrayList<>(values.size()); for (ClientTlsPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java index 8eebef95b3be..de106ae64143 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/DnsThreatDetectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String dnsThreatDet .toString(); } - public static DnsThreatDetectorName parse(String formattedString) { + public static @Nullable DnsThreatDetectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DnsThreatDetectorName> values) { List list = new ArrayList<>(values.size()); for (DnsThreatDetectorName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java index 34e71a9159ea..59389d2d06d3 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointAssociationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String firewallEndp .toString(); } - public static FirewallEndpointAssociationName parse(String formattedString) { + public static @Nullable FirewallEndpointAssociationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FirewallEndpointAssociationName> values) { List list = new ArrayList<>(values.size()); for (FirewallEndpointAssociationName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java index 2dc7d26ae8f4..2090d1ae851d 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/FirewallEndpointName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatProjectLocationFirewallEndpointName( .toString(); } - public static FirewallEndpointName parse(String formattedString) { + public static @Nullable FirewallEndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -185,7 +186,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FirewallEndpointName> values) { List list = new ArrayList<>(values.size()); for (FirewallEndpointName value : values) { if (value == null) { @@ -237,7 +238,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java index 960c3b70f07d..532811d5167b 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String gatewaySecur .toString(); } - public static GatewaySecurityPolicyName parse(String formattedString) { + public static @Nullable GatewaySecurityPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -110,7 +111,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewaySecurityPolicyName> values) { List list = new ArrayList<>(values.size()); for (GatewaySecurityPolicyName value : values) { if (value == null) { @@ -159,7 +160,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java index 3c3cc468b214..444db42d90ae 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/GatewaySecurityPolicyRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GatewaySecurityPolicyRuleName parse(String formattedString) { + public static @Nullable GatewaySecurityPolicyRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewaySecurityPolicyRuleName> values) { List list = new ArrayList<>(values.size()); for (GatewaySecurityPolicyRuleName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java index 3a2cc23a8d71..744b3eae0491 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String interceptDep .toString(); } - public static InterceptDeploymentGroupName parse(String formattedString) { + public static @Nullable InterceptDeploymentGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InterceptDeploymentGroupName> values) { List list = new ArrayList<>(values.size()); for (InterceptDeploymentGroupName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java index 3f36919c9fde..577142a7ba5b 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String interceptDep .toString(); } - public static InterceptDeploymentName parse(String formattedString) { + public static @Nullable InterceptDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InterceptDeploymentName> values) { List list = new ArrayList<>(values.size()); for (InterceptDeploymentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java index f5bdb610d632..8843c6596fd0 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupAssociationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static InterceptEndpointGroupAssociationName parse(String formattedString) { + public static @Nullable InterceptEndpointGroupAssociationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable InterceptEndpointGroupAssociationName> values) { List list = new ArrayList<>(values.size()); for (InterceptEndpointGroupAssociationName value : values) { if (value == null) { @@ -170,7 +172,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java index 9142874b19df..1dc5729f4f64 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/InterceptEndpointGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String interceptEnd .toString(); } - public static InterceptEndpointGroupName parse(String formattedString) { + public static @Nullable InterceptEndpointGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InterceptEndpointGroupName> values) { List list = new ArrayList<>(values.size()); for (InterceptEndpointGroupName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java index c07e754914cd..3ba7d56e39f6 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java index 0796b510ee55..8a7d9e895452 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String mirroringDep .toString(); } - public static MirroringDeploymentGroupName parse(String formattedString) { + public static @Nullable MirroringDeploymentGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MirroringDeploymentGroupName> values) { List list = new ArrayList<>(values.size()); for (MirroringDeploymentGroupName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java index 9ad1d0f705a6..5791fd942081 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String mirroringDep .toString(); } - public static MirroringDeploymentName parse(String formattedString) { + public static @Nullable MirroringDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MirroringDeploymentName> values) { List list = new ArrayList<>(values.size()); for (MirroringDeploymentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java index 6d3a389e6d7d..0f8b1bb01f4a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupAssociationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static MirroringEndpointGroupAssociationName parse(String formattedString) { + public static @Nullable MirroringEndpointGroupAssociationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable MirroringEndpointGroupAssociationName> values) { List list = new ArrayList<>(values.size()); for (MirroringEndpointGroupAssociationName value : values) { if (value == null) { @@ -170,7 +172,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java index e8029c66aa58..534c9c07003b 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/MirroringEndpointGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String mirroringEnd .toString(); } - public static MirroringEndpointGroupName parse(String formattedString) { + public static @Nullable MirroringEndpointGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MirroringEndpointGroupName> values) { List list = new ArrayList<>(values.size()); for (MirroringEndpointGroupName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java index c0e21ae06280..4152aae64138 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACAttachmentName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACAttachmentName.java index ef7fcd52e96c..2c1cf1fb49a1 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACAttachmentName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACAttachmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String sacAttachmen .toString(); } - public static SACAttachmentName parse(String formattedString) { + public static @Nullable SACAttachmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SACAttachmentName> values) { List list = new ArrayList<>(values.size()); for (SACAttachmentName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACRealmName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACRealmName.java index 2e5dadf783e3..d404d346ce88 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACRealmName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SACRealmName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String sacRealm) { .toString(); } - public static SACRealmName parse(String formattedString) { + public static @Nullable SACRealmName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SACRealmName> values) { List list = new ArrayList<>(values.size()); for (SACRealmName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java index 5606b423567f..fd102cb27697 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileGroupName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatProjectLocationSecurityProfileGroupName( .toString(); } - public static SecurityProfileGroupName parse(String formattedString) { + public static @Nullable SecurityProfileGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -189,7 +190,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecurityProfileGroupName> values) { List list = new ArrayList<>(values.size()); for (SecurityProfileGroupName value : values) { if (value == null) { @@ -241,7 +242,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java index 7929b3864dd3..35df20132e2a 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/SecurityProfileName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -158,7 +159,7 @@ public static String formatProjectLocationSecurityProfileName( .toString(); } - public static SecurityProfileName parse(String formattedString) { + public static @Nullable SecurityProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecurityProfileName> values) { List list = new ArrayList<>(values.size()); for (SecurityProfileName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java index f03bee461135..a6bdbc354995 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/ServerTlsPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String serverTlsPol .toString(); } - public static ServerTlsPolicyName parse(String formattedString) { + public static @Nullable ServerTlsPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServerTlsPolicyName> values) { List list = new ArrayList<>(values.size()); for (ServerTlsPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java index 7003ac68e5b4..217d7aae2d6e 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/TlsInspectionPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String tlsInspectio .toString(); } - public static TlsInspectionPolicyName parse(String formattedString) { + public static @Nullable TlsInspectionPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TlsInspectionPolicyName> values) { List list = new ArrayList<>(values.size()); for (TlsInspectionPolicyName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java index 74fb4b661e39..57be3bcb1d33 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java +++ b/java-network-security/proto-google-cloud-network-security-v1/src/main/java/com/google/cloud/networksecurity/v1/UrlListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String urlList) { .toString(); } - public static UrlListName parse(String formattedString) { + public static @Nullable UrlListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UrlListName> values) { List list = new ArrayList<>(values.size()); for (UrlListName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java index 38993d76bb4f..f671c9d74e10 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/AuthorizationPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String authorizatio .toString(); } - public static AuthorizationPolicyName parse(String formattedString) { + public static @Nullable AuthorizationPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthorizationPolicyName> values) { List list = new ArrayList<>(values.size()); for (AuthorizationPolicyName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java index 1d8160082013..be03226252f9 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ClientTlsPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String clientTlsPol .toString(); } - public static ClientTlsPolicyName parse(String formattedString) { + public static @Nullable ClientTlsPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClientTlsPolicyName> values) { List list = new ArrayList<>(values.size()); for (ClientTlsPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorName.java b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorName.java index a51dd23f2199..f4e4b23ba452 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorName.java +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/DnsThreatDetectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String dnsThreatDet .toString(); } - public static DnsThreatDetectorName parse(String formattedString) { + public static @Nullable DnsThreatDetectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DnsThreatDetectorName> values) { List list = new ArrayList<>(values.size()); for (DnsThreatDetectorName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java index 6cc1c49c97fd..6f4093295a61 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java index 849b93364a6e..445facf6a78d 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/src/main/java/com/google/cloud/networksecurity/v1beta1/ServerTlsPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String serverTlsPol .toString(); } - public static ServerTlsPolicyName parse(String formattedString) { + public static @Nullable ServerTlsPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServerTlsPolicyName> values) { List list = new ArrayList<>(values.size()); for (ServerTlsPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceClient.java index 19f23e0f8a23..cd642103995e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceClient.java @@ -47,6 +47,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. /** @@ -553,7 +554,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CrossNetworkAutomationServiceClient implements BackgroundResource { - private final CrossNetworkAutomationServiceSettings settings; + private final @Nullable CrossNetworkAutomationServiceSettings settings; private final CrossNetworkAutomationServiceStub stub; private final OperationsClient operationsClient; @@ -600,7 +601,7 @@ protected CrossNetworkAutomationServiceClient(CrossNetworkAutomationServiceStub this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final CrossNetworkAutomationServiceSettings getSettings() { + public final @Nullable CrossNetworkAutomationServiceSettings getSettings() { return settings; } @@ -642,7 +643,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceConnectionMapsPagedResponse listServiceConnectionMaps( - LocationName parent) { + @Nullable LocationName parent) { ListServiceConnectionMapsRequest request = ListServiceConnectionMapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -824,7 +825,8 @@ public final ListServiceConnectionMapsPagedResponse listServiceConnectionMaps( * @param name Required. Name of the ServiceConnectionMap to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceConnectionMap getServiceConnectionMap(ServiceConnectionMapName name) { + public final ServiceConnectionMap getServiceConnectionMap( + @Nullable ServiceConnectionMapName name) { GetServiceConnectionMapRequest request = GetServiceConnectionMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -963,7 +965,7 @@ public final ServiceConnectionMap getServiceConnectionMap( */ public final OperationFuture createServiceConnectionMapAsync( - LocationName parent, + @Nullable LocationName parent, ServiceConnectionMap serviceConnectionMap, String serviceConnectionMapId) { CreateServiceConnectionMapRequest request = @@ -1292,7 +1294,7 @@ public final ServiceConnectionMap getServiceConnectionMap( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceConnectionMapAsync( - ServiceConnectionMapName name) { + @Nullable ServiceConnectionMapName name) { DeleteServiceConnectionMapRequest request = DeleteServiceConnectionMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1463,7 +1465,7 @@ public final OperationFuture deleteServiceConnectionMa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceConnectionPoliciesPagedResponse listServiceConnectionPolicies( - LocationName parent) { + @Nullable LocationName parent) { ListServiceConnectionPoliciesRequest request = ListServiceConnectionPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1650,7 +1652,7 @@ public final ListServiceConnectionPoliciesPagedResponse listServiceConnectionPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceConnectionPolicy getServiceConnectionPolicy( - ServiceConnectionPolicyName name) { + @Nullable ServiceConnectionPolicyName name) { GetServiceConnectionPolicyRequest request = GetServiceConnectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1794,7 +1796,7 @@ public final ServiceConnectionPolicy getServiceConnectionPolicy( */ public final OperationFuture createServiceConnectionPolicyAsync( - LocationName parent, + @Nullable LocationName parent, ServiceConnectionPolicy serviceConnectionPolicy, String serviceConnectionPolicyId) { CreateServiceConnectionPolicyRequest request = @@ -2127,7 +2129,7 @@ public final ServiceConnectionPolicy getServiceConnectionPolicy( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceConnectionPolicyAsync( - ServiceConnectionPolicyName name) { + @Nullable ServiceConnectionPolicyName name) { DeleteServiceConnectionPolicyRequest request = DeleteServiceConnectionPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2300,7 +2302,7 @@ public final OperationFuture deleteServiceConnectionPo * @param parent Required. The parent resource's name. ex. projects/123/locations/us-east1 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServiceClassesPagedResponse listServiceClasses(LocationName parent) { + public final ListServiceClassesPagedResponse listServiceClasses(@Nullable LocationName parent) { ListServiceClassesRequest request = ListServiceClassesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2477,7 +2479,7 @@ public final ListServiceClassesPagedResponse listServiceClasses( * @param name Required. Name of the ServiceClass to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceClass getServiceClass(ServiceClassName name) { + public final ServiceClass getServiceClass(@Nullable ServiceClassName name) { GetServiceClassRequest request = GetServiceClassRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServiceClass(request); @@ -2729,7 +2731,7 @@ public final UnaryCallable updateServiceCl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceClassAsync( - ServiceClassName name) { + @Nullable ServiceClassName name) { DeleteServiceClassRequest request = DeleteServiceClassRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2886,7 +2888,8 @@ public final UnaryCallable deleteServiceCl * @param name Required. Name of the ServiceConnectionToken to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceConnectionToken getServiceConnectionToken(ServiceConnectionTokenName name) { + public final ServiceConnectionToken getServiceConnectionToken( + @Nullable ServiceConnectionTokenName name) { GetServiceConnectionTokenRequest request = GetServiceConnectionTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3020,7 +3023,7 @@ public final ServiceConnectionToken getServiceConnectionToken( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceConnectionTokensPagedResponse listServiceConnectionTokens( - LocationName parent) { + @Nullable LocationName parent) { ListServiceConnectionTokensRequest request = ListServiceConnectionTokensRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3215,7 +3218,7 @@ public final ListServiceConnectionTokensPagedResponse listServiceConnectionToken */ public final OperationFuture createServiceConnectionTokenAsync( - LocationName parent, + @Nullable LocationName parent, ServiceConnectionToken serviceConnectionToken, String serviceConnectionTokenId) { CreateServiceConnectionTokenRequest request = @@ -3404,7 +3407,7 @@ public final ListServiceConnectionTokensPagedResponse listServiceConnectionToken * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceConnectionTokenAsync( - ServiceConnectionTokenName name) { + @Nullable ServiceConnectionTokenName name) { DeleteServiceConnectionTokenRequest request = DeleteServiceConnectionTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3981,12 +3984,13 @@ public static class ListServiceConnectionMapsPage ListServiceConnectionMapsPage> { private ListServiceConnectionMapsPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionMapsRequest, ListServiceConnectionMapsResponse, ServiceConnectionMap> context, - ListServiceConnectionMapsResponse response) { + @Nullable ListServiceConnectionMapsResponse response) { super(context, response); } @@ -3996,18 +4000,20 @@ private static ListServiceConnectionMapsPage createEmptyPage() { @Override protected ListServiceConnectionMapsPage createPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionMapsRequest, ListServiceConnectionMapsResponse, ServiceConnectionMap> context, - ListServiceConnectionMapsResponse response) { + @Nullable ListServiceConnectionMapsResponse response) { return new ListServiceConnectionMapsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListServiceConnectionMapsRequest, ListServiceConnectionMapsResponse, ServiceConnectionMap> @@ -4026,7 +4032,7 @@ public static class ListServiceConnectionMapsFixedSizeCollection ListServiceConnectionMapsFixedSizeCollection> { private ListServiceConnectionMapsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4036,7 +4042,7 @@ private static ListServiceConnectionMapsFixedSizeCollection createEmptyCollectio @Override protected ListServiceConnectionMapsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceConnectionMapsFixedSizeCollection(pages, collectionSize); } } @@ -4078,12 +4084,13 @@ public static class ListServiceConnectionPoliciesPage ListServiceConnectionPoliciesPage> { private ListServiceConnectionPoliciesPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionPoliciesRequest, ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> context, - ListServiceConnectionPoliciesResponse response) { + @Nullable ListServiceConnectionPoliciesResponse response) { super(context, response); } @@ -4093,18 +4100,20 @@ private static ListServiceConnectionPoliciesPage createEmptyPage() { @Override protected ListServiceConnectionPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionPoliciesRequest, ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> context, - ListServiceConnectionPoliciesResponse response) { + @Nullable ListServiceConnectionPoliciesResponse response) { return new ListServiceConnectionPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListServiceConnectionPoliciesRequest, ListServiceConnectionPoliciesResponse, ServiceConnectionPolicy> @@ -4123,7 +4132,7 @@ public static class ListServiceConnectionPoliciesFixedSizeCollection ListServiceConnectionPoliciesFixedSizeCollection> { private ListServiceConnectionPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4133,7 +4142,7 @@ private static ListServiceConnectionPoliciesFixedSizeCollection createEmptyColle @Override protected ListServiceConnectionPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceConnectionPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -4170,8 +4179,9 @@ public static class ListServiceClassesPage ListServiceClassesPage> { private ListServiceClassesPage( - PageContext context, - ListServiceClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceClassesResponse response) { super(context, response); } @@ -4181,14 +4191,16 @@ private static ListServiceClassesPage createEmptyPage() { @Override protected ListServiceClassesPage createPage( - PageContext context, - ListServiceClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceClassesResponse response) { return new ListServiceClassesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4203,7 +4215,7 @@ public static class ListServiceClassesFixedSizeCollection ListServiceClassesFixedSizeCollection> { private ListServiceClassesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4213,7 +4225,7 @@ private static ListServiceClassesFixedSizeCollection createEmptyCollection() { @Override protected ListServiceClassesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceClassesFixedSizeCollection(pages, collectionSize); } } @@ -4255,12 +4267,13 @@ public static class ListServiceConnectionTokensPage ListServiceConnectionTokensPage> { private ListServiceConnectionTokensPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionTokensRequest, ListServiceConnectionTokensResponse, ServiceConnectionToken> context, - ListServiceConnectionTokensResponse response) { + @Nullable ListServiceConnectionTokensResponse response) { super(context, response); } @@ -4270,18 +4283,20 @@ private static ListServiceConnectionTokensPage createEmptyPage() { @Override protected ListServiceConnectionTokensPage createPage( - PageContext< + @Nullable + PageContext< ListServiceConnectionTokensRequest, ListServiceConnectionTokensResponse, ServiceConnectionToken> context, - ListServiceConnectionTokensResponse response) { + @Nullable ListServiceConnectionTokensResponse response) { return new ListServiceConnectionTokensPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListServiceConnectionTokensRequest, ListServiceConnectionTokensResponse, ServiceConnectionToken> @@ -4300,7 +4315,7 @@ public static class ListServiceConnectionTokensFixedSizeCollection ListServiceConnectionTokensFixedSizeCollection> { private ListServiceConnectionTokensFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4310,7 +4325,7 @@ private static ListServiceConnectionTokensFixedSizeCollection createEmptyCollect @Override protected ListServiceConnectionTokensFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceConnectionTokensFixedSizeCollection(pages, collectionSize); } } @@ -4344,8 +4359,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4355,14 +4370,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4376,7 +4391,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4386,7 +4402,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceSettings.java index 9a1923c4f3f4..a9c17d056c06 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/CrossNetworkAutomationServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -413,7 +414,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -434,7 +435,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CrossNetworkAutomationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java index e87ea6dffad3..8e320e52c400 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceClient.java @@ -47,6 +47,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. /** @@ -435,7 +436,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataTransferServiceClient implements BackgroundResource { - private final DataTransferServiceSettings settings; + private final @Nullable DataTransferServiceSettings settings; private final DataTransferServiceStub stub; private final OperationsClient operationsClient; @@ -478,7 +479,7 @@ protected DataTransferServiceClient(DataTransferServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DataTransferServiceSettings getSettings() { + public final @Nullable DataTransferServiceSettings getSettings() { return settings; } @@ -519,7 +520,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTransferConfigs( - LocationName parent) { + @Nullable LocationName parent) { ListMulticloudDataTransferConfigsRequest request = ListMulticloudDataTransferConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -704,7 +705,7 @@ public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( - MulticloudDataTransferConfigName name) { + @Nullable MulticloudDataTransferConfigName name) { GetMulticloudDataTransferConfigRequest request = GetMulticloudDataTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -843,7 +844,7 @@ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( */ public final OperationFuture createMulticloudDataTransferConfigAsync( - LocationName parent, + @Nullable LocationName parent, MulticloudDataTransferConfig multicloudDataTransferConfig, String multicloudDataTransferConfigId) { CreateMulticloudDataTransferConfigRequest request = @@ -1173,7 +1174,7 @@ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMulticloudDataTransferConfigAsync( - MulticloudDataTransferConfigName name) { + @Nullable MulticloudDataTransferConfigName name) { DeleteMulticloudDataTransferConfigRequest request = DeleteMulticloudDataTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1345,7 +1346,7 @@ public final OperationFuture deleteMulticloudDataTrans * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDestinationsPagedResponse listDestinations( - MulticloudDataTransferConfigName parent) { + @Nullable MulticloudDataTransferConfigName parent) { ListDestinationsRequest request = ListDestinationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1531,7 +1532,7 @@ public final ListDestinationsPagedResponse listDestinations(ListDestinationsRequ * @param name Required. The name of the `Destination` resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Destination getDestination(DestinationName name) { + public final Destination getDestination(@Nullable DestinationName name) { GetDestinationRequest request = GetDestinationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDestination(request); @@ -1666,7 +1667,9 @@ public final UnaryCallable getDestinationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDestinationAsync( - MulticloudDataTransferConfigName parent, Destination destination, String destinationId) { + @Nullable MulticloudDataTransferConfigName parent, + Destination destination, + String destinationId) { CreateDestinationRequest request = CreateDestinationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1976,7 +1979,7 @@ public final UnaryCallable updateDestinatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDestinationAsync( - DestinationName name) { + @Nullable DestinationName name) { DeleteDestinationRequest request = DeleteDestinationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2148,7 +2151,7 @@ public final UnaryCallable deleteDestinatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( - MulticloudDataTransferSupportedServiceName name) { + @Nullable MulticloudDataTransferSupportedServiceName name) { GetMulticloudDataTransferSupportedServiceRequest request = GetMulticloudDataTransferSupportedServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2283,7 +2286,7 @@ public final MulticloudDataTransferSupportedService getMulticloudDataTransferSup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMulticloudDataTransferSupportedServicesPagedResponse - listMulticloudDataTransferSupportedServices(LocationName parent) { + listMulticloudDataTransferSupportedServices(@Nullable LocationName parent) { ListMulticloudDataTransferSupportedServicesRequest request = ListMulticloudDataTransferSupportedServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2861,12 +2864,13 @@ public static class ListMulticloudDataTransferConfigsPage ListMulticloudDataTransferConfigsPage> { private ListMulticloudDataTransferConfigsPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> context, - ListMulticloudDataTransferConfigsResponse response) { + @Nullable ListMulticloudDataTransferConfigsResponse response) { super(context, response); } @@ -2876,18 +2880,20 @@ private static ListMulticloudDataTransferConfigsPage createEmptyPage() { @Override protected ListMulticloudDataTransferConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> context, - ListMulticloudDataTransferConfigsResponse response) { + @Nullable ListMulticloudDataTransferConfigsResponse response) { return new ListMulticloudDataTransferConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> @@ -2906,7 +2912,7 @@ public static class ListMulticloudDataTransferConfigsFixedSizeCollection ListMulticloudDataTransferConfigsFixedSizeCollection> { private ListMulticloudDataTransferConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2916,7 +2922,7 @@ private static ListMulticloudDataTransferConfigsFixedSizeCollection createEmptyC @Override protected ListMulticloudDataTransferConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMulticloudDataTransferConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2950,8 +2956,9 @@ public static class ListDestinationsPage ListDestinationsRequest, ListDestinationsResponse, Destination, ListDestinationsPage> { private ListDestinationsPage( - PageContext context, - ListDestinationsResponse response) { + @Nullable PageContext + context, + @Nullable ListDestinationsResponse response) { super(context, response); } @@ -2961,14 +2968,16 @@ private static ListDestinationsPage createEmptyPage() { @Override protected ListDestinationsPage createPage( - PageContext context, - ListDestinationsResponse response) { + @Nullable PageContext + context, + @Nullable ListDestinationsResponse response) { return new ListDestinationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2983,7 +2992,7 @@ public static class ListDestinationsFixedSizeCollection ListDestinationsFixedSizeCollection> { private ListDestinationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2993,7 +3002,7 @@ private static ListDestinationsFixedSizeCollection createEmptyCollection() { @Override protected ListDestinationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDestinationsFixedSizeCollection(pages, collectionSize); } } @@ -3038,12 +3047,13 @@ public static class ListMulticloudDataTransferSupportedServicesPage ListMulticloudDataTransferSupportedServicesPage> { private ListMulticloudDataTransferSupportedServicesPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> context, - ListMulticloudDataTransferSupportedServicesResponse response) { + @Nullable ListMulticloudDataTransferSupportedServicesResponse response) { super(context, response); } @@ -3053,18 +3063,20 @@ private static ListMulticloudDataTransferSupportedServicesPage createEmptyPage() @Override protected ListMulticloudDataTransferSupportedServicesPage createPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> context, - ListMulticloudDataTransferSupportedServicesResponse response) { + @Nullable ListMulticloudDataTransferSupportedServicesResponse response) { return new ListMulticloudDataTransferSupportedServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> @@ -3083,7 +3095,7 @@ public static class ListMulticloudDataTransferSupportedServicesFixedSizeCollecti ListMulticloudDataTransferSupportedServicesFixedSizeCollection> { private ListMulticloudDataTransferSupportedServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3094,7 +3106,7 @@ private ListMulticloudDataTransferSupportedServicesFixedSizeCollection( @Override protected ListMulticloudDataTransferSupportedServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMulticloudDataTransferSupportedServicesFixedSizeCollection( pages, collectionSize); } @@ -3129,8 +3141,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3140,14 +3152,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3161,7 +3173,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3171,7 +3184,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java index 9ddc3b21bcb0..454e1686e9a8 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/DataTransferServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -339,7 +340,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -359,7 +360,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataTransferServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java index 821e67f81820..9436644bba05 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java @@ -47,6 +47,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. /** @@ -656,7 +657,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HubServiceClient implements BackgroundResource { - private final HubServiceSettings settings; + private final @Nullable HubServiceSettings settings; private final HubServiceStub stub; private final OperationsClient operationsClient; @@ -697,7 +698,7 @@ protected HubServiceClient(HubServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final HubServiceSettings getSettings() { + public final @Nullable HubServiceSettings getSettings() { return settings; } @@ -736,7 +737,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHubsPagedResponse listHubs(LocationName parent) { + public final ListHubsPagedResponse listHubs(@Nullable LocationName parent) { ListHubsRequest request = ListHubsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listHubs(request); @@ -898,7 +899,7 @@ public final UnaryCallable listHubsCallable() * @param name Required. The name of the hub resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Hub getHub(HubName name) { + public final Hub getHub(@Nullable HubName name) { GetHubRequest request = GetHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHub(request); @@ -1007,7 +1008,7 @@ public final UnaryCallable getHubCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHubAsync( - LocationName parent, Hub hub, String hubId) { + @Nullable LocationName parent, Hub hub, String hubId) { CreateHubRequest request = CreateHubRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1286,7 +1287,7 @@ public final UnaryCallable updateHubCallable() { * @param name Required. The name of the hub to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHubAsync(HubName name) { + public final OperationFuture deleteHubAsync(@Nullable HubName name) { DeleteHubRequest request = DeleteHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHubAsync(request); @@ -1430,7 +1431,7 @@ public final UnaryCallable deleteHubCallable() { * @param name Required. The name of the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHubSpokesPagedResponse listHubSpokes(HubName name) { + public final ListHubSpokesPagedResponse listHubSpokes(@Nullable HubName name) { ListHubSpokesRequest request = ListHubSpokesRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listHubSpokes(request); @@ -1606,7 +1607,7 @@ public final UnaryCallable listHubS * @param name Required. The name of the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryHubStatusPagedResponse queryHubStatus(HubName name) { + public final QueryHubStatusPagedResponse queryHubStatus(@Nullable HubName name) { QueryHubStatusRequest request = QueryHubStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return queryHubStatus(request); @@ -1776,7 +1777,7 @@ public final QueryHubStatusPagedResponse queryHubStatus(QueryHubStatusRequest re * @param parent Required. The parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpokesPagedResponse listSpokes(LocationName parent) { + public final ListSpokesPagedResponse listSpokes(@Nullable LocationName parent) { ListSpokesRequest request = ListSpokesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSpokes(request); @@ -1938,7 +1939,7 @@ public final UnaryCallable listSpokesCall * @param name Required. The name of the spoke resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Spoke getSpoke(SpokeName name) { + public final Spoke getSpoke(@Nullable SpokeName name) { GetSpokeRequest request = GetSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpoke(request); @@ -2051,7 +2052,7 @@ public final UnaryCallable getSpokeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSpokeAsync( - LocationName parent, Spoke spoke, String spokeId) { + @Nullable LocationName parent, Spoke spoke, String spokeId) { CreateSpokeRequest request = CreateSpokeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2341,7 +2342,7 @@ public final UnaryCallable updateSpokeCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - HubName name, SpokeName spokeUri) { + @Nullable HubName name, @Nullable SpokeName spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2376,7 +2377,7 @@ public final OperationFuture rejectHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - HubName name, String spokeUri) { + @Nullable HubName name, String spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2411,7 +2412,7 @@ public final OperationFuture rejectHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - String name, SpokeName spokeUri) { + String name, @Nullable SpokeName spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name) @@ -2576,7 +2577,7 @@ public final UnaryCallable rejectHubSpokeCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - HubName name, SpokeName spokeUri) { + @Nullable HubName name, @Nullable SpokeName spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2609,7 +2610,7 @@ public final OperationFuture acceptHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - HubName name, String spokeUri) { + @Nullable HubName name, String spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2642,7 +2643,7 @@ public final OperationFuture acceptHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - String name, SpokeName spokeUri) { + String name, @Nullable SpokeName spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name) @@ -2799,7 +2800,7 @@ public final UnaryCallable acceptHubSpokeCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - HubName name, SpokeName spokeUri, String spokeEtag) { + @Nullable HubName name, @Nullable SpokeName spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2836,7 +2837,7 @@ public final OperationFuture accep * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - HubName name, String spokeUri, String spokeEtag) { + @Nullable HubName name, String spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2873,7 +2874,7 @@ public final OperationFuture accep * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - String name, SpokeName spokeUri, String spokeEtag) { + String name, @Nullable SpokeName spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name) @@ -3043,7 +3044,7 @@ public final UnaryCallable acceptSpokeUpdat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - HubName name, SpokeName spokeUri, String spokeEtag) { + @Nullable HubName name, @Nullable SpokeName spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3080,7 +3081,7 @@ public final OperationFuture rejec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - HubName name, String spokeUri, String spokeEtag) { + @Nullable HubName name, String spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3117,7 +3118,7 @@ public final OperationFuture rejec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - String name, SpokeName spokeUri, String spokeEtag) { + String name, @Nullable SpokeName spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name) @@ -3284,7 +3285,8 @@ public final UnaryCallable rejectSpokeUpdat * @param name Required. The name of the spoke to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSpokeAsync(SpokeName name) { + public final OperationFuture deleteSpokeAsync( + @Nullable SpokeName name) { DeleteSpokeRequest request = DeleteSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSpokeAsync(request); @@ -3425,7 +3427,7 @@ public final UnaryCallable deleteSpokeCallable() * @param name Required. The name of the route table resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RouteTable getRouteTable(RouteTableName name) { + public final RouteTable getRouteTable(@Nullable RouteTableName name) { GetRouteTableRequest request = GetRouteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRouteTable(request); @@ -3533,7 +3535,7 @@ public final UnaryCallable getRouteTableCallab * @param name Required. The name of the route resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Route getRoute(HubRouteName name) { + public final Route getRoute(@Nullable HubRouteName name) { GetRouteRequest request = GetRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRoute(request); @@ -3643,7 +3645,7 @@ public final UnaryCallable getRouteCallable() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRoutesPagedResponse listRoutes(RouteTableName parent) { + public final ListRoutesPagedResponse listRoutes(@Nullable RouteTableName parent) { ListRoutesRequest request = ListRoutesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRoutes(request); @@ -3807,7 +3809,7 @@ public final UnaryCallable listRoutesCall * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRouteTablesPagedResponse listRouteTables(HubName parent) { + public final ListRouteTablesPagedResponse listRouteTables(@Nullable HubName parent) { ListRouteTablesRequest request = ListRouteTablesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3974,7 +3976,7 @@ public final ListRouteTablesPagedResponse listRouteTables(ListRouteTablesRequest * @param name Required. The name of the route table resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group getGroup(GroupName name) { + public final Group getGroup(@Nullable GroupName name) { GetGroupRequest request = GetGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGroup(request); @@ -4084,7 +4086,7 @@ public final UnaryCallable getGroupCallable() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(HubName parent) { + public final ListGroupsPagedResponse listGroups(@Nullable HubName parent) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listGroups(request); @@ -4747,7 +4749,8 @@ public static class ListHubsPage extends AbstractPage { private ListHubsPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { super(context, response); } @@ -4757,13 +4760,14 @@ private static ListHubsPage createEmptyPage() { @Override protected ListHubsPage createPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { return new ListHubsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4773,7 +4777,7 @@ public static class ListHubsFixedSizeCollection extends AbstractFixedSizeCollection< ListHubsRequest, ListHubsResponse, Hub, ListHubsPage, ListHubsFixedSizeCollection> { - private ListHubsFixedSizeCollection(List pages, int collectionSize) { + private ListHubsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4783,7 +4787,7 @@ private static ListHubsFixedSizeCollection createEmptyCollection() { @Override protected ListHubsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHubsFixedSizeCollection(pages, collectionSize); } } @@ -4816,8 +4820,8 @@ public static class ListHubSpokesPage extends AbstractPage { private ListHubSpokesPage( - PageContext context, - ListHubSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListHubSpokesResponse response) { super(context, response); } @@ -4827,14 +4831,14 @@ private static ListHubSpokesPage createEmptyPage() { @Override protected ListHubSpokesPage createPage( - PageContext context, - ListHubSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListHubSpokesResponse response) { return new ListHubSpokesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4848,7 +4852,8 @@ public static class ListHubSpokesFixedSizeCollection ListHubSpokesPage, ListHubSpokesFixedSizeCollection> { - private ListHubSpokesFixedSizeCollection(List pages, int collectionSize) { + private ListHubSpokesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4858,7 +4863,7 @@ private static ListHubSpokesFixedSizeCollection createEmptyCollection() { @Override protected ListHubSpokesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHubSpokesFixedSizeCollection(pages, collectionSize); } } @@ -4892,8 +4897,9 @@ public static class QueryHubStatusPage QueryHubStatusRequest, QueryHubStatusResponse, HubStatusEntry, QueryHubStatusPage> { private QueryHubStatusPage( - PageContext context, - QueryHubStatusResponse response) { + @Nullable PageContext + context, + @Nullable QueryHubStatusResponse response) { super(context, response); } @@ -4903,14 +4909,16 @@ private static QueryHubStatusPage createEmptyPage() { @Override protected QueryHubStatusPage createPage( - PageContext context, - QueryHubStatusResponse response) { + @Nullable PageContext + context, + @Nullable QueryHubStatusResponse response) { return new QueryHubStatusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4924,7 +4932,8 @@ public static class QueryHubStatusFixedSizeCollection QueryHubStatusPage, QueryHubStatusFixedSizeCollection> { - private QueryHubStatusFixedSizeCollection(List pages, int collectionSize) { + private QueryHubStatusFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4934,7 +4943,7 @@ private static QueryHubStatusFixedSizeCollection createEmptyCollection() { @Override protected QueryHubStatusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryHubStatusFixedSizeCollection(pages, collectionSize); } } @@ -4965,8 +4974,8 @@ public static class ListSpokesPage extends AbstractPage { private ListSpokesPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { super(context, response); } @@ -4976,14 +4985,14 @@ private static ListSpokesPage createEmptyPage() { @Override protected ListSpokesPage createPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { return new ListSpokesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4997,7 +5006,8 @@ public static class ListSpokesFixedSizeCollection ListSpokesPage, ListSpokesFixedSizeCollection> { - private ListSpokesFixedSizeCollection(List pages, int collectionSize) { + private ListSpokesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5007,7 +5017,7 @@ private static ListSpokesFixedSizeCollection createEmptyCollection() { @Override protected ListSpokesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpokesFixedSizeCollection(pages, collectionSize); } } @@ -5038,8 +5048,8 @@ public static class ListRoutesPage extends AbstractPage { private ListRoutesPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { super(context, response); } @@ -5049,14 +5059,14 @@ private static ListRoutesPage createEmptyPage() { @Override protected ListRoutesPage createPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { return new ListRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5070,7 +5080,8 @@ public static class ListRoutesFixedSizeCollection ListRoutesPage, ListRoutesFixedSizeCollection> { - private ListRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5080,7 +5091,7 @@ private static ListRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutesFixedSizeCollection(pages, collectionSize); } } @@ -5114,8 +5125,8 @@ public static class ListRouteTablesPage ListRouteTablesRequest, ListRouteTablesResponse, RouteTable, ListRouteTablesPage> { private ListRouteTablesPage( - PageContext context, - ListRouteTablesResponse response) { + @Nullable PageContext context, + @Nullable ListRouteTablesResponse response) { super(context, response); } @@ -5125,14 +5136,14 @@ private static ListRouteTablesPage createEmptyPage() { @Override protected ListRouteTablesPage createPage( - PageContext context, - ListRouteTablesResponse response) { + @Nullable PageContext context, + @Nullable ListRouteTablesResponse response) { return new ListRouteTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5147,7 +5158,7 @@ public static class ListRouteTablesFixedSizeCollection ListRouteTablesFixedSizeCollection> { private ListRouteTablesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5157,7 +5168,7 @@ private static ListRouteTablesFixedSizeCollection createEmptyCollection() { @Override protected ListRouteTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRouteTablesFixedSizeCollection(pages, collectionSize); } } @@ -5188,8 +5199,8 @@ public static class ListGroupsPage extends AbstractPage { private ListGroupsPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { super(context, response); } @@ -5199,14 +5210,14 @@ private static ListGroupsPage createEmptyPage() { @Override protected ListGroupsPage createPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { return new ListGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5220,7 +5231,8 @@ public static class ListGroupsFixedSizeCollection ListGroupsPage, ListGroupsFixedSizeCollection> { - private ListGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5230,7 +5242,7 @@ private static ListGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupsFixedSizeCollection(pages, collectionSize); } } @@ -5264,8 +5276,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5275,14 +5287,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5296,7 +5308,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5306,7 +5319,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 9e1a15c38b41..889eecb6bb8b 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -394,7 +395,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -414,7 +415,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HubServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceClient.java index c8d5251790ee..347d2ac2e688 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceClient.java @@ -47,6 +47,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. /** @@ -297,7 +298,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InternalRangeServiceClient implements BackgroundResource { - private final InternalRangeServiceSettings settings; + private final @Nullable InternalRangeServiceSettings settings; private final InternalRangeServiceStub stub; private final OperationsClient operationsClient; @@ -340,7 +341,7 @@ protected InternalRangeServiceClient(InternalRangeServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final InternalRangeServiceSettings getSettings() { + public final @Nullable InternalRangeServiceSettings getSettings() { return settings; } @@ -381,7 +382,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInternalRangesPagedResponse listInternalRanges(LocationName parent) { + public final ListInternalRangesPagedResponse listInternalRanges(@Nullable LocationName parent) { ListInternalRangesRequest request = ListInternalRangesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -558,7 +559,7 @@ public final ListInternalRangesPagedResponse listInternalRanges( * @param name Required. Name of the InternalRange to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InternalRange getInternalRange(InternalRangeName name) { + public final InternalRange getInternalRange(@Nullable InternalRangeName name) { GetInternalRangeRequest request = GetInternalRangeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInternalRange(request); @@ -683,7 +684,7 @@ public final UnaryCallable getInternalRa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInternalRangeAsync( - LocationName parent, InternalRange internalRange, String internalRangeId) { + @Nullable LocationName parent, InternalRange internalRange, String internalRangeId) { CreateInternalRangeRequest request = CreateInternalRangeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -989,7 +990,7 @@ public final UnaryCallable updateInternal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteInternalRangeAsync( - InternalRangeName name) { + @Nullable InternalRangeName name) { DeleteInternalRangeRequest request = DeleteInternalRangeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1543,8 +1544,9 @@ public static class ListInternalRangesPage ListInternalRangesPage> { private ListInternalRangesPage( - PageContext context, - ListInternalRangesResponse response) { + @Nullable PageContext + context, + @Nullable ListInternalRangesResponse response) { super(context, response); } @@ -1554,14 +1556,16 @@ private static ListInternalRangesPage createEmptyPage() { @Override protected ListInternalRangesPage createPage( - PageContext context, - ListInternalRangesResponse response) { + @Nullable PageContext + context, + @Nullable ListInternalRangesResponse response) { return new ListInternalRangesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1576,7 +1580,7 @@ public static class ListInternalRangesFixedSizeCollection ListInternalRangesFixedSizeCollection> { private ListInternalRangesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1586,7 +1590,7 @@ private static ListInternalRangesFixedSizeCollection createEmptyCollection() { @Override protected ListInternalRangesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInternalRangesFixedSizeCollection(pages, collectionSize); } } @@ -1620,8 +1624,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1631,14 +1635,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1652,7 +1656,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1662,7 +1667,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceSettings.java index 241fdb60479f..008677d036c7 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -248,7 +249,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InternalRangeServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java index 1c295993923f..b1281905b105 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java @@ -46,6 +46,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. /** @@ -277,7 +278,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PolicyBasedRoutingServiceClient implements BackgroundResource { - private final PolicyBasedRoutingServiceSettings settings; + private final @Nullable PolicyBasedRoutingServiceSettings settings; private final PolicyBasedRoutingServiceStub stub; private final OperationsClient operationsClient; @@ -322,7 +323,7 @@ protected PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PolicyBasedRoutingServiceSettings getSettings() { + public final @Nullable PolicyBasedRoutingServiceSettings getSettings() { return settings; } @@ -363,7 +364,8 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(LocationName parent) { + public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( + @Nullable LocationName parent) { ListPolicyBasedRoutesRequest request = ListPolicyBasedRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -540,7 +542,7 @@ public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( * @param name Required. Name of the PolicyBasedRoute resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyBasedRoute getPolicyBasedRoute(PolicyBasedRouteName name) { + public final PolicyBasedRoute getPolicyBasedRoute(@Nullable PolicyBasedRouteName name) { GetPolicyBasedRouteRequest request = GetPolicyBasedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -671,7 +673,7 @@ public final PolicyBasedRoute getPolicyBasedRoute(GetPolicyBasedRouteRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBasedRouteAsync( - LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { + @Nullable LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { CreatePolicyBasedRouteRequest request = CreatePolicyBasedRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -852,7 +854,7 @@ public final OperationFuture createPolicyBa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePolicyBasedRouteAsync( - PolicyBasedRouteName name) { + @Nullable PolicyBasedRouteName name) { DeletePolicyBasedRouteRequest request = DeletePolicyBasedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1408,9 +1410,11 @@ public static class ListPolicyBasedRoutesPage ListPolicyBasedRoutesPage> { private ListPolicyBasedRoutesPage( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, - ListPolicyBasedRoutesResponse response) { + @Nullable ListPolicyBasedRoutesResponse response) { super(context, response); } @@ -1420,15 +1424,19 @@ private static ListPolicyBasedRoutesPage createEmptyPage() { @Override protected ListPolicyBasedRoutesPage createPage( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, - ListPolicyBasedRoutesResponse response) { + @Nullable ListPolicyBasedRoutesResponse response) { return new ListPolicyBasedRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1444,7 +1452,7 @@ public static class ListPolicyBasedRoutesFixedSizeCollection ListPolicyBasedRoutesFixedSizeCollection> { private ListPolicyBasedRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1454,7 +1462,7 @@ private static ListPolicyBasedRoutesFixedSizeCollection createEmptyCollection() @Override protected ListPolicyBasedRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyBasedRoutesFixedSizeCollection(pages, collectionSize); } } @@ -1488,8 +1496,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1499,14 +1507,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1520,7 +1528,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1530,7 +1539,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java index 4f6f467741e7..fd874381cbe0 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -246,7 +247,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -267,7 +268,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyBasedRoutingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStub.java index d265416e5538..479890b8cebc 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStub.java @@ -66,6 +66,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -77,7 +78,7 @@ @Generated("by gapic-generator-java") public abstract class CrossNetworkAutomationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStubSettings.java index 0125f0c414e7..bd398054844e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/CrossNetworkAutomationServiceStubSettings.java @@ -96,6 +96,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -877,7 +878,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1067,7 +1068,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServiceConnectionMapsSettings = diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java index 801ef2af002a..30b362f7308f 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,7 +69,7 @@ @Generated("by gapic-generator-java") public abstract class DataTransferServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java index 405e5363fc5c..2561b38b9880 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/DataTransferServiceStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -722,7 +723,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -893,7 +894,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMulticloudDataTransferConfigsSettings = diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java index 711cbf402612..e4ea9a6cbd47 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java @@ -82,6 +82,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,7 +94,7 @@ @Generated("by gapic-generator-java") public abstract class HubServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java index f3fa5f532e45..feca7e612575 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java @@ -113,6 +113,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -967,7 +968,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1154,7 +1155,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listHubsSettings = PagedCallSettings.newBuilder(LIST_HUBS_PAGE_STR_FACT); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStub.java index a479b1355a32..de87e554675c 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class InternalRangeServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStubSettings.java index 170134501783..9a375e547246 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/InternalRangeServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -438,7 +439,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInternalRangesSettings = PagedCallSettings.newBuilder(LIST_INTERNAL_RANGES_PAGE_STR_FACT); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java index b60f7a58676a..56fdde789cc2 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,7 +55,7 @@ @Generated("by gapic-generator-java") public abstract class PolicyBasedRoutingServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java index c88abdebd4a2..1c69eebc7518 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -435,7 +436,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -545,7 +546,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPolicyBasedRoutesSettings = diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java index 82a5a1d5e6a6..b8b74f8d59e4 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java @@ -39,6 +39,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. /** @@ -312,7 +313,7 @@ @BetaApi @Generated("by gapic-generator-java") public class HubServiceClient implements BackgroundResource { - private final HubServiceSettings settings; + private final @Nullable HubServiceSettings settings; private final HubServiceStub stub; private final OperationsClient operationsClient; @@ -353,7 +354,7 @@ protected HubServiceClient(HubServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final HubServiceSettings getSettings() { + public final @Nullable HubServiceSettings getSettings() { return settings; } @@ -392,7 +393,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHubsPagedResponse listHubs(LocationName parent) { + public final ListHubsPagedResponse listHubs(@Nullable LocationName parent) { ListHubsRequest request = ListHubsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listHubs(request); @@ -554,7 +555,7 @@ public final UnaryCallable listHubsCallable() * @param name Required. Name of the Hub resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Hub getHub(HubName name) { + public final Hub getHub(@Nullable HubName name) { GetHubRequest request = GetHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHub(request); @@ -663,7 +664,7 @@ public final UnaryCallable getHubCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHubAsync( - LocationName parent, Hub hub, String hubId) { + @Nullable LocationName parent, Hub hub, String hubId) { CreateHubRequest request = CreateHubRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -942,7 +943,7 @@ public final UnaryCallable updateHubCallable() { * @param name Required. The name of the Hub to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHubAsync(HubName name) { + public final OperationFuture deleteHubAsync(@Nullable HubName name) { DeleteHubRequest request = DeleteHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHubAsync(request); @@ -1084,7 +1085,7 @@ public final UnaryCallable deleteHubCallable() { * @param parent Required. The parent's resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpokesPagedResponse listSpokes(LocationName parent) { + public final ListSpokesPagedResponse listSpokes(@Nullable LocationName parent) { ListSpokesRequest request = ListSpokesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSpokes(request); @@ -1246,7 +1247,7 @@ public final UnaryCallable listSpokesCall * @param name Required. The name of Spoke resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Spoke getSpoke(SpokeName name) { + public final Spoke getSpoke(@Nullable SpokeName name) { GetSpokeRequest request = GetSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpoke(request); @@ -1359,7 +1360,7 @@ public final UnaryCallable getSpokeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSpokeAsync( - LocationName parent, Spoke spoke, String spokeId) { + @Nullable LocationName parent, Spoke spoke, String spokeId) { CreateSpokeRequest request = CreateSpokeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1644,7 +1645,8 @@ public final UnaryCallable updateSpokeCallable() * @param name Required. The name of the Spoke to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSpokeAsync(SpokeName name) { + public final OperationFuture deleteSpokeAsync( + @Nullable SpokeName name) { DeleteSpokeRequest request = DeleteSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSpokeAsync(request); @@ -1816,7 +1818,8 @@ public static class ListHubsPage extends AbstractPage { private ListHubsPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { super(context, response); } @@ -1826,13 +1829,14 @@ private static ListHubsPage createEmptyPage() { @Override protected ListHubsPage createPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { return new ListHubsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1842,7 +1846,7 @@ public static class ListHubsFixedSizeCollection extends AbstractFixedSizeCollection< ListHubsRequest, ListHubsResponse, Hub, ListHubsPage, ListHubsFixedSizeCollection> { - private ListHubsFixedSizeCollection(List pages, int collectionSize) { + private ListHubsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1852,7 +1856,7 @@ private static ListHubsFixedSizeCollection createEmptyCollection() { @Override protected ListHubsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHubsFixedSizeCollection(pages, collectionSize); } } @@ -1883,8 +1887,8 @@ public static class ListSpokesPage extends AbstractPage { private ListSpokesPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { super(context, response); } @@ -1894,14 +1898,14 @@ private static ListSpokesPage createEmptyPage() { @Override protected ListSpokesPage createPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { return new ListSpokesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1915,7 +1919,8 @@ public static class ListSpokesFixedSizeCollection ListSpokesPage, ListSpokesFixedSizeCollection> { - private ListSpokesFixedSizeCollection(List pages, int collectionSize) { + private ListSpokesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1925,7 +1930,7 @@ private static ListSpokesFixedSizeCollection createEmptyCollection() { @Override protected ListSpokesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpokesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index 16c90cd5c0b9..8588364d4407 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -250,7 +251,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HubServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java index cc1298fa144d..0d6ddbfc179d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,7 +56,7 @@ @Generated("by gapic-generator-java") public abstract class HubServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java index d616f55f87f0..27bdac2ee844 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -441,7 +442,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -554,7 +555,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listHubsSettings = PagedCallSettings.newBuilder(LIST_HUBS_PAGE_STR_FACT); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceClient.java index 1fc6af562f7b..be06fc8a264a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceClient.java @@ -48,6 +48,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. /** @@ -438,7 +439,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataTransferServiceClient implements BackgroundResource { - private final DataTransferServiceSettings settings; + private final @Nullable DataTransferServiceSettings settings; private final DataTransferServiceStub stub; private final OperationsClient operationsClient; @@ -481,7 +482,7 @@ protected DataTransferServiceClient(DataTransferServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final DataTransferServiceSettings getSettings() { + public final @Nullable DataTransferServiceSettings getSettings() { return settings; } @@ -522,7 +523,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTransferConfigs( - LocationName parent) { + @Nullable LocationName parent) { ListMulticloudDataTransferConfigsRequest request = ListMulticloudDataTransferConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -707,7 +708,7 @@ public final ListMulticloudDataTransferConfigsPagedResponse listMulticloudDataTr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( - MulticloudDataTransferConfigName name) { + @Nullable MulticloudDataTransferConfigName name) { GetMulticloudDataTransferConfigRequest request = GetMulticloudDataTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -846,7 +847,7 @@ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( */ public final OperationFuture createMulticloudDataTransferConfigAsync( - LocationName parent, + @Nullable LocationName parent, MulticloudDataTransferConfig multicloudDataTransferConfig, String multicloudDataTransferConfigId) { CreateMulticloudDataTransferConfigRequest request = @@ -1176,7 +1177,7 @@ public final MulticloudDataTransferConfig getMulticloudDataTransferConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMulticloudDataTransferConfigAsync( - MulticloudDataTransferConfigName name) { + @Nullable MulticloudDataTransferConfigName name) { DeleteMulticloudDataTransferConfigRequest request = DeleteMulticloudDataTransferConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1348,7 +1349,7 @@ public final OperationFuture deleteMulticloudDataTrans * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDestinationsPagedResponse listDestinations( - MulticloudDataTransferConfigName parent) { + @Nullable MulticloudDataTransferConfigName parent) { ListDestinationsRequest request = ListDestinationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1534,7 +1535,7 @@ public final ListDestinationsPagedResponse listDestinations(ListDestinationsRequ * @param name Required. The name of the `Destination` resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Destination getDestination(DestinationName name) { + public final Destination getDestination(@Nullable DestinationName name) { GetDestinationRequest request = GetDestinationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDestination(request); @@ -1669,7 +1670,9 @@ public final UnaryCallable getDestinationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDestinationAsync( - MulticloudDataTransferConfigName parent, Destination destination, String destinationId) { + @Nullable MulticloudDataTransferConfigName parent, + Destination destination, + String destinationId) { CreateDestinationRequest request = CreateDestinationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1979,7 +1982,7 @@ public final UnaryCallable updateDestinatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDestinationAsync( - DestinationName name) { + @Nullable DestinationName name) { DeleteDestinationRequest request = DeleteDestinationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2151,7 +2154,7 @@ public final UnaryCallable deleteDestinatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MulticloudDataTransferSupportedService getMulticloudDataTransferSupportedService( - MulticloudDataTransferSupportedServiceName name) { + @Nullable MulticloudDataTransferSupportedServiceName name) { GetMulticloudDataTransferSupportedServiceRequest request = GetMulticloudDataTransferSupportedServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2286,7 +2289,7 @@ public final MulticloudDataTransferSupportedService getMulticloudDataTransferSup * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMulticloudDataTransferSupportedServicesPagedResponse - listMulticloudDataTransferSupportedServices(LocationName parent) { + listMulticloudDataTransferSupportedServices(@Nullable LocationName parent) { ListMulticloudDataTransferSupportedServicesRequest request = ListMulticloudDataTransferSupportedServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2882,12 +2885,13 @@ public static class ListMulticloudDataTransferConfigsPage ListMulticloudDataTransferConfigsPage> { private ListMulticloudDataTransferConfigsPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> context, - ListMulticloudDataTransferConfigsResponse response) { + @Nullable ListMulticloudDataTransferConfigsResponse response) { super(context, response); } @@ -2897,18 +2901,20 @@ private static ListMulticloudDataTransferConfigsPage createEmptyPage() { @Override protected ListMulticloudDataTransferConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> context, - ListMulticloudDataTransferConfigsResponse response) { + @Nullable ListMulticloudDataTransferConfigsResponse response) { return new ListMulticloudDataTransferConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferConfigsRequest, ListMulticloudDataTransferConfigsResponse, MulticloudDataTransferConfig> @@ -2927,7 +2933,7 @@ public static class ListMulticloudDataTransferConfigsFixedSizeCollection ListMulticloudDataTransferConfigsFixedSizeCollection> { private ListMulticloudDataTransferConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2937,7 +2943,7 @@ private static ListMulticloudDataTransferConfigsFixedSizeCollection createEmptyC @Override protected ListMulticloudDataTransferConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMulticloudDataTransferConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2971,8 +2977,9 @@ public static class ListDestinationsPage ListDestinationsRequest, ListDestinationsResponse, Destination, ListDestinationsPage> { private ListDestinationsPage( - PageContext context, - ListDestinationsResponse response) { + @Nullable PageContext + context, + @Nullable ListDestinationsResponse response) { super(context, response); } @@ -2982,14 +2989,16 @@ private static ListDestinationsPage createEmptyPage() { @Override protected ListDestinationsPage createPage( - PageContext context, - ListDestinationsResponse response) { + @Nullable PageContext + context, + @Nullable ListDestinationsResponse response) { return new ListDestinationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3004,7 +3013,7 @@ public static class ListDestinationsFixedSizeCollection ListDestinationsFixedSizeCollection> { private ListDestinationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3014,7 +3023,7 @@ private static ListDestinationsFixedSizeCollection createEmptyCollection() { @Override protected ListDestinationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDestinationsFixedSizeCollection(pages, collectionSize); } } @@ -3059,12 +3068,13 @@ public static class ListMulticloudDataTransferSupportedServicesPage ListMulticloudDataTransferSupportedServicesPage> { private ListMulticloudDataTransferSupportedServicesPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> context, - ListMulticloudDataTransferSupportedServicesResponse response) { + @Nullable ListMulticloudDataTransferSupportedServicesResponse response) { super(context, response); } @@ -3074,18 +3084,20 @@ private static ListMulticloudDataTransferSupportedServicesPage createEmptyPage() @Override protected ListMulticloudDataTransferSupportedServicesPage createPage( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> context, - ListMulticloudDataTransferSupportedServicesResponse response) { + @Nullable ListMulticloudDataTransferSupportedServicesResponse response) { return new ListMulticloudDataTransferSupportedServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListMulticloudDataTransferSupportedServicesRequest, ListMulticloudDataTransferSupportedServicesResponse, MulticloudDataTransferSupportedService> @@ -3104,7 +3116,7 @@ public static class ListMulticloudDataTransferSupportedServicesFixedSizeCollecti ListMulticloudDataTransferSupportedServicesFixedSizeCollection> { private ListMulticloudDataTransferSupportedServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3115,7 +3127,7 @@ private ListMulticloudDataTransferSupportedServicesFixedSizeCollection( @Override protected ListMulticloudDataTransferSupportedServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMulticloudDataTransferSupportedServicesFixedSizeCollection( pages, collectionSize); } @@ -3150,8 +3162,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3161,14 +3173,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3182,7 +3194,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3192,7 +3205,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceSettings.java index a306dec7911f..7d44c054ade6 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/DataTransferServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -361,7 +362,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataTransferServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceClient.java index cbbf27af92d1..c63cb8366d3c 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceClient.java @@ -48,6 +48,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. /** @@ -757,7 +758,7 @@ @BetaApi @Generated("by gapic-generator-java") public class HubServiceClient implements BackgroundResource { - private final HubServiceSettings settings; + private final @Nullable HubServiceSettings settings; private final HubServiceStub stub; private final OperationsClient operationsClient; @@ -798,7 +799,7 @@ protected HubServiceClient(HubServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final HubServiceSettings getSettings() { + public final @Nullable HubServiceSettings getSettings() { return settings; } @@ -837,7 +838,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHubsPagedResponse listHubs(LocationName parent) { + public final ListHubsPagedResponse listHubs(@Nullable LocationName parent) { ListHubsRequest request = ListHubsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listHubs(request); @@ -999,7 +1000,7 @@ public final UnaryCallable listHubsCallable() * @param name Required. The name of the hub resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Hub getHub(HubName name) { + public final Hub getHub(@Nullable HubName name) { GetHubRequest request = GetHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHub(request); @@ -1108,7 +1109,7 @@ public final UnaryCallable getHubCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHubAsync( - LocationName parent, Hub hub, String hubId) { + @Nullable LocationName parent, Hub hub, String hubId) { CreateHubRequest request = CreateHubRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1387,7 +1388,7 @@ public final UnaryCallable updateHubCallable() { * @param name Required. The name of the hub to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHubAsync(HubName name) { + public final OperationFuture deleteHubAsync(@Nullable HubName name) { DeleteHubRequest request = DeleteHubRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHubAsync(request); @@ -1531,7 +1532,7 @@ public final UnaryCallable deleteHubCallable() { * @param name Required. The name of the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHubSpokesPagedResponse listHubSpokes(HubName name) { + public final ListHubSpokesPagedResponse listHubSpokes(@Nullable HubName name) { ListHubSpokesRequest request = ListHubSpokesRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return listHubSpokes(request); @@ -1707,7 +1708,7 @@ public final UnaryCallable listHubS * @param name Required. The name of the hub. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueryHubStatusPagedResponse queryHubStatus(HubName name) { + public final QueryHubStatusPagedResponse queryHubStatus(@Nullable HubName name) { QueryHubStatusRequest request = QueryHubStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return queryHubStatus(request); @@ -1877,7 +1878,7 @@ public final QueryHubStatusPagedResponse queryHubStatus(QueryHubStatusRequest re * @param parent Required. The parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSpokesPagedResponse listSpokes(LocationName parent) { + public final ListSpokesPagedResponse listSpokes(@Nullable LocationName parent) { ListSpokesRequest request = ListSpokesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSpokes(request); @@ -2039,7 +2040,7 @@ public final UnaryCallable listSpokesCall * @param name Required. The name of the spoke resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Spoke getSpoke(SpokeName name) { + public final Spoke getSpoke(@Nullable SpokeName name) { GetSpokeRequest request = GetSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSpoke(request); @@ -2152,7 +2153,7 @@ public final UnaryCallable getSpokeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSpokeAsync( - LocationName parent, Spoke spoke, String spokeId) { + @Nullable LocationName parent, Spoke spoke, String spokeId) { CreateSpokeRequest request = CreateSpokeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2442,7 +2443,7 @@ public final UnaryCallable updateSpokeCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - HubName name, SpokeName spokeUri) { + @Nullable HubName name, @Nullable SpokeName spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2477,7 +2478,7 @@ public final OperationFuture rejectHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - HubName name, String spokeUri) { + @Nullable HubName name, String spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2512,7 +2513,7 @@ public final OperationFuture rejectHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectHubSpokeAsync( - String name, SpokeName spokeUri) { + String name, @Nullable SpokeName spokeUri) { RejectHubSpokeRequest request = RejectHubSpokeRequest.newBuilder() .setName(name) @@ -2677,7 +2678,7 @@ public final UnaryCallable rejectHubSpokeCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - HubName name, SpokeName spokeUri) { + @Nullable HubName name, @Nullable SpokeName spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2710,7 +2711,7 @@ public final OperationFuture acceptHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - HubName name, String spokeUri) { + @Nullable HubName name, String spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2743,7 +2744,7 @@ public final OperationFuture acceptHu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptHubSpokeAsync( - String name, SpokeName spokeUri) { + String name, @Nullable SpokeName spokeUri) { AcceptHubSpokeRequest request = AcceptHubSpokeRequest.newBuilder() .setName(name) @@ -2900,7 +2901,7 @@ public final UnaryCallable acceptHubSpokeCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - HubName name, SpokeName spokeUri, String spokeEtag) { + @Nullable HubName name, @Nullable SpokeName spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2937,7 +2938,7 @@ public final OperationFuture accep * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - HubName name, String spokeUri, String spokeEtag) { + @Nullable HubName name, String spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2974,7 +2975,7 @@ public final OperationFuture accep * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture acceptSpokeUpdateAsync( - String name, SpokeName spokeUri, String spokeEtag) { + String name, @Nullable SpokeName spokeUri, String spokeEtag) { AcceptSpokeUpdateRequest request = AcceptSpokeUpdateRequest.newBuilder() .setName(name) @@ -3144,7 +3145,7 @@ public final UnaryCallable acceptSpokeUpdat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - HubName name, SpokeName spokeUri, String spokeEtag) { + @Nullable HubName name, @Nullable SpokeName spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3181,7 +3182,7 @@ public final OperationFuture rejec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - HubName name, String spokeUri, String spokeEtag) { + @Nullable HubName name, String spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3218,7 +3219,7 @@ public final OperationFuture rejec * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rejectSpokeUpdateAsync( - String name, SpokeName spokeUri, String spokeEtag) { + String name, @Nullable SpokeName spokeUri, String spokeEtag) { RejectSpokeUpdateRequest request = RejectSpokeUpdateRequest.newBuilder() .setName(name) @@ -3385,7 +3386,8 @@ public final UnaryCallable rejectSpokeUpdat * @param name Required. The name of the spoke to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSpokeAsync(SpokeName name) { + public final OperationFuture deleteSpokeAsync( + @Nullable SpokeName name) { DeleteSpokeRequest request = DeleteSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSpokeAsync(request); @@ -3526,7 +3528,7 @@ public final UnaryCallable deleteSpokeCallable() * @param name Required. The name of the route table resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RouteTable getRouteTable(RouteTableName name) { + public final RouteTable getRouteTable(@Nullable RouteTableName name) { GetRouteTableRequest request = GetRouteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRouteTable(request); @@ -3634,7 +3636,7 @@ public final UnaryCallable getRouteTableCallab * @param name Required. The name of the route resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Route getRoute(HubRouteName name) { + public final Route getRoute(@Nullable HubRouteName name) { GetRouteRequest request = GetRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRoute(request); @@ -3744,7 +3746,7 @@ public final UnaryCallable getRouteCallable() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRoutesPagedResponse listRoutes(RouteTableName parent) { + public final ListRoutesPagedResponse listRoutes(@Nullable RouteTableName parent) { ListRoutesRequest request = ListRoutesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRoutes(request); @@ -3908,7 +3910,7 @@ public final UnaryCallable listRoutesCall * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRouteTablesPagedResponse listRouteTables(HubName parent) { + public final ListRouteTablesPagedResponse listRouteTables(@Nullable HubName parent) { ListRouteTablesRequest request = ListRouteTablesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4075,7 +4077,7 @@ public final ListRouteTablesPagedResponse listRouteTables(ListRouteTablesRequest * @param name Required. The name of the route table resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group getGroup(GroupName name) { + public final Group getGroup(@Nullable GroupName name) { GetGroupRequest request = GetGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGroup(request); @@ -4185,7 +4187,7 @@ public final UnaryCallable getGroupCallable() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(HubName parent) { + public final ListGroupsPagedResponse listGroups(@Nullable HubName parent) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listGroups(request); @@ -4481,7 +4483,7 @@ public final UnaryCallable updateGroupCallable() */ public final OperationFuture createGatewayAdvertisedRouteAsync( - SpokeName parent, + @Nullable SpokeName parent, GatewayAdvertisedRoute gatewayAdvertisedRoute, String gatewayAdvertisedRouteId) { CreateGatewayAdvertisedRouteRequest request = @@ -4657,7 +4659,8 @@ public final UnaryCallable updateGroupCallable() * @param name Required. The name of the gateway advertised route to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GatewayAdvertisedRoute getGatewayAdvertisedRoute(GatewayAdvertisedRouteName name) { + public final GatewayAdvertisedRoute getGatewayAdvertisedRoute( + @Nullable GatewayAdvertisedRouteName name) { GetGatewayAdvertisedRouteRequest request = GetGatewayAdvertisedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4784,7 +4787,7 @@ public final GatewayAdvertisedRoute getGatewayAdvertisedRoute( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGatewayAdvertisedRoutesPagedResponse listGatewayAdvertisedRoutes( - SpokeName parent) { + @Nullable SpokeName parent) { ListGatewayAdvertisedRoutesRequest request = ListGatewayAdvertisedRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5099,7 +5102,7 @@ public final ListGatewayAdvertisedRoutesPagedResponse listGatewayAdvertisedRoute * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGatewayAdvertisedRouteAsync( - GatewayAdvertisedRouteName name) { + @Nullable GatewayAdvertisedRouteName name) { DeleteGatewayAdvertisedRouteRequest request = DeleteGatewayAdvertisedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5653,7 +5656,8 @@ public static class ListHubsPage extends AbstractPage { private ListHubsPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { super(context, response); } @@ -5663,13 +5667,14 @@ private static ListHubsPage createEmptyPage() { @Override protected ListHubsPage createPage( - PageContext context, ListHubsResponse response) { + @Nullable PageContext context, + @Nullable ListHubsResponse response) { return new ListHubsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5679,7 +5684,7 @@ public static class ListHubsFixedSizeCollection extends AbstractFixedSizeCollection< ListHubsRequest, ListHubsResponse, Hub, ListHubsPage, ListHubsFixedSizeCollection> { - private ListHubsFixedSizeCollection(List pages, int collectionSize) { + private ListHubsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5689,7 +5694,7 @@ private static ListHubsFixedSizeCollection createEmptyCollection() { @Override protected ListHubsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHubsFixedSizeCollection(pages, collectionSize); } } @@ -5722,8 +5727,8 @@ public static class ListHubSpokesPage extends AbstractPage { private ListHubSpokesPage( - PageContext context, - ListHubSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListHubSpokesResponse response) { super(context, response); } @@ -5733,14 +5738,14 @@ private static ListHubSpokesPage createEmptyPage() { @Override protected ListHubSpokesPage createPage( - PageContext context, - ListHubSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListHubSpokesResponse response) { return new ListHubSpokesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5754,7 +5759,8 @@ public static class ListHubSpokesFixedSizeCollection ListHubSpokesPage, ListHubSpokesFixedSizeCollection> { - private ListHubSpokesFixedSizeCollection(List pages, int collectionSize) { + private ListHubSpokesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5764,7 +5770,7 @@ private static ListHubSpokesFixedSizeCollection createEmptyCollection() { @Override protected ListHubSpokesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHubSpokesFixedSizeCollection(pages, collectionSize); } } @@ -5798,8 +5804,9 @@ public static class QueryHubStatusPage QueryHubStatusRequest, QueryHubStatusResponse, HubStatusEntry, QueryHubStatusPage> { private QueryHubStatusPage( - PageContext context, - QueryHubStatusResponse response) { + @Nullable PageContext + context, + @Nullable QueryHubStatusResponse response) { super(context, response); } @@ -5809,14 +5816,16 @@ private static QueryHubStatusPage createEmptyPage() { @Override protected QueryHubStatusPage createPage( - PageContext context, - QueryHubStatusResponse response) { + @Nullable PageContext + context, + @Nullable QueryHubStatusResponse response) { return new QueryHubStatusPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5830,7 +5839,8 @@ public static class QueryHubStatusFixedSizeCollection QueryHubStatusPage, QueryHubStatusFixedSizeCollection> { - private QueryHubStatusFixedSizeCollection(List pages, int collectionSize) { + private QueryHubStatusFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5840,7 +5850,7 @@ private static QueryHubStatusFixedSizeCollection createEmptyCollection() { @Override protected QueryHubStatusFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryHubStatusFixedSizeCollection(pages, collectionSize); } } @@ -5871,8 +5881,8 @@ public static class ListSpokesPage extends AbstractPage { private ListSpokesPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { super(context, response); } @@ -5882,14 +5892,14 @@ private static ListSpokesPage createEmptyPage() { @Override protected ListSpokesPage createPage( - PageContext context, - ListSpokesResponse response) { + @Nullable PageContext context, + @Nullable ListSpokesResponse response) { return new ListSpokesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5903,7 +5913,8 @@ public static class ListSpokesFixedSizeCollection ListSpokesPage, ListSpokesFixedSizeCollection> { - private ListSpokesFixedSizeCollection(List pages, int collectionSize) { + private ListSpokesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5913,7 +5924,7 @@ private static ListSpokesFixedSizeCollection createEmptyCollection() { @Override protected ListSpokesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSpokesFixedSizeCollection(pages, collectionSize); } } @@ -5944,8 +5955,8 @@ public static class ListRoutesPage extends AbstractPage { private ListRoutesPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { super(context, response); } @@ -5955,14 +5966,14 @@ private static ListRoutesPage createEmptyPage() { @Override protected ListRoutesPage createPage( - PageContext context, - ListRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListRoutesResponse response) { return new ListRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5976,7 +5987,8 @@ public static class ListRoutesFixedSizeCollection ListRoutesPage, ListRoutesFixedSizeCollection> { - private ListRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5986,7 +5998,7 @@ private static ListRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoutesFixedSizeCollection(pages, collectionSize); } } @@ -6020,8 +6032,8 @@ public static class ListRouteTablesPage ListRouteTablesRequest, ListRouteTablesResponse, RouteTable, ListRouteTablesPage> { private ListRouteTablesPage( - PageContext context, - ListRouteTablesResponse response) { + @Nullable PageContext context, + @Nullable ListRouteTablesResponse response) { super(context, response); } @@ -6031,14 +6043,14 @@ private static ListRouteTablesPage createEmptyPage() { @Override protected ListRouteTablesPage createPage( - PageContext context, - ListRouteTablesResponse response) { + @Nullable PageContext context, + @Nullable ListRouteTablesResponse response) { return new ListRouteTablesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6053,7 +6065,7 @@ public static class ListRouteTablesFixedSizeCollection ListRouteTablesFixedSizeCollection> { private ListRouteTablesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6063,7 +6075,7 @@ private static ListRouteTablesFixedSizeCollection createEmptyCollection() { @Override protected ListRouteTablesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRouteTablesFixedSizeCollection(pages, collectionSize); } } @@ -6094,8 +6106,8 @@ public static class ListGroupsPage extends AbstractPage { private ListGroupsPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { super(context, response); } @@ -6105,14 +6117,14 @@ private static ListGroupsPage createEmptyPage() { @Override protected ListGroupsPage createPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { return new ListGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6126,7 +6138,8 @@ public static class ListGroupsFixedSizeCollection ListGroupsPage, ListGroupsFixedSizeCollection> { - private ListGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6136,7 +6149,7 @@ private static ListGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupsFixedSizeCollection(pages, collectionSize); } } @@ -6178,12 +6191,13 @@ public static class ListGatewayAdvertisedRoutesPage ListGatewayAdvertisedRoutesPage> { private ListGatewayAdvertisedRoutesPage( - PageContext< + @Nullable + PageContext< ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse, GatewayAdvertisedRoute> context, - ListGatewayAdvertisedRoutesResponse response) { + @Nullable ListGatewayAdvertisedRoutesResponse response) { super(context, response); } @@ -6193,18 +6207,20 @@ private static ListGatewayAdvertisedRoutesPage createEmptyPage() { @Override protected ListGatewayAdvertisedRoutesPage createPage( - PageContext< + @Nullable + PageContext< ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse, GatewayAdvertisedRoute> context, - ListGatewayAdvertisedRoutesResponse response) { + @Nullable ListGatewayAdvertisedRoutesResponse response) { return new ListGatewayAdvertisedRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGatewayAdvertisedRoutesRequest, ListGatewayAdvertisedRoutesResponse, GatewayAdvertisedRoute> @@ -6223,7 +6239,7 @@ public static class ListGatewayAdvertisedRoutesFixedSizeCollection ListGatewayAdvertisedRoutesFixedSizeCollection> { private ListGatewayAdvertisedRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6233,7 +6249,7 @@ private static ListGatewayAdvertisedRoutesFixedSizeCollection createEmptyCollect @Override protected ListGatewayAdvertisedRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewayAdvertisedRoutesFixedSizeCollection(pages, collectionSize); } } @@ -6267,8 +6283,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6278,14 +6294,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6299,7 +6315,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6309,7 +6326,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceSettings.java index 313e0bf0278e..e585fe6c201e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubServiceSettings.java @@ -54,6 +54,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -473,7 +474,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HubServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceClient.java index 68d1cb201848..37ccda3a32e9 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceClient.java @@ -47,6 +47,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. /** @@ -280,7 +281,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PolicyBasedRoutingServiceClient implements BackgroundResource { - private final PolicyBasedRoutingServiceSettings settings; + private final @Nullable PolicyBasedRoutingServiceSettings settings; private final PolicyBasedRoutingServiceStub stub; private final OperationsClient operationsClient; @@ -325,7 +326,7 @@ protected PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final PolicyBasedRoutingServiceSettings getSettings() { + public final @Nullable PolicyBasedRoutingServiceSettings getSettings() { return settings; } @@ -366,7 +367,8 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource's name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(LocationName parent) { + public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( + @Nullable LocationName parent) { ListPolicyBasedRoutesRequest request = ListPolicyBasedRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +545,7 @@ public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( * @param name Required. Name of the PolicyBasedRoute resource to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PolicyBasedRoute getPolicyBasedRoute(PolicyBasedRouteName name) { + public final PolicyBasedRoute getPolicyBasedRoute(@Nullable PolicyBasedRouteName name) { GetPolicyBasedRouteRequest request = GetPolicyBasedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -674,7 +676,7 @@ public final PolicyBasedRoute getPolicyBasedRoute(GetPolicyBasedRouteRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPolicyBasedRouteAsync( - LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { + @Nullable LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { CreatePolicyBasedRouteRequest request = CreatePolicyBasedRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -855,7 +857,7 @@ public final OperationFuture createPolicyBa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePolicyBasedRouteAsync( - PolicyBasedRouteName name) { + @Nullable PolicyBasedRouteName name) { DeletePolicyBasedRouteRequest request = DeletePolicyBasedRouteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1429,9 +1431,11 @@ public static class ListPolicyBasedRoutesPage ListPolicyBasedRoutesPage> { private ListPolicyBasedRoutesPage( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, - ListPolicyBasedRoutesResponse response) { + @Nullable ListPolicyBasedRoutesResponse response) { super(context, response); } @@ -1441,15 +1445,19 @@ private static ListPolicyBasedRoutesPage createEmptyPage() { @Override protected ListPolicyBasedRoutesPage createPage( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, - ListPolicyBasedRoutesResponse response) { + @Nullable ListPolicyBasedRoutesResponse response) { return new ListPolicyBasedRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1465,7 +1473,7 @@ public static class ListPolicyBasedRoutesFixedSizeCollection ListPolicyBasedRoutesFixedSizeCollection> { private ListPolicyBasedRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1475,7 +1483,7 @@ private static ListPolicyBasedRoutesFixedSizeCollection createEmptyCollection() @Override protected ListPolicyBasedRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPolicyBasedRoutesFixedSizeCollection(pages, collectionSize); } } @@ -1509,8 +1517,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1520,14 +1528,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1541,7 +1549,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1551,7 +1560,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceSettings.java index db7e2a1c5a63..d865595b3b54 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRoutingServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -248,7 +249,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyBasedRoutingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerClient.java index d8b324ffb70b..55b3551f8fab 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerClient.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerClient.java @@ -48,6 +48,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. /** @@ -357,7 +358,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TransportManagerClient implements BackgroundResource { - private final TransportManagerSettings settings; + private final @Nullable TransportManagerSettings settings; private final TransportManagerStub stub; private final OperationsClient operationsClient; @@ -400,7 +401,7 @@ protected TransportManagerClient(TransportManagerStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final TransportManagerSettings getSettings() { + public final @Nullable TransportManagerSettings getSettings() { return settings; } @@ -441,7 +442,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRemoteTransportProfilesPagedResponse listRemoteTransportProfiles( - LocationName parent) { + @Nullable LocationName parent) { ListRemoteTransportProfilesRequest request = ListRemoteTransportProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -616,7 +617,8 @@ public final ListRemoteTransportProfilesPagedResponse listRemoteTransportProfile * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RemoteTransportProfile getRemoteTransportProfile(RemoteTransportProfileName name) { + public final RemoteTransportProfile getRemoteTransportProfile( + @Nullable RemoteTransportProfileName name) { GetRemoteTransportProfileRequest request = GetRemoteTransportProfileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -740,7 +742,7 @@ public final RemoteTransportProfile getRemoteTransportProfile( * @param parent Required. Parent value for ListTransportsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTransportsPagedResponse listTransports(LocationName parent) { + public final ListTransportsPagedResponse listTransports(@Nullable LocationName parent) { ListTransportsRequest request = ListTransportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -908,7 +910,7 @@ public final ListTransportsPagedResponse listTransports(ListTransportsRequest re * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Transport getTransport(TransportName name) { + public final Transport getTransport(@Nullable TransportName name) { GetTransportRequest request = GetTransportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTransport(request); @@ -1017,7 +1019,7 @@ public final UnaryCallable getTransportCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetStatusResponse getStatus(TransportName name) { + public final GetStatusResponse getStatus(@Nullable TransportName name) { GetStatusRequest request = GetStatusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStatus(request); @@ -1132,7 +1134,7 @@ public final UnaryCallable getStatusCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTransportAsync( - LocationName parent, Transport transport, String transportId) { + @Nullable LocationName parent, Transport transport, String transportId) { CreateTransportRequest request = CreateTransportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1424,7 +1426,8 @@ public final UnaryCallable updateTransportCal * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTransportAsync(TransportName name) { + public final OperationFuture deleteTransportAsync( + @Nullable TransportName name) { DeleteTransportRequest request = DeleteTransportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTransportAsync(request); @@ -1977,12 +1980,13 @@ public static class ListRemoteTransportProfilesPage ListRemoteTransportProfilesPage> { private ListRemoteTransportProfilesPage( - PageContext< + @Nullable + PageContext< ListRemoteTransportProfilesRequest, ListRemoteTransportProfilesResponse, RemoteTransportProfile> context, - ListRemoteTransportProfilesResponse response) { + @Nullable ListRemoteTransportProfilesResponse response) { super(context, response); } @@ -1992,18 +1996,20 @@ private static ListRemoteTransportProfilesPage createEmptyPage() { @Override protected ListRemoteTransportProfilesPage createPage( - PageContext< + @Nullable + PageContext< ListRemoteTransportProfilesRequest, ListRemoteTransportProfilesResponse, RemoteTransportProfile> context, - ListRemoteTransportProfilesResponse response) { + @Nullable ListRemoteTransportProfilesResponse response) { return new ListRemoteTransportProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRemoteTransportProfilesRequest, ListRemoteTransportProfilesResponse, RemoteTransportProfile> @@ -2022,7 +2028,7 @@ public static class ListRemoteTransportProfilesFixedSizeCollection ListRemoteTransportProfilesFixedSizeCollection> { private ListRemoteTransportProfilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2032,7 +2038,7 @@ private static ListRemoteTransportProfilesFixedSizeCollection createEmptyCollect @Override protected ListRemoteTransportProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRemoteTransportProfilesFixedSizeCollection(pages, collectionSize); } } @@ -2066,8 +2072,8 @@ public static class ListTransportsPage ListTransportsRequest, ListTransportsResponse, Transport, ListTransportsPage> { private ListTransportsPage( - PageContext context, - ListTransportsResponse response) { + @Nullable PageContext context, + @Nullable ListTransportsResponse response) { super(context, response); } @@ -2077,14 +2083,14 @@ private static ListTransportsPage createEmptyPage() { @Override protected ListTransportsPage createPage( - PageContext context, - ListTransportsResponse response) { + @Nullable PageContext context, + @Nullable ListTransportsResponse response) { return new ListTransportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2098,7 +2104,8 @@ public static class ListTransportsFixedSizeCollection ListTransportsPage, ListTransportsFixedSizeCollection> { - private ListTransportsFixedSizeCollection(List pages, int collectionSize) { + private ListTransportsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2108,7 +2115,7 @@ private static ListTransportsFixedSizeCollection createEmptyCollection() { @Override protected ListTransportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransportsFixedSizeCollection(pages, collectionSize); } } @@ -2142,8 +2149,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2153,14 +2160,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2174,7 +2181,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2184,7 +2192,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerSettings.java index ee5a62a0514d..e38afaefd0ae 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportManagerSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TransportManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStub.java index d753c7c479ac..1f898475df1b 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,7 +71,7 @@ @Generated("by gapic-generator-java") public abstract class DataTransferServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStubSettings.java index acc5e4466d00..c576e1cc694b 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/DataTransferServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -724,7 +725,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -895,7 +896,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMulticloudDataTransferConfigsSettings = diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStub.java index 0736a104f6a4..3aa5bd50008e 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStub.java @@ -91,6 +91,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -103,7 +104,7 @@ @Generated("by gapic-generator-java") public abstract class HubServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStubSettings.java index 1faac583501f..9d6f2afc37d1 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/HubServiceStubSettings.java @@ -122,6 +122,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1127,7 +1128,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1352,7 +1353,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listHubsSettings = PagedCallSettings.newBuilder(LIST_HUBS_PAGE_STR_FACT); diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStub.java index 912522a6646d..7f18f6e10071 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,7 +57,7 @@ @Generated("by gapic-generator-java") public abstract class PolicyBasedRoutingServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStubSettings.java index d003dea4ccd6..e0874b3eac66 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/PolicyBasedRoutingServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -437,7 +438,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -547,7 +548,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPolicyBasedRoutesSettings = diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStub.java index c9facd1daf48..9b5dddb14b38 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,7 +65,7 @@ @Generated("by gapic-generator-java") public abstract class TransportManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStubSettings.java index ee9307a0f6a5..255fd9ef9a2d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStubSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/TransportManagerStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -539,7 +540,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -662,7 +663,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRemoteTransportProfilesSettings = diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java index 12d4ac72769a..1c0c3be87dd3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DestinationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -101,7 +102,7 @@ public static String format( .toString(); } - public static DestinationName parse(String formattedString) { + public static @Nullable DestinationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DestinationName> values) { List list = new ArrayList<>(values.size()); for (DestinationName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupName.java index aae2e6233773..6dc26a7950ae 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String hub, String group) { return newBuilder().setProject(project).setHub(hub).setGroup(group).build().toString(); } - public static GroupName parse(String formattedString) { + public static @Nullable GroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroupName> values) { List list = new ArrayList<>(values.size()); for (GroupName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java index 77ac7264cc1a..7b127f350b7b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String hub) { return newBuilder().setProject(project).setHub(hub).build().toString(); } - public static HubName parse(String formattedString) { + public static @Nullable HubName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HubName> values) { List list = new ArrayList<>(values.size()); for (HubName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubRouteName.java index 01a52579bc34..6302c909f91e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubRouteName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String hub, String routeTable, Strin .toString(); } - public static HubRouteName parse(String formattedString) { + public static @Nullable HubRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HubRouteName> values) { List list = new ArrayList<>(values.size()); for (HubRouteName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeName.java index a9275c230460..fa6975df67d0 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/InternalRangeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String internalRang .toString(); } - public static InternalRangeName parse(String formattedString) { + public static @Nullable InternalRangeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InternalRangeName> values) { List list = new ArrayList<>(values.size()); for (InternalRangeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java index 3de0ce9d5ad3..373f64f878d6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java index 37b135fc1794..f9a182c7b7e0 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static MulticloudDataTransferConfigName parse(String formattedString) { + public static @Nullable MulticloudDataTransferConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MulticloudDataTransferConfigName> values) { List list = new ArrayList<>(values.size()); for (MulticloudDataTransferConfigName value : values) { if (value == null) { @@ -168,7 +169,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java index 6abbfe322331..e2447d77ecb8 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/MulticloudDataTransferSupportedServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static MulticloudDataTransferSupportedServiceName parse(String formattedString) { + public static @Nullable MulticloudDataTransferSupportedServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -117,7 +118,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable MulticloudDataTransferSupportedServiceName> values) { List list = new ArrayList<>(values.size()); for (MulticloudDataTransferSupportedServiceName value : values) { if (value == null) { @@ -173,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java index bc060fd7abea..810a29657d06 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String project, String policyBasedRoute) { .toString(); } - public static PolicyBasedRouteName parse(String formattedString) { + public static @Nullable PolicyBasedRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyBasedRouteName> values) { List list = new ArrayList<>(values.size()); for (PolicyBasedRouteName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteTableName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteTableName.java index 48ee26349659..fde9370b2927 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteTableName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouteTableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String hub, String routeTable) { .toString(); } - public static RouteTableName parse(String formattedString) { + public static @Nullable RouteTableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RouteTableName> values) { List list = new ArrayList<>(values.size()); for (RouteTableName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceClassName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceClassName.java index b8578072479d..426dfa3a67e7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceClassName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceClassName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String serviceClass .toString(); } - public static ServiceClassName parse(String formattedString) { + public static @Nullable ServiceClassName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceClassName> values) { List list = new ArrayList<>(values.size()); for (ServiceClassName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionMapName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionMapName.java index abb677bac660..7c6019833125 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionMapName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionMapName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String serviceConne .toString(); } - public static ServiceConnectionMapName parse(String formattedString) { + public static @Nullable ServiceConnectionMapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceConnectionMapName> values) { List list = new ArrayList<>(values.size()); for (ServiceConnectionMapName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionPolicyName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionPolicyName.java index 444923db0344..f0193037337f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionPolicyName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String serviceConne .toString(); } - public static ServiceConnectionPolicyName parse(String formattedString) { + public static @Nullable ServiceConnectionPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceConnectionPolicyName> values) { List list = new ArrayList<>(values.size()); for (ServiceConnectionPolicyName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionTokenName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionTokenName.java index 31e45173b55f..b0296d96b201 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionTokenName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ServiceConnectionTokenName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String serviceConne .toString(); } - public static ServiceConnectionTokenName parse(String formattedString) { + public static @Nullable ServiceConnectionTokenName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceConnectionTokenName> values) { List list = new ArrayList<>(values.size()); for (ServiceConnectionTokenName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java index 97aa8d20b4e6..b24060d61356 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String spoke) { .toString(); } - public static SpokeName parse(String formattedString) { + public static @Nullable SpokeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpokeName> values) { List list = new ArrayList<>(values.size()); for (SpokeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java index af92dcaa7627..fe3f8d935b74 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String hub) { return newBuilder().setProject(project).setHub(hub).build().toString(); } - public static HubName parse(String formattedString) { + public static @Nullable HubName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HubName> values) { List list = new ArrayList<>(values.size()); for (HubName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java index 0b769c77933e..64119007bbcf 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java index 2f4e011fb013..e099be26090d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String spoke) { .toString(); } - public static SpokeName parse(String formattedString) { + public static @Nullable SpokeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpokeName> values) { List list = new ArrayList<>(values.size()); for (SpokeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/DestinationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/DestinationName.java index cc22d86489ae..f5a52729a3d8 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/DestinationName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/DestinationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -101,7 +102,7 @@ public static String format( .toString(); } - public static DestinationName parse(String formattedString) { + public static @Nullable DestinationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DestinationName> values) { List list = new ArrayList<>(values.size()); for (DestinationName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GatewayAdvertisedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GatewayAdvertisedRouteName.java index 9eb55b6eee17..373590b12b87 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GatewayAdvertisedRouteName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GatewayAdvertisedRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GatewayAdvertisedRouteName parse(String formattedString) { + public static @Nullable GatewayAdvertisedRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewayAdvertisedRouteName> values) { List list = new ArrayList<>(values.size()); for (GatewayAdvertisedRouteName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GroupName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GroupName.java index 8a5d3391b161..437651f7859d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GroupName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/GroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String hub, String group) { return newBuilder().setProject(project).setHub(hub).setGroup(group).build().toString(); } - public static GroupName parse(String formattedString) { + public static @Nullable GroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroupName> values) { List list = new ArrayList<>(values.size()); for (GroupName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubName.java index e45c9203880e..36f6a2034b17 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String hub) { return newBuilder().setProject(project).setHub(hub).build().toString(); } - public static HubName parse(String formattedString) { + public static @Nullable HubName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HubName> values) { List list = new ArrayList<>(values.size()); for (HubName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubRouteName.java index 8ae5f05a443b..d848f5a786b6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubRouteName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/HubRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String hub, String routeTable, Strin .toString(); } - public static HubRouteName parse(String formattedString) { + public static @Nullable HubRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HubRouteName> values) { List list = new ArrayList<>(values.size()); for (HubRouteName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/LocationName.java index a9615f1d8558..50ba1ef932ce 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/LocationName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferConfigName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferConfigName.java index e91828fc32fd..73af945f8a54 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferConfigName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static MulticloudDataTransferConfigName parse(String formattedString) { + public static @Nullable MulticloudDataTransferConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MulticloudDataTransferConfigName> values) { List list = new ArrayList<>(values.size()); for (MulticloudDataTransferConfigName value : values) { if (value == null) { @@ -168,7 +169,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferSupportedServiceName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferSupportedServiceName.java index 86a652b963bc..2e56235e39b7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferSupportedServiceName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/MulticloudDataTransferSupportedServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static MulticloudDataTransferSupportedServiceName parse(String formattedString) { + public static @Nullable MulticloudDataTransferSupportedServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -117,7 +118,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable MulticloudDataTransferSupportedServiceName> values) { List list = new ArrayList<>(values.size()); for (MulticloudDataTransferSupportedServiceName value : values) { if (value == null) { @@ -173,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRouteName.java index 9d5c1a411915..2555692f3d54 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRouteName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/PolicyBasedRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String project, String policyBasedRoute) { .toString(); } - public static PolicyBasedRouteName parse(String formattedString) { + public static @Nullable PolicyBasedRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyBasedRouteName> values) { List list = new ArrayList<>(values.size()); for (PolicyBasedRouteName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RemoteTransportProfileName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RemoteTransportProfileName.java index 8119243cfcb3..8b10e606f9af 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RemoteTransportProfileName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RemoteTransportProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String remoteTransp .toString(); } - public static RemoteTransportProfileName parse(String formattedString) { + public static @Nullable RemoteTransportProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RemoteTransportProfileName> values) { List list = new ArrayList<>(values.size()); for (RemoteTransportProfileName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RouteTableName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RouteTableName.java index 4cade4a875af..9b352f351cfe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RouteTableName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/RouteTableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String hub, String routeTable) { .toString(); } - public static RouteTableName parse(String formattedString) { + public static @Nullable RouteTableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RouteTableName> values) { List list = new ArrayList<>(values.size()); for (RouteTableName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/SpokeName.java index 4d8058c0ff39..10d29d9c48e1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/SpokeName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/SpokeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String spoke) { .toString(); } - public static SpokeName parse(String formattedString) { + public static @Nullable SpokeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpokeName> values) { List list = new ArrayList<>(values.size()); for (SpokeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportName.java index 36ea4f1d6bc1..4b323cdb5549 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportName.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/src/main/java/com/google/cloud/networkconnectivity/v1beta/TransportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String transport) { .toString(); } - public static TransportName parse(String formattedString) { + public static @Nullable TransportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TransportName> values) { List list = new ArrayList<>(values.size()); for (TransportName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java index c8ad910f121d..b9beb7a6f0bc 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceClient.java @@ -48,6 +48,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. /** @@ -601,7 +602,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DepServiceClient implements BackgroundResource { - private final DepServiceSettings settings; + private final @Nullable DepServiceSettings settings; private final DepServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -647,7 +648,7 @@ protected DepServiceClient(DepServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DepServiceSettings getSettings() { + public final @Nullable DepServiceSettings getSettings() { return settings; } @@ -698,7 +699,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLbTrafficExtensionsPagedResponse listLbTrafficExtensions(LocationName parent) { + public final ListLbTrafficExtensionsPagedResponse listLbTrafficExtensions( + @Nullable LocationName parent) { ListLbTrafficExtensionsRequest request = ListLbTrafficExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -874,7 +876,7 @@ public final ListLbTrafficExtensionsPagedResponse listLbTrafficExtensions( * `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LbTrafficExtension getLbTrafficExtension(LbTrafficExtensionName name) { + public final LbTrafficExtension getLbTrafficExtension(@Nullable LbTrafficExtensionName name) { GetLbTrafficExtensionRequest request = GetLbTrafficExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1003,7 +1005,9 @@ public final LbTrafficExtension getLbTrafficExtension(GetLbTrafficExtensionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLbTrafficExtensionAsync( - LocationName parent, LbTrafficExtension lbTrafficExtension, String lbTrafficExtensionId) { + @Nullable LocationName parent, + LbTrafficExtension lbTrafficExtension, + String lbTrafficExtensionId) { CreateLbTrafficExtensionRequest request = CreateLbTrafficExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1307,7 +1311,7 @@ public final OperationFuture updateLbTraf * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLbTrafficExtensionAsync( - LbTrafficExtensionName name) { + @Nullable LbTrafficExtensionName name) { DeleteLbTrafficExtensionRequest request = DeleteLbTrafficExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1467,7 +1471,8 @@ public final OperationFuture deleteLbTrafficExtensionA * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLbRouteExtensionsPagedResponse listLbRouteExtensions(LocationName parent) { + public final ListLbRouteExtensionsPagedResponse listLbRouteExtensions( + @Nullable LocationName parent) { ListLbRouteExtensionsRequest request = ListLbRouteExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1642,7 +1647,7 @@ public final ListLbRouteExtensionsPagedResponse listLbRouteExtensions( * `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LbRouteExtension getLbRouteExtension(LbRouteExtensionName name) { + public final LbRouteExtension getLbRouteExtension(@Nullable LbRouteExtensionName name) { GetLbRouteExtensionRequest request = GetLbRouteExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1771,7 +1776,7 @@ public final LbRouteExtension getLbRouteExtension(GetLbRouteExtensionRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLbRouteExtensionAsync( - LocationName parent, LbRouteExtension lbRouteExtension, String lbRouteExtensionId) { + @Nullable LocationName parent, LbRouteExtension lbRouteExtension, String lbRouteExtensionId) { CreateLbRouteExtensionRequest request = CreateLbRouteExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2072,7 +2077,7 @@ public final OperationFuture updateLbRouteE * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLbRouteExtensionAsync( - LbRouteExtensionName name) { + @Nullable LbRouteExtensionName name) { DeleteLbRouteExtensionRequest request = DeleteLbRouteExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2230,7 +2235,8 @@ public final OperationFuture deleteLbRouteExtensionAsy * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions(LocationName parent) { + public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions( + @Nullable LocationName parent) { ListLbEdgeExtensionsRequest request = ListLbEdgeExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2404,7 +2410,7 @@ public final ListLbEdgeExtensionsPagedResponse listLbEdgeExtensions( * `projects/{project}/locations/{location}/lbEdgeExtensions/{lb_edge_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LbEdgeExtension getLbEdgeExtension(LbEdgeExtensionName name) { + public final LbEdgeExtension getLbEdgeExtension(@Nullable LbEdgeExtensionName name) { GetLbEdgeExtensionRequest request = GetLbEdgeExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2533,7 +2539,7 @@ public final LbEdgeExtension getLbEdgeExtension(GetLbEdgeExtensionRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLbEdgeExtensionAsync( - LocationName parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) { + @Nullable LocationName parent, LbEdgeExtension lbEdgeExtension, String lbEdgeExtensionId) { CreateLbEdgeExtensionRequest request = CreateLbEdgeExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2834,7 +2840,7 @@ public final OperationFuture updateLbEdgeExt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLbEdgeExtensionAsync( - LbEdgeExtensionName name) { + @Nullable LbEdgeExtensionName name) { DeleteLbEdgeExtensionRequest request = DeleteLbEdgeExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2992,7 +2998,7 @@ public final OperationFuture deleteLbEdgeExtensionAsyn * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAuthzExtensionsPagedResponse listAuthzExtensions(LocationName parent) { + public final ListAuthzExtensionsPagedResponse listAuthzExtensions(@Nullable LocationName parent) { ListAuthzExtensionsRequest request = ListAuthzExtensionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3166,7 +3172,7 @@ public final ListAuthzExtensionsPagedResponse listAuthzExtensions( * `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuthzExtension getAuthzExtension(AuthzExtensionName name) { + public final AuthzExtension getAuthzExtension(@Nullable AuthzExtensionName name) { GetAuthzExtensionRequest request = GetAuthzExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3291,7 +3297,7 @@ public final UnaryCallable getAuthzExt * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAuthzExtensionAsync( - LocationName parent, AuthzExtension authzExtension, String authzExtensionId) { + @Nullable LocationName parent, AuthzExtension authzExtension, String authzExtensionId) { CreateAuthzExtensionRequest request = CreateAuthzExtensionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3592,7 +3598,7 @@ public final OperationFuture updateAuthzExten * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAuthzExtensionAsync( - AuthzExtensionName name) { + @Nullable AuthzExtensionName name) { DeleteAuthzExtensionRequest request = DeleteAuthzExtensionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4138,10 +4144,11 @@ public static class ListLbTrafficExtensionsPage ListLbTrafficExtensionsPage> { private ListLbTrafficExtensionsPage( - PageContext< + @Nullable + PageContext< ListLbTrafficExtensionsRequest, ListLbTrafficExtensionsResponse, LbTrafficExtension> context, - ListLbTrafficExtensionsResponse response) { + @Nullable ListLbTrafficExtensionsResponse response) { super(context, response); } @@ -4151,16 +4158,18 @@ private static ListLbTrafficExtensionsPage createEmptyPage() { @Override protected ListLbTrafficExtensionsPage createPage( - PageContext< + @Nullable + PageContext< ListLbTrafficExtensionsRequest, ListLbTrafficExtensionsResponse, LbTrafficExtension> context, - ListLbTrafficExtensionsResponse response) { + @Nullable ListLbTrafficExtensionsResponse response) { return new ListLbTrafficExtensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListLbTrafficExtensionsRequest, ListLbTrafficExtensionsResponse, LbTrafficExtension> context, ApiFuture futureResponse) { @@ -4177,7 +4186,7 @@ public static class ListLbTrafficExtensionsFixedSizeCollection ListLbTrafficExtensionsFixedSizeCollection> { private ListLbTrafficExtensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4187,7 +4196,7 @@ private static ListLbTrafficExtensionsFixedSizeCollection createEmptyCollection( @Override protected ListLbTrafficExtensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLbTrafficExtensionsFixedSizeCollection(pages, collectionSize); } } @@ -4225,9 +4234,11 @@ public static class ListLbRouteExtensionsPage ListLbRouteExtensionsPage> { private ListLbRouteExtensionsPage( - PageContext + @Nullable + PageContext< + ListLbRouteExtensionsRequest, ListLbRouteExtensionsResponse, LbRouteExtension> context, - ListLbRouteExtensionsResponse response) { + @Nullable ListLbRouteExtensionsResponse response) { super(context, response); } @@ -4237,15 +4248,19 @@ private static ListLbRouteExtensionsPage createEmptyPage() { @Override protected ListLbRouteExtensionsPage createPage( - PageContext + @Nullable + PageContext< + ListLbRouteExtensionsRequest, ListLbRouteExtensionsResponse, LbRouteExtension> context, - ListLbRouteExtensionsResponse response) { + @Nullable ListLbRouteExtensionsResponse response) { return new ListLbRouteExtensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListLbRouteExtensionsRequest, ListLbRouteExtensionsResponse, LbRouteExtension> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4261,7 +4276,7 @@ public static class ListLbRouteExtensionsFixedSizeCollection ListLbRouteExtensionsFixedSizeCollection> { private ListLbRouteExtensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4271,7 +4286,7 @@ private static ListLbRouteExtensionsFixedSizeCollection createEmptyCollection() @Override protected ListLbRouteExtensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLbRouteExtensionsFixedSizeCollection(pages, collectionSize); } } @@ -4309,9 +4324,10 @@ public static class ListLbEdgeExtensionsPage ListLbEdgeExtensionsPage> { private ListLbEdgeExtensionsPage( - PageContext + @Nullable + PageContext context, - ListLbEdgeExtensionsResponse response) { + @Nullable ListLbEdgeExtensionsResponse response) { super(context, response); } @@ -4321,15 +4337,17 @@ private static ListLbEdgeExtensionsPage createEmptyPage() { @Override protected ListLbEdgeExtensionsPage createPage( - PageContext + @Nullable + PageContext context, - ListLbEdgeExtensionsResponse response) { + @Nullable ListLbEdgeExtensionsResponse response) { return new ListLbEdgeExtensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4345,7 +4363,7 @@ public static class ListLbEdgeExtensionsFixedSizeCollection ListLbEdgeExtensionsFixedSizeCollection> { private ListLbEdgeExtensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4355,7 +4373,7 @@ private static ListLbEdgeExtensionsFixedSizeCollection createEmptyCollection() { @Override protected ListLbEdgeExtensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLbEdgeExtensionsFixedSizeCollection(pages, collectionSize); } } @@ -4393,9 +4411,10 @@ public static class ListAuthzExtensionsPage ListAuthzExtensionsPage> { private ListAuthzExtensionsPage( - PageContext + @Nullable + PageContext context, - ListAuthzExtensionsResponse response) { + @Nullable ListAuthzExtensionsResponse response) { super(context, response); } @@ -4405,15 +4424,17 @@ private static ListAuthzExtensionsPage createEmptyPage() { @Override protected ListAuthzExtensionsPage createPage( - PageContext + @Nullable + PageContext context, - ListAuthzExtensionsResponse response) { + @Nullable ListAuthzExtensionsResponse response) { return new ListAuthzExtensionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4429,7 +4450,7 @@ public static class ListAuthzExtensionsFixedSizeCollection ListAuthzExtensionsFixedSizeCollection> { private ListAuthzExtensionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4439,7 +4460,7 @@ private static ListAuthzExtensionsFixedSizeCollection createEmptyCollection() { @Override protected ListAuthzExtensionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAuthzExtensionsFixedSizeCollection(pages, collectionSize); } } @@ -4473,8 +4494,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4484,14 +4505,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4505,7 +4526,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4515,7 +4537,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java index 209944ea4e81..ab5237b26874 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/DepServiceSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -413,7 +414,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); } @@ -433,7 +434,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DepServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java index 0c7003613a25..a19eb66fb431 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java @@ -48,6 +48,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. /** @@ -1449,7 +1450,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NetworkServicesClient implements BackgroundResource { - private final NetworkServicesSettings settings; + private final @Nullable NetworkServicesSettings settings; private final NetworkServicesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1497,7 +1498,7 @@ protected NetworkServicesClient(NetworkServicesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final NetworkServicesSettings getSettings() { + public final @Nullable NetworkServicesSettings getSettings() { return settings; } @@ -1547,7 +1548,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointPoliciesPagedResponse listEndpointPolicies(LocationName parent) { + public final ListEndpointPoliciesPagedResponse listEndpointPolicies( + @Nullable LocationName parent) { ListEndpointPoliciesRequest request = ListEndpointPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1719,7 +1721,7 @@ public final ListEndpointPoliciesPagedResponse listEndpointPolicies( * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EndpointPolicy getEndpointPolicy(EndpointPolicyName name) { + public final EndpointPolicy getEndpointPolicy(@Nullable EndpointPolicyName name) { GetEndpointPolicyRequest request = GetEndpointPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1844,7 +1846,7 @@ public final UnaryCallable getEndpoint * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEndpointPolicyAsync( - LocationName parent, EndpointPolicy endpointPolicy, String endpointPolicyId) { + @Nullable LocationName parent, EndpointPolicy endpointPolicy, String endpointPolicyId) { CreateEndpointPolicyRequest request = CreateEndpointPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2139,7 +2141,7 @@ public final OperationFuture updateEndpointPo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointPolicyAsync( - EndpointPolicyName name) { + @Nullable EndpointPolicyName name) { DeleteEndpointPolicyRequest request = DeleteEndpointPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2292,7 +2294,8 @@ public final OperationFuture deleteEndpointPolicyAsync * `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWasmPluginVersionsPagedResponse listWasmPluginVersions(WasmPluginName parent) { + public final ListWasmPluginVersionsPagedResponse listWasmPluginVersions( + @Nullable WasmPluginName parent) { ListWasmPluginVersionsRequest request = ListWasmPluginVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2463,7 +2466,7 @@ public final ListWasmPluginVersionsPagedResponse listWasmPluginVersions( * `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WasmPluginVersion getWasmPluginVersion(WasmPluginVersionName name) { + public final WasmPluginVersion getWasmPluginVersion(@Nullable WasmPluginVersionName name) { GetWasmPluginVersionRequest request = GetWasmPluginVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2596,7 +2599,9 @@ public final WasmPluginVersion getWasmPluginVersion(GetWasmPluginVersionRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWasmPluginVersionAsync( - WasmPluginName parent, WasmPluginVersion wasmPluginVersion, String wasmPluginVersionId) { + @Nullable WasmPluginName parent, + WasmPluginVersion wasmPluginVersion, + String wasmPluginVersionId) { CreateWasmPluginVersionRequest request = CreateWasmPluginVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2768,7 +2773,7 @@ public final OperationFuture createWasmPlu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWasmPluginVersionAsync( - WasmPluginVersionName name) { + @Nullable WasmPluginVersionName name) { DeleteWasmPluginVersionRequest request = DeleteWasmPluginVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2928,7 +2933,7 @@ public final OperationFuture deleteWasmPluginVersionAs * listed, specified in the following format: `projects/{project}/locations/global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWasmPluginsPagedResponse listWasmPlugins(LocationName parent) { + public final ListWasmPluginsPagedResponse listWasmPlugins(@Nullable LocationName parent) { ListWasmPluginsRequest request = ListWasmPluginsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3092,7 +3097,7 @@ public final ListWasmPluginsPagedResponse listWasmPlugins(ListWasmPluginsRequest * `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WasmPlugin getWasmPlugin(WasmPluginName name) { + public final WasmPlugin getWasmPlugin(@Nullable WasmPluginName name) { GetWasmPluginRequest request = GetWasmPluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWasmPlugin(request); @@ -3211,7 +3216,7 @@ public final UnaryCallable getWasmPluginCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWasmPluginAsync( - LocationName parent, WasmPlugin wasmPlugin, String wasmPluginId) { + @Nullable LocationName parent, WasmPlugin wasmPlugin, String wasmPluginId) { CreateWasmPluginRequest request = CreateWasmPluginRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3503,7 +3508,7 @@ public final UnaryCallable updateWasmPluginC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWasmPluginAsync( - WasmPluginName name) { + @Nullable WasmPluginName name) { DeleteWasmPluginRequest request = DeleteWasmPluginRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWasmPluginAsync(request); @@ -3646,7 +3651,7 @@ public final UnaryCallable deleteWasmPluginC * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGatewaysPagedResponse listGateways(LocationName parent) { + public final ListGatewaysPagedResponse listGateways(@Nullable LocationName parent) { ListGatewaysRequest request = ListGatewaysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3808,7 +3813,7 @@ public final UnaryCallable listGatewa * `projects/*/locations/*/gateways/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Gateway getGateway(GatewayName name) { + public final Gateway getGateway(@Nullable GatewayName name) { GetGatewayRequest request = GetGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGateway(request); @@ -3923,7 +3928,7 @@ public final UnaryCallable getGatewayCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGatewayAsync( - LocationName parent, Gateway gateway, String gatewayId) { + @Nullable LocationName parent, Gateway gateway, String gatewayId) { CreateGatewayRequest request = CreateGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4206,7 +4211,8 @@ public final UnaryCallable updateGatewayCallabl * `projects/*/locations/*/gateways/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGatewayAsync(GatewayName name) { + public final OperationFuture deleteGatewayAsync( + @Nullable GatewayName name) { DeleteGatewayRequest request = DeleteGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGatewayAsync(request); @@ -4349,7 +4355,7 @@ public final UnaryCallable deleteGatewayCallabl * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGrpcRoutesPagedResponse listGrpcRoutes(LocationName parent) { + public final ListGrpcRoutesPagedResponse listGrpcRoutes(@Nullable LocationName parent) { ListGrpcRoutesRequest request = ListGrpcRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4516,7 +4522,7 @@ public final ListGrpcRoutesPagedResponse listGrpcRoutes(ListGrpcRoutesRequest re * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GrpcRoute getGrpcRoute(GrpcRouteName name) { + public final GrpcRoute getGrpcRoute(@Nullable GrpcRouteName name) { GetGrpcRouteRequest request = GetGrpcRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGrpcRoute(request); @@ -4633,7 +4639,7 @@ public final UnaryCallable getGrpcRouteCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGrpcRouteAsync( - LocationName parent, GrpcRoute grpcRoute, String grpcRouteId) { + @Nullable LocationName parent, GrpcRoute grpcRoute, String grpcRouteId) { CreateGrpcRouteRequest request = CreateGrpcRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4920,7 +4926,8 @@ public final UnaryCallable updateGrpcRouteCal * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGrpcRouteAsync(GrpcRouteName name) { + public final OperationFuture deleteGrpcRouteAsync( + @Nullable GrpcRouteName name) { DeleteGrpcRouteRequest request = DeleteGrpcRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGrpcRouteAsync(request); @@ -5063,7 +5070,7 @@ public final UnaryCallable deleteGrpcRouteCal * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHttpRoutesPagedResponse listHttpRoutes(LocationName parent) { + public final ListHttpRoutesPagedResponse listHttpRoutes(@Nullable LocationName parent) { ListHttpRoutesRequest request = ListHttpRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5233,7 +5240,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HttpRoute getHttpRoute(HttpRouteName name) { + public final HttpRoute getHttpRoute(@Nullable HttpRouteName name) { GetHttpRouteRequest request = GetHttpRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHttpRoute(request); @@ -5350,7 +5357,7 @@ public final UnaryCallable getHttpRouteCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHttpRouteAsync( - LocationName parent, HttpRoute httpRoute, String httpRouteId) { + @Nullable LocationName parent, HttpRoute httpRoute, String httpRouteId) { CreateHttpRouteRequest request = CreateHttpRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5640,7 +5647,8 @@ public final UnaryCallable updateHttpRouteCal * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHttpRouteAsync(HttpRouteName name) { + public final OperationFuture deleteHttpRouteAsync( + @Nullable HttpRouteName name) { DeleteHttpRouteRequest request = DeleteHttpRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHttpRouteAsync(request); @@ -5783,7 +5791,7 @@ public final UnaryCallable deleteHttpRouteCal * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTcpRoutesPagedResponse listTcpRoutes(LocationName parent) { + public final ListTcpRoutesPagedResponse listTcpRoutes(@Nullable LocationName parent) { ListTcpRoutesRequest request = ListTcpRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5949,7 +5957,7 @@ public final UnaryCallable listTcpR * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TcpRoute getTcpRoute(TcpRouteName name) { + public final TcpRoute getTcpRoute(@Nullable TcpRouteName name) { GetTcpRouteRequest request = GetTcpRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTcpRoute(request); @@ -6065,7 +6073,7 @@ public final UnaryCallable getTcpRouteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTcpRouteAsync( - LocationName parent, TcpRoute tcpRoute, String tcpRouteId) { + @Nullable LocationName parent, TcpRoute tcpRoute, String tcpRouteId) { CreateTcpRouteRequest request = CreateTcpRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6349,7 +6357,8 @@ public final UnaryCallable updateTcpRouteCalla * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTcpRouteAsync(TcpRouteName name) { + public final OperationFuture deleteTcpRouteAsync( + @Nullable TcpRouteName name) { DeleteTcpRouteRequest request = DeleteTcpRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTcpRouteAsync(request); @@ -6492,7 +6501,7 @@ public final UnaryCallable deleteTcpRouteCalla * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTlsRoutesPagedResponse listTlsRoutes(LocationName parent) { + public final ListTlsRoutesPagedResponse listTlsRoutes(@Nullable LocationName parent) { ListTlsRoutesRequest request = ListTlsRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6658,7 +6667,7 @@ public final UnaryCallable listTlsR * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TlsRoute getTlsRoute(TlsRouteName name) { + public final TlsRoute getTlsRoute(@Nullable TlsRouteName name) { GetTlsRouteRequest request = GetTlsRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTlsRoute(request); @@ -6774,7 +6783,7 @@ public final UnaryCallable getTlsRouteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTlsRouteAsync( - LocationName parent, TlsRoute tlsRoute, String tlsRouteId) { + @Nullable LocationName parent, TlsRoute tlsRoute, String tlsRouteId) { CreateTlsRouteRequest request = CreateTlsRouteRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7058,7 +7067,8 @@ public final UnaryCallable updateTlsRouteCalla * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTlsRouteAsync(TlsRouteName name) { + public final OperationFuture deleteTlsRouteAsync( + @Nullable TlsRouteName name) { DeleteTlsRouteRequest request = DeleteTlsRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTlsRouteAsync(request); @@ -7202,7 +7212,7 @@ public final UnaryCallable deleteTlsRouteCalla * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServiceBindingsPagedResponse listServiceBindings(LocationName parent) { + public final ListServiceBindingsPagedResponse listServiceBindings(@Nullable LocationName parent) { ListServiceBindingsRequest request = ListServiceBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7371,7 +7381,7 @@ public final ListServiceBindingsPagedResponse listServiceBindings( * `projects/*/locations/*/serviceBindings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceBinding getServiceBinding(ServiceBindingName name) { + public final ServiceBinding getServiceBinding(@Nullable ServiceBindingName name) { GetServiceBindingRequest request = GetServiceBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7495,7 +7505,7 @@ public final UnaryCallable getServiceB * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceBindingAsync( - LocationName parent, ServiceBinding serviceBinding, String serviceBindingId) { + @Nullable LocationName parent, ServiceBinding serviceBinding, String serviceBindingId) { CreateServiceBindingRequest request = CreateServiceBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7789,7 +7799,7 @@ public final OperationFuture updateServiceBin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceBindingAsync( - ServiceBindingName name) { + @Nullable ServiceBindingName name) { DeleteServiceBindingRequest request = DeleteServiceBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7940,7 +7950,7 @@ public final OperationFuture deleteServiceBindingAsync * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMeshesPagedResponse listMeshes(LocationName parent) { + public final ListMeshesPagedResponse listMeshes(@Nullable LocationName parent) { ListMeshesRequest request = ListMeshesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listMeshes(request); @@ -8101,7 +8111,7 @@ public final UnaryCallable listMeshesCall * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Mesh getMesh(MeshName name) { + public final Mesh getMesh(@Nullable MeshName name) { GetMeshRequest request = GetMeshRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMesh(request); @@ -8216,7 +8226,7 @@ public final UnaryCallable getMeshCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMeshAsync( - LocationName parent, Mesh mesh, String meshId) { + @Nullable LocationName parent, Mesh mesh, String meshId) { CreateMeshRequest request = CreateMeshRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8491,7 +8501,7 @@ public final UnaryCallable updateMeshCallable() { * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteMeshAsync(MeshName name) { + public final OperationFuture deleteMeshAsync(@Nullable MeshName name) { DeleteMeshRequest request = DeleteMeshRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteMeshAsync(request); @@ -8634,7 +8644,8 @@ public final UnaryCallable deleteMeshCallable() { * listed, specified in the format `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServiceLbPoliciesPagedResponse listServiceLbPolicies(LocationName parent) { + public final ListServiceLbPoliciesPagedResponse listServiceLbPolicies( + @Nullable LocationName parent) { ListServiceLbPoliciesRequest request = ListServiceLbPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8803,7 +8814,7 @@ public final ListServiceLbPoliciesPagedResponse listServiceLbPolicies( * `projects/{project}/locations/{location}/serviceLbPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceLbPolicy getServiceLbPolicy(ServiceLbPolicyName name) { + public final ServiceLbPolicy getServiceLbPolicy(@Nullable ServiceLbPolicyName name) { GetServiceLbPolicyRequest request = GetServiceLbPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8934,7 +8945,7 @@ public final ServiceLbPolicy getServiceLbPolicy(GetServiceLbPolicyRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceLbPolicyAsync( - LocationName parent, ServiceLbPolicy serviceLbPolicy, String serviceLbPolicyId) { + @Nullable LocationName parent, ServiceLbPolicy serviceLbPolicy, String serviceLbPolicyId) { CreateServiceLbPolicyRequest request = CreateServiceLbPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9231,7 +9242,7 @@ public final OperationFuture updateServiceLb * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceLbPolicyAsync( - ServiceLbPolicyName name) { + @Nullable ServiceLbPolicyName name) { DeleteServiceLbPolicyRequest request = DeleteServiceLbPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9384,7 +9395,7 @@ public final OperationFuture deleteServiceLbPolicyAsyn * projects/{project}/locations/{location}/gateways/{gateway}/routeViews/{route_view} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GatewayRouteView getGatewayRouteView(GatewayRouteViewName name) { + public final GatewayRouteView getGatewayRouteView(@Nullable GatewayRouteViewName name) { GetGatewayRouteViewRequest request = GetGatewayRouteViewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9506,7 +9517,7 @@ public final GatewayRouteView getGatewayRouteView(GetGatewayRouteViewRequest req * projects/{project}/locations/{location}/meshes/{mesh}/routeViews/{route_view} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MeshRouteView getMeshRouteView(MeshRouteViewName name) { + public final MeshRouteView getMeshRouteView(@Nullable MeshRouteViewName name) { GetMeshRouteViewRequest request = GetMeshRouteViewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMeshRouteView(request); @@ -9625,7 +9636,8 @@ public final UnaryCallable getMeshRouteV * projects/{project}/locations/{location}/gateways/{gateway} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGatewayRouteViewsPagedResponse listGatewayRouteViews(GatewayName parent) { + public final ListGatewayRouteViewsPagedResponse listGatewayRouteViews( + @Nullable GatewayName parent) { ListGatewayRouteViewsRequest request = ListGatewayRouteViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9795,7 +9807,7 @@ public final ListGatewayRouteViewsPagedResponse listGatewayRouteViews( * projects/{project}/locations/{location}/meshes/{mesh} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMeshRouteViewsPagedResponse listMeshRouteViews(MeshName parent) { + public final ListMeshRouteViewsPagedResponse listMeshRouteViews(@Nullable MeshName parent) { ListMeshRouteViewsRequest request = ListMeshRouteViewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9963,7 +9975,7 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAgentGatewaysPagedResponse listAgentGateways(LocationName parent) { + public final ListAgentGatewaysPagedResponse listAgentGateways(@Nullable LocationName parent) { ListAgentGatewaysRequest request = ListAgentGatewaysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10131,7 +10143,7 @@ public final ListAgentGatewaysPagedResponse listAgentGateways(ListAgentGatewaysR * `projects/*/locations/*/agentGateways/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AgentGateway getAgentGateway(AgentGatewayName name) { + public final AgentGateway getAgentGateway(@Nullable AgentGatewayName name) { GetAgentGatewayRequest request = GetAgentGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAgentGateway(request); @@ -10248,7 +10260,7 @@ public final UnaryCallable getAgentGateway * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAgentGatewayAsync( - LocationName parent, AgentGateway agentGateway, String agentGatewayId) { + @Nullable LocationName parent, AgentGateway agentGateway, String agentGatewayId) { CreateAgentGatewayRequest request = CreateAgentGatewayRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10537,7 +10549,7 @@ public final UnaryCallable updateAgentGate * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAgentGatewayAsync( - AgentGatewayName name) { + @Nullable AgentGatewayName name) { DeleteAgentGatewayRequest request = DeleteAgentGatewayRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11078,9 +11090,10 @@ public static class ListEndpointPoliciesPage ListEndpointPoliciesPage> { private ListEndpointPoliciesPage( - PageContext + @Nullable + PageContext context, - ListEndpointPoliciesResponse response) { + @Nullable ListEndpointPoliciesResponse response) { super(context, response); } @@ -11090,15 +11103,17 @@ private static ListEndpointPoliciesPage createEmptyPage() { @Override protected ListEndpointPoliciesPage createPage( - PageContext + @Nullable + PageContext context, - ListEndpointPoliciesResponse response) { + @Nullable ListEndpointPoliciesResponse response) { return new ListEndpointPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11114,7 +11129,7 @@ public static class ListEndpointPoliciesFixedSizeCollection ListEndpointPoliciesFixedSizeCollection> { private ListEndpointPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11124,7 +11139,7 @@ private static ListEndpointPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -11163,10 +11178,11 @@ public static class ListWasmPluginVersionsPage ListWasmPluginVersionsPage> { private ListWasmPluginVersionsPage( - PageContext< + @Nullable + PageContext< ListWasmPluginVersionsRequest, ListWasmPluginVersionsResponse, WasmPluginVersion> context, - ListWasmPluginVersionsResponse response) { + @Nullable ListWasmPluginVersionsResponse response) { super(context, response); } @@ -11176,16 +11192,18 @@ private static ListWasmPluginVersionsPage createEmptyPage() { @Override protected ListWasmPluginVersionsPage createPage( - PageContext< + @Nullable + PageContext< ListWasmPluginVersionsRequest, ListWasmPluginVersionsResponse, WasmPluginVersion> context, - ListWasmPluginVersionsResponse response) { + @Nullable ListWasmPluginVersionsResponse response) { return new ListWasmPluginVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWasmPluginVersionsRequest, ListWasmPluginVersionsResponse, WasmPluginVersion> context, ApiFuture futureResponse) { @@ -11202,7 +11220,7 @@ public static class ListWasmPluginVersionsFixedSizeCollection ListWasmPluginVersionsFixedSizeCollection> { private ListWasmPluginVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11212,7 +11230,7 @@ private static ListWasmPluginVersionsFixedSizeCollection createEmptyCollection() @Override protected ListWasmPluginVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWasmPluginVersionsFixedSizeCollection(pages, collectionSize); } } @@ -11246,8 +11264,8 @@ public static class ListWasmPluginsPage ListWasmPluginsRequest, ListWasmPluginsResponse, WasmPlugin, ListWasmPluginsPage> { private ListWasmPluginsPage( - PageContext context, - ListWasmPluginsResponse response) { + @Nullable PageContext context, + @Nullable ListWasmPluginsResponse response) { super(context, response); } @@ -11257,14 +11275,14 @@ private static ListWasmPluginsPage createEmptyPage() { @Override protected ListWasmPluginsPage createPage( - PageContext context, - ListWasmPluginsResponse response) { + @Nullable PageContext context, + @Nullable ListWasmPluginsResponse response) { return new ListWasmPluginsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11279,7 +11297,7 @@ public static class ListWasmPluginsFixedSizeCollection ListWasmPluginsFixedSizeCollection> { private ListWasmPluginsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11289,7 +11307,7 @@ private static ListWasmPluginsFixedSizeCollection createEmptyCollection() { @Override protected ListWasmPluginsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWasmPluginsFixedSizeCollection(pages, collectionSize); } } @@ -11322,8 +11340,8 @@ public static class ListGatewaysPage extends AbstractPage { private ListGatewaysPage( - PageContext context, - ListGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListGatewaysResponse response) { super(context, response); } @@ -11333,14 +11351,14 @@ private static ListGatewaysPage createEmptyPage() { @Override protected ListGatewaysPage createPage( - PageContext context, - ListGatewaysResponse response) { + @Nullable PageContext context, + @Nullable ListGatewaysResponse response) { return new ListGatewaysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11354,7 +11372,8 @@ public static class ListGatewaysFixedSizeCollection ListGatewaysPage, ListGatewaysFixedSizeCollection> { - private ListGatewaysFixedSizeCollection(List pages, int collectionSize) { + private ListGatewaysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11364,7 +11383,7 @@ private static ListGatewaysFixedSizeCollection createEmptyCollection() { @Override protected ListGatewaysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewaysFixedSizeCollection(pages, collectionSize); } } @@ -11398,8 +11417,8 @@ public static class ListGrpcRoutesPage ListGrpcRoutesRequest, ListGrpcRoutesResponse, GrpcRoute, ListGrpcRoutesPage> { private ListGrpcRoutesPage( - PageContext context, - ListGrpcRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListGrpcRoutesResponse response) { super(context, response); } @@ -11409,14 +11428,14 @@ private static ListGrpcRoutesPage createEmptyPage() { @Override protected ListGrpcRoutesPage createPage( - PageContext context, - ListGrpcRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListGrpcRoutesResponse response) { return new ListGrpcRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11430,7 +11449,8 @@ public static class ListGrpcRoutesFixedSizeCollection ListGrpcRoutesPage, ListGrpcRoutesFixedSizeCollection> { - private ListGrpcRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListGrpcRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11440,7 +11460,7 @@ private static ListGrpcRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListGrpcRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGrpcRoutesFixedSizeCollection(pages, collectionSize); } } @@ -11474,8 +11494,8 @@ public static class ListHttpRoutesPage ListHttpRoutesRequest, ListHttpRoutesResponse, HttpRoute, ListHttpRoutesPage> { private ListHttpRoutesPage( - PageContext context, - ListHttpRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListHttpRoutesResponse response) { super(context, response); } @@ -11485,14 +11505,14 @@ private static ListHttpRoutesPage createEmptyPage() { @Override protected ListHttpRoutesPage createPage( - PageContext context, - ListHttpRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListHttpRoutesResponse response) { return new ListHttpRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11506,7 +11526,8 @@ public static class ListHttpRoutesFixedSizeCollection ListHttpRoutesPage, ListHttpRoutesFixedSizeCollection> { - private ListHttpRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListHttpRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11516,7 +11537,7 @@ private static ListHttpRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListHttpRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHttpRoutesFixedSizeCollection(pages, collectionSize); } } @@ -11550,8 +11571,8 @@ public static class ListTcpRoutesPage ListTcpRoutesRequest, ListTcpRoutesResponse, TcpRoute, ListTcpRoutesPage> { private ListTcpRoutesPage( - PageContext context, - ListTcpRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListTcpRoutesResponse response) { super(context, response); } @@ -11561,14 +11582,14 @@ private static ListTcpRoutesPage createEmptyPage() { @Override protected ListTcpRoutesPage createPage( - PageContext context, - ListTcpRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListTcpRoutesResponse response) { return new ListTcpRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11582,7 +11603,8 @@ public static class ListTcpRoutesFixedSizeCollection ListTcpRoutesPage, ListTcpRoutesFixedSizeCollection> { - private ListTcpRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListTcpRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11592,7 +11614,7 @@ private static ListTcpRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListTcpRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTcpRoutesFixedSizeCollection(pages, collectionSize); } } @@ -11626,8 +11648,8 @@ public static class ListTlsRoutesPage ListTlsRoutesRequest, ListTlsRoutesResponse, TlsRoute, ListTlsRoutesPage> { private ListTlsRoutesPage( - PageContext context, - ListTlsRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListTlsRoutesResponse response) { super(context, response); } @@ -11637,14 +11659,14 @@ private static ListTlsRoutesPage createEmptyPage() { @Override protected ListTlsRoutesPage createPage( - PageContext context, - ListTlsRoutesResponse response) { + @Nullable PageContext context, + @Nullable ListTlsRoutesResponse response) { return new ListTlsRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11658,7 +11680,8 @@ public static class ListTlsRoutesFixedSizeCollection ListTlsRoutesPage, ListTlsRoutesFixedSizeCollection> { - private ListTlsRoutesFixedSizeCollection(List pages, int collectionSize) { + private ListTlsRoutesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11668,7 +11691,7 @@ private static ListTlsRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListTlsRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTlsRoutesFixedSizeCollection(pages, collectionSize); } } @@ -11706,9 +11729,10 @@ public static class ListServiceBindingsPage ListServiceBindingsPage> { private ListServiceBindingsPage( - PageContext + @Nullable + PageContext context, - ListServiceBindingsResponse response) { + @Nullable ListServiceBindingsResponse response) { super(context, response); } @@ -11718,15 +11742,17 @@ private static ListServiceBindingsPage createEmptyPage() { @Override protected ListServiceBindingsPage createPage( - PageContext + @Nullable + PageContext context, - ListServiceBindingsResponse response) { + @Nullable ListServiceBindingsResponse response) { return new ListServiceBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11742,7 +11768,7 @@ public static class ListServiceBindingsFixedSizeCollection ListServiceBindingsFixedSizeCollection> { private ListServiceBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11752,7 +11778,7 @@ private static ListServiceBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListServiceBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceBindingsFixedSizeCollection(pages, collectionSize); } } @@ -11783,8 +11809,8 @@ public static class ListMeshesPage extends AbstractPage { private ListMeshesPage( - PageContext context, - ListMeshesResponse response) { + @Nullable PageContext context, + @Nullable ListMeshesResponse response) { super(context, response); } @@ -11794,14 +11820,14 @@ private static ListMeshesPage createEmptyPage() { @Override protected ListMeshesPage createPage( - PageContext context, - ListMeshesResponse response) { + @Nullable PageContext context, + @Nullable ListMeshesResponse response) { return new ListMeshesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11815,7 +11841,8 @@ public static class ListMeshesFixedSizeCollection ListMeshesPage, ListMeshesFixedSizeCollection> { - private ListMeshesFixedSizeCollection(List pages, int collectionSize) { + private ListMeshesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11825,7 +11852,7 @@ private static ListMeshesFixedSizeCollection createEmptyCollection() { @Override protected ListMeshesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMeshesFixedSizeCollection(pages, collectionSize); } } @@ -11863,9 +11890,11 @@ public static class ListServiceLbPoliciesPage ListServiceLbPoliciesPage> { private ListServiceLbPoliciesPage( - PageContext + @Nullable + PageContext< + ListServiceLbPoliciesRequest, ListServiceLbPoliciesResponse, ServiceLbPolicy> context, - ListServiceLbPoliciesResponse response) { + @Nullable ListServiceLbPoliciesResponse response) { super(context, response); } @@ -11875,15 +11904,19 @@ private static ListServiceLbPoliciesPage createEmptyPage() { @Override protected ListServiceLbPoliciesPage createPage( - PageContext + @Nullable + PageContext< + ListServiceLbPoliciesRequest, ListServiceLbPoliciesResponse, ServiceLbPolicy> context, - ListServiceLbPoliciesResponse response) { + @Nullable ListServiceLbPoliciesResponse response) { return new ListServiceLbPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListServiceLbPoliciesRequest, ListServiceLbPoliciesResponse, ServiceLbPolicy> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11899,7 +11932,7 @@ public static class ListServiceLbPoliciesFixedSizeCollection ListServiceLbPoliciesFixedSizeCollection> { private ListServiceLbPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11909,7 +11942,7 @@ private static ListServiceLbPoliciesFixedSizeCollection createEmptyCollection() @Override protected ListServiceLbPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceLbPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -11947,9 +11980,11 @@ public static class ListGatewayRouteViewsPage ListGatewayRouteViewsPage> { private ListGatewayRouteViewsPage( - PageContext + @Nullable + PageContext< + ListGatewayRouteViewsRequest, ListGatewayRouteViewsResponse, GatewayRouteView> context, - ListGatewayRouteViewsResponse response) { + @Nullable ListGatewayRouteViewsResponse response) { super(context, response); } @@ -11959,15 +11994,19 @@ private static ListGatewayRouteViewsPage createEmptyPage() { @Override protected ListGatewayRouteViewsPage createPage( - PageContext + @Nullable + PageContext< + ListGatewayRouteViewsRequest, ListGatewayRouteViewsResponse, GatewayRouteView> context, - ListGatewayRouteViewsResponse response) { + @Nullable ListGatewayRouteViewsResponse response) { return new ListGatewayRouteViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListGatewayRouteViewsRequest, ListGatewayRouteViewsResponse, GatewayRouteView> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11983,7 +12022,7 @@ public static class ListGatewayRouteViewsFixedSizeCollection ListGatewayRouteViewsFixedSizeCollection> { private ListGatewayRouteViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11993,7 +12032,7 @@ private static ListGatewayRouteViewsFixedSizeCollection createEmptyCollection() @Override protected ListGatewayRouteViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGatewayRouteViewsFixedSizeCollection(pages, collectionSize); } } @@ -12030,8 +12069,9 @@ public static class ListMeshRouteViewsPage ListMeshRouteViewsPage> { private ListMeshRouteViewsPage( - PageContext context, - ListMeshRouteViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListMeshRouteViewsResponse response) { super(context, response); } @@ -12041,14 +12081,16 @@ private static ListMeshRouteViewsPage createEmptyPage() { @Override protected ListMeshRouteViewsPage createPage( - PageContext context, - ListMeshRouteViewsResponse response) { + @Nullable PageContext + context, + @Nullable ListMeshRouteViewsResponse response) { return new ListMeshRouteViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12063,7 +12105,7 @@ public static class ListMeshRouteViewsFixedSizeCollection ListMeshRouteViewsFixedSizeCollection> { private ListMeshRouteViewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12073,7 +12115,7 @@ private static ListMeshRouteViewsFixedSizeCollection createEmptyCollection() { @Override protected ListMeshRouteViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMeshRouteViewsFixedSizeCollection(pages, collectionSize); } } @@ -12110,8 +12152,9 @@ public static class ListAgentGatewaysPage ListAgentGatewaysPage> { private ListAgentGatewaysPage( - PageContext context, - ListAgentGatewaysResponse response) { + @Nullable PageContext + context, + @Nullable ListAgentGatewaysResponse response) { super(context, response); } @@ -12121,14 +12164,16 @@ private static ListAgentGatewaysPage createEmptyPage() { @Override protected ListAgentGatewaysPage createPage( - PageContext context, - ListAgentGatewaysResponse response) { + @Nullable PageContext + context, + @Nullable ListAgentGatewaysResponse response) { return new ListAgentGatewaysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12143,7 +12188,7 @@ public static class ListAgentGatewaysFixedSizeCollection ListAgentGatewaysFixedSizeCollection> { private ListAgentGatewaysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12153,7 +12198,7 @@ private static ListAgentGatewaysFixedSizeCollection createEmptyCollection() { @Override protected ListAgentGatewaysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentGatewaysFixedSizeCollection(pages, collectionSize); } } @@ -12187,8 +12232,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -12198,14 +12243,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12219,7 +12264,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12229,7 +12275,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java index d402ae1059ac..cea712601eea 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -802,7 +803,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); } @@ -822,7 +823,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NetworkServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java index 9a4ea7a6c828..306040e94cb6 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStub.java @@ -68,6 +68,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,11 +80,12 @@ @Generated("by gapic-generator-java") public abstract class DepServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java index ed17f5bf5cc6..26a572042eda 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/DepServiceStubSettings.java @@ -102,6 +102,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -909,7 +910,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); } @@ -1111,7 +1112,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLbTrafficExtensionsSettings = diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java index 10a5b8bf4c91..cac3e1540bc5 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java @@ -141,6 +141,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,11 +153,12 @@ @Generated("by gapic-generator-java") public abstract class NetworkServicesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java index 371d64004911..abaf25544d36 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java @@ -175,6 +175,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1997,7 +1998,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); } @@ -2405,7 +2406,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEndpointPoliciesSettings = diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java index 6492a057b460..3ac8f37cd1e4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String agentGateway .toString(); } - public static AgentGatewayName parse(String formattedString) { + public static @Nullable AgentGatewayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentGatewayName> values) { List list = new ArrayList<>(values.size()); for (AgentGatewayName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionName.java index a68524067fbe..65d7814e573c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String authzExtensi .toString(); } - public static AuthzExtensionName parse(String formattedString) { + public static @Nullable AuthzExtensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AuthzExtensionName> values) { List list = new ArrayList<>(values.size()); for (AuthzExtensionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyName.java index 171a71b7678b..36940b62bb66 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String endpointPoli .toString(); } - public static EndpointPolicyName parse(String formattedString) { + public static @Nullable EndpointPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointPolicyName> values) { List list = new ArrayList<>(values.size()); for (EndpointPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayName.java index 6fa9bba603e7..7b882a3f0bf6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String gateway) { .toString(); } - public static GatewayName parse(String formattedString) { + public static @Nullable GatewayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewayName> values) { List list = new ArrayList<>(values.size()); for (GatewayName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayRouteViewName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayRouteViewName.java index 12f9b857a018..718e1af97ff3 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayRouteViewName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayRouteViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String gateway, Str .toString(); } - public static GatewayRouteViewName parse(String formattedString) { + public static @Nullable GatewayRouteViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GatewayRouteViewName> values) { List list = new ArrayList<>(values.size()); for (GatewayRouteViewName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteName.java index 3bc5a1aa5c9f..0166af551539 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String grpcRoute) { .toString(); } - public static GrpcRouteName parse(String formattedString) { + public static @Nullable GrpcRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GrpcRouteName> values) { List list = new ArrayList<>(values.size()); for (GrpcRouteName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteName.java index 8a28f090501a..542465cfc25e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String httpRoute) { .toString(); } - public static HttpRouteName parse(String formattedString) { + public static @Nullable HttpRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HttpRouteName> values) { List list = new ArrayList<>(values.size()); for (HttpRouteName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java index 5a6c1dd256ef..024e2b0b1275 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbEdgeExtensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String lbEdgeExtens .toString(); } - public static LbEdgeExtensionName parse(String formattedString) { + public static @Nullable LbEdgeExtensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LbEdgeExtensionName> values) { List list = new ArrayList<>(values.size()); for (LbEdgeExtensionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbRouteExtensionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbRouteExtensionName.java index 0514d9560b3d..26211aecb383 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbRouteExtensionName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbRouteExtensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String lbRouteExten .toString(); } - public static LbRouteExtensionName parse(String formattedString) { + public static @Nullable LbRouteExtensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LbRouteExtensionName> values) { List list = new ArrayList<>(values.size()); for (LbRouteExtensionName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbTrafficExtensionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbTrafficExtensionName.java index 88bedd72fe37..00f2b3077b74 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbTrafficExtensionName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LbTrafficExtensionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String lbTrafficExt .toString(); } - public static LbTrafficExtensionName parse(String formattedString) { + public static @Nullable LbTrafficExtensionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LbTrafficExtensionName> values) { List list = new ArrayList<>(values.size()); for (LbTrafficExtensionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LocationName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LocationName.java index 841b20b47b33..e2a16366e235 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LocationName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshName.java index 36c1d56e40ae..67396ee87367 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String location, String mesh) { return newBuilder().setProject(project).setLocation(location).setMesh(mesh).build().toString(); } - public static MeshName parse(String formattedString) { + public static @Nullable MeshName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MeshName> values) { List list = new ArrayList<>(values.size()); for (MeshName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshRouteViewName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshRouteViewName.java index 9c569c03f811..5fd14cf799c9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshRouteViewName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshRouteViewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String mesh, String .toString(); } - public static MeshRouteViewName parse(String formattedString) { + public static @Nullable MeshRouteViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MeshRouteViewName> values) { List list = new ArrayList<>(values.size()); for (MeshRouteViewName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingName.java index 1885acdd698d..709f0cdaaf01 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String serviceBindi .toString(); } - public static ServiceBindingName parse(String formattedString) { + public static @Nullable ServiceBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceBindingName> values) { List list = new ArrayList<>(values.size()); for (ServiceBindingName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyName.java index ae7513878a6f..8cc14494f137 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceLbPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String serviceLbPol .toString(); } - public static ServiceLbPolicyName parse(String formattedString) { + public static @Nullable ServiceLbPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceLbPolicyName> values) { List list = new ArrayList<>(values.size()); for (ServiceLbPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteName.java index 36e371e29894..47563d44eec1 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String tcpRoute) { .toString(); } - public static TcpRouteName parse(String formattedString) { + public static @Nullable TcpRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TcpRouteName> values) { List list = new ArrayList<>(values.size()); for (TcpRouteName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteName.java index 6f69b41294bb..b082dc03f924 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String tlsRoute) { .toString(); } - public static TlsRouteName parse(String formattedString) { + public static @Nullable TlsRouteName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TlsRouteName> values) { List list = new ArrayList<>(values.size()); for (TlsRouteName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginName.java index 3d314bba95e9..f4c38b416863 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String wasmPlugin) .toString(); } - public static WasmPluginName parse(String formattedString) { + public static @Nullable WasmPluginName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WasmPluginName> values) { List list = new ArrayList<>(values.size()); for (WasmPluginName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionName.java index 8e805d5280bb..d9571a81c9fb 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionName.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WasmPluginVersionName parse(String formattedString) { + public static @Nullable WasmPluginVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WasmPluginVersionName> values) { List list = new ArrayList<>(values.size()); for (WasmPluginVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java index 8e5e71298965..6a3da7b99c90 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java @@ -47,6 +47,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. /** @@ -450,7 +451,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ManagedNotebookServiceClient implements BackgroundResource { - private final ManagedNotebookServiceSettings settings; + private final @Nullable ManagedNotebookServiceSettings settings; private final ManagedNotebookServiceStub stub; private final OperationsClient operationsClient; @@ -494,7 +495,7 @@ protected ManagedNotebookServiceClient(ManagedNotebookServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ManagedNotebookServiceSettings getSettings() { + public final @Nullable ManagedNotebookServiceSettings getSettings() { return settings; } @@ -534,7 +535,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimesPagedResponse listRuntimes(LocationName parent) { + public final ListRuntimesPagedResponse listRuntimes(@Nullable LocationName parent) { ListRuntimesRequest request = ListRuntimesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -701,7 +702,7 @@ public final UnaryCallable listRuntim * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Runtime getRuntime(RuntimeName name) { + public final Runtime getRuntime(@Nullable RuntimeName name) { GetRuntimeRequest request = GetRuntimeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRuntime(request); @@ -821,7 +822,7 @@ public final UnaryCallable getRuntimeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRuntimeAsync( - RuntimeName parent, String runtimeId, Runtime runtime) { + @Nullable RuntimeName parent, String runtimeId, Runtime runtime) { CreateRuntimeRequest request = CreateRuntimeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1125,7 +1126,8 @@ public final UnaryCallable updateRuntimeCallabl * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRuntimeAsync(RuntimeName name) { + public final OperationFuture deleteRuntimeAsync( + @Nullable RuntimeName name) { DeleteRuntimeRequest request = DeleteRuntimeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRuntimeAsync(request); @@ -1897,7 +1899,7 @@ public final UnaryCallable upgradeRuntimeCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture reportRuntimeEventAsync( - RuntimeName name) { + @Nullable RuntimeName name) { ReportRuntimeEventRequest request = ReportRuntimeEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2058,7 +2060,7 @@ public final UnaryCallable reportRuntimeEv * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal( - RuntimeName name, String vmId) { + @Nullable RuntimeName name, String vmId) { RefreshRuntimeTokenInternalRequest request = RefreshRuntimeTokenInternalRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2195,7 +2197,7 @@ public final RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diagnoseRuntimeAsync( - RuntimeName name, DiagnosticConfig diagnosticConfig) { + @Nullable RuntimeName name, DiagnosticConfig diagnosticConfig) { DiagnoseRuntimeRequest request = DiagnoseRuntimeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2752,8 +2754,8 @@ public static class ListRuntimesPage extends AbstractPage { private ListRuntimesPage( - PageContext context, - ListRuntimesResponse response) { + @Nullable PageContext context, + @Nullable ListRuntimesResponse response) { super(context, response); } @@ -2763,14 +2765,14 @@ private static ListRuntimesPage createEmptyPage() { @Override protected ListRuntimesPage createPage( - PageContext context, - ListRuntimesResponse response) { + @Nullable PageContext context, + @Nullable ListRuntimesResponse response) { return new ListRuntimesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2784,7 +2786,8 @@ public static class ListRuntimesFixedSizeCollection ListRuntimesPage, ListRuntimesFixedSizeCollection> { - private ListRuntimesFixedSizeCollection(List pages, int collectionSize) { + private ListRuntimesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2794,7 +2797,7 @@ private static ListRuntimesFixedSizeCollection createEmptyCollection() { @Override protected ListRuntimesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuntimesFixedSizeCollection(pages, collectionSize); } } @@ -2828,8 +2831,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2839,14 +2842,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2860,7 +2863,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2870,7 +2874,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java index 860a458922e6..056dc3f64f0b 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -355,7 +356,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ManagedNotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java index 5c3ad941be8e..4f9ab59b1413 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java @@ -46,6 +46,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. /** @@ -781,7 +782,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NotebookServiceClient implements BackgroundResource { - private final NotebookServiceSettings settings; + private final @Nullable NotebookServiceSettings settings; private final NotebookServiceStub stub; private final OperationsClient operationsClient; @@ -824,7 +825,7 @@ protected NotebookServiceClient(NotebookServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final NotebookServiceSettings getSettings() { + public final @Nullable NotebookServiceSettings getSettings() { return settings; } @@ -2307,7 +2308,7 @@ public final IsInstanceUpgradeableResponse isInstanceUpgradeable( * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetInstanceHealthResponse getInstanceHealth(InstanceName name) { + public final GetInstanceHealthResponse getInstanceHealth(@Nullable InstanceName name) { GetInstanceHealthRequest request = GetInstanceHealthRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2602,7 +2603,7 @@ public final UnaryCallable rollbackInstanceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diagnoseInstanceAsync( - InstanceName name, DiagnosticConfig diagnosticConfig) { + @Nullable InstanceName name, DiagnosticConfig diagnosticConfig) { DiagnoseInstanceRequest request = DiagnoseInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3305,7 +3306,7 @@ public final UnaryCallable deleteEnvironmen * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchedulesPagedResponse listSchedules(ScheduleName parent) { + public final ListSchedulesPagedResponse listSchedules(@Nullable ScheduleName parent) { ListSchedulesRequest request = ListSchedulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3473,7 +3474,7 @@ public final UnaryCallable listSche * `projects/{project_id}/locations/{location}/schedules/{schedule_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schedule getSchedule(ScheduleName name) { + public final Schedule getSchedule(@Nullable ScheduleName name) { GetScheduleRequest request = GetScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchedule(request); @@ -3583,7 +3584,8 @@ public final UnaryCallable getScheduleCallable() { * `projects/{project_id}/locations/{location}/schedules/{schedule_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteScheduleAsync(ScheduleName name) { + public final OperationFuture deleteScheduleAsync( + @Nullable ScheduleName name) { DeleteScheduleRequest request = DeleteScheduleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteScheduleAsync(request); @@ -3729,7 +3731,7 @@ public final UnaryCallable deleteScheduleCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createScheduleAsync( - ScheduleName parent, Schedule schedule, String scheduleId) { + @Nullable ScheduleName parent, Schedule schedule, String scheduleId) { CreateScheduleRequest request = CreateScheduleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3977,7 +3979,7 @@ public final UnaryCallable triggerScheduleCal * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(ExecutionName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable ExecutionName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4146,7 +4148,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * `projects/{project_id}/locations/{location}/executions/{execution_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -4257,7 +4259,8 @@ public final UnaryCallable getExecutionCallable( * `projects/{project_id}/locations/{location}/executions/{execution_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteExecutionAsync(ExecutionName name) { + public final OperationFuture deleteExecutionAsync( + @Nullable ExecutionName name) { DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExecutionAsync(request); @@ -4403,7 +4406,7 @@ public final UnaryCallable deleteExecutionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createExecutionAsync( - ExecutionName parent, Execution execution, String executionId) { + @Nullable ExecutionName parent, Execution execution, String executionId) { CreateExecutionRequest request = CreateExecutionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4948,8 +4951,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -4959,14 +4962,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4980,7 +4983,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4990,7 +4994,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -5024,8 +5028,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -5035,14 +5040,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5057,7 +5064,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5067,7 +5074,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -5101,8 +5108,8 @@ public static class ListSchedulesPage ListSchedulesRequest, ListSchedulesResponse, Schedule, ListSchedulesPage> { private ListSchedulesPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { super(context, response); } @@ -5112,14 +5119,14 @@ private static ListSchedulesPage createEmptyPage() { @Override protected ListSchedulesPage createPage( - PageContext context, - ListSchedulesResponse response) { + @Nullable PageContext context, + @Nullable ListSchedulesResponse response) { return new ListSchedulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5133,7 +5140,8 @@ public static class ListSchedulesFixedSizeCollection ListSchedulesPage, ListSchedulesFixedSizeCollection> { - private ListSchedulesFixedSizeCollection(List pages, int collectionSize) { + private ListSchedulesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5143,7 +5151,7 @@ private static ListSchedulesFixedSizeCollection createEmptyCollection() { @Override protected ListSchedulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchedulesFixedSizeCollection(pages, collectionSize); } } @@ -5177,8 +5185,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -5188,14 +5196,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5209,7 +5217,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5219,7 +5228,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } @@ -5253,8 +5262,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5264,14 +5273,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5285,7 +5294,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5295,7 +5305,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java index ff72d8e22a6e..38ed339feecd 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -527,7 +528,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -547,7 +548,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java index dcee3bab0127..99b6ab89c3aa 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,7 +65,7 @@ @Generated("by gapic-generator-java") public abstract class ManagedNotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java index 5fdc0c79888e..36d9fd964410 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -541,7 +542,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -692,7 +693,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRuntimesSettings = PagedCallSettings.newBuilder(LIST_RUNTIMES_PAGE_STR_FACT); diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java index 7642cd8dea91..2e5be1e0a6b6 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java @@ -85,6 +85,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,7 +97,7 @@ @Generated("by gapic-generator-java") public abstract class NotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java index fe83e0b00b19..3f07e4b55089 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java @@ -115,6 +115,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -986,7 +987,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1264,7 +1265,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java index afc9651d47e6..9823cafad2fa 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java @@ -47,6 +47,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. /** @@ -480,7 +481,7 @@ @BetaApi @Generated("by gapic-generator-java") public class NotebookServiceClient implements BackgroundResource { - private final NotebookServiceSettings settings; + private final @Nullable NotebookServiceSettings settings; private final NotebookServiceStub stub; private final OperationsClient operationsClient; @@ -523,7 +524,7 @@ protected NotebookServiceClient(NotebookServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final NotebookServiceSettings getSettings() { + public final @Nullable NotebookServiceSettings getSettings() { return settings; } @@ -2550,8 +2551,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2561,14 +2562,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2582,7 +2583,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2592,7 +2594,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2626,8 +2628,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -2637,14 +2640,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2659,7 +2664,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2669,7 +2674,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -2703,8 +2708,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2714,14 +2719,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2735,7 +2740,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2745,7 +2751,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java index 62dab36067a1..da7ac48b4909 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -415,7 +416,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -435,7 +436,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java index 885b3762f400..5dd8d1b362c9 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java @@ -63,6 +63,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -75,7 +76,7 @@ @Generated("by gapic-generator-java") public abstract class NotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java index 39962fc97d72..5626bb47a0bc 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java @@ -93,6 +93,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -699,7 +700,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -895,7 +896,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceClient.java index eeb60ece42be..a7ad6381a2b5 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceClient.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceClient.java @@ -48,6 +48,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. /** @@ -420,7 +421,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NotebookServiceClient implements BackgroundResource { - private final NotebookServiceSettings settings; + private final @Nullable NotebookServiceSettings settings; private final NotebookServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -468,7 +469,7 @@ protected NotebookServiceClient(NotebookServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final NotebookServiceSettings getSettings() { + public final @Nullable NotebookServiceSettings getSettings() { return settings; } @@ -516,7 +517,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -684,7 +685,7 @@ public final UnaryCallable listInst * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -799,7 +800,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1085,7 +1086,8 @@ public final UnaryCallable updateInstanceCalla * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1700,7 +1702,7 @@ public final UnaryCallable rollbackInstanceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diagnoseInstanceAsync( - InstanceName name, DiagnosticConfig diagnosticConfig) { + @Nullable InstanceName name, DiagnosticConfig diagnosticConfig) { DiagnoseInstanceRequest request = DiagnoseInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2241,8 +2243,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2252,14 +2254,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2273,7 +2275,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2283,7 +2286,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2317,8 +2320,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2328,14 +2331,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2349,7 +2352,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2359,7 +2363,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceSettings.java index b810eeced422..ef06508e1fd8 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/NotebookServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -328,7 +329,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); } @@ -348,7 +349,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotebookServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStub.java index a9bc175e08e6..75e864452c57 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class NotebookServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java index c00f3a98292d..15cf897dd9c5 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/NotebookServiceStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -558,7 +559,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); } @@ -706,7 +707,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java index d3da49f49f6a..4509b4849661 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String execution) { .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java index bb06e7432594..6e1f58b37579 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java index 5d0a74c86ca6..23e0a9454dfe 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java index 65b1675d1e0a..3fbab5259698 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String runtime) { .toString(); } - public static RuntimeName parse(String formattedString) { + public static @Nullable RuntimeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuntimeName> values) { List list = new ArrayList<>(values.size()); for (RuntimeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java index c0135e131f80..d92e02d13eba 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String schedule) { .toString(); } - public static ScheduleName parse(String formattedString) { + public static @Nullable ScheduleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScheduleName> values) { List list = new ArrayList<>(values.size()); for (ScheduleName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/InstanceName.java b/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/InstanceName.java index 450077de66ae..7041bd7d243c 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/InstanceName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/LocationName.java b/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/LocationName.java index ee3d5158ba96..6e7730daee06 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/LocationName.java +++ b/java-notebooks/proto-google-cloud-notebooks-v2/src/main/java/com/google/cloud/notebooks/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java index 7da9423f8a5a..6ee29f6547cf 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingClient.java @@ -29,6 +29,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. /** @@ -176,7 +177,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FleetRoutingClient implements BackgroundResource { - private final FleetRoutingSettings settings; + private final @Nullable FleetRoutingSettings settings; private final FleetRoutingStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -223,7 +224,7 @@ protected FleetRoutingClient(FleetRoutingStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FleetRoutingSettings getSettings() { + public final @Nullable FleetRoutingSettings getSettings() { return settings; } diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java index ca58918ad55e..6b9a6d8dcf95 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/FleetRoutingSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FleetRoutingStubSettings.newBuilder(clientContext)); } diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java index 7f63cffa0106..9cfdfc45b9d2 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStub.java @@ -28,6 +28,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class FleetRoutingStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java index ab3b478023c9..cf4e0558532c 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/FleetRoutingStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -264,7 +265,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); } @@ -350,7 +351,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); optimizeToursSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index d6a2710bef75..8ad7feebb750 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -44,6 +44,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. /** @@ -1714,7 +1715,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OracleDatabaseClient implements BackgroundResource { - private final OracleDatabaseSettings settings; + private final @Nullable OracleDatabaseSettings settings; private final OracleDatabaseStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1762,7 +1763,7 @@ protected OracleDatabaseClient(OracleDatabaseStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OracleDatabaseSettings getSettings() { + public final @Nullable OracleDatabaseSettings getSettings() { return settings; } @@ -1813,7 +1814,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfrastructures( - LocationName parent) { + @Nullable LocationName parent) { ListCloudExadataInfrastructuresRequest request = ListCloudExadataInfrastructuresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1994,7 +1995,7 @@ public final ListCloudExadataInfrastructuresPagedResponse listCloudExadataInfras * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudExadataInfrastructure getCloudExadataInfrastructure( - CloudExadataInfrastructureName name) { + @Nullable CloudExadataInfrastructureName name) { GetCloudExadataInfrastructureRequest request = GetCloudExadataInfrastructureRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2135,7 +2136,7 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( */ public final OperationFuture createCloudExadataInfrastructureAsync( - LocationName parent, + @Nullable LocationName parent, CloudExadataInfrastructure cloudExadataInfrastructure, String cloudExadataInfrastructureId) { CreateCloudExadataInfrastructureRequest request = @@ -2320,7 +2321,7 @@ public final CloudExadataInfrastructure getCloudExadataInfrastructure( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCloudExadataInfrastructureAsync( - CloudExadataInfrastructureName name) { + @Nullable CloudExadataInfrastructureName name) { DeleteCloudExadataInfrastructureRequest request = DeleteCloudExadataInfrastructureRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2495,7 +2496,7 @@ public final OperationFuture deleteCloudExadataInfrast */ public final OperationFuture configureExascaleCloudExadataInfrastructureAsync( - CloudExadataInfrastructureName name, int totalStorageSizeGb) { + @Nullable CloudExadataInfrastructureName name, int totalStorageSizeGb) { ConfigureExascaleCloudExadataInfrastructureRequest request = ConfigureExascaleCloudExadataInfrastructureRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2679,7 +2680,7 @@ public final OperationFuture deleteCloudExadataInfrast * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloudVmClustersPagedResponse listCloudVmClusters(LocationName parent) { + public final ListCloudVmClustersPagedResponse listCloudVmClusters(@Nullable LocationName parent) { ListCloudVmClustersRequest request = ListCloudVmClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2850,7 +2851,7 @@ public final ListCloudVmClustersPagedResponse listCloudVmClusters( * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloudVmCluster getCloudVmCluster(CloudVmClusterName name) { + public final CloudVmCluster getCloudVmCluster(@Nullable CloudVmClusterName name) { GetCloudVmClusterRequest request = GetCloudVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2976,7 +2977,7 @@ public final UnaryCallable getCloudVmC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCloudVmClusterAsync( - LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { + @Nullable LocationName parent, CloudVmCluster cloudVmCluster, String cloudVmClusterId) { CreateCloudVmClusterRequest request = CreateCloudVmClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3148,7 +3149,7 @@ public final OperationFuture createCloudVmClu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCloudVmClusterAsync( - CloudVmClusterName name) { + @Nullable CloudVmClusterName name) { DeleteCloudVmClusterRequest request = DeleteCloudVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3305,7 +3306,7 @@ public final OperationFuture deleteCloudVmClusterAsync * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) { + public final ListEntitlementsPagedResponse listEntitlements(@Nullable LocationName parent) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3474,7 +3475,8 @@ public final ListEntitlementsPagedResponse listEntitlements(ListEntitlementsRequ * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbServersPagedResponse listDbServers(CloudExadataInfrastructureName parent) { + public final ListDbServersPagedResponse listDbServers( + @Nullable CloudExadataInfrastructureName parent) { ListDbServersRequest request = ListDbServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3651,7 +3653,7 @@ public final UnaryCallable listDbSe * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { + public final ListDbNodesPagedResponse listDbNodes(@Nullable CloudVmClusterName parent) { ListDbNodesRequest request = ListDbNodesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3684,7 +3686,7 @@ public final ListDbNodesPagedResponse listDbNodes(CloudVmClusterName parent) { * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. . * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbNodesPagedResponse listDbNodes(ExadbVmClusterName parent) { + public final ListDbNodesPagedResponse listDbNodes(@Nullable ExadbVmClusterName parent) { ListDbNodesRequest request = ListDbNodesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3853,7 +3855,7 @@ public final UnaryCallable listDbNodesC * format: Format: projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGiVersionsPagedResponse listGiVersions(LocationName parent) { + public final ListGiVersionsPagedResponse listGiVersions(@Nullable LocationName parent) { ListGiVersionsRequest request = ListGiVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4027,7 +4029,7 @@ public final ListGiVersionsPagedResponse listGiVersions(ListGiVersionsRequest re * projects/{project}/locations/{location}/giVersions/{gi_version} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMinorVersionsPagedResponse listMinorVersions(GiVersionName parent) { + public final ListMinorVersionsPagedResponse listMinorVersions(@Nullable GiVersionName parent) { ListMinorVersionsRequest request = ListMinorVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4201,7 +4203,7 @@ public final ListMinorVersionsPagedResponse listMinorVersions(ListMinorVersionsR * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbSystemShapesPagedResponse listDbSystemShapes(LocationName parent) { + public final ListDbSystemShapesPagedResponse listDbSystemShapes(@Nullable LocationName parent) { ListDbSystemShapesRequest request = ListDbSystemShapesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4373,7 +4375,8 @@ public final ListDbSystemShapesPagedResponse listDbSystemShapes( * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases(LocationName parent) { + public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases( + @Nullable LocationName parent) { ListAutonomousDatabasesRequest request = ListAutonomousDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4548,7 +4551,7 @@ public final ListAutonomousDatabasesPagedResponse listAutonomousDatabases( * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutonomousDatabase getAutonomousDatabase(AutonomousDatabaseName name) { + public final AutonomousDatabase getAutonomousDatabase(@Nullable AutonomousDatabaseName name) { GetAutonomousDatabaseRequest request = GetAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4678,7 +4681,9 @@ public final AutonomousDatabase getAutonomousDatabase(GetAutonomousDatabaseReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAutonomousDatabaseAsync( - LocationName parent, AutonomousDatabase autonomousDatabase, String autonomousDatabaseId) { + @Nullable LocationName parent, + AutonomousDatabase autonomousDatabase, + String autonomousDatabaseId) { CreateAutonomousDatabaseRequest request = CreateAutonomousDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4984,7 +4989,7 @@ public final OperationFuture updateAutono * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteAutonomousDatabaseAsync( - AutonomousDatabaseName name) { + @Nullable AutonomousDatabaseName name) { DeleteAutonomousDatabaseRequest request = DeleteAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5145,7 +5150,7 @@ public final OperationFuture deleteAutonomousDatabaseA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - restoreAutonomousDatabaseAsync(AutonomousDatabaseName name, Timestamp restoreTime) { + restoreAutonomousDatabaseAsync(@Nullable AutonomousDatabaseName name, Timestamp restoreTime) { RestoreAutonomousDatabaseRequest request = RestoreAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5322,7 +5327,10 @@ public final OperationFuture deleteAutonomousDatabaseA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabaseWallet( - AutonomousDatabaseName name, GenerateType type, boolean isRegional, String password) { + @Nullable AutonomousDatabaseName name, + GenerateType type, + boolean isRegional, + String password) { GenerateAutonomousDatabaseWalletRequest request = GenerateAutonomousDatabaseWalletRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5473,7 +5481,8 @@ public final GenerateAutonomousDatabaseWalletResponse generateAutonomousDatabase * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions(LocationName parent) { + public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( + @Nullable LocationName parent) { ListAutonomousDbVersionsRequest request = ListAutonomousDbVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5645,7 +5654,7 @@ public final ListAutonomousDbVersionsPagedResponse listAutonomousDbVersions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousDatabaseCharacterSets( - LocationName parent) { + @Nullable LocationName parent) { ListAutonomousDatabaseCharacterSetsRequest request = ListAutonomousDatabaseCharacterSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5827,7 +5836,7 @@ public final ListAutonomousDatabaseCharacterSetsPagedResponse listAutonomousData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBackups( - LocationName parent) { + @Nullable LocationName parent) { ListAutonomousDatabaseBackupsRequest request = ListAutonomousDatabaseBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6003,7 +6012,7 @@ public final ListAutonomousDatabaseBackupsPagedResponse listAutonomousDatabaseBa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopAutonomousDatabaseAsync( - AutonomousDatabaseName name) { + @Nullable AutonomousDatabaseName name) { StopAutonomousDatabaseRequest request = StopAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6159,7 +6168,7 @@ public final OperationFuture stopAutonomo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startAutonomousDatabaseAsync( - AutonomousDatabaseName name) { + @Nullable AutonomousDatabaseName name) { StartAutonomousDatabaseRequest request = StartAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6316,7 +6325,7 @@ public final OperationFuture startAutonom * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - restartAutonomousDatabaseAsync(AutonomousDatabaseName name) { + restartAutonomousDatabaseAsync(@Nullable AutonomousDatabaseName name) { RestartAutonomousDatabaseRequest request = RestartAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6481,7 +6490,8 @@ public final OperationFuture startAutonom */ public final OperationFuture switchoverAutonomousDatabaseAsync( - AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) { + @Nullable AutonomousDatabaseName name, + @Nullable AutonomousDatabaseName peerAutonomousDatabase) { SwitchoverAutonomousDatabaseRequest request = SwitchoverAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6523,7 +6533,7 @@ public final OperationFuture startAutonom */ public final OperationFuture switchoverAutonomousDatabaseAsync( - AutonomousDatabaseName name, String peerAutonomousDatabase) { + @Nullable AutonomousDatabaseName name, String peerAutonomousDatabase) { SwitchoverAutonomousDatabaseRequest request = SwitchoverAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6564,7 +6574,7 @@ public final OperationFuture startAutonom */ public final OperationFuture switchoverAutonomousDatabaseAsync( - String name, AutonomousDatabaseName peerAutonomousDatabase) { + String name, @Nullable AutonomousDatabaseName peerAutonomousDatabase) { SwitchoverAutonomousDatabaseRequest request = SwitchoverAutonomousDatabaseRequest.newBuilder() .setName(name) @@ -6748,7 +6758,8 @@ public final OperationFuture startAutonom */ public final OperationFuture failoverAutonomousDatabaseAsync( - AutonomousDatabaseName name, AutonomousDatabaseName peerAutonomousDatabase) { + @Nullable AutonomousDatabaseName name, + @Nullable AutonomousDatabaseName peerAutonomousDatabase) { FailoverAutonomousDatabaseRequest request = FailoverAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6787,7 +6798,8 @@ public final OperationFuture startAutonom * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - failoverAutonomousDatabaseAsync(AutonomousDatabaseName name, String peerAutonomousDatabase) { + failoverAutonomousDatabaseAsync( + @Nullable AutonomousDatabaseName name, String peerAutonomousDatabase) { FailoverAutonomousDatabaseRequest request = FailoverAutonomousDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6825,7 +6837,8 @@ public final OperationFuture startAutonom * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - failoverAutonomousDatabaseAsync(String name, AutonomousDatabaseName peerAutonomousDatabase) { + failoverAutonomousDatabaseAsync( + String name, @Nullable AutonomousDatabaseName peerAutonomousDatabase) { FailoverAutonomousDatabaseRequest request = FailoverAutonomousDatabaseRequest.newBuilder() .setName(name) @@ -7001,7 +7014,7 @@ public final OperationFuture startAutonom * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOdbNetworksPagedResponse listOdbNetworks(LocationName parent) { + public final ListOdbNetworksPagedResponse listOdbNetworks(@Nullable LocationName parent) { ListOdbNetworksRequest request = ListOdbNetworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7171,7 +7184,7 @@ public final ListOdbNetworksPagedResponse listOdbNetworks(ListOdbNetworksRequest * projects/{project}/locations/{location}/odbNetworks/{odb_network}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OdbNetwork getOdbNetwork(OdbNetworkName name) { + public final OdbNetwork getOdbNetwork(@Nullable OdbNetworkName name) { GetOdbNetworkRequest request = GetOdbNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOdbNetwork(request); @@ -7290,7 +7303,7 @@ public final UnaryCallable getOdbNetworkCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createOdbNetworkAsync( - LocationName parent, OdbNetwork odbNetwork, String odbNetworkId) { + @Nullable LocationName parent, OdbNetwork odbNetwork, String odbNetworkId) { CreateOdbNetworkRequest request = CreateOdbNetworkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7458,7 +7471,7 @@ public final UnaryCallable createOdbNetworkC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteOdbNetworkAsync( - OdbNetworkName name) { + @Nullable OdbNetworkName name) { DeleteOdbNetworkRequest request = DeleteOdbNetworkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteOdbNetworkAsync(request); @@ -7604,7 +7617,7 @@ public final UnaryCallable deleteOdbNetworkC * projects/{project}/locations/{location}/odbNetworks/{odb_network}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOdbSubnetsPagedResponse listOdbSubnets(OdbNetworkName parent) { + public final ListOdbSubnetsPagedResponse listOdbSubnets(@Nullable OdbNetworkName parent) { ListOdbSubnetsRequest request = ListOdbSubnetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7775,7 +7788,7 @@ public final ListOdbSubnetsPagedResponse listOdbSubnets(ListOdbSubnetsRequest re * projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OdbSubnet getOdbSubnet(OdbSubnetName name) { + public final OdbSubnet getOdbSubnet(@Nullable OdbSubnetName name) { GetOdbSubnetRequest request = GetOdbSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOdbSubnet(request); @@ -7898,7 +7911,7 @@ public final UnaryCallable getOdbSubnetCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createOdbSubnetAsync( - OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId) { + @Nullable OdbNetworkName parent, OdbSubnet odbSubnet, String odbSubnetId) { CreateOdbSubnetRequest request = CreateOdbSubnetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8066,7 +8079,8 @@ public final UnaryCallable createOdbSubnetCal * projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteOdbSubnetAsync(OdbSubnetName name) { + public final OperationFuture deleteOdbSubnetAsync( + @Nullable OdbSubnetName name) { DeleteOdbSubnetRequest request = DeleteOdbSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteOdbSubnetAsync(request); @@ -8219,7 +8233,7 @@ public final UnaryCallable deleteOdbSubnetCal * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExadbVmClustersPagedResponse listExadbVmClusters(LocationName parent) { + public final ListExadbVmClustersPagedResponse listExadbVmClusters(@Nullable LocationName parent) { ListExadbVmClustersRequest request = ListExadbVmClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8393,7 +8407,7 @@ public final ListExadbVmClustersPagedResponse listExadbVmClusters( * projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExadbVmCluster getExadbVmCluster(ExadbVmClusterName name) { + public final ExadbVmCluster getExadbVmCluster(@Nullable ExadbVmClusterName name) { GetExadbVmClusterRequest request = GetExadbVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8519,7 +8533,7 @@ public final UnaryCallable getExadbVmC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createExadbVmClusterAsync( - LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) { + @Nullable LocationName parent, ExadbVmCluster exadbVmCluster, String exadbVmClusterId) { CreateExadbVmClusterRequest request = CreateExadbVmClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8691,7 +8705,7 @@ public final OperationFuture createExadbVmClu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExadbVmClusterAsync( - ExadbVmClusterName name) { + @Nullable ExadbVmClusterName name) { DeleteExadbVmClusterRequest request = DeleteExadbVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8982,7 +8996,8 @@ public final OperationFuture updateExadbVmClu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeVirtualMachineExadbVmClusterAsync(ExadbVmClusterName name, List hostnames) { + removeVirtualMachineExadbVmClusterAsync( + @Nullable ExadbVmClusterName name, List hostnames) { RemoveVirtualMachineExadbVmClusterRequest request = RemoveVirtualMachineExadbVmClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9154,7 +9169,7 @@ public final OperationFuture updateExadbVmClu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVaults( - LocationName parent) { + @Nullable LocationName parent) { ListExascaleDbStorageVaultsRequest request = ListExascaleDbStorageVaultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9331,7 +9346,8 @@ public final ListExascaleDbStorageVaultsPagedResponse listExascaleDbStorageVault * projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExascaleDbStorageVault getExascaleDbStorageVault(ExascaleDbStorageVaultName name) { + public final ExascaleDbStorageVault getExascaleDbStorageVault( + @Nullable ExascaleDbStorageVaultName name) { GetExascaleDbStorageVaultRequest request = GetExascaleDbStorageVaultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9467,7 +9483,7 @@ public final ExascaleDbStorageVault getExascaleDbStorageVault( */ public final OperationFuture createExascaleDbStorageVaultAsync( - LocationName parent, + @Nullable LocationName parent, ExascaleDbStorageVault exascaleDbStorageVault, String exascaleDbStorageVaultId) { CreateExascaleDbStorageVaultRequest request = @@ -9647,7 +9663,7 @@ public final ExascaleDbStorageVault getExascaleDbStorageVault( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExascaleDbStorageVaultAsync( - ExascaleDbStorageVaultName name) { + @Nullable ExascaleDbStorageVaultName name) { DeleteExascaleDbStorageVaultRequest request = DeleteExascaleDbStorageVaultRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9811,7 +9827,7 @@ public final OperationFuture deleteExascaleDbStorageVa * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialStorageSizes( - LocationName parent) { + @Nullable LocationName parent) { ListDbSystemInitialStorageSizesRequest request = ListDbSystemInitialStorageSizesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9984,7 +10000,7 @@ public final ListDbSystemInitialStorageSizesPagedResponse listDbSystemInitialSto * projects/{project}/locations/{region} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(LocationName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable LocationName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10149,7 +10165,7 @@ public final UnaryCallable listData * projects/{project}/locations/{region}/databases/{database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database getDatabase(DatabaseName name) { + public final Database getDatabase(@Nullable DatabaseName name) { GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatabase(request); @@ -10262,7 +10278,8 @@ public final UnaryCallable getDatabaseCallable() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPluggableDatabasesPagedResponse listPluggableDatabases(LocationName parent) { + public final ListPluggableDatabasesPagedResponse listPluggableDatabases( + @Nullable LocationName parent) { ListPluggableDatabasesRequest request = ListPluggableDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10434,7 +10451,7 @@ public final ListPluggableDatabasesPagedResponse listPluggableDatabases( * projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PluggableDatabase getPluggableDatabase(PluggableDatabaseName name) { + public final PluggableDatabase getPluggableDatabase(@Nullable PluggableDatabaseName name) { GetPluggableDatabaseRequest request = GetPluggableDatabaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10556,7 +10573,7 @@ public final PluggableDatabase getPluggableDatabase(GetPluggableDatabaseRequest * projects/{project}/locations/{location}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbSystemsPagedResponse listDbSystems(LocationName parent) { + public final ListDbSystemsPagedResponse listDbSystems(@Nullable LocationName parent) { ListDbSystemsRequest request = ListDbSystemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10724,7 +10741,7 @@ public final UnaryCallable listDbSy * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DbSystem getDbSystem(DbSystemName name) { + public final DbSystem getDbSystem(@Nullable DbSystemName name) { GetDbSystemRequest request = GetDbSystemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDbSystem(request); @@ -10842,7 +10859,7 @@ public final UnaryCallable getDbSystemCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDbSystemAsync( - LocationName parent, DbSystem dbSystem, String dbSystemId) { + @Nullable LocationName parent, DbSystem dbSystem, String dbSystemId) { CreateDbSystemRequest request = CreateDbSystemRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11009,7 +11026,8 @@ public final UnaryCallable createDbSystemCalla * projects/{project}/locations/{location}/dbSystems/{db_system}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDbSystemAsync(DbSystemName name) { + public final OperationFuture deleteDbSystemAsync( + @Nullable DbSystemName name) { DeleteDbSystemRequest request = DeleteDbSystemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDbSystemAsync(request); @@ -11157,7 +11175,7 @@ public final UnaryCallable deleteDbSystemCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateDeploymentsPagedResponse listGoldengateDeployments( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateDeploymentsRequest request = ListGoldengateDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11333,7 +11351,8 @@ public final ListGoldengateDeploymentsPagedResponse listGoldengateDeployments( * projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoldengateDeployment getGoldengateDeployment(GoldengateDeploymentName name) { + public final GoldengateDeployment getGoldengateDeployment( + @Nullable GoldengateDeploymentName name) { GetGoldengateDeploymentRequest request = GetGoldengateDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11466,7 +11485,7 @@ public final GoldengateDeployment getGoldengateDeployment( */ public final OperationFuture createGoldengateDeploymentAsync( - LocationName parent, + @Nullable LocationName parent, GoldengateDeployment goldengateDeployment, String goldengateDeploymentId) { CreateGoldengateDeploymentRequest request = @@ -11643,7 +11662,7 @@ public final GoldengateDeployment getGoldengateDeployment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGoldengateDeploymentAsync( - GoldengateDeploymentName name) { + @Nullable GoldengateDeploymentName name) { DeleteGoldengateDeploymentRequest request = DeleteGoldengateDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11803,7 +11822,7 @@ public final OperationFuture deleteGoldengateDeploymen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - stopGoldengateDeploymentAsync(GoldengateDeploymentName name) { + stopGoldengateDeploymentAsync(@Nullable GoldengateDeploymentName name) { StopGoldengateDeploymentRequest request = StopGoldengateDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11963,7 +11982,7 @@ public final OperationFuture deleteGoldengateDeploymen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - startGoldengateDeploymentAsync(GoldengateDeploymentName name) { + startGoldengateDeploymentAsync(@Nullable GoldengateDeploymentName name) { StartGoldengateDeploymentRequest request = StartGoldengateDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12124,7 +12143,7 @@ public final OperationFuture deleteGoldengateDeploymen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateConnectionsPagedResponse listGoldengateConnections( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateConnectionsRequest request = ListGoldengateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12300,7 +12319,8 @@ public final ListGoldengateConnectionsPagedResponse listGoldengateConnections( * projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoldengateConnection getGoldengateConnection(GoldengateConnectionName name) { + public final GoldengateConnection getGoldengateConnection( + @Nullable GoldengateConnectionName name) { GetGoldengateConnectionRequest request = GetGoldengateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12433,7 +12453,7 @@ public final GoldengateConnection getGoldengateConnection( */ public final OperationFuture createGoldengateConnectionAsync( - LocationName parent, + @Nullable LocationName parent, GoldengateConnection goldengateConnection, String goldengateConnectionId) { CreateGoldengateConnectionRequest request = @@ -12610,7 +12630,7 @@ public final GoldengateConnection getGoldengateConnection( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGoldengateConnectionAsync( - GoldengateConnectionName name) { + @Nullable GoldengateConnectionName name) { DeleteGoldengateConnectionRequest request = DeleteGoldengateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12771,7 +12791,7 @@ public final OperationFuture deleteGoldengateConnectio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploymentVersions( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateDeploymentVersionsRequest request = ListGoldengateDeploymentVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12948,7 +12968,7 @@ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploym * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeploymentTypes( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateDeploymentTypesRequest request = ListGoldengateDeploymentTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13128,7 +13148,7 @@ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeployment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateDeploymentEnvironmentsPagedResponse - listGoldengateDeploymentEnvironments(LocationName parent) { + listGoldengateDeploymentEnvironments(@Nullable LocationName parent) { ListGoldengateDeploymentEnvironmentsRequest request = ListGoldengateDeploymentEnvironmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13307,7 +13327,7 @@ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeployment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateConnectionTypesPagedResponse listGoldengateConnectionTypes( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateConnectionTypesRequest request = ListGoldengateConnectionTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13483,7 +13503,7 @@ public final ListGoldengateConnectionTypesPagedResponse listGoldengateConnection * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDbVersionsPagedResponse listDbVersions(LocationName parent) { + public final ListDbVersionsPagedResponse listDbVersions(@Nullable LocationName parent) { ListDbVersionsRequest request = ListDbVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13654,7 +13674,7 @@ public final ListDbVersionsPagedResponse listDbVersions(ListDbVersionsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets( - LocationName parent) { + @Nullable LocationName parent) { ListDatabaseCharacterSetsRequest request = ListDatabaseCharacterSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13830,7 +13850,7 @@ public final ListDatabaseCharacterSetsPagedResponse listDatabaseCharacterSets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGoldengateConnectionAssignmentsPagedResponse listGoldengateConnectionAssignments( - LocationName parent) { + @Nullable LocationName parent) { ListGoldengateConnectionAssignmentsRequest request = ListGoldengateConnectionAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -14015,7 +14035,7 @@ public final ListGoldengateConnectionAssignmentsPagedResponse listGoldengateConn * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment( - GoldengateConnectionAssignmentName name) { + @Nullable GoldengateConnectionAssignmentName name) { GetGoldengateConnectionAssignmentRequest request = GetGoldengateConnectionAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14155,7 +14175,7 @@ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment( */ public final OperationFuture createGoldengateConnectionAssignmentAsync( - LocationName parent, + @Nullable LocationName parent, GoldengateConnectionAssignment goldengateConnectionAssignment, String goldengateConnectionAssignmentId) { CreateGoldengateConnectionAssignmentRequest request = @@ -14344,7 +14364,7 @@ public final GoldengateConnectionAssignment getGoldengateConnectionAssignment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGoldengateConnectionAssignmentAsync( - GoldengateConnectionAssignmentName name) { + @Nullable GoldengateConnectionAssignmentName name) { DeleteGoldengateConnectionAssignmentRequest request = DeleteGoldengateConnectionAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14512,7 +14532,7 @@ public final OperationFuture deleteGoldengateConnectio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestGoldengateConnectionAssignmentResponse testGoldengateConnectionAssignment( - GoldengateConnectionAssignmentName name) { + @Nullable GoldengateConnectionAssignmentName name) { TestGoldengateConnectionAssignmentRequest request = TestGoldengateConnectionAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14877,12 +14897,13 @@ public static class ListCloudExadataInfrastructuresPage ListCloudExadataInfrastructuresPage> { private ListCloudExadataInfrastructuresPage( - PageContext< + @Nullable + PageContext< ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse, CloudExadataInfrastructure> context, - ListCloudExadataInfrastructuresResponse response) { + @Nullable ListCloudExadataInfrastructuresResponse response) { super(context, response); } @@ -14892,18 +14913,20 @@ private static ListCloudExadataInfrastructuresPage createEmptyPage() { @Override protected ListCloudExadataInfrastructuresPage createPage( - PageContext< + @Nullable + PageContext< ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse, CloudExadataInfrastructure> context, - ListCloudExadataInfrastructuresResponse response) { + @Nullable ListCloudExadataInfrastructuresResponse response) { return new ListCloudExadataInfrastructuresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse, CloudExadataInfrastructure> @@ -14922,7 +14945,7 @@ public static class ListCloudExadataInfrastructuresFixedSizeCollection ListCloudExadataInfrastructuresFixedSizeCollection> { private ListCloudExadataInfrastructuresFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14932,7 +14955,7 @@ private static ListCloudExadataInfrastructuresFixedSizeCollection createEmptyCol @Override protected ListCloudExadataInfrastructuresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloudExadataInfrastructuresFixedSizeCollection(pages, collectionSize); } } @@ -14970,9 +14993,10 @@ public static class ListCloudVmClustersPage ListCloudVmClustersPage> { private ListCloudVmClustersPage( - PageContext + @Nullable + PageContext context, - ListCloudVmClustersResponse response) { + @Nullable ListCloudVmClustersResponse response) { super(context, response); } @@ -14982,15 +15006,17 @@ private static ListCloudVmClustersPage createEmptyPage() { @Override protected ListCloudVmClustersPage createPage( - PageContext + @Nullable + PageContext context, - ListCloudVmClustersResponse response) { + @Nullable ListCloudVmClustersResponse response) { return new ListCloudVmClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -15006,7 +15032,7 @@ public static class ListCloudVmClustersFixedSizeCollection ListCloudVmClustersFixedSizeCollection> { private ListCloudVmClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15016,7 +15042,7 @@ private static ListCloudVmClustersFixedSizeCollection createEmptyCollection() { @Override protected ListCloudVmClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloudVmClustersFixedSizeCollection(pages, collectionSize); } } @@ -15050,8 +15076,9 @@ public static class ListEntitlementsPage ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { private ListEntitlementsPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { super(context, response); } @@ -15061,14 +15088,16 @@ private static ListEntitlementsPage createEmptyPage() { @Override protected ListEntitlementsPage createPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { return new ListEntitlementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15083,7 +15112,7 @@ public static class ListEntitlementsFixedSizeCollection ListEntitlementsFixedSizeCollection> { private ListEntitlementsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15093,7 +15122,7 @@ private static ListEntitlementsFixedSizeCollection createEmptyCollection() { @Override protected ListEntitlementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitlementsFixedSizeCollection(pages, collectionSize); } } @@ -15127,8 +15156,8 @@ public static class ListDbServersPage ListDbServersRequest, ListDbServersResponse, DbServer, ListDbServersPage> { private ListDbServersPage( - PageContext context, - ListDbServersResponse response) { + @Nullable PageContext context, + @Nullable ListDbServersResponse response) { super(context, response); } @@ -15138,14 +15167,14 @@ private static ListDbServersPage createEmptyPage() { @Override protected ListDbServersPage createPage( - PageContext context, - ListDbServersResponse response) { + @Nullable PageContext context, + @Nullable ListDbServersResponse response) { return new ListDbServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15159,7 +15188,8 @@ public static class ListDbServersFixedSizeCollection ListDbServersPage, ListDbServersFixedSizeCollection> { - private ListDbServersFixedSizeCollection(List pages, int collectionSize) { + private ListDbServersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15169,7 +15199,7 @@ private static ListDbServersFixedSizeCollection createEmptyCollection() { @Override protected ListDbServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbServersFixedSizeCollection(pages, collectionSize); } } @@ -15200,8 +15230,8 @@ public static class ListDbNodesPage extends AbstractPage { private ListDbNodesPage( - PageContext context, - ListDbNodesResponse response) { + @Nullable PageContext context, + @Nullable ListDbNodesResponse response) { super(context, response); } @@ -15211,14 +15241,14 @@ private static ListDbNodesPage createEmptyPage() { @Override protected ListDbNodesPage createPage( - PageContext context, - ListDbNodesResponse response) { + @Nullable PageContext context, + @Nullable ListDbNodesResponse response) { return new ListDbNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15232,7 +15262,8 @@ public static class ListDbNodesFixedSizeCollection ListDbNodesPage, ListDbNodesFixedSizeCollection> { - private ListDbNodesFixedSizeCollection(List pages, int collectionSize) { + private ListDbNodesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15242,7 +15273,7 @@ private static ListDbNodesFixedSizeCollection createEmptyCollection() { @Override protected ListDbNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbNodesFixedSizeCollection(pages, collectionSize); } } @@ -15276,8 +15307,8 @@ public static class ListGiVersionsPage ListGiVersionsRequest, ListGiVersionsResponse, GiVersion, ListGiVersionsPage> { private ListGiVersionsPage( - PageContext context, - ListGiVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListGiVersionsResponse response) { super(context, response); } @@ -15287,14 +15318,14 @@ private static ListGiVersionsPage createEmptyPage() { @Override protected ListGiVersionsPage createPage( - PageContext context, - ListGiVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListGiVersionsResponse response) { return new ListGiVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15308,7 +15339,8 @@ public static class ListGiVersionsFixedSizeCollection ListGiVersionsPage, ListGiVersionsFixedSizeCollection> { - private ListGiVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListGiVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15318,7 +15350,7 @@ private static ListGiVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListGiVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGiVersionsFixedSizeCollection(pages, collectionSize); } } @@ -15355,8 +15387,9 @@ public static class ListMinorVersionsPage ListMinorVersionsPage> { private ListMinorVersionsPage( - PageContext context, - ListMinorVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListMinorVersionsResponse response) { super(context, response); } @@ -15366,14 +15399,16 @@ private static ListMinorVersionsPage createEmptyPage() { @Override protected ListMinorVersionsPage createPage( - PageContext context, - ListMinorVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListMinorVersionsResponse response) { return new ListMinorVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15388,7 +15423,7 @@ public static class ListMinorVersionsFixedSizeCollection ListMinorVersionsFixedSizeCollection> { private ListMinorVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15398,7 +15433,7 @@ private static ListMinorVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListMinorVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMinorVersionsFixedSizeCollection(pages, collectionSize); } } @@ -15435,8 +15470,9 @@ public static class ListDbSystemShapesPage ListDbSystemShapesPage> { private ListDbSystemShapesPage( - PageContext context, - ListDbSystemShapesResponse response) { + @Nullable PageContext + context, + @Nullable ListDbSystemShapesResponse response) { super(context, response); } @@ -15446,14 +15482,16 @@ private static ListDbSystemShapesPage createEmptyPage() { @Override protected ListDbSystemShapesPage createPage( - PageContext context, - ListDbSystemShapesResponse response) { + @Nullable PageContext + context, + @Nullable ListDbSystemShapesResponse response) { return new ListDbSystemShapesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15468,7 +15506,7 @@ public static class ListDbSystemShapesFixedSizeCollection ListDbSystemShapesFixedSizeCollection> { private ListDbSystemShapesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15478,7 +15516,7 @@ private static ListDbSystemShapesFixedSizeCollection createEmptyCollection() { @Override protected ListDbSystemShapesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbSystemShapesFixedSizeCollection(pages, collectionSize); } } @@ -15517,10 +15555,11 @@ public static class ListAutonomousDatabasesPage ListAutonomousDatabasesPage> { private ListAutonomousDatabasesPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> context, - ListAutonomousDatabasesResponse response) { + @Nullable ListAutonomousDatabasesResponse response) { super(context, response); } @@ -15530,16 +15569,18 @@ private static ListAutonomousDatabasesPage createEmptyPage() { @Override protected ListAutonomousDatabasesPage createPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> context, - ListAutonomousDatabasesResponse response) { + @Nullable ListAutonomousDatabasesResponse response) { return new ListAutonomousDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, AutonomousDatabase> context, ApiFuture futureResponse) { @@ -15556,7 +15597,7 @@ public static class ListAutonomousDatabasesFixedSizeCollection ListAutonomousDatabasesFixedSizeCollection> { private ListAutonomousDatabasesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15566,7 +15607,7 @@ private static ListAutonomousDatabasesFixedSizeCollection createEmptyCollection( @Override protected ListAutonomousDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutonomousDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -15607,12 +15648,13 @@ public static class ListAutonomousDbVersionsPage ListAutonomousDbVersionsPage> { private ListAutonomousDbVersionsPage( - PageContext< + @Nullable + PageContext< ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse, AutonomousDbVersion> context, - ListAutonomousDbVersionsResponse response) { + @Nullable ListAutonomousDbVersionsResponse response) { super(context, response); } @@ -15622,18 +15664,20 @@ private static ListAutonomousDbVersionsPage createEmptyPage() { @Override protected ListAutonomousDbVersionsPage createPage( - PageContext< + @Nullable + PageContext< ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse, AutonomousDbVersion> context, - ListAutonomousDbVersionsResponse response) { + @Nullable ListAutonomousDbVersionsResponse response) { return new ListAutonomousDbVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse, AutonomousDbVersion> @@ -15652,7 +15696,7 @@ public static class ListAutonomousDbVersionsFixedSizeCollection ListAutonomousDbVersionsFixedSizeCollection> { private ListAutonomousDbVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15662,7 +15706,7 @@ private static ListAutonomousDbVersionsFixedSizeCollection createEmptyCollection @Override protected ListAutonomousDbVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutonomousDbVersionsFixedSizeCollection(pages, collectionSize); } } @@ -15705,12 +15749,13 @@ public static class ListAutonomousDatabaseCharacterSetsPage ListAutonomousDatabaseCharacterSetsPage> { private ListAutonomousDatabaseCharacterSetsPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse, AutonomousDatabaseCharacterSet> context, - ListAutonomousDatabaseCharacterSetsResponse response) { + @Nullable ListAutonomousDatabaseCharacterSetsResponse response) { super(context, response); } @@ -15720,18 +15765,20 @@ private static ListAutonomousDatabaseCharacterSetsPage createEmptyPage() { @Override protected ListAutonomousDatabaseCharacterSetsPage createPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse, AutonomousDatabaseCharacterSet> context, - ListAutonomousDatabaseCharacterSetsResponse response) { + @Nullable ListAutonomousDatabaseCharacterSetsResponse response) { return new ListAutonomousDatabaseCharacterSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseCharacterSetsRequest, ListAutonomousDatabaseCharacterSetsResponse, AutonomousDatabaseCharacterSet> @@ -15750,7 +15797,7 @@ public static class ListAutonomousDatabaseCharacterSetsFixedSizeCollection ListAutonomousDatabaseCharacterSetsFixedSizeCollection> { private ListAutonomousDatabaseCharacterSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15760,7 +15807,7 @@ private static ListAutonomousDatabaseCharacterSetsFixedSizeCollection createEmpt @Override protected ListAutonomousDatabaseCharacterSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutonomousDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); } } @@ -15802,12 +15849,13 @@ public static class ListAutonomousDatabaseBackupsPage ListAutonomousDatabaseBackupsPage> { private ListAutonomousDatabaseBackupsPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse, AutonomousDatabaseBackup> context, - ListAutonomousDatabaseBackupsResponse response) { + @Nullable ListAutonomousDatabaseBackupsResponse response) { super(context, response); } @@ -15817,18 +15865,20 @@ private static ListAutonomousDatabaseBackupsPage createEmptyPage() { @Override protected ListAutonomousDatabaseBackupsPage createPage( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse, AutonomousDatabaseBackup> context, - ListAutonomousDatabaseBackupsResponse response) { + @Nullable ListAutonomousDatabaseBackupsResponse response) { return new ListAutonomousDatabaseBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse, AutonomousDatabaseBackup> @@ -15847,7 +15897,7 @@ public static class ListAutonomousDatabaseBackupsFixedSizeCollection ListAutonomousDatabaseBackupsFixedSizeCollection> { private ListAutonomousDatabaseBackupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15857,7 +15907,7 @@ private static ListAutonomousDatabaseBackupsFixedSizeCollection createEmptyColle @Override protected ListAutonomousDatabaseBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAutonomousDatabaseBackupsFixedSizeCollection(pages, collectionSize); } } @@ -15891,8 +15941,8 @@ public static class ListOdbNetworksPage ListOdbNetworksRequest, ListOdbNetworksResponse, OdbNetwork, ListOdbNetworksPage> { private ListOdbNetworksPage( - PageContext context, - ListOdbNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListOdbNetworksResponse response) { super(context, response); } @@ -15902,14 +15952,14 @@ private static ListOdbNetworksPage createEmptyPage() { @Override protected ListOdbNetworksPage createPage( - PageContext context, - ListOdbNetworksResponse response) { + @Nullable PageContext context, + @Nullable ListOdbNetworksResponse response) { return new ListOdbNetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15924,7 +15974,7 @@ public static class ListOdbNetworksFixedSizeCollection ListOdbNetworksFixedSizeCollection> { private ListOdbNetworksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15934,7 +15984,7 @@ private static ListOdbNetworksFixedSizeCollection createEmptyCollection() { @Override protected ListOdbNetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOdbNetworksFixedSizeCollection(pages, collectionSize); } } @@ -15968,8 +16018,8 @@ public static class ListOdbSubnetsPage ListOdbSubnetsRequest, ListOdbSubnetsResponse, OdbSubnet, ListOdbSubnetsPage> { private ListOdbSubnetsPage( - PageContext context, - ListOdbSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListOdbSubnetsResponse response) { super(context, response); } @@ -15979,14 +16029,14 @@ private static ListOdbSubnetsPage createEmptyPage() { @Override protected ListOdbSubnetsPage createPage( - PageContext context, - ListOdbSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListOdbSubnetsResponse response) { return new ListOdbSubnetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -16000,7 +16050,8 @@ public static class ListOdbSubnetsFixedSizeCollection ListOdbSubnetsPage, ListOdbSubnetsFixedSizeCollection> { - private ListOdbSubnetsFixedSizeCollection(List pages, int collectionSize) { + private ListOdbSubnetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16010,7 +16061,7 @@ private static ListOdbSubnetsFixedSizeCollection createEmptyCollection() { @Override protected ListOdbSubnetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOdbSubnetsFixedSizeCollection(pages, collectionSize); } } @@ -16048,9 +16099,10 @@ public static class ListExadbVmClustersPage ListExadbVmClustersPage> { private ListExadbVmClustersPage( - PageContext + @Nullable + PageContext context, - ListExadbVmClustersResponse response) { + @Nullable ListExadbVmClustersResponse response) { super(context, response); } @@ -16060,15 +16112,17 @@ private static ListExadbVmClustersPage createEmptyPage() { @Override protected ListExadbVmClustersPage createPage( - PageContext + @Nullable + PageContext context, - ListExadbVmClustersResponse response) { + @Nullable ListExadbVmClustersResponse response) { return new ListExadbVmClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -16084,7 +16138,7 @@ public static class ListExadbVmClustersFixedSizeCollection ListExadbVmClustersFixedSizeCollection> { private ListExadbVmClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16094,7 +16148,7 @@ private static ListExadbVmClustersFixedSizeCollection createEmptyCollection() { @Override protected ListExadbVmClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExadbVmClustersFixedSizeCollection(pages, collectionSize); } } @@ -16136,12 +16190,13 @@ public static class ListExascaleDbStorageVaultsPage ListExascaleDbStorageVaultsPage> { private ListExascaleDbStorageVaultsPage( - PageContext< + @Nullable + PageContext< ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse, ExascaleDbStorageVault> context, - ListExascaleDbStorageVaultsResponse response) { + @Nullable ListExascaleDbStorageVaultsResponse response) { super(context, response); } @@ -16151,18 +16206,20 @@ private static ListExascaleDbStorageVaultsPage createEmptyPage() { @Override protected ListExascaleDbStorageVaultsPage createPage( - PageContext< + @Nullable + PageContext< ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse, ExascaleDbStorageVault> context, - ListExascaleDbStorageVaultsResponse response) { + @Nullable ListExascaleDbStorageVaultsResponse response) { return new ListExascaleDbStorageVaultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse, ExascaleDbStorageVault> @@ -16181,7 +16238,7 @@ public static class ListExascaleDbStorageVaultsFixedSizeCollection ListExascaleDbStorageVaultsFixedSizeCollection> { private ListExascaleDbStorageVaultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16191,7 +16248,7 @@ private static ListExascaleDbStorageVaultsFixedSizeCollection createEmptyCollect @Override protected ListExascaleDbStorageVaultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExascaleDbStorageVaultsFixedSizeCollection(pages, collectionSize); } } @@ -16233,12 +16290,13 @@ public static class ListDbSystemInitialStorageSizesPage ListDbSystemInitialStorageSizesPage> { private ListDbSystemInitialStorageSizesPage( - PageContext< + @Nullable + PageContext< ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse, DbSystemInitialStorageSize> context, - ListDbSystemInitialStorageSizesResponse response) { + @Nullable ListDbSystemInitialStorageSizesResponse response) { super(context, response); } @@ -16248,18 +16306,20 @@ private static ListDbSystemInitialStorageSizesPage createEmptyPage() { @Override protected ListDbSystemInitialStorageSizesPage createPage( - PageContext< + @Nullable + PageContext< ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse, DbSystemInitialStorageSize> context, - ListDbSystemInitialStorageSizesResponse response) { + @Nullable ListDbSystemInitialStorageSizesResponse response) { return new ListDbSystemInitialStorageSizesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDbSystemInitialStorageSizesRequest, ListDbSystemInitialStorageSizesResponse, DbSystemInitialStorageSize> @@ -16278,7 +16338,7 @@ public static class ListDbSystemInitialStorageSizesFixedSizeCollection ListDbSystemInitialStorageSizesFixedSizeCollection> { private ListDbSystemInitialStorageSizesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16288,7 +16348,7 @@ private static ListDbSystemInitialStorageSizesFixedSizeCollection createEmptyCol @Override protected ListDbSystemInitialStorageSizesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbSystemInitialStorageSizesFixedSizeCollection(pages, collectionSize); } } @@ -16322,8 +16382,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -16333,14 +16393,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -16354,7 +16414,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16364,7 +16425,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -16403,10 +16464,11 @@ public static class ListPluggableDatabasesPage ListPluggableDatabasesPage> { private ListPluggableDatabasesPage( - PageContext< + @Nullable + PageContext< ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ListPluggableDatabasesResponse response) { + @Nullable ListPluggableDatabasesResponse response) { super(context, response); } @@ -16416,16 +16478,18 @@ private static ListPluggableDatabasesPage createEmptyPage() { @Override protected ListPluggableDatabasesPage createPage( - PageContext< + @Nullable + PageContext< ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, - ListPluggableDatabasesResponse response) { + @Nullable ListPluggableDatabasesResponse response) { return new ListPluggableDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, PluggableDatabase> context, ApiFuture futureResponse) { @@ -16442,7 +16506,7 @@ public static class ListPluggableDatabasesFixedSizeCollection ListPluggableDatabasesFixedSizeCollection> { private ListPluggableDatabasesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16452,7 +16516,7 @@ private static ListPluggableDatabasesFixedSizeCollection createEmptyCollection() @Override protected ListPluggableDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPluggableDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -16486,8 +16550,8 @@ public static class ListDbSystemsPage ListDbSystemsRequest, ListDbSystemsResponse, DbSystem, ListDbSystemsPage> { private ListDbSystemsPage( - PageContext context, - ListDbSystemsResponse response) { + @Nullable PageContext context, + @Nullable ListDbSystemsResponse response) { super(context, response); } @@ -16497,14 +16561,14 @@ private static ListDbSystemsPage createEmptyPage() { @Override protected ListDbSystemsPage createPage( - PageContext context, - ListDbSystemsResponse response) { + @Nullable PageContext context, + @Nullable ListDbSystemsResponse response) { return new ListDbSystemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -16518,7 +16582,8 @@ public static class ListDbSystemsFixedSizeCollection ListDbSystemsPage, ListDbSystemsFixedSizeCollection> { - private ListDbSystemsFixedSizeCollection(List pages, int collectionSize) { + private ListDbSystemsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16528,7 +16593,7 @@ private static ListDbSystemsFixedSizeCollection createEmptyCollection() { @Override protected ListDbSystemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbSystemsFixedSizeCollection(pages, collectionSize); } } @@ -16569,12 +16634,13 @@ public static class ListGoldengateDeploymentsPage ListGoldengateDeploymentsPage> { private ListGoldengateDeploymentsPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentsRequest, ListGoldengateDeploymentsResponse, GoldengateDeployment> context, - ListGoldengateDeploymentsResponse response) { + @Nullable ListGoldengateDeploymentsResponse response) { super(context, response); } @@ -16584,18 +16650,20 @@ private static ListGoldengateDeploymentsPage createEmptyPage() { @Override protected ListGoldengateDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentsRequest, ListGoldengateDeploymentsResponse, GoldengateDeployment> context, - ListGoldengateDeploymentsResponse response) { + @Nullable ListGoldengateDeploymentsResponse response) { return new ListGoldengateDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentsRequest, ListGoldengateDeploymentsResponse, GoldengateDeployment> @@ -16614,7 +16682,7 @@ public static class ListGoldengateDeploymentsFixedSizeCollection ListGoldengateDeploymentsFixedSizeCollection> { private ListGoldengateDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16624,7 +16692,7 @@ private static ListGoldengateDeploymentsFixedSizeCollection createEmptyCollectio @Override protected ListGoldengateDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -16665,12 +16733,13 @@ public static class ListGoldengateConnectionsPage ListGoldengateConnectionsPage> { private ListGoldengateConnectionsPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionsRequest, ListGoldengateConnectionsResponse, GoldengateConnection> context, - ListGoldengateConnectionsResponse response) { + @Nullable ListGoldengateConnectionsResponse response) { super(context, response); } @@ -16680,18 +16749,20 @@ private static ListGoldengateConnectionsPage createEmptyPage() { @Override protected ListGoldengateConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionsRequest, ListGoldengateConnectionsResponse, GoldengateConnection> context, - ListGoldengateConnectionsResponse response) { + @Nullable ListGoldengateConnectionsResponse response) { return new ListGoldengateConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionsRequest, ListGoldengateConnectionsResponse, GoldengateConnection> @@ -16710,7 +16781,7 @@ public static class ListGoldengateConnectionsFixedSizeCollection ListGoldengateConnectionsFixedSizeCollection> { private ListGoldengateConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16720,7 +16791,7 @@ private static ListGoldengateConnectionsFixedSizeCollection createEmptyCollectio @Override protected ListGoldengateConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -16763,12 +16834,13 @@ public static class ListGoldengateDeploymentVersionsPage ListGoldengateDeploymentVersionsPage> { private ListGoldengateDeploymentVersionsPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse, GoldengateDeploymentVersion> context, - ListGoldengateDeploymentVersionsResponse response) { + @Nullable ListGoldengateDeploymentVersionsResponse response) { super(context, response); } @@ -16778,18 +16850,20 @@ private static ListGoldengateDeploymentVersionsPage createEmptyPage() { @Override protected ListGoldengateDeploymentVersionsPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse, GoldengateDeploymentVersion> context, - ListGoldengateDeploymentVersionsResponse response) { + @Nullable ListGoldengateDeploymentVersionsResponse response) { return new ListGoldengateDeploymentVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse, GoldengateDeploymentVersion> @@ -16808,7 +16882,7 @@ public static class ListGoldengateDeploymentVersionsFixedSizeCollection ListGoldengateDeploymentVersionsFixedSizeCollection> { private ListGoldengateDeploymentVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16818,7 +16892,7 @@ private static ListGoldengateDeploymentVersionsFixedSizeCollection createEmptyCo @Override protected ListGoldengateDeploymentVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateDeploymentVersionsFixedSizeCollection(pages, collectionSize); } } @@ -16860,12 +16934,13 @@ public static class ListGoldengateDeploymentTypesPage ListGoldengateDeploymentTypesPage> { private ListGoldengateDeploymentTypesPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse, GoldengateDeploymentType> context, - ListGoldengateDeploymentTypesResponse response) { + @Nullable ListGoldengateDeploymentTypesResponse response) { super(context, response); } @@ -16875,18 +16950,20 @@ private static ListGoldengateDeploymentTypesPage createEmptyPage() { @Override protected ListGoldengateDeploymentTypesPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse, GoldengateDeploymentType> context, - ListGoldengateDeploymentTypesResponse response) { + @Nullable ListGoldengateDeploymentTypesResponse response) { return new ListGoldengateDeploymentTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse, GoldengateDeploymentType> @@ -16905,7 +16982,7 @@ public static class ListGoldengateDeploymentTypesFixedSizeCollection ListGoldengateDeploymentTypesFixedSizeCollection> { private ListGoldengateDeploymentTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -16915,7 +16992,7 @@ private static ListGoldengateDeploymentTypesFixedSizeCollection createEmptyColle @Override protected ListGoldengateDeploymentTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateDeploymentTypesFixedSizeCollection(pages, collectionSize); } } @@ -16958,12 +17035,13 @@ public static class ListGoldengateDeploymentEnvironmentsPage ListGoldengateDeploymentEnvironmentsPage> { private ListGoldengateDeploymentEnvironmentsPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse, GoldengateDeploymentEnvironment> context, - ListGoldengateDeploymentEnvironmentsResponse response) { + @Nullable ListGoldengateDeploymentEnvironmentsResponse response) { super(context, response); } @@ -16973,18 +17051,20 @@ private static ListGoldengateDeploymentEnvironmentsPage createEmptyPage() { @Override protected ListGoldengateDeploymentEnvironmentsPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse, GoldengateDeploymentEnvironment> context, - ListGoldengateDeploymentEnvironmentsResponse response) { + @Nullable ListGoldengateDeploymentEnvironmentsResponse response) { return new ListGoldengateDeploymentEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse, GoldengateDeploymentEnvironment> @@ -17003,7 +17083,7 @@ public static class ListGoldengateDeploymentEnvironmentsFixedSizeCollection ListGoldengateDeploymentEnvironmentsFixedSizeCollection> { private ListGoldengateDeploymentEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17013,7 +17093,7 @@ private static ListGoldengateDeploymentEnvironmentsFixedSizeCollection createEmp @Override protected ListGoldengateDeploymentEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateDeploymentEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -17055,12 +17135,13 @@ public static class ListGoldengateConnectionTypesPage ListGoldengateConnectionTypesPage> { private ListGoldengateConnectionTypesPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse, GoldengateConnectionType> context, - ListGoldengateConnectionTypesResponse response) { + @Nullable ListGoldengateConnectionTypesResponse response) { super(context, response); } @@ -17070,18 +17151,20 @@ private static ListGoldengateConnectionTypesPage createEmptyPage() { @Override protected ListGoldengateConnectionTypesPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse, GoldengateConnectionType> context, - ListGoldengateConnectionTypesResponse response) { + @Nullable ListGoldengateConnectionTypesResponse response) { return new ListGoldengateConnectionTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse, GoldengateConnectionType> @@ -17100,7 +17183,7 @@ public static class ListGoldengateConnectionTypesFixedSizeCollection ListGoldengateConnectionTypesFixedSizeCollection> { private ListGoldengateConnectionTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17110,7 +17193,7 @@ private static ListGoldengateConnectionTypesFixedSizeCollection createEmptyColle @Override protected ListGoldengateConnectionTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateConnectionTypesFixedSizeCollection(pages, collectionSize); } } @@ -17144,8 +17227,8 @@ public static class ListDbVersionsPage ListDbVersionsRequest, ListDbVersionsResponse, DbVersion, ListDbVersionsPage> { private ListDbVersionsPage( - PageContext context, - ListDbVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListDbVersionsResponse response) { super(context, response); } @@ -17155,14 +17238,14 @@ private static ListDbVersionsPage createEmptyPage() { @Override protected ListDbVersionsPage createPage( - PageContext context, - ListDbVersionsResponse response) { + @Nullable PageContext context, + @Nullable ListDbVersionsResponse response) { return new ListDbVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -17176,7 +17259,8 @@ public static class ListDbVersionsFixedSizeCollection ListDbVersionsPage, ListDbVersionsFixedSizeCollection> { - private ListDbVersionsFixedSizeCollection(List pages, int collectionSize) { + private ListDbVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17186,7 +17270,7 @@ private static ListDbVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListDbVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDbVersionsFixedSizeCollection(pages, collectionSize); } } @@ -17227,12 +17311,13 @@ public static class ListDatabaseCharacterSetsPage ListDatabaseCharacterSetsPage> { private ListDatabaseCharacterSetsPage( - PageContext< + @Nullable + PageContext< ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse, DatabaseCharacterSet> context, - ListDatabaseCharacterSetsResponse response) { + @Nullable ListDatabaseCharacterSetsResponse response) { super(context, response); } @@ -17242,18 +17327,20 @@ private static ListDatabaseCharacterSetsPage createEmptyPage() { @Override protected ListDatabaseCharacterSetsPage createPage( - PageContext< + @Nullable + PageContext< ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse, DatabaseCharacterSet> context, - ListDatabaseCharacterSetsResponse response) { + @Nullable ListDatabaseCharacterSetsResponse response) { return new ListDatabaseCharacterSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDatabaseCharacterSetsRequest, ListDatabaseCharacterSetsResponse, DatabaseCharacterSet> @@ -17272,7 +17359,7 @@ public static class ListDatabaseCharacterSetsFixedSizeCollection ListDatabaseCharacterSetsFixedSizeCollection> { private ListDatabaseCharacterSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17282,7 +17369,7 @@ private static ListDatabaseCharacterSetsFixedSizeCollection createEmptyCollectio @Override protected ListDatabaseCharacterSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabaseCharacterSetsFixedSizeCollection(pages, collectionSize); } } @@ -17325,12 +17412,13 @@ public static class ListGoldengateConnectionAssignmentsPage ListGoldengateConnectionAssignmentsPage> { private ListGoldengateConnectionAssignmentsPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionAssignmentsRequest, ListGoldengateConnectionAssignmentsResponse, GoldengateConnectionAssignment> context, - ListGoldengateConnectionAssignmentsResponse response) { + @Nullable ListGoldengateConnectionAssignmentsResponse response) { super(context, response); } @@ -17340,18 +17428,20 @@ private static ListGoldengateConnectionAssignmentsPage createEmptyPage() { @Override protected ListGoldengateConnectionAssignmentsPage createPage( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionAssignmentsRequest, ListGoldengateConnectionAssignmentsResponse, GoldengateConnectionAssignment> context, - ListGoldengateConnectionAssignmentsResponse response) { + @Nullable ListGoldengateConnectionAssignmentsResponse response) { return new ListGoldengateConnectionAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListGoldengateConnectionAssignmentsRequest, ListGoldengateConnectionAssignmentsResponse, GoldengateConnectionAssignment> @@ -17370,7 +17460,7 @@ public static class ListGoldengateConnectionAssignmentsFixedSizeCollection ListGoldengateConnectionAssignmentsFixedSizeCollection> { private ListGoldengateConnectionAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17380,7 +17470,7 @@ private static ListGoldengateConnectionAssignmentsFixedSizeCollection createEmpt @Override protected ListGoldengateConnectionAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGoldengateConnectionAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -17414,8 +17504,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -17425,14 +17515,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -17446,7 +17536,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -17456,7 +17547,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index ff1b48c998dd..30485405dfec 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1009,7 +1010,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); } @@ -1029,7 +1030,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OracleDatabaseStubSettings.newBuilder(clientContext)); } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index ed1db67a511f..07ec22b800e6 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -182,6 +182,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,11 +194,12 @@ @Generated("by gapic-generator-java") public abstract class OracleDatabaseStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index 5d91e07a088b..35f0fb13e034 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -232,6 +232,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -3473,7 +3474,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); } @@ -4045,7 +4046,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCloudExadataInfrastructuresSettings = diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java index 6405545f0ccc..7d896fd9fcc0 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseBackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String autonomousDa .toString(); } - public static AutonomousDatabaseBackupName parse(String formattedString) { + public static @Nullable AutonomousDatabaseBackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutonomousDatabaseBackupName> values) { List list = new ArrayList<>(values.size()); for (AutonomousDatabaseBackupName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java index 546d78f73436..96fce8c2821f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseCharacterSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static AutonomousDatabaseCharacterSetName parse(String formattedString) { + public static @Nullable AutonomousDatabaseCharacterSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List fo return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable AutonomousDatabaseCharacterSetName> values) { List list = new ArrayList<>(values.size()); for (AutonomousDatabaseCharacterSetName value : values) { if (value == null) { @@ -169,7 +171,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java index fb638dc8699f..e27109a81178 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String autonomousDa .toString(); } - public static AutonomousDatabaseName parse(String formattedString) { + public static @Nullable AutonomousDatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutonomousDatabaseName> values) { List list = new ArrayList<>(values.size()); for (AutonomousDatabaseName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java index 544ecc3c75ed..a16d1b217978 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/AutonomousDbVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String autonomousDb .toString(); } - public static AutonomousDbVersionName parse(String formattedString) { + public static @Nullable AutonomousDbVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutonomousDbVersionName> values) { List list = new ArrayList<>(values.size()); for (AutonomousDbVersionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java index f4572db16f34..6d0593d53f83 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudExadataInfrastructureName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String cloudExadata .toString(); } - public static CloudExadataInfrastructureName parse(String formattedString) { + public static @Nullable CloudExadataInfrastructureName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudExadataInfrastructureName> values) { List list = new ArrayList<>(values.size()); for (CloudExadataInfrastructureName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java index 31ef8bd405cc..c0f5f535d5cb 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/CloudVmClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String cloudVmClust .toString(); } - public static CloudVmClusterName parse(String formattedString) { + public static @Nullable CloudVmClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloudVmClusterName> values) { List list = new ArrayList<>(values.size()); for (CloudVmClusterName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java index 78167fe81003..8b76ae0959b9 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseCharacterSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String databaseChar .toString(); } - public static DatabaseCharacterSetName parse(String formattedString) { + public static @Nullable DatabaseCharacterSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseCharacterSetName> values) { List list = new ArrayList<>(values.size()); for (DatabaseCharacterSetName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java index 9d787eab3b39..b7177d6e8d01 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String database) { .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java index 68528f18c089..141d6ee9b4f9 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbNodeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -174,7 +175,7 @@ public static String formatProjectLocationExadbVmClusterDbNodeName( .toString(); } - public static DbNodeName parse(String formattedString) { + public static @Nullable DbNodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -206,7 +207,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbNodeName> values) { List list = new ArrayList<>(values.size()); for (DbNodeName value : values) { if (value == null) { @@ -261,7 +262,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java index 516ff63abe74..55c13bc93e57 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbServerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -101,7 +102,7 @@ public static String format( .toString(); } - public static DbServerName parse(String formattedString) { + public static @Nullable DbServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbServerName> values) { List list = new ArrayList<>(values.size()); for (DbServerName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java index 37c81ce2c43d..d149c3f902fe 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemInitialStorageSizeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String dbSystemInit .toString(); } - public static DbSystemInitialStorageSizeName parse(String formattedString) { + public static @Nullable DbSystemInitialStorageSizeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbSystemInitialStorageSizeName> values) { List list = new ArrayList<>(values.size()); for (DbSystemInitialStorageSizeName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java index 07bc793f49ab..0288465042d7 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dbSystem) { .toString(); } - public static DbSystemName parse(String formattedString) { + public static @Nullable DbSystemName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbSystemName> values) { List list = new ArrayList<>(values.size()); for (DbSystemName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java index acba6b5c8daf..46aecb345e7b 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbSystemShapeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String dbSystemShap .toString(); } - public static DbSystemShapeName parse(String formattedString) { + public static @Nullable DbSystemShapeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbSystemShapeName> values) { List list = new ArrayList<>(values.size()); for (DbSystemShapeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java index 8afb27d26104..20b2fdcec8a2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/DbVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dbVersion) { .toString(); } - public static DbVersionName parse(String formattedString) { + public static @Nullable DbVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DbVersionName> values) { List list = new ArrayList<>(values.size()); for (DbVersionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java index e4c14be026f0..54b7f479a47e 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/EntitlementName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String entitlement) .toString(); } - public static EntitlementName parse(String formattedString) { + public static @Nullable EntitlementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntitlementName> values) { List list = new ArrayList<>(values.size()); for (EntitlementName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java index 1c630440417c..0484d46aac05 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExadbVmClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String exadbVmClust .toString(); } - public static ExadbVmClusterName parse(String formattedString) { + public static @Nullable ExadbVmClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExadbVmClusterName> values) { List list = new ArrayList<>(values.size()); for (ExadbVmClusterName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java index ed43af3b5c5c..bbff1651e175 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/ExascaleDbStorageVaultName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String exascaleDbSt .toString(); } - public static ExascaleDbStorageVaultName parse(String formattedString) { + public static @Nullable ExascaleDbStorageVaultName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExascaleDbStorageVaultName> values) { List list = new ArrayList<>(values.size()); for (ExascaleDbStorageVaultName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java index 6ab3c6030551..bceb67b2bcb5 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GiVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String giVersion) { .toString(); } - public static GiVersionName parse(String formattedString) { + public static @Nullable GiVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GiVersionName> values) { List list = new ArrayList<>(values.size()); for (GiVersionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionAssignmentName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionAssignmentName.java index 5ade039b559f..eed50cb14d1b 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionAssignmentName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionAssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static GoldengateConnectionAssignmentName parse(String formattedString) { + public static @Nullable GoldengateConnectionAssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List fo return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable GoldengateConnectionAssignmentName> values) { List list = new ArrayList<>(values.size()); for (GoldengateConnectionAssignmentName value : values) { if (value == null) { @@ -168,7 +170,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionName.java index 8ebdeea20b90..da3e29415ef2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String goldengateCo .toString(); } - public static GoldengateConnectionName parse(String formattedString) { + public static @Nullable GoldengateConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoldengateConnectionName> values) { List list = new ArrayList<>(values.size()); for (GoldengateConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeName.java index 8d953674e6a8..c192f85b8627 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String goldengateCo .toString(); } - public static GoldengateConnectionTypeName parse(String formattedString) { + public static @Nullable GoldengateConnectionTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoldengateConnectionTypeName> values) { List list = new ArrayList<>(values.size()); for (GoldengateConnectionTypeName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentName.java index 55b4898c340f..97d3089e4b3f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static GoldengateDeploymentEnvironmentName parse(String formattedString) { + public static @Nullable GoldengateDeploymentEnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,8 @@ public static List parseList(List f return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable GoldengateDeploymentEnvironmentName> values) { List list = new ArrayList<>(values.size()); for (GoldengateDeploymentEnvironmentName value : values) { if (value == null) { @@ -169,7 +171,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentName.java index 7fed40fa6844..778b8b24961c 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String goldengateDe .toString(); } - public static GoldengateDeploymentName parse(String formattedString) { + public static @Nullable GoldengateDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoldengateDeploymentName> values) { List list = new ArrayList<>(values.size()); for (GoldengateDeploymentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeName.java index cba51960a3d2..5bf81f9d1079 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String goldengateDe .toString(); } - public static GoldengateDeploymentTypeName parse(String formattedString) { + public static @Nullable GoldengateDeploymentTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -112,7 +113,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoldengateDeploymentTypeName> values) { List list = new ArrayList<>(values.size()); for (GoldengateDeploymentTypeName value : values) { if (value == null) { @@ -166,7 +167,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionName.java index 97dd49a8d4ad..be7223492384 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -91,7 +92,7 @@ public static String format(String project, String location, String goldengateDe .toString(); } - public static GoldengateDeploymentVersionName parse(String formattedString) { + public static @Nullable GoldengateDeploymentVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -113,7 +114,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GoldengateDeploymentVersionName> values) { List list = new ArrayList<>(values.size()); for (GoldengateDeploymentVersionName value : values) { if (value == null) { @@ -167,7 +168,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java index e9b5d04d077b..b28c5b73ef45 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java index 8f9f6ea615b1..b236b363733f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/MinorVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MinorVersionName parse(String formattedString) { + public static @Nullable MinorVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MinorVersionName> values) { List list = new ArrayList<>(values.size()); for (MinorVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java index 8140a7e4d538..2af011e18265 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbNetworkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String odbNetwork) .toString(); } - public static OdbNetworkName parse(String formattedString) { + public static @Nullable OdbNetworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OdbNetworkName> values) { List list = new ArrayList<>(values.size()); for (OdbNetworkName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java index 11ef7f4071bf..8110113eb840 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbSubnetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static OdbSubnetName parse(String formattedString) { + public static @Nullable OdbSubnetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OdbSubnetName> values) { List list = new ArrayList<>(values.size()); for (OdbSubnetName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java index b610e52e9af2..f605e8f85267 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/PluggableDatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String pluggableDat .toString(); } - public static PluggableDatabaseName parse(String formattedString) { + public static @Nullable PluggableDatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PluggableDatabaseName> values) { List list = new ArrayList<>(values.size()); for (PluggableDatabaseName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java index fd1210e02dea..36123cde0f77 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java @@ -39,6 +39,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. /** @@ -560,7 +561,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -607,7 +608,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -1501,7 +1502,7 @@ public final PollAirflowCommandResponse pollAirflowCommand(PollAirflowCommandReq * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(EnvironmentName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable EnvironmentName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1785,7 +1786,7 @@ public final UnaryCallable checkUpgradeCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserWorkloadsSecret createUserWorkloadsSecret( - EnvironmentName parent, UserWorkloadsSecret userWorkloadsSecret) { + @Nullable EnvironmentName parent, UserWorkloadsSecret userWorkloadsSecret) { CreateUserWorkloadsSecretRequest request = CreateUserWorkloadsSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1925,7 +1926,7 @@ public final UserWorkloadsSecret createUserWorkloadsSecret( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserWorkloadsSecret getUserWorkloadsSecret(UserWorkloadsSecretName name) { + public final UserWorkloadsSecret getUserWorkloadsSecret(@Nullable UserWorkloadsSecretName name) { GetUserWorkloadsSecretRequest request = GetUserWorkloadsSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2065,7 +2066,7 @@ public final UserWorkloadsSecret getUserWorkloadsSecret(GetUserWorkloadsSecretRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserWorkloadsSecretsPagedResponse listUserWorkloadsSecrets( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListUserWorkloadsSecretsRequest request = ListUserWorkloadsSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2348,7 +2349,7 @@ public final UserWorkloadsSecret updateUserWorkloadsSecret( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserWorkloadsSecret(UserWorkloadsSecretName name) { + public final void deleteUserWorkloadsSecret(@Nullable UserWorkloadsSecretName name) { DeleteUserWorkloadsSecretRequest request = DeleteUserWorkloadsSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2488,7 +2489,7 @@ public final void deleteUserWorkloadsSecret(DeleteUserWorkloadsSecretRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserWorkloadsConfigMap createUserWorkloadsConfigMap( - EnvironmentName parent, UserWorkloadsConfigMap userWorkloadsConfigMap) { + @Nullable EnvironmentName parent, UserWorkloadsConfigMap userWorkloadsConfigMap) { CreateUserWorkloadsConfigMapRequest request = CreateUserWorkloadsConfigMapRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2628,7 +2629,8 @@ public final UserWorkloadsConfigMap createUserWorkloadsConfigMap( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserWorkloadsConfigMap getUserWorkloadsConfigMap(UserWorkloadsConfigMapName name) { + public final UserWorkloadsConfigMap getUserWorkloadsConfigMap( + @Nullable UserWorkloadsConfigMapName name) { GetUserWorkloadsConfigMapRequest request = GetUserWorkloadsConfigMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2769,7 +2771,7 @@ public final UserWorkloadsConfigMap getUserWorkloadsConfigMap( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserWorkloadsConfigMapsPagedResponse listUserWorkloadsConfigMaps( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListUserWorkloadsConfigMapsRequest request = ListUserWorkloadsConfigMapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3054,7 +3056,7 @@ public final UserWorkloadsConfigMap updateUserWorkloadsConfigMap( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserWorkloadsConfigMap(UserWorkloadsConfigMapName name) { + public final void deleteUserWorkloadsConfigMap(@Nullable UserWorkloadsConfigMapName name) { DeleteUserWorkloadsConfigMapRequest request = DeleteUserWorkloadsConfigMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3572,8 +3574,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -3583,14 +3586,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3605,7 +3610,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3615,7 +3620,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -3654,10 +3659,11 @@ public static class ListWorkloadsPage ListWorkloadsPage> { private ListWorkloadsPage( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, - ListWorkloadsResponse response) { + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -3667,16 +3673,18 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, - ListWorkloadsResponse response) { + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, ApiFuture futureResponse) { @@ -3692,7 +3700,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3702,7 +3711,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -3743,12 +3752,13 @@ public static class ListUserWorkloadsSecretsPage ListUserWorkloadsSecretsPage> { private ListUserWorkloadsSecretsPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> context, - ListUserWorkloadsSecretsResponse response) { + @Nullable ListUserWorkloadsSecretsResponse response) { super(context, response); } @@ -3758,18 +3768,20 @@ private static ListUserWorkloadsSecretsPage createEmptyPage() { @Override protected ListUserWorkloadsSecretsPage createPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> context, - ListUserWorkloadsSecretsResponse response) { + @Nullable ListUserWorkloadsSecretsResponse response) { return new ListUserWorkloadsSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> @@ -3788,7 +3800,7 @@ public static class ListUserWorkloadsSecretsFixedSizeCollection ListUserWorkloadsSecretsFixedSizeCollection> { private ListUserWorkloadsSecretsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3798,7 +3810,7 @@ private static ListUserWorkloadsSecretsFixedSizeCollection createEmptyCollection @Override protected ListUserWorkloadsSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserWorkloadsSecretsFixedSizeCollection(pages, collectionSize); } } @@ -3840,12 +3852,13 @@ public static class ListUserWorkloadsConfigMapsPage ListUserWorkloadsConfigMapsPage> { private ListUserWorkloadsConfigMapsPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> context, - ListUserWorkloadsConfigMapsResponse response) { + @Nullable ListUserWorkloadsConfigMapsResponse response) { super(context, response); } @@ -3855,18 +3868,20 @@ private static ListUserWorkloadsConfigMapsPage createEmptyPage() { @Override protected ListUserWorkloadsConfigMapsPage createPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> context, - ListUserWorkloadsConfigMapsResponse response) { + @Nullable ListUserWorkloadsConfigMapsResponse response) { return new ListUserWorkloadsConfigMapsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> @@ -3885,7 +3900,7 @@ public static class ListUserWorkloadsConfigMapsFixedSizeCollection ListUserWorkloadsConfigMapsFixedSizeCollection> { private ListUserWorkloadsConfigMapsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3895,7 +3910,7 @@ private static ListUserWorkloadsConfigMapsFixedSizeCollection createEmptyCollect @Override protected ListUserWorkloadsConfigMapsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserWorkloadsConfigMapsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java index fcfe34412a61..635acf864d8a 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -361,7 +362,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); } @@ -381,7 +382,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java index 5f0030529f7d..25cb02764e5f 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsClient.java @@ -32,6 +32,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ImageVersionsClient implements BackgroundResource { - private final ImageVersionsSettings settings; + private final @Nullable ImageVersionsSettings settings; private final ImageVersionsStub stub; /** Constructs an instance of ImageVersionsClient with default settings. */ @@ -181,7 +182,7 @@ protected ImageVersionsClient(ImageVersionsStub stub) { this.stub = stub; } - public final ImageVersionsSettings getSettings() { + public final @Nullable ImageVersionsSettings getSettings() { return settings; } @@ -389,8 +390,9 @@ public static class ListImageVersionsPage ListImageVersionsPage> { private ListImageVersionsPage( - PageContext context, - ListImageVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageVersionsResponse response) { super(context, response); } @@ -400,14 +402,16 @@ private static ListImageVersionsPage createEmptyPage() { @Override protected ListImageVersionsPage createPage( - PageContext context, - ListImageVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageVersionsResponse response) { return new ListImageVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -422,7 +426,7 @@ public static class ListImageVersionsFixedSizeCollection ListImageVersionsFixedSizeCollection> { private ListImageVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -432,7 +436,7 @@ private static ListImageVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListImageVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImageVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java index 482d67c171ce..50c67e07633a 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/ImageVersionsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageVersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStub.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStub.java index db2e3801c314..5671c8344510 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStub.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStub.java @@ -69,6 +69,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,11 +81,12 @@ @Generated("by gapic-generator-java") public abstract class EnvironmentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java index 0498ed0e9be2..0a733cb70da2 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/EnvironmentsStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -804,7 +805,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); } @@ -970,7 +971,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEnvironmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java index 1c7d78407ece..b2e3ff380cb8 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/ImageVersionsStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,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); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listImageVersionsSettings = PagedCallSettings.newBuilder(LIST_IMAGE_VERSIONS_PAGE_STR_FACT); diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsClient.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsClient.java index a6b8f3f4c82b..1fceacc045fc 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsClient.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsClient.java @@ -39,6 +39,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. /** @@ -576,7 +577,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EnvironmentsClient implements BackgroundResource { - private final EnvironmentsSettings settings; + private final @Nullable EnvironmentsSettings settings; private final EnvironmentsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -623,7 +624,7 @@ protected EnvironmentsClient(EnvironmentsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EnvironmentsSettings getSettings() { + public final @Nullable EnvironmentsSettings getSettings() { return settings; } @@ -1707,7 +1708,7 @@ public final PollAirflowCommandResponse pollAirflowCommand(PollAirflowCommandReq * "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkloadsPagedResponse listWorkloads(EnvironmentName parent) { + public final ListWorkloadsPagedResponse listWorkloads(@Nullable EnvironmentName parent) { ListWorkloadsRequest request = ListWorkloadsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1897,7 +1898,7 @@ public final UnaryCallable listWork * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserWorkloadsSecret createUserWorkloadsSecret( - EnvironmentName parent, UserWorkloadsSecret userWorkloadsSecret) { + @Nullable EnvironmentName parent, UserWorkloadsSecret userWorkloadsSecret) { CreateUserWorkloadsSecretRequest request = CreateUserWorkloadsSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2037,7 +2038,7 @@ public final UserWorkloadsSecret createUserWorkloadsSecret( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserWorkloadsSecret getUserWorkloadsSecret(UserWorkloadsSecretName name) { + public final UserWorkloadsSecret getUserWorkloadsSecret(@Nullable UserWorkloadsSecretName name) { GetUserWorkloadsSecretRequest request = GetUserWorkloadsSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2177,7 +2178,7 @@ public final UserWorkloadsSecret getUserWorkloadsSecret(GetUserWorkloadsSecretRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserWorkloadsSecretsPagedResponse listUserWorkloadsSecrets( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListUserWorkloadsSecretsRequest request = ListUserWorkloadsSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2460,7 +2461,7 @@ public final UserWorkloadsSecret updateUserWorkloadsSecret( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserWorkloadsSecret(UserWorkloadsSecretName name) { + public final void deleteUserWorkloadsSecret(@Nullable UserWorkloadsSecretName name) { DeleteUserWorkloadsSecretRequest request = DeleteUserWorkloadsSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2600,7 +2601,7 @@ public final void deleteUserWorkloadsSecret(DeleteUserWorkloadsSecretRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UserWorkloadsConfigMap createUserWorkloadsConfigMap( - EnvironmentName parent, UserWorkloadsConfigMap userWorkloadsConfigMap) { + @Nullable EnvironmentName parent, UserWorkloadsConfigMap userWorkloadsConfigMap) { CreateUserWorkloadsConfigMapRequest request = CreateUserWorkloadsConfigMapRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2740,7 +2741,8 @@ public final UserWorkloadsConfigMap createUserWorkloadsConfigMap( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserWorkloadsConfigMap getUserWorkloadsConfigMap(UserWorkloadsConfigMapName name) { + public final UserWorkloadsConfigMap getUserWorkloadsConfigMap( + @Nullable UserWorkloadsConfigMapName name) { GetUserWorkloadsConfigMapRequest request = GetUserWorkloadsConfigMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2881,7 +2883,7 @@ public final UserWorkloadsConfigMap getUserWorkloadsConfigMap( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUserWorkloadsConfigMapsPagedResponse listUserWorkloadsConfigMaps( - EnvironmentName parent) { + @Nullable EnvironmentName parent) { ListUserWorkloadsConfigMapsRequest request = ListUserWorkloadsConfigMapsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3166,7 +3168,7 @@ public final UserWorkloadsConfigMap updateUserWorkloadsConfigMap( * "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserWorkloadsConfigMap(UserWorkloadsConfigMapName name) { + public final void deleteUserWorkloadsConfigMap(@Nullable UserWorkloadsConfigMapName name) { DeleteUserWorkloadsConfigMapRequest request = DeleteUserWorkloadsConfigMapRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3684,8 +3686,9 @@ public static class ListEnvironmentsPage ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage> { private ListEnvironmentsPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { super(context, response); } @@ -3695,14 +3698,16 @@ private static ListEnvironmentsPage createEmptyPage() { @Override protected ListEnvironmentsPage createPage( - PageContext context, - ListEnvironmentsResponse response) { + @Nullable PageContext + context, + @Nullable ListEnvironmentsResponse response) { return new ListEnvironmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3717,7 +3722,7 @@ public static class ListEnvironmentsFixedSizeCollection ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3727,7 +3732,7 @@ private static ListEnvironmentsFixedSizeCollection createEmptyCollection() { @Override protected ListEnvironmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEnvironmentsFixedSizeCollection(pages, collectionSize); } } @@ -3766,10 +3771,11 @@ public static class ListWorkloadsPage ListWorkloadsPage> { private ListWorkloadsPage( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, - ListWorkloadsResponse response) { + @Nullable ListWorkloadsResponse response) { super(context, response); } @@ -3779,16 +3785,18 @@ private static ListWorkloadsPage createEmptyPage() { @Override protected ListWorkloadsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, - ListWorkloadsResponse response) { + @Nullable ListWorkloadsResponse response) { return new ListWorkloadsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkloadsRequest, ListWorkloadsResponse, ListWorkloadsResponse.ComposerWorkload> context, ApiFuture futureResponse) { @@ -3804,7 +3812,8 @@ public static class ListWorkloadsFixedSizeCollection ListWorkloadsPage, ListWorkloadsFixedSizeCollection> { - private ListWorkloadsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3814,7 +3823,7 @@ private static ListWorkloadsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkloadsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkloadsFixedSizeCollection(pages, collectionSize); } } @@ -3855,12 +3864,13 @@ public static class ListUserWorkloadsSecretsPage ListUserWorkloadsSecretsPage> { private ListUserWorkloadsSecretsPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> context, - ListUserWorkloadsSecretsResponse response) { + @Nullable ListUserWorkloadsSecretsResponse response) { super(context, response); } @@ -3870,18 +3880,20 @@ private static ListUserWorkloadsSecretsPage createEmptyPage() { @Override protected ListUserWorkloadsSecretsPage createPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> context, - ListUserWorkloadsSecretsResponse response) { + @Nullable ListUserWorkloadsSecretsResponse response) { return new ListUserWorkloadsSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserWorkloadsSecretsRequest, ListUserWorkloadsSecretsResponse, UserWorkloadsSecret> @@ -3900,7 +3912,7 @@ public static class ListUserWorkloadsSecretsFixedSizeCollection ListUserWorkloadsSecretsFixedSizeCollection> { private ListUserWorkloadsSecretsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3910,7 +3922,7 @@ private static ListUserWorkloadsSecretsFixedSizeCollection createEmptyCollection @Override protected ListUserWorkloadsSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserWorkloadsSecretsFixedSizeCollection(pages, collectionSize); } } @@ -3952,12 +3964,13 @@ public static class ListUserWorkloadsConfigMapsPage ListUserWorkloadsConfigMapsPage> { private ListUserWorkloadsConfigMapsPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> context, - ListUserWorkloadsConfigMapsResponse response) { + @Nullable ListUserWorkloadsConfigMapsResponse response) { super(context, response); } @@ -3967,18 +3980,20 @@ private static ListUserWorkloadsConfigMapsPage createEmptyPage() { @Override protected ListUserWorkloadsConfigMapsPage createPage( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> context, - ListUserWorkloadsConfigMapsResponse response) { + @Nullable ListUserWorkloadsConfigMapsResponse response) { return new ListUserWorkloadsConfigMapsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUserWorkloadsConfigMapsRequest, ListUserWorkloadsConfigMapsResponse, UserWorkloadsConfigMap> @@ -3997,7 +4012,7 @@ public static class ListUserWorkloadsConfigMapsFixedSizeCollection ListUserWorkloadsConfigMapsFixedSizeCollection> { private ListUserWorkloadsConfigMapsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4007,7 +4022,7 @@ private static ListUserWorkloadsConfigMapsFixedSizeCollection createEmptyCollect @Override protected ListUserWorkloadsConfigMapsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserWorkloadsConfigMapsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsSettings.java index b4365d09dc4e..b43093226483 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentsSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -373,7 +374,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); } @@ -393,7 +394,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EnvironmentsStubSettings.newBuilder(clientContext)); } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsClient.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsClient.java index 194fd281482f..704877109f51 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsClient.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsClient.java @@ -33,6 +33,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. /** @@ -143,7 +144,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageVersionsClient implements BackgroundResource { - private final ImageVersionsSettings settings; + private final @Nullable ImageVersionsSettings settings; private final ImageVersionsStub stub; /** Constructs an instance of ImageVersionsClient with default settings. */ @@ -183,7 +184,7 @@ protected ImageVersionsClient(ImageVersionsStub stub) { this.stub = stub; } - public final ImageVersionsSettings getSettings() { + public final @Nullable ImageVersionsSettings getSettings() { return settings; } @@ -391,8 +392,9 @@ public static class ListImageVersionsPage ListImageVersionsPage> { private ListImageVersionsPage( - PageContext context, - ListImageVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageVersionsResponse response) { super(context, response); } @@ -402,14 +404,16 @@ private static ListImageVersionsPage createEmptyPage() { @Override protected ListImageVersionsPage createPage( - PageContext context, - ListImageVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageVersionsResponse response) { return new ListImageVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -424,7 +428,7 @@ public static class ListImageVersionsFixedSizeCollection ListImageVersionsFixedSizeCollection> { private ListImageVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -434,7 +438,7 @@ private static ListImageVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListImageVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImageVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsSettings.java index 381df84c2650..167ecd6888ae 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/ImageVersionsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageVersionsStubSettings.newBuilder(clientContext)); } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStub.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStub.java index 7122a6631a72..61423d10d6a0 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStub.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStub.java @@ -71,6 +71,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -83,11 +84,12 @@ @Generated("by gapic-generator-java") public abstract class EnvironmentsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java index 15b4ebd3374e..a0d836dd7a1d 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/EnvironmentsStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -820,7 +821,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); } @@ -993,7 +994,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createEnvironmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java index 0815c7e28135..b7fbb662753a 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/ImageVersionsStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,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); } @@ -339,7 +340,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listImageVersionsSettings = PagedCallSettings.newBuilder(LIST_IMAGE_VERSIONS_PAGE_STR_FACT); diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentName.java index 9b02586df638..f0f2e0fdf364 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String environment) .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapName.java index e8aa0d0524b4..ed29eef6b0c5 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsConfigMapName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static UserWorkloadsConfigMapName parse(String formattedString) { + public static @Nullable UserWorkloadsConfigMapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserWorkloadsConfigMapName> values) { List list = new ArrayList<>(values.size()); for (UserWorkloadsConfigMapName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretName.java index 26b74f81cf4e..170517ba3866 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/UserWorkloadsSecretName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static UserWorkloadsSecretName parse(String formattedString) { + public static @Nullable UserWorkloadsSecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserWorkloadsSecretName> values) { List list = new ArrayList<>(values.size()); for (UserWorkloadsSecretName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentName.java index fd2002559897..7b3e543f7133 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/EnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String environment) .toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapName.java index d084fff245fb..8e954dddb449 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsConfigMapName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static UserWorkloadsConfigMapName parse(String formattedString) { + public static @Nullable UserWorkloadsConfigMapName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserWorkloadsConfigMapName> values) { List list = new ArrayList<>(values.size()); for (UserWorkloadsConfigMapName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretName.java b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretName.java index 0e3ce69485de..bbbdba8af093 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretName.java +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/UserWorkloadsSecretName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static UserWorkloadsSecretName parse(String formattedString) { + public static @Nullable UserWorkloadsSecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserWorkloadsSecretName> values) { List list = new ArrayList<>(values.size()); for (UserWorkloadsSecretName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java index 1536f91029cc..91b277af3208 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java @@ -33,6 +33,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. /** @@ -380,7 +381,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrgPolicyClient implements BackgroundResource { - private final OrgPolicySettings settings; + private final @Nullable OrgPolicySettings settings; private final OrgPolicyStub stub; /** Constructs an instance of OrgPolicyClient with default settings. */ @@ -418,7 +419,7 @@ protected OrgPolicyClient(OrgPolicyStub stub) { this.stub = stub; } - public final OrgPolicySettings getSettings() { + public final @Nullable OrgPolicySettings getSettings() { return settings; } @@ -457,7 +458,7 @@ public OrgPolicyStub getStub() { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConstraintsPagedResponse listConstraints(FolderName parent) { + public final ListConstraintsPagedResponse listConstraints(@Nullable FolderName parent) { ListConstraintsRequest request = ListConstraintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -496,7 +497,7 @@ public final ListConstraintsPagedResponse listConstraints(FolderName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConstraintsPagedResponse listConstraints(OrganizationName parent) { + public final ListConstraintsPagedResponse listConstraints(@Nullable OrganizationName parent) { ListConstraintsRequest request = ListConstraintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -535,7 +536,7 @@ public final ListConstraintsPagedResponse listConstraints(OrganizationName paren * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConstraintsPagedResponse listConstraints(ProjectName parent) { + public final ListConstraintsPagedResponse listConstraints(@Nullable ProjectName parent) { ListConstraintsRequest request = ListConstraintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -714,7 +715,7 @@ public final ListConstraintsPagedResponse listConstraints(ListConstraintsRequest * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPoliciesPagedResponse listPolicies(FolderName parent) { + public final ListPoliciesPagedResponse listPolicies(@Nullable FolderName parent) { ListPoliciesRequest request = ListPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -753,7 +754,7 @@ public final ListPoliciesPagedResponse listPolicies(FolderName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPoliciesPagedResponse listPolicies(OrganizationName parent) { + public final ListPoliciesPagedResponse listPolicies(@Nullable OrganizationName parent) { ListPoliciesRequest request = ListPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -792,7 +793,7 @@ public final ListPoliciesPagedResponse listPolicies(OrganizationName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPoliciesPagedResponse listPolicies(ProjectName parent) { + public final ListPoliciesPagedResponse listPolicies(@Nullable ProjectName parent) { ListPoliciesRequest request = ListPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -963,7 +964,7 @@ public final UnaryCallable listPolici * [Policy][google.cloud.orgpolicy.v2.Policy] for naming requirements. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getPolicy(PolicyName name) { + public final Policy getPolicy(@Nullable PolicyName name) { GetPolicyRequest request = GetPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPolicy(request); @@ -1085,7 +1086,7 @@ public final UnaryCallable getPolicyCallable() { * [Policy][google.cloud.orgpolicy.v2.Policy] for naming requirements. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getEffectivePolicy(PolicyName name) { + public final Policy getEffectivePolicy(@Nullable PolicyName name) { GetEffectivePolicyRequest request = GetEffectivePolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1220,7 +1221,7 @@ public final UnaryCallable getEffectivePolicy * @param policy Required. Policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy createPolicy(FolderName parent, Policy policy) { + public final Policy createPolicy(@Nullable FolderName parent, Policy policy) { CreatePolicyRequest request = CreatePolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1264,7 +1265,7 @@ public final Policy createPolicy(FolderName parent, Policy policy) { * @param policy Required. Policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy createPolicy(OrganizationName parent, Policy policy) { + public final Policy createPolicy(@Nullable OrganizationName parent, Policy policy) { CreatePolicyRequest request = CreatePolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1308,7 +1309,7 @@ public final Policy createPolicy(OrganizationName parent, Policy policy) { * @param policy Required. Policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy createPolicy(ProjectName parent, Policy policy) { + public final Policy createPolicy(@Nullable ProjectName parent, Policy policy) { CreatePolicyRequest request = CreatePolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1548,7 +1549,7 @@ public final UnaryCallable updatePolicyCallable() { * @param name Required. Name of the policy to delete. See the policy entry for naming rules. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePolicy(PolicyName name) { + public final void deletePolicy(@Nullable PolicyName name) { DeletePolicyRequest request = DeletePolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePolicy(request); @@ -1678,7 +1679,7 @@ public final UnaryCallable deletePolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomConstraint createCustomConstraint( - OrganizationName parent, CustomConstraint customConstraint) { + @Nullable OrganizationName parent, CustomConstraint customConstraint) { CreateCustomConstraintRequest request = CreateCustomConstraintRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1919,7 +1920,7 @@ public final CustomConstraint updateCustomConstraint(UpdateCustomConstraintReque * constraint entry for naming requirements. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomConstraint getCustomConstraint(CustomConstraintName name) { + public final CustomConstraint getCustomConstraint(@Nullable CustomConstraintName name) { GetCustomConstraintRequest request = GetCustomConstraintRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2049,7 +2050,8 @@ public final CustomConstraint getCustomConstraint(GetCustomConstraintRequest req * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomConstraintsPagedResponse listCustomConstraints(OrganizationName parent) { + public final ListCustomConstraintsPagedResponse listCustomConstraints( + @Nullable OrganizationName parent) { ListCustomConstraintsRequest request = ListCustomConstraintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2222,7 +2224,7 @@ public final ListCustomConstraintsPagedResponse listCustomConstraints( * for naming rules. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomConstraint(CustomConstraintName name) { + public final void deleteCustomConstraint(@Nullable CustomConstraintName name) { DeleteCustomConstraintRequest request = DeleteCustomConstraintRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2383,8 +2385,8 @@ public static class ListConstraintsPage ListConstraintsRequest, ListConstraintsResponse, Constraint, ListConstraintsPage> { private ListConstraintsPage( - PageContext context, - ListConstraintsResponse response) { + @Nullable PageContext context, + @Nullable ListConstraintsResponse response) { super(context, response); } @@ -2394,14 +2396,14 @@ private static ListConstraintsPage createEmptyPage() { @Override protected ListConstraintsPage createPage( - PageContext context, - ListConstraintsResponse response) { + @Nullable PageContext context, + @Nullable ListConstraintsResponse response) { return new ListConstraintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2416,7 +2418,7 @@ public static class ListConstraintsFixedSizeCollection ListConstraintsFixedSizeCollection> { private ListConstraintsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2426,7 +2428,7 @@ private static ListConstraintsFixedSizeCollection createEmptyCollection() { @Override protected ListConstraintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConstraintsFixedSizeCollection(pages, collectionSize); } } @@ -2459,8 +2461,8 @@ public static class ListPoliciesPage extends AbstractPage { private ListPoliciesPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { super(context, response); } @@ -2470,14 +2472,14 @@ private static ListPoliciesPage createEmptyPage() { @Override protected ListPoliciesPage createPage( - PageContext context, - ListPoliciesResponse response) { + @Nullable PageContext context, + @Nullable ListPoliciesResponse response) { return new ListPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2491,7 +2493,8 @@ public static class ListPoliciesFixedSizeCollection ListPoliciesPage, ListPoliciesFixedSizeCollection> { - private ListPoliciesFixedSizeCollection(List pages, int collectionSize) { + private ListPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2501,7 +2504,7 @@ private static ListPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -2539,9 +2542,11 @@ public static class ListCustomConstraintsPage ListCustomConstraintsPage> { private ListCustomConstraintsPage( - PageContext + @Nullable + PageContext< + ListCustomConstraintsRequest, ListCustomConstraintsResponse, CustomConstraint> context, - ListCustomConstraintsResponse response) { + @Nullable ListCustomConstraintsResponse response) { super(context, response); } @@ -2551,15 +2556,19 @@ private static ListCustomConstraintsPage createEmptyPage() { @Override protected ListCustomConstraintsPage createPage( - PageContext + @Nullable + PageContext< + ListCustomConstraintsRequest, ListCustomConstraintsResponse, CustomConstraint> context, - ListCustomConstraintsResponse response) { + @Nullable ListCustomConstraintsResponse response) { return new ListCustomConstraintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListCustomConstraintsRequest, ListCustomConstraintsResponse, CustomConstraint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2575,7 +2584,7 @@ public static class ListCustomConstraintsFixedSizeCollection ListCustomConstraintsFixedSizeCollection> { private ListCustomConstraintsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2585,7 +2594,7 @@ private static ListCustomConstraintsFixedSizeCollection createEmptyCollection() @Override protected ListCustomConstraintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomConstraintsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java index 9484b3ceb6ba..59e309c632cc 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicySettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrgPolicyStubSettings.newBuilder(clientContext)); } diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java index 56b70646a29f..2024b61377a4 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/OrgPolicyStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -493,7 +494,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); } @@ -593,7 +594,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConstraintsSettings = PagedCallSettings.newBuilder(LIST_CONSTRAINTS_PAGE_STR_FACT); diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ConstraintName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ConstraintName.java index a28b55d5574d..888582848e24 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ConstraintName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ConstraintName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatOrganizationConstraintName(String organization, Strin .toString(); } - public static ConstraintName parse(String formattedString) { + public static @Nullable ConstraintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -184,7 +185,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConstraintName> values) { List list = new ArrayList<>(values.size()); for (ConstraintName value : values) { if (value == null) { @@ -237,7 +238,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/CustomConstraintName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/CustomConstraintName.java index 1b577f8afc9d..53542a64a043 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/CustomConstraintName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/CustomConstraintName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String organization, String customConstraint) { .toString(); } - public static CustomConstraintName parse(String formattedString) { + public static @Nullable CustomConstraintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomConstraintName> values) { List list = new ArrayList<>(values.size()); for (CustomConstraintName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/FolderName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/FolderName.java index 7d20eb57a4dd..2cf141a77148 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/FolderName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrganizationName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrganizationName.java index 0338c8ea2ae9..9bd4e6ec1555 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrganizationName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/PolicyName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/PolicyName.java index 7092820d06c6..a1967c81ed4a 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/PolicyName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/PolicyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatOrganizationPolicyName(String organization, String po .toString(); } - public static PolicyName parse(String formattedString) { + public static @Nullable PolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PolicyName> values) { List list = new ArrayList<>(values.size()); for (PolicyName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ProjectName.java b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ProjectName.java index 27bf5f738fa1..d16f9fed4134 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ProjectName.java +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/src/main/java/com/google/cloud/orgpolicy/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceClient.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceClient.java index db8e4b88b221..37bd972daabf 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceClient.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceClient.java @@ -34,6 +34,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. /** @@ -359,7 +360,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OsConfigServiceClient implements BackgroundResource { - private final OsConfigServiceSettings settings; + private final @Nullable OsConfigServiceSettings settings; private final OsConfigServiceStub stub; /** Constructs an instance of OsConfigServiceClient with default settings. */ @@ -399,7 +400,7 @@ protected OsConfigServiceClient(OsConfigServiceStub stub) { this.stub = stub; } - public final OsConfigServiceSettings getSettings() { + public final @Nullable OsConfigServiceSettings getSettings() { return settings; } @@ -500,7 +501,7 @@ public final PatchJobs.PatchJob executePatchJob(PatchJobs.ExecutePatchJobRequest * @param name Required. Name of the patch in the form `projects/*/patchJobs/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchJobs.PatchJob getPatchJob(PatchJobName name) { + public final PatchJobs.PatchJob getPatchJob(@Nullable PatchJobName name) { PatchJobs.GetPatchJobRequest request = PatchJobs.GetPatchJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -675,7 +676,7 @@ public final PatchJobs.PatchJob cancelPatchJob(PatchJobs.CancelPatchJobRequest r * @param parent Required. In the form of `projects/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPatchJobsPagedResponse listPatchJobs(ProjectName parent) { + public final ListPatchJobsPagedResponse listPatchJobs(@Nullable ProjectName parent) { PatchJobs.ListPatchJobsRequest request = PatchJobs.ListPatchJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -846,7 +847,7 @@ public final ListPatchJobsPagedResponse listPatchJobs(PatchJobs.ListPatchJobsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPatchJobInstanceDetailsPagedResponse listPatchJobInstanceDetails( - PatchJobName parent) { + @Nullable PatchJobName parent) { PatchJobs.ListPatchJobInstanceDetailsRequest request = PatchJobs.ListPatchJobInstanceDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1037,7 +1038,7 @@ public final ListPatchJobInstanceDetailsPagedResponse listPatchJobInstanceDetail * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PatchDeployments.PatchDeployment createPatchDeployment( - ProjectName parent, + @Nullable ProjectName parent, PatchDeployments.PatchDeployment patchDeployment, String patchDeploymentId) { PatchDeployments.CreatePatchDeploymentRequest request = @@ -1183,7 +1184,8 @@ public final PatchDeployments.PatchDeployment createPatchDeployment( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchDeployments.PatchDeployment getPatchDeployment(PatchDeploymentName name) { + public final PatchDeployments.PatchDeployment getPatchDeployment( + @Nullable PatchDeploymentName name) { PatchDeployments.GetPatchDeploymentRequest request = PatchDeployments.GetPatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1302,7 +1304,8 @@ public final PatchDeployments.PatchDeployment getPatchDeployment( * @param parent Required. The resource name of the parent in the form `projects/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPatchDeploymentsPagedResponse listPatchDeployments(ProjectName parent) { + public final ListPatchDeploymentsPagedResponse listPatchDeployments( + @Nullable ProjectName parent) { PatchDeployments.ListPatchDeploymentsRequest request = PatchDeployments.ListPatchDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1472,7 +1475,7 @@ public final ListPatchDeploymentsPagedResponse listPatchDeployments( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePatchDeployment(PatchDeploymentName name) { + public final void deletePatchDeployment(@Nullable PatchDeploymentName name) { PatchDeployments.DeletePatchDeploymentRequest request = PatchDeployments.DeletePatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1686,7 +1689,8 @@ public final PatchDeployments.PatchDeployment updatePatchDeployment( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchDeployments.PatchDeployment pausePatchDeployment(PatchDeploymentName name) { + public final PatchDeployments.PatchDeployment pausePatchDeployment( + @Nullable PatchDeploymentName name) { PatchDeployments.PausePatchDeploymentRequest request = PatchDeployments.PausePatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1808,7 +1812,8 @@ public final PatchDeployments.PatchDeployment pausePatchDeployment( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchDeployments.PatchDeployment resumePatchDeployment(PatchDeploymentName name) { + public final PatchDeployments.PatchDeployment resumePatchDeployment( + @Nullable PatchDeploymentName name) { PatchDeployments.ResumePatchDeploymentRequest request = PatchDeployments.ResumePatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1971,10 +1976,11 @@ public static class ListPatchJobsPage ListPatchJobsPage> { private ListPatchJobsPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, - PatchJobs.ListPatchJobsResponse response) { + PatchJobs.@Nullable ListPatchJobsResponse response) { super(context, response); } @@ -1984,16 +1990,18 @@ private static ListPatchJobsPage createEmptyPage() { @Override protected ListPatchJobsPage createPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, - PatchJobs.ListPatchJobsResponse response) { + PatchJobs.@Nullable ListPatchJobsResponse response) { return new ListPatchJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, ApiFuture futureResponse) { @@ -2009,7 +2017,8 @@ public static class ListPatchJobsFixedSizeCollection ListPatchJobsPage, ListPatchJobsFixedSizeCollection> { - private ListPatchJobsFixedSizeCollection(List pages, int collectionSize) { + private ListPatchJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2019,7 +2028,7 @@ private static ListPatchJobsFixedSizeCollection createEmptyCollection() { @Override protected ListPatchJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchJobsFixedSizeCollection(pages, collectionSize); } } @@ -2061,12 +2070,13 @@ public static class ListPatchJobInstanceDetailsPage ListPatchJobInstanceDetailsPage> { private ListPatchJobInstanceDetailsPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> context, - PatchJobs.ListPatchJobInstanceDetailsResponse response) { + PatchJobs.@Nullable ListPatchJobInstanceDetailsResponse response) { super(context, response); } @@ -2076,18 +2086,20 @@ private static ListPatchJobInstanceDetailsPage createEmptyPage() { @Override protected ListPatchJobInstanceDetailsPage createPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> context, - PatchJobs.ListPatchJobInstanceDetailsResponse response) { + PatchJobs.@Nullable ListPatchJobInstanceDetailsResponse response) { return new ListPatchJobInstanceDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> @@ -2106,7 +2118,7 @@ public static class ListPatchJobInstanceDetailsFixedSizeCollection ListPatchJobInstanceDetailsFixedSizeCollection> { private ListPatchJobInstanceDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2116,7 +2128,7 @@ private static ListPatchJobInstanceDetailsFixedSizeCollection createEmptyCollect @Override protected ListPatchJobInstanceDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchJobInstanceDetailsFixedSizeCollection(pages, collectionSize); } } @@ -2157,12 +2169,13 @@ public static class ListPatchDeploymentsPage ListPatchDeploymentsPage> { private ListPatchDeploymentsPage( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> context, - PatchDeployments.ListPatchDeploymentsResponse response) { + PatchDeployments.@Nullable ListPatchDeploymentsResponse response) { super(context, response); } @@ -2172,18 +2185,20 @@ private static ListPatchDeploymentsPage createEmptyPage() { @Override protected ListPatchDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> context, - PatchDeployments.ListPatchDeploymentsResponse response) { + PatchDeployments.@Nullable ListPatchDeploymentsResponse response) { return new ListPatchDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> @@ -2202,7 +2217,7 @@ public static class ListPatchDeploymentsFixedSizeCollection ListPatchDeploymentsFixedSizeCollection> { private ListPatchDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2212,7 +2227,7 @@ private static ListPatchDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListPatchDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchDeploymentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceSettings.java index b6ec75075779..633ba45fcc92 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -254,7 +255,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OsConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceClient.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceClient.java index 7d77ec5e6686..378fc1449799 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceClient.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceClient.java @@ -39,6 +39,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. /** @@ -383,7 +384,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OsConfigZonalServiceClient implements BackgroundResource { - private final OsConfigZonalServiceSettings settings; + private final @Nullable OsConfigZonalServiceSettings settings; private final OsConfigZonalServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -431,7 +432,7 @@ protected OsConfigZonalServiceClient(OsConfigZonalServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OsConfigZonalServiceSettings getSettings() { + public final @Nullable OsConfigZonalServiceSettings getSettings() { return settings; } @@ -505,7 +506,9 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createOSPolicyAssignmentAsync( - LocationName parent, OSPolicyAssignment osPolicyAssignment, String osPolicyAssignmentId) { + @Nullable LocationName parent, + OSPolicyAssignment osPolicyAssignment, + String osPolicyAssignmentId) { CreateOSPolicyAssignmentRequest request = CreateOSPolicyAssignmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -893,7 +896,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}{@literal @}{revisionId}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OSPolicyAssignment getOSPolicyAssignment(OSPolicyAssignmentName name) { + public final OSPolicyAssignment getOSPolicyAssignment(@Nullable OSPolicyAssignmentName name) { GetOSPolicyAssignmentRequest request = GetOSPolicyAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1031,7 +1034,8 @@ public final OSPolicyAssignment getOSPolicyAssignment(GetOSPolicyAssignmentReque * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments(LocationName parent) { + public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments( + @Nullable LocationName parent) { ListOSPolicyAssignmentsRequest request = ListOSPolicyAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1215,7 +1219,7 @@ public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignmentRevisions( - OSPolicyAssignmentName name) { + @Nullable OSPolicyAssignmentName name) { ListOSPolicyAssignmentRevisionsRequest request = ListOSPolicyAssignmentRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1411,7 +1415,7 @@ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteOSPolicyAssignmentAsync(OSPolicyAssignmentName name) { + deleteOSPolicyAssignmentAsync(@Nullable OSPolicyAssignmentName name) { DeleteOSPolicyAssignmentRequest request = DeleteOSPolicyAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1622,7 +1626,7 @@ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport( - OSPolicyAssignmentReportName name) { + @Nullable OSPolicyAssignmentReportName name) { GetOSPolicyAssignmentReportRequest request = GetOSPolicyAssignmentReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1776,7 +1780,7 @@ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentReports( - InstanceOSPolicyAssignmentName parent) { + @Nullable InstanceOSPolicyAssignmentName parent) { ListOSPolicyAssignmentReportsRequest request = ListOSPolicyAssignmentReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1985,7 +1989,7 @@ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentRe * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Inventory getInventory(InventoryName name) { + public final Inventory getInventory(@Nullable InventoryName name) { GetInventoryRequest request = GetInventoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInventory(request); @@ -2111,7 +2115,7 @@ public final UnaryCallable getInventoryCallable( *

For `{project}`, either `project-number` or `project-id` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInventoriesPagedResponse listInventories(InstanceName parent) { + public final ListInventoriesPagedResponse listInventories(@Nullable InstanceName parent) { ListInventoriesRequest request = ListInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2302,7 +2306,7 @@ public final ListInventoriesPagedResponse listInventories(ListInventoriesRequest * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VulnerabilityReport getVulnerabilityReport(VulnerabilityReportName name) { + public final VulnerabilityReport getVulnerabilityReport(@Nullable VulnerabilityReportName name) { GetVulnerabilityReportRequest request = GetVulnerabilityReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2434,7 +2438,8 @@ public final VulnerabilityReport getVulnerabilityReport(GetVulnerabilityReportRe *

For `{project}`, either `project-number` or `project-id` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(InstanceName parent) { + public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports( + @Nullable InstanceName parent) { ListVulnerabilityReportsRequest request = ListVulnerabilityReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2662,10 +2667,11 @@ public static class ListOSPolicyAssignmentsPage ListOSPolicyAssignmentsPage> { private ListOSPolicyAssignmentsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentsResponse response) { + @Nullable ListOSPolicyAssignmentsResponse response) { super(context, response); } @@ -2675,16 +2681,18 @@ private static ListOSPolicyAssignmentsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentsResponse response) { + @Nullable ListOSPolicyAssignmentsResponse response) { return new ListOSPolicyAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, ApiFuture futureResponse) { @@ -2701,7 +2709,7 @@ public static class ListOSPolicyAssignmentsFixedSizeCollection ListOSPolicyAssignmentsFixedSizeCollection> { private ListOSPolicyAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2711,7 +2719,7 @@ private static ListOSPolicyAssignmentsFixedSizeCollection createEmptyCollection( @Override protected ListOSPolicyAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -2753,12 +2761,13 @@ public static class ListOSPolicyAssignmentRevisionsPage ListOSPolicyAssignmentRevisionsPage> { private ListOSPolicyAssignmentRevisionsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentRevisionsResponse response) { + @Nullable ListOSPolicyAssignmentRevisionsResponse response) { super(context, response); } @@ -2768,18 +2777,20 @@ private static ListOSPolicyAssignmentRevisionsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentRevisionsResponse response) { + @Nullable ListOSPolicyAssignmentRevisionsResponse response) { return new ListOSPolicyAssignmentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> @@ -2798,7 +2809,7 @@ public static class ListOSPolicyAssignmentRevisionsFixedSizeCollection ListOSPolicyAssignmentRevisionsFixedSizeCollection> { private ListOSPolicyAssignmentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2808,7 +2819,7 @@ private static ListOSPolicyAssignmentRevisionsFixedSizeCollection createEmptyCol @Override protected ListOSPolicyAssignmentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -2850,12 +2861,13 @@ public static class ListOSPolicyAssignmentReportsPage ListOSPolicyAssignmentReportsPage> { private ListOSPolicyAssignmentReportsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> context, - ListOSPolicyAssignmentReportsResponse response) { + @Nullable ListOSPolicyAssignmentReportsResponse response) { super(context, response); } @@ -2865,18 +2877,20 @@ private static ListOSPolicyAssignmentReportsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentReportsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> context, - ListOSPolicyAssignmentReportsResponse response) { + @Nullable ListOSPolicyAssignmentReportsResponse response) { return new ListOSPolicyAssignmentReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> @@ -2895,7 +2909,7 @@ public static class ListOSPolicyAssignmentReportsFixedSizeCollection ListOSPolicyAssignmentReportsFixedSizeCollection> { private ListOSPolicyAssignmentReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2905,7 +2919,7 @@ private static ListOSPolicyAssignmentReportsFixedSizeCollection createEmptyColle @Override protected ListOSPolicyAssignmentReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentReportsFixedSizeCollection(pages, collectionSize); } } @@ -2939,8 +2953,8 @@ public static class ListInventoriesPage ListInventoriesRequest, ListInventoriesResponse, Inventory, ListInventoriesPage> { private ListInventoriesPage( - PageContext context, - ListInventoriesResponse response) { + @Nullable PageContext context, + @Nullable ListInventoriesResponse response) { super(context, response); } @@ -2950,14 +2964,14 @@ private static ListInventoriesPage createEmptyPage() { @Override protected ListInventoriesPage createPage( - PageContext context, - ListInventoriesResponse response) { + @Nullable PageContext context, + @Nullable ListInventoriesResponse response) { return new ListInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2972,7 +2986,7 @@ public static class ListInventoriesFixedSizeCollection ListInventoriesFixedSizeCollection> { private ListInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2982,7 +2996,7 @@ private static ListInventoriesFixedSizeCollection createEmptyCollection() { @Override protected ListInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInventoriesFixedSizeCollection(pages, collectionSize); } } @@ -3023,12 +3037,13 @@ public static class ListVulnerabilityReportsPage ListVulnerabilityReportsPage> { private ListVulnerabilityReportsPage( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> context, - ListVulnerabilityReportsResponse response) { + @Nullable ListVulnerabilityReportsResponse response) { super(context, response); } @@ -3038,18 +3053,20 @@ private static ListVulnerabilityReportsPage createEmptyPage() { @Override protected ListVulnerabilityReportsPage createPage( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> context, - ListVulnerabilityReportsResponse response) { + @Nullable ListVulnerabilityReportsResponse response) { return new ListVulnerabilityReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> @@ -3068,7 +3085,7 @@ public static class ListVulnerabilityReportsFixedSizeCollection ListVulnerabilityReportsFixedSizeCollection> { private ListVulnerabilityReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3078,7 +3095,7 @@ private static ListVulnerabilityReportsFixedSizeCollection createEmptyCollection @Override protected ListVulnerabilityReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVulnerabilityReportsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceSettings.java index 668c08bd6faa..29bb795146d9 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/OsConfigZonalServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,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); } @@ -316,7 +317,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OsConfigZonalServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java index 164d098eae85..6113523b4b34 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -566,7 +567,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); } @@ -678,7 +679,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executePatchJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStub.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStub.java index 538c3d9af582..25bb1105f916 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStub.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStub.java @@ -52,6 +52,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class OsConfigZonalServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java index 282582e85699..cc4dbe0fe0dd 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/OsConfigZonalServiceStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -778,7 +779,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); } @@ -911,7 +912,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createOSPolicyAssignmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java index 5a9dc273798a..cd067d4247ac 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java @@ -39,6 +39,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. /** @@ -423,7 +424,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OsConfigZonalServiceClient implements BackgroundResource { - private final OsConfigZonalServiceSettings settings; + private final @Nullable OsConfigZonalServiceSettings settings; private final OsConfigZonalServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -471,7 +472,7 @@ protected OsConfigZonalServiceClient(OsConfigZonalServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OsConfigZonalServiceSettings getSettings() { + public final @Nullable OsConfigZonalServiceSettings getSettings() { return settings; } @@ -545,7 +546,9 @@ public final OperationsClient getHttpJsonOperationsClient() { */ public final OperationFuture createOSPolicyAssignmentAsync( - LocationName parent, OSPolicyAssignment osPolicyAssignment, String osPolicyAssignmentId) { + @Nullable LocationName parent, + OSPolicyAssignment osPolicyAssignment, + String osPolicyAssignmentId) { CreateOSPolicyAssignmentRequest request = CreateOSPolicyAssignmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -933,7 +936,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}{@literal @}{revisionId}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OSPolicyAssignment getOSPolicyAssignment(OSPolicyAssignmentName name) { + public final OSPolicyAssignment getOSPolicyAssignment(@Nullable OSPolicyAssignmentName name) { GetOSPolicyAssignmentRequest request = GetOSPolicyAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1071,7 +1074,8 @@ public final OSPolicyAssignment getOSPolicyAssignment(GetOSPolicyAssignmentReque * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments(LocationName parent) { + public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments( + @Nullable LocationName parent) { ListOSPolicyAssignmentsRequest request = ListOSPolicyAssignmentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1255,7 +1259,7 @@ public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignmentRevisions( - OSPolicyAssignmentName name) { + @Nullable OSPolicyAssignmentName name) { ListOSPolicyAssignmentRevisionsRequest request = ListOSPolicyAssignmentRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1451,7 +1455,7 @@ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteOSPolicyAssignmentAsync(OSPolicyAssignmentName name) { + deleteOSPolicyAssignmentAsync(@Nullable OSPolicyAssignmentName name) { DeleteOSPolicyAssignmentRequest request = DeleteOSPolicyAssignmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1663,7 +1667,7 @@ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignment */ @Deprecated public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( - InstanceOSPoliciesComplianceName name) { + @Nullable InstanceOSPoliciesComplianceName name) { GetInstanceOSPoliciesComplianceRequest request = GetInstanceOSPoliciesComplianceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1807,7 +1811,7 @@ public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( */ @Deprecated public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances( - LocationName parent) { + @Nullable LocationName parent) { ListInstanceOSPoliciesCompliancesRequest request = ListInstanceOSPoliciesCompliancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2007,7 +2011,7 @@ public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPolici * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport( - OSPolicyAssignmentReportName name) { + @Nullable OSPolicyAssignmentReportName name) { GetOSPolicyAssignmentReportRequest request = GetOSPolicyAssignmentReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2161,7 +2165,7 @@ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentReports( - InstanceOSPolicyAssignmentName parent) { + @Nullable InstanceOSPolicyAssignmentName parent) { ListOSPolicyAssignmentReportsRequest request = ListOSPolicyAssignmentReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2370,7 +2374,7 @@ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentRe * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Inventory getInventory(InventoryName name) { + public final Inventory getInventory(@Nullable InventoryName name) { GetInventoryRequest request = GetInventoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInventory(request); @@ -2495,7 +2499,7 @@ public final UnaryCallable getInventoryCallable( *

For `{project}`, either `project-number` or `project-id` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInventoriesPagedResponse listInventories(InstanceName parent) { + public final ListInventoriesPagedResponse listInventories(@Nullable InstanceName parent) { ListInventoriesRequest request = ListInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2676,7 +2680,7 @@ public final ListInventoriesPagedResponse listInventories(ListInventoriesRequest * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VulnerabilityReport getVulnerabilityReport(VulnerabilityReportName name) { + public final VulnerabilityReport getVulnerabilityReport(@Nullable VulnerabilityReportName name) { GetVulnerabilityReportRequest request = GetVulnerabilityReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2807,7 +2811,8 @@ public final VulnerabilityReport getVulnerabilityReport(GetVulnerabilityReportRe *

For `{project}`, either `project-number` or `project-id` can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(InstanceName parent) { + public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports( + @Nullable InstanceName parent) { ListVulnerabilityReportsRequest request = ListVulnerabilityReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3025,10 +3030,11 @@ public static class ListOSPolicyAssignmentsPage ListOSPolicyAssignmentsPage> { private ListOSPolicyAssignmentsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentsResponse response) { + @Nullable ListOSPolicyAssignmentsResponse response) { super(context, response); } @@ -3038,16 +3044,18 @@ private static ListOSPolicyAssignmentsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentsResponse response) { + @Nullable ListOSPolicyAssignmentsResponse response) { return new ListOSPolicyAssignmentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse, OSPolicyAssignment> context, ApiFuture futureResponse) { @@ -3064,7 +3072,7 @@ public static class ListOSPolicyAssignmentsFixedSizeCollection ListOSPolicyAssignmentsFixedSizeCollection> { private ListOSPolicyAssignmentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3074,7 +3082,7 @@ private static ListOSPolicyAssignmentsFixedSizeCollection createEmptyCollection( @Override protected ListOSPolicyAssignmentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentsFixedSizeCollection(pages, collectionSize); } } @@ -3116,12 +3124,13 @@ public static class ListOSPolicyAssignmentRevisionsPage ListOSPolicyAssignmentRevisionsPage> { private ListOSPolicyAssignmentRevisionsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentRevisionsResponse response) { + @Nullable ListOSPolicyAssignmentRevisionsResponse response) { super(context, response); } @@ -3131,18 +3140,20 @@ private static ListOSPolicyAssignmentRevisionsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> context, - ListOSPolicyAssignmentRevisionsResponse response) { + @Nullable ListOSPolicyAssignmentRevisionsResponse response) { return new ListOSPolicyAssignmentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> @@ -3161,7 +3172,7 @@ public static class ListOSPolicyAssignmentRevisionsFixedSizeCollection ListOSPolicyAssignmentRevisionsFixedSizeCollection> { private ListOSPolicyAssignmentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3171,7 +3182,7 @@ private static ListOSPolicyAssignmentRevisionsFixedSizeCollection createEmptyCol @Override protected ListOSPolicyAssignmentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -3214,12 +3225,13 @@ public static class ListInstanceOSPoliciesCompliancesPage ListInstanceOSPoliciesCompliancesPage> { private ListInstanceOSPoliciesCompliancesPage( - PageContext< + @Nullable + PageContext< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> context, - ListInstanceOSPoliciesCompliancesResponse response) { + @Nullable ListInstanceOSPoliciesCompliancesResponse response) { super(context, response); } @@ -3229,18 +3241,20 @@ private static ListInstanceOSPoliciesCompliancesPage createEmptyPage() { @Override protected ListInstanceOSPoliciesCompliancesPage createPage( - PageContext< + @Nullable + PageContext< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> context, - ListInstanceOSPoliciesCompliancesResponse response) { + @Nullable ListInstanceOSPoliciesCompliancesResponse response) { return new ListInstanceOSPoliciesCompliancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> @@ -3259,7 +3273,7 @@ public static class ListInstanceOSPoliciesCompliancesFixedSizeCollection ListInstanceOSPoliciesCompliancesFixedSizeCollection> { private ListInstanceOSPoliciesCompliancesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3269,7 +3283,7 @@ private static ListInstanceOSPoliciesCompliancesFixedSizeCollection createEmptyC @Override protected ListInstanceOSPoliciesCompliancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstanceOSPoliciesCompliancesFixedSizeCollection(pages, collectionSize); } } @@ -3311,12 +3325,13 @@ public static class ListOSPolicyAssignmentReportsPage ListOSPolicyAssignmentReportsPage> { private ListOSPolicyAssignmentReportsPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> context, - ListOSPolicyAssignmentReportsResponse response) { + @Nullable ListOSPolicyAssignmentReportsResponse response) { super(context, response); } @@ -3326,18 +3341,20 @@ private static ListOSPolicyAssignmentReportsPage createEmptyPage() { @Override protected ListOSPolicyAssignmentReportsPage createPage( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> context, - ListOSPolicyAssignmentReportsResponse response) { + @Nullable ListOSPolicyAssignmentReportsResponse response) { return new ListOSPolicyAssignmentReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> @@ -3356,7 +3373,7 @@ public static class ListOSPolicyAssignmentReportsFixedSizeCollection ListOSPolicyAssignmentReportsFixedSizeCollection> { private ListOSPolicyAssignmentReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3366,7 +3383,7 @@ private static ListOSPolicyAssignmentReportsFixedSizeCollection createEmptyColle @Override protected ListOSPolicyAssignmentReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOSPolicyAssignmentReportsFixedSizeCollection(pages, collectionSize); } } @@ -3400,8 +3417,8 @@ public static class ListInventoriesPage ListInventoriesRequest, ListInventoriesResponse, Inventory, ListInventoriesPage> { private ListInventoriesPage( - PageContext context, - ListInventoriesResponse response) { + @Nullable PageContext context, + @Nullable ListInventoriesResponse response) { super(context, response); } @@ -3411,14 +3428,14 @@ private static ListInventoriesPage createEmptyPage() { @Override protected ListInventoriesPage createPage( - PageContext context, - ListInventoriesResponse response) { + @Nullable PageContext context, + @Nullable ListInventoriesResponse response) { return new ListInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3433,7 +3450,7 @@ public static class ListInventoriesFixedSizeCollection ListInventoriesFixedSizeCollection> { private ListInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3443,7 +3460,7 @@ private static ListInventoriesFixedSizeCollection createEmptyCollection() { @Override protected ListInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInventoriesFixedSizeCollection(pages, collectionSize); } } @@ -3484,12 +3501,13 @@ public static class ListVulnerabilityReportsPage ListVulnerabilityReportsPage> { private ListVulnerabilityReportsPage( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> context, - ListVulnerabilityReportsResponse response) { + @Nullable ListVulnerabilityReportsResponse response) { super(context, response); } @@ -3499,18 +3517,20 @@ private static ListVulnerabilityReportsPage createEmptyPage() { @Override protected ListVulnerabilityReportsPage createPage( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> context, - ListVulnerabilityReportsResponse response) { + @Nullable ListVulnerabilityReportsResponse response) { return new ListVulnerabilityReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse, VulnerabilityReport> @@ -3529,7 +3549,7 @@ public static class ListVulnerabilityReportsFixedSizeCollection ListVulnerabilityReportsFixedSizeCollection> { private ListVulnerabilityReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3539,7 +3559,7 @@ private static ListVulnerabilityReportsFixedSizeCollection createEmptyCollection @Override protected ListVulnerabilityReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVulnerabilityReportsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceSettings.java index bc6e5f90825e..15b948c31538 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,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); } @@ -345,7 +346,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OsConfigZonalServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStub.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStub.java index 6171584d457f..82fa953a0eaa 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStub.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class OsConfigZonalServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java index b6aaad4a8776..04402ea62dc5 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/OsConfigZonalServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -897,7 +898,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); } @@ -1042,7 +1043,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createOSPolicyAssignmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceClient.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceClient.java index 00300773a3c1..fdf6e002e699 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceClient.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceClient.java @@ -35,6 +35,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. /** @@ -439,7 +440,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OsConfigServiceClient implements BackgroundResource { - private final OsConfigServiceSettings settings; + private final @Nullable OsConfigServiceSettings settings; private final OsConfigServiceStub stub; /** Constructs an instance of OsConfigServiceClient with default settings. */ @@ -479,7 +480,7 @@ protected OsConfigServiceClient(OsConfigServiceStub stub) { this.stub = stub; } - public final OsConfigServiceSettings getSettings() { + public final @Nullable OsConfigServiceSettings getSettings() { return settings; } @@ -1322,7 +1323,8 @@ public final PatchDeployments.PatchDeployment updatePatchDeployment( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchDeployments.PatchDeployment pausePatchDeployment(PatchDeploymentName name) { + public final PatchDeployments.PatchDeployment pausePatchDeployment( + @Nullable PatchDeploymentName name) { PatchDeployments.PausePatchDeploymentRequest request = PatchDeployments.PausePatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1444,7 +1446,8 @@ public final PatchDeployments.PatchDeployment pausePatchDeployment( * `projects/*/patchDeployments/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PatchDeployments.PatchDeployment resumePatchDeployment(PatchDeploymentName name) { + public final PatchDeployments.PatchDeployment resumePatchDeployment( + @Nullable PatchDeploymentName name) { PatchDeployments.ResumePatchDeploymentRequest request = PatchDeployments.ResumePatchDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1569,7 +1572,7 @@ public final PatchDeployments.PatchDeployment resumePatchDeployment( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GuestPolicies.GuestPolicy createGuestPolicy( - ProjectName parent, GuestPolicies.GuestPolicy guestPolicy) { + @Nullable ProjectName parent, GuestPolicies.GuestPolicy guestPolicy) { GuestPolicies.CreateGuestPolicyRequest request = GuestPolicies.CreateGuestPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1697,7 +1700,7 @@ public final GuestPolicies.GuestPolicy createGuestPolicy( * `projects/{project_number}/guestPolicies/{guest_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GuestPolicies.GuestPolicy getGuestPolicy(GuestPolicyName name) { + public final GuestPolicies.GuestPolicy getGuestPolicy(@Nullable GuestPolicyName name) { GuestPolicies.GetGuestPolicyRequest request = GuestPolicies.GetGuestPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1816,7 +1819,7 @@ public final GuestPolicies.GuestPolicy getGuestPolicy( * `projects/{project_number}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGuestPoliciesPagedResponse listGuestPolicies(ProjectName parent) { + public final ListGuestPoliciesPagedResponse listGuestPolicies(@Nullable ProjectName parent) { GuestPolicies.ListGuestPoliciesRequest request = GuestPolicies.ListGuestPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2079,7 +2082,7 @@ public final GuestPolicies.GuestPolicy updateGuestPolicy( * `projects/{project_number}/guestPolicies/{guest_policy_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGuestPolicy(GuestPolicyName name) { + public final void deleteGuestPolicy(@Nullable GuestPolicyName name) { GuestPolicies.DeleteGuestPolicyRequest request = GuestPolicies.DeleteGuestPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2304,10 +2307,11 @@ public static class ListPatchJobsPage ListPatchJobsPage> { private ListPatchJobsPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, - PatchJobs.ListPatchJobsResponse response) { + PatchJobs.@Nullable ListPatchJobsResponse response) { super(context, response); } @@ -2317,16 +2321,18 @@ private static ListPatchJobsPage createEmptyPage() { @Override protected ListPatchJobsPage createPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, - PatchJobs.ListPatchJobsResponse response) { + PatchJobs.@Nullable ListPatchJobsResponse response) { return new ListPatchJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobsRequest, PatchJobs.ListPatchJobsResponse, PatchJobs.PatchJob> context, ApiFuture futureResponse) { @@ -2342,7 +2348,8 @@ public static class ListPatchJobsFixedSizeCollection ListPatchJobsPage, ListPatchJobsFixedSizeCollection> { - private ListPatchJobsFixedSizeCollection(List pages, int collectionSize) { + private ListPatchJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2352,7 +2359,7 @@ private static ListPatchJobsFixedSizeCollection createEmptyCollection() { @Override protected ListPatchJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchJobsFixedSizeCollection(pages, collectionSize); } } @@ -2394,12 +2401,13 @@ public static class ListPatchJobInstanceDetailsPage ListPatchJobInstanceDetailsPage> { private ListPatchJobInstanceDetailsPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> context, - PatchJobs.ListPatchJobInstanceDetailsResponse response) { + PatchJobs.@Nullable ListPatchJobInstanceDetailsResponse response) { super(context, response); } @@ -2409,18 +2417,20 @@ private static ListPatchJobInstanceDetailsPage createEmptyPage() { @Override protected ListPatchJobInstanceDetailsPage createPage( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> context, - PatchJobs.ListPatchJobInstanceDetailsResponse response) { + PatchJobs.@Nullable ListPatchJobInstanceDetailsResponse response) { return new ListPatchJobInstanceDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchJobs.ListPatchJobInstanceDetailsRequest, PatchJobs.ListPatchJobInstanceDetailsResponse, PatchJobs.PatchJobInstanceDetails> @@ -2439,7 +2449,7 @@ public static class ListPatchJobInstanceDetailsFixedSizeCollection ListPatchJobInstanceDetailsFixedSizeCollection> { private ListPatchJobInstanceDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2449,7 +2459,7 @@ private static ListPatchJobInstanceDetailsFixedSizeCollection createEmptyCollect @Override protected ListPatchJobInstanceDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchJobInstanceDetailsFixedSizeCollection(pages, collectionSize); } } @@ -2490,12 +2500,13 @@ public static class ListPatchDeploymentsPage ListPatchDeploymentsPage> { private ListPatchDeploymentsPage( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> context, - PatchDeployments.ListPatchDeploymentsResponse response) { + PatchDeployments.@Nullable ListPatchDeploymentsResponse response) { super(context, response); } @@ -2505,18 +2516,20 @@ private static ListPatchDeploymentsPage createEmptyPage() { @Override protected ListPatchDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> context, - PatchDeployments.ListPatchDeploymentsResponse response) { + PatchDeployments.@Nullable ListPatchDeploymentsResponse response) { return new ListPatchDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PatchDeployments.ListPatchDeploymentsRequest, PatchDeployments.ListPatchDeploymentsResponse, PatchDeployments.PatchDeployment> @@ -2535,7 +2548,7 @@ public static class ListPatchDeploymentsFixedSizeCollection ListPatchDeploymentsFixedSizeCollection> { private ListPatchDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2545,7 +2558,7 @@ private static ListPatchDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListPatchDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPatchDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -2586,12 +2599,13 @@ public static class ListGuestPoliciesPage ListGuestPoliciesPage> { private ListGuestPoliciesPage( - PageContext< + @Nullable + PageContext< GuestPolicies.ListGuestPoliciesRequest, GuestPolicies.ListGuestPoliciesResponse, GuestPolicies.GuestPolicy> context, - GuestPolicies.ListGuestPoliciesResponse response) { + GuestPolicies.@Nullable ListGuestPoliciesResponse response) { super(context, response); } @@ -2601,18 +2615,20 @@ private static ListGuestPoliciesPage createEmptyPage() { @Override protected ListGuestPoliciesPage createPage( - PageContext< + @Nullable + PageContext< GuestPolicies.ListGuestPoliciesRequest, GuestPolicies.ListGuestPoliciesResponse, GuestPolicies.GuestPolicy> context, - GuestPolicies.ListGuestPoliciesResponse response) { + GuestPolicies.@Nullable ListGuestPoliciesResponse response) { return new ListGuestPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< GuestPolicies.ListGuestPoliciesRequest, GuestPolicies.ListGuestPoliciesResponse, GuestPolicies.GuestPolicy> @@ -2631,7 +2647,7 @@ public static class ListGuestPoliciesFixedSizeCollection ListGuestPoliciesFixedSizeCollection> { private ListGuestPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2641,7 +2657,7 @@ private static ListGuestPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListGuestPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGuestPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java index e7509711aab7..ea160697a821 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OsConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java index 9fb24908f8c0..2476a131e9e2 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/OsConfigServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -701,7 +702,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); } @@ -839,7 +840,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executePatchJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceName.java index 5d42d998ac72..5a091abf0cc8 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -137,7 +138,7 @@ public static String formatProjectLocationInstanceName( .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -161,7 +162,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -213,7 +214,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceOSPolicyAssignmentName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceOSPolicyAssignmentName.java index 16a5076be06a..b07b002a86e0 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceOSPolicyAssignmentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InstanceOSPolicyAssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static InstanceOSPolicyAssignmentName parse(String formattedString) { + public static @Nullable InstanceOSPolicyAssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceOSPolicyAssignmentName> values) { List list = new ArrayList<>(values.size()); for (InstanceOSPolicyAssignmentName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InventoryName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InventoryName.java index 6c43166132c2..470e3125ed72 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InventoryName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/InventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InventoryName parse(String formattedString) { + public static @Nullable InventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InventoryName> values) { List list = new ArrayList<>(values.size()); for (InventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/LocationName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/LocationName.java index 9dcf2bedba6e..c2b0c40e1bbf 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/LocationName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentName.java index 95d9e3568ea7..7c52e8386468 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String osPolicyAssi .toString(); } - public static OSPolicyAssignmentName parse(String formattedString) { + public static @Nullable OSPolicyAssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OSPolicyAssignmentName> values) { List list = new ArrayList<>(values.size()); for (OSPolicyAssignmentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentReportName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentReportName.java index 7266d14a4370..b83e98c40738 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentReportName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/OSPolicyAssignmentReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static OSPolicyAssignmentReportName parse(String formattedString) { + public static @Nullable OSPolicyAssignmentReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OSPolicyAssignmentReportName> values) { List list = new ArrayList<>(values.size()); for (OSPolicyAssignmentReportName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeploymentName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeploymentName.java index 8ac8f1057d0f..16832290ab80 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeploymentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String patchDeployment) { return newBuilder().setProject(project).setPatchDeployment(patchDeployment).build().toString(); } - public static PatchDeploymentName parse(String formattedString) { + public static @Nullable PatchDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PatchDeploymentName> values) { List list = new ArrayList<>(values.size()); for (PatchDeploymentName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobName.java index 70bcb7c96f77..430901ab018c 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/PatchJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String patchJob) { return newBuilder().setProject(project).setPatchJob(patchJob).build().toString(); } - public static PatchJobName parse(String formattedString) { + public static @Nullable PatchJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PatchJobName> values) { List list = new ArrayList<>(values.size()); for (PatchJobName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/ProjectName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/ProjectName.java index 3ec584308b9d..3e07704b59af 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/ProjectName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReportName.java b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReportName.java index 196bced62964..fce907204cfb 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReportName.java +++ b/java-os-config/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static VulnerabilityReportName parse(String formattedString) { + public static @Nullable VulnerabilityReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VulnerabilityReportName> values) { List list = new ArrayList<>(values.size()); for (VulnerabilityReportName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceName.java index bb3dd82365ba..411af62d414c 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceName.java index e75016bff660..b4161227092c 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -86,7 +87,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceOSPoliciesComplianceName parse(String formattedString) { + public static @Nullable InstanceOSPoliciesComplianceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -105,7 +106,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceOSPoliciesComplianceName> values) { List list = new ArrayList<>(values.size()); for (InstanceOSPoliciesComplianceName value : values) { if (value == null) { @@ -154,7 +155,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java index 32768d941f12..b911664be7a8 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static InstanceOSPolicyAssignmentName parse(String formattedString) { + public static @Nullable InstanceOSPolicyAssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceOSPolicyAssignmentName> values) { List list = new ArrayList<>(values.size()); for (InstanceOSPolicyAssignmentName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryName.java index 3bf90f3303b0..23ff9860e04f 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InventoryName parse(String formattedString) { + public static @Nullable InventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InventoryName> values) { List list = new ArrayList<>(values.size()); for (InventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/LocationName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/LocationName.java index dc2239a38235..95ae47f544f1 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/LocationName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentName.java index 612b5cbc17ed..b1a35c7937b1 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String osPolicyAssi .toString(); } - public static OSPolicyAssignmentName parse(String formattedString) { + public static @Nullable OSPolicyAssignmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OSPolicyAssignmentName> values) { List list = new ArrayList<>(values.size()); for (OSPolicyAssignmentName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReportName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReportName.java index 448f27557583..4ef3354c9ef3 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReportName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String instance, St .toString(); } - public static OSPolicyAssignmentReportName parse(String formattedString) { + public static @Nullable OSPolicyAssignmentReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OSPolicyAssignmentReportName> values) { List list = new ArrayList<>(values.size()); for (OSPolicyAssignmentReportName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/VulnerabilityReportName.java b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/VulnerabilityReportName.java index 4ab2bd3d32ff..68ce911183a2 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/VulnerabilityReportName.java +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/VulnerabilityReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static VulnerabilityReportName parse(String formattedString) { + public static @Nullable VulnerabilityReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VulnerabilityReportName> values) { List list = new ArrayList<>(values.size()); for (VulnerabilityReportName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/GuestPolicyName.java b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/GuestPolicyName.java index ad153dcd2eb2..ed12ddf1ab32 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/GuestPolicyName.java +++ b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/GuestPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String guestPolicy) { return newBuilder().setProject(project).setGuestPolicy(guestPolicy).build().toString(); } - public static GuestPolicyName parse(String formattedString) { + public static @Nullable GuestPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GuestPolicyName> values) { List list = new ArrayList<>(values.size()); for (GuestPolicyName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/PatchDeploymentName.java b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/PatchDeploymentName.java index e087d4383616..323854fd7d8b 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/PatchDeploymentName.java +++ b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/PatchDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String patchDeployment) { return newBuilder().setProject(project).setPatchDeployment(patchDeployment).build().toString(); } - public static PatchDeploymentName parse(String formattedString) { + public static @Nullable PatchDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PatchDeploymentName> values) { List list = new ArrayList<>(values.size()); for (PatchDeploymentName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/ProjectName.java b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/ProjectName.java index 369bbfe3cf23..fba8e7bbd5d4 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/ProjectName.java +++ b/java-os-config/proto-google-cloud-os-config-v1beta/src/main/java/com/google/cloud/osconfig/v1beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java index 46ff3e4d1ae6..e4d4ac40f757 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceClient.java @@ -27,6 +27,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. /** @@ -257,7 +258,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OsLoginServiceClient implements BackgroundResource { - private final OsLoginServiceSettings settings; + private final @Nullable OsLoginServiceSettings settings; private final OsLoginServiceStub stub; /** Constructs an instance of OsLoginServiceClient with default settings. */ @@ -297,7 +298,7 @@ protected OsLoginServiceClient(OsLoginServiceStub stub) { this.stub = stub; } - public final OsLoginServiceSettings getSettings() { + public final @Nullable OsLoginServiceSettings getSettings() { return settings; } @@ -330,7 +331,7 @@ public OsLoginServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OsLoginProto.SshPublicKey createSshPublicKey( - UserName parent, OsLoginProto.SshPublicKey sshPublicKey) { + @Nullable UserName parent, OsLoginProto.SshPublicKey sshPublicKey) { CreateSshPublicKeyRequest request = CreateSshPublicKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -455,7 +456,7 @@ public final OsLoginProto.SshPublicKey createSshPublicKey(CreateSshPublicKeyRequ * `users/{user}/projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePosixAccount(ProjectName name) { + public final void deletePosixAccount(@Nullable ProjectName name) { DeletePosixAccountRequest request = DeletePosixAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -571,7 +572,7 @@ public final UnaryCallable deletePosixAccountC * `users/{user}/sshPublicKeys/{fingerprint}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSshPublicKey(FingerprintName name) { + public final void deleteSshPublicKey(@Nullable FingerprintName name) { DeleteSshPublicKeyRequest request = DeleteSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -686,7 +687,7 @@ public final UnaryCallable deleteSshPublicKeyC * @param name Required. The unique ID for the user in format `users/{user}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LoginProfile getLoginProfile(UserName name) { + public final LoginProfile getLoginProfile(@Nullable UserName name) { GetLoginProfileRequest request = GetLoginProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLoginProfile(request); @@ -804,7 +805,7 @@ public final UnaryCallable getLoginProfile * `users/{user}/sshPublicKeys/{fingerprint}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OsLoginProto.SshPublicKey getSshPublicKey(FingerprintName name) { + public final OsLoginProto.SshPublicKey getSshPublicKey(@Nullable FingerprintName name) { GetSshPublicKeyRequest request = GetSshPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSshPublicKey(request); @@ -921,7 +922,7 @@ public final OsLoginProto.SshPublicKey getSshPublicKey(GetSshPublicKeyRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ImportSshPublicKeyResponse importSshPublicKey( - UserName parent, OsLoginProto.SshPublicKey sshPublicKey) { + @Nullable UserName parent, OsLoginProto.SshPublicKey sshPublicKey) { ImportSshPublicKeyRequest request = ImportSshPublicKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -993,7 +994,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ImportSshPublicKeyResponse importSshPublicKey( - UserName parent, OsLoginProto.SshPublicKey sshPublicKey, String projectId) { + @Nullable UserName parent, OsLoginProto.SshPublicKey sshPublicKey, String projectId) { ImportSshPublicKeyRequest request = ImportSshPublicKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1134,7 +1135,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OsLoginProto.SshPublicKey updateSshPublicKey( - FingerprintName name, OsLoginProto.SshPublicKey sshPublicKey) { + @Nullable FingerprintName name, OsLoginProto.SshPublicKey sshPublicKey) { UpdateSshPublicKeyRequest request = UpdateSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1207,7 +1208,9 @@ public final OsLoginProto.SshPublicKey updateSshPublicKey( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OsLoginProto.SshPublicKey updateSshPublicKey( - FingerprintName name, OsLoginProto.SshPublicKey sshPublicKey, FieldMask updateMask) { + @Nullable FingerprintName name, + OsLoginProto.SshPublicKey sshPublicKey, + FieldMask updateMask) { UpdateSshPublicKeyRequest request = UpdateSshPublicKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java index d30416176a43..0696859b2dba 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/OsLoginServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -184,7 +185,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); } @@ -204,7 +205,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OsLoginServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java index 5e8e8387c693..623bb40451cd 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/OsLoginServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -357,7 +358,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSshPublicKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java index a73fa56037bd..c89ce29c26c2 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java +++ b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/PosixAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String project) { return newBuilder().setUser(user).setProject(project).build().toString(); } - public static PosixAccountName parse(String formattedString) { + public static @Nullable PosixAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PosixAccountName> values) { List list = new ArrayList<>(values.size()); for (PosixAccountName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java index ba02f94e3f6f..b1ccaf7e7bfe 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java +++ b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/SshPublicKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String fingerprint) { return newBuilder().setUser(user).setFingerprint(fingerprint).build().toString(); } - public static SshPublicKeyName parse(String formattedString) { + public static @Nullable SshPublicKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SshPublicKeyName> values) { List list = new ArrayList<>(values.size()); for (SshPublicKeyName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java index 7e2b65c0e73e..a2c8cb3da099 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java +++ b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java index 921f8fd16860..c22293ec018a 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java +++ b/java-os-login/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreClient.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreClient.java index e6e0cb06524f..a7764456e661 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreClient.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreClient.java @@ -43,6 +43,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. /** @@ -308,7 +309,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ParallelstoreClient implements BackgroundResource { - private final ParallelstoreSettings settings; + private final @Nullable ParallelstoreSettings settings; private final ParallelstoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -356,7 +357,7 @@ protected ParallelstoreClient(ParallelstoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ParallelstoreSettings getSettings() { + public final @Nullable ParallelstoreSettings getSettings() { return settings; } @@ -407,7 +408,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -577,7 +578,7 @@ public final UnaryCallable listInst * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -702,7 +703,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1000,7 +1001,8 @@ public final UnaryCallable updateInstanceCalla * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1523,8 +1525,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1534,14 +1536,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1555,7 +1557,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1565,7 +1568,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -1599,8 +1602,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1610,14 +1613,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1631,7 +1634,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1641,7 +1645,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreSettings.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreSettings.java index 56409e9cf997..3e1414c87b1e 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreSettings.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/ParallelstoreSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -255,7 +256,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); } @@ -275,7 +276,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ParallelstoreStubSettings.newBuilder(clientContext)); } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStub.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStub.java index 58212b17c29f..cc49d90cfffc 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStub.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class ParallelstoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStubSettings.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStubSettings.java index 119fc104f57e..b8341b7ea0f1 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStubSettings.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/ParallelstoreStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -466,7 +467,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); } @@ -558,7 +559,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClient.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClient.java index 54d5be220cb1..0ab7f13ab836 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClient.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreClient.java @@ -43,6 +43,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. /** @@ -309,7 +310,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ParallelstoreClient implements BackgroundResource { - private final ParallelstoreSettings settings; + private final @Nullable ParallelstoreSettings settings; private final ParallelstoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -357,7 +358,7 @@ protected ParallelstoreClient(ParallelstoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ParallelstoreSettings getSettings() { + public final @Nullable ParallelstoreSettings getSettings() { return settings; } @@ -408,7 +409,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -578,7 +579,7 @@ public final UnaryCallable listInst * `projects/{project_id}/locations/{location}/instances/{instance_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -703,7 +704,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1001,7 +1002,8 @@ public final UnaryCallable updateInstanceCalla * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1524,8 +1526,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1535,14 +1537,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1556,7 +1558,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1566,7 +1569,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -1600,8 +1603,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1611,14 +1614,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1632,7 +1635,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1642,7 +1646,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreSettings.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreSettings.java index 53fb10e42509..e6a9f0ced902 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreSettings.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/ParallelstoreSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -276,7 +277,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ParallelstoreStubSettings.newBuilder(clientContext)); } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStub.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStub.java index d64bb0a1116b..5842134e4a4d 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStub.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class ParallelstoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java index 6f4442012435..06413a18f780 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/ParallelstoreStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -467,7 +468,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); } @@ -559,7 +560,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/InstanceName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/InstanceName.java index dfa3ed4b86e6..f4ffc4c23ccc 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/InstanceName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/LocationName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/LocationName.java index 9b522450c1fc..643ff1d1dbcb 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/LocationName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ServiceAccountName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ServiceAccountName.java index 2430c1c79ed1..1444c2482f9b 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ServiceAccountName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/src/main/java/com/google/cloud/parallelstore/v1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceName.java index 92a0e50c3be5..44905985fed4 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/LocationName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/LocationName.java index 538bcba82a86..f1b5a73568c7 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/LocationName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ServiceAccountName.java b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ServiceAccountName.java index 315feb78e353..5bf5c77c53a6 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ServiceAccountName.java +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/src/main/java/com/google/cloud/parallelstore/v1beta/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerClient.java b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerClient.java index 432680c8d747..04710d36071b 100644 --- a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerClient.java +++ b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerClient.java @@ -38,6 +38,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. /** @@ -368,7 +369,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ParameterManagerClient implements BackgroundResource { - private final ParameterManagerSettings settings; + private final @Nullable ParameterManagerSettings settings; private final ParameterManagerStub stub; /** Constructs an instance of ParameterManagerClient with default settings. */ @@ -408,7 +409,7 @@ protected ParameterManagerClient(ParameterManagerStub stub) { this.stub = stub; } - public final ParameterManagerSettings getSettings() { + public final @Nullable ParameterManagerSettings getSettings() { return settings; } @@ -440,7 +441,7 @@ public ParameterManagerStub getStub() { * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParametersPagedResponse listParameters(LocationName parent) { + public final ListParametersPagedResponse listParameters(@Nullable LocationName parent) { ListParametersRequest request = ListParametersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -610,7 +611,7 @@ public final ListParametersPagedResponse listParameters(ListParametersRequest re * `projects/*/locations/*/parameters/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Parameter getParameter(ParameterName name) { + public final Parameter getParameter(@Nullable ParameterName name) { GetParameterRequest request = GetParameterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getParameter(request); @@ -725,7 +726,7 @@ public final UnaryCallable getParameterCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Parameter createParameter( - LocationName parent, Parameter parameter, String parameterId) { + @Nullable LocationName parent, Parameter parameter, String parameterId) { CreateParameterRequest request = CreateParameterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -950,7 +951,7 @@ public final UnaryCallable updateParameterCal * `projects/*/locations/*/parameters/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteParameter(ParameterName name) { + public final void deleteParameter(@Nullable ParameterName name) { DeleteParameterRequest request = DeleteParameterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteParameter(request); @@ -1066,7 +1067,8 @@ public final UnaryCallable deleteParameterCallabl * `projects/*/locations/*/parameters/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListParameterVersionsPagedResponse listParameterVersions(ParameterName parent) { + public final ListParameterVersionsPagedResponse listParameterVersions( + @Nullable ParameterName parent) { ListParameterVersionsRequest request = ListParameterVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1241,7 +1243,7 @@ public final ListParameterVersionsPagedResponse listParameterVersions( * `projects/*/locations/*/parameters/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ParameterVersion getParameterVersion(ParameterVersionName name) { + public final ParameterVersion getParameterVersion(@Nullable ParameterVersionName name) { GetParameterVersionRequest request = GetParameterVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1366,7 +1368,8 @@ public final ParameterVersion getParameterVersion(GetParameterVersionRequest req * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RenderParameterVersionResponse renderParameterVersion(ParameterVersionName name) { + public final RenderParameterVersionResponse renderParameterVersion( + @Nullable ParameterVersionName name) { RenderParameterVersionRequest request = RenderParameterVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1497,7 +1500,9 @@ public final RenderParameterVersionResponse renderParameterVersion( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ParameterVersion createParameterVersion( - ParameterName parent, ParameterVersion parameterVersion, String parameterVersionId) { + @Nullable ParameterName parent, + ParameterVersion parameterVersion, + String parameterVersionId) { CreateParameterVersionRequest request = CreateParameterVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1731,7 +1736,7 @@ public final ParameterVersion updateParameterVersion(UpdateParameterVersionReque * `projects/*/locations/*/parameters/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteParameterVersion(ParameterVersionName name) { + public final void deleteParameterVersion(@Nullable ParameterVersionName name) { DeleteParameterVersionRequest request = DeleteParameterVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2049,8 +2054,8 @@ public static class ListParametersPage ListParametersRequest, ListParametersResponse, Parameter, ListParametersPage> { private ListParametersPage( - PageContext context, - ListParametersResponse response) { + @Nullable PageContext context, + @Nullable ListParametersResponse response) { super(context, response); } @@ -2060,14 +2065,14 @@ private static ListParametersPage createEmptyPage() { @Override protected ListParametersPage createPage( - PageContext context, - ListParametersResponse response) { + @Nullable PageContext context, + @Nullable ListParametersResponse response) { return new ListParametersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2081,7 +2086,8 @@ public static class ListParametersFixedSizeCollection ListParametersPage, ListParametersFixedSizeCollection> { - private ListParametersFixedSizeCollection(List pages, int collectionSize) { + private ListParametersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2091,7 +2097,7 @@ private static ListParametersFixedSizeCollection createEmptyCollection() { @Override protected ListParametersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParametersFixedSizeCollection(pages, collectionSize); } } @@ -2129,9 +2135,11 @@ public static class ListParameterVersionsPage ListParameterVersionsPage> { private ListParameterVersionsPage( - PageContext + @Nullable + PageContext< + ListParameterVersionsRequest, ListParameterVersionsResponse, ParameterVersion> context, - ListParameterVersionsResponse response) { + @Nullable ListParameterVersionsResponse response) { super(context, response); } @@ -2141,15 +2149,19 @@ private static ListParameterVersionsPage createEmptyPage() { @Override protected ListParameterVersionsPage createPage( - PageContext + @Nullable + PageContext< + ListParameterVersionsRequest, ListParameterVersionsResponse, ParameterVersion> context, - ListParameterVersionsResponse response) { + @Nullable ListParameterVersionsResponse response) { return new ListParameterVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListParameterVersionsRequest, ListParameterVersionsResponse, ParameterVersion> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2165,7 +2177,7 @@ public static class ListParameterVersionsFixedSizeCollection ListParameterVersionsFixedSizeCollection> { private ListParameterVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2175,7 +2187,7 @@ private static ListParameterVersionsFixedSizeCollection createEmptyCollection() @Override protected ListParameterVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListParameterVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2209,8 +2221,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2220,14 +2232,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2241,7 +2253,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2251,7 +2264,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerSettings.java b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerSettings.java index 5b8ce5a9eb98..1b4eb4ba1195 100644 --- a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerSettings.java +++ b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/ParameterManagerSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,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); } @@ -250,7 +251,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ParameterManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/ParameterManagerStubSettings.java b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/ParameterManagerStubSettings.java index 261db2eb6117..c6affa554732 100644 --- a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/ParameterManagerStubSettings.java +++ b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/ParameterManagerStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -505,7 +506,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); } @@ -621,7 +622,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listParametersSettings = PagedCallSettings.newBuilder(LIST_PARAMETERS_PAGE_STR_FACT); diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/LocationName.java b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/LocationName.java index 9c0790ea8499..905da8d9daeb 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/LocationName.java +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterName.java b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterName.java index 85c51ae7c810..87be187684df 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterName.java +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String parameter) { .toString(); } - public static ParameterName parse(String formattedString) { + public static @Nullable ParameterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParameterName> values) { List list = new ArrayList<>(values.size()); for (ParameterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterVersionName.java b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterVersionName.java index 6e4855f08250..f4ab7780ecda 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterVersionName.java +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/src/main/java/com/google/cloud/parametermanager/v1/ParameterVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ParameterVersionName parse(String formattedString) { + public static @Nullable ParameterVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ParameterVersionName> values) { List list = new ArrayList<>(values.size()); for (ParameterVersionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java index f2db9fd777a4..82eeacfbcc25 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java @@ -28,6 +28,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. /** @@ -143,7 +144,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PhishingProtectionServiceV1Beta1Client implements BackgroundResource { - private final PhishingProtectionServiceV1Beta1Settings settings; + private final @Nullable PhishingProtectionServiceV1Beta1Settings settings; private final PhishingProtectionServiceV1Beta1Stub stub; /** Constructs an instance of PhishingProtectionServiceV1Beta1Client with default settings. */ @@ -188,7 +189,7 @@ protected PhishingProtectionServiceV1Beta1Client(PhishingProtectionServiceV1Beta this.stub = stub; } - public final PhishingProtectionServiceV1Beta1Settings getSettings() { + public final @Nullable PhishingProtectionServiceV1Beta1Settings getSettings() { return settings; } @@ -227,7 +228,7 @@ public PhishingProtectionServiceV1Beta1Stub getStub() { * @param uri Required. The URI that is being reported for phishing content to be analyzed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportPhishingResponse reportPhishing(ProjectName parent, String uri) { + public final ReportPhishingResponse reportPhishing(@Nullable ProjectName parent, String uri) { ReportPhishingRequest request = ReportPhishingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java index 1ca2b56be4be..62afccd61547 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -156,7 +157,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); } @@ -177,7 +178,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PhishingProtectionServiceV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java index fd13cfd6b43f..a8d0f4c11a3a 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); reportPhishingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/ProjectName.java b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/ProjectName.java index c7ed26e506d6..e08913a71f61 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/ProjectName.java +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/src/main/java/com/google/phishingprotection/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterClient.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterClient.java index cdfa9a0ebe08..cee8bff75666 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterClient.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterClient.java @@ -24,6 +24,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. /** @@ -137,7 +138,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PolicyTroubleshooterClient implements BackgroundResource { - private final PolicyTroubleshooterSettings settings; + private final @Nullable PolicyTroubleshooterSettings settings; private final PolicyTroubleshooterStub stub; /** Constructs an instance of PolicyTroubleshooterClient with default settings. */ @@ -177,7 +178,7 @@ protected PolicyTroubleshooterClient(PolicyTroubleshooterStub stub) { this.stub = stub; } - public final PolicyTroubleshooterSettings getSettings() { + public final @Nullable PolicyTroubleshooterSettings getSettings() { return settings; } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterSettings.java index 466c1f9c14ee..c086a542e1bf 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/PolicyTroubleshooterSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PolicyTroubleshooterStubSettings.newBuilder(clientContext)); } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java index 59d4bec53d8a..d706e76d57da 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/PolicyTroubleshooterStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -283,7 +284,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); troubleshootIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java index 460bcf6cc51a..5d01f3053efb 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerClient.java @@ -24,6 +24,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. /** @@ -130,7 +131,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IamCheckerClient implements BackgroundResource { - private final IamCheckerSettings settings; + private final @Nullable IamCheckerSettings settings; private final IamCheckerStub stub; /** Constructs an instance of IamCheckerClient with default settings. */ @@ -168,7 +169,7 @@ protected IamCheckerClient(IamCheckerStub stub) { this.stub = stub; } - public final IamCheckerSettings getSettings() { + public final @Nullable IamCheckerSettings getSettings() { return settings; } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java index f34058ba13d9..c48cdeab5c79 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/IamCheckerSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IamCheckerStubSettings.newBuilder(clientContext)); } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java index be0f19abdb2a..6413ce872e92 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/IamCheckerStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); troubleshootIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceClient.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceClient.java index 97b4344a5d51..3f29751a25cf 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceClient.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceClient.java @@ -37,6 +37,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. /** @@ -220,7 +221,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrgPolicyViolationsPreviewServiceClient implements BackgroundResource { - private final OrgPolicyViolationsPreviewServiceSettings settings; + private final @Nullable OrgPolicyViolationsPreviewServiceSettings settings; private final OrgPolicyViolationsPreviewServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -273,7 +274,7 @@ protected OrgPolicyViolationsPreviewServiceClient(OrgPolicyViolationsPreviewServ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final OrgPolicyViolationsPreviewServiceSettings getSettings() { + public final @Nullable OrgPolicyViolationsPreviewServiceSettings getSettings() { return settings; } @@ -332,7 +333,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrgPolicyViolationsPreviewsPagedResponse listOrgPolicyViolationsPreviews( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListOrgPolicyViolationsPreviewsRequest request = ListOrgPolicyViolationsPreviewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -539,7 +540,7 @@ public final ListOrgPolicyViolationsPreviewsPagedResponse listOrgPolicyViolation * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OrgPolicyViolationsPreview getOrgPolicyViolationsPreview( - OrgPolicyViolationsPreviewName name) { + @Nullable OrgPolicyViolationsPreviewName name) { GetOrgPolicyViolationsPreviewRequest request = GetOrgPolicyViolationsPreviewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -702,7 +703,7 @@ public final OrgPolicyViolationsPreview getOrgPolicyViolationsPreview( public final OperationFuture< OrgPolicyViolationsPreview, CreateOrgPolicyViolationsPreviewOperationMetadata> createOrgPolicyViolationsPreviewAsync( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, OrgPolicyViolationsPreview orgPolicyViolationsPreview, String orgPolicyViolationsPreviewId) { CreateOrgPolicyViolationsPreviewRequest request = @@ -921,7 +922,7 @@ public final OrgPolicyViolationsPreview getOrgPolicyViolationsPreview( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrgPolicyViolationsPagedResponse listOrgPolicyViolations( - OrgPolicyViolationsPreviewName parent) { + @Nullable OrgPolicyViolationsPreviewName parent) { ListOrgPolicyViolationsRequest request = ListOrgPolicyViolationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1156,12 +1157,13 @@ public static class ListOrgPolicyViolationsPreviewsPage ListOrgPolicyViolationsPreviewsPage> { private ListOrgPolicyViolationsPreviewsPage( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsPreviewsRequest, ListOrgPolicyViolationsPreviewsResponse, OrgPolicyViolationsPreview> context, - ListOrgPolicyViolationsPreviewsResponse response) { + @Nullable ListOrgPolicyViolationsPreviewsResponse response) { super(context, response); } @@ -1171,18 +1173,20 @@ private static ListOrgPolicyViolationsPreviewsPage createEmptyPage() { @Override protected ListOrgPolicyViolationsPreviewsPage createPage( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsPreviewsRequest, ListOrgPolicyViolationsPreviewsResponse, OrgPolicyViolationsPreview> context, - ListOrgPolicyViolationsPreviewsResponse response) { + @Nullable ListOrgPolicyViolationsPreviewsResponse response) { return new ListOrgPolicyViolationsPreviewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsPreviewsRequest, ListOrgPolicyViolationsPreviewsResponse, OrgPolicyViolationsPreview> @@ -1201,7 +1205,7 @@ public static class ListOrgPolicyViolationsPreviewsFixedSizeCollection ListOrgPolicyViolationsPreviewsFixedSizeCollection> { private ListOrgPolicyViolationsPreviewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1211,7 +1215,7 @@ private static ListOrgPolicyViolationsPreviewsFixedSizeCollection createEmptyCol @Override protected ListOrgPolicyViolationsPreviewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrgPolicyViolationsPreviewsFixedSizeCollection(pages, collectionSize); } } @@ -1250,10 +1254,11 @@ public static class ListOrgPolicyViolationsPage ListOrgPolicyViolationsPage> { private ListOrgPolicyViolationsPage( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsRequest, ListOrgPolicyViolationsResponse, OrgPolicyViolation> context, - ListOrgPolicyViolationsResponse response) { + @Nullable ListOrgPolicyViolationsResponse response) { super(context, response); } @@ -1263,16 +1268,18 @@ private static ListOrgPolicyViolationsPage createEmptyPage() { @Override protected ListOrgPolicyViolationsPage createPage( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsRequest, ListOrgPolicyViolationsResponse, OrgPolicyViolation> context, - ListOrgPolicyViolationsResponse response) { + @Nullable ListOrgPolicyViolationsResponse response) { return new ListOrgPolicyViolationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrgPolicyViolationsRequest, ListOrgPolicyViolationsResponse, OrgPolicyViolation> context, ApiFuture futureResponse) { @@ -1289,7 +1296,7 @@ public static class ListOrgPolicyViolationsFixedSizeCollection ListOrgPolicyViolationsFixedSizeCollection> { private ListOrgPolicyViolationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1299,7 +1306,7 @@ private static ListOrgPolicyViolationsFixedSizeCollection createEmptyCollection( @Override protected ListOrgPolicyViolationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrgPolicyViolationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceSettings.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceSettings.java index 2ea48c9a17a5..721e44bf76ce 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceSettings.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrgPolicyViolationsPreviewServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorClient.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorClient.java index f8a5afa7aed5..16817f04378f 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorClient.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorClient.java @@ -37,6 +37,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. /** @@ -193,7 +194,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SimulatorClient implements BackgroundResource { - private final SimulatorSettings settings; + private final @Nullable SimulatorSettings settings; private final SimulatorStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -239,7 +240,7 @@ protected SimulatorClient(SimulatorStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SimulatorSettings getSettings() { + public final @Nullable SimulatorSettings getSettings() { return settings; } @@ -293,7 +294,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Replay getReplay(ReplayName name) { + public final Replay getReplay(@Nullable ReplayName name) { GetReplayRequest request = GetReplayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReplay(request); @@ -548,7 +549,7 @@ public final UnaryCallable createReplayCallable( * `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReplayResultsPagedResponse listReplayResults(ReplayName parent) { + public final ListReplayResultsPagedResponse listReplayResults(@Nullable ReplayName parent) { ListReplayResultsRequest request = ListReplayResultsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -763,8 +764,9 @@ public static class ListReplayResultsPage ListReplayResultsPage> { private ListReplayResultsPage( - PageContext context, - ListReplayResultsResponse response) { + @Nullable PageContext + context, + @Nullable ListReplayResultsResponse response) { super(context, response); } @@ -774,14 +776,16 @@ private static ListReplayResultsPage createEmptyPage() { @Override protected ListReplayResultsPage createPage( - PageContext context, - ListReplayResultsResponse response) { + @Nullable PageContext + context, + @Nullable ListReplayResultsResponse response) { return new ListReplayResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -796,7 +800,7 @@ public static class ListReplayResultsFixedSizeCollection ListReplayResultsFixedSizeCollection> { private ListReplayResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -806,7 +810,7 @@ private static ListReplayResultsFixedSizeCollection createEmptyCollection() { @Override protected ListReplayResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReplayResultsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorSettings.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorSettings.java index 885e64c9a202..5073039ee7b5 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorSettings.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/SimulatorSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -195,7 +196,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); } @@ -215,7 +216,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SimulatorStubSettings.newBuilder(clientContext)); } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStub.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStub.java index 1d781999f3c6..0a44dcb3cdc6 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStub.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStub.java @@ -34,6 +34,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class OrgPolicyViolationsPreviewServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStubSettings.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStubSettings.java index 0638b43235c3..d4b4d928c240 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStubSettings.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/OrgPolicyViolationsPreviewServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -470,7 +471,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); } @@ -572,7 +573,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listOrgPolicyViolationsPreviewsSettings = diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStub.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStub.java index 46bd68834f7e..d98e9b2e4e0c 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStub.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStub.java @@ -31,6 +31,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,11 +43,12 @@ @Generated("by gapic-generator-java") public abstract class SimulatorStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java index 9d2e709fe4bf..5fd4efe7cf73 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/SimulatorStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -337,7 +338,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); } @@ -420,7 +421,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getReplaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationName.java b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationName.java index c8db26e808d0..44690ceeb24e 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationName.java +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -108,7 +109,7 @@ public static String format( .toString(); } - public static OrgPolicyViolationName parse(String formattedString) { + public static @Nullable OrgPolicyViolationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrgPolicyViolationName> values) { List list = new ArrayList<>(values.size()); for (OrgPolicyViolationName value : values) { if (value == null) { @@ -190,7 +191,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewName.java b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewName.java index a9065b1790ae..0e5c9f7aea07 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewName.java +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrgPolicyViolationsPreviewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public static String format( .toString(); } - public static OrgPolicyViolationsPreviewName parse(String formattedString) { + public static @Nullable OrgPolicyViolationsPreviewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrgPolicyViolationsPreviewName> values) { List list = new ArrayList<>(values.size()); for (OrgPolicyViolationsPreviewName value : values) { if (value == null) { @@ -168,7 +169,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrganizationLocationName.java b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrganizationLocationName.java index ceb3961c0c64..2c581c8cb7da 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrganizationLocationName.java +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/ReplayName.java b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/ReplayName.java index b353984dee32..2fb6c24c4e98 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/ReplayName.java +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/src/main/java/com/google/cloud/policysimulator/v1/ReplayName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -192,7 +193,7 @@ public static String formatOrganizationLocationReplayName( .toString(); } - public static ReplayName parse(String formattedString) { + public static @Nullable ReplayName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -220,7 +221,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReplayName> values) { List list = new ArrayList<>(values.size()); for (ReplayName value : values) { if (value == null) { @@ -276,7 +277,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java index 9cf6821654ea..379b80259392 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogClient.java @@ -33,6 +33,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. /** @@ -190,7 +191,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PrivateCatalogClient implements BackgroundResource { - private final PrivateCatalogSettings settings; + private final @Nullable PrivateCatalogSettings settings; private final PrivateCatalogStub stub; /** Constructs an instance of PrivateCatalogClient with default settings. */ @@ -230,7 +231,7 @@ protected PrivateCatalogClient(PrivateCatalogStub stub) { this.stub = stub; } - public final PrivateCatalogSettings getSettings() { + public final @Nullable PrivateCatalogSettings getSettings() { return settings; } @@ -630,8 +631,8 @@ public static class SearchCatalogsPage SearchCatalogsRequest, SearchCatalogsResponse, Catalog, SearchCatalogsPage> { private SearchCatalogsPage( - PageContext context, - SearchCatalogsResponse response) { + @Nullable PageContext context, + @Nullable SearchCatalogsResponse response) { super(context, response); } @@ -641,14 +642,14 @@ private static SearchCatalogsPage createEmptyPage() { @Override protected SearchCatalogsPage createPage( - PageContext context, - SearchCatalogsResponse response) { + @Nullable PageContext context, + @Nullable SearchCatalogsResponse response) { return new SearchCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -662,7 +663,8 @@ public static class SearchCatalogsFixedSizeCollection SearchCatalogsPage, SearchCatalogsFixedSizeCollection> { - private SearchCatalogsFixedSizeCollection(List pages, int collectionSize) { + private SearchCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -672,7 +674,7 @@ private static SearchCatalogsFixedSizeCollection createEmptyCollection() { @Override protected SearchCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchCatalogsFixedSizeCollection(pages, collectionSize); } } @@ -706,8 +708,8 @@ public static class SearchProductsPage SearchProductsRequest, SearchProductsResponse, Product, SearchProductsPage> { private SearchProductsPage( - PageContext context, - SearchProductsResponse response) { + @Nullable PageContext context, + @Nullable SearchProductsResponse response) { super(context, response); } @@ -717,14 +719,14 @@ private static SearchProductsPage createEmptyPage() { @Override protected SearchProductsPage createPage( - PageContext context, - SearchProductsResponse response) { + @Nullable PageContext context, + @Nullable SearchProductsResponse response) { return new SearchProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -738,7 +740,8 @@ public static class SearchProductsFixedSizeCollection SearchProductsPage, SearchProductsFixedSizeCollection> { - private SearchProductsFixedSizeCollection(List pages, int collectionSize) { + private SearchProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -748,7 +751,7 @@ private static SearchProductsFixedSizeCollection createEmptyCollection() { @Override protected SearchProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchProductsFixedSizeCollection(pages, collectionSize); } } @@ -782,8 +785,8 @@ public static class SearchVersionsPage SearchVersionsRequest, SearchVersionsResponse, Version, SearchVersionsPage> { private SearchVersionsPage( - PageContext context, - SearchVersionsResponse response) { + @Nullable PageContext context, + @Nullable SearchVersionsResponse response) { super(context, response); } @@ -793,14 +796,14 @@ private static SearchVersionsPage createEmptyPage() { @Override protected SearchVersionsPage createPage( - PageContext context, - SearchVersionsResponse response) { + @Nullable PageContext context, + @Nullable SearchVersionsResponse response) { return new SearchVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -814,7 +817,8 @@ public static class SearchVersionsFixedSizeCollection SearchVersionsPage, SearchVersionsFixedSizeCollection> { - private SearchVersionsFixedSizeCollection(List pages, int collectionSize) { + private SearchVersionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -824,7 +828,7 @@ private static SearchVersionsFixedSizeCollection createEmptyCollection() { @Override protected SearchVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java index 65a6f636dda6..21b7d6109593 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/PrivateCatalogSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -171,7 +172,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrivateCatalogStubSettings.newBuilder(clientContext)); } diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java index 3cd0268847b9..0591d6acd162 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/PrivateCatalogStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -411,7 +412,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); } @@ -473,7 +474,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchCatalogsSettings = PagedCallSettings.newBuilder(SEARCH_CATALOGS_PAGE_STR_FACT); diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerClient.java b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerClient.java index b1cf3da8f080..f541ea60413f 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerClient.java +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerClient.java @@ -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. /** @@ -439,7 +440,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PrivilegedAccessManagerClient implements BackgroundResource { - private final PrivilegedAccessManagerSettings settings; + private final @Nullable PrivilegedAccessManagerSettings settings; private final PrivilegedAccessManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -488,7 +489,7 @@ protected PrivilegedAccessManagerClient(PrivilegedAccessManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final PrivilegedAccessManagerSettings getSettings() { + public final @Nullable PrivilegedAccessManagerSettings getSettings() { return settings; } @@ -601,7 +602,7 @@ public final CheckOnboardingStatusResponse checkOnboardingStatus( * @param parent Required. The parent which owns the entitlement resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(FolderLocationName parent) { + public final ListEntitlementsPagedResponse listEntitlements(@Nullable FolderLocationName parent) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -634,7 +635,7 @@ public final ListEntitlementsPagedResponse listEntitlements(FolderLocationName p * @param parent Required. The parent which owns the entitlement resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) { + public final ListEntitlementsPagedResponse listEntitlements(@Nullable LocationName parent) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -667,7 +668,8 @@ public final ListEntitlementsPagedResponse listEntitlements(LocationName parent) * @param parent Required. The parent which owns the entitlement resources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEntitlementsPagedResponse listEntitlements(OrganizationLocationName parent) { + public final ListEntitlementsPagedResponse listEntitlements( + @Nullable OrganizationLocationName parent) { ListEntitlementsRequest request = ListEntitlementsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -958,7 +960,7 @@ public final SearchEntitlementsPagedResponse searchEntitlements( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Entitlement getEntitlement(EntitlementName name) { + public final Entitlement getEntitlement(@Nullable EntitlementName name) { GetEntitlementRequest request = GetEntitlementRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEntitlement(request); @@ -1098,7 +1100,7 @@ public final UnaryCallable getEntitlementCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntitlementAsync( - FolderLocationName parent, Entitlement entitlement, String entitlementId) { + @Nullable FolderLocationName parent, Entitlement entitlement, String entitlementId) { CreateEntitlementRequest request = CreateEntitlementRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1148,7 +1150,7 @@ public final OperationFuture createEntitlementAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntitlementAsync( - LocationName parent, Entitlement entitlement, String entitlementId) { + @Nullable LocationName parent, Entitlement entitlement, String entitlementId) { CreateEntitlementRequest request = CreateEntitlementRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1198,7 +1200,7 @@ public final OperationFuture createEntitlementAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEntitlementAsync( - OrganizationLocationName parent, Entitlement entitlement, String entitlementId) { + @Nullable OrganizationLocationName parent, Entitlement entitlement, String entitlementId) { CreateEntitlementRequest request = CreateEntitlementRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1382,7 +1384,7 @@ public final UnaryCallable createEntitlemen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEntitlementAsync( - EntitlementName name) { + @Nullable EntitlementName name) { DeleteEntitlementRequest request = DeleteEntitlementRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1736,7 +1738,7 @@ public final UnaryCallable updateEntitlemen * @param parent Required. The parent resource which owns the grants. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGrantsPagedResponse listGrants(EntitlementName parent) { + public final ListGrantsPagedResponse listGrants(@Nullable EntitlementName parent) { ListGrantsRequest request = ListGrantsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listGrants(request); @@ -2038,7 +2040,7 @@ public final UnaryCallable searchGran * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Grant getGrant(GrantName name) { + public final Grant getGrant(@Nullable GrantName name) { GetGrantRequest request = GetGrantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGrant(request); @@ -2164,7 +2166,7 @@ public final UnaryCallable getGrantCallable() { * @param grant Required. The resource being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Grant createGrant(EntitlementName parent, Grant grant) { + public final Grant createGrant(@Nullable EntitlementName parent, Grant grant) { CreateGrantRequest request = CreateGrantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2735,8 +2737,9 @@ public static class ListEntitlementsPage ListEntitlementsRequest, ListEntitlementsResponse, Entitlement, ListEntitlementsPage> { private ListEntitlementsPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { super(context, response); } @@ -2746,14 +2749,16 @@ private static ListEntitlementsPage createEmptyPage() { @Override protected ListEntitlementsPage createPage( - PageContext context, - ListEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable ListEntitlementsResponse response) { return new ListEntitlementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2768,7 +2773,7 @@ public static class ListEntitlementsFixedSizeCollection ListEntitlementsFixedSizeCollection> { private ListEntitlementsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2778,7 +2783,7 @@ private static ListEntitlementsFixedSizeCollection createEmptyCollection() { @Override protected ListEntitlementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEntitlementsFixedSizeCollection(pages, collectionSize); } } @@ -2815,8 +2820,9 @@ public static class SearchEntitlementsPage SearchEntitlementsPage> { private SearchEntitlementsPage( - PageContext context, - SearchEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable SearchEntitlementsResponse response) { super(context, response); } @@ -2826,14 +2832,16 @@ private static SearchEntitlementsPage createEmptyPage() { @Override protected SearchEntitlementsPage createPage( - PageContext context, - SearchEntitlementsResponse response) { + @Nullable PageContext + context, + @Nullable SearchEntitlementsResponse response) { return new SearchEntitlementsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2848,7 +2856,7 @@ public static class SearchEntitlementsFixedSizeCollection SearchEntitlementsFixedSizeCollection> { private SearchEntitlementsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2858,7 +2866,7 @@ private static SearchEntitlementsFixedSizeCollection createEmptyCollection() { @Override protected SearchEntitlementsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchEntitlementsFixedSizeCollection(pages, collectionSize); } } @@ -2889,8 +2897,8 @@ public static class ListGrantsPage extends AbstractPage { private ListGrantsPage( - PageContext context, - ListGrantsResponse response) { + @Nullable PageContext context, + @Nullable ListGrantsResponse response) { super(context, response); } @@ -2900,14 +2908,14 @@ private static ListGrantsPage createEmptyPage() { @Override protected ListGrantsPage createPage( - PageContext context, - ListGrantsResponse response) { + @Nullable PageContext context, + @Nullable ListGrantsResponse response) { return new ListGrantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2921,7 +2929,8 @@ public static class ListGrantsFixedSizeCollection ListGrantsPage, ListGrantsFixedSizeCollection> { - private ListGrantsFixedSizeCollection(List pages, int collectionSize) { + private ListGrantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2931,7 +2940,7 @@ private static ListGrantsFixedSizeCollection createEmptyCollection() { @Override protected ListGrantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGrantsFixedSizeCollection(pages, collectionSize); } } @@ -2964,8 +2973,8 @@ public static class SearchGrantsPage extends AbstractPage { private SearchGrantsPage( - PageContext context, - SearchGrantsResponse response) { + @Nullable PageContext context, + @Nullable SearchGrantsResponse response) { super(context, response); } @@ -2975,14 +2984,14 @@ private static SearchGrantsPage createEmptyPage() { @Override protected SearchGrantsPage createPage( - PageContext context, - SearchGrantsResponse response) { + @Nullable PageContext context, + @Nullable SearchGrantsResponse response) { return new SearchGrantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2996,7 +3005,8 @@ public static class SearchGrantsFixedSizeCollection SearchGrantsPage, SearchGrantsFixedSizeCollection> { - private SearchGrantsFixedSizeCollection(List pages, int collectionSize) { + private SearchGrantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3006,7 +3016,7 @@ private static SearchGrantsFixedSizeCollection createEmptyCollection() { @Override protected SearchGrantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchGrantsFixedSizeCollection(pages, collectionSize); } } @@ -3040,8 +3050,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3051,14 +3061,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3072,7 +3082,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3082,7 +3093,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerSettings.java b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerSettings.java index 1a2aef9000c3..c37dcbc0e134 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerSettings.java +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/PrivilegedAccessManagerSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -301,7 +302,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); } @@ -322,7 +323,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PrivilegedAccessManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStub.java b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStub.java index 5a535dcb9d66..1310e1739a70 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStub.java +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStub.java @@ -55,6 +55,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class PrivilegedAccessManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStubSettings.java b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStubSettings.java index bcc3fd12ba8e..795dfb7d94a4 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStubSettings.java +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/PrivilegedAccessManagerStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -692,7 +693,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); } @@ -809,7 +810,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); checkOnboardingStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/EntitlementName.java b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/EntitlementName.java index e0074994114e..7301274e0fa0 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/EntitlementName.java +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/EntitlementName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatOrganizationLocationEntitlementName( .toString(); } - public static EntitlementName parse(String formattedString) { + public static @Nullable EntitlementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -228,7 +229,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EntitlementName> values) { List list = new ArrayList<>(values.size()); for (EntitlementName value : values) { if (value == null) { @@ -284,7 +285,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/FolderLocationName.java b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/FolderLocationName.java index 335b189c5660..33164d1b4f85 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/FolderLocationName.java +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/GrantName.java b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/GrantName.java index 401c55b715f5..ea911012c17a 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/GrantName.java +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/GrantName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -218,7 +219,7 @@ public static String formatOrganizationLocationEntitlementGrantName( .toString(); } - public static GrantName parse(String formattedString) { + public static @Nullable GrantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -255,7 +256,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GrantName> values) { List list = new ArrayList<>(values.size()); for (GrantName value : values) { if (value == null) { @@ -314,7 +315,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/LocationName.java b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/LocationName.java index d9b1f61c5686..81fbfeaf8c96 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/LocationName.java +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/OrganizationLocationName.java b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/OrganizationLocationName.java index fdcf84ec08e9..c8c418e3d434 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/OrganizationLocationName.java +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/src/main/java/com/google/cloud/privilegedaccessmanager/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceClient.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceClient.java index 3e4d05e82366..87cee44976b6 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceClient.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceClient.java @@ -32,6 +32,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. /** @@ -143,7 +144,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExportServiceClient implements BackgroundResource { - private final ExportServiceSettings settings; + private final @Nullable ExportServiceSettings settings; private final ExportServiceStub stub; /** Constructs an instance of ExportServiceClient with default settings. */ @@ -183,7 +184,7 @@ protected ExportServiceClient(ExportServiceStub stub) { this.stub = stub; } - public final ExportServiceSettings getSettings() { + public final @Nullable ExportServiceSettings getSettings() { return settings; } @@ -216,7 +217,7 @@ public ExportServiceStub getStub() { * projects/{user_project_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProfilesPagedResponse listProfiles(ProjectName parent) { + public final ListProfilesPagedResponse listProfiles(@Nullable ProjectName parent) { ListProfilesRequest request = ListProfilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -418,8 +419,8 @@ public static class ListProfilesPage extends AbstractPage { private ListProfilesPage( - PageContext context, - ListProfilesResponse response) { + @Nullable PageContext context, + @Nullable ListProfilesResponse response) { super(context, response); } @@ -429,14 +430,14 @@ private static ListProfilesPage createEmptyPage() { @Override protected ListProfilesPage createPage( - PageContext context, - ListProfilesResponse response) { + @Nullable PageContext context, + @Nullable ListProfilesResponse response) { return new ListProfilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -450,7 +451,8 @@ public static class ListProfilesFixedSizeCollection ListProfilesPage, ListProfilesFixedSizeCollection> { - private ListProfilesFixedSizeCollection(List pages, int collectionSize) { + private ListProfilesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -460,7 +462,7 @@ private static ListProfilesFixedSizeCollection createEmptyCollection() { @Override protected ListProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProfilesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceSettings.java index 6e716447c59f..828c14e44666 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ExportServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java index 70384f841a4d..31857f17cae9 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceClient.java @@ -25,6 +25,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. /** @@ -181,7 +182,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProfilerServiceClient implements BackgroundResource { - private final ProfilerServiceSettings settings; + private final @Nullable ProfilerServiceSettings settings; private final ProfilerServiceStub stub; /** Constructs an instance of ProfilerServiceClient with default settings. */ @@ -221,7 +222,7 @@ protected ProfilerServiceClient(ProfilerServiceStub stub) { this.stub = stub; } - public final ProfilerServiceSettings getSettings() { + public final @Nullable ProfilerServiceSettings getSettings() { return settings; } @@ -342,7 +343,7 @@ public final UnaryCallable createProfileCallable( * @param profile Contents of the profile to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Profile createOfflineProfile(ProjectName parent, Profile profile) { + public final Profile createOfflineProfile(@Nullable ProjectName parent, Profile profile) { CreateOfflineProfileRequest request = CreateOfflineProfileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java index 56a2bb7ced29..9f3ba78daebd 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/ProfilerServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProfilerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java index 5780c9a8d351..c8b735263260 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ExportServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -280,7 +281,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); } @@ -345,7 +346,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listProfilesSettings = PagedCallSettings.newBuilder(LIST_PROFILES_PAGE_STR_FACT); diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java index 519581bac2ea..0e076ef445cb 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/ProfilerServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -305,7 +306,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java index 6774051fcc6d..6117b75591de 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java +++ b/java-profiler/proto-google-cloud-profiler-v2/src/main/java/com/google/devtools/cloudprofiler/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceClient.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceClient.java index b32901544d05..02931fc00605 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceClient.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceClient.java @@ -24,6 +24,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PublicCertificateAuthorityServiceClient implements BackgroundResource { - private final PublicCertificateAuthorityServiceSettings settings; + private final @Nullable PublicCertificateAuthorityServiceSettings settings; private final PublicCertificateAuthorityServiceStub stub; /** Constructs an instance of PublicCertificateAuthorityServiceClient with default settings. */ @@ -186,7 +187,7 @@ protected PublicCertificateAuthorityServiceClient(PublicCertificateAuthorityServ this.stub = stub; } - public final PublicCertificateAuthorityServiceSettings getSettings() { + public final @Nullable PublicCertificateAuthorityServiceSettings getSettings() { return settings; } @@ -227,7 +228,7 @@ public PublicCertificateAuthorityServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExternalAccountKey createExternalAccountKey( - LocationName parent, ExternalAccountKey externalAccountKey) { + @Nullable LocationName parent, ExternalAccountKey externalAccountKey) { CreateExternalAccountKeyRequest request = CreateExternalAccountKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceSettings.java index 54f3e8cac8c5..1d6994d7c289 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/PublicCertificateAuthorityServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublicCertificateAuthorityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java index 68e4ea3ceb59..64b83eca0604 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/PublicCertificateAuthorityServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -220,7 +221,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); } @@ -286,7 +287,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createExternalAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceClient.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceClient.java index 143273ca4242..deebef2728f3 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceClient.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceClient.java @@ -25,6 +25,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. /** @@ -143,7 +144,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PublicCertificateAuthorityServiceClient implements BackgroundResource { - private final PublicCertificateAuthorityServiceSettings settings; + private final @Nullable PublicCertificateAuthorityServiceSettings settings; private final PublicCertificateAuthorityServiceStub stub; /** Constructs an instance of PublicCertificateAuthorityServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected PublicCertificateAuthorityServiceClient(PublicCertificateAuthorityServ this.stub = stub; } - public final PublicCertificateAuthorityServiceSettings getSettings() { + public final @Nullable PublicCertificateAuthorityServiceSettings getSettings() { return settings; } @@ -229,7 +230,7 @@ public PublicCertificateAuthorityServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ExternalAccountKey createExternalAccountKey( - LocationName parent, ExternalAccountKey externalAccountKey) { + @Nullable LocationName parent, ExternalAccountKey externalAccountKey) { CreateExternalAccountKeyRequest request = CreateExternalAccountKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceSettings.java index c926e88d22f5..969b332c82e2 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/PublicCertificateAuthorityServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublicCertificateAuthorityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java index 349969aa2787..5571431e6aed 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/PublicCertificateAuthorityServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -287,7 +288,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createExternalAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKeyName.java b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKeyName.java index ccbbd7158d90..fb0f78853504 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKeyName.java +++ b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/ExternalAccountKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String externalAcco .toString(); } - public static ExternalAccountKeyName parse(String formattedString) { + public static @Nullable ExternalAccountKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExternalAccountKeyName> values) { List list = new ArrayList<>(values.size()); for (ExternalAccountKeyName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java index c89a0c3e14c8..f4012a23716a 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java +++ b/java-publicca/proto-google-cloud-publicca-v1/src/main/java/com/google/cloud/security/publicca/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ExternalAccountKeyName.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ExternalAccountKeyName.java index c084d304a48d..860127553c70 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ExternalAccountKeyName.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/ExternalAccountKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String externalAcco .toString(); } - public static ExternalAccountKeyName parse(String formattedString) { + public static @Nullable ExternalAccountKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExternalAccountKeyName> values) { List list = new ArrayList<>(values.size()); for (ExternalAccountKeyName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/LocationName.java b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/LocationName.java index e33cf5323cf2..0e52531af4d5 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/LocationName.java +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/src/main/java/com/google/cloud/security/publicca/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 8ddc5961ebf7..b42075e4a355 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -55,6 +55,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. /** @@ -376,7 +377,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { - private final SchemaServiceSettings settings; + private final @Nullable SchemaServiceSettings settings; private final SchemaServiceStub stub; /** Constructs an instance of SchemaServiceClient with default settings. */ @@ -416,7 +417,7 @@ protected SchemaServiceClient(SchemaServiceStub stub) { this.stub = stub; } - public final SchemaServiceSettings getSettings() { + public final @Nullable SchemaServiceSettings getSettings() { return settings; } @@ -455,7 +456,7 @@ public SchemaServiceStub getStub() { * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema createSchema(ProjectName parent, Schema schema, String schemaId) { + public final Schema createSchema(@Nullable ProjectName parent, Schema schema, String schemaId) { CreateSchemaRequest request = CreateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -587,7 +588,7 @@ public final UnaryCallable createSchemaCallable() { * `projects/{project}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema getSchema(SchemaName name) { + public final Schema getSchema(@Nullable SchemaName name) { GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchema(request); @@ -701,7 +702,7 @@ public final UnaryCallable getSchemaCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemasPagedResponse listSchemas(ProjectName parent) { + public final ListSchemasPagedResponse listSchemas(@Nullable ProjectName parent) { ListSchemasRequest request = ListSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -866,7 +867,7 @@ public final UnaryCallable listSchemasC * @param name Required. The name of the schema to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemaRevisionsPagedResponse listSchemaRevisions(SchemaName name) { + public final ListSchemaRevisionsPagedResponse listSchemaRevisions(@Nullable SchemaName name) { ListSchemaRevisionsRequest request = ListSchemaRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1036,7 +1037,7 @@ public final ListSchemaRevisionsPagedResponse listSchemaRevisions( * @param schema Required. The schema revision to commit. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema commitSchema(SchemaName name, Schema schema) { + public final Schema commitSchema(@Nullable SchemaName name, Schema schema) { CommitSchemaRequest request = CommitSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1157,7 +1158,7 @@ public final UnaryCallable commitSchemaCallable() { *

Example: c7cfa2a8 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema rollbackSchema(SchemaName name, String revisionId) { + public final Schema rollbackSchema(@Nullable SchemaName name, String revisionId) { RollbackSchemaRequest request = RollbackSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1280,7 +1281,7 @@ public final UnaryCallable rollbackSchemaCallable * revision ID. The revision ID should be specified via the `name` parameter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema deleteSchemaRevision(SchemaName name, String revisionId) { + public final Schema deleteSchemaRevision(@Nullable SchemaName name, String revisionId) { DeleteSchemaRevisionRequest request = DeleteSchemaRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1401,7 +1402,7 @@ public final UnaryCallable deleteSchemaRevi * `projects/{project}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSchema(SchemaName name) { + public final void deleteSchema(@Nullable SchemaName name) { DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSchema(request); @@ -1513,7 +1514,7 @@ public final UnaryCallable deleteSchemaCallable() { * @param schema Required. The schema object to validate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema schema) { + public final ValidateSchemaResponse validateSchema(@Nullable ProjectName parent, Schema schema) { ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1919,8 +1920,8 @@ public static class ListSchemasPage extends AbstractPage { private ListSchemasPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { super(context, response); } @@ -1930,14 +1931,14 @@ private static ListSchemasPage createEmptyPage() { @Override protected ListSchemasPage createPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { return new ListSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1951,7 +1952,8 @@ public static class ListSchemasFixedSizeCollection ListSchemasPage, ListSchemasFixedSizeCollection> { - private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + private ListSchemasFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1961,7 +1963,7 @@ private static ListSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemasFixedSizeCollection(pages, collectionSize); } } @@ -1998,8 +2000,9 @@ public static class ListSchemaRevisionsPage ListSchemaRevisionsPage> { private ListSchemaRevisionsPage( - PageContext context, - ListSchemaRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSchemaRevisionsResponse response) { super(context, response); } @@ -2009,14 +2012,16 @@ private static ListSchemaRevisionsPage createEmptyPage() { @Override protected ListSchemaRevisionsPage createPage( - PageContext context, - ListSchemaRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSchemaRevisionsResponse response) { return new ListSchemaRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2031,7 +2036,7 @@ public static class ListSchemaRevisionsFixedSizeCollection ListSchemaRevisionsFixedSizeCollection> { private ListSchemaRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2041,7 +2046,7 @@ private static ListSchemaRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListSchemaRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemaRevisionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index faf102c625a8..1d8be608f545 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 4d939bc80c63..c5abe53f58de 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -70,6 +70,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. /** @@ -511,7 +512,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SubscriptionAdminClient implements BackgroundResource { - private final SubscriptionAdminSettings settings; + private final @Nullable SubscriptionAdminSettings settings; private final SubscriberStub stub; /** Constructs an instance of SubscriptionAdminClient with default settings. */ @@ -551,7 +552,7 @@ protected SubscriptionAdminClient(SubscriberStub stub) { this.stub = stub; } - public final SubscriptionAdminSettings getSettings() { + public final @Nullable SubscriptionAdminSettings getSettings() { return settings; } @@ -618,7 +619,10 @@ public SubscriberStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { + @Nullable SubscriptionName name, + @Nullable TopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name == null ? null : name.toString()) @@ -688,7 +692,10 @@ public final Subscription createSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + @Nullable SubscriptionName name, + String topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name == null ? null : name.toString()) @@ -758,7 +765,7 @@ public final Subscription createSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { + String name, @Nullable TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name) @@ -1187,7 +1194,7 @@ public final UnaryCallable createSubscriptionCallabl * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(SubscriptionName subscription) { + public final Subscription getSubscription(@Nullable SubscriptionName subscription) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1424,7 +1431,7 @@ public final UnaryCallable updateSubscr * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { + public final ListSubscriptionsPagedResponse listSubscriptions(@Nullable ProjectName project) { ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -1592,7 +1599,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubscription(SubscriptionName subscription) { + public final void deleteSubscription(@Nullable SubscriptionName subscription) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1759,7 +1766,7 @@ public final UnaryCallable deleteSubscriptionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( - SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + @Nullable SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1953,7 +1960,7 @@ public final UnaryCallable modifyAckDeadlineCal * returned by the Pub/Sub system in the `Pull` response. Must not be empty. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void acknowledge(SubscriptionName subscription, List ackIds) { + public final void acknowledge(@Nullable SubscriptionName subscription, List ackIds) { AcknowledgeRequest request = AcknowledgeRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2122,7 +2129,7 @@ public final UnaryCallable acknowledgeCallable() { * a positive integer. The Pub/Sub system may return fewer than the number specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullResponse pull(SubscriptionName subscription, int maxMessages) { + public final PullResponse pull(@Nullable SubscriptionName subscription, int maxMessages) { PullRequest request = PullRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2196,7 +2203,7 @@ public final PullResponse pull(String subscription, int maxMessages) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PullResponse pull( - SubscriptionName subscription, boolean returnImmediately, int maxMessages) { + @Nullable SubscriptionName subscription, boolean returnImmediately, int maxMessages) { PullRequest request = PullRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2458,7 +2465,8 @@ public final UnaryCallable pullCallable() { * pausing the subscription if `Pull` or `StreamingPull` is not called. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) { + public final void modifyPushConfig( + @Nullable SubscriptionName subscription, PushConfig pushConfig) { ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2639,7 +2647,7 @@ public final UnaryCallable modifyPushConfigCalla * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName snapshot) { + public final Snapshot getSnapshot(@Nullable SnapshotName snapshot) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -2796,7 +2804,7 @@ public final UnaryCallable getSnapshotCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable ProjectName project) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -2993,7 +3001,8 @@ public final UnaryCallable listSnap * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscription) { + public final Snapshot createSnapshot( + @Nullable SnapshotName name, @Nullable SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3046,7 +3055,7 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(SnapshotName name, String subscription) { + public final Snapshot createSnapshot(@Nullable SnapshotName name, String subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3099,7 +3108,7 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(String name, SubscriptionName subscription) { + public final Snapshot createSnapshot(String name, @Nullable SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name) @@ -3518,7 +3527,7 @@ public final UnaryCallable updateSnapshotCallab * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshot(SnapshotName snapshot) { + public final void deleteSnapshot(@Nullable SnapshotName snapshot) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -4073,8 +4082,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -4084,14 +4094,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4106,7 +4118,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4116,7 +4128,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -4150,8 +4162,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -4161,14 +4173,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4182,7 +4194,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4192,7 +4205,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a36f3bd03378..6ad3b3b51675 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SubscriberStubSettings.newBuilder(clientContext)); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 13c8576f8cbc..e3938aef1335 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -57,6 +57,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. /** @@ -357,7 +358,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TopicAdminClient implements BackgroundResource { - private final TopicAdminSettings settings; + private final @Nullable TopicAdminSettings settings; private final PublisherStub stub; /** Constructs an instance of TopicAdminClient with default settings. */ @@ -395,7 +396,7 @@ protected TopicAdminClient(PublisherStub stub) { this.stub = stub; } - public final TopicAdminSettings getSettings() { + public final @Nullable TopicAdminSettings getSettings() { return settings; } @@ -429,7 +430,7 @@ public PublisherStub getStub() { * length, and it must not start with `"goog"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic createTopic(TopicName name) { + public final Topic createTopic(@Nullable TopicName name) { Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); } @@ -689,7 +690,7 @@ public final UnaryCallable updateTopicCallable() { * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublishResponse publish(TopicName topic, List messages) { + public final PublishResponse publish(@Nullable TopicName topic, List messages) { PublishRequest request = PublishRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -807,7 +808,7 @@ public final UnaryCallable publishCallable() { * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic getTopic(TopicName topic) { + public final Topic getTopic(@Nullable TopicName topic) { GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); return getTopic(request); @@ -944,7 +945,7 @@ public final UnaryCallable getTopicCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicsPagedResponse listTopics(ProjectName project) { + public final ListTopicsPagedResponse listTopics(@Nullable ProjectName project) { ListTopicsRequest request = ListTopicsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -1106,7 +1107,8 @@ public final UnaryCallable listTopicsCall * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicName topic) { + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( + @Nullable TopicName topic) { ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -1306,7 +1308,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic) { + public final ListTopicSnapshotsPagedResponse listTopicSnapshots(@Nullable TopicName topic) { ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -1487,7 +1489,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTopic(TopicName topic) { + public final void deleteTopic(@Nullable TopicName topic) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); deleteTopic(request); @@ -2014,8 +2016,8 @@ public static class ListTopicsPage extends AbstractPage { private ListTopicsPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { super(context, response); } @@ -2025,14 +2027,14 @@ private static ListTopicsPage createEmptyPage() { @Override protected ListTopicsPage createPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { return new ListTopicsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2046,7 +2048,8 @@ public static class ListTopicsFixedSizeCollection ListTopicsPage, ListTopicsFixedSizeCollection> { - private ListTopicsFixedSizeCollection(List pages, int collectionSize) { + private ListTopicsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2056,7 +2059,7 @@ private static ListTopicsFixedSizeCollection createEmptyCollection() { @Override protected ListTopicsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicsFixedSizeCollection(pages, collectionSize); } } @@ -2093,8 +2096,9 @@ public static class ListTopicSubscriptionsPage ListTopicSubscriptionsPage> { private ListTopicSubscriptionsPage( - PageContext context, - ListTopicSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListTopicSubscriptionsResponse response) { super(context, response); } @@ -2104,14 +2108,16 @@ private static ListTopicSubscriptionsPage createEmptyPage() { @Override protected ListTopicSubscriptionsPage createPage( - PageContext context, - ListTopicSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListTopicSubscriptionsResponse response) { return new ListTopicSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2126,7 +2132,7 @@ public static class ListTopicSubscriptionsFixedSizeCollection ListTopicSubscriptionsFixedSizeCollection> { private ListTopicSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2136,7 +2142,7 @@ private static ListTopicSubscriptionsFixedSizeCollection createEmptyCollection() @Override protected ListTopicSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -2170,8 +2176,9 @@ public static class ListTopicSnapshotsPage ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage> { private ListTopicSnapshotsPage( - PageContext context, - ListTopicSnapshotsResponse response) { + @Nullable PageContext + context, + @Nullable ListTopicSnapshotsResponse response) { super(context, response); } @@ -2181,14 +2188,16 @@ private static ListTopicSnapshotsPage createEmptyPage() { @Override protected ListTopicSnapshotsPage createPage( - PageContext context, - ListTopicSnapshotsResponse response) { + @Nullable PageContext + context, + @Nullable ListTopicSnapshotsResponse response) { return new ListTopicSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2203,7 +2212,7 @@ public static class ListTopicSnapshotsFixedSizeCollection ListTopicSnapshotsFixedSizeCollection> { private ListTopicSnapshotsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2213,7 +2222,7 @@ private static ListTopicSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListTopicSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicSnapshotsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 6c160daff6d0..4450769746bf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublisherStubSettings.newBuilder(clientContext)); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 30bf406a3326..29e28674dd0a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -86,6 +86,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -573,7 +574,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); } @@ -706,7 +707,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 601e64d0efd0..6444f2268e0e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -437,7 +438,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); } @@ -537,7 +538,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index d278ccbaacfa..6b83346eba2e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -481,7 +482,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); } @@ -646,7 +647,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java index 023a4087c89a..a63a954109a1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 2db74834b0de..067979e33d55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index a7fcd22be396..ce1ecb131390 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String schema) { return newBuilder().setProject(project).setSchema(schema).build().toString(); } - public static SchemaName parse(String formattedString) { + public static @Nullable SchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaName> values) { List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index bbeafc6c4ddb..38a389953718 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String snapshot) { return newBuilder().setProject(project).setSnapshot(snapshot).build().toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index 8ea245778aab..5c1bb8c03b37 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String subscription) { return newBuilder().setProject(project).setSubscription(subscription).build().toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index fd87c2b97f2a..14ef50bab24d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -104,7 +105,7 @@ public static String formatDeletedTopicName() { return "_deleted-topic_"; } - public static TopicName parse(String formattedString) { + public static @Nullable TopicName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -125,7 +126,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TopicName> values) { List list = new ArrayList<>(values.size()); for (TopicName value : values) { if (value == null) { @@ -170,7 +171,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentClient.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentClient.java index a55959797714..efc4a790ae39 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentClient.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentClient.java @@ -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. /** @@ -361,7 +362,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RapidMigrationAssessmentClient implements BackgroundResource { - private final RapidMigrationAssessmentSettings settings; + private final @Nullable RapidMigrationAssessmentSettings settings; private final RapidMigrationAssessmentStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -411,7 +412,7 @@ protected RapidMigrationAssessmentClient(RapidMigrationAssessmentStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final RapidMigrationAssessmentSettings getSettings() { + public final @Nullable RapidMigrationAssessmentSettings getSettings() { return settings; } @@ -465,7 +466,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectorAsync( - LocationName parent, Collector collector, String collectorId) { + @Nullable LocationName parent, Collector collector, String collectorId) { CreateCollectorRequest request = CreateCollectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -641,7 +642,7 @@ public final UnaryCallable createCollectorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAnnotationAsync( - LocationName parent, Annotation annotation) { + @Nullable LocationName parent, Annotation annotation) { CreateAnnotationRequest request = CreateAnnotationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -799,7 +800,7 @@ public final UnaryCallable createAnnotationC * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Annotation getAnnotation(AnnotationName name) { + public final Annotation getAnnotation(@Nullable AnnotationName name) { GetAnnotationRequest request = GetAnnotationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnnotation(request); @@ -914,7 +915,7 @@ public final UnaryCallable getAnnotationCallab * @param parent Required. Parent value for ListCollectorsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCollectorsPagedResponse listCollectors(LocationName parent) { + public final ListCollectorsPagedResponse listCollectors(@Nullable LocationName parent) { ListCollectorsRequest request = ListCollectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1088,7 +1089,7 @@ public final ListCollectorsPagedResponse listCollectors(ListCollectorsRequest re * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Collector getCollector(CollectorName name) { + public final Collector getCollector(@Nullable CollectorName name) { GetCollectorRequest request = GetCollectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCollector(request); @@ -1336,7 +1337,7 @@ public final UnaryCallable updateCollectorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCollectorAsync( - CollectorName name) { + @Nullable CollectorName name) { DeleteCollectorRequest request = DeleteCollectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCollectorAsync(request); @@ -1488,7 +1489,7 @@ public final UnaryCallable deleteCollectorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resumeCollectorAsync( - CollectorName name) { + @Nullable CollectorName name) { ResumeCollectorRequest request = ResumeCollectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeCollectorAsync(request); @@ -1636,7 +1637,7 @@ public final UnaryCallable resumeCollectorCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture registerCollectorAsync( - CollectorName name) { + @Nullable CollectorName name) { RegisterCollectorRequest request = RegisterCollectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1786,7 +1787,7 @@ public final UnaryCallable registerCollecto * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture pauseCollectorAsync( - CollectorName name) { + @Nullable CollectorName name) { PauseCollectorRequest request = PauseCollectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseCollectorAsync(request); @@ -2132,8 +2133,8 @@ public static class ListCollectorsPage ListCollectorsRequest, ListCollectorsResponse, Collector, ListCollectorsPage> { private ListCollectorsPage( - PageContext context, - ListCollectorsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectorsResponse response) { super(context, response); } @@ -2143,14 +2144,14 @@ private static ListCollectorsPage createEmptyPage() { @Override protected ListCollectorsPage createPage( - PageContext context, - ListCollectorsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectorsResponse response) { return new ListCollectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2164,7 +2165,8 @@ public static class ListCollectorsFixedSizeCollection ListCollectorsPage, ListCollectorsFixedSizeCollection> { - private ListCollectorsFixedSizeCollection(List pages, int collectionSize) { + private ListCollectorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2174,7 +2176,7 @@ private static ListCollectorsFixedSizeCollection createEmptyCollection() { @Override protected ListCollectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCollectorsFixedSizeCollection(pages, collectionSize); } } @@ -2208,8 +2210,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2219,14 +2221,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2240,7 +2242,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2250,7 +2253,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentSettings.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentSettings.java index 807f567301e2..bb04e5a41b52 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentSettings.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/RapidMigrationAssessmentSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -315,7 +316,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RapidMigrationAssessmentStubSettings.newBuilder(clientContext)); } diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStub.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStub.java index bff22d670a0c..67b9ed7b19f0 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStub.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStub.java @@ -44,6 +44,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class RapidMigrationAssessmentStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java index 48feb85203f2..66d3f2e9a8ea 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/RapidMigrationAssessmentStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -504,7 +505,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); } @@ -644,7 +645,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCollectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/AnnotationName.java b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/AnnotationName.java index b34edb3771ac..58655d9ff3f4 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/AnnotationName.java +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/AnnotationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String annotation) .toString(); } - public static AnnotationName parse(String formattedString) { + public static @Nullable AnnotationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationName> values) { List list = new ArrayList<>(values.size()); for (AnnotationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/CollectorName.java b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/CollectorName.java index 04144c779bba..0e52221bbc4f 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/CollectorName.java +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/CollectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collector) { .toString(); } - public static CollectorName parse(String formattedString) { + public static @Nullable CollectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectorName> values) { List list = new ArrayList<>(values.size()); for (CollectorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/LocationName.java b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/LocationName.java index b9beb1eb54f5..530930fd9bbe 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/LocationName.java +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/src/main/java/com/google/cloud/rapidmigrationassessment/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java index b5c447b997df..43e93f0810fa 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java @@ -81,6 +81,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. /** @@ -585,7 +586,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RecaptchaEnterpriseServiceClient implements BackgroundResource { - private final RecaptchaEnterpriseServiceSettings settings; + private final @Nullable RecaptchaEnterpriseServiceSettings settings; private final RecaptchaEnterpriseServiceStub stub; /** Constructs an instance of RecaptchaEnterpriseServiceClient with default settings. */ @@ -627,7 +628,7 @@ protected RecaptchaEnterpriseServiceClient(RecaptchaEnterpriseServiceStub stub) this.stub = stub; } - public final RecaptchaEnterpriseServiceSettings getSettings() { + public final @Nullable RecaptchaEnterpriseServiceSettings getSettings() { return settings; } @@ -660,7 +661,7 @@ public RecaptchaEnterpriseServiceStub getStub() { * @param assessment Required. The assessment details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assessment createAssessment(ProjectName parent, Assessment assessment) { + public final Assessment createAssessment(@Nullable ProjectName parent, Assessment assessment) { CreateAssessmentRequest request = CreateAssessmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -791,7 +792,7 @@ public final UnaryCallable createAssessment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotateAssessmentResponse annotateAssessment( - AssessmentName name, AnnotateAssessmentRequest.Annotation annotation) { + @Nullable AssessmentName name, AnnotateAssessmentRequest.Annotation annotation) { AnnotateAssessmentRequest request = AnnotateAssessmentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -934,7 +935,7 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq * @param key Required. Information to create a reCAPTCHA Enterprise key. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Key createKey(ProjectName parent, Key key) { + public final Key createKey(@Nullable ProjectName parent, Key key) { CreateKeyRequest request = CreateKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1058,7 +1059,7 @@ public final UnaryCallable createKeyCallable() { * format `projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeysPagedResponse listKeys(ProjectName parent) { + public final ListKeysPagedResponse listKeys(@Nullable ProjectName parent) { ListKeysRequest request = ListKeysRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listKeys(request); @@ -1225,7 +1226,7 @@ public final UnaryCallable listKeysCallable() * `projects/{project}/keys/{key}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RetrieveLegacySecretKeyResponse retrieveLegacySecretKey(KeyName key) { + public final RetrieveLegacySecretKeyResponse retrieveLegacySecretKey(@Nullable KeyName key) { RetrieveLegacySecretKeyRequest request = RetrieveLegacySecretKeyRequest.newBuilder() .setKey(key == null ? null : key.toString()) @@ -1350,7 +1351,7 @@ public final RetrieveLegacySecretKeyResponse retrieveLegacySecretKey( * `projects/{project}/keys/{key}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Key getKey(KeyName name) { + public final Key getKey(@Nullable KeyName name) { GetKeyRequest request = GetKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKey(request); @@ -1551,7 +1552,7 @@ public final UnaryCallable updateKeyCallable() { * `projects/{project}/keys/{key}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteKey(KeyName name) { + public final void deleteKey(@Nullable KeyName name) { DeleteKeyRequest request = DeleteKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteKey(request); @@ -1741,7 +1742,8 @@ public final UnaryCallable migrateKeyCallable() { * @param ipOverrideData Required. IP override added to the key. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AddIpOverrideResponse addIpOverride(KeyName name, IpOverrideData ipOverrideData) { + public final AddIpOverrideResponse addIpOverride( + @Nullable KeyName name, IpOverrideData ipOverrideData) { AddIpOverrideRequest request = AddIpOverrideRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1893,7 +1895,7 @@ public final UnaryCallable addIpOve * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RemoveIpOverrideResponse removeIpOverride( - KeyName name, IpOverrideData ipOverrideData) { + @Nullable KeyName name, IpOverrideData ipOverrideData) { RemoveIpOverrideRequest request = RemoveIpOverrideRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2044,7 +2046,7 @@ public final RemoveIpOverrideResponse removeIpOverride(RemoveIpOverrideRequest r * `projects/{project}/keys/{key}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIpOverridesPagedResponse listIpOverrides(KeyName parent) { + public final ListIpOverridesPagedResponse listIpOverrides(@Nullable KeyName parent) { ListIpOverridesRequest request = ListIpOverridesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2215,7 +2217,7 @@ public final ListIpOverridesPagedResponse listIpOverrides(ListIpOverridesRequest * `projects/{project}/keys/{key}/metrics`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Metrics getMetrics(MetricsName name) { + public final Metrics getMetrics(@Nullable MetricsName name) { GetMetricsRequest request = GetMetricsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMetrics(request); @@ -2335,7 +2337,7 @@ public final UnaryCallable getMetricsCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FirewallPolicy createFirewallPolicy( - ProjectName parent, FirewallPolicy firewallPolicy) { + @Nullable ProjectName parent, FirewallPolicy firewallPolicy) { CreateFirewallPolicyRequest request = CreateFirewallPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2469,7 +2471,8 @@ public final FirewallPolicy createFirewallPolicy(CreateFirewallPolicyRequest req * `projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirewallPoliciesPagedResponse listFirewallPolicies(ProjectName parent) { + public final ListFirewallPoliciesPagedResponse listFirewallPolicies( + @Nullable ProjectName parent) { ListFirewallPoliciesRequest request = ListFirewallPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2642,7 +2645,7 @@ public final ListFirewallPoliciesPagedResponse listFirewallPolicies( * `projects/{project}/firewallpolicies/{firewallpolicy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirewallPolicy getFirewallPolicy(FirewallPolicyName name) { + public final FirewallPolicy getFirewallPolicy(@Nullable FirewallPolicyName name) { GetFirewallPolicyRequest request = GetFirewallPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2856,7 +2859,7 @@ public final FirewallPolicy updateFirewallPolicy(UpdateFirewallPolicyRequest req * `projects/{project}/firewallpolicies/{firewallpolicy}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFirewallPolicy(FirewallPolicyName name) { + public final void deleteFirewallPolicy(@Nullable FirewallPolicyName name) { DeleteFirewallPolicyRequest request = DeleteFirewallPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2979,7 +2982,7 @@ public final UnaryCallable deleteFirewallPol * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReorderFirewallPoliciesResponse reorderFirewallPolicies( - ProjectName parent, List names) { + @Nullable ProjectName parent, List names) { ReorderFirewallPoliciesRequest request = ReorderFirewallPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3111,7 +3114,8 @@ public final ReorderFirewallPoliciesResponse reorderFirewallPolicies( * format `projects/{project}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups(ProjectName parent) { + public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups( + @Nullable ProjectName parent) { ListRelatedAccountGroupsRequest request = ListRelatedAccountGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3293,7 +3297,7 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountGroupMemberships( - RelatedAccountGroupName parent) { + @Nullable RelatedAccountGroupName parent) { ListRelatedAccountGroupMembershipsRequest request = ListRelatedAccountGroupMembershipsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3493,7 +3497,8 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchRelatedAccountGroupMembershipsPagedResponse - searchRelatedAccountGroupMemberships(ProjectName project, ByteString hashedAccountId) { + searchRelatedAccountGroupMemberships( + @Nullable ProjectName project, ByteString hashedAccountId) { SearchRelatedAccountGroupMembershipsRequest request = SearchRelatedAccountGroupMembershipsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -3723,7 +3728,8 @@ public static class ListKeysPage extends AbstractPage { private ListKeysPage( - PageContext context, ListKeysResponse response) { + @Nullable PageContext context, + @Nullable ListKeysResponse response) { super(context, response); } @@ -3733,13 +3739,14 @@ private static ListKeysPage createEmptyPage() { @Override protected ListKeysPage createPage( - PageContext context, ListKeysResponse response) { + @Nullable PageContext context, + @Nullable ListKeysResponse response) { return new ListKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3749,7 +3756,7 @@ public static class ListKeysFixedSizeCollection extends AbstractFixedSizeCollection< ListKeysRequest, ListKeysResponse, Key, ListKeysPage, ListKeysFixedSizeCollection> { - private ListKeysFixedSizeCollection(List pages, int collectionSize) { + private ListKeysFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3759,7 +3766,7 @@ private static ListKeysFixedSizeCollection createEmptyCollection() { @Override protected ListKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeysFixedSizeCollection(pages, collectionSize); } } @@ -3793,8 +3800,9 @@ public static class ListIpOverridesPage ListIpOverridesRequest, ListIpOverridesResponse, IpOverrideData, ListIpOverridesPage> { private ListIpOverridesPage( - PageContext context, - ListIpOverridesResponse response) { + @Nullable PageContext + context, + @Nullable ListIpOverridesResponse response) { super(context, response); } @@ -3804,14 +3812,16 @@ private static ListIpOverridesPage createEmptyPage() { @Override protected ListIpOverridesPage createPage( - PageContext context, - ListIpOverridesResponse response) { + @Nullable PageContext + context, + @Nullable ListIpOverridesResponse response) { return new ListIpOverridesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3826,7 +3836,7 @@ public static class ListIpOverridesFixedSizeCollection ListIpOverridesFixedSizeCollection> { private ListIpOverridesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3836,7 +3846,7 @@ private static ListIpOverridesFixedSizeCollection createEmptyCollection() { @Override protected ListIpOverridesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIpOverridesFixedSizeCollection(pages, collectionSize); } } @@ -3874,9 +3884,10 @@ public static class ListFirewallPoliciesPage ListFirewallPoliciesPage> { private ListFirewallPoliciesPage( - PageContext + @Nullable + PageContext context, - ListFirewallPoliciesResponse response) { + @Nullable ListFirewallPoliciesResponse response) { super(context, response); } @@ -3886,15 +3897,17 @@ private static ListFirewallPoliciesPage createEmptyPage() { @Override protected ListFirewallPoliciesPage createPage( - PageContext + @Nullable + PageContext context, - ListFirewallPoliciesResponse response) { + @Nullable ListFirewallPoliciesResponse response) { return new ListFirewallPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3910,7 +3923,7 @@ public static class ListFirewallPoliciesFixedSizeCollection ListFirewallPoliciesFixedSizeCollection> { private ListFirewallPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3920,7 +3933,7 @@ private static ListFirewallPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListFirewallPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFirewallPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -3961,12 +3974,13 @@ public static class ListRelatedAccountGroupsPage ListRelatedAccountGroupsPage> { private ListRelatedAccountGroupsPage( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupsRequest, ListRelatedAccountGroupsResponse, RelatedAccountGroup> context, - ListRelatedAccountGroupsResponse response) { + @Nullable ListRelatedAccountGroupsResponse response) { super(context, response); } @@ -3976,18 +3990,20 @@ private static ListRelatedAccountGroupsPage createEmptyPage() { @Override protected ListRelatedAccountGroupsPage createPage( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupsRequest, ListRelatedAccountGroupsResponse, RelatedAccountGroup> context, - ListRelatedAccountGroupsResponse response) { + @Nullable ListRelatedAccountGroupsResponse response) { return new ListRelatedAccountGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupsRequest, ListRelatedAccountGroupsResponse, RelatedAccountGroup> @@ -4006,7 +4022,7 @@ public static class ListRelatedAccountGroupsFixedSizeCollection ListRelatedAccountGroupsFixedSizeCollection> { private ListRelatedAccountGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4016,7 +4032,7 @@ private static ListRelatedAccountGroupsFixedSizeCollection createEmptyCollection @Override protected ListRelatedAccountGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRelatedAccountGroupsFixedSizeCollection(pages, collectionSize); } } @@ -4059,12 +4075,13 @@ public static class ListRelatedAccountGroupMembershipsPage ListRelatedAccountGroupMembershipsPage> { private ListRelatedAccountGroupMembershipsPage( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupMembershipsRequest, ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> context, - ListRelatedAccountGroupMembershipsResponse response) { + @Nullable ListRelatedAccountGroupMembershipsResponse response) { super(context, response); } @@ -4074,18 +4091,20 @@ private static ListRelatedAccountGroupMembershipsPage createEmptyPage() { @Override protected ListRelatedAccountGroupMembershipsPage createPage( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupMembershipsRequest, ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> context, - ListRelatedAccountGroupMembershipsResponse response) { + @Nullable ListRelatedAccountGroupMembershipsResponse response) { return new ListRelatedAccountGroupMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRelatedAccountGroupMembershipsRequest, ListRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> @@ -4104,7 +4123,7 @@ public static class ListRelatedAccountGroupMembershipsFixedSizeCollection ListRelatedAccountGroupMembershipsFixedSizeCollection> { private ListRelatedAccountGroupMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4114,7 +4133,7 @@ private static ListRelatedAccountGroupMembershipsFixedSizeCollection createEmpty @Override protected ListRelatedAccountGroupMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRelatedAccountGroupMembershipsFixedSizeCollection(pages, collectionSize); } } @@ -4157,12 +4176,13 @@ public static class SearchRelatedAccountGroupMembershipsPage SearchRelatedAccountGroupMembershipsPage> { private SearchRelatedAccountGroupMembershipsPage( - PageContext< + @Nullable + PageContext< SearchRelatedAccountGroupMembershipsRequest, SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> context, - SearchRelatedAccountGroupMembershipsResponse response) { + @Nullable SearchRelatedAccountGroupMembershipsResponse response) { super(context, response); } @@ -4172,18 +4192,20 @@ private static SearchRelatedAccountGroupMembershipsPage createEmptyPage() { @Override protected SearchRelatedAccountGroupMembershipsPage createPage( - PageContext< + @Nullable + PageContext< SearchRelatedAccountGroupMembershipsRequest, SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> context, - SearchRelatedAccountGroupMembershipsResponse response) { + @Nullable SearchRelatedAccountGroupMembershipsResponse response) { return new SearchRelatedAccountGroupMembershipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SearchRelatedAccountGroupMembershipsRequest, SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> @@ -4202,7 +4224,7 @@ public static class SearchRelatedAccountGroupMembershipsFixedSizeCollection SearchRelatedAccountGroupMembershipsFixedSizeCollection> { private SearchRelatedAccountGroupMembershipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4212,7 +4234,7 @@ private static SearchRelatedAccountGroupMembershipsFixedSizeCollection createEmp @Override protected SearchRelatedAccountGroupMembershipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchRelatedAccountGroupMembershipsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java index 750a9478a29a..3c422df9e660 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -346,7 +347,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecaptchaEnterpriseServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java index 51031d64cbea..c66677e5a3d0 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java @@ -96,6 +96,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -816,7 +817,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -955,7 +956,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAssessmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java index 4fc999ce6a42..9ef17032720e 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java @@ -31,6 +31,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. /** @@ -165,7 +166,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RecaptchaEnterpriseServiceV1Beta1Client implements BackgroundResource { - private final RecaptchaEnterpriseServiceV1Beta1Settings settings; + private final @Nullable RecaptchaEnterpriseServiceV1Beta1Settings settings; private final RecaptchaEnterpriseServiceV1Beta1Stub stub; /** Constructs an instance of RecaptchaEnterpriseServiceV1Beta1Client with default settings. */ @@ -210,7 +211,7 @@ protected RecaptchaEnterpriseServiceV1Beta1Client(RecaptchaEnterpriseServiceV1Be this.stub = stub; } - public final RecaptchaEnterpriseServiceV1Beta1Settings getSettings() { + public final @Nullable RecaptchaEnterpriseServiceV1Beta1Settings getSettings() { return settings; } @@ -244,7 +245,7 @@ public RecaptchaEnterpriseServiceV1Beta1Stub getStub() { * @param assessment Required. The assessment details. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Assessment createAssessment(ProjectName parent, Assessment assessment) { + public final Assessment createAssessment(@Nullable ProjectName parent, Assessment assessment) { CreateAssessmentRequest request = CreateAssessmentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -376,7 +377,7 @@ public final UnaryCallable createAssessment * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotateAssessmentResponse annotateAssessment( - AssessmentName name, AnnotateAssessmentRequest.Annotation annotation) { + @Nullable AssessmentName name, AnnotateAssessmentRequest.Annotation annotation) { AnnotateAssessmentRequest request = AnnotateAssessmentRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java index 6d49f8fea1e7..67aba03891ab 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,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); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecaptchaEnterpriseServiceV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java index 1837a0fb13c3..f755e2d078f4 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -230,7 +231,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); } @@ -295,7 +296,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAssessmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java index 17c824f103e9..5e9af3da41e7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String assessment) { return newBuilder().setProject(project).setAssessment(assessment).build().toString(); } - public static AssessmentName parse(String formattedString) { + public static @Nullable AssessmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssessmentName> values) { List list = new ArrayList<>(values.size()); for (AssessmentName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java index 00d193a4b6c6..648b4bd51f4c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String firewallpolicy) { return newBuilder().setProject(project).setFirewallpolicy(firewallpolicy).build().toString(); } - public static FirewallPolicyName parse(String formattedString) { + public static @Nullable FirewallPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FirewallPolicyName> values) { List list = new ArrayList<>(values.size()); for (FirewallPolicyName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java index 613c93d8cab2..a76e0d31a0c7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/KeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String key) { return newBuilder().setProject(project).setKey(key).build().toString(); } - public static KeyName parse(String formattedString) { + public static @Nullable KeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyName> values) { List list = new ArrayList<>(values.size()); for (KeyName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java index 92a170302479..bcee91dd6443 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/MetricsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String key) { return newBuilder().setProject(project).setKey(key).build().toString(); } - public static MetricsName parse(String formattedString) { + public static @Nullable MetricsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MetricsName> values) { List list = new ArrayList<>(values.size()); for (MetricsName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java index 6aa789f7ed10..a0c52955018a 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java index 20b958883181..c4171758f8c5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String relatedaccountgroup, String m .toString(); } - public static RelatedAccountGroupMembershipName parse(String formattedString) { + public static @Nullable RelatedAccountGroupMembershipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -110,7 +111,8 @@ public static List parseList(List for return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable RelatedAccountGroupMembershipName> values) { List list = new ArrayList<>(values.size()); for (RelatedAccountGroupMembershipName value : values) { if (value == null) { @@ -159,7 +161,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java index 4eb1d8707987..f11bd48b1052 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String project, String relatedaccountgroup) { .toString(); } - public static RelatedAccountGroupName parse(String formattedString) { + public static @Nullable RelatedAccountGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RelatedAccountGroupName> values) { List list = new ArrayList<>(values.size()); for (RelatedAccountGroupName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java index 558218328e36..1c0487eb29de 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AssessmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String assessment) { return newBuilder().setProject(project).setAssessment(assessment).build().toString(); } - public static AssessmentName parse(String formattedString) { + public static @Nullable AssessmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssessmentName> values) { List list = new ArrayList<>(values.size()); for (AssessmentName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java index e6678e4e5cc8..92712b2848cd 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java index 296804554a85..bea20967e531 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java @@ -39,6 +39,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. /** @@ -243,7 +244,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CatalogServiceClient implements BackgroundResource { - private final CatalogServiceSettings settings; + private final @Nullable CatalogServiceSettings settings; private final CatalogServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -291,7 +292,7 @@ protected CatalogServiceClient(CatalogServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CatalogServiceSettings getSettings() { + public final @Nullable CatalogServiceSettings getSettings() { return settings; } @@ -340,7 +341,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param catalogItem Required. The catalog item to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CatalogItem createCatalogItem(CatalogName parent, CatalogItem catalogItem) { + public final CatalogItem createCatalogItem( + @Nullable CatalogName parent, CatalogItem catalogItem) { CreateCatalogItemRequest request = CreateCatalogItemRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -460,7 +462,7 @@ public final UnaryCallable createCatalogI * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CatalogItem getCatalogItem(CatalogItemPathName name) { + public final CatalogItem getCatalogItem(@Nullable CatalogItemPathName name) { GetCatalogItemRequest request = GetCatalogItemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCatalogItem(request); @@ -584,7 +586,8 @@ public final UnaryCallable getCatalogItemCal * @param filter Optional. A filter to apply on the list results. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogItemsPagedResponse listCatalogItems(CatalogName parent, String filter) { + public final ListCatalogItemsPagedResponse listCatalogItems( + @Nullable CatalogName parent, String filter) { ListCatalogItemsRequest request = ListCatalogItemsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -764,7 +767,7 @@ public final ListCatalogItemsPagedResponse listCatalogItems(ListCatalogItemsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CatalogItem updateCatalogItem( - CatalogItemPathName name, CatalogItem catalogItem, FieldMask updateMask) { + @Nullable CatalogItemPathName name, CatalogItem catalogItem, FieldMask updateMask) { UpdateCatalogItemRequest request = UpdateCatalogItemRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -904,7 +907,7 @@ public final UnaryCallable updateCatalogI * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCatalogItem(CatalogItemPathName name) { + public final void deleteCatalogItem(@Nullable CatalogItemPathName name) { DeleteCatalogItemRequest request = DeleteCatalogItemRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1041,7 +1044,7 @@ public final UnaryCallable deleteCatalogItemCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importCatalogItemsAsync( - CatalogName parent, + @Nullable CatalogName parent, String requestId, InputConfig inputConfig, ImportErrorsConfig errorsConfig) { @@ -1272,8 +1275,9 @@ public static class ListCatalogItemsPage ListCatalogItemsRequest, ListCatalogItemsResponse, CatalogItem, ListCatalogItemsPage> { private ListCatalogItemsPage( - PageContext context, - ListCatalogItemsResponse response) { + @Nullable PageContext + context, + @Nullable ListCatalogItemsResponse response) { super(context, response); } @@ -1283,14 +1287,16 @@ private static ListCatalogItemsPage createEmptyPage() { @Override protected ListCatalogItemsPage createPage( - PageContext context, - ListCatalogItemsResponse response) { + @Nullable PageContext + context, + @Nullable ListCatalogItemsResponse response) { return new ListCatalogItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1305,7 +1311,7 @@ public static class ListCatalogItemsFixedSizeCollection ListCatalogItemsFixedSizeCollection> { private ListCatalogItemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1315,7 +1321,7 @@ private static ListCatalogItemsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogItemsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java index 0b8ff65dab14..d344ddd284e7 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java index 2a7f8dce2561..ca1d810306c6 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java @@ -34,6 +34,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. /** @@ -194,7 +195,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionApiKeyRegistryClient implements BackgroundResource { - private final PredictionApiKeyRegistrySettings settings; + private final @Nullable PredictionApiKeyRegistrySettings settings; private final PredictionApiKeyRegistryStub stub; /** Constructs an instance of PredictionApiKeyRegistryClient with default settings. */ @@ -236,7 +237,7 @@ protected PredictionApiKeyRegistryClient(PredictionApiKeyRegistryStub stub) { this.stub = stub; } - public final PredictionApiKeyRegistrySettings getSettings() { + public final @Nullable PredictionApiKeyRegistrySettings getSettings() { return settings; } @@ -274,7 +275,7 @@ public PredictionApiKeyRegistryStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration( - EventStoreName parent, PredictionApiKeyRegistration predictionApiKeyRegistration) { + @Nullable EventStoreName parent, PredictionApiKeyRegistration predictionApiKeyRegistration) { CreatePredictionApiKeyRegistrationRequest request = CreatePredictionApiKeyRegistrationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -420,7 +421,7 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKeyRegistrations( - EventStoreName parent) { + @Nullable EventStoreName parent) { ListPredictionApiKeyRegistrationsRequest request = ListPredictionApiKeyRegistrationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -614,7 +615,8 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePredictionApiKeyRegistration(PredictionApiKeyRegistrationName name) { + public final void deletePredictionApiKeyRegistration( + @Nullable PredictionApiKeyRegistrationName name) { DeletePredictionApiKeyRegistrationRequest request = DeletePredictionApiKeyRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -802,12 +804,13 @@ public static class ListPredictionApiKeyRegistrationsPage ListPredictionApiKeyRegistrationsPage> { private ListPredictionApiKeyRegistrationsPage( - PageContext< + @Nullable + PageContext< ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, - ListPredictionApiKeyRegistrationsResponse response) { + @Nullable ListPredictionApiKeyRegistrationsResponse response) { super(context, response); } @@ -817,18 +820,20 @@ private static ListPredictionApiKeyRegistrationsPage createEmptyPage() { @Override protected ListPredictionApiKeyRegistrationsPage createPage( - PageContext< + @Nullable + PageContext< ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, - ListPredictionApiKeyRegistrationsResponse response) { + @Nullable ListPredictionApiKeyRegistrationsResponse response) { return new ListPredictionApiKeyRegistrationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> @@ -847,7 +852,7 @@ public static class ListPredictionApiKeyRegistrationsFixedSizeCollection ListPredictionApiKeyRegistrationsFixedSizeCollection> { private ListPredictionApiKeyRegistrationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -857,7 +862,7 @@ private static ListPredictionApiKeyRegistrationsFixedSizeCollection createEmptyC @Override protected ListPredictionApiKeyRegistrationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPredictionApiKeyRegistrationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java index 14ec73ed420d..6c5ca14eb815 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,7 +176,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); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionApiKeyRegistryStubSettings.newBuilder(clientContext)); } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java index 40fb4b3fd4f3..abf9736c60ab 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java @@ -35,6 +35,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. /** @@ -153,7 +154,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -193,7 +194,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } @@ -261,7 +262,7 @@ public PredictionServiceStub getStub() { * logging. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PredictPagedResponse predict(PlacementName name, UserEvent userEvent) { + public final PredictPagedResponse predict(@Nullable PlacementName name, UserEvent userEvent) { PredictRequest request = PredictRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -529,8 +530,8 @@ public static class PredictPage extends AbstractPage, PredictPage> { private PredictPage( - PageContext> context, - PredictResponse response) { + @Nullable PageContext> context, + @Nullable PredictResponse response) { super(context, response); } @@ -540,14 +541,14 @@ private static PredictPage createEmptyPage() { @Override protected PredictPage createPage( - PageContext> context, - PredictResponse response) { + @Nullable PageContext> context, + @Nullable PredictResponse response) { return new PredictPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext> context, + @Nullable PageContext> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -561,7 +562,7 @@ public static class PredictFixedSizeCollection PredictPage, PredictFixedSizeCollection> { - private PredictFixedSizeCollection(List pages, int collectionSize) { + private PredictFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -571,7 +572,7 @@ private static PredictFixedSizeCollection createEmptyCollection() { @Override protected PredictFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PredictFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java index 370ca70e164c..f96100c09efc 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java index 983625b2a61d..4023e4b031c2 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java @@ -38,6 +38,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. /** @@ -230,7 +231,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -278,7 +279,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } @@ -328,7 +329,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param userEvent Required. User event to write. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserEvent writeUserEvent(EventStoreName parent, UserEvent userEvent) { + public final UserEvent writeUserEvent(@Nullable EventStoreName parent, UserEvent userEvent) { WriteUserEventRequest request = WriteUserEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -468,7 +469,7 @@ public final UnaryCallable writeUserEventCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HttpBody collectUserEvent( - EventStoreName parent, String userEvent, String uri, long ets) { + @Nullable EventStoreName parent, String userEvent, String uri, long ets) { CollectUserEventRequest request = CollectUserEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -647,7 +648,8 @@ public final UnaryCallable collectUserEventCa * eventsMissingCatalogItems * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserEventsPagedResponse listUserEvents(EventStoreName parent, String filter) { + public final ListUserEventsPagedResponse listUserEvents( + @Nullable EventStoreName parent, String filter) { ListUserEventsRequest request = ListUserEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -871,7 +873,7 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - purgeUserEventsAsync(EventStoreName parent, String filter, boolean force) { + purgeUserEventsAsync(@Nullable EventStoreName parent, String filter, boolean force) { PurgeUserEventsRequest request = PurgeUserEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1086,7 +1088,7 @@ public final UnaryCallable purgeUserEventsCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture importUserEventsAsync( - EventStoreName parent, + @Nullable EventStoreName parent, String requestId, InputConfig inputConfig, ImportErrorsConfig errorsConfig) { @@ -1325,8 +1327,8 @@ public static class ListUserEventsPage ListUserEventsRequest, ListUserEventsResponse, UserEvent, ListUserEventsPage> { private ListUserEventsPage( - PageContext context, - ListUserEventsResponse response) { + @Nullable PageContext context, + @Nullable ListUserEventsResponse response) { super(context, response); } @@ -1336,14 +1338,14 @@ private static ListUserEventsPage createEmptyPage() { @Override protected ListUserEventsPage createPage( - PageContext context, - ListUserEventsResponse response) { + @Nullable PageContext context, + @Nullable ListUserEventsResponse response) { return new ListUserEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1357,7 +1359,8 @@ public static class ListUserEventsFixedSizeCollection ListUserEventsPage, ListUserEventsFixedSizeCollection> { - private ListUserEventsFixedSizeCollection(List pages, int collectionSize) { + private ListUserEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1367,7 +1370,7 @@ private static ListUserEventsFixedSizeCollection createEmptyCollection() { @Override protected ListUserEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUserEventsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java index d3e6e71fbd59..386c330d312b 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -237,7 +238,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java index 26ab87b429ff..82e1da95b699 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java @@ -37,6 +37,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class CatalogServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java index 25f88b128c0c..e18e028adf08 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -364,7 +365,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); } @@ -451,7 +452,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCatalogItemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java index 46624b4efe77..da879156cdc2 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,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); } @@ -414,7 +415,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPredictionApiKeyRegistrationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java index dac2d490376c..03629c33b067 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,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); } @@ -345,7 +346,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = PagedCallSettings.newBuilder(PREDICT_PAGE_STR_FACT); diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java index 36cbf5fc9919..9056f5cc77c1 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java index 7732e52635a5..aeaf7387e50f 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -363,7 +364,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); } @@ -450,7 +451,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java index 3679462762be..277690d8652c 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CatalogItemPathName parse(String formattedString) { + public static @Nullable CatalogItemPathName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogItemPathName> values) { List list = new ArrayList<>(values.size()); for (CatalogItemPathName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java index 905099fd3b9d..204e014ffefa 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java index c88f3fed1997..805adb22b861 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static EventStoreName parse(String formattedString) { + public static @Nullable EventStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventStoreName> values) { List list = new ArrayList<>(values.size()); for (EventStoreName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java index 40573d30534b..0c7394062eb1 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PlacementName parse(String formattedString) { + public static @Nullable PlacementName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PlacementName> values) { List list = new ArrayList<>(values.size()); for (PlacementName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java index b78ed41f6c88..34b76cbf0b50 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -119,7 +120,7 @@ public static String format( .toString(); } - public static PredictionApiKeyRegistrationName parse(String formattedString) { + public static @Nullable PredictionApiKeyRegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -143,7 +144,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PredictionApiKeyRegistrationName> values) { List list = new ArrayList<>(values.size()); for (PredictionApiKeyRegistrationName value : values) { if (value == null) { @@ -208,7 +209,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java index 1fae555fe11b..8770595b899d 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderClient.java @@ -34,6 +34,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. /** @@ -379,7 +380,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RecommenderClient implements BackgroundResource { - private final RecommenderSettings settings; + private final @Nullable RecommenderSettings settings; private final RecommenderStub stub; /** Constructs an instance of RecommenderClient with default settings. */ @@ -418,7 +419,7 @@ protected RecommenderClient(RecommenderStub stub) { this.stub = stub; } - public final RecommenderSettings getSettings() { + public final @Nullable RecommenderSettings getSettings() { return settings; } @@ -471,7 +472,7 @@ public RecommenderStub getStub() { * https://cloud.google.com/recommender/docs/insights/insight-types. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInsightsPagedResponse listInsights(InsightTypeName parent) { + public final ListInsightsPagedResponse listInsights(@Nullable InsightTypeName parent) { ListInsightsRequest request = ListInsightsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -671,7 +672,7 @@ public final UnaryCallable listInsigh * @param name Required. Name of the insight. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Insight getInsight(InsightName name) { + public final Insight getInsight(@Nullable InsightName name) { GetInsightRequest request = GetInsightRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInsight(request); @@ -804,7 +805,7 @@ public final UnaryCallable getInsightCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Insight markInsightAccepted( - InsightName name, Map stateMetadata, String etag) { + @Nullable InsightName name, Map stateMetadata, String etag) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -980,7 +981,8 @@ public final UnaryCallable markInsightAccep * https://cloud.google.com/recommender/docs/recommenders. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRecommendationsPagedResponse listRecommendations(RecommenderName parent) { + public final ListRecommendationsPagedResponse listRecommendations( + @Nullable RecommenderName parent) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1122,7 +1124,7 @@ public final ListRecommendationsPagedResponse listRecommendations(String parent) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRecommendationsPagedResponse listRecommendations( - RecommenderName parent, String filter) { + @Nullable RecommenderName parent, String filter) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1364,7 +1366,7 @@ public final ListRecommendationsPagedResponse listRecommendations( * @param name Required. Name of the recommendation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Recommendation getRecommendation(RecommendationName name) { + public final Recommendation getRecommendation(@Nullable RecommendationName name) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1581,7 +1583,7 @@ public final Recommendation markRecommendationDismissed( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationClaimed( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1763,7 +1765,7 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationSucceeded( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1946,7 +1948,7 @@ public final Recommendation markRecommendationSucceeded( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationFailed( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2127,7 +2129,7 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RecommenderConfig getRecommenderConfig(RecommenderConfigName name) { + public final RecommenderConfig getRecommenderConfig(@Nullable RecommenderConfigName name) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2378,7 +2380,7 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InsightTypeConfig getInsightTypeConfig(InsightTypeConfigName name) { + public final InsightTypeConfig getInsightTypeConfig(@Nullable InsightTypeConfigName name) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2649,8 +2651,8 @@ public static class ListInsightsPage extends AbstractPage { private ListInsightsPage( - PageContext context, - ListInsightsResponse response) { + @Nullable PageContext context, + @Nullable ListInsightsResponse response) { super(context, response); } @@ -2660,14 +2662,14 @@ private static ListInsightsPage createEmptyPage() { @Override protected ListInsightsPage createPage( - PageContext context, - ListInsightsResponse response) { + @Nullable PageContext context, + @Nullable ListInsightsResponse response) { return new ListInsightsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2681,7 +2683,8 @@ public static class ListInsightsFixedSizeCollection ListInsightsPage, ListInsightsFixedSizeCollection> { - private ListInsightsFixedSizeCollection(List pages, int collectionSize) { + private ListInsightsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2691,7 +2694,7 @@ private static ListInsightsFixedSizeCollection createEmptyCollection() { @Override protected ListInsightsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInsightsFixedSizeCollection(pages, collectionSize); } } @@ -2729,9 +2732,10 @@ public static class ListRecommendationsPage ListRecommendationsPage> { private ListRecommendationsPage( - PageContext + @Nullable + PageContext context, - ListRecommendationsResponse response) { + @Nullable ListRecommendationsResponse response) { super(context, response); } @@ -2741,15 +2745,17 @@ private static ListRecommendationsPage createEmptyPage() { @Override protected ListRecommendationsPage createPage( - PageContext + @Nullable + PageContext context, - ListRecommendationsResponse response) { + @Nullable ListRecommendationsResponse response) { return new ListRecommendationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2765,7 +2771,7 @@ public static class ListRecommendationsFixedSizeCollection ListRecommendationsFixedSizeCollection> { private ListRecommendationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2775,7 +2781,7 @@ private static ListRecommendationsFixedSizeCollection createEmptyCollection() { @Override protected ListRecommendationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecommendationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java index fabe4bcc6840..e0ca43226f44 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/RecommenderSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecommenderStubSettings.newBuilder(clientContext)); } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java index 1162cb5ae81d..64f66fc189ac 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/RecommenderStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -445,7 +446,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); } @@ -565,7 +566,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInsightsSettings = PagedCallSettings.newBuilder(LIST_INSIGHTS_PAGE_STR_FACT); diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java index 89c710fb349c..f6905c8e10cd 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderClient.java @@ -35,6 +35,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. /** @@ -393,7 +394,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RecommenderClient implements BackgroundResource { - private final RecommenderSettings settings; + private final @Nullable RecommenderSettings settings; private final RecommenderStub stub; /** Constructs an instance of RecommenderClient with default settings. */ @@ -432,7 +433,7 @@ protected RecommenderClient(RecommenderStub stub) { this.stub = stub; } - public final RecommenderSettings getSettings() { + public final @Nullable RecommenderSettings getSettings() { return settings; } @@ -485,7 +486,7 @@ public RecommenderStub getStub() { * https://cloud.google.com/recommender/docs/insights/insight-types. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInsightsPagedResponse listInsights(InsightTypeName parent) { + public final ListInsightsPagedResponse listInsights(@Nullable InsightTypeName parent) { ListInsightsRequest request = ListInsightsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -685,7 +686,7 @@ public final UnaryCallable listInsigh * @param name Required. Name of the insight. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Insight getInsight(InsightName name) { + public final Insight getInsight(@Nullable InsightName name) { GetInsightRequest request = GetInsightRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInsight(request); @@ -818,7 +819,7 @@ public final UnaryCallable getInsightCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Insight markInsightAccepted( - InsightName name, Map stateMetadata, String etag) { + @Nullable InsightName name, Map stateMetadata, String etag) { MarkInsightAcceptedRequest request = MarkInsightAcceptedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1023,7 +1024,7 @@ public final UnaryCallable markInsightAccep * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListRecommendationsPagedResponse listRecommendations( - RecommenderName parent, String filter) { + @Nullable RecommenderName parent, String filter) { ListRecommendationsRequest request = ListRecommendationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1257,7 +1258,7 @@ public final ListRecommendationsPagedResponse listRecommendations( * @param name Required. Name of the recommendation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Recommendation getRecommendation(RecommendationName name) { + public final Recommendation getRecommendation(@Nullable RecommendationName name) { GetRecommendationRequest request = GetRecommendationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1397,7 +1398,7 @@ public final UnaryCallable getRecommen * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationClaimed( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationClaimedRequest request = MarkRecommendationClaimedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1576,7 +1577,7 @@ public final Recommendation markRecommendationClaimed(MarkRecommendationClaimedR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationSucceeded( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationSucceededRequest request = MarkRecommendationSucceededRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1759,7 +1760,7 @@ public final Recommendation markRecommendationSucceeded( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Recommendation markRecommendationFailed( - RecommendationName name, Map stateMetadata, String etag) { + @Nullable RecommendationName name, Map stateMetadata, String etag) { MarkRecommendationFailedRequest request = MarkRecommendationFailedRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1937,7 +1938,7 @@ public final Recommendation markRecommendationFailed(MarkRecommendationFailedReq * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RecommenderConfig getRecommenderConfig(RecommenderConfigName name) { + public final RecommenderConfig getRecommenderConfig(@Nullable RecommenderConfigName name) { GetRecommenderConfigRequest request = GetRecommenderConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2182,7 +2183,7 @@ public final RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRe * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InsightTypeConfig getInsightTypeConfig(InsightTypeConfigName name) { + public final InsightTypeConfig getInsightTypeConfig(@Nullable InsightTypeConfigName name) { GetInsightTypeConfigRequest request = GetInsightTypeConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2654,8 +2655,8 @@ public static class ListInsightsPage extends AbstractPage { private ListInsightsPage( - PageContext context, - ListInsightsResponse response) { + @Nullable PageContext context, + @Nullable ListInsightsResponse response) { super(context, response); } @@ -2665,14 +2666,14 @@ private static ListInsightsPage createEmptyPage() { @Override protected ListInsightsPage createPage( - PageContext context, - ListInsightsResponse response) { + @Nullable PageContext context, + @Nullable ListInsightsResponse response) { return new ListInsightsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2686,7 +2687,8 @@ public static class ListInsightsFixedSizeCollection ListInsightsPage, ListInsightsFixedSizeCollection> { - private ListInsightsFixedSizeCollection(List pages, int collectionSize) { + private ListInsightsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2696,7 +2698,7 @@ private static ListInsightsFixedSizeCollection createEmptyCollection() { @Override protected ListInsightsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInsightsFixedSizeCollection(pages, collectionSize); } } @@ -2734,9 +2736,10 @@ public static class ListRecommendationsPage ListRecommendationsPage> { private ListRecommendationsPage( - PageContext + @Nullable + PageContext context, - ListRecommendationsResponse response) { + @Nullable ListRecommendationsResponse response) { super(context, response); } @@ -2746,15 +2749,17 @@ private static ListRecommendationsPage createEmptyPage() { @Override protected ListRecommendationsPage createPage( - PageContext + @Nullable + PageContext context, - ListRecommendationsResponse response) { + @Nullable ListRecommendationsResponse response) { return new ListRecommendationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2770,7 +2775,7 @@ public static class ListRecommendationsFixedSizeCollection ListRecommendationsFixedSizeCollection> { private ListRecommendationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2780,7 +2785,7 @@ private static ListRecommendationsFixedSizeCollection createEmptyCollection() { @Override protected ListRecommendationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecommendationsFixedSizeCollection(pages, collectionSize); } } @@ -2817,8 +2822,9 @@ public static class ListRecommendersPage ListRecommendersPage> { private ListRecommendersPage( - PageContext context, - ListRecommendersResponse response) { + @Nullable PageContext + context, + @Nullable ListRecommendersResponse response) { super(context, response); } @@ -2828,14 +2834,16 @@ private static ListRecommendersPage createEmptyPage() { @Override protected ListRecommendersPage createPage( - PageContext context, - ListRecommendersResponse response) { + @Nullable PageContext + context, + @Nullable ListRecommendersResponse response) { return new ListRecommendersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2850,7 +2858,7 @@ public static class ListRecommendersFixedSizeCollection ListRecommendersFixedSizeCollection> { private ListRecommendersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2860,7 +2868,7 @@ private static ListRecommendersFixedSizeCollection createEmptyCollection() { @Override protected ListRecommendersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecommendersFixedSizeCollection(pages, collectionSize); } } @@ -2894,8 +2902,9 @@ public static class ListInsightTypesPage ListInsightTypesRequest, ListInsightTypesResponse, InsightType, ListInsightTypesPage> { private ListInsightTypesPage( - PageContext context, - ListInsightTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListInsightTypesResponse response) { super(context, response); } @@ -2905,14 +2914,16 @@ private static ListInsightTypesPage createEmptyPage() { @Override protected ListInsightTypesPage createPage( - PageContext context, - ListInsightTypesResponse response) { + @Nullable PageContext + context, + @Nullable ListInsightTypesResponse response) { return new ListInsightTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2927,7 +2938,7 @@ public static class ListInsightTypesFixedSizeCollection ListInsightTypesFixedSizeCollection> { private ListInsightTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2937,7 +2948,7 @@ private static ListInsightTypesFixedSizeCollection createEmptyCollection() { @Override protected ListInsightTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInsightTypesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java index 4f536879bdc5..97620716678c 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -232,7 +233,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); } @@ -252,7 +253,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RecommenderStubSettings.newBuilder(clientContext)); } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java index 8c59f66d0cd4..781aa9c3ad53 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/RecommenderStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -579,7 +580,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); } @@ -703,7 +704,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInsightsSettings = PagedCallSettings.newBuilder(LIST_INSIGHTS_PAGE_STR_FACT); diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightName.java index 43a69dae556a..1fb3ab8c3212 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -269,7 +270,7 @@ public static String formatOrganizationLocationInsightTypeInsightName( .toString(); } - public static InsightName parse(String formattedString) { + public static @Nullable InsightName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -315,7 +316,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightName> values) { List list = new ArrayList<>(values.size()); for (InsightName value : values) { if (value == null) { @@ -378,7 +379,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeConfigName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeConfigName.java index 0a7e45d729e6..687cd25fb7cb 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeConfigName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -201,7 +202,7 @@ public static String formatBillingAccountLocationInsightTypeName( .toString(); } - public static InsightTypeConfigName parse(String formattedString) { + public static @Nullable InsightTypeConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -230,7 +231,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightTypeConfigName> values) { List list = new ArrayList<>(values.size()); for (InsightTypeConfigName value : values) { if (value == null) { @@ -286,7 +287,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeName.java index d4004308fd72..37c4c7c60923 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/InsightTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -246,7 +247,7 @@ public static String formatOrganizationLocationInsightTypeName( .toString(); } - public static InsightTypeName parse(String formattedString) { + public static @Nullable InsightTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -278,7 +279,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightTypeName> values) { List list = new ArrayList<>(values.size()); for (InsightTypeName value : values) { if (value == null) { @@ -338,7 +339,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommendationName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommendationName.java index cc205987ba6a..4928d427add9 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommendationName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommendationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatOrganizationLocationRecommenderRecommendationName( .toString(); } - public static RecommendationName parse(String formattedString) { + public static @Nullable RecommendationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -318,7 +319,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommendationName> values) { List list = new ArrayList<>(values.size()); for (RecommendationName value : values) { if (value == null) { @@ -381,7 +382,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderConfigName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderConfigName.java index ef8f4826b792..5bd252047edf 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderConfigName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -201,7 +202,7 @@ public static String formatBillingAccountLocationRecommenderName( .toString(); } - public static RecommenderConfigName parse(String formattedString) { + public static @Nullable RecommenderConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -230,7 +231,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommenderConfigName> values) { List list = new ArrayList<>(values.size()); for (RecommenderConfigName value : values) { if (value == null) { @@ -286,7 +287,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderName.java b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderName.java index 8bebb1e1c52e..51fc44a1695e 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderName.java +++ b/java-recommender/proto-google-cloud-recommender-v1/src/main/java/com/google/cloud/recommender/v1/RecommenderName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -246,7 +247,7 @@ public static String formatOrganizationLocationRecommenderName( .toString(); } - public static RecommenderName parse(String formattedString) { + public static @Nullable RecommenderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -278,7 +279,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommenderName> values) { List list = new ArrayList<>(values.size()); for (RecommenderName value : values) { if (value == null) { @@ -338,7 +339,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightName.java index eb4112b5d7b3..32fa2badc006 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -269,7 +270,7 @@ public static String formatOrganizationLocationInsightTypeInsightName( .toString(); } - public static InsightName parse(String formattedString) { + public static @Nullable InsightName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -315,7 +316,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightName> values) { List list = new ArrayList<>(values.size()); for (InsightName value : values) { if (value == null) { @@ -378,7 +379,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfigName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfigName.java index 11572e4d615f..5465844038b3 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfigName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatOrganizationLocationInsightTypeName( .toString(); } - public static InsightTypeConfigName parse(String formattedString) { + public static @Nullable InsightTypeConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightTypeConfigName> values) { List list = new ArrayList<>(values.size()); for (InsightTypeConfigName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeName.java index 897004562eb2..affe4aab8365 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/InsightTypeName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatInsightTypeName(String insightType) { return newInsightTypeBuilder().setInsightType(insightType).build().toString(); } - public static InsightTypeName parse(String formattedString) { + public static @Nullable InsightTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -305,7 +306,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InsightTypeName> values) { List list = new ArrayList<>(values.size()); for (InsightTypeName value : values) { if (value == null) { @@ -366,7 +367,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommendationName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommendationName.java index 1a8561ea6b80..2571b3e28011 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommendationName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommendationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatOrganizationLocationRecommenderRecommendationName( .toString(); } - public static RecommendationName parse(String formattedString) { + public static @Nullable RecommendationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -318,7 +319,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommendationName> values) { List list = new ArrayList<>(values.size()); for (RecommendationName value : values) { if (value == null) { @@ -381,7 +382,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderConfigName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderConfigName.java index cdda68c97e19..cddcf305d113 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderConfigName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -157,7 +158,7 @@ public static String formatOrganizationLocationRecommenderName( .toString(); } - public static RecommenderConfigName parse(String formattedString) { + public static @Nullable RecommenderConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +183,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommenderConfigName> values) { List list = new ArrayList<>(values.size()); for (RecommenderConfigName value : values) { if (value == null) { @@ -234,7 +235,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderName.java b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderName.java index b9cb1b5a8f92..e735e38e50ce 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderName.java +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/src/main/java/com/google/cloud/recommender/v1beta1/RecommenderName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatRecommenderName(String recommender) { return newRecommenderBuilder().setRecommender(recommender).build().toString(); } - public static RecommenderName parse(String formattedString) { + public static @Nullable RecommenderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -305,7 +306,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecommenderName> values) { List list = new ArrayList<>(values.size()); for (RecommenderName value : values) { if (value == null) { @@ -366,7 +367,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java index 0b58119691e5..ce826401a8a1 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java @@ -45,6 +45,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. /** @@ -482,7 +483,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudRedisClusterClient implements BackgroundResource { - private final CloudRedisClusterSettings settings; + private final @Nullable CloudRedisClusterSettings settings; private final CloudRedisClusterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -530,7 +531,7 @@ protected CloudRedisClusterClient(CloudRedisClusterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudRedisClusterSettings getSettings() { + public final @Nullable CloudRedisClusterSettings getSettings() { return settings; } @@ -589,7 +590,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -793,7 +794,7 @@ public final UnaryCallable listCluste * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1045,7 +1046,7 @@ public final UnaryCallable updateClusterCallabl * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1210,7 +1211,7 @@ public final UnaryCallable deleteClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1409,7 +1410,8 @@ public final UnaryCallable createClusterCallabl * where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getClusterCertificateAuthority(CertificateAuthorityName name) { + public final CertificateAuthority getClusterCertificateAuthority( + @Nullable CertificateAuthorityName name) { GetClusterCertificateAuthorityRequest request = GetClusterCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1533,7 +1535,7 @@ public final CertificateAuthority getClusterCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - SharedRegionalCertificateAuthorityName name) { + @Nullable SharedRegionalCertificateAuthorityName name) { GetSharedRegionalCertificateAuthorityRequest request = GetSharedRegionalCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1670,7 +1672,7 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleClusterMaintenanceAsync( - ClusterName name, + @Nullable ClusterName name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleClusterMaintenanceRequest request = @@ -1849,7 +1851,8 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) { + public final ListBackupCollectionsPagedResponse listBackupCollections( + @Nullable LocationName parent) { ListBackupCollectionsRequest request = ListBackupCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2035,7 +2038,7 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupCollection getBackupCollection(BackupCollectionName name) { + public final BackupCollection getBackupCollection(@Nullable BackupCollectionName name) { GetBackupCollectionRequest request = GetBackupCollectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2159,7 +2162,7 @@ public final BackupCollection getBackupCollection(GetBackupCollectionRequest req * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(BackupCollectionName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2328,7 +2331,7 @@ public final UnaryCallable listBackupsC * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2443,7 +2446,7 @@ public final UnaryCallable getBackupCallable() { * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync(@Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -2691,7 +2694,7 @@ public final UnaryCallable exportBackupCallable( * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture backupClusterAsync(ClusterName name) { + public final OperationFuture backupClusterAsync(@Nullable ClusterName name) { BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return backupClusterAsync(request); @@ -3063,8 +3066,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -3074,14 +3077,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3095,7 +3098,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3105,7 +3109,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -3143,9 +3147,11 @@ public static class ListBackupCollectionsPage ListBackupCollectionsPage> { private ListBackupCollectionsPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { super(context, response); } @@ -3155,15 +3161,19 @@ private static ListBackupCollectionsPage createEmptyPage() { @Override protected ListBackupCollectionsPage createPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { return new ListBackupCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3179,7 +3189,7 @@ public static class ListBackupCollectionsFixedSizeCollection ListBackupCollectionsFixedSizeCollection> { private ListBackupCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3189,7 +3199,7 @@ private static ListBackupCollectionsFixedSizeCollection createEmptyCollection() @Override protected ListBackupCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -3220,8 +3230,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3231,14 +3241,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3252,7 +3262,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3262,7 +3273,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3296,8 +3307,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3307,14 +3318,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3328,7 +3339,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3338,7 +3350,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java index a51e08462b2a..fe5b164bb4c4 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -345,7 +346,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudRedisClusterStubSettings.newBuilder(clientContext)); } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java index 86725b83fea1..f3cac30c5778 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,11 +69,12 @@ @Generated("by gapic-generator-java") public abstract class CloudRedisClusterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java index 9ac2d7af7dd7..a1bf24e1e067 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -676,7 +677,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); } @@ -811,7 +812,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java index a56cc785f600..6e1f7c231c38 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java @@ -45,6 +45,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. /** @@ -483,7 +484,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudRedisClusterClient implements BackgroundResource { - private final CloudRedisClusterSettings settings; + private final @Nullable CloudRedisClusterSettings settings; private final CloudRedisClusterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -531,7 +532,7 @@ protected CloudRedisClusterClient(CloudRedisClusterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudRedisClusterSettings getSettings() { + public final @Nullable CloudRedisClusterSettings getSettings() { return settings; } @@ -590,7 +591,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -794,7 +795,7 @@ public final UnaryCallable listCluste * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -1046,7 +1047,7 @@ public final UnaryCallable updateClusterCallabl * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync(@Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1211,7 +1212,7 @@ public final UnaryCallable deleteClusterCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1410,7 +1411,8 @@ public final UnaryCallable createClusterCallabl * where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getClusterCertificateAuthority(CertificateAuthorityName name) { + public final CertificateAuthority getClusterCertificateAuthority( + @Nullable CertificateAuthorityName name) { GetClusterCertificateAuthorityRequest request = GetClusterCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1534,7 +1536,7 @@ public final CertificateAuthority getClusterCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - SharedRegionalCertificateAuthorityName name) { + @Nullable SharedRegionalCertificateAuthorityName name) { GetSharedRegionalCertificateAuthorityRequest request = GetSharedRegionalCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1671,7 +1673,7 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleClusterMaintenanceAsync( - ClusterName name, + @Nullable ClusterName name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleClusterMaintenanceRequest request = @@ -1850,7 +1852,8 @@ public final OperationFuture rescheduleClusterMaintenanceAsync( * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) { + public final ListBackupCollectionsPagedResponse listBackupCollections( + @Nullable LocationName parent) { ListBackupCollectionsRequest request = ListBackupCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2036,7 +2039,7 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupCollection getBackupCollection(BackupCollectionName name) { + public final BackupCollection getBackupCollection(@Nullable BackupCollectionName name) { GetBackupCollectionRequest request = GetBackupCollectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2160,7 +2163,7 @@ public final BackupCollection getBackupCollection(GetBackupCollectionRequest req * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(BackupCollectionName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2329,7 +2332,7 @@ public final UnaryCallable listBackupsC * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2444,7 +2447,7 @@ public final UnaryCallable getBackupCallable() { * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync(@Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -2692,7 +2695,7 @@ public final UnaryCallable exportBackupCallable( * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture backupClusterAsync(ClusterName name) { + public final OperationFuture backupClusterAsync(@Nullable ClusterName name) { BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return backupClusterAsync(request); @@ -3064,8 +3067,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -3075,14 +3078,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3096,7 +3099,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3106,7 +3110,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -3144,9 +3148,11 @@ public static class ListBackupCollectionsPage ListBackupCollectionsPage> { private ListBackupCollectionsPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { super(context, response); } @@ -3156,15 +3162,19 @@ private static ListBackupCollectionsPage createEmptyPage() { @Override protected ListBackupCollectionsPage createPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { return new ListBackupCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3180,7 +3190,7 @@ public static class ListBackupCollectionsFixedSizeCollection ListBackupCollectionsFixedSizeCollection> { private ListBackupCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3190,7 +3200,7 @@ private static ListBackupCollectionsFixedSizeCollection createEmptyCollection() @Override protected ListBackupCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -3221,8 +3231,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3232,14 +3242,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3253,7 +3263,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3263,7 +3274,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3297,8 +3308,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3308,14 +3319,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3329,7 +3340,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3339,7 +3351,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java index 80123746679c..5d7c2a2738c9 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -326,7 +327,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); } @@ -346,7 +347,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudRedisClusterStubSettings.newBuilder(clientContext)); } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java index 14e09985a740..5daeffa6e270 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class CloudRedisClusterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java index 80108ba35abb..8b0e5f7f515a 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -677,7 +678,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); } @@ -812,7 +813,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java index 09a05ad3c9f5..72c5fc092ad7 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupCollec .toString(); } - public static BackupCollectionName parse(String formattedString) { + public static @Nullable BackupCollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupCollectionName> values) { List list = new ArrayList<>(values.size()); for (BackupCollectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java index 8652ffd8d247..a1dbe257d43f 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java index 0eda345867a6..8c58d6142396 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static CertificateAuthorityName parse(String formattedString) { + public static @Nullable CertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (CertificateAuthorityName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterName.java index 0c22ad5ca70d..9867881fb0d1 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/LocationName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/LocationName.java index 65d31d2d7b6b..3253e03f6145 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/LocationName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/SharedRegionalCertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/SharedRegionalCertificateAuthorityName.java index 1452dae78ded..7f07ae655ccb 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/SharedRegionalCertificateAuthorityName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/SharedRegionalCertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SharedRegionalCertificateAuthorityName parse(String formattedString) { + public static @Nullable SharedRegionalCertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -93,7 +94,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SharedRegionalCertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (SharedRegionalCertificateAuthorityName value : values) { if (value == null) { @@ -138,7 +140,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java index a54f6c96edae..36c8c6ec6a19 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupCollec .toString(); } - public static BackupCollectionName parse(String formattedString) { + public static @Nullable BackupCollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupCollectionName> values) { List list = new ArrayList<>(values.size()); for (BackupCollectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java index 46aa916440c1..cb68f07e9db1 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java index df67310805d8..f4677d095595 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static CertificateAuthorityName parse(String formattedString) { + public static @Nullable CertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (CertificateAuthorityName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterName.java index 9479b715638c..4d231b99b4b5 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/LocationName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/LocationName.java index dfe1c22dd92b..410e89b775e2 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/LocationName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/SharedRegionalCertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/SharedRegionalCertificateAuthorityName.java index c228791a8963..086bf8c1e40d 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/SharedRegionalCertificateAuthorityName.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/SharedRegionalCertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SharedRegionalCertificateAuthorityName parse(String formattedString) { + public static @Nullable SharedRegionalCertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -93,7 +94,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SharedRegionalCertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (SharedRegionalCertificateAuthorityName value : values) { if (value == null) { @@ -138,7 +140,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index cad11036eb78..69af2bdfb8db 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -44,6 +44,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. /** @@ -407,7 +408,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudRedisClient implements BackgroundResource { - private final CloudRedisSettings settings; + private final @Nullable CloudRedisSettings settings; private final CloudRedisStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -453,7 +454,7 @@ protected CloudRedisClient(CloudRedisStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudRedisSettings getSettings() { + public final @Nullable CloudRedisSettings getSettings() { return settings; } @@ -512,7 +513,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -715,7 +716,7 @@ public final UnaryCallable listInst * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -828,7 +829,7 @@ public final UnaryCallable getInstanceCallable() { * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstanceAuthString getInstanceAuthString(InstanceName name) { + public final InstanceAuthString getInstanceAuthString(@Nullable InstanceName name) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -972,7 +973,7 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, String instanceId, Instance instance) { + @Nullable LocationName parent, String instanceId, Instance instance) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1327,7 +1328,7 @@ public final UnaryCallable updateInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeInstanceAsync( - InstanceName name, String redisVersion) { + @Nullable InstanceName name, String redisVersion) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1769,7 +1770,7 @@ public final UnaryCallable exportInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { + @Nullable InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1927,7 +1928,8 @@ public final UnaryCallable failoverInstanceC * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -2078,7 +2080,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName name, + @Nullable InstanceName name, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -2438,8 +2440,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2449,14 +2451,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2470,7 +2472,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2480,7 +2483,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -2514,8 +2517,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2525,14 +2528,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2546,7 +2549,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2556,7 +2560,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java index f32b07398996..e47c430d39ec 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -314,7 +315,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudRedisStubSettings.newBuilder(clientContext)); } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java index 30cf02a5c9ba..395218fbcba0 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStub.java @@ -46,6 +46,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,11 +58,12 @@ @Generated("by gapic-generator-java") public abstract class CloudRedisStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index add9734c42c7..90e220f6b539 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -517,7 +518,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); } @@ -643,7 +644,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java index abbea298e8e9..270d4aef3164 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -41,6 +41,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. /** @@ -376,7 +377,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudRedisClient implements BackgroundResource { - private final CloudRedisSettings settings; + private final @Nullable CloudRedisSettings settings; private final CloudRedisStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -422,7 +423,7 @@ protected CloudRedisClient(CloudRedisStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudRedisSettings getSettings() { + public final @Nullable CloudRedisSettings getSettings() { return settings; } @@ -481,7 +482,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -684,7 +685,7 @@ public final UnaryCallable listInst * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -797,7 +798,7 @@ public final UnaryCallable getInstanceCallable() { * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstanceAuthString getInstanceAuthString(InstanceName name) { + public final InstanceAuthString getInstanceAuthString(@Nullable InstanceName name) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -941,7 +942,7 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, String instanceId, Instance instance) { + @Nullable LocationName parent, String instanceId, Instance instance) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1294,7 +1295,7 @@ public final UnaryCallable updateInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeInstanceAsync( - InstanceName name, String redisVersion) { + @Nullable InstanceName name, String redisVersion) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1733,7 +1734,7 @@ public final UnaryCallable exportInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { + @Nullable InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1891,7 +1892,7 @@ public final UnaryCallable failoverInstanceC * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync(@Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -2041,7 +2042,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName name, + @Nullable InstanceName name, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -2246,8 +2247,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2257,14 +2258,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2278,7 +2279,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2288,7 +2290,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index 6e23b8385164..921ab46a7402 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -280,7 +281,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); } @@ -300,7 +301,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudRedisStubSettings.newBuilder(clientContext)); } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java index e68811a95d94..7bd0b3e49971 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class CloudRedisStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index edb7c82b6889..3545bb50216e 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,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); } @@ -565,7 +566,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java b/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java index b5981e2a2775..2648ba26e420 100644 --- a/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java +++ b/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java b/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java index e065880feabf..5c07da7e230b 100644 --- a/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java +++ b/java-redis/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java b/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java index 603b9f8ca7ef..0090b276fc17 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java +++ b/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java b/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java index 6b5c2f14a01f..1571415418e0 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java +++ b/java-redis/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java index dc2ee99a63bc..34baf0eeec92 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersClient.java @@ -44,6 +44,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. /** @@ -354,7 +355,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FoldersClient implements BackgroundResource { - private final FoldersSettings settings; + private final @Nullable FoldersSettings settings; private final FoldersStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -400,7 +401,7 @@ protected FoldersClient(FoldersStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final FoldersSettings getSettings() { + public final @Nullable FoldersSettings getSettings() { return settings; } @@ -449,7 +450,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder getFolder(FolderName name) { + public final Folder getFolder(@Nullable FolderName name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFolder(request); @@ -570,7 +571,7 @@ public final UnaryCallable getFolderCallable() { * permission on the `parent`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFoldersPagedResponse listFolders(ResourceName parent) { + public final ListFoldersPagedResponse listFolders(@Nullable ResourceName parent) { ListFoldersRequest request = ListFoldersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1280,7 +1281,7 @@ public final UnaryCallable updateFolderCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveFolderAsync( - FolderName name, ResourceName destinationParent) { + @Nullable FolderName name, @Nullable ResourceName destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1327,7 +1328,7 @@ public final OperationFuture moveFolderAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveFolderAsync( - FolderName name, String destinationParent) { + @Nullable FolderName name, String destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1374,7 +1375,7 @@ public final OperationFuture moveFolderAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveFolderAsync( - String name, ResourceName destinationParent) { + String name, @Nullable ResourceName destinationParent) { MoveFolderRequest request = MoveFolderRequest.newBuilder() .setName(name) @@ -1580,7 +1581,8 @@ public final UnaryCallable moveFolderCallable() { * `folders/{folder_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteFolderAsync(FolderName name) { + public final OperationFuture deleteFolderAsync( + @Nullable FolderName name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteFolderAsync(request); @@ -1750,7 +1752,7 @@ public final UnaryCallable deleteFolderCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeleteFolderAsync( - FolderName name) { + @Nullable FolderName name) { UndeleteFolderRequest request = UndeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeleteFolderAsync(request); @@ -1915,7 +1917,7 @@ public final UnaryCallable undeleteFolderCalla * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2044,7 +2046,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2180,7 +2182,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2349,8 +2351,8 @@ public static class ListFoldersPage extends AbstractPage { private ListFoldersPage( - PageContext context, - ListFoldersResponse response) { + @Nullable PageContext context, + @Nullable ListFoldersResponse response) { super(context, response); } @@ -2360,14 +2362,14 @@ private static ListFoldersPage createEmptyPage() { @Override protected ListFoldersPage createPage( - PageContext context, - ListFoldersResponse response) { + @Nullable PageContext context, + @Nullable ListFoldersResponse response) { return new ListFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2381,7 +2383,8 @@ public static class ListFoldersFixedSizeCollection ListFoldersPage, ListFoldersFixedSizeCollection> { - private ListFoldersFixedSizeCollection(List pages, int collectionSize) { + private ListFoldersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2391,7 +2394,7 @@ private static ListFoldersFixedSizeCollection createEmptyCollection() { @Override protected ListFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFoldersFixedSizeCollection(pages, collectionSize); } } @@ -2424,8 +2427,8 @@ public static class SearchFoldersPage extends AbstractPage { private SearchFoldersPage( - PageContext context, - SearchFoldersResponse response) { + @Nullable PageContext context, + @Nullable SearchFoldersResponse response) { super(context, response); } @@ -2435,14 +2438,14 @@ private static SearchFoldersPage createEmptyPage() { @Override protected SearchFoldersPage createPage( - PageContext context, - SearchFoldersResponse response) { + @Nullable PageContext context, + @Nullable SearchFoldersResponse response) { return new SearchFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2456,7 +2459,8 @@ public static class SearchFoldersFixedSizeCollection SearchFoldersPage, SearchFoldersFixedSizeCollection> { - private SearchFoldersFixedSizeCollection(List pages, int collectionSize) { + private SearchFoldersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2466,7 +2470,7 @@ private static SearchFoldersFixedSizeCollection createEmptyCollection() { @Override protected SearchFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFoldersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java index c7d3c782ff85..3a6c4fcbb6f1 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/FoldersSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -286,7 +287,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FoldersStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java index da163821a948..88d424aa9279 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsClient.java @@ -38,6 +38,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. /** @@ -225,7 +226,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OrganizationsClient implements BackgroundResource { - private final OrganizationsSettings settings; + private final @Nullable OrganizationsSettings settings; private final OrganizationsStub stub; /** Constructs an instance of OrganizationsClient with default settings. */ @@ -265,7 +266,7 @@ protected OrganizationsClient(OrganizationsStub stub) { this.stub = stub; } - public final OrganizationsSettings getSettings() { + public final @Nullable OrganizationsSettings getSettings() { return settings; } @@ -296,7 +297,7 @@ public OrganizationsStub getStub() { * example, "organizations/1234". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Organization getOrganization(OrganizationName name) { + public final Organization getOrganization(@Nullable OrganizationName name) { GetOrganizationRequest request = GetOrganizationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOrganization(request); @@ -582,7 +583,7 @@ public final SearchOrganizationsPagedResponse searchOrganizations( * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -715,7 +716,7 @@ public final UnaryCallable getIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource) { + public final Policy setIamPolicy(@Nullable ResourceName resource) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -852,7 +853,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1028,8 +1029,9 @@ public static class SearchOrganizationsPage SearchOrganizationsPage> { private SearchOrganizationsPage( - PageContext context, - SearchOrganizationsResponse response) { + @Nullable PageContext + context, + @Nullable SearchOrganizationsResponse response) { super(context, response); } @@ -1039,14 +1041,16 @@ private static SearchOrganizationsPage createEmptyPage() { @Override protected SearchOrganizationsPage createPage( - PageContext context, - SearchOrganizationsResponse response) { + @Nullable PageContext + context, + @Nullable SearchOrganizationsResponse response) { return new SearchOrganizationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1061,7 +1065,7 @@ public static class SearchOrganizationsFixedSizeCollection SearchOrganizationsFixedSizeCollection> { private SearchOrganizationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1071,7 +1075,7 @@ private static SearchOrganizationsFixedSizeCollection createEmptyCollection() { @Override protected SearchOrganizationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchOrganizationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java index 101be9ca32bb..142540825924 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationsSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -179,7 +180,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); } @@ -199,7 +200,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OrganizationsStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java index 748da8b70f17..471f3fe29b54 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java @@ -44,6 +44,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. /** @@ -369,7 +370,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProjectsClient implements BackgroundResource { - private final ProjectsSettings settings; + private final @Nullable ProjectsSettings settings; private final ProjectsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -415,7 +416,7 @@ protected ProjectsClient(ProjectsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProjectsSettings getSettings() { + public final @Nullable ProjectsSettings getSettings() { return settings; } @@ -464,7 +465,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. The name of the project (for example, `projects/415104041262`). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Project getProject(ProjectName name) { + public final Project getProject(@Nullable ProjectName name) { GetProjectRequest request = GetProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProject(request); @@ -586,7 +587,7 @@ public final UnaryCallable getProjectCallable() { * organization, use the value `organizations/{org_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProjectsPagedResponse listProjects(ResourceName parent) { + public final ListProjectsPagedResponse listProjects(@Nullable ResourceName parent) { ListProjectsRequest request = ListProjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1220,7 +1221,7 @@ public final UnaryCallable updateProjectCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveProjectAsync( - ProjectName name, ResourceName destinationParent) { + @Nullable ProjectName name, @Nullable ResourceName destinationParent) { MoveProjectRequest request = MoveProjectRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1263,7 +1264,7 @@ public final OperationFuture moveProjectAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveProjectAsync( - ProjectName name, String destinationParent) { + @Nullable ProjectName name, String destinationParent) { MoveProjectRequest request = MoveProjectRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1306,7 +1307,7 @@ public final OperationFuture moveProjectAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture moveProjectAsync( - String name, ResourceName destinationParent) { + String name, @Nullable ResourceName destinationParent) { MoveProjectRequest request = MoveProjectRequest.newBuilder() .setName(name) @@ -1523,7 +1524,7 @@ public final UnaryCallable moveProjectCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteProjectAsync( - ProjectName name) { + @Nullable ProjectName name) { DeleteProjectRequest request = DeleteProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProjectAsync(request); @@ -1761,7 +1762,7 @@ public final UnaryCallable deleteProjectCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeleteProjectAsync( - ProjectName name) { + @Nullable ProjectName name) { UndeleteProjectRequest request = UndeleteProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return undeleteProjectAsync(request); @@ -1919,7 +1920,7 @@ public final UnaryCallable undeleteProjectCal * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2078,7 +2079,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2312,7 +2313,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2478,8 +2479,8 @@ public static class ListProjectsPage extends AbstractPage { private ListProjectsPage( - PageContext context, - ListProjectsResponse response) { + @Nullable PageContext context, + @Nullable ListProjectsResponse response) { super(context, response); } @@ -2489,14 +2490,14 @@ private static ListProjectsPage createEmptyPage() { @Override protected ListProjectsPage createPage( - PageContext context, - ListProjectsResponse response) { + @Nullable PageContext context, + @Nullable ListProjectsResponse response) { return new ListProjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2510,7 +2511,8 @@ public static class ListProjectsFixedSizeCollection ListProjectsPage, ListProjectsFixedSizeCollection> { - private ListProjectsFixedSizeCollection(List pages, int collectionSize) { + private ListProjectsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2520,7 +2522,7 @@ private static ListProjectsFixedSizeCollection createEmptyCollection() { @Override protected ListProjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProjectsFixedSizeCollection(pages, collectionSize); } } @@ -2554,8 +2556,8 @@ public static class SearchProjectsPage SearchProjectsRequest, SearchProjectsResponse, Project, SearchProjectsPage> { private SearchProjectsPage( - PageContext context, - SearchProjectsResponse response) { + @Nullable PageContext context, + @Nullable SearchProjectsResponse response) { super(context, response); } @@ -2565,14 +2567,14 @@ private static SearchProjectsPage createEmptyPage() { @Override protected SearchProjectsPage createPage( - PageContext context, - SearchProjectsResponse response) { + @Nullable PageContext context, + @Nullable SearchProjectsResponse response) { return new SearchProjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2586,7 +2588,8 @@ public static class SearchProjectsFixedSizeCollection SearchProjectsPage, SearchProjectsFixedSizeCollection> { - private SearchProjectsFixedSizeCollection(List pages, int collectionSize) { + private SearchProjectsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2596,7 +2599,7 @@ private static SearchProjectsFixedSizeCollection createEmptyCollection() { @Override protected SearchProjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchProjectsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java index f24be7789651..bb4a8b2f4a52 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectsStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java index 0ae68bfc246c..4551728c0cd9 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsClient.java @@ -39,6 +39,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. /** @@ -208,7 +209,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TagBindingsClient implements BackgroundResource { - private final TagBindingsSettings settings; + private final @Nullable TagBindingsSettings settings; private final TagBindingsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -255,7 +256,7 @@ protected TagBindingsClient(TagBindingsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TagBindingsSettings getSettings() { + public final @Nullable TagBindingsSettings getSettings() { return settings; } @@ -307,7 +308,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * existing TagBindings. E.g. "//cloudresourcemanager.googleapis.com/projects/123" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTagBindingsPagedResponse listTagBindings(ResourceName parent) { + public final ListTagBindingsPagedResponse listTagBindings(@Nullable ResourceName parent) { ListTagBindingsRequest request = ListTagBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -602,7 +603,7 @@ public final UnaryCallable createTagBindingC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTagBindingAsync( - TagBindingName name) { + @Nullable TagBindingName name) { DeleteTagBindingRequest request = DeleteTagBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTagBindingAsync(request); @@ -916,8 +917,8 @@ public static class ListTagBindingsPage ListTagBindingsRequest, ListTagBindingsResponse, TagBinding, ListTagBindingsPage> { private ListTagBindingsPage( - PageContext context, - ListTagBindingsResponse response) { + @Nullable PageContext context, + @Nullable ListTagBindingsResponse response) { super(context, response); } @@ -927,14 +928,14 @@ private static ListTagBindingsPage createEmptyPage() { @Override protected ListTagBindingsPage createPage( - PageContext context, - ListTagBindingsResponse response) { + @Nullable PageContext context, + @Nullable ListTagBindingsResponse response) { return new ListTagBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -949,7 +950,7 @@ public static class ListTagBindingsFixedSizeCollection ListTagBindingsFixedSizeCollection> { private ListTagBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -959,7 +960,7 @@ private static ListTagBindingsFixedSizeCollection createEmptyCollection() { @Override protected ListTagBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagBindingsFixedSizeCollection(pages, collectionSize); } } @@ -996,8 +997,9 @@ public static class ListEffectiveTagsPage ListEffectiveTagsPage> { private ListEffectiveTagsPage( - PageContext context, - ListEffectiveTagsResponse response) { + @Nullable PageContext + context, + @Nullable ListEffectiveTagsResponse response) { super(context, response); } @@ -1007,14 +1009,16 @@ private static ListEffectiveTagsPage createEmptyPage() { @Override protected ListEffectiveTagsPage createPage( - PageContext context, - ListEffectiveTagsResponse response) { + @Nullable PageContext + context, + @Nullable ListEffectiveTagsResponse response) { return new ListEffectiveTagsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1029,7 +1033,7 @@ public static class ListEffectiveTagsFixedSizeCollection ListEffectiveTagsFixedSizeCollection> { private ListEffectiveTagsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1039,7 +1043,7 @@ private static ListEffectiveTagsFixedSizeCollection createEmptyCollection() { @Override protected ListEffectiveTagsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEffectiveTagsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java index 6ba6d0450c9d..2908d5b5ad8f 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingsSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -210,7 +211,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); } @@ -230,7 +231,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TagBindingsStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsClient.java index e68243f9df6a..d19a89424623 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsClient.java @@ -38,6 +38,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. /** @@ -189,7 +190,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TagHoldsClient implements BackgroundResource { - private final TagHoldsSettings settings; + private final @Nullable TagHoldsSettings settings; private final TagHoldsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -235,7 +236,7 @@ protected TagHoldsClient(TagHoldsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TagHoldsSettings getSettings() { + public final @Nullable TagHoldsSettings getSettings() { return settings; } @@ -286,7 +287,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTagHoldAsync( - TagValueName parent, TagHold tagHold) { + @Nullable TagValueName parent, TagHold tagHold) { CreateTagHoldRequest request = CreateTagHoldRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -443,7 +444,8 @@ public final UnaryCallable createTagHoldCallabl * `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTagHoldAsync(TagHoldName name) { + public final OperationFuture deleteTagHoldAsync( + @Nullable TagHoldName name) { DeleteTagHoldRequest request = DeleteTagHoldRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTagHoldAsync(request); @@ -588,7 +590,7 @@ public final UnaryCallable deleteTagHoldCallabl * `tagValues/{tag-value-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTagHoldsPagedResponse listTagHolds(TagValueName parent) { + public final ListTagHoldsPagedResponse listTagHolds(@Nullable TagValueName parent) { ListTagHoldsRequest request = ListTagHoldsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -788,8 +790,8 @@ public static class ListTagHoldsPage extends AbstractPage { private ListTagHoldsPage( - PageContext context, - ListTagHoldsResponse response) { + @Nullable PageContext context, + @Nullable ListTagHoldsResponse response) { super(context, response); } @@ -799,14 +801,14 @@ private static ListTagHoldsPage createEmptyPage() { @Override protected ListTagHoldsPage createPage( - PageContext context, - ListTagHoldsResponse response) { + @Nullable PageContext context, + @Nullable ListTagHoldsResponse response) { return new ListTagHoldsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -820,7 +822,8 @@ public static class ListTagHoldsFixedSizeCollection ListTagHoldsPage, ListTagHoldsFixedSizeCollection> { - private ListTagHoldsFixedSizeCollection(List pages, int collectionSize) { + private ListTagHoldsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -830,7 +833,7 @@ private static ListTagHoldsFixedSizeCollection createEmptyCollection() { @Override protected ListTagHoldsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagHoldsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsSettings.java index 9243320d78aa..05c85908face 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldsSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,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); } @@ -221,7 +222,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TagHoldsStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java index 7330ce1c1289..ea62edc60ca1 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java @@ -44,6 +44,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. /** @@ -304,7 +305,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TagKeysClient implements BackgroundResource { - private final TagKeysSettings settings; + private final @Nullable TagKeysSettings settings; private final TagKeysStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -350,7 +351,7 @@ protected TagKeysClient(TagKeysStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TagKeysSettings getSettings() { + public final @Nullable TagKeysSettings getSettings() { return settings; } @@ -399,7 +400,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `organizations/{org_id}` or `projects/{project_id}` or `projects/{project_number}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTagKeysPagedResponse listTagKeys(ResourceName parent) { + public final ListTagKeysPagedResponse listTagKeys(@Nullable ResourceName parent) { ListTagKeysRequest request = ListTagKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -560,7 +561,7 @@ public final UnaryCallable listTagKeysC * @param name Required. A resource name in the format `tagKeys/{id}`, such as `tagKeys/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TagKey getTagKey(TagKeyName name) { + public final TagKey getTagKey(@Nullable TagKeyName name) { GetTagKeyRequest request = GetTagKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTagKey(request); @@ -670,7 +671,7 @@ public final UnaryCallable getTagKeyCallable() { * `r2-d2/bar` for a key with short name "bar" under the project `r2-d2`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TagKey getNamespacedTagKey(TagKeyName name) { + public final TagKey getNamespacedTagKey(@Nullable TagKeyName name) { GetNamespacedTagKeyRequest request = GetNamespacedTagKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1035,7 +1036,8 @@ public final UnaryCallable updateTagKeyCallable( * successfully. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteTagKeyAsync(TagKeyName name) { + public final OperationFuture deleteTagKeyAsync( + @Nullable TagKeyName name) { DeleteTagKeyRequest request = DeleteTagKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTagKeyAsync(request); @@ -1185,7 +1187,7 @@ public final UnaryCallable deleteTagKeyCallable( * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1314,7 +1316,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1450,7 +1452,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1619,8 +1621,8 @@ public static class ListTagKeysPage extends AbstractPage { private ListTagKeysPage( - PageContext context, - ListTagKeysResponse response) { + @Nullable PageContext context, + @Nullable ListTagKeysResponse response) { super(context, response); } @@ -1630,14 +1632,14 @@ private static ListTagKeysPage createEmptyPage() { @Override protected ListTagKeysPage createPage( - PageContext context, - ListTagKeysResponse response) { + @Nullable PageContext context, + @Nullable ListTagKeysResponse response) { return new ListTagKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1651,7 +1653,8 @@ public static class ListTagKeysFixedSizeCollection ListTagKeysPage, ListTagKeysFixedSizeCollection> { - private ListTagKeysFixedSizeCollection(List pages, int collectionSize) { + private ListTagKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1661,7 +1664,7 @@ private static ListTagKeysFixedSizeCollection createEmptyCollection() { @Override protected ListTagKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysSettings.java index 6820c8ad3b35..81bfb64a662e 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,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); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TagKeysStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesClient.java index b2b196dc2ccc..766f8caffa9b 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesClient.java @@ -44,6 +44,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. /** @@ -305,7 +306,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TagValuesClient implements BackgroundResource { - private final TagValuesSettings settings; + private final @Nullable TagValuesSettings settings; private final TagValuesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -351,7 +352,7 @@ protected TagValuesClient(TagValuesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TagValuesSettings getSettings() { + public final @Nullable TagValuesSettings getSettings() { return settings; } @@ -399,7 +400,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTagValuesPagedResponse listTagValues(ResourceName parent) { + public final ListTagValuesPagedResponse listTagValues(@Nullable ResourceName parent) { ListTagValuesRequest request = ListTagValuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +560,7 @@ public final UnaryCallable listTagV * @param name Required. Resource name for TagValue to be fetched in the format `tagValues/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TagValue getTagValue(TagValueName name) { + public final TagValue getTagValue(@Nullable TagValueName name) { GetTagValueRequest request = GetTagValueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTagValue(request); @@ -675,7 +676,7 @@ public final UnaryCallable getTagValueCallable() { * under the key with short name "bar" under the project with ID "r2-d2" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TagValue getNamespacedTagValue(TagValueName name) { + public final TagValue getNamespacedTagValue(@Nullable TagValueName name) { GetNamespacedTagValueRequest request = GetNamespacedTagValueRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1044,7 +1045,7 @@ public final UnaryCallable updateTagValueCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTagValueAsync( - TagValueName name) { + @Nullable TagValueName name) { DeleteTagValueRequest request = DeleteTagValueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteTagValueAsync(request); @@ -1193,7 +1194,7 @@ public final UnaryCallable deleteTagValueCalla * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1325,7 +1326,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1462,7 +1463,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1635,8 +1636,8 @@ public static class ListTagValuesPage ListTagValuesRequest, ListTagValuesResponse, TagValue, ListTagValuesPage> { private ListTagValuesPage( - PageContext context, - ListTagValuesResponse response) { + @Nullable PageContext context, + @Nullable ListTagValuesResponse response) { super(context, response); } @@ -1646,14 +1647,14 @@ private static ListTagValuesPage createEmptyPage() { @Override protected ListTagValuesPage createPage( - PageContext context, - ListTagValuesResponse response) { + @Nullable PageContext context, + @Nullable ListTagValuesResponse response) { return new ListTagValuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1667,7 +1668,8 @@ public static class ListTagValuesFixedSizeCollection ListTagValuesPage, ListTagValuesFixedSizeCollection> { - private ListTagValuesFixedSizeCollection(List pages, int collectionSize) { + private ListTagValuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1677,7 +1679,7 @@ private static ListTagValuesFixedSizeCollection createEmptyCollection() { @Override protected ListTagValuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTagValuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesSettings.java index 11e7e69789e4..bd4a4e6d1c0b 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagValuesSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,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); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TagValuesStubSettings.newBuilder(clientContext)); } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStub.java index aff7d52c5355..404934b4f0a9 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStub.java @@ -47,6 +47,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class FoldersStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java index 92ae275a62d5..70918ebf77b5 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/FoldersStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -481,7 +482,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); } @@ -599,7 +600,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java index 28fadad2d855..83781c05e734 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/OrganizationsStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -321,7 +322,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); } @@ -411,7 +412,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOrganizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStub.java index 44689dddb61f..f55bb8fdf8d1 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStub.java @@ -47,6 +47,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,11 +59,12 @@ @Generated("by gapic-generator-java") public abstract class ProjectsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java index e89cc595162b..db4c8e4d7dc7 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/ProjectsStubSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -484,7 +485,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); } @@ -605,7 +606,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStub.java index a14574771d2d..0e06a75f52f2 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStub.java @@ -36,6 +36,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class TagBindingsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java index b87e2654687d..b738ee995043 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagBindingsStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -421,7 +422,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); } @@ -517,7 +518,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTagBindingsSettings = PagedCallSettings.newBuilder(LIST_TAG_BINDINGS_PAGE_STR_FACT); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStub.java index 59e01ea60243..943e93faf2db 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStub.java @@ -33,6 +33,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class TagHoldsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java index 3d70d12a2ce7..0653db52f0a8 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagHoldsStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -340,7 +341,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); } @@ -405,7 +406,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTagHoldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStub.java index df79ed0f1445..15b71052e254 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStub.java @@ -41,6 +41,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class TagKeysStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java index c0cb3c8dcf2c..a16f2d9db80c 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagKeysStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -393,7 +394,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); } @@ -498,7 +499,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTagKeysSettings = PagedCallSettings.newBuilder(LIST_TAG_KEYS_PAGE_STR_FACT); diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStub.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStub.java index 0f7b375a3187..334b8b1e5069 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStub.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStub.java @@ -41,6 +41,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class TagValuesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java index 83592edd6a09..15ba61a318d4 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/TagValuesStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -395,7 +396,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); } @@ -506,7 +507,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTagValuesSettings = PagedCallSettings.newBuilder(LIST_TAG_VALUES_PAGE_STR_FACT); diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FolderName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FolderName.java index a2eacfd57007..6c750fe85959 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FolderName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationName.java index 551bb3b5b74e..fae97c9c1a85 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectName.java index 11255a6de535..e7c6a348ed45 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingName.java index 59716322f46a..bb0744ed205e 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String tagBinding) { return newBuilder().setTagBinding(tagBinding).build().toString(); } - public static TagBindingName parse(String formattedString) { + public static @Nullable TagBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagBindingName> values) { List list = new ArrayList<>(values.size()); for (TagBindingName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldName.java index 2e006d951996..64105554c83f 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagHoldName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String tagValue, String tagHold) { return newBuilder().setTagValue(tagValue).setTagHold(tagHold).build().toString(); } - public static TagHoldName parse(String formattedString) { + public static @Nullable TagHoldName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagHoldName> values) { List list = new ArrayList<>(values.size()); for (TagHoldName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyName.java index 0eda884c2db6..8ce5c76eef4f 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String tagKey) { return newBuilder().setTagKey(tagKey).build().toString(); } - public static TagKeyName parse(String formattedString) { + public static @Nullable TagKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagKeyName> values) { List list = new ArrayList<>(values.size()); for (TagKeyName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueName.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueName.java index bb101755b5a3..70fcc9f07718 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueName.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String tagValue) { return newBuilder().setTagValue(tagValue).build().toString(); } - public static TagValueName parse(String formattedString) { + public static @Nullable TagValueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TagValueName> values) { List list = new ArrayList<>(values.size()); for (TagValueName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceClient.java index 2ca2c3d19471..f5ff54e75f68 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceClient.java @@ -29,6 +29,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. /** @@ -144,7 +145,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AnalyticsServiceClient implements BackgroundResource { - private final AnalyticsServiceSettings settings; + private final @Nullable AnalyticsServiceSettings settings; private final AnalyticsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -192,7 +193,7 @@ protected AnalyticsServiceClient(AnalyticsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AnalyticsServiceSettings getSettings() { + public final @Nullable AnalyticsServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceSettings.java index 6a8b704d8a38..52b0bae580d7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/AnalyticsServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -185,7 +186,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); } @@ -205,7 +206,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java index d0000f496f45..1cbdae262f6c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java @@ -34,6 +34,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. /** @@ -328,7 +329,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CatalogServiceClient implements BackgroundResource { - private final CatalogServiceSettings settings; + private final @Nullable CatalogServiceSettings settings; private final CatalogServiceStub stub; /** Constructs an instance of CatalogServiceClient with default settings. */ @@ -368,7 +369,7 @@ protected CatalogServiceClient(CatalogServiceStub stub) { this.stub = stub; } - public final CatalogServiceSettings getSettings() { + public final @Nullable CatalogServiceSettings getSettings() { return settings; } @@ -402,7 +403,7 @@ public CatalogServiceStub getStub() { * not this location exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogsPagedResponse listCatalogs(LocationName parent) { + public final ListCatalogsPagedResponse listCatalogs(@Nullable LocationName parent) { ListCatalogsRequest request = ListCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -688,7 +689,7 @@ public final UnaryCallable updateCatalogCallable( * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void setDefaultBranch(CatalogName catalog) { + public final void setDefaultBranch(@Nullable CatalogName catalog) { SetDefaultBranchRequest request = SetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -898,7 +899,7 @@ public final UnaryCallable setDefaultBranchCalla * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetDefaultBranchResponse getDefaultBranch(CatalogName catalog) { + public final GetDefaultBranchResponse getDefaultBranch(@Nullable CatalogName catalog) { GetDefaultBranchRequest request = GetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -1019,7 +1020,7 @@ public final GetDefaultBranchResponse getDefaultBranch(GetDefaultBranchRequest r * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompletionConfig getCompletionConfig(CompletionConfigName name) { + public final CompletionConfig getCompletionConfig(@Nullable CompletionConfigName name) { GetCompletionConfigRequest request = GetCompletionConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1242,7 +1243,7 @@ public final CompletionConfig updateCompletionConfig(UpdateCompletionConfigReque * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributesConfig getAttributesConfig(AttributesConfigName name) { + public final AttributesConfig getAttributesConfig(@Nullable AttributesConfigName name) { GetAttributesConfigRequest request = GetAttributesConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1722,8 +1723,8 @@ public static class ListCatalogsPage extends AbstractPage { private ListCatalogsPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { super(context, response); } @@ -1733,14 +1734,14 @@ private static ListCatalogsPage createEmptyPage() { @Override protected ListCatalogsPage createPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { return new ListCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1754,7 +1755,8 @@ public static class ListCatalogsFixedSizeCollection ListCatalogsPage, ListCatalogsFixedSizeCollection> { - private ListCatalogsFixedSizeCollection(List pages, int collectionSize) { + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1764,7 +1766,7 @@ private static ListCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java index 0a4c82c939d9..bef74834bb3c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -211,7 +212,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); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java index 6d1d1dc7c4dd..6d0528a19b82 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -168,7 +169,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -216,7 +217,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java index 7ea51ef3b31c..4012eb29228f 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceClient.java index 78101d3da59c..b2934109cea1 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceClient.java @@ -34,6 +34,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -262,7 +263,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -301,7 +302,8 @@ public ControlServiceStub getStub() { *

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(CatalogName parent, Control control, String controlId) { + public final Control createControl( + @Nullable CatalogName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -442,7 +444,7 @@ public final UnaryCallable createControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -666,7 +668,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -780,7 +782,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(CatalogName parent) { + public final ListControlsPagedResponse listControls(@Nullable CatalogName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -981,8 +983,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -992,14 +994,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1013,7 +1015,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1023,7 +1026,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceSettings.java index 1f85d26adb1a..5a1b0c2aa616 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java index 9afab1072a19..d054f4920bf3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceClient.java @@ -24,6 +24,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. /** @@ -150,7 +151,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -193,7 +194,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java index e2c9968fd41a..dad461b62fd7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ConversationalSearchServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceClient.java index ee5af1eaee4e..bcb6758b7d69 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceClient.java @@ -26,6 +26,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. /** @@ -213,7 +214,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GenerativeQuestionServiceClient implements BackgroundResource { - private final GenerativeQuestionServiceSettings settings; + private final @Nullable GenerativeQuestionServiceSettings settings; private final GenerativeQuestionServiceStub stub; /** Constructs an instance of GenerativeQuestionServiceClient with default settings. */ @@ -255,7 +256,7 @@ protected GenerativeQuestionServiceClient(GenerativeQuestionServiceStub stub) { this.stub = stub; } - public final GenerativeQuestionServiceSettings getSettings() { + public final @Nullable GenerativeQuestionServiceSettings getSettings() { return settings; } @@ -395,7 +396,7 @@ public final GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureCo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - CatalogName catalog) { + @Nullable CatalogName catalog) { GetGenerativeQuestionsFeatureConfigRequest request = GetGenerativeQuestionsFeatureConfigRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -523,7 +524,7 @@ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - CatalogName parent) { + @Nullable CatalogName parent) { ListGenerativeQuestionConfigsRequest request = ListGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -760,7 +761,7 @@ public final GenerativeQuestionConfig updateGenerativeQuestionConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - CatalogName parent, List requests) { + @Nullable CatalogName parent, List requests) { BatchUpdateGenerativeQuestionConfigsRequest request = BatchUpdateGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceSettings.java index 4b25f5a3f1eb..d5b0b4f82e85 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/GenerativeQuestionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenerativeQuestionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceClient.java index 5698352c796a..a8de54ae282f 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceClient.java @@ -39,6 +39,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. /** @@ -291,7 +292,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ModelServiceClient implements BackgroundResource { - private final ModelServiceSettings settings; + private final @Nullable ModelServiceSettings settings; private final ModelServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -338,7 +339,7 @@ protected ModelServiceClient(ModelServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ModelServiceSettings getSettings() { + public final @Nullable ModelServiceSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - CatalogName parent, Model model) { + @Nullable CatalogName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +543,7 @@ public final UnaryCallable createModelCallable() * `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -653,7 +654,7 @@ public final UnaryCallable getModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model pauseModel(ModelName name) { + public final Model pauseModel(@Nullable ModelName name) { PauseModelRequest request = PauseModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseModel(request); @@ -840,7 +841,7 @@ public final UnaryCallable resumeModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteModel(ModelName name) { + public final void deleteModel(@Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteModel(request); @@ -953,7 +954,7 @@ public final UnaryCallable deleteModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(CatalogName parent) { + public final ListModelsPagedResponse listModels(@Nullable CatalogName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -1202,7 +1203,7 @@ public final UnaryCallable updateModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture tuneModelAsync( - ModelName name) { + @Nullable ModelName name) { TuneModelRequest request = TuneModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return tuneModelAsync(request); @@ -1376,8 +1377,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -1387,14 +1388,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1408,7 +1409,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1418,7 +1420,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceSettings.java index 74566561a53c..6ae71f36243c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ModelServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceClient.java index 1a3b313632cd..e14104bd0ad6 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceClient.java @@ -24,6 +24,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java index 1dbda694a982..867bb7771ffd 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/PredictionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java index c22843ea7374..168ed405c574 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java @@ -39,6 +39,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. /** @@ -381,7 +382,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProductServiceClient implements BackgroundResource { - private final ProductServiceSettings settings; + private final @Nullable ProductServiceSettings settings; private final ProductServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -429,7 +430,7 @@ protected ProductServiceClient(ProductServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductServiceSettings getSettings() { + public final @Nullable ProductServiceSettings getSettings() { return settings; } @@ -490,7 +491,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * Otherwise, an INVALID_ARGUMENT error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(BranchName parent, Product product, String productId) { + public final Product createProduct( + @Nullable BranchName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -635,7 +637,7 @@ public final UnaryCallable createProductCallable( * error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -762,7 +764,7 @@ public final UnaryCallable getProductCallable() { * this branch exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(BranchName parent) { + public final ListProductsPagedResponse listProducts(@Nullable BranchName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1053,7 +1055,7 @@ public final UnaryCallable updateProductCallable( * be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -1800,7 +1802,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addFulfillmentPlacesAsync(ProductName product) { + addFulfillmentPlacesAsync(@Nullable ProductName product) { AddFulfillmentPlacesRequest request = AddFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2110,7 +2112,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeFulfillmentPlacesAsync(ProductName product) { + removeFulfillmentPlacesAsync(@Nullable ProductName product) { RemoveFulfillmentPlacesRequest request = RemoveFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2418,7 +2420,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addLocalInventoriesAsync(ProductName product) { + addLocalInventoriesAsync(@Nullable ProductName product) { AddLocalInventoriesRequest request = AddLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2705,7 +2707,7 @@ public final UnaryCallable addLocalInvent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeLocalInventoriesAsync(ProductName product) { + removeLocalInventoriesAsync(@Nullable ProductName product) { RemoveLocalInventoriesRequest request = RemoveLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2993,8 +2995,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -3004,14 +3006,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3025,7 +3027,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3035,7 +3038,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java index 7ec4be9b743a..d0c5bb91cf3e 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -310,7 +311,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java index 06020ea3dfe2..3a04d6eff25f 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceClient.java @@ -32,6 +32,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. /** @@ -172,7 +173,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -212,7 +213,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -465,8 +466,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -476,14 +477,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -497,7 +498,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -507,7 +508,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java index 447a51bc9c0a..2cc0cf7835f9 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/SearchServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceClient.java index e6b5bab5d82a..d11f65541e6f 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceClient.java @@ -34,6 +34,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. /** @@ -266,7 +267,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -306,7 +307,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } @@ -348,7 +349,7 @@ public ServingConfigServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig createServingConfig( - CatalogName parent, ServingConfig servingConfig, String servingConfigId) { + @Nullable CatalogName parent, ServingConfig servingConfig, String servingConfigId) { CreateServingConfigRequest request = CreateServingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -497,7 +498,7 @@ public final ServingConfig createServingConfig(CreateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServingConfig(ServingConfigName name) { + public final void deleteServingConfig(@Nullable ServingConfigName name) { DeleteServingConfigRequest request = DeleteServingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -732,7 +733,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig getServingConfig(ServingConfigName name) { + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServingConfig(request); @@ -862,7 +863,7 @@ public final UnaryCallable getServingCon * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(CatalogName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable CatalogName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1040,7 +1041,7 @@ public final ListServingConfigsPagedResponse listServingConfigs( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig addControl(ServingConfigName servingConfig) { + public final ServingConfig addControl(@Nullable ServingConfigName servingConfig) { AddControlRequest request = AddControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1180,7 +1181,7 @@ public final UnaryCallable addControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig removeControl(ServingConfigName servingConfig) { + public final ServingConfig removeControl(@Nullable ServingConfigName servingConfig) { RemoveControlRequest request = RemoveControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1348,8 +1349,9 @@ public static class ListServingConfigsPage ListServingConfigsPage> { private ListServingConfigsPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { super(context, response); } @@ -1359,14 +1361,16 @@ private static ListServingConfigsPage createEmptyPage() { @Override protected ListServingConfigsPage createPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { return new ListServingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1381,7 +1385,7 @@ public static class ListServingConfigsFixedSizeCollection ListServingConfigsFixedSizeCollection> { private ListServingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1391,7 +1395,7 @@ private static ListServingConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServingConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceSettings.java index 20919df10869..652b36ea86e3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ServingConfigServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceClient.java index 5affb28742d1..22e854cf815a 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -251,7 +252,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java index 91570c14a58d..b918e5bf2202 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -236,7 +237,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java index c5d29c6874a2..e9e12f300d6b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,11 +38,12 @@ @Generated("by gapic-generator-java") public abstract class AnalyticsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java index d411926cb34b..d6aad947e573 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAnalyticsMetricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java index c6b4422808d9..19e108dd1be7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CatalogServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -366,7 +367,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); } @@ -462,7 +463,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCatalogsSettings = PagedCallSettings.newBuilder(LIST_CATALOGS_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStub.java index cd0fd9e4bb70..2580f80340e7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStub.java @@ -28,6 +28,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java index 4f30068cc28b..5d3691789f39 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/CompletionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -265,7 +266,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); } @@ -339,7 +340,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java index 95a98774a475..3b2341b3103b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ControlServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -304,7 +305,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); } @@ -366,7 +367,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java index e83ca45ce802..eac923e0825d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ConversationalSearchServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -272,7 +273,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); conversationalSearchSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GenerativeQuestionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GenerativeQuestionServiceStubSettings.java index a875ca17be55..74feb75a6caa 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GenerativeQuestionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GenerativeQuestionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -343,7 +344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateGenerativeQuestionsFeatureConfigSettings = diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStub.java index f2fbec8a07a5..a3bbefed4407 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class ModelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java index ff039b2cfbab..038a3c7ca999 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -375,7 +376,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); } @@ -463,7 +464,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java index d18d4bfd8a21..92e9bb2485ca 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/PredictionServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -213,7 +214,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); } @@ -278,7 +279,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java index f485fd20caa8..aa909dc8a4a3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,11 +66,12 @@ @Generated("by gapic-generator-java") public abstract class ProductServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java index de48f2855c0d..b479a79f72e8 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -479,7 +480,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); } @@ -625,7 +626,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java index 859d383a4775..486783d74f74 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/SearchServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -272,7 +273,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); } @@ -338,7 +339,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java index c58af6170458..f408200d1d32 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ServingConfigServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -333,7 +334,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); } @@ -405,7 +406,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStub.java index 120ee8ba16fc..7e21a64c1ce6 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStub.java @@ -36,6 +36,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java index d1278249c2dc..45ef38a953eb 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -306,7 +307,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); } @@ -428,7 +429,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClient.java index 961275a62c6c..c15e48d8be4d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClient.java @@ -29,6 +29,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnalyticsServiceClient implements BackgroundResource { - private final AnalyticsServiceSettings settings; + private final @Nullable AnalyticsServiceSettings settings; private final AnalyticsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -193,7 +194,7 @@ protected AnalyticsServiceClient(AnalyticsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AnalyticsServiceSettings getSettings() { + public final @Nullable AnalyticsServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceSettings.java index 1d498a8b409f..75cb05e42796 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/AnalyticsServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,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); } @@ -206,7 +207,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java index 8d1ef4f18d78..13c83f4726b5 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java @@ -25,6 +25,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. /** @@ -157,7 +158,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BranchServiceClient implements BackgroundResource { - private final BranchServiceSettings settings; + private final @Nullable BranchServiceSettings settings; private final BranchServiceStub stub; /** Constructs an instance of BranchServiceClient with default settings. */ @@ -197,7 +198,7 @@ protected BranchServiceClient(BranchServiceStub stub) { this.stub = stub; } - public final BranchServiceSettings getSettings() { + public final @Nullable BranchServiceSettings getSettings() { return settings; } @@ -227,7 +228,7 @@ public BranchServiceStub getStub() { * @param parent Required. The parent catalog resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBranchesResponse listBranches(CatalogName parent) { + public final ListBranchesResponse listBranches(@Nullable CatalogName parent) { ListBranchesRequest request = ListBranchesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -346,7 +347,7 @@ public final UnaryCallable listBranch * has been set for the catalog. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Branch getBranch(BranchName name) { + public final Branch getBranch(@Nullable BranchName name) { GetBranchRequest request = GetBranchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBranch(request); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java index cbbc33ddc64d..87f25fb5fa69 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BranchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceClient.java index 23c234c3b2fe..63f9fe18572c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceClient.java @@ -35,6 +35,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. /** @@ -344,7 +345,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CatalogServiceClient implements BackgroundResource { - private final CatalogServiceSettings settings; + private final @Nullable CatalogServiceSettings settings; private final CatalogServiceStub stub; /** Constructs an instance of CatalogServiceClient with default settings. */ @@ -384,7 +385,7 @@ protected CatalogServiceClient(CatalogServiceStub stub) { this.stub = stub; } - public final CatalogServiceSettings getSettings() { + public final @Nullable CatalogServiceSettings getSettings() { return settings; } @@ -418,7 +419,7 @@ public CatalogServiceStub getStub() { * or not this location exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogsPagedResponse listCatalogs(LocationName parent) { + public final ListCatalogsPagedResponse listCatalogs(@Nullable LocationName parent) { ListCatalogsRequest request = ListCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -704,7 +705,7 @@ public final UnaryCallable updateCatalogCallable( * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void setDefaultBranch(CatalogName catalog) { + public final void setDefaultBranch(@Nullable CatalogName catalog) { SetDefaultBranchRequest request = SetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -914,7 +915,7 @@ public final UnaryCallable setDefaultBranchCalla * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetDefaultBranchResponse getDefaultBranch(CatalogName catalog) { + public final GetDefaultBranchResponse getDefaultBranch(@Nullable CatalogName catalog) { GetDefaultBranchRequest request = GetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -1035,7 +1036,7 @@ public final GetDefaultBranchResponse getDefaultBranch(GetDefaultBranchRequest r * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompletionConfig getCompletionConfig(CompletionConfigName name) { + public final CompletionConfig getCompletionConfig(@Nullable CompletionConfigName name) { GetCompletionConfigRequest request = GetCompletionConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1258,7 +1259,7 @@ public final CompletionConfig updateCompletionConfig(UpdateCompletionConfigReque * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributesConfig getAttributesConfig(AttributesConfigName name) { + public final AttributesConfig getAttributesConfig(@Nullable AttributesConfigName name) { GetAttributesConfigRequest request = GetAttributesConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1806,8 +1807,8 @@ public static class ListCatalogsPage extends AbstractPage { private ListCatalogsPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { super(context, response); } @@ -1817,14 +1818,14 @@ private static ListCatalogsPage createEmptyPage() { @Override protected ListCatalogsPage createPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { return new ListCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1838,7 +1839,8 @@ public static class ListCatalogsFixedSizeCollection ListCatalogsPage, ListCatalogsFixedSizeCollection> { - private ListCatalogsFixedSizeCollection(List pages, int collectionSize) { + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1848,7 +1850,7 @@ private static ListCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceSettings.java index 4c73f499b79b..2d4239510b08 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CatalogServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceClient.java index d17a82f308d9..1704df90986d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -169,7 +170,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -217,7 +218,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceSettings.java index 2c5c0cd8bc02..10a86fbd6f79 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -190,7 +191,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceClient.java index 188788555e5d..e0e93ab86fa2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceClient.java @@ -35,6 +35,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. /** @@ -224,7 +225,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -264,7 +265,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -303,7 +304,8 @@ public ControlServiceStub getStub() { *

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(CatalogName parent, Control control, String controlId) { + public final Control createControl( + @Nullable CatalogName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -444,7 +446,7 @@ public final UnaryCallable createControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -668,7 +670,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -782,7 +784,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(CatalogName parent) { + public final ListControlsPagedResponse listControls(@Nullable CatalogName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -983,8 +985,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -994,14 +996,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1015,7 +1017,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1025,7 +1028,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceSettings.java index 79c1a2198ed3..e4f732b2d02b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceClient.java index ecea9ecdf39d..2ad821789d2b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceClient.java @@ -25,6 +25,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceSettings.java index 2a9405f9c0e6..ac1525792f72 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ConversationalSearchServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceClient.java index 0e2222d92a16..bf8f6c6fd2b9 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceClient.java @@ -27,6 +27,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. /** @@ -215,7 +216,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GenerativeQuestionServiceClient implements BackgroundResource { - private final GenerativeQuestionServiceSettings settings; + private final @Nullable GenerativeQuestionServiceSettings settings; private final GenerativeQuestionServiceStub stub; /** Constructs an instance of GenerativeQuestionServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected GenerativeQuestionServiceClient(GenerativeQuestionServiceStub stub) { this.stub = stub; } - public final GenerativeQuestionServiceSettings getSettings() { + public final @Nullable GenerativeQuestionServiceSettings getSettings() { return settings; } @@ -397,7 +398,7 @@ public final GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureCo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - CatalogName catalog) { + @Nullable CatalogName catalog) { GetGenerativeQuestionsFeatureConfigRequest request = GetGenerativeQuestionsFeatureConfigRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -525,7 +526,7 @@ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - CatalogName parent) { + @Nullable CatalogName parent) { ListGenerativeQuestionConfigsRequest request = ListGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -762,7 +763,7 @@ public final GenerativeQuestionConfig updateGenerativeQuestionConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - CatalogName parent, List requests) { + @Nullable CatalogName parent, List requests) { BatchUpdateGenerativeQuestionConfigsRequest request = BatchUpdateGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceSettings.java index 1d9a93fd08e4..f9cfddb5879c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/GenerativeQuestionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenerativeQuestionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java index f31891781453..7f167e70d226 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java @@ -30,6 +30,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. /** @@ -183,7 +184,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MerchantCenterAccountLinkServiceClient implements BackgroundResource { - private final MerchantCenterAccountLinkServiceSettings settings; + private final @Nullable MerchantCenterAccountLinkServiceSettings settings; private final MerchantCenterAccountLinkServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -236,7 +237,7 @@ protected MerchantCenterAccountLinkServiceClient(MerchantCenterAccountLinkServic this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final MerchantCenterAccountLinkServiceSettings getSettings() { + public final @Nullable MerchantCenterAccountLinkServiceSettings getSettings() { return settings; } @@ -287,7 +288,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLinks( - CatalogName parent) { + @Nullable CatalogName parent) { ListMerchantCenterAccountLinksRequest request = ListMerchantCenterAccountLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -429,7 +430,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin */ public final OperationFuture createMerchantCenterAccountLinkAsync( - CatalogName parent, MerchantCenterAccountLink merchantCenterAccountLink) { + @Nullable CatalogName parent, MerchantCenterAccountLink merchantCenterAccountLink) { CreateMerchantCenterAccountLinkRequest request = CreateMerchantCenterAccountLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -613,7 +614,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMerchantCenterAccountLink(MerchantCenterAccountLinkName name) { + public final void deleteMerchantCenterAccountLink(@Nullable MerchantCenterAccountLinkName name) { DeleteMerchantCenterAccountLinkRequest request = DeleteMerchantCenterAccountLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceSettings.java index 8ac61e317800..72939febc209 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -209,7 +210,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); } @@ -230,7 +231,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MerchantCenterAccountLinkServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceClient.java index 37605335ec00..6b0b53a75c07 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceClient.java @@ -39,6 +39,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. /** @@ -292,7 +293,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelServiceClient implements BackgroundResource { - private final ModelServiceSettings settings; + private final @Nullable ModelServiceSettings settings; private final ModelServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -339,7 +340,7 @@ protected ModelServiceClient(ModelServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ModelServiceSettings getSettings() { + public final @Nullable ModelServiceSettings getSettings() { return settings; } @@ -389,7 +390,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - CatalogName parent, Model model) { + @Nullable CatalogName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +544,7 @@ public final UnaryCallable createModelCallable() * `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -654,7 +655,7 @@ public final UnaryCallable getModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model pauseModel(ModelName name) { + public final Model pauseModel(@Nullable ModelName name) { PauseModelRequest request = PauseModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseModel(request); @@ -841,7 +842,7 @@ public final UnaryCallable resumeModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteModel(ModelName name) { + public final void deleteModel(@Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteModel(request); @@ -954,7 +955,7 @@ public final UnaryCallable deleteModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(CatalogName parent) { + public final ListModelsPagedResponse listModels(@Nullable CatalogName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -1203,7 +1204,7 @@ public final UnaryCallable updateModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture tuneModelAsync( - ModelName name) { + @Nullable ModelName name) { TuneModelRequest request = TuneModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return tuneModelAsync(request); @@ -1377,8 +1378,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -1388,14 +1389,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1409,7 +1410,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1419,7 +1421,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceSettings.java index 7af84b27b35d..3b5cc9392ced 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ModelServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceClient.java index eaf4b4fc41c4..7f07234b4c23 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceClient.java @@ -25,6 +25,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. /** @@ -142,7 +143,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceSettings.java index b5cd51103bc2..3561aa727137 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/PredictionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java index 2babaa708f09..3d2739aaeffa 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java @@ -39,6 +39,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. /** @@ -397,7 +398,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductServiceClient implements BackgroundResource { - private final ProductServiceSettings settings; + private final @Nullable ProductServiceSettings settings; private final ProductServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -445,7 +446,7 @@ protected ProductServiceClient(ProductServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductServiceSettings getSettings() { + public final @Nullable ProductServiceSettings getSettings() { return settings; } @@ -506,7 +507,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * Otherwise, an INVALID_ARGUMENT error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(BranchName parent, Product product, String productId) { + public final Product createProduct( + @Nullable BranchName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -652,7 +654,7 @@ public final UnaryCallable createProductCallable( * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -780,7 +782,7 @@ public final UnaryCallable getProductCallable() { * not this branch exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(BranchName parent) { + public final ListProductsPagedResponse listProducts(@Nullable BranchName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1075,7 +1077,7 @@ public final UnaryCallable updateProductCallable( * will be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -1930,7 +1932,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addFulfillmentPlacesAsync(ProductName product) { + addFulfillmentPlacesAsync(@Nullable ProductName product) { AddFulfillmentPlacesRequest request = AddFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2240,7 +2242,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeFulfillmentPlacesAsync(ProductName product) { + removeFulfillmentPlacesAsync(@Nullable ProductName product) { RemoveFulfillmentPlacesRequest request = RemoveFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2548,7 +2550,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addLocalInventoriesAsync(ProductName product) { + addLocalInventoriesAsync(@Nullable ProductName product) { AddLocalInventoriesRequest request = AddLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2835,7 +2837,7 @@ public final UnaryCallable addLocalInvent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeLocalInventoriesAsync(ProductName product) { + removeLocalInventoriesAsync(@Nullable ProductName product) { RemoveLocalInventoriesRequest request = RemoveLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -3123,8 +3125,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -3134,14 +3136,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3155,7 +3157,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3165,7 +3168,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceSettings.java index d2c1e41c95db..71902c1808a3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,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); } @@ -322,7 +323,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java index 8fa954391d32..88e69b0bd4c1 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java @@ -30,6 +30,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. /** @@ -267,7 +268,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProjectServiceClient implements BackgroundResource { - private final ProjectServiceSettings settings; + private final @Nullable ProjectServiceSettings settings; private final ProjectServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -315,7 +316,7 @@ protected ProjectServiceClient(ProjectServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProjectServiceSettings getSettings() { + public final @Nullable ProjectServiceSettings getSettings() { return settings; } @@ -364,7 +365,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_number_or_id}/retailProject` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Project getProject(RetailProjectName name) { + public final Project getProject(@Nullable RetailProjectName name) { GetProjectRequest request = GetProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProject(request); @@ -481,7 +482,7 @@ public final UnaryCallable getProjectCallable() { * `projects/{project_number_or_id}/retailProject` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Project acceptTerms(RetailProjectName project) { + public final Project acceptTerms(@Nullable RetailProjectName project) { AcceptTermsRequest request = AcceptTermsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -703,7 +704,7 @@ public final UnaryCallable enrollSolutionCalla * @param parent Required. Full resource name of parent. Format: `projects/{project_number_or_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEnrolledSolutionsResponse listEnrolledSolutions(ProjectName parent) { + public final ListEnrolledSolutionsResponse listEnrolledSolutions(@Nullable ProjectName parent) { ListEnrolledSolutionsRequest request = ListEnrolledSolutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -818,7 +819,7 @@ public final ListEnrolledSolutionsResponse listEnrolledSolutions( * projects/{project_number}/loggingConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LoggingConfig getLoggingConfig(LoggingConfigName name) { + public final LoggingConfig getLoggingConfig(@Nullable LoggingConfigName name) { GetLoggingConfigRequest request = GetLoggingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLoggingConfig(request); @@ -1037,7 +1038,7 @@ public final LoggingConfig updateLoggingConfig(UpdateLoggingConfigRequest reques * projects/{project_number}/alertConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertConfig getAlertConfig(AlertConfigName name) { + public final AlertConfig getAlertConfig(@Nullable AlertConfigName name) { GetAlertConfigRequest request = GetAlertConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAlertConfig(request); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java index 11ed107a7e13..3918f6d8df6b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -241,7 +242,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java index 7896610b879e..0fab3a3a392d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceClient.java @@ -33,6 +33,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. /** @@ -175,7 +176,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -215,7 +216,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -471,8 +472,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -482,14 +483,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -503,7 +504,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -513,7 +514,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceSettings.java index 5c0aa9a072ae..fe1088bcc783 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/SearchServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClient.java index 69414ec681d1..60dcdb56677d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClient.java @@ -35,6 +35,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. /** @@ -268,7 +269,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -308,7 +309,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } @@ -351,7 +352,7 @@ public ServingConfigServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig createServingConfig( - CatalogName parent, ServingConfig servingConfig, String servingConfigId) { + @Nullable CatalogName parent, ServingConfig servingConfig, String servingConfigId) { CreateServingConfigRequest request = CreateServingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -503,7 +504,7 @@ public final ServingConfig createServingConfig(CreateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServingConfig(ServingConfigName name) { + public final void deleteServingConfig(@Nullable ServingConfigName name) { DeleteServingConfigRequest request = DeleteServingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -738,7 +739,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig getServingConfig(ServingConfigName name) { + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServingConfig(request); @@ -868,7 +869,7 @@ public final UnaryCallable getServingCon * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(CatalogName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable CatalogName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1046,7 +1047,7 @@ public final ListServingConfigsPagedResponse listServingConfigs( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig addControl(ServingConfigName servingConfig) { + public final ServingConfig addControl(@Nullable ServingConfigName servingConfig) { AddControlRequest request = AddControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1186,7 +1187,7 @@ public final UnaryCallable addControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig removeControl(ServingConfigName servingConfig) { + public final ServingConfig removeControl(@Nullable ServingConfigName servingConfig) { RemoveControlRequest request = RemoveControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1354,8 +1355,9 @@ public static class ListServingConfigsPage ListServingConfigsPage> { private ListServingConfigsPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { super(context, response); } @@ -1365,14 +1367,16 @@ private static ListServingConfigsPage createEmptyPage() { @Override protected ListServingConfigsPage createPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { return new ListServingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1387,7 +1391,7 @@ public static class ListServingConfigsFixedSizeCollection ListServingConfigsFixedSizeCollection> { private ListServingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1397,7 +1401,7 @@ private static ListServingConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServingConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceSettings.java index 63e2978b0b5d..09eb45de1a2a 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceClient.java index 89cc881d6fb1..22a9c7439a3c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -220,7 +221,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -268,7 +269,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceSettings.java index b8ac5e622e3b..c4a82ce8c0bf 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,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); } @@ -248,7 +249,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStub.java index 14583c0e0afc..8a3bab1b076b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class AnalyticsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java index b0ca9dedd7f9..af2f8a282693 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAnalyticsMetricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java index e122fd47ecd1..353da2ed73c0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -289,7 +290,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listBranchesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java index ccead54e4498..097bd1d460e4 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CatalogServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,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); } @@ -480,7 +481,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCatalogsSettings = PagedCallSettings.newBuilder(LIST_CATALOGS_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStub.java index e08822720fee..00980bc45772 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java index 38c50510f49f..37eb47b44d72 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/CompletionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -340,7 +341,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java index 93001f0b74b3..12478672811a 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ControlServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,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); } @@ -367,7 +368,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ConversationalSearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ConversationalSearchServiceStubSettings.java index 7226a4381857..9a891b7a73f0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ConversationalSearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ConversationalSearchServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -273,7 +274,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); conversationalSearchSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GenerativeQuestionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GenerativeQuestionServiceStubSettings.java index f6316d193131..3c39b4af0a8d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GenerativeQuestionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GenerativeQuestionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -344,7 +345,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateGenerativeQuestionsFeatureConfigSettings = diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStub.java index 800f585de109..1baf858ad217 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStub.java @@ -31,6 +31,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,11 +44,12 @@ @Generated("by gapic-generator-java") public abstract class MerchantCenterAccountLinkServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java index f091425667af..a55b4bf1b50b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/MerchantCenterAccountLinkServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -289,7 +290,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); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listMerchantCenterAccountLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStub.java index 25a9e481d631..636deb6b8bd2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class ModelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java index 12fdfeffefb2..227a6cac0318 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -464,7 +465,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java index 786a88e87c09..c3315ed31f17 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/PredictionServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStub.java index eb9b38b6b7c3..01699f3a0b27 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class ProductServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java index b6bee8fbf80b..352dcf85ff49 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -497,7 +498,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); } @@ -650,7 +651,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java index 563b80d8043d..d95044180aae 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class ProjectServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java index d4a941e5da18..94e4440a676e 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,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); } @@ -402,7 +403,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java index d11e46addc78..23059c6d1bd1 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/SearchServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -339,7 +340,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java index 8239989507e5..650342d277ca 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ServingConfigServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStub.java index 857c3889dffa..3a3134b278ce 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStub.java @@ -40,6 +40,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java index 904bd2ba462f..7a08b600c9c3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceClient.java index 28b761a757e6..0cd7dcb7772b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceClient.java @@ -29,6 +29,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AnalyticsServiceClient implements BackgroundResource { - private final AnalyticsServiceSettings settings; + private final @Nullable AnalyticsServiceSettings settings; private final AnalyticsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -193,7 +194,7 @@ protected AnalyticsServiceClient(AnalyticsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AnalyticsServiceSettings getSettings() { + public final @Nullable AnalyticsServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceSettings.java index bf8c7edd3db2..c76579e8a8a4 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/AnalyticsServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,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); } @@ -206,7 +207,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AnalyticsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java index 47435de65353..803f3aded6dd 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java @@ -35,6 +35,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. /** @@ -344,7 +345,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CatalogServiceClient implements BackgroundResource { - private final CatalogServiceSettings settings; + private final @Nullable CatalogServiceSettings settings; private final CatalogServiceStub stub; /** Constructs an instance of CatalogServiceClient with default settings. */ @@ -384,7 +385,7 @@ protected CatalogServiceClient(CatalogServiceStub stub) { this.stub = stub; } - public final CatalogServiceSettings getSettings() { + public final @Nullable CatalogServiceSettings getSettings() { return settings; } @@ -418,7 +419,7 @@ public CatalogServiceStub getStub() { * or not this location exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCatalogsPagedResponse listCatalogs(LocationName parent) { + public final ListCatalogsPagedResponse listCatalogs(@Nullable LocationName parent) { ListCatalogsRequest request = ListCatalogsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -704,7 +705,7 @@ public final UnaryCallable updateCatalogCallable( * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void setDefaultBranch(CatalogName catalog) { + public final void setDefaultBranch(@Nullable CatalogName catalog) { SetDefaultBranchRequest request = SetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -914,7 +915,7 @@ public final UnaryCallable setDefaultBranchCalla * `projects/*/locations/global/catalogs/default_catalog`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetDefaultBranchResponse getDefaultBranch(CatalogName catalog) { + public final GetDefaultBranchResponse getDefaultBranch(@Nullable CatalogName catalog) { GetDefaultBranchRequest request = GetDefaultBranchRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -1035,7 +1036,7 @@ public final GetDefaultBranchResponse getDefaultBranch(GetDefaultBranchRequest r * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CompletionConfig getCompletionConfig(CompletionConfigName name) { + public final CompletionConfig getCompletionConfig(@Nullable CompletionConfigName name) { GetCompletionConfigRequest request = GetCompletionConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1258,7 +1259,7 @@ public final CompletionConfig updateCompletionConfig(UpdateCompletionConfigReque * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributesConfig getAttributesConfig(AttributesConfigName name) { + public final AttributesConfig getAttributesConfig(@Nullable AttributesConfigName name) { GetAttributesConfigRequest request = GetAttributesConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1806,8 +1807,8 @@ public static class ListCatalogsPage extends AbstractPage { private ListCatalogsPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { super(context, response); } @@ -1817,14 +1818,14 @@ private static ListCatalogsPage createEmptyPage() { @Override protected ListCatalogsPage createPage( - PageContext context, - ListCatalogsResponse response) { + @Nullable PageContext context, + @Nullable ListCatalogsResponse response) { return new ListCatalogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1838,7 +1839,8 @@ public static class ListCatalogsFixedSizeCollection ListCatalogsPage, ListCatalogsFixedSizeCollection> { - private ListCatalogsFixedSizeCollection(List pages, int collectionSize) { + private ListCatalogsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1848,7 +1850,7 @@ private static ListCatalogsFixedSizeCollection createEmptyCollection() { @Override protected ListCatalogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCatalogsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java index d2c25ba83d4a..8d795b1e96cc 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CatalogServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java index 3f91e945558e..59ea077b0044 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java @@ -29,6 +29,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. /** @@ -169,7 +170,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompletionServiceClient implements BackgroundResource { - private final CompletionServiceSettings settings; + private final @Nullable CompletionServiceSettings settings; private final CompletionServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -217,7 +218,7 @@ protected CompletionServiceClient(CompletionServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CompletionServiceSettings getSettings() { + public final @Nullable CompletionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceSettings.java index d9ec9ed4ca7a..37ae3b674e76 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -190,7 +191,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java index d2121005fad5..b986e0f978fd 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java @@ -35,6 +35,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. /** @@ -224,7 +225,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ControlServiceClient implements BackgroundResource { - private final ControlServiceSettings settings; + private final @Nullable ControlServiceSettings settings; private final ControlServiceStub stub; /** Constructs an instance of ControlServiceClient with default settings. */ @@ -264,7 +265,7 @@ protected ControlServiceClient(ControlServiceStub stub) { this.stub = stub; } - public final ControlServiceSettings getSettings() { + public final @Nullable ControlServiceSettings getSettings() { return settings; } @@ -303,7 +304,8 @@ public ControlServiceStub getStub() { *

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-_/. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control createControl(CatalogName parent, Control control, String controlId) { + public final Control createControl( + @Nullable CatalogName parent, Control control, String controlId) { CreateControlRequest request = CreateControlRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -444,7 +446,7 @@ public final UnaryCallable createControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteControl(ControlName name) { + public final void deleteControl(@Nullable ControlName name) { DeleteControlRequest request = DeleteControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteControl(request); @@ -668,7 +670,7 @@ public final UnaryCallable updateControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Control getControl(ControlName name) { + public final Control getControl(@Nullable ControlName name) { GetControlRequest request = GetControlRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getControl(request); @@ -782,7 +784,7 @@ public final UnaryCallable getControlCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListControlsPagedResponse listControls(CatalogName parent) { + public final ListControlsPagedResponse listControls(@Nullable CatalogName parent) { ListControlsRequest request = ListControlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -983,8 +985,8 @@ public static class ListControlsPage extends AbstractPage { private ListControlsPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { super(context, response); } @@ -994,14 +996,14 @@ private static ListControlsPage createEmptyPage() { @Override protected ListControlsPage createPage( - PageContext context, - ListControlsResponse response) { + @Nullable PageContext context, + @Nullable ListControlsResponse response) { return new ListControlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1015,7 +1017,8 @@ public static class ListControlsFixedSizeCollection ListControlsPage, ListControlsFixedSizeCollection> { - private ListControlsFixedSizeCollection(List pages, int collectionSize) { + private ListControlsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1025,7 +1028,7 @@ private static ListControlsFixedSizeCollection createEmptyCollection() { @Override protected ListControlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListControlsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceSettings.java index 2f0b12cd0437..6a52dfd6baf3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ControlServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java index 482baca4410d..73c8cf95c170 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceClient.java @@ -25,6 +25,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversationalSearchServiceClient implements BackgroundResource { - private final ConversationalSearchServiceSettings settings; + private final @Nullable ConversationalSearchServiceSettings settings; private final ConversationalSearchServiceStub stub; /** Constructs an instance of ConversationalSearchServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected ConversationalSearchServiceClient(ConversationalSearchServiceStub stub this.stub = stub; } - public final ConversationalSearchServiceSettings getSettings() { + public final @Nullable ConversationalSearchServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java index 47cb0bd6d7ac..f1273f2a8605 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ConversationalSearchServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversationalSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceClient.java index a07e82fde38d..9f1e39998763 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceClient.java @@ -27,6 +27,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. /** @@ -215,7 +216,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GenerativeQuestionServiceClient implements BackgroundResource { - private final GenerativeQuestionServiceSettings settings; + private final @Nullable GenerativeQuestionServiceSettings settings; private final GenerativeQuestionServiceStub stub; /** Constructs an instance of GenerativeQuestionServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected GenerativeQuestionServiceClient(GenerativeQuestionServiceStub stub) { this.stub = stub; } - public final GenerativeQuestionServiceSettings getSettings() { + public final @Nullable GenerativeQuestionServiceSettings getSettings() { return settings; } @@ -397,7 +398,7 @@ public final GenerativeQuestionsFeatureConfig updateGenerativeQuestionsFeatureCo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfig( - CatalogName catalog) { + @Nullable CatalogName catalog) { GetGenerativeQuestionsFeatureConfigRequest request = GetGenerativeQuestionsFeatureConfigRequest.newBuilder() .setCatalog(catalog == null ? null : catalog.toString()) @@ -525,7 +526,7 @@ public final GenerativeQuestionsFeatureConfig getGenerativeQuestionsFeatureConfi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGenerativeQuestionConfigsResponse listGenerativeQuestionConfigs( - CatalogName parent) { + @Nullable CatalogName parent) { ListGenerativeQuestionConfigsRequest request = ListGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -762,7 +763,7 @@ public final GenerativeQuestionConfig updateGenerativeQuestionConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateGenerativeQuestionConfigsResponse batchUpdateGenerativeQuestionConfigs( - CatalogName parent, List requests) { + @Nullable CatalogName parent, List requests) { BatchUpdateGenerativeQuestionConfigsRequest request = BatchUpdateGenerativeQuestionConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceSettings.java index 00b7fbf24a6d..ad5c8de631e9 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/GenerativeQuestionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -189,7 +190,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GenerativeQuestionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceClient.java index 4d896b764586..124fbfb686a3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceClient.java @@ -39,6 +39,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. /** @@ -292,7 +293,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ModelServiceClient implements BackgroundResource { - private final ModelServiceSettings settings; + private final @Nullable ModelServiceSettings settings; private final ModelServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -339,7 +340,7 @@ protected ModelServiceClient(ModelServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ModelServiceSettings getSettings() { + public final @Nullable ModelServiceSettings getSettings() { return settings; } @@ -389,7 +390,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - CatalogName parent, Model model) { + @Nullable CatalogName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +544,7 @@ public final UnaryCallable createModelCallable() * `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -654,7 +655,7 @@ public final UnaryCallable getModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model pauseModel(ModelName name) { + public final Model pauseModel(@Nullable ModelName name) { PauseModelRequest request = PauseModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseModel(request); @@ -841,7 +842,7 @@ public final UnaryCallable resumeModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteModel(ModelName name) { + public final void deleteModel(@Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteModel(request); @@ -954,7 +955,7 @@ public final UnaryCallable deleteModelCallable() { * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(CatalogName parent) { + public final ListModelsPagedResponse listModels(@Nullable CatalogName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -1203,7 +1204,7 @@ public final UnaryCallable updateModelCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture tuneModelAsync( - ModelName name) { + @Nullable ModelName name) { TuneModelRequest request = TuneModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return tuneModelAsync(request); @@ -1377,8 +1378,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -1388,14 +1389,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1409,7 +1410,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1419,7 +1421,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceSettings.java index 8ec162182731..c9d2b9f032df 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ModelServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -247,7 +248,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ModelServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceClient.java index 769fd17bef51..915be0de4a47 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceClient.java @@ -25,6 +25,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. /** @@ -142,7 +143,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PredictionServiceClient implements BackgroundResource { - private final PredictionServiceSettings settings; + private final @Nullable PredictionServiceSettings settings; private final PredictionServiceStub stub; /** Constructs an instance of PredictionServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected PredictionServiceClient(PredictionServiceStub stub) { this.stub = stub; } - public final PredictionServiceSettings getSettings() { + public final @Nullable PredictionServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceSettings.java index 2577770bf079..18ece1c8b0e5 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/PredictionServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PredictionServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java index 41cdf5ba125b..9da1cce606e5 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java @@ -39,6 +39,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. /** @@ -397,7 +398,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductServiceClient implements BackgroundResource { - private final ProductServiceSettings settings; + private final @Nullable ProductServiceSettings settings; private final ProductServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -445,7 +446,7 @@ protected ProductServiceClient(ProductServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductServiceSettings getSettings() { + public final @Nullable ProductServiceSettings getSettings() { return settings; } @@ -506,7 +507,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * Otherwise, an INVALID_ARGUMENT error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(BranchName parent, Product product, String productId) { + public final Product createProduct( + @Nullable BranchName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -652,7 +654,7 @@ public final UnaryCallable createProductCallable( * NOT_FOUND error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -780,7 +782,7 @@ public final UnaryCallable getProductCallable() { * not this branch exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(BranchName parent) { + public final ListProductsPagedResponse listProducts(@Nullable BranchName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1072,7 +1074,7 @@ public final UnaryCallable updateProductCallable( * will be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -1919,7 +1921,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addFulfillmentPlacesAsync(ProductName product) { + addFulfillmentPlacesAsync(@Nullable ProductName product) { AddFulfillmentPlacesRequest request = AddFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2229,7 +2231,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeFulfillmentPlacesAsync(ProductName product) { + removeFulfillmentPlacesAsync(@Nullable ProductName product) { RemoveFulfillmentPlacesRequest request = RemoveFulfillmentPlacesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2537,7 +2539,7 @@ public final UnaryCallable setInventoryCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addLocalInventoriesAsync(ProductName product) { + addLocalInventoriesAsync(@Nullable ProductName product) { AddLocalInventoriesRequest request = AddLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -2824,7 +2826,7 @@ public final UnaryCallable addLocalInvent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeLocalInventoriesAsync(ProductName product) { + removeLocalInventoriesAsync(@Nullable ProductName product) { RemoveLocalInventoriesRequest request = RemoveLocalInventoriesRequest.newBuilder() .setProduct(product == null ? null : product.toString()) @@ -3112,8 +3114,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -3123,14 +3125,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3144,7 +3146,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3154,7 +3157,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java index bc89fe4d3e07..69bb804e5544 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,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); } @@ -322,7 +323,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceClient.java index fcb6bfaf9229..a727d2b3aa8e 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceClient.java @@ -26,6 +26,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProjectServiceClient implements BackgroundResource { - private final ProjectServiceSettings settings; + private final @Nullable ProjectServiceSettings settings; private final ProjectServiceStub stub; /** Constructs an instance of ProjectServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected ProjectServiceClient(ProjectServiceStub stub) { this.stub = stub; } - public final ProjectServiceSettings getSettings() { + public final @Nullable ProjectServiceSettings getSettings() { return settings; } @@ -222,7 +223,7 @@ public ProjectServiceStub getStub() { * projects/{project_number}/alertConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AlertConfig getAlertConfig(AlertConfigName name) { + public final AlertConfig getAlertConfig(@Nullable AlertConfigName name) { GetAlertConfigRequest request = GetAlertConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAlertConfig(request); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceSettings.java index bdc73b637926..59532c2ed8a3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProjectServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceClient.java index 1f03b75e566b..1a39b2b92c83 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceClient.java @@ -33,6 +33,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. /** @@ -174,7 +175,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SearchServiceClient implements BackgroundResource { - private final SearchServiceSettings settings; + private final @Nullable SearchServiceSettings settings; private final SearchServiceStub stub; /** Constructs an instance of SearchServiceClient with default settings. */ @@ -214,7 +215,7 @@ protected SearchServiceClient(SearchServiceStub stub) { this.stub = stub; } - public final SearchServiceSettings getSettings() { + public final @Nullable SearchServiceSettings getSettings() { return settings; } @@ -467,8 +468,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -478,14 +479,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, - SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -499,7 +500,7 @@ public static class SearchFixedSizeCollection SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -509,7 +510,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceSettings.java index 7ddedf27d6e5..abc7b9ee79f0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/SearchServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceClient.java index 6c3038cdd69c..b29b2ca3b4ba 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceClient.java @@ -35,6 +35,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. /** @@ -268,7 +269,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ServingConfigServiceClient implements BackgroundResource { - private final ServingConfigServiceSettings settings; + private final @Nullable ServingConfigServiceSettings settings; private final ServingConfigServiceStub stub; /** Constructs an instance of ServingConfigServiceClient with default settings. */ @@ -308,7 +309,7 @@ protected ServingConfigServiceClient(ServingConfigServiceStub stub) { this.stub = stub; } - public final ServingConfigServiceSettings getSettings() { + public final @Nullable ServingConfigServiceSettings getSettings() { return settings; } @@ -351,7 +352,7 @@ public ServingConfigServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig createServingConfig( - CatalogName parent, ServingConfig servingConfig, String servingConfigId) { + @Nullable CatalogName parent, ServingConfig servingConfig, String servingConfigId) { CreateServingConfigRequest request = CreateServingConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -503,7 +504,7 @@ public final ServingConfig createServingConfig(CreateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteServingConfig(ServingConfigName name) { + public final void deleteServingConfig(@Nullable ServingConfigName name) { DeleteServingConfigRequest request = DeleteServingConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -738,7 +739,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig getServingConfig(ServingConfigName name) { + public final ServingConfig getServingConfig(@Nullable ServingConfigName name) { GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getServingConfig(request); @@ -868,7 +869,7 @@ public final UnaryCallable getServingCon * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServingConfigsPagedResponse listServingConfigs(CatalogName parent) { + public final ListServingConfigsPagedResponse listServingConfigs(@Nullable CatalogName parent) { ListServingConfigsRequest request = ListServingConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1046,7 +1047,7 @@ public final ListServingConfigsPagedResponse listServingConfigs( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig addControl(ServingConfigName servingConfig) { + public final ServingConfig addControl(@Nullable ServingConfigName servingConfig) { AddControlRequest request = AddControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1186,7 +1187,7 @@ public final UnaryCallable addControlCallable( * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServingConfig removeControl(ServingConfigName servingConfig) { + public final ServingConfig removeControl(@Nullable ServingConfigName servingConfig) { RemoveControlRequest request = RemoveControlRequest.newBuilder() .setServingConfig(servingConfig == null ? null : servingConfig.toString()) @@ -1354,8 +1355,9 @@ public static class ListServingConfigsPage ListServingConfigsPage> { private ListServingConfigsPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { super(context, response); } @@ -1365,14 +1367,16 @@ private static ListServingConfigsPage createEmptyPage() { @Override protected ListServingConfigsPage createPage( - PageContext context, - ListServingConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServingConfigsResponse response) { return new ListServingConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1387,7 +1391,7 @@ public static class ListServingConfigsFixedSizeCollection ListServingConfigsFixedSizeCollection> { private ListServingConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1397,7 +1401,7 @@ private static ListServingConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServingConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServingConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceSettings.java index 48df337c75c4..22378039bfa0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ServingConfigServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServingConfigServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceClient.java index a3c20e1f9001..14a704d3dacf 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceClient.java @@ -30,6 +30,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. /** @@ -220,7 +221,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserEventServiceClient implements BackgroundResource { - private final UserEventServiceSettings settings; + private final @Nullable UserEventServiceSettings settings; private final UserEventServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -268,7 +269,7 @@ protected UserEventServiceClient(UserEventServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final UserEventServiceSettings getSettings() { + public final @Nullable UserEventServiceSettings getSettings() { return settings; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceSettings.java index 037136c6413c..76f392b5c82d 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/UserEventServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,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); } @@ -248,7 +249,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserEventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStub.java index fb8a4d7952e9..590038a5c1e7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class AnalyticsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java index bbbfde169c98..261289d49b74 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAnalyticsMetricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java index 819145a3f936..f41b5ab15269 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CatalogServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -379,7 +380,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); } @@ -480,7 +481,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCatalogsSettings = PagedCallSettings.newBuilder(LIST_CATALOGS_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStub.java index ead1085e1901..cbdddd16b551 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java index 2860670c3338..6df0f36e99c0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/CompletionServiceStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -266,7 +267,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); } @@ -340,7 +341,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java index 01d9af079be0..611aacbbb817 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ControlServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,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); } @@ -367,7 +368,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createControlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java index 890984714e46..2ace9d84abec 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ConversationalSearchServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -273,7 +274,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); conversationalSearchSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GenerativeQuestionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GenerativeQuestionServiceStubSettings.java index f76ea4dc1f76..f8a4f3eb9c48 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GenerativeQuestionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GenerativeQuestionServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -344,7 +345,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); updateGenerativeQuestionsFeatureConfigSettings = diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStub.java index 5080cc96d9cf..2e21f3c45296 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class ModelServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java index e9c94134ad2d..504a8b44eff9 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -376,7 +377,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); } @@ -464,7 +465,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java index cda8adabfd30..4ab4e0f34928 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/PredictionServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java index d537fcd93909..33fc595062a2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class ProductServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java index c68931cdfdf8..eac5214c33de 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -497,7 +498,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); } @@ -650,7 +651,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProjectServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProjectServiceStubSettings.java index 8c1390db88c8..d13a3584efa3 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProjectServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProjectServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAlertConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java index 969895b70650..61adf1924e4c 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/SearchServiceStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -339,7 +340,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java index d538f9f7d8fa..4fdf142c660a 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ServingConfigServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStub.java index a24cfbf03bc9..f21ed82f3905 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStub.java @@ -40,6 +40,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class UserEventServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java index 97356d3f299b..502b00d8d7d5 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -454,7 +455,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); writeUserEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AttributesConfigName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AttributesConfigName.java index b5d26320dfe5..d75ee228ef5f 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AttributesConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/AttributesConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static AttributesConfigName parse(String formattedString) { + public static @Nullable AttributesConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttributesConfigName> values) { List list = new ArrayList<>(values.size()); for (AttributesConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BranchName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BranchName.java index 81c909bf19bd..92abc25b3430 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BranchName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/BranchName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogName.java index 21237164f089..53353e07749f 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigName.java index 7d5fdbeae335..d61ab5172b34 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CompletionConfigName parse(String formattedString) { + public static @Nullable CompletionConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompletionConfigName> values) { List list = new ArrayList<>(values.size()); for (CompletionConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlName.java index 9bf86f2ce3ff..794cf79850b5 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ControlName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/LocationName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/LocationName.java index eb7d165bcfd5..436c5b6cf11a 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/LocationName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelName.java index 490edb47d997..bac867777378 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductName.java index 36352df09a52..f57038c0a4cd 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigName.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigName.java index fc9658150ac2..dac7abb4d755 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java index 770d0da6674c..ffef00049944 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static AlertConfigName parse(String formattedString) { + public static @Nullable AlertConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AlertConfigName> values) { List list = new ArrayList<>(values.size()); for (AlertConfigName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AttributesConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AttributesConfigName.java index 4695b869ccf3..90955449c4a6 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AttributesConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AttributesConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static AttributesConfigName parse(String formattedString) { + public static @Nullable AttributesConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttributesConfigName> values) { List list = new ArrayList<>(values.size()); for (AttributesConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchName.java index 1eff6504ce5b..1fbd3df3a967 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogName.java index b597b1960aa5..c99cf28c5d9a 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigName.java index 11f5c9051c0f..643e3d3b3ca3 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CompletionConfigName parse(String formattedString) { + public static @Nullable CompletionConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompletionConfigName> values) { List list = new ArrayList<>(values.size()); for (CompletionConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlName.java index 1f6dbfa6f5fe..0fbbf53fc1dc 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ControlName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LocationName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LocationName.java index 9308a50fa367..bb95ec743d95 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LocationName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java index b434ca137909..82220c126246 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static LoggingConfigName parse(String formattedString) { + public static @Nullable LoggingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LoggingConfigName> values) { List list = new ArrayList<>(values.size()); for (LoggingConfigName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkName.java index bf80899228b8..ef80c6623705 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static MerchantCenterAccountLinkName parse(String formattedString) { + public static @Nullable MerchantCenterAccountLinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MerchantCenterAccountLinkName> values) { List list = new ArrayList<>(values.size()); for (MerchantCenterAccountLinkName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelName.java index 79994f847a4c..2bdd1882cb96 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductName.java index a5fb35b9fc67..3aa7cddb48f9 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java index 920e23a64fc6..a894b8c7c9a7 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java index 5741950deb46..afae9a09cc1b 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static RetailProjectName parse(String formattedString) { + public static @Nullable RetailProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RetailProjectName> values) { List list = new ArrayList<>(values.size()); for (RetailProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigName.java index a3d8c7a0fda3..d0c06758f805 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AlertConfigName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AlertConfigName.java index a76c2ba245e0..9937b834fafa 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AlertConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AlertConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static AlertConfigName parse(String formattedString) { + public static @Nullable AlertConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AlertConfigName> values) { List list = new ArrayList<>(values.size()); for (AlertConfigName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AttributesConfigName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AttributesConfigName.java index d9e24718b976..20f992a95ed1 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AttributesConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/AttributesConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static AttributesConfigName parse(String formattedString) { + public static @Nullable AttributesConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttributesConfigName> values) { List list = new ArrayList<>(values.size()); for (AttributesConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/BranchName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/BranchName.java index ab4bbe3f42e8..7d42d978c083 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/BranchName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/BranchName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static BranchName parse(String formattedString) { + public static @Nullable BranchName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchName> values) { List list = new ArrayList<>(values.size()); for (BranchName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogName.java index 7a638d33223a..1a31129bfcc9 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CatalogName parse(String formattedString) { + public static @Nullable CatalogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CatalogName> values) { List list = new ArrayList<>(values.size()); for (CatalogName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigName.java index 461fb10bcf2c..7092a4abd9bf 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String catalog) { .toString(); } - public static CompletionConfigName parse(String formattedString) { + public static @Nullable CompletionConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompletionConfigName> values) { List list = new ArrayList<>(values.size()); for (CompletionConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlName.java index 0c62c9b01b71..382a384b8369 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ControlName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ControlName parse(String formattedString) { + public static @Nullable ControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ControlName> values) { List list = new ArrayList<>(values.size()); for (ControlName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/LocationName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/LocationName.java index 3e46c9119c2f..202c90e367f3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/LocationName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelName.java index a41046bc3749..057ad570f04e 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String catalog, Str .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductName.java index 3ca765b17eea..f8de9b317e21 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigName.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigName.java index 10f89b1516e4..ea0e99f3596f 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigName.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ServingConfigName parse(String formattedString) { + public static @Nullable ServingConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServingConfigName> values) { List list = new ArrayList<>(values.size()); for (ServingConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java index 3b708b3f569c..39f1b3e11fec 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java @@ -24,6 +24,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. /** @@ -135,7 +136,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BuildsClient implements BackgroundResource { - private final BuildsSettings settings; + private final @Nullable BuildsSettings settings; private final BuildsStub stub; /** Constructs an instance of BuildsClient with default settings. */ @@ -173,7 +174,7 @@ protected BuildsClient(BuildsStub stub) { this.stub = stub; } - public final BuildsSettings getSettings() { + public final @Nullable BuildsSettings getSettings() { return settings; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsSettings.java index ad128a3a40ee..7fd770a2b8d3 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,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); } @@ -166,7 +167,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BuildsStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java index 5d4ac31418fa..5c81fdb3527c 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsClient.java @@ -37,6 +37,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExecutionsClient implements BackgroundResource { - private final ExecutionsSettings settings; + private final @Nullable ExecutionsSettings settings; private final ExecutionsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -249,7 +250,7 @@ protected ExecutionsClient(ExecutionsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ExecutionsSettings getSettings() { + public final @Nullable ExecutionsSettings getSettings() { return settings; } @@ -297,7 +298,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `{project}` can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -414,7 +415,7 @@ public final UnaryCallable getExecutionCallable( * or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(JobName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable JobName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -583,7 +584,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * `{project}` can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteExecutionAsync(ExecutionName name) { + public final OperationFuture deleteExecutionAsync( + @Nullable ExecutionName name) { DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExecutionAsync(request); @@ -734,7 +736,8 @@ public final UnaryCallable deleteExecutionCal * `{project}` can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture cancelExecutionAsync(ExecutionName name) { + public final OperationFuture cancelExecutionAsync( + @Nullable ExecutionName name) { CancelExecutionRequest request = CancelExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelExecutionAsync(request); @@ -921,8 +924,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -932,14 +935,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -953,7 +956,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -963,7 +967,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java index d4a57e03598a..bd07f8f6cf43 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ExecutionsSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExecutionsStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesClient.java index f711a2864ae7..e88e7a1a7fd5 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesClient.java @@ -37,6 +37,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. /** @@ -243,7 +244,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstancesClient implements BackgroundResource { - private final InstancesSettings settings; + private final @Nullable InstancesSettings settings; private final InstancesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -289,7 +290,7 @@ protected InstancesClient(InstancesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final InstancesSettings getSettings() { + public final @Nullable InstancesSettings getSettings() { return settings; } @@ -338,7 +339,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance) { + @Nullable LocationName parent, Instance instance) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -492,7 +493,8 @@ public final UnaryCallable createInstanceCalla * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -636,7 +638,7 @@ public final UnaryCallable deleteInstanceCalla * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -747,7 +749,7 @@ public final UnaryCallable getInstanceCallable() { * projects/{project}/locations/{location}, where {project} can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -912,7 +914,7 @@ public final UnaryCallable listInst * project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture stopInstanceAsync(InstanceName name) { + public final OperationFuture stopInstanceAsync(@Nullable InstanceName name) { StopInstanceRequest request = StopInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopInstanceAsync(request); @@ -1059,7 +1061,7 @@ public final UnaryCallable stopInstanceCallable( * project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture startInstanceAsync(InstanceName name) { + public final OperationFuture startInstanceAsync(@Nullable InstanceName name) { StartInstanceRequest request = StartInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startInstanceAsync(request); @@ -1243,8 +1245,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1254,14 +1256,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1275,7 +1277,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1285,7 +1288,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesSettings.java index 62bd5dd2d0ab..740f9b9c0e02 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/InstancesSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstancesStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java index 5b7c53415a76..49119967e72c 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsClient.java @@ -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. /** @@ -289,7 +290,7 @@ @NullMarked @Generated("by gapic-generator-java") public class JobsClient implements BackgroundResource { - private final JobsSettings settings; + private final @Nullable JobsSettings settings; private final JobsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -335,7 +336,7 @@ protected JobsClient(JobsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final JobsSettings getSettings() { + public final @Nullable JobsSettings getSettings() { return settings; } @@ -388,7 +389,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createJobAsync( - LocationName parent, Job job, String jobId) { + @Nullable LocationName parent, Job job, String jobId) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -546,7 +547,7 @@ public final UnaryCallable createJobCallable() { * number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -659,7 +660,7 @@ public final UnaryCallable getJobCallable() { * projects/{project}/locations/{location}, where {project} can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(LocationName parent) { + public final ListJobsPagedResponse listJobs(@Nullable LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -936,7 +937,7 @@ public final UnaryCallable updateJobCallable() { * number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteJobAsync(JobName name) { + public final OperationFuture deleteJobAsync(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteJobAsync(request); @@ -1082,7 +1083,7 @@ public final UnaryCallable deleteJobCallable() { * number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture runJobAsync(JobName name) { + public final OperationFuture runJobAsync(@Nullable JobName name) { RunJobRequest request = RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runJobAsync(request); @@ -1441,7 +1442,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1451,13 +1453,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1467,7 +1470,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1477,7 +1480,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java index 0b67af44e774..0534bb13c41d 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/JobsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,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); } @@ -263,7 +264,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobsStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java index 0f8229c6189c..c8d34adefeee 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsClient.java @@ -37,6 +37,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RevisionsClient implements BackgroundResource { - private final RevisionsSettings settings; + private final @Nullable RevisionsSettings settings; private final RevisionsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -229,7 +230,7 @@ protected RevisionsClient(RevisionsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final RevisionsSettings getSettings() { + public final @Nullable RevisionsSettings getSettings() { return settings; } @@ -276,7 +277,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/{location}/services/{service}/revisions/{revision} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Revision getRevision(RevisionName name) { + public final Revision getRevision(@Nullable RevisionName name) { GetRevisionRequest request = GetRevisionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRevision(request); @@ -393,7 +394,7 @@ public final UnaryCallable getRevisionCallable() { * projects/{project}/locations/{location}/services/{service} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRevisionsPagedResponse listRevisions(ServiceName parent) { + public final ListRevisionsPagedResponse listRevisions(@Nullable ServiceName parent) { ListRevisionsRequest request = ListRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -562,7 +563,8 @@ public final UnaryCallable listRevi * projects/{project}/locations/{location}/services/{service}/revisions/{revision} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteRevisionAsync(RevisionName name) { + public final OperationFuture deleteRevisionAsync( + @Nullable RevisionName name) { DeleteRevisionRequest request = DeleteRevisionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRevisionAsync(request); @@ -749,8 +751,8 @@ public static class ListRevisionsPage ListRevisionsRequest, ListRevisionsResponse, Revision, ListRevisionsPage> { private ListRevisionsPage( - PageContext context, - ListRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRevisionsResponse response) { super(context, response); } @@ -760,14 +762,14 @@ private static ListRevisionsPage createEmptyPage() { @Override protected ListRevisionsPage createPage( - PageContext context, - ListRevisionsResponse response) { + @Nullable PageContext context, + @Nullable ListRevisionsResponse response) { return new ListRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -781,7 +783,8 @@ public static class ListRevisionsFixedSizeCollection ListRevisionsPage, ListRevisionsFixedSizeCollection> { - private ListRevisionsFixedSizeCollection(List pages, int collectionSize) { + private ListRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -791,7 +794,7 @@ private static ListRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRevisionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java index 7134cad25c08..da36f997a74a 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/RevisionsSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RevisionsStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java index 07dc9f80a7ab..4c7efa90306a 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesClient.java @@ -43,6 +43,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. /** @@ -272,7 +273,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServicesClient implements BackgroundResource { - private final ServicesSettings settings; + private final @Nullable ServicesSettings settings; private final ServicesStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -318,7 +319,7 @@ protected ServicesClient(ServicesStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ServicesSettings getSettings() { + public final @Nullable ServicesSettings getSettings() { return settings; } @@ -373,7 +374,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createServiceAsync( - LocationName parent, Service service, String serviceId) { + @Nullable LocationName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -539,7 +540,7 @@ public final UnaryCallable createServiceCallabl * id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -653,7 +654,7 @@ public final UnaryCallable getServiceCallable() { * projects/{project}/locations/{location}, where {project} can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(LocationName parent) { + public final ListServicesPagedResponse listServices(@Nullable LocationName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -969,7 +970,7 @@ public final UnaryCallable updateServiceCallabl * id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteServiceAsync(ServiceName name) { + public final OperationFuture deleteServiceAsync(@Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteServiceAsync(request); @@ -1336,8 +1337,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -1347,14 +1348,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1368,7 +1369,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1378,7 +1380,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java index 8830bcbab7a5..299543bdb9e9 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/ServicesSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -256,7 +257,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServicesStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java index 019b9ea0ae95..a2269b0c11c4 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksClient.java @@ -32,6 +32,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. /** @@ -157,7 +158,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TasksClient implements BackgroundResource { - private final TasksSettings settings; + private final @Nullable TasksSettings settings; private final TasksStub stub; /** Constructs an instance of TasksClient with default settings. */ @@ -195,7 +196,7 @@ protected TasksClient(TasksStub stub) { this.stub = stub; } - public final TasksSettings getSettings() { + public final @Nullable TasksSettings getSettings() { return settings; } @@ -225,7 +226,7 @@ public TasksStub getStub() { * projects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -344,7 +345,7 @@ public final UnaryCallable getTaskCallable() { * projects/{project}/locations/{location}/jobs/{job}/executions/{execution} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(ExecutionName parent) { + public final ListTasksPagedResponse listTasks(@Nullable ExecutionName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -541,8 +542,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -552,14 +553,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -569,7 +570,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -579,7 +580,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java index 63cb65ffa837..df3bb5287a31 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/TasksSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TasksStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsClient.java index 9845958b6a39..8fdd30fad3a9 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsClient.java @@ -43,6 +43,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. /** @@ -272,7 +273,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WorkerPoolsClient implements BackgroundResource { - private final WorkerPoolsSettings settings; + private final @Nullable WorkerPoolsSettings settings; private final WorkerPoolsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -319,7 +320,7 @@ protected WorkerPoolsClient(WorkerPoolsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkerPoolsSettings getSettings() { + public final @Nullable WorkerPoolsSettings getSettings() { return settings; } @@ -375,7 +376,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkerPoolAsync( - LocationName parent, WorkerPool workerPool, String workerPoolId) { + @Nullable LocationName parent, WorkerPool workerPool, String workerPoolId) { CreateWorkerPoolRequest request = CreateWorkerPoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -544,7 +545,7 @@ public final UnaryCallable createWorkerPoolC * be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkerPool getWorkerPool(WorkerPoolName name) { + public final WorkerPool getWorkerPool(@Nullable WorkerPoolName name) { GetWorkerPoolRequest request = GetWorkerPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkerPool(request); @@ -658,7 +659,7 @@ public final UnaryCallable getWorkerPoolCallab * `projects/{project}/locations/{location}`, where `{project}` can be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkerPoolsPagedResponse listWorkerPools(LocationName parent) { + public final ListWorkerPoolsPagedResponse listWorkerPools(@Nullable LocationName parent) { ListWorkerPoolsRequest request = ListWorkerPoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -986,7 +987,8 @@ public final UnaryCallable updateWorkerPoolC * be project id or number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteWorkerPoolAsync(WorkerPoolName name) { + public final OperationFuture deleteWorkerPoolAsync( + @Nullable WorkerPoolName name) { DeleteWorkerPoolRequest request = DeleteWorkerPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWorkerPoolAsync(request); @@ -1360,8 +1362,8 @@ public static class ListWorkerPoolsPage ListWorkerPoolsRequest, ListWorkerPoolsResponse, WorkerPool, ListWorkerPoolsPage> { private ListWorkerPoolsPage( - PageContext context, - ListWorkerPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkerPoolsResponse response) { super(context, response); } @@ -1371,14 +1373,14 @@ private static ListWorkerPoolsPage createEmptyPage() { @Override protected ListWorkerPoolsPage createPage( - PageContext context, - ListWorkerPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkerPoolsResponse response) { return new ListWorkerPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1393,7 +1395,7 @@ public static class ListWorkerPoolsFixedSizeCollection ListWorkerPoolsFixedSizeCollection> { private ListWorkerPoolsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1403,7 +1405,7 @@ private static ListWorkerPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkerPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkerPoolsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsSettings.java index 00082aa5d4b5..2b76dcf48b2e 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/WorkerPoolsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -257,7 +258,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkerPoolsStubSettings.newBuilder(clientContext)); } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/BuildsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/BuildsStubSettings.java index f10769fb8dbc..70501ed01996 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/BuildsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/BuildsStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -208,7 +209,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); } @@ -261,7 +262,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); submitBuildSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java index b00bfa17e05d..8d642fde96e7 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStub.java @@ -31,6 +31,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,11 +43,12 @@ @Generated("by gapic-generator-java") public abstract class ExecutionsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java index 460de8728f9e..4e185a646dd2 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ExecutionsStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -344,7 +345,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); } @@ -412,7 +413,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStub.java index bcd9784149cd..b7e7af0e60be 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class InstancesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStubSettings.java index 5abc480f1505..d63d5aae3753 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/InstancesStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -370,7 +371,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); } @@ -448,7 +449,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java index 55291243fbcb..77b098865a9c 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStub.java @@ -39,6 +39,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,11 +51,12 @@ @Generated("by gapic-generator-java") public abstract class JobsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java index 3120c7ffadb3..497bedd97962 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/JobsStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -469,7 +470,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java index 0440019384fc..b1a9d3c2d90d 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStub.java @@ -30,6 +30,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class RevisionsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java index bcb41397bd22..21254e72787e 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/RevisionsStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -387,7 +388,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java index 5308811384a7..b6b484e2e545 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class ServicesStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java index dd2e5c8d0129..8a90bde403dc 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/ServicesStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -492,7 +493,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java index d6e5bb5e6862..5778d3410b80 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/TasksStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -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); } @@ -334,7 +335,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStub.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStub.java index 950ebd31db52..6ab0241c43b3 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStub.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class WorkerPoolsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStubSettings.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStubSettings.java index 550d78481034..cdde00a43645 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStubSettings.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/WorkerPoolsStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -388,7 +389,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); } @@ -469,7 +470,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createWorkerPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildWorkerPoolName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildWorkerPoolName.java index adc9911bd1a3..8c592cbdd235 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildWorkerPoolName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildWorkerPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workerPool) .toString(); } - public static BuildWorkerPoolName parse(String formattedString) { + public static @Nullable BuildWorkerPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BuildWorkerPoolName> values) { List list = new ArrayList<>(values.size()); for (BuildWorkerPoolName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java index e789c80b3b89..8a5e9310b01a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String job, String .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/InstanceName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/InstanceName.java index 50fc201f3ff0..b38ad51d3ffd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/InstanceName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java index c69d56dc586f..71a0ce5f842f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java index 39815fb17299..6ba38e3e081c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java index 306c0e31c828..4dc4cc1b9acd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String service, Str .toString(); } - public static RevisionName parse(String formattedString) { + public static @Nullable RevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RevisionName> values) { List list = new ArrayList<>(values.size()); for (RevisionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java index 967de72d4acd..c77ef5c228a4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String service) { .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java index 6a70fe51a407..f68db30e15d8 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolName.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolName.java index f97d568276dc..2e2bb9768b50 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolName.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workerPool) .toString(); } - public static WorkerPoolName parse(String formattedString) { + public static @Nullable WorkerPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkerPoolName> values) { List list = new ArrayList<>(values.size()); for (WorkerPoolName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java index 62e4ca767803..60c89dcf6c07 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java @@ -39,6 +39,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. /** @@ -733,7 +734,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SaasDeploymentsClient implements BackgroundResource { - private final SaasDeploymentsSettings settings; + private final @Nullable SaasDeploymentsSettings settings; private final SaasDeploymentsStub stub; /** Constructs an instance of SaasDeploymentsClient with default settings. */ @@ -773,7 +774,7 @@ protected SaasDeploymentsClient(SaasDeploymentsStub stub) { this.stub = stub; } - public final SaasDeploymentsSettings getSettings() { + public final @Nullable SaasDeploymentsSettings getSettings() { return settings; } @@ -804,7 +805,7 @@ public SaasDeploymentsStub getStub() { * @param parent Required. The parent of the saas. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSaasPagedResponse listSaas(LocationName parent) { + public final ListSaasPagedResponse listSaas(@Nullable LocationName parent) { ListSaasRequest request = ListSaasRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSaas(request); @@ -966,7 +967,7 @@ public final UnaryCallable listSaasCallable() * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Saas getSaas(SaasName name) { + public final Saas getSaas(@Nullable SaasName name) { GetSaasRequest request = GetSaasRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSaas(request); @@ -1078,7 +1079,7 @@ public final UnaryCallable getSaasCallable() { * @param saasId Required. The ID value for the new saas. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Saas createSaas(LocationName parent, Saas saas, String saasId) { + public final Saas createSaas(@Nullable LocationName parent, Saas saas, String saasId) { CreateSaasRequest request = CreateSaasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1297,7 +1298,7 @@ public final UnaryCallable updateSaasCallable() { * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSaas(SaasName name) { + public final void deleteSaas(@Nullable SaasName name) { DeleteSaasRequest request = DeleteSaasRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSaas(request); @@ -1413,7 +1414,7 @@ public final UnaryCallable deleteSaasCallable() { * @param parent Required. The parent of the tenant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTenantsPagedResponse listTenants(LocationName parent) { + public final ListTenantsPagedResponse listTenants(@Nullable LocationName parent) { ListTenantsRequest request = ListTenantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1579,7 +1580,7 @@ public final UnaryCallable listTenantsC * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant getTenant(TenantName name) { + public final Tenant getTenant(@Nullable TenantName name) { GetTenantRequest request = GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTenant(request); @@ -1691,7 +1692,7 @@ public final UnaryCallable getTenantCallable() { * @param tenantId Required. The ID value for the new tenant. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant createTenant(LocationName parent, Tenant tenant, String tenantId) { + public final Tenant createTenant(@Nullable LocationName parent, Tenant tenant, String tenantId) { CreateTenantRequest request = CreateTenantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1914,7 +1915,7 @@ public final UnaryCallable updateTenantCallable() { * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTenant(TenantName name) { + public final void deleteTenant(@Nullable TenantName name) { DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTenant(request); @@ -2030,7 +2031,7 @@ public final UnaryCallable deleteTenantCallable() { * @param parent Required. The parent of the unit kind. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUnitKindsPagedResponse listUnitKinds(LocationName parent) { + public final ListUnitKindsPagedResponse listUnitKinds(@Nullable LocationName parent) { ListUnitKindsRequest request = ListUnitKindsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2197,7 +2198,7 @@ public final UnaryCallable listUnit * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnitKind getUnitKind(UnitKindName name) { + public final UnitKind getUnitKind(@Nullable UnitKindName name) { GetUnitKindRequest request = GetUnitKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUnitKind(request); @@ -2309,7 +2310,8 @@ public final UnaryCallable getUnitKindCallable() { * @param unitKindId Required. The ID value for the new unit kind. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnitKind createUnitKind(LocationName parent, UnitKind unitKind, String unitKindId) { + public final UnitKind createUnitKind( + @Nullable LocationName parent, UnitKind unitKind, String unitKindId) { CreateUnitKindRequest request = CreateUnitKindRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2534,7 +2536,7 @@ public final UnaryCallable updateUnitKindCallab * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUnitKind(UnitKindName name) { + public final void deleteUnitKind(@Nullable UnitKindName name) { DeleteUnitKindRequest request = DeleteUnitKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUnitKind(request); @@ -2650,7 +2652,7 @@ public final UnaryCallable deleteUnitKindCallable( * @param parent Required. The parent of the unit. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUnitsPagedResponse listUnits(LocationName parent) { + public final ListUnitsPagedResponse listUnits(@Nullable LocationName parent) { ListUnitsRequest request = ListUnitsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUnits(request); @@ -2812,7 +2814,7 @@ public final UnaryCallable listUnitsCallabl * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Unit getUnit(UnitName name) { + public final Unit getUnit(@Nullable UnitName name) { GetUnitRequest request = GetUnitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUnit(request); @@ -2924,7 +2926,7 @@ public final UnaryCallable getUnitCallable() { * @param unitId Required. The ID value for the new unit. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Unit createUnit(LocationName parent, Unit unit, String unitId) { + public final Unit createUnit(@Nullable LocationName parent, Unit unit, String unitId) { CreateUnitRequest request = CreateUnitRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3143,7 +3145,7 @@ public final UnaryCallable updateUnitCallable() { * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUnit(UnitName name) { + public final void deleteUnit(@Nullable UnitName name) { DeleteUnitRequest request = DeleteUnitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUnit(request); @@ -3259,7 +3261,7 @@ public final UnaryCallable deleteUnitCallable() { * @param parent Required. The parent of the unit operation. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUnitOperationsPagedResponse listUnitOperations(LocationName parent) { + public final ListUnitOperationsPagedResponse listUnitOperations(@Nullable LocationName parent) { ListUnitOperationsRequest request = ListUnitOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3429,7 +3431,7 @@ public final ListUnitOperationsPagedResponse listUnitOperations( * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnitOperation getUnitOperation(UnitOperationName name) { + public final UnitOperation getUnitOperation(@Nullable UnitOperationName name) { GetUnitOperationRequest request = GetUnitOperationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUnitOperation(request); @@ -3546,7 +3548,7 @@ public final UnaryCallable getUnitOperat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UnitOperation createUnitOperation( - LocationName parent, UnitOperation unitOperation, String unitOperationId) { + @Nullable LocationName parent, UnitOperation unitOperation, String unitOperationId) { CreateUnitOperationRequest request = CreateUnitOperationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3780,7 +3782,7 @@ public final UnitOperation updateUnitOperation(UpdateUnitOperationRequest reques * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUnitOperation(UnitOperationName name) { + public final void deleteUnitOperation(@Nullable UnitOperationName name) { DeleteUnitOperationRequest request = DeleteUnitOperationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3902,7 +3904,7 @@ public final UnaryCallable deleteUnitOperatio * @param parent Required. The parent of the release. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReleasesPagedResponse listReleases(LocationName parent) { + public final ListReleasesPagedResponse listReleases(@Nullable LocationName parent) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4068,7 +4070,7 @@ public final UnaryCallable listReleas * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Release getRelease(ReleaseName name) { + public final Release getRelease(@Nullable ReleaseName name) { GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRelease(request); @@ -4180,7 +4182,8 @@ public final UnaryCallable getReleaseCallable() { * @param releaseId Required. The ID value for the new release. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Release createRelease(LocationName parent, Release release, String releaseId) { + public final Release createRelease( + @Nullable LocationName parent, Release release, String releaseId) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4403,7 +4406,7 @@ public final UnaryCallable updateReleaseCallable( * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRelease(ReleaseName name) { + public final void deleteRelease(@Nullable ReleaseName name) { DeleteReleaseRequest request = DeleteReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRelease(request); @@ -4740,7 +4743,8 @@ public static class ListSaasPage extends AbstractPage { private ListSaasPage( - PageContext context, ListSaasResponse response) { + @Nullable PageContext context, + @Nullable ListSaasResponse response) { super(context, response); } @@ -4750,13 +4754,14 @@ private static ListSaasPage createEmptyPage() { @Override protected ListSaasPage createPage( - PageContext context, ListSaasResponse response) { + @Nullable PageContext context, + @Nullable ListSaasResponse response) { return new ListSaasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4766,7 +4771,7 @@ public static class ListSaasFixedSizeCollection extends AbstractFixedSizeCollection< ListSaasRequest, ListSaasResponse, Saas, ListSaasPage, ListSaasFixedSizeCollection> { - private ListSaasFixedSizeCollection(List pages, int collectionSize) { + private ListSaasFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4776,7 +4781,7 @@ private static ListSaasFixedSizeCollection createEmptyCollection() { @Override protected ListSaasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSaasFixedSizeCollection(pages, collectionSize); } } @@ -4807,8 +4812,8 @@ public static class ListTenantsPage extends AbstractPage { private ListTenantsPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { super(context, response); } @@ -4818,14 +4823,14 @@ private static ListTenantsPage createEmptyPage() { @Override protected ListTenantsPage createPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { return new ListTenantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4839,7 +4844,8 @@ public static class ListTenantsFixedSizeCollection ListTenantsPage, ListTenantsFixedSizeCollection> { - private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + private ListTenantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4849,7 +4855,7 @@ private static ListTenantsFixedSizeCollection createEmptyCollection() { @Override protected ListTenantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTenantsFixedSizeCollection(pages, collectionSize); } } @@ -4883,8 +4889,8 @@ public static class ListUnitKindsPage ListUnitKindsRequest, ListUnitKindsResponse, UnitKind, ListUnitKindsPage> { private ListUnitKindsPage( - PageContext context, - ListUnitKindsResponse response) { + @Nullable PageContext context, + @Nullable ListUnitKindsResponse response) { super(context, response); } @@ -4894,14 +4900,14 @@ private static ListUnitKindsPage createEmptyPage() { @Override protected ListUnitKindsPage createPage( - PageContext context, - ListUnitKindsResponse response) { + @Nullable PageContext context, + @Nullable ListUnitKindsResponse response) { return new ListUnitKindsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4915,7 +4921,8 @@ public static class ListUnitKindsFixedSizeCollection ListUnitKindsPage, ListUnitKindsFixedSizeCollection> { - private ListUnitKindsFixedSizeCollection(List pages, int collectionSize) { + private ListUnitKindsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4925,7 +4932,7 @@ private static ListUnitKindsFixedSizeCollection createEmptyCollection() { @Override protected ListUnitKindsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUnitKindsFixedSizeCollection(pages, collectionSize); } } @@ -4952,8 +4959,8 @@ public static class ListUnitsPage extends AbstractPage { private ListUnitsPage( - PageContext context, - ListUnitsResponse response) { + @Nullable PageContext context, + @Nullable ListUnitsResponse response) { super(context, response); } @@ -4963,14 +4970,14 @@ private static ListUnitsPage createEmptyPage() { @Override protected ListUnitsPage createPage( - PageContext context, - ListUnitsResponse response) { + @Nullable PageContext context, + @Nullable ListUnitsResponse response) { return new ListUnitsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4980,7 +4987,7 @@ public static class ListUnitsFixedSizeCollection extends AbstractFixedSizeCollection< ListUnitsRequest, ListUnitsResponse, Unit, ListUnitsPage, ListUnitsFixedSizeCollection> { - private ListUnitsFixedSizeCollection(List pages, int collectionSize) { + private ListUnitsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4990,7 +4997,7 @@ private static ListUnitsFixedSizeCollection createEmptyCollection() { @Override protected ListUnitsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUnitsFixedSizeCollection(pages, collectionSize); } } @@ -5027,8 +5034,9 @@ public static class ListUnitOperationsPage ListUnitOperationsPage> { private ListUnitOperationsPage( - PageContext context, - ListUnitOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListUnitOperationsResponse response) { super(context, response); } @@ -5038,14 +5046,16 @@ private static ListUnitOperationsPage createEmptyPage() { @Override protected ListUnitOperationsPage createPage( - PageContext context, - ListUnitOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListUnitOperationsResponse response) { return new ListUnitOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5060,7 +5070,7 @@ public static class ListUnitOperationsFixedSizeCollection ListUnitOperationsFixedSizeCollection> { private ListUnitOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5070,7 +5080,7 @@ private static ListUnitOperationsFixedSizeCollection createEmptyCollection() { @Override protected ListUnitOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUnitOperationsFixedSizeCollection(pages, collectionSize); } } @@ -5103,8 +5113,8 @@ public static class ListReleasesPage extends AbstractPage { private ListReleasesPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { super(context, response); } @@ -5114,14 +5124,14 @@ private static ListReleasesPage createEmptyPage() { @Override protected ListReleasesPage createPage( - PageContext context, - ListReleasesResponse response) { + @Nullable PageContext context, + @Nullable ListReleasesResponse response) { return new ListReleasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5135,7 +5145,8 @@ public static class ListReleasesFixedSizeCollection ListReleasesPage, ListReleasesFixedSizeCollection> { - private ListReleasesFixedSizeCollection(List pages, int collectionSize) { + private ListReleasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5145,7 +5156,7 @@ private static ListReleasesFixedSizeCollection createEmptyCollection() { @Override protected ListReleasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReleasesFixedSizeCollection(pages, collectionSize); } } @@ -5179,8 +5190,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5190,14 +5201,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5211,7 +5222,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5221,7 +5233,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java index 8c16e635f221..6589e8966f06 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -329,7 +330,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); } @@ -349,7 +350,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SaasDeploymentsStubSettings.newBuilder(clientContext)); } diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java index efa23d2ed18c..424a199184a7 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java @@ -39,6 +39,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. /** @@ -348,7 +349,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SaasRolloutsClient implements BackgroundResource { - private final SaasRolloutsSettings settings; + private final @Nullable SaasRolloutsSettings settings; private final SaasRolloutsStub stub; /** Constructs an instance of SaasRolloutsClient with default settings. */ @@ -387,7 +388,7 @@ protected SaasRolloutsClient(SaasRolloutsStub stub) { this.stub = stub; } - public final SaasRolloutsSettings getSettings() { + public final @Nullable SaasRolloutsSettings getSettings() { return settings; } @@ -418,7 +419,7 @@ public SaasRolloutsStub getStub() { * @param parent Required. The parent of the rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolloutsPagedResponse listRollouts(LocationName parent) { + public final ListRolloutsPagedResponse listRollouts(@Nullable LocationName parent) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -584,7 +585,7 @@ public final UnaryCallable listRollou * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rollout getRollout(RolloutName name) { + public final Rollout getRollout(@Nullable RolloutName name) { GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRollout(request); @@ -696,7 +697,8 @@ public final UnaryCallable getRolloutCallable() { * @param rolloutId Required. The ID value for the new rollout. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Rollout createRollout(LocationName parent, Rollout rollout, String rolloutId) { + public final Rollout createRollout( + @Nullable LocationName parent, Rollout rollout, String rolloutId) { CreateRolloutRequest request = CreateRolloutRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -919,7 +921,7 @@ public final UnaryCallable updateRolloutCallable( * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRollout(RolloutName name) { + public final void deleteRollout(@Nullable RolloutName name) { DeleteRolloutRequest request = DeleteRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRollout(request); @@ -1035,7 +1037,7 @@ public final UnaryCallable deleteRolloutCallable() * @param parent Required. The parent of the rollout kind. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRolloutKindsPagedResponse listRolloutKinds(LocationName parent) { + public final ListRolloutKindsPagedResponse listRolloutKinds(@Nullable LocationName parent) { ListRolloutKindsRequest request = ListRolloutKindsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1204,7 +1206,7 @@ public final ListRolloutKindsPagedResponse listRolloutKinds(ListRolloutKindsRequ * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RolloutKind getRolloutKind(RolloutKindName name) { + public final RolloutKind getRolloutKind(@Nullable RolloutKindName name) { GetRolloutKindRequest request = GetRolloutKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRolloutKind(request); @@ -1321,7 +1323,7 @@ public final UnaryCallable getRolloutKindCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RolloutKind createRolloutKind( - LocationName parent, RolloutKind rolloutKind, String rolloutKindId) { + @Nullable LocationName parent, RolloutKind rolloutKind, String rolloutKindId) { CreateRolloutKindRequest request = CreateRolloutKindRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1552,7 +1554,7 @@ public final UnaryCallable updateRolloutK * @param name Required. The resource name of the resource within a service. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRolloutKind(RolloutKindName name) { + public final void deleteRolloutKind(@Nullable RolloutKindName name) { DeleteRolloutKindRequest request = DeleteRolloutKindRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1898,8 +1900,8 @@ public static class ListRolloutsPage extends AbstractPage { private ListRolloutsPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { super(context, response); } @@ -1909,14 +1911,14 @@ private static ListRolloutsPage createEmptyPage() { @Override protected ListRolloutsPage createPage( - PageContext context, - ListRolloutsResponse response) { + @Nullable PageContext context, + @Nullable ListRolloutsResponse response) { return new ListRolloutsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1930,7 +1932,8 @@ public static class ListRolloutsFixedSizeCollection ListRolloutsPage, ListRolloutsFixedSizeCollection> { - private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { + private ListRolloutsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1940,7 +1943,7 @@ private static ListRolloutsFixedSizeCollection createEmptyCollection() { @Override protected ListRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolloutsFixedSizeCollection(pages, collectionSize); } } @@ -1974,8 +1977,9 @@ public static class ListRolloutKindsPage ListRolloutKindsRequest, ListRolloutKindsResponse, RolloutKind, ListRolloutKindsPage> { private ListRolloutKindsPage( - PageContext context, - ListRolloutKindsResponse response) { + @Nullable PageContext + context, + @Nullable ListRolloutKindsResponse response) { super(context, response); } @@ -1985,14 +1989,16 @@ private static ListRolloutKindsPage createEmptyPage() { @Override protected ListRolloutKindsPage createPage( - PageContext context, - ListRolloutKindsResponse response) { + @Nullable PageContext + context, + @Nullable ListRolloutKindsResponse response) { return new ListRolloutKindsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2007,7 +2013,7 @@ public static class ListRolloutKindsFixedSizeCollection ListRolloutKindsFixedSizeCollection> { private ListRolloutKindsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2017,7 +2023,7 @@ private static ListRolloutKindsFixedSizeCollection createEmptyCollection() { @Override protected ListRolloutKindsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRolloutKindsFixedSizeCollection(pages, collectionSize); } } @@ -2051,8 +2057,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2062,14 +2068,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2083,7 +2089,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2093,7 +2100,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java index ce77e8b20631..780c6baaf988 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SaasRolloutsStubSettings.newBuilder(clientContext)); } diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java index 698ea5f02eb8..d532ad5ce7f4 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java @@ -107,6 +107,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -847,7 +848,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); } @@ -1027,7 +1028,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSaasSettings = PagedCallSettings.newBuilder(LIST_SAAS_PAGE_STR_FACT); diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java index bd4df0e74c5b..21cca94e059d 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -477,7 +478,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); } @@ -599,7 +600,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRolloutsSettings = PagedCallSettings.newBuilder(LIST_ROLLOUTS_PAGE_STR_FACT); diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java index 6684ca737fdd..227c80833215 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java index fa4462e0a35b..48d06d890770 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String release) { .toString(); } - public static ReleaseName parse(String formattedString) { + public static @Nullable ReleaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReleaseName> values) { List list = new ArrayList<>(values.size()); for (ReleaseName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java index 42b2b18f4390..36db60890f36 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String rolloutKindI .toString(); } - public static RolloutKindName parse(String formattedString) { + public static @Nullable RolloutKindName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RolloutKindName> values) { List list = new ArrayList<>(values.size()); for (RolloutKindName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java index 07891f1a871f..80e0e2d0e58d 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String rolloutId) { .toString(); } - public static RolloutName parse(String formattedString) { + public static @Nullable RolloutName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RolloutName> values) { List list = new ArrayList<>(values.size()); for (RolloutName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasName.java index 19fa23dd84c6..a3551a76c4c1 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String saas) { return newBuilder().setProject(project).setLocation(location).setSaas(saas).build().toString(); } - public static SaasName parse(String formattedString) { + public static @Nullable SaasName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SaasName> values) { List list = new ArrayList<>(values.size()); for (SaasName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java index 1f675b4b804e..81ce7d948615 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String tenant) { .toString(); } - public static TenantName parse(String formattedString) { + public static @Nullable TenantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TenantName> values) { List list = new ArrayList<>(values.size()); for (TenantName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java index b8f669a5d063..8f634475a6f6 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String unitKind) { .toString(); } - public static UnitKindName parse(String formattedString) { + public static @Nullable UnitKindName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UnitKindName> values) { List list = new ArrayList<>(values.size()); for (UnitKindName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java index 6e320a01b7d6..cd394e2fca1f 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String unit) { return newBuilder().setProject(project).setLocation(location).setUnit(unit).build().toString(); } - public static UnitName parse(String formattedString) { + public static @Nullable UnitName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UnitName> values) { List list = new ArrayList<>(values.size()); for (UnitName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java index 226ed3076854..5a1fe86e55a5 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String unitOperatio .toString(); } - public static UnitOperationName parse(String formattedString) { + public static @Nullable UnitOperationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UnitOperationName> values) { List list = new ArrayList<>(values.size()); for (UnitOperationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java index a0f616dd6102..09705c9b87ac 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java @@ -38,6 +38,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. /** @@ -313,7 +314,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudSchedulerClient implements BackgroundResource { - private final CloudSchedulerSettings settings; + private final @Nullable CloudSchedulerSettings settings; private final CloudSchedulerStub stub; /** Constructs an instance of CloudSchedulerClient with default settings. */ @@ -353,7 +354,7 @@ protected CloudSchedulerClient(CloudSchedulerStub stub) { this.stub = stub; } - public final CloudSchedulerSettings getSettings() { + public final @Nullable CloudSchedulerSettings getSettings() { return settings; } @@ -385,7 +386,7 @@ public CloudSchedulerStub getStub() { * `projects/PROJECT_ID/locations/LOCATION_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(LocationName parent) { + public final ListJobsPagedResponse listJobs(@Nullable LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -543,7 +544,7 @@ public final UnaryCallable listJobsCallable() * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -659,7 +660,7 @@ public final UnaryCallable getJobCallable() { * ([name][google.cloud.scheduler.v1.Job.name]) in the response. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(LocationName parent, Job job) { + public final Job createJob(@Nullable LocationName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -893,7 +894,7 @@ public final UnaryCallable updateJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -1009,7 +1010,7 @@ public final UnaryCallable deleteJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job pauseJob(JobName name) { + public final Job pauseJob(@Nullable JobName name) { PauseJobRequest request = PauseJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseJob(request); @@ -1143,7 +1144,7 @@ public final UnaryCallable pauseJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job resumeJob(JobName name) { + public final Job resumeJob(@Nullable JobName name) { ResumeJobRequest request = ResumeJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeJob(request); @@ -1274,7 +1275,7 @@ public final UnaryCallable resumeJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job runJob(JobName name) { + public final Job runJob(@Nullable JobName name) { RunJobRequest request = RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runJob(request); @@ -1578,7 +1579,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1588,13 +1590,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1604,7 +1607,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1614,7 +1617,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -1648,8 +1651,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1659,14 +1662,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1680,7 +1683,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1690,7 +1694,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java index ce0d61c1e3cf..bd681ed6eda4 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -205,7 +206,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); } @@ -225,7 +226,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudSchedulerStubSettings.newBuilder(clientContext)); } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java index a79dc107fd90..10a99e6725d7 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/CloudSchedulerStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -396,7 +397,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); } @@ -496,7 +497,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java index 813fc721ab48..bf620e116da7 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java @@ -39,6 +39,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. /** @@ -315,7 +316,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudSchedulerClient implements BackgroundResource { - private final CloudSchedulerSettings settings; + private final @Nullable CloudSchedulerSettings settings; private final CloudSchedulerStub stub; /** Constructs an instance of CloudSchedulerClient with default settings. */ @@ -355,7 +356,7 @@ protected CloudSchedulerClient(CloudSchedulerStub stub) { this.stub = stub; } - public final CloudSchedulerSettings getSettings() { + public final @Nullable CloudSchedulerSettings getSettings() { return settings; } @@ -387,7 +388,7 @@ public CloudSchedulerStub getStub() { * `projects/PROJECT_ID/locations/LOCATION_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(LocationName parent) { + public final ListJobsPagedResponse listJobs(@Nullable LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -551,7 +552,7 @@ public final UnaryCallable listJobsCallable() * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -667,7 +668,7 @@ public final UnaryCallable getJobCallable() { * returned ([name][google.cloud.scheduler.v1beta1.Job.name]) in the response. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(LocationName parent, Job job) { + public final Job createJob(@Nullable LocationName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -901,7 +902,7 @@ public final UnaryCallable updateJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -1019,7 +1020,7 @@ public final UnaryCallable deleteJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job pauseJob(JobName name) { + public final Job pauseJob(@Nullable JobName name) { PauseJobRequest request = PauseJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseJob(request); @@ -1153,7 +1154,7 @@ public final UnaryCallable pauseJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job resumeJob(JobName name) { + public final Job resumeJob(@Nullable JobName name) { ResumeJobRequest request = ResumeJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeJob(request); @@ -1284,7 +1285,7 @@ public final UnaryCallable resumeJobCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job runJob(JobName name) { + public final Job runJob(@Nullable JobName name) { RunJobRequest request = RunJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runJob(request); @@ -1590,7 +1591,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1600,13 +1602,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1616,7 +1619,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1626,7 +1629,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -1660,8 +1663,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1671,14 +1674,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1692,7 +1695,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1702,7 +1706,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerSettings.java index 9d061bd60e2a..d4aa50b65eb7 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -206,7 +207,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); } @@ -226,7 +227,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudSchedulerStubSettings.newBuilder(clientContext)); } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java index f7a691c22aec..a9db9d7a8914 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/CloudSchedulerStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -397,7 +398,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); } @@ -497,7 +498,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java index 832eec9b25d0..d0aa9ca66ee9 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java index 198f577f72bb..f7fba35568ed 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobName.java b/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobName.java index 911ad025f4e7..a0211c9dfddb 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobName.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java b/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java index 4d87de12e5fc..445ea1e7e98c 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java index 72a118a191ca..8da150f423d8 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceClient.java @@ -39,6 +39,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. /** @@ -422,7 +423,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecretManagerServiceClient implements BackgroundResource { - private final SecretManagerServiceSettings settings; + private final @Nullable SecretManagerServiceSettings settings; private final SecretManagerServiceStub stub; /** Constructs an instance of SecretManagerServiceClient with default settings. */ @@ -462,7 +463,7 @@ protected SecretManagerServiceClient(SecretManagerServiceStub stub) { this.stub = stub; } - public final SecretManagerServiceSettings getSettings() { + public final @Nullable SecretManagerServiceSettings getSettings() { return settings; } @@ -496,7 +497,7 @@ public SecretManagerServiceStub getStub() { * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretsPagedResponse listSecrets(LocationName parent) { + public final ListSecretsPagedResponse listSecrets(@Nullable LocationName parent) { ListSecretsRequest request = ListSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -530,7 +531,7 @@ public final ListSecretsPagedResponse listSecrets(LocationName parent) { * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretsPagedResponse listSecrets(ProjectName parent) { + public final ListSecretsPagedResponse listSecrets(@Nullable ProjectName parent) { ListSecretsRequest request = ListSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -712,7 +713,7 @@ public final UnaryCallable listSecretsC * values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret createSecret(LocationName parent, String secretId, Secret secret) { + public final Secret createSecret(@Nullable LocationName parent, String secretId, Secret secret) { CreateSecretRequest request = CreateSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -755,7 +756,7 @@ public final Secret createSecret(LocationName parent, String secretId, Secret se * values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret createSecret(ProjectName parent, String secretId, Secret secret) { + public final Secret createSecret(@Nullable ProjectName parent, String secretId, Secret secret) { CreateSecretRequest request = CreateSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -900,7 +901,7 @@ public final UnaryCallable createSecretCallable() { * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion addSecretVersion(SecretName parent, SecretPayload payload) { + public final SecretVersion addSecretVersion(@Nullable SecretName parent, SecretPayload payload) { AddSecretVersionRequest request = AddSecretVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1029,7 +1030,7 @@ public final UnaryCallable addSecretVers * `projects/*/locations/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret getSecret(SecretName name) { + public final Secret getSecret(@Nullable SecretName name) { GetSecretRequest request = GetSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecret(request); @@ -1235,7 +1236,7 @@ public final UnaryCallable updateSecretCallable() { * to delete in the format `projects/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSecret(SecretName name) { + public final void deleteSecret(@Nullable SecretName name) { DeleteSecretRequest request = DeleteSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSecret(request); @@ -1358,7 +1359,7 @@ public final UnaryCallable deleteSecretCallable() { * `projects/*/locations/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretVersionsPagedResponse listSecretVersions(SecretName parent) { + public final ListSecretVersionsPagedResponse listSecretVersions(@Nullable SecretName parent) { ListSecretVersionsRequest request = ListSecretVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1550,7 +1551,7 @@ public final ListSecretVersionsPagedResponse listSecretVersions( * recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion getSecretVersion(SecretVersionName name) { + public final SecretVersion getSecretVersion(@Nullable SecretVersionName name) { GetSecretVersionRequest request = GetSecretVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecretVersion(request); @@ -1699,7 +1700,7 @@ public final UnaryCallable getSecretVers * recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessSecretVersionResponse accessSecretVersion(SecretVersionName name) { + public final AccessSecretVersionResponse accessSecretVersion(@Nullable SecretVersionName name) { AccessSecretVersionRequest request = AccessSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1853,7 +1854,7 @@ public final AccessSecretVersionResponse accessSecretVersion(AccessSecretVersion * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion disableSecretVersion(SecretVersionName name) { + public final SecretVersion disableSecretVersion(@Nullable SecretVersionName name) { DisableSecretVersionRequest request = DisableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2005,7 +2006,7 @@ public final SecretVersion disableSecretVersion(DisableSecretVersionRequest requ * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion enableSecretVersion(SecretVersionName name) { + public final SecretVersion enableSecretVersion(@Nullable SecretVersionName name) { EnableSecretVersionRequest request = EnableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2158,7 +2159,7 @@ public final SecretVersion enableSecretVersion(EnableSecretVersionRequest reques * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion destroySecretVersion(SecretVersionName name) { + public final SecretVersion destroySecretVersion(@Nullable SecretVersionName name) { DestroySecretVersionRequest request = DestroySecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2539,8 +2540,8 @@ public static class ListSecretsPage extends AbstractPage { private ListSecretsPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { super(context, response); } @@ -2550,14 +2551,14 @@ private static ListSecretsPage createEmptyPage() { @Override protected ListSecretsPage createPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { return new ListSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2571,7 +2572,8 @@ public static class ListSecretsFixedSizeCollection ListSecretsPage, ListSecretsFixedSizeCollection> { - private ListSecretsFixedSizeCollection(List pages, int collectionSize) { + private ListSecretsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2581,7 +2583,7 @@ private static ListSecretsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretsFixedSizeCollection(pages, collectionSize); } } @@ -2618,8 +2620,9 @@ public static class ListSecretVersionsPage ListSecretVersionsPage> { private ListSecretVersionsPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { super(context, response); } @@ -2629,14 +2632,16 @@ private static ListSecretVersionsPage createEmptyPage() { @Override protected ListSecretVersionsPage createPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { return new ListSecretVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2651,7 +2656,7 @@ public static class ListSecretVersionsFixedSizeCollection ListSecretVersionsFixedSizeCollection> { private ListSecretVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2661,7 +2666,7 @@ private static ListSecretVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretVersionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java index 3f95d9eb5a94..28886417fa5e 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretManagerServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -237,7 +238,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); } @@ -258,7 +259,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecretManagerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java index 097a9ca6e298..1bcac10f7fea 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretManagerServiceStubSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -455,7 +456,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); } @@ -570,7 +571,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSecretsSettings = PagedCallSettings.newBuilder(LIST_SECRETS_PAGE_STR_FACT); diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceClient.java index 3753deeb5318..5b7f3ea23627 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceClient.java @@ -44,6 +44,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. /** @@ -455,7 +456,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecretManagerServiceClient implements BackgroundResource { - private final SecretManagerServiceSettings settings; + private final @Nullable SecretManagerServiceSettings settings; private final SecretManagerServiceStub stub; /** Constructs an instance of SecretManagerServiceClient with default settings. */ @@ -495,7 +496,7 @@ protected SecretManagerServiceClient(SecretManagerServiceStub stub) { this.stub = stub; } - public final SecretManagerServiceSettings getSettings() { + public final @Nullable SecretManagerServiceSettings getSettings() { return settings; } @@ -528,7 +529,7 @@ public SecretManagerServiceStub getStub() { * [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretsPagedResponse listSecrets(ProjectName parent) { + public final ListSecretsPagedResponse listSecrets(@Nullable ProjectName parent) { ListSecretsRequest request = ListSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -705,7 +706,7 @@ public final UnaryCallable listSecretsC * values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret createSecret(ProjectName parent, String secretId, Secret secret) { + public final Secret createSecret(@Nullable ProjectName parent, String secretId, Secret secret) { CreateSecretRequest request = CreateSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -849,7 +850,7 @@ public final UnaryCallable createSecretCallable() { * [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion addSecretVersion(SecretName parent, SecretPayload payload) { + public final SecretVersion addSecretVersion(@Nullable SecretName parent, SecretPayload payload) { AddSecretVersionRequest request = AddSecretVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -977,7 +978,7 @@ public final UnaryCallable addSecretVers * in the format `projects/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret getSecret(SecretName name) { + public final Secret getSecret(@Nullable SecretName name) { GetSecretRequest request = GetSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecret(request); @@ -1182,7 +1183,7 @@ public final UnaryCallable updateSecretCallable() { * delete in the format `projects/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSecret(SecretName name) { + public final void deleteSecret(@Nullable SecretName name) { DeleteSecretRequest request = DeleteSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSecret(request); @@ -1302,7 +1303,7 @@ public final UnaryCallable deleteSecretCallable() { * in the format `projects/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretVersionsPagedResponse listSecretVersions(SecretName parent) { + public final ListSecretVersionsPagedResponse listSecretVersions(@Nullable SecretName parent) { ListSecretVersionsRequest request = ListSecretVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1486,7 +1487,7 @@ public final ListSecretVersionsPagedResponse listSecretVersions( * [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion getSecretVersion(SecretVersionName name) { + public final SecretVersion getSecretVersion(@Nullable SecretVersionName name) { GetSecretVersionRequest request = GetSecretVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecretVersion(request); @@ -1618,7 +1619,7 @@ public final UnaryCallable getSecretVers * `projects/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessSecretVersionResponse accessSecretVersion(SecretVersionName name) { + public final AccessSecretVersionResponse accessSecretVersion(@Nullable SecretVersionName name) { AccessSecretVersionRequest request = AccessSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1756,7 +1757,7 @@ public final AccessSecretVersionResponse accessSecretVersion(AccessSecretVersion * `projects/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion disableSecretVersion(SecretVersionName name) { + public final SecretVersion disableSecretVersion(@Nullable SecretVersionName name) { DisableSecretVersionRequest request = DisableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1893,7 +1894,7 @@ public final SecretVersion disableSecretVersion(DisableSecretVersionRequest requ * `projects/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion enableSecretVersion(SecretVersionName name) { + public final SecretVersion enableSecretVersion(@Nullable SecretVersionName name) { EnableSecretVersionRequest request = EnableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2031,7 +2032,7 @@ public final SecretVersion enableSecretVersion(EnableSecretVersionRequest reques * `projects/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion destroySecretVersion(SecretVersionName name) { + public final SecretVersion destroySecretVersion(@Nullable SecretVersionName name) { DestroySecretVersionRequest request = DestroySecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2562,8 +2563,8 @@ public static class ListSecretsPage extends AbstractPage { private ListSecretsPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { super(context, response); } @@ -2573,14 +2574,14 @@ private static ListSecretsPage createEmptyPage() { @Override protected ListSecretsPage createPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { return new ListSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2594,7 +2595,8 @@ public static class ListSecretsFixedSizeCollection ListSecretsPage, ListSecretsFixedSizeCollection> { - private ListSecretsFixedSizeCollection(List pages, int collectionSize) { + private ListSecretsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2604,7 +2606,7 @@ private static ListSecretsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretsFixedSizeCollection(pages, collectionSize); } } @@ -2641,8 +2643,9 @@ public static class ListSecretVersionsPage ListSecretVersionsPage> { private ListSecretVersionsPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { super(context, response); } @@ -2652,14 +2655,16 @@ private static ListSecretVersionsPage createEmptyPage() { @Override protected ListSecretVersionsPage createPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { return new ListSecretVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2674,7 +2679,7 @@ public static class ListSecretVersionsFixedSizeCollection ListSecretVersionsFixedSizeCollection> { private ListSecretVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2684,7 +2689,7 @@ private static ListSecretVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2718,8 +2723,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2729,14 +2734,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2750,7 +2755,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2760,7 +2766,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceSettings.java index c9d48cf8e6b6..946e79fa40ba 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretManagerServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -254,7 +255,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); } @@ -275,7 +276,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecretManagerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/SecretManagerServiceStubSettings.java index 9620ca4892b1..bd1ad118a4ec 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/SecretManagerServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -527,7 +528,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); } @@ -651,7 +652,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSecretsSettings = PagedCallSettings.newBuilder(LIST_SECRETS_PAGE_STR_FACT); diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceClient.java index 75e756705db1..f8ef9a0c69cd 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceClient.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceClient.java @@ -44,6 +44,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. /** @@ -457,7 +458,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecretManagerServiceClient implements BackgroundResource { - private final SecretManagerServiceSettings settings; + private final @Nullable SecretManagerServiceSettings settings; private final SecretManagerServiceStub stub; /** Constructs an instance of SecretManagerServiceClient with default settings. */ @@ -497,7 +498,7 @@ protected SecretManagerServiceClient(SecretManagerServiceStub stub) { this.stub = stub; } - public final SecretManagerServiceSettings getSettings() { + public final @Nullable SecretManagerServiceSettings getSettings() { return settings; } @@ -531,7 +532,7 @@ public SecretManagerServiceStub getStub() { * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretsPagedResponse listSecrets(LocationName parent) { + public final ListSecretsPagedResponse listSecrets(@Nullable LocationName parent) { ListSecretsRequest request = ListSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,7 +566,7 @@ public final ListSecretsPagedResponse listSecrets(LocationName parent) { * `projects/*/locations/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretsPagedResponse listSecrets(ProjectName parent) { + public final ListSecretsPagedResponse listSecrets(@Nullable ProjectName parent) { ListSecretsRequest request = ListSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -747,7 +748,7 @@ public final UnaryCallable listSecretsC * field values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret createSecret(LocationName parent, String secretId, Secret secret) { + public final Secret createSecret(@Nullable LocationName parent, String secretId, Secret secret) { CreateSecretRequest request = CreateSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -790,7 +791,7 @@ public final Secret createSecret(LocationName parent, String secretId, Secret se * field values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret createSecret(ProjectName parent, String secretId, Secret secret) { + public final Secret createSecret(@Nullable ProjectName parent, String secretId, Secret secret) { CreateSecretRequest request = CreateSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -936,7 +937,7 @@ public final UnaryCallable createSecretCallable() { * [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion addSecretVersion(SecretName parent, SecretPayload payload) { + public final SecretVersion addSecretVersion(@Nullable SecretName parent, SecretPayload payload) { AddSecretVersionRequest request = AddSecretVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1066,7 +1067,7 @@ public final UnaryCallable addSecretVers * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Secret getSecret(SecretName name) { + public final Secret getSecret(@Nullable SecretName name) { GetSecretRequest request = GetSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecret(request); @@ -1273,7 +1274,7 @@ public final UnaryCallable updateSecretCallable() { * `projects/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSecret(SecretName name) { + public final void deleteSecret(@Nullable SecretName name) { DeleteSecretRequest request = DeleteSecretRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSecret(request); @@ -1397,7 +1398,7 @@ public final UnaryCallable deleteSecretCallable() { * `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSecretVersionsPagedResponse listSecretVersions(SecretName parent) { + public final ListSecretVersionsPagedResponse listSecretVersions(@Nullable SecretName parent) { ListSecretVersionsRequest request = ListSecretVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1589,7 +1590,7 @@ public final ListSecretVersionsPagedResponse listSecretVersions( * recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion getSecretVersion(SecretVersionName name) { + public final SecretVersion getSecretVersion(@Nullable SecretVersionName name) { GetSecretVersionRequest request = GetSecretVersionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSecretVersion(request); @@ -1738,7 +1739,7 @@ public final UnaryCallable getSecretVers * recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessSecretVersionResponse accessSecretVersion(SecretVersionName name) { + public final AccessSecretVersionResponse accessSecretVersion(@Nullable SecretVersionName name) { AccessSecretVersionRequest request = AccessSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1892,7 +1893,7 @@ public final AccessSecretVersionResponse accessSecretVersion(AccessSecretVersion * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion disableSecretVersion(SecretVersionName name) { + public final SecretVersion disableSecretVersion(@Nullable SecretVersionName name) { DisableSecretVersionRequest request = DisableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2044,7 +2045,7 @@ public final SecretVersion disableSecretVersion(DisableSecretVersionRequest requ * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion enableSecretVersion(SecretVersionName name) { + public final SecretVersion enableSecretVersion(@Nullable SecretVersionName name) { EnableSecretVersionRequest request = EnableSecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2197,7 +2198,7 @@ public final SecretVersion enableSecretVersion(EnableSecretVersionRequest reques * `projects/*/locations/*/secrets/*/versions/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecretVersion destroySecretVersion(SecretVersionName name) { + public final SecretVersion destroySecretVersion(@Nullable SecretVersionName name) { DestroySecretVersionRequest request = DestroySecretVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2742,8 +2743,8 @@ public static class ListSecretsPage extends AbstractPage { private ListSecretsPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { super(context, response); } @@ -2753,14 +2754,14 @@ private static ListSecretsPage createEmptyPage() { @Override protected ListSecretsPage createPage( - PageContext context, - ListSecretsResponse response) { + @Nullable PageContext context, + @Nullable ListSecretsResponse response) { return new ListSecretsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2774,7 +2775,8 @@ public static class ListSecretsFixedSizeCollection ListSecretsPage, ListSecretsFixedSizeCollection> { - private ListSecretsFixedSizeCollection(List pages, int collectionSize) { + private ListSecretsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2784,7 +2786,7 @@ private static ListSecretsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretsFixedSizeCollection(pages, collectionSize); } } @@ -2821,8 +2823,9 @@ public static class ListSecretVersionsPage ListSecretVersionsPage> { private ListSecretVersionsPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { super(context, response); } @@ -2832,14 +2835,16 @@ private static ListSecretVersionsPage createEmptyPage() { @Override protected ListSecretVersionsPage createPage( - PageContext context, - ListSecretVersionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSecretVersionsResponse response) { return new ListSecretVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2854,7 +2859,7 @@ public static class ListSecretVersionsFixedSizeCollection ListSecretVersionsFixedSizeCollection> { private ListSecretVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2864,7 +2869,7 @@ private static ListSecretVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListSecretVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecretVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2898,8 +2903,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2909,14 +2914,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2930,7 +2935,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2940,7 +2946,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceSettings.java index 64bfb9ec6fa5..da8e25578653 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretManagerServiceSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -254,7 +255,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); } @@ -275,7 +276,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecretManagerServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java index 6dfc057b1a00..67da07fbedc6 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/SecretManagerServiceStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -527,7 +528,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); } @@ -651,7 +652,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSecretsSettings = PagedCallSettings.newBuilder(LIST_SECRETS_PAGE_STR_FACT); diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/LocationName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/LocationName.java index 849a98af73cc..e78ba4dda2b7 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/LocationName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java index 1d13d652e5c8..824a6e202480 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java index 018fbfec0ea7..7b201a96314f 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationSecretName( .toString(); } - public static SecretName parse(String formattedString) { + public static @Nullable SecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretName> values) { List list = new ArrayList<>(values.size()); for (SecretName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java index 84635ceb00c5..cadc7159fb03 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationSecretSecretVersionName( .toString(); } - public static SecretVersionName parse(String formattedString) { + public static @Nullable SecretVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretVersionName> values) { List list = new ArrayList<>(values.size()); for (SecretVersionName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/ProjectName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/ProjectName.java index ebdf28258adc..c99b782250cf 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/ProjectName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretName.java index b6cb45a6f398..6fa9c9ef7e43 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String secret) { return newBuilder().setProject(project).setSecret(secret).build().toString(); } - public static SecretName parse(String formattedString) { + public static @Nullable SecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretName> values) { List list = new ArrayList<>(values.size()); for (SecretName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretVersionName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretVersionName.java index 54a9839472d2..09cf1a00896c 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretVersionName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/src/main/java/com/google/cloud/secretmanager/v1beta1/SecretVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String secret, String secretVersion) .toString(); } - public static SecretVersionName parse(String formattedString) { + public static @Nullable SecretVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretVersionName> values) { List list = new ArrayList<>(values.size()); for (SecretVersionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/LocationName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/LocationName.java index d09f5fddc0d0..03fe9c80e72e 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/LocationName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ProjectName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ProjectName.java index 21a8ac428520..4f9753101565 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ProjectName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretName.java index d89219dfc5e9..7cbd7a3b85e6 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -128,7 +129,7 @@ public static String formatProjectLocationSecretName( .toString(); } - public static SecretName parse(String formattedString) { + public static @Nullable SecretName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -151,7 +152,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretName> values) { List list = new ArrayList<>(values.size()); for (SecretName value : values) { if (value == null) { @@ -200,7 +201,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretVersionName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretVersionName.java index badd865f3aba..da16ed1c3be3 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretVersionName.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/SecretVersionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -160,7 +161,7 @@ public static String formatProjectLocationSecretSecretVersionName( .toString(); } - public static SecretVersionName parse(String formattedString) { + public static @Nullable SecretVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -187,7 +188,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecretVersionName> values) { List list = new ArrayList<>(values.size()); for (SecretVersionName value : values) { if (value == null) { @@ -239,7 +240,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java index aaf917fa8a04..3c3449c3fbbd 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerClient.java @@ -49,6 +49,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. /** @@ -1228,7 +1229,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecureSourceManagerClient implements BackgroundResource { - private final SecureSourceManagerSettings settings; + private final @Nullable SecureSourceManagerSettings settings; private final SecureSourceManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1276,7 +1277,7 @@ protected SecureSourceManagerClient(SecureSourceManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecureSourceManagerSettings getSettings() { + public final @Nullable SecureSourceManagerSettings getSettings() { return settings; } @@ -1324,7 +1325,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListInstancesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1491,7 +1492,7 @@ public final UnaryCallable listInst * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -1606,7 +1607,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1769,7 +1770,8 @@ public final UnaryCallable createInstanceCalla * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1919,7 +1921,7 @@ public final UnaryCallable deleteInstanceCalla * @param parent Required. Parent value for ListRepositoriesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRepositoriesPagedResponse listRepositories(LocationName parent) { + public final ListRepositoriesPagedResponse listRepositories(@Nullable LocationName parent) { ListRepositoriesRequest request = ListRepositoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2101,7 +2103,7 @@ public final ListRepositoriesPagedResponse listRepositories(ListRepositoriesRequ * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Repository getRepository(RepositoryName name) { + public final Repository getRepository(@Nullable RepositoryName name) { GetRepositoryRequest request = GetRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRepository(request); @@ -2223,7 +2225,7 @@ public final UnaryCallable getRepositoryCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRepositoryAsync( - LocationName parent, Repository repository, String repositoryId) { + @Nullable LocationName parent, Repository repository, String repositoryId) { CreateRepositoryRequest request = CreateRepositoryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2529,7 +2531,7 @@ public final UnaryCallable updateRepositoryC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRepositoryAsync( - RepositoryName name) { + @Nullable RepositoryName name) { DeleteRepositoryRequest request = DeleteRepositoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRepositoryAsync(request); @@ -2674,7 +2676,7 @@ public final UnaryCallable deleteRepositoryC * @param parent Required. Parent value for ListHooksRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHooksPagedResponse listHooks(RepositoryName parent) { + public final ListHooksPagedResponse listHooks(@Nullable RepositoryName parent) { ListHooksRequest request = ListHooksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listHooks(request); @@ -2832,7 +2834,7 @@ public final UnaryCallable listHooksCallabl * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Hook getHook(HookName name) { + public final Hook getHook(@Nullable HookName name) { GetHookRequest request = GetHookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHook(request); @@ -2950,7 +2952,7 @@ public final UnaryCallable getHookCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHookAsync( - RepositoryName parent, Hook hook, String hookId) { + @Nullable RepositoryName parent, Hook hook, String hookId) { CreateHookRequest request = CreateHookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3230,7 +3232,7 @@ public final UnaryCallable updateHookCallable() { * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteHookAsync(HookName name) { + public final OperationFuture deleteHookAsync(@Nullable HookName name) { DeleteHookRequest request = DeleteHookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteHookAsync(request); @@ -3371,7 +3373,7 @@ public final UnaryCallable deleteHookCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicyRepo(ResourceName resource) { + public final Policy getIamPolicyRepo(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3486,7 +3488,7 @@ public final UnaryCallable getIamPolicyRepoCallable * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicyRepo(ResourceName resource) { + public final Policy setIamPolicyRepo(@Nullable ResourceName resource) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3604,7 +3606,7 @@ public final UnaryCallable setIamPolicyRepoCallable * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissionsRepo(ResourceName resource) { + public final TestIamPermissionsResponse testIamPermissionsRepo(@Nullable ResourceName resource) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3729,7 +3731,7 @@ public final TestIamPermissionsResponse testIamPermissionsRepo( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBranchRuleAsync( - RepositoryName parent, BranchRule branchRule, String branchRuleId) { + @Nullable RepositoryName parent, BranchRule branchRule, String branchRuleId) { CreateBranchRuleRequest request = CreateBranchRuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3891,7 +3893,7 @@ public final UnaryCallable createBranchRuleC * @param parent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBranchRulesPagedResponse listBranchRules(RepositoryName parent) { + public final ListBranchRulesPagedResponse listBranchRules(@Nullable RepositoryName parent) { ListBranchRulesRequest request = ListBranchRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4055,7 +4057,7 @@ public final ListBranchRulesPagedResponse listBranchRules(ListBranchRulesRequest * `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BranchRule getBranchRule(BranchRuleName name) { + public final BranchRule getBranchRule(@Nullable BranchRuleName name) { GetBranchRuleRequest request = GetBranchRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBranchRule(request); @@ -4301,7 +4303,7 @@ public final UnaryCallable updateBranchRuleC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteBranchRuleAsync( - BranchRuleName name) { + @Nullable BranchRuleName name) { DeleteBranchRuleRequest request = DeleteBranchRuleRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBranchRuleAsync(request); @@ -4455,7 +4457,7 @@ public final UnaryCallable deleteBranchRuleC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPullRequestAsync( - RepositoryName parent, PullRequest pullRequest) { + @Nullable RepositoryName parent, PullRequest pullRequest) { CreatePullRequestRequest request = CreatePullRequestRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4608,7 +4610,7 @@ public final UnaryCallable createPullReques * `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullRequest getPullRequest(PullRequestName name) { + public final PullRequest getPullRequest(@Nullable PullRequestName name) { GetPullRequestRequest request = GetPullRequestRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPullRequest(request); @@ -4727,7 +4729,7 @@ public final UnaryCallable getPullRequestCal * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPullRequestsPagedResponse listPullRequests(RepositoryName parent) { + public final ListPullRequestsPagedResponse listPullRequests(@Nullable RepositoryName parent) { ListPullRequestsRequest request = ListPullRequestsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5020,7 +5022,7 @@ public final UnaryCallable updatePullReques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture mergePullRequestAsync( - PullRequestName name) { + @Nullable PullRequestName name) { MergePullRequestRequest request = MergePullRequestRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return mergePullRequestAsync(request); @@ -5171,7 +5173,7 @@ public final UnaryCallable mergePullRequestC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture openPullRequestAsync( - PullRequestName name) { + @Nullable PullRequestName name) { OpenPullRequestRequest request = OpenPullRequestRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return openPullRequestAsync(request); @@ -5322,7 +5324,7 @@ public final UnaryCallable openPullRequestCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture closePullRequestAsync( - PullRequestName name) { + @Nullable PullRequestName name) { ClosePullRequestRequest request = ClosePullRequestRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return closePullRequestAsync(request); @@ -5476,7 +5478,7 @@ public final UnaryCallable closePullRequestC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPullRequestFileDiffsPagedResponse listPullRequestFileDiffs( - PullRequestName name) { + @Nullable PullRequestName name) { ListPullRequestFileDiffsRequest request = ListPullRequestFileDiffsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5826,7 +5828,7 @@ public final UnaryCallable fetchBlobCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIssueAsync( - RepositoryName parent, Issue issue) { + @Nullable RepositoryName parent, Issue issue) { CreateIssueRequest request = CreateIssueRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5977,7 +5979,7 @@ public final UnaryCallable createIssueCallable() * `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Issue getIssue(IssueName name) { + public final Issue getIssue(@Nullable IssueName name) { GetIssueRequest request = GetIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIssue(request); @@ -6091,7 +6093,7 @@ public final UnaryCallable getIssueCallable() { * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIssuesPagedResponse listIssues(RepositoryName parent) { + public final ListIssuesPagedResponse listIssues(@Nullable RepositoryName parent) { ListIssuesRequest request = ListIssuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listIssues(request); @@ -6375,7 +6377,8 @@ public final UnaryCallable updateIssueCallable() * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIssueAsync(IssueName name) { + public final OperationFuture deleteIssueAsync( + @Nullable IssueName name) { DeleteIssueRequest request = DeleteIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIssueAsync(request); @@ -6522,7 +6525,7 @@ public final UnaryCallable deleteIssueCallable() * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture openIssueAsync(IssueName name) { + public final OperationFuture openIssueAsync(@Nullable IssueName name) { OpenIssueRequest request = OpenIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return openIssueAsync(request); @@ -6668,7 +6671,7 @@ public final UnaryCallable openIssueCallable() { * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture closeIssueAsync(IssueName name) { + public final OperationFuture closeIssueAsync(@Nullable IssueName name) { CloseIssueRequest request = CloseIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return closeIssueAsync(request); @@ -6817,7 +6820,7 @@ public final UnaryCallable closeIssueCallable() { * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullRequestComment getPullRequestComment(PullRequestCommentName name) { + public final PullRequestComment getPullRequestComment(@Nullable PullRequestCommentName name) { GetPullRequestCommentRequest request = GetPullRequestCommentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6946,7 +6949,7 @@ public final PullRequestComment getPullRequestComment(GetPullRequestCommentReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPullRequestCommentsPagedResponse listPullRequestComments( - PullRequestName parent) { + @Nullable PullRequestName parent) { ListPullRequestCommentsRequest request = ListPullRequestCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7130,7 +7133,7 @@ public final ListPullRequestCommentsPagedResponse listPullRequestComments( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPullRequestCommentAsync( - PullRequestName parent, PullRequestComment pullRequestComment) { + @Nullable PullRequestName parent, PullRequestComment pullRequestComment) { CreatePullRequestCommentRequest request = CreatePullRequestCommentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7440,7 +7443,7 @@ public final OperationFuture updatePullRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePullRequestCommentAsync( - PullRequestCommentName name) { + @Nullable PullRequestCommentName name) { DeletePullRequestCommentRequest request = DeletePullRequestCommentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7610,7 +7613,7 @@ public final OperationFuture deletePullRequestCommentA */ public final OperationFuture batchCreatePullRequestCommentsAsync( - PullRequestName parent, List requests) { + @Nullable PullRequestName parent, List requests) { BatchCreatePullRequestCommentsRequest request = BatchCreatePullRequestCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7805,7 +7808,7 @@ public final OperationFuture deletePullRequestCommentA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - resolvePullRequestCommentsAsync(PullRequestName parent, List names) { + resolvePullRequestCommentsAsync(@Nullable PullRequestName parent, List names) { ResolvePullRequestCommentsRequest request = ResolvePullRequestCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7992,7 +7995,7 @@ public final OperationFuture deletePullRequestCommentA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - unresolvePullRequestCommentsAsync(PullRequestName parent, List names) { + unresolvePullRequestCommentsAsync(@Nullable PullRequestName parent, List names) { UnresolvePullRequestCommentsRequest request = UnresolvePullRequestCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8179,7 +8182,7 @@ public final OperationFuture deletePullRequestCommentA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIssueCommentAsync( - IssueName parent, IssueComment issueComment) { + @Nullable IssueName parent, IssueComment issueComment) { CreateIssueCommentRequest request = CreateIssueCommentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8338,7 +8341,7 @@ public final UnaryCallable createIssueComm * `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}/issueComments/{comment_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IssueComment getIssueComment(IssueCommentName name) { + public final IssueComment getIssueComment(@Nullable IssueCommentName name) { GetIssueCommentRequest request = GetIssueCommentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIssueComment(request); @@ -8460,7 +8463,7 @@ public final UnaryCallable getIssueComment * `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIssueCommentsPagedResponse listIssueComments(IssueName parent) { + public final ListIssueCommentsPagedResponse listIssueComments(@Nullable IssueName parent) { ListIssueCommentsRequest request = ListIssueCommentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8758,7 +8761,7 @@ public final UnaryCallable updateIssueComm * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteIssueCommentAsync( - IssueCommentName name) { + @Nullable IssueCommentName name) { DeleteIssueCommentRequest request = DeleteIssueCommentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9336,8 +9339,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -9347,14 +9350,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9368,7 +9371,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9378,7 +9382,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -9412,8 +9416,9 @@ public static class ListRepositoriesPage ListRepositoriesRequest, ListRepositoriesResponse, Repository, ListRepositoriesPage> { private ListRepositoriesPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { super(context, response); } @@ -9423,14 +9428,16 @@ private static ListRepositoriesPage createEmptyPage() { @Override protected ListRepositoriesPage createPage( - PageContext context, - ListRepositoriesResponse response) { + @Nullable PageContext + context, + @Nullable ListRepositoriesResponse response) { return new ListRepositoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9445,7 +9452,7 @@ public static class ListRepositoriesFixedSizeCollection ListRepositoriesFixedSizeCollection> { private ListRepositoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9455,7 +9462,7 @@ private static ListRepositoriesFixedSizeCollection createEmptyCollection() { @Override protected ListRepositoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRepositoriesFixedSizeCollection(pages, collectionSize); } } @@ -9482,8 +9489,8 @@ public static class ListHooksPage extends AbstractPage { private ListHooksPage( - PageContext context, - ListHooksResponse response) { + @Nullable PageContext context, + @Nullable ListHooksResponse response) { super(context, response); } @@ -9493,14 +9500,14 @@ private static ListHooksPage createEmptyPage() { @Override protected ListHooksPage createPage( - PageContext context, - ListHooksResponse response) { + @Nullable PageContext context, + @Nullable ListHooksResponse response) { return new ListHooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9510,7 +9517,7 @@ public static class ListHooksFixedSizeCollection extends AbstractFixedSizeCollection< ListHooksRequest, ListHooksResponse, Hook, ListHooksPage, ListHooksFixedSizeCollection> { - private ListHooksFixedSizeCollection(List pages, int collectionSize) { + private ListHooksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9520,7 +9527,7 @@ private static ListHooksFixedSizeCollection createEmptyCollection() { @Override protected ListHooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHooksFixedSizeCollection(pages, collectionSize); } } @@ -9554,8 +9561,8 @@ public static class ListBranchRulesPage ListBranchRulesRequest, ListBranchRulesResponse, BranchRule, ListBranchRulesPage> { private ListBranchRulesPage( - PageContext context, - ListBranchRulesResponse response) { + @Nullable PageContext context, + @Nullable ListBranchRulesResponse response) { super(context, response); } @@ -9565,14 +9572,14 @@ private static ListBranchRulesPage createEmptyPage() { @Override protected ListBranchRulesPage createPage( - PageContext context, - ListBranchRulesResponse response) { + @Nullable PageContext context, + @Nullable ListBranchRulesResponse response) { return new ListBranchRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9587,7 +9594,7 @@ public static class ListBranchRulesFixedSizeCollection ListBranchRulesFixedSizeCollection> { private ListBranchRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9597,7 +9604,7 @@ private static ListBranchRulesFixedSizeCollection createEmptyCollection() { @Override protected ListBranchRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBranchRulesFixedSizeCollection(pages, collectionSize); } } @@ -9631,8 +9638,9 @@ public static class ListPullRequestsPage ListPullRequestsRequest, ListPullRequestsResponse, PullRequest, ListPullRequestsPage> { private ListPullRequestsPage( - PageContext context, - ListPullRequestsResponse response) { + @Nullable PageContext + context, + @Nullable ListPullRequestsResponse response) { super(context, response); } @@ -9642,14 +9650,16 @@ private static ListPullRequestsPage createEmptyPage() { @Override protected ListPullRequestsPage createPage( - PageContext context, - ListPullRequestsResponse response) { + @Nullable PageContext + context, + @Nullable ListPullRequestsResponse response) { return new ListPullRequestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9664,7 +9674,7 @@ public static class ListPullRequestsFixedSizeCollection ListPullRequestsFixedSizeCollection> { private ListPullRequestsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9674,7 +9684,7 @@ private static ListPullRequestsFixedSizeCollection createEmptyCollection() { @Override protected ListPullRequestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPullRequestsFixedSizeCollection(pages, collectionSize); } } @@ -9712,9 +9722,10 @@ public static class ListPullRequestFileDiffsPage ListPullRequestFileDiffsPage> { private ListPullRequestFileDiffsPage( - PageContext + @Nullable + PageContext context, - ListPullRequestFileDiffsResponse response) { + @Nullable ListPullRequestFileDiffsResponse response) { super(context, response); } @@ -9724,15 +9735,17 @@ private static ListPullRequestFileDiffsPage createEmptyPage() { @Override protected ListPullRequestFileDiffsPage createPage( - PageContext + @Nullable + PageContext context, - ListPullRequestFileDiffsResponse response) { + @Nullable ListPullRequestFileDiffsResponse response) { return new ListPullRequestFileDiffsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -9748,7 +9761,7 @@ public static class ListPullRequestFileDiffsFixedSizeCollection ListPullRequestFileDiffsFixedSizeCollection> { private ListPullRequestFileDiffsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9758,7 +9771,7 @@ private static ListPullRequestFileDiffsFixedSizeCollection createEmptyCollection @Override protected ListPullRequestFileDiffsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPullRequestFileDiffsFixedSizeCollection(pages, collectionSize); } } @@ -9789,8 +9802,8 @@ public static class FetchTreePage extends AbstractPage { private FetchTreePage( - PageContext context, - FetchTreeResponse response) { + @Nullable PageContext context, + @Nullable FetchTreeResponse response) { super(context, response); } @@ -9800,14 +9813,14 @@ private static FetchTreePage createEmptyPage() { @Override protected FetchTreePage createPage( - PageContext context, - FetchTreeResponse response) { + @Nullable PageContext context, + @Nullable FetchTreeResponse response) { return new FetchTreePage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9821,7 +9834,7 @@ public static class FetchTreeFixedSizeCollection FetchTreePage, FetchTreeFixedSizeCollection> { - private FetchTreeFixedSizeCollection(List pages, int collectionSize) { + private FetchTreeFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9831,7 +9844,7 @@ private static FetchTreeFixedSizeCollection createEmptyCollection() { @Override protected FetchTreeFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchTreeFixedSizeCollection(pages, collectionSize); } } @@ -9862,8 +9875,8 @@ public static class ListIssuesPage extends AbstractPage { private ListIssuesPage( - PageContext context, - ListIssuesResponse response) { + @Nullable PageContext context, + @Nullable ListIssuesResponse response) { super(context, response); } @@ -9873,14 +9886,14 @@ private static ListIssuesPage createEmptyPage() { @Override protected ListIssuesPage createPage( - PageContext context, - ListIssuesResponse response) { + @Nullable PageContext context, + @Nullable ListIssuesResponse response) { return new ListIssuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9894,7 +9907,8 @@ public static class ListIssuesFixedSizeCollection ListIssuesPage, ListIssuesFixedSizeCollection> { - private ListIssuesFixedSizeCollection(List pages, int collectionSize) { + private ListIssuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9904,7 +9918,7 @@ private static ListIssuesFixedSizeCollection createEmptyCollection() { @Override protected ListIssuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIssuesFixedSizeCollection(pages, collectionSize); } } @@ -9943,10 +9957,11 @@ public static class ListPullRequestCommentsPage ListPullRequestCommentsPage> { private ListPullRequestCommentsPage( - PageContext< + @Nullable + PageContext< ListPullRequestCommentsRequest, ListPullRequestCommentsResponse, PullRequestComment> context, - ListPullRequestCommentsResponse response) { + @Nullable ListPullRequestCommentsResponse response) { super(context, response); } @@ -9956,16 +9971,18 @@ private static ListPullRequestCommentsPage createEmptyPage() { @Override protected ListPullRequestCommentsPage createPage( - PageContext< + @Nullable + PageContext< ListPullRequestCommentsRequest, ListPullRequestCommentsResponse, PullRequestComment> context, - ListPullRequestCommentsResponse response) { + @Nullable ListPullRequestCommentsResponse response) { return new ListPullRequestCommentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPullRequestCommentsRequest, ListPullRequestCommentsResponse, PullRequestComment> context, ApiFuture futureResponse) { @@ -9982,7 +9999,7 @@ public static class ListPullRequestCommentsFixedSizeCollection ListPullRequestCommentsFixedSizeCollection> { private ListPullRequestCommentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9992,7 +10009,7 @@ private static ListPullRequestCommentsFixedSizeCollection createEmptyCollection( @Override protected ListPullRequestCommentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPullRequestCommentsFixedSizeCollection(pages, collectionSize); } } @@ -10029,8 +10046,9 @@ public static class ListIssueCommentsPage ListIssueCommentsPage> { private ListIssueCommentsPage( - PageContext context, - ListIssueCommentsResponse response) { + @Nullable PageContext + context, + @Nullable ListIssueCommentsResponse response) { super(context, response); } @@ -10040,14 +10058,16 @@ private static ListIssueCommentsPage createEmptyPage() { @Override protected ListIssueCommentsPage createPage( - PageContext context, - ListIssueCommentsResponse response) { + @Nullable PageContext + context, + @Nullable ListIssueCommentsResponse response) { return new ListIssueCommentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10062,7 +10082,7 @@ public static class ListIssueCommentsFixedSizeCollection ListIssueCommentsFixedSizeCollection> { private ListIssueCommentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10072,7 +10092,7 @@ private static ListIssueCommentsFixedSizeCollection createEmptyCollection() { @Override protected ListIssueCommentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIssueCommentsFixedSizeCollection(pages, collectionSize); } } @@ -10106,8 +10126,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -10117,14 +10137,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10138,7 +10158,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10148,7 +10169,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java index 0edfcfccfbb3..7e3fbb2b5b26 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/SecureSourceManagerSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -722,7 +723,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); } @@ -742,7 +743,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecureSourceManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java index 8f664ed8d0b3..42991fa81f72 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStub.java @@ -117,6 +117,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -128,11 +129,12 @@ @Generated("by gapic-generator-java") public abstract class SecureSourceManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java index 571fc407fa33..c118896a76e4 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/SecureSourceManagerStubSettings.java @@ -153,6 +153,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1620,7 +1621,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); } @@ -1979,7 +1980,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java index 5004910337b0..953a37535d20 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/BranchRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BranchRuleName parse(String formattedString) { + public static @Nullable BranchRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BranchRuleName> values) { List list = new ArrayList<>(values.size()); for (BranchRuleName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookName.java index 46b98e065bd9..881854dee120 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/HookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String repository, .toString(); } - public static HookName parse(String formattedString) { + public static @Nullable HookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HookName> values) { List list = new ArrayList<>(values.size()); for (HookName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceName.java index 5979ab2ae023..64fc38a957ad 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueCommentName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueCommentName.java index c1a4a5d478e1..db3e837a10c9 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueCommentName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueCommentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static IssueCommentName parse(String formattedString) { + public static @Nullable IssueCommentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IssueCommentName> values) { List list = new ArrayList<>(values.size()); for (IssueCommentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueName.java index 9d07cba58bcb..2ea3b87a202a 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/IssueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String repository, .toString(); } - public static IssueName parse(String formattedString) { + public static @Nullable IssueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IssueName> values) { List list = new ArrayList<>(values.size()); for (IssueName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/LocationName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/LocationName.java index 9be422a45e62..412a1515df29 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/LocationName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestCommentName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestCommentName.java index 0356cb68befe..d373f086d5ab 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestCommentName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestCommentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static PullRequestCommentName parse(String formattedString) { + public static @Nullable PullRequestCommentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PullRequestCommentName> values) { List list = new ArrayList<>(values.size()); for (PullRequestCommentName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestName.java index 1cbf2cc62506..3881694f340a 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/PullRequestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static PullRequestName parse(String formattedString) { + public static @Nullable PullRequestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PullRequestName> values) { List list = new ArrayList<>(values.size()); for (PullRequestName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryName.java b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryName.java index f1c13b7f2a48..da669048fa51 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryName.java +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/src/main/java/com/google/cloud/securesourcemanager/v1/RepositoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String repository) .toString(); } - public static RepositoryName parse(String formattedString) { + public static @Nullable RepositoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RepositoryName> values) { List list = new ArrayList<>(values.size()); for (RepositoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java index 056b091a085f..f6dd3e7875f6 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java @@ -48,6 +48,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. /** @@ -786,7 +787,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CertificateAuthorityServiceClient implements BackgroundResource { - private final CertificateAuthorityServiceSettings settings; + private final @Nullable CertificateAuthorityServiceSettings settings; private final CertificateAuthorityServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -837,7 +838,7 @@ protected CertificateAuthorityServiceClient(CertificateAuthorityServiceStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CertificateAuthorityServiceSettings getSettings() { + public final @Nullable CertificateAuthorityServiceSettings getSettings() { return settings; } @@ -900,7 +901,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Certificate createCertificate( - CaPoolName parent, Certificate certificate, String certificateId) { + @Nullable CaPoolName parent, Certificate certificate, String certificateId) { CreateCertificateRequest request = CreateCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1052,7 +1053,7 @@ public final UnaryCallable createCertific * [Certificate][google.cloud.security.privateca.v1.Certificate] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Certificate getCertificate(CertificateName name) { + public final Certificate getCertificate(@Nullable CertificateName name) { GetCertificateRequest request = GetCertificateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCertificate(request); @@ -1182,7 +1183,7 @@ public final UnaryCallable getCertificateCal * place of the CA Pool ID. Example: `projects/*/locations/*/caPools/-` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCertificatesPagedResponse listCertificates(CaPoolName parent) { + public final ListCertificatesPagedResponse listCertificates(@Nullable CaPoolName parent) { ListCertificatesRequest request = ListCertificatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1369,7 +1370,7 @@ public final ListCertificatesPagedResponse listCertificates(ListCertificatesRequ * `projects/*/locations/*/caPools/*/certificates/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Certificate revokeCertificate(CertificateName name) { + public final Certificate revokeCertificate(@Nullable CertificateName name) { RevokeCertificateRequest request = RevokeCertificateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1611,7 +1612,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - activateCertificateAuthorityAsync(CertificateAuthorityName name) { + activateCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { ActivateCertificateAuthorityRequest request = ActivateCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1834,7 +1835,7 @@ public final UnaryCallable updateCertific */ public final OperationFuture createCertificateAuthorityAsync( - CaPoolName parent, + @Nullable CaPoolName parent, CertificateAuthority certificateAuthority, String certificateAuthorityId) { CreateCertificateAuthorityRequest request = @@ -2030,7 +2031,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - disableCertificateAuthorityAsync(CertificateAuthorityName name) { + disableCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { DisableCertificateAuthorityRequest request = DisableCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2212,7 +2213,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - enableCertificateAuthorityAsync(CertificateAuthorityName name) { + enableCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { EnableCertificateAuthorityRequest request = EnableCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2400,7 +2401,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - CertificateAuthorityName name) { + @Nullable CertificateAuthorityName name) { FetchCertificateAuthorityCsrRequest request = FetchCertificateAuthorityCsrRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2566,7 +2567,8 @@ public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( * get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getCertificateAuthority(CertificateAuthorityName name) { + public final CertificateAuthority getCertificateAuthority( + @Nullable CertificateAuthorityName name) { GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2704,7 +2706,7 @@ public final CertificateAuthority getCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( - CaPoolName parent) { + @Nullable CaPoolName parent) { ListCertificateAuthoritiesRequest request = ListCertificateAuthoritiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2894,7 +2896,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeleteCertificateAuthorityAsync(CertificateAuthorityName name) { + undeleteCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { UndeleteCertificateAuthorityRequest request = UndeleteCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3077,7 +3079,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - deleteCertificateAuthorityAsync(CertificateAuthorityName name) { + deleteCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { DeleteCertificateAuthorityRequest request = DeleteCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3411,7 +3413,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCaPoolAsync( - LocationName parent, CaPool caPool, String caPoolId) { + @Nullable LocationName parent, CaPool caPool, String caPoolId) { CreateCaPoolRequest request = CreateCaPoolRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3712,7 +3714,7 @@ public final UnaryCallable updateCaPoolCallable( * [CaPool][google.cloud.security.privateca.v1.CaPool] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CaPool getCaPool(CaPoolName name) { + public final CaPool getCaPool(@Nullable CaPoolName name) { GetCaPoolRequest request = GetCaPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCaPool(request); @@ -3830,7 +3832,7 @@ public final UnaryCallable getCaPoolCallable() { * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCaPoolsPagedResponse listCaPools(LocationName parent) { + public final ListCaPoolsPagedResponse listCaPools(@Nullable LocationName parent) { ListCaPoolsRequest request = ListCaPoolsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4006,7 +4008,8 @@ public final UnaryCallable listCaPoolsC * `projects/*/locations/*/caPools/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCaPoolAsync(CaPoolName name) { + public final OperationFuture deleteCaPoolAsync( + @Nullable CaPoolName name) { DeleteCaPoolRequest request = DeleteCaPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCaPoolAsync(request); @@ -4162,7 +4165,7 @@ public final UnaryCallable deleteCaPoolCallable( * `projects/*/locations/*/caPools/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchCaCertsResponse fetchCaCerts(CaPoolName caPool) { + public final FetchCaCertsResponse fetchCaCerts(@Nullable CaPoolName caPool) { FetchCaCertsRequest request = FetchCaCertsRequest.newBuilder() .setCaPool(caPool == null ? null : caPool.toString()) @@ -4299,7 +4302,7 @@ public final UnaryCallable fetchCaCer * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CertificateRevocationList getCertificateRevocationList( - CertificateRevocationListName name) { + @Nullable CertificateRevocationListName name) { GetCertificateRevocationListRequest request = GetCertificateRevocationListRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4457,7 +4460,7 @@ public final CertificateRevocationList getCertificateRevocationList( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateRevocationListsPagedResponse listCertificateRevocationLists( - CertificateAuthorityName parent) { + @Nullable CertificateAuthorityName parent) { ListCertificateRevocationListsRequest request = ListCertificateRevocationListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4821,7 +4824,7 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati */ public final OperationFuture createCertificateTemplateAsync( - LocationName parent, + @Nullable LocationName parent, CertificateTemplate certificateTemplate, String certificateTemplateId) { CreateCertificateTemplateRequest request = @@ -5013,7 +5016,7 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCertificateTemplateAsync( - CertificateTemplateName name) { + @Nullable CertificateTemplateName name) { DeleteCertificateTemplateRequest request = DeleteCertificateTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5184,7 +5187,7 @@ public final OperationFuture deleteCertificateTemplate * get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateTemplate getCertificateTemplate(CertificateTemplateName name) { + public final CertificateTemplate getCertificateTemplate(@Nullable CertificateTemplateName name) { GetCertificateTemplateRequest request = GetCertificateTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5315,7 +5318,8 @@ public final CertificateTemplate getCertificateTemplate(GetCertificateTemplateRe * format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCertificateTemplatesPagedResponse listCertificateTemplates(LocationName parent) { + public final ListCertificateTemplatesPagedResponse listCertificateTemplates( + @Nullable LocationName parent) { ListCertificateTemplatesRequest request = ListCertificateTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6072,8 +6076,9 @@ public static class ListCertificatesPage ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage> { private ListCertificatesPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { super(context, response); } @@ -6083,14 +6088,16 @@ private static ListCertificatesPage createEmptyPage() { @Override protected ListCertificatesPage createPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { return new ListCertificatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6105,7 +6112,7 @@ public static class ListCertificatesFixedSizeCollection ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6115,7 +6122,7 @@ private static ListCertificatesFixedSizeCollection createEmptyCollection() { @Override protected ListCertificatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificatesFixedSizeCollection(pages, collectionSize); } } @@ -6156,12 +6163,13 @@ public static class ListCertificateAuthoritiesPage ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, - ListCertificateAuthoritiesResponse response) { + @Nullable ListCertificateAuthoritiesResponse response) { super(context, response); } @@ -6171,18 +6179,20 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, - ListCertificateAuthoritiesResponse response) { + @Nullable ListCertificateAuthoritiesResponse response) { return new ListCertificateAuthoritiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> @@ -6201,7 +6211,7 @@ public static class ListCertificateAuthoritiesFixedSizeCollection ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6211,7 +6221,7 @@ private static ListCertificateAuthoritiesFixedSizeCollection createEmptyCollecti @Override protected ListCertificateAuthoritiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateAuthoritiesFixedSizeCollection(pages, collectionSize); } } @@ -6242,8 +6252,8 @@ public static class ListCaPoolsPage extends AbstractPage { private ListCaPoolsPage( - PageContext context, - ListCaPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListCaPoolsResponse response) { super(context, response); } @@ -6253,14 +6263,14 @@ private static ListCaPoolsPage createEmptyPage() { @Override protected ListCaPoolsPage createPage( - PageContext context, - ListCaPoolsResponse response) { + @Nullable PageContext context, + @Nullable ListCaPoolsResponse response) { return new ListCaPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6274,7 +6284,8 @@ public static class ListCaPoolsFixedSizeCollection ListCaPoolsPage, ListCaPoolsFixedSizeCollection> { - private ListCaPoolsFixedSizeCollection(List pages, int collectionSize) { + private ListCaPoolsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6284,7 +6295,7 @@ private static ListCaPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListCaPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCaPoolsFixedSizeCollection(pages, collectionSize); } } @@ -6326,12 +6337,13 @@ public static class ListCertificateRevocationListsPage ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, - ListCertificateRevocationListsResponse response) { + @Nullable ListCertificateRevocationListsResponse response) { super(context, response); } @@ -6341,18 +6353,20 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, - ListCertificateRevocationListsResponse response) { + @Nullable ListCertificateRevocationListsResponse response) { return new ListCertificateRevocationListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> @@ -6371,7 +6385,7 @@ public static class ListCertificateRevocationListsFixedSizeCollection ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6381,7 +6395,7 @@ private static ListCertificateRevocationListsFixedSizeCollection createEmptyColl @Override protected ListCertificateRevocationListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateRevocationListsFixedSizeCollection(pages, collectionSize); } } @@ -6422,12 +6436,13 @@ public static class ListCertificateTemplatesPage ListCertificateTemplatesPage> { private ListCertificateTemplatesPage( - PageContext< + @Nullable + PageContext< ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, - ListCertificateTemplatesResponse response) { + @Nullable ListCertificateTemplatesResponse response) { super(context, response); } @@ -6437,18 +6452,20 @@ private static ListCertificateTemplatesPage createEmptyPage() { @Override protected ListCertificateTemplatesPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> context, - ListCertificateTemplatesResponse response) { + @Nullable ListCertificateTemplatesResponse response) { return new ListCertificateTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateTemplatesRequest, ListCertificateTemplatesResponse, CertificateTemplate> @@ -6467,7 +6484,7 @@ public static class ListCertificateTemplatesFixedSizeCollection ListCertificateTemplatesFixedSizeCollection> { private ListCertificateTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6477,7 +6494,7 @@ private static ListCertificateTemplatesFixedSizeCollection createEmptyCollection @Override protected ListCertificateTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -6511,8 +6528,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6522,14 +6539,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6543,7 +6560,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6553,7 +6571,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java index 6fdae82ea9e8..ad8add8af610 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -524,7 +525,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); } @@ -545,7 +546,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CertificateAuthorityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java index 016c33cbce13..b26f7cf48e5f 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStub.java @@ -82,6 +82,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,11 +94,12 @@ @Generated("by gapic-generator-java") public abstract class CertificateAuthorityServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java index 378bc512eff5..f893eab93778 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/CertificateAuthorityServiceStubSettings.java @@ -116,6 +116,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1092,7 +1093,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); } @@ -1343,7 +1344,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java index c0928e366a89..0f07d0bc113f 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceClient.java @@ -38,6 +38,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. /** @@ -527,7 +528,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CertificateAuthorityServiceClient implements BackgroundResource { - private final CertificateAuthorityServiceSettings settings; + private final @Nullable CertificateAuthorityServiceSettings settings; private final CertificateAuthorityServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -578,7 +579,7 @@ protected CertificateAuthorityServiceClient(CertificateAuthorityServiceStub stub this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CertificateAuthorityServiceSettings getSettings() { + public final @Nullable CertificateAuthorityServiceSettings getSettings() { return settings; } @@ -644,7 +645,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Certificate createCertificate( - CertificateAuthorityName parent, Certificate certificate, String certificateId) { + @Nullable CertificateAuthorityName parent, Certificate certificate, String certificateId) { CreateCertificateRequest request = CreateCertificateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -802,7 +803,7 @@ public final UnaryCallable createCertific * the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Certificate getCertificate(CertificateName name) { + public final Certificate getCertificate(@Nullable CertificateName name) { GetCertificateRequest request = GetCertificateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCertificate(request); @@ -930,7 +931,8 @@ public final UnaryCallable getCertificateCal * `projects/*/locations/*/certificateauthorities/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCertificatesPagedResponse listCertificates(CertificateAuthorityName parent) { + public final ListCertificatesPagedResponse listCertificates( + @Nullable CertificateAuthorityName parent) { ListCertificatesRequest request = ListCertificatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1119,7 +1121,7 @@ public final ListCertificatesPagedResponse listCertificates(ListCertificatesRequ * `projects/*/locations/*/certificateAuthorities/*/certificates/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Certificate revokeCertificate(CertificateName name) { + public final Certificate revokeCertificate(@Nullable CertificateName name) { RevokeCertificateRequest request = RevokeCertificateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1363,7 +1365,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - activateCertificateAuthorityAsync(CertificateAuthorityName name) { + activateCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { ActivateCertificateAuthorityRequest request = ActivateCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1582,7 +1584,7 @@ public final UnaryCallable updateCertific */ public final OperationFuture createCertificateAuthorityAsync( - LocationName parent, + @Nullable LocationName parent, CertificateAuthority certificateAuthority, String certificateAuthorityId) { CreateCertificateAuthorityRequest request = @@ -1780,7 +1782,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - disableCertificateAuthorityAsync(CertificateAuthorityName name) { + disableCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { DisableCertificateAuthorityRequest request = DisableCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1954,7 +1956,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - enableCertificateAuthorityAsync(CertificateAuthorityName name) { + enableCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { EnableCertificateAuthorityRequest request = EnableCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2137,7 +2139,7 @@ public final UnaryCallable updateCertific * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( - CertificateAuthorityName name) { + @Nullable CertificateAuthorityName name) { FetchCertificateAuthorityCsrRequest request = FetchCertificateAuthorityCsrRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2300,7 +2302,8 @@ public final FetchCertificateAuthorityCsrResponse fetchCertificateAuthorityCsr( * get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getCertificateAuthority(CertificateAuthorityName name) { + public final CertificateAuthority getCertificateAuthority( + @Nullable CertificateAuthorityName name) { GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2435,7 +2438,7 @@ public final CertificateAuthority getCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( - LocationName parent) { + @Nullable LocationName parent) { ListCertificateAuthoritiesRequest request = ListCertificateAuthoritiesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2623,7 +2626,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - restoreCertificateAuthorityAsync(CertificateAuthorityName name) { + restoreCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { RestoreCertificateAuthorityRequest request = RestoreCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2802,7 +2805,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - scheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName name) { + scheduleDeleteCertificateAuthorityAsync(@Nullable CertificateAuthorityName name) { ScheduleDeleteCertificateAuthorityRequest request = ScheduleDeleteCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3128,7 +3131,7 @@ public final ListCertificateAuthoritiesPagedResponse listCertificateAuthorities( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CertificateRevocationList getCertificateRevocationList( - CertificateRevocationListName name) { + @Nullable CertificateRevocationListName name) { GetCertificateRevocationListRequest request = GetCertificateRevocationListRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3282,7 +3285,7 @@ public final CertificateRevocationList getCertificateRevocationList( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCertificateRevocationListsPagedResponse listCertificateRevocationLists( - CertificateAuthorityName parent) { + @Nullable CertificateAuthorityName parent) { ListCertificateRevocationListsRequest request = ListCertificateRevocationListsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3628,7 +3631,7 @@ public final ListCertificateRevocationListsPagedResponse listCertificateRevocati * @param name Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReusableConfig getReusableConfig(ReusableConfigName name) { + public final ReusableConfig getReusableConfig(@Nullable ReusableConfigName name) { GetReusableConfigRequest request = GetReusableConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3751,7 +3754,7 @@ public final UnaryCallable getReusable * `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReusableConfigsPagedResponse listReusableConfigs(LocationName parent) { + public final ListReusableConfigsPagedResponse listReusableConfigs(@Nullable LocationName parent) { ListReusableConfigsRequest request = ListReusableConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3967,8 +3970,9 @@ public static class ListCertificatesPage ListCertificatesRequest, ListCertificatesResponse, Certificate, ListCertificatesPage> { private ListCertificatesPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { super(context, response); } @@ -3978,14 +3982,16 @@ private static ListCertificatesPage createEmptyPage() { @Override protected ListCertificatesPage createPage( - PageContext context, - ListCertificatesResponse response) { + @Nullable PageContext + context, + @Nullable ListCertificatesResponse response) { return new ListCertificatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4000,7 +4006,7 @@ public static class ListCertificatesFixedSizeCollection ListCertificatesFixedSizeCollection> { private ListCertificatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4010,7 +4016,7 @@ private static ListCertificatesFixedSizeCollection createEmptyCollection() { @Override protected ListCertificatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificatesFixedSizeCollection(pages, collectionSize); } } @@ -4051,12 +4057,13 @@ public static class ListCertificateAuthoritiesPage ListCertificateAuthoritiesPage> { private ListCertificateAuthoritiesPage( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, - ListCertificateAuthoritiesResponse response) { + @Nullable ListCertificateAuthoritiesResponse response) { super(context, response); } @@ -4066,18 +4073,20 @@ private static ListCertificateAuthoritiesPage createEmptyPage() { @Override protected ListCertificateAuthoritiesPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> context, - ListCertificateAuthoritiesResponse response) { + @Nullable ListCertificateAuthoritiesResponse response) { return new ListCertificateAuthoritiesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateAuthoritiesRequest, ListCertificateAuthoritiesResponse, CertificateAuthority> @@ -4096,7 +4105,7 @@ public static class ListCertificateAuthoritiesFixedSizeCollection ListCertificateAuthoritiesFixedSizeCollection> { private ListCertificateAuthoritiesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4106,7 +4115,7 @@ private static ListCertificateAuthoritiesFixedSizeCollection createEmptyCollecti @Override protected ListCertificateAuthoritiesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateAuthoritiesFixedSizeCollection(pages, collectionSize); } } @@ -4148,12 +4157,13 @@ public static class ListCertificateRevocationListsPage ListCertificateRevocationListsPage> { private ListCertificateRevocationListsPage( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, - ListCertificateRevocationListsResponse response) { + @Nullable ListCertificateRevocationListsResponse response) { super(context, response); } @@ -4163,18 +4173,20 @@ private static ListCertificateRevocationListsPage createEmptyPage() { @Override protected ListCertificateRevocationListsPage createPage( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> context, - ListCertificateRevocationListsResponse response) { + @Nullable ListCertificateRevocationListsResponse response) { return new ListCertificateRevocationListsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListCertificateRevocationListsRequest, ListCertificateRevocationListsResponse, CertificateRevocationList> @@ -4193,7 +4205,7 @@ public static class ListCertificateRevocationListsFixedSizeCollection ListCertificateRevocationListsFixedSizeCollection> { private ListCertificateRevocationListsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4203,7 +4215,7 @@ private static ListCertificateRevocationListsFixedSizeCollection createEmptyColl @Override protected ListCertificateRevocationListsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCertificateRevocationListsFixedSizeCollection(pages, collectionSize); } } @@ -4241,9 +4253,10 @@ public static class ListReusableConfigsPage ListReusableConfigsPage> { private ListReusableConfigsPage( - PageContext + @Nullable + PageContext context, - ListReusableConfigsResponse response) { + @Nullable ListReusableConfigsResponse response) { super(context, response); } @@ -4253,15 +4266,17 @@ private static ListReusableConfigsPage createEmptyPage() { @Override protected ListReusableConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListReusableConfigsResponse response) { + @Nullable ListReusableConfigsResponse response) { return new ListReusableConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4277,7 +4292,7 @@ public static class ListReusableConfigsFixedSizeCollection ListReusableConfigsFixedSizeCollection> { private ListReusableConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4287,7 +4302,7 @@ private static ListReusableConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListReusableConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReusableConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java index 9f4bdc297a8f..cc2056c5229f 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -386,7 +387,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); } @@ -407,7 +408,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CertificateAuthorityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java index 51a9e3051185..cc8799336b6c 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStub.java @@ -59,6 +59,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -71,11 +72,12 @@ @Generated("by gapic-generator-java") public abstract class CertificateAuthorityServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java index 07e11ada2901..9a2af48dea36 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/CertificateAuthorityServiceStubSettings.java @@ -92,6 +92,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -800,7 +801,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); } @@ -990,7 +991,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java index 1b726519bb09..b6381280172c 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String caPool) { .toString(); } - public static CaPoolName parse(String formattedString) { + public static @Nullable CaPoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CaPoolName> values) { List list = new ArrayList<>(values.size()); for (CaPoolName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java index ed7ebcddeaa4..e26d9e888477 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CertificateAuthorityName parse(String formattedString) { + public static @Nullable CertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (CertificateAuthorityName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java index 0d5bfcb335bc..06fa2314bf21 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String caPool, Stri .toString(); } - public static CertificateName parse(String formattedString) { + public static @Nullable CertificateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateName> values) { List list = new ArrayList<>(values.size()); for (CertificateName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java index 3716bcd06db9..d772a78c5419 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateRevocationListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static CertificateRevocationListName parse(String formattedString) { + public static @Nullable CertificateRevocationListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -142,7 +143,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateRevocationListName> values) { List list = new ArrayList<>(values.size()); for (CertificateRevocationListName value : values) { if (value == null) { @@ -207,7 +208,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java index 790b61732fda..58c1a783a61e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String certificateT .toString(); } - public static CertificateTemplateName parse(String formattedString) { + public static @Nullable CertificateTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateTemplateName> values) { List list = new ArrayList<>(values.size()); for (CertificateTemplateName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java index c168b15fe235..7e9017570948 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java index 0296adbb4074..2e2324d305e9 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String certificateA .toString(); } - public static CertificateAuthorityName parse(String formattedString) { + public static @Nullable CertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (CertificateAuthorityName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java index 1746dce3bd24..2f50846c325e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CertificateName parse(String formattedString) { + public static @Nullable CertificateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateName> values) { List list = new ArrayList<>(values.size()); for (CertificateName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java index 4099876124e1..ad5ac931c52e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/CertificateRevocationListName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -107,7 +108,7 @@ public static String format( .toString(); } - public static CertificateRevocationListName parse(String formattedString) { + public static @Nullable CertificateRevocationListName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -130,7 +131,7 @@ public static List parseList(List formatt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CertificateRevocationListName> values) { List list = new ArrayList<>(values.size()); for (CertificateRevocationListName value : values) { if (value == null) { @@ -190,7 +191,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java index e58baa064c1c..f5cad403c8b8 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java index b2ab1929613f..c37a059aa93e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/src/main/java/com/google/cloud/security/privateca/v1beta1/ReusableConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reusableConf .toString(); } - public static ReusableConfigName parse(String formattedString) { + public static @Nullable ReusableConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReusableConfigName> values) { List list = new ArrayList<>(values.size()); for (ReusableConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java index 4cfd87487b20..3ee7894359ab 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceClient.java @@ -35,6 +35,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. /** @@ -347,7 +348,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecurityCenterSettingsServiceClient implements BackgroundResource { - private final SecurityCenterSettingsServiceSettings settings; + private final @Nullable SecurityCenterSettingsServiceSettings settings; private final SecurityCenterSettingsServiceStub stub; /** Constructs an instance of SecurityCenterSettingsServiceClient with default settings. */ @@ -391,7 +392,7 @@ protected SecurityCenterSettingsServiceClient(SecurityCenterSettingsServiceStub this.stub = stub; } - public final SecurityCenterSettingsServiceSettings getSettings() { + public final @Nullable SecurityCenterSettingsServiceSettings getSettings() { return settings; } @@ -429,7 +430,7 @@ public SecurityCenterSettingsServiceStub getStub() { * `organizations/{organization}/serviceAccount` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceAccount getServiceAccount(ServiceAccountName name) { + public final ServiceAccount getServiceAccount(@Nullable ServiceAccountName name) { GetServiceAccountRequest request = GetServiceAccountRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -571,7 +572,7 @@ public final UnaryCallable getServiceA * `projects/{project}/zones/{zone}/clusters/{cluster}/settings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -933,7 +934,7 @@ public final BatchGetSettingsResponse batchGetSettings(BatchGetSettingsRequest r * `projects/{project}/zones/{zone}/clusters/{cluster}/effectiveSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings calculateEffectiveSettings(SettingsName name) { + public final Settings calculateEffectiveSettings(@Nullable SettingsName name) { CalculateEffectiveSettingsRequest request = CalculateEffectiveSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1146,7 +1147,7 @@ public final BatchCalculateEffectiveSettingsResponse batchCalculateEffectiveSett * * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComponentSettings getComponentSettings(ComponentSettingsName name) { + public final ComponentSettings getComponentSettings(@Nullable ComponentSettingsName name) { GetComponentSettingsRequest request = GetComponentSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1463,7 +1464,8 @@ public final void resetComponentSettings(ResetComponentSettingsRequest request) * * `projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComponentSettings calculateEffectiveComponentSettings(ComponentSettingsName name) { + public final ComponentSettings calculateEffectiveComponentSettings( + @Nullable ComponentSettingsName name) { CalculateEffectiveComponentSettingsRequest request = CalculateEffectiveComponentSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1602,7 +1604,7 @@ public final ComponentSettings calculateEffectiveComponentSettings( * `organizations/{organization}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDetectorsPagedResponse listDetectors(OrganizationName parent) { + public final ListDetectorsPagedResponse listDetectors(@Nullable OrganizationName parent) { ListDetectorsRequest request = ListDetectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1778,7 +1780,7 @@ public final UnaryCallable listDete * `organizations/{organization}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListComponentsPagedResponse listComponents(OrganizationName parent) { + public final ListComponentsPagedResponse listComponents(@Nullable OrganizationName parent) { ListComponentsRequest request = ListComponentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1985,8 +1987,8 @@ public static class ListDetectorsPage ListDetectorsRequest, ListDetectorsResponse, Detector, ListDetectorsPage> { private ListDetectorsPage( - PageContext context, - ListDetectorsResponse response) { + @Nullable PageContext context, + @Nullable ListDetectorsResponse response) { super(context, response); } @@ -1996,14 +1998,14 @@ private static ListDetectorsPage createEmptyPage() { @Override protected ListDetectorsPage createPage( - PageContext context, - ListDetectorsResponse response) { + @Nullable PageContext context, + @Nullable ListDetectorsResponse response) { return new ListDetectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2017,7 +2019,8 @@ public static class ListDetectorsFixedSizeCollection ListDetectorsPage, ListDetectorsFixedSizeCollection> { - private ListDetectorsFixedSizeCollection(List pages, int collectionSize) { + private ListDetectorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2027,7 +2030,7 @@ private static ListDetectorsFixedSizeCollection createEmptyCollection() { @Override protected ListDetectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDetectorsFixedSizeCollection(pages, collectionSize); } } @@ -2061,8 +2064,8 @@ public static class ListComponentsPage ListComponentsRequest, ListComponentsResponse, String, ListComponentsPage> { private ListComponentsPage( - PageContext context, - ListComponentsResponse response) { + @Nullable PageContext context, + @Nullable ListComponentsResponse response) { super(context, response); } @@ -2072,14 +2075,14 @@ private static ListComponentsPage createEmptyPage() { @Override protected ListComponentsPage createPage( - PageContext context, - ListComponentsResponse response) { + @Nullable PageContext context, + @Nullable ListComponentsResponse response) { return new ListComponentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2093,7 +2096,8 @@ public static class ListComponentsFixedSizeCollection ListComponentsPage, ListComponentsFixedSizeCollection> { - private ListComponentsFixedSizeCollection(List pages, int collectionSize) { + private ListComponentsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2103,7 +2107,7 @@ private static ListComponentsFixedSizeCollection createEmptyCollection() { @Override protected ListComponentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListComponentsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java index 544b96714f09..6a8844d55a05 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SecurityCenterSettingsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java index fd643febb04a..d8d596e7a2cf 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/SecurityCenterSettingsServiceStubSettings.java @@ -74,6 +74,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -412,7 +413,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -519,7 +520,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ComponentSettingsName.java b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ComponentSettingsName.java index 54078a9702d4..210cdf0dd810 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ComponentSettingsName.java +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ComponentSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -308,7 +309,7 @@ public static String formatProjectZoneClusterComponentName( .toString(); } - public static ComponentSettingsName parse(String formattedString) { + public static @Nullable ComponentSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -355,7 +356,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ComponentSettingsName> values) { List list = new ArrayList<>(values.size()); for (ComponentSettingsName value : values) { if (value == null) { @@ -423,7 +424,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/OrganizationName.java b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/OrganizationName.java index bb257fb79ef9..362080d05e0d 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/OrganizationName.java +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ServiceAccountName.java b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ServiceAccountName.java index bf2480b04f0a..e6610dc4b035 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ServiceAccountName.java +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SettingsName.java b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SettingsName.java index b1ad449a339d..70cbeb3cfa0d 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SettingsName.java +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/SettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -282,7 +283,7 @@ public static String formatProjectZoneClusterName(String project, String zone, S .toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -319,7 +320,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -384,7 +385,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index 787e72b4c672..dcceafbd2d3e 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -46,6 +46,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. /** @@ -1355,7 +1356,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityCenterClient implements BackgroundResource { - private final SecurityCenterSettings settings; + private final @Nullable SecurityCenterSettings settings; private final SecurityCenterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1403,7 +1404,7 @@ protected SecurityCenterClient(SecurityCenterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecurityCenterSettings getSettings() { + public final @Nullable SecurityCenterSettings getSettings() { return settings; } @@ -1453,7 +1454,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture bulkMuteFindingsAsync( - ResourceName parent) { + @Nullable ResourceName parent) { BulkMuteFindingsRequest request = BulkMuteFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1625,7 +1626,7 @@ public final UnaryCallable bulkMuteFindingsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( - SecurityHealthAnalyticsSettingsName parent, + @Nullable SecurityHealthAnalyticsSettingsName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { CreateSecurityHealthAnalyticsCustomModuleRequest request = CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() @@ -1778,7 +1779,7 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source createSource(OrganizationName parent, Source source) { + public final Source createSource(@Nullable OrganizationName parent, Source source) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1904,7 +1905,8 @@ public final UnaryCallable createSourceCallable() { * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding createFinding(SourceName parent, String findingId, Finding finding) { + public final Finding createFinding( + @Nullable SourceName parent, String findingId, Finding finding) { CreateFindingRequest request = CreateFindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2038,7 +2040,8 @@ public final UnaryCallable createFindingCallable( * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(FolderLocationName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig( + @Nullable FolderLocationName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2071,7 +2074,7 @@ public final MuteConfig createMuteConfig(FolderLocationName parent, MuteConfig m * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(FolderName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig(@Nullable FolderName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2104,7 +2107,7 @@ public final MuteConfig createMuteConfig(FolderName parent, MuteConfig muteConfi * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(LocationName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig(@Nullable LocationName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2137,7 +2140,8 @@ public final MuteConfig createMuteConfig(LocationName parent, MuteConfig muteCon * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(OrganizationLocationName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig( + @Nullable OrganizationLocationName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2170,7 +2174,8 @@ public final MuteConfig createMuteConfig(OrganizationLocationName parent, MuteCo * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(OrganizationName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig( + @Nullable OrganizationName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2203,7 +2208,7 @@ public final MuteConfig createMuteConfig(OrganizationName parent, MuteConfig mut * @param muteConfig Required. The mute config being created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig createMuteConfig(ProjectName parent, MuteConfig muteConfig) { + public final MuteConfig createMuteConfig(@Nullable ProjectName parent, MuteConfig muteConfig) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2271,7 +2276,7 @@ public final MuteConfig createMuteConfig(String parent, MuteConfig muteConfig) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - FolderLocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable FolderLocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2310,7 +2315,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - FolderName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable FolderName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2349,7 +2354,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - LocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable LocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2388,7 +2393,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2427,7 +2432,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - OrganizationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable OrganizationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2466,7 +2471,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - ProjectName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable ProjectName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2602,7 +2607,7 @@ public final UnaryCallable createMuteConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - FolderName parent, NotificationConfig notificationConfig) { + @Nullable FolderName parent, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2638,7 +2643,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - OrganizationName parent, NotificationConfig notificationConfig) { + @Nullable OrganizationName parent, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2674,7 +2679,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - ProjectName parent, NotificationConfig notificationConfig) { + @Nullable ProjectName parent, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2750,7 +2755,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - FolderName parent, String configId, NotificationConfig notificationConfig) { + @Nullable FolderName parent, String configId, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2791,7 +2796,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - OrganizationName parent, String configId, NotificationConfig notificationConfig) { + @Nullable OrganizationName parent, String configId, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2832,7 +2837,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - ProjectName parent, String configId, NotificationConfig notificationConfig) { + @Nullable ProjectName parent, String configId, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2972,7 +2977,7 @@ public final NotificationConfig createNotificationConfig( * `projects/{project}/locations/global/muteConfigs/{config_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMuteConfig(MuteConfigName name) { + public final void deleteMuteConfig(@Nullable MuteConfigName name) { DeleteMuteConfigRequest request = DeleteMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteMuteConfig(request); @@ -3095,7 +3100,7 @@ public final UnaryCallable deleteMuteConfigCalla * `projects/[project_id]/notificationConfigs/[config_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationConfig(NotificationConfigName name) { + public final void deleteNotificationConfig(@Nullable NotificationConfigName name) { DeleteNotificationConfigRequest request = DeleteNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3227,7 +3232,7 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSecurityHealthAnalyticsCustomModule( - SecurityHealthAnalyticsCustomModuleName name) { + @Nullable SecurityHealthAnalyticsCustomModuleName name) { DeleteSecurityHealthAnalyticsCustomModuleRequest request = DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3360,7 +3365,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * `organizations/{organization}/simulations/{simulation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Simulation getSimulation(SimulationName name) { + public final Simulation getSimulation(@Nullable SimulationName name) { GetSimulationRequest request = GetSimulationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSimulation(request); @@ -3474,7 +3479,7 @@ public final UnaryCallable getSimulationCallab * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ValuedResource getValuedResource(ValuedResourceName name) { + public final ValuedResource getValuedResource(@Nullable ValuedResourceName name) { GetValuedResourceRequest request = GetValuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3596,7 +3601,7 @@ public final UnaryCallable getValuedRe * `projects/{project}/bigQueryExports/{export_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryExport getBigQueryExport(BigQueryExportName name) { + public final BigQueryExport getBigQueryExport(@Nullable BigQueryExportName name) { GetBigQueryExportRequest request = GetBigQueryExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3716,7 +3721,7 @@ public final UnaryCallable getBigQuery * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3837,7 +3842,7 @@ public final UnaryCallable getIamPolicyCallable() { * `projects/{project}/locations/global/muteConfigs/{config_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig getMuteConfig(MuteConfigName name) { + public final MuteConfig getMuteConfig(@Nullable MuteConfigName name) { GetMuteConfigRequest request = GetMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMuteConfig(request); @@ -3961,7 +3966,7 @@ public final UnaryCallable getMuteConfigCallab * `projects/[project_id]/notificationConfigs/[config_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotificationConfig getNotificationConfig(NotificationConfigName name) { + public final NotificationConfig getNotificationConfig(@Nullable NotificationConfigName name) { GetNotificationConfigRequest request = GetNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4087,7 +4092,8 @@ public final NotificationConfig getNotificationConfig(GetNotificationConfigReque * `organizations/[organization_id]/organizationSettings`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrganizationSettings getOrganizationSettings(OrganizationSettingsName name) { + public final OrganizationSettings getOrganizationSettings( + @Nullable OrganizationSettingsName name) { GetOrganizationSettingsRequest request = GetOrganizationSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4211,7 +4217,7 @@ public final OrganizationSettings getOrganizationSettings( */ public final EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule( - EffectiveSecurityHealthAnalyticsCustomModuleName name) { + @Nullable EffectiveSecurityHealthAnalyticsCustomModuleName name) { GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4355,7 +4361,7 @@ public final OrganizationSettings getOrganizationSettings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( - SecurityHealthAnalyticsCustomModuleName name) { + @Nullable SecurityHealthAnalyticsCustomModuleName name) { GetSecurityHealthAnalyticsCustomModuleRequest request = GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4486,7 +4492,7 @@ public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCusto * `organizations/[organization_id]/source/[source_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -4738,7 +4744,8 @@ public final UnaryCallable groupAssetsC * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) { + public final GroupFindingsPagedResponse groupFindings( + @Nullable SourceName parent, String groupBy) { GroupFindingsRequest request = GroupFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5083,7 +5090,7 @@ public final UnaryCallable listAssetsCall */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse listDescendantSecurityHealthAnalyticsCustomModules( - SecurityHealthAnalyticsSettingsName parent) { + @Nullable SecurityHealthAnalyticsSettingsName parent) { ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5415,7 +5422,7 @@ public final UnaryCallable listFindin * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(FolderLocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable FolderLocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5447,7 +5454,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderLocationName par * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable FolderName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5479,7 +5486,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(LocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable LocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5511,7 +5518,8 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(LocationName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationLocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs( + @Nullable OrganizationLocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5543,7 +5551,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationLocationNa * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable OrganizationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5575,7 +5583,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName paren * `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(ProjectName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable ProjectName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5743,7 +5751,8 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest * "projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationConfigsPagedResponse listNotificationConfigs(FolderName parent) { + public final ListNotificationConfigsPagedResponse listNotificationConfigs( + @Nullable FolderName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5778,7 +5787,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(Folder * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationConfigsPagedResponse listNotificationConfigs( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5812,7 +5821,8 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * "projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationConfigsPagedResponse listNotificationConfigs(ProjectName parent) { + public final ListNotificationConfigsPagedResponse listNotificationConfigs( + @Nullable ProjectName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5993,7 +6003,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse listEffectiveSecurityHealthAnalyticsCustomModules( - SecurityHealthAnalyticsSettingsName parent) { + @Nullable SecurityHealthAnalyticsSettingsName parent) { ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6204,7 +6214,8 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse - listSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName parent) { + listSecurityHealthAnalyticsCustomModules( + @Nullable SecurityHealthAnalyticsSettingsName parent) { ListSecurityHealthAnalyticsCustomModulesRequest request = ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6400,7 +6411,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(FolderName parent) { + public final ListSourcesPagedResponse listSources(@Nullable FolderName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6432,7 +6443,7 @@ public final ListSourcesPagedResponse listSources(FolderName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(OrganizationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable OrganizationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6464,7 +6475,7 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(ProjectName parent) { + public final ListSourcesPagedResponse listSources(@Nullable ProjectName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6633,7 +6644,7 @@ public final UnaryCallable listSourcesC */ @Deprecated public final OperationFuture runAssetDiscoveryAsync( - OrganizationName parent) { + @Nullable OrganizationName parent) { RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6811,7 +6822,8 @@ public final UnaryCallable runAssetDiscover * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { + public final Finding setFindingState( + @Nullable FindingName name, Finding.State state, Timestamp startTime) { SetFindingStateRequest request = SetFindingStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6956,7 +6968,7 @@ public final UnaryCallable setFindingStateCalla * @param mute Required. The desired state of the Mute. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setMute(FindingName name, Finding.Mute mute) { + public final Finding setMute(@Nullable FindingName name, Finding.Mute mute) { SetMuteRequest request = SetMuteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7087,7 +7099,7 @@ public final UnaryCallable setMuteCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -7217,7 +7229,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -8251,7 +8263,7 @@ public final SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - FolderName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable FolderName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8291,7 +8303,7 @@ public final BigQueryExport createBigQueryExport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - OrganizationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable OrganizationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8331,7 +8343,7 @@ public final BigQueryExport createBigQueryExport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - ProjectName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable ProjectName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8467,7 +8479,7 @@ public final BigQueryExport createBigQueryExport(CreateBigQueryExportRequest req * `projects/{project}/bigQueryExports/{export_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBigQueryExport(BigQueryExportName name) { + public final void deleteBigQueryExport(@Nullable BigQueryExportName name) { DeleteBigQueryExportRequest request = DeleteBigQueryExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8687,7 +8699,7 @@ public final BigQueryExport updateBigQueryExport(UpdateBigQueryExportRequest req * is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderName parent) { + public final ListBigQueryExportsPagedResponse listBigQueryExports(@Nullable FolderName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8722,7 +8734,8 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderName par * is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryExportsPagedResponse listBigQueryExports(OrganizationName parent) { + public final ListBigQueryExportsPagedResponse listBigQueryExports( + @Nullable OrganizationName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8757,7 +8770,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(OrganizationNa * is `organizations/[organization_id]`, `folders/[folder_id]`, `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryExportsPagedResponse listBigQueryExports(ProjectName parent) { + public final ListBigQueryExportsPagedResponse listBigQueryExports(@Nullable ProjectName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8949,7 +8962,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule( - EventThreatDetectionSettingsName parent, + @Nullable EventThreatDetectionSettingsName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule) { CreateEventThreatDetectionCustomModuleRequest request = CreateEventThreatDetectionCustomModuleRequest.newBuilder() @@ -9105,7 +9118,7 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteEventThreatDetectionCustomModule( - EventThreatDetectionCustomModuleName name) { + @Nullable EventThreatDetectionCustomModuleName name) { DeleteEventThreatDetectionCustomModuleRequest request = DeleteEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9249,7 +9262,7 @@ public final void deleteEventThreatDetectionCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule( - EventThreatDetectionCustomModuleName name) { + @Nullable EventThreatDetectionCustomModuleName name) { GetEventThreatDetectionCustomModuleRequest request = GetEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9394,7 +9407,8 @@ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse - listDescendantEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent) { + listDescendantEventThreatDetectionCustomModules( + @Nullable EventThreatDetectionSettingsName parent) { ListDescendantEventThreatDetectionCustomModulesRequest request = ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9600,7 +9614,7 @@ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse - listEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent) { + listEventThreatDetectionCustomModules(@Nullable EventThreatDetectionSettingsName parent) { ListEventThreatDetectionCustomModulesRequest request = ListEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9983,7 +9997,7 @@ public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomMo */ public final EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule( - EffectiveEventThreatDetectionCustomModuleName name) { + @Nullable EffectiveEventThreatDetectionCustomModuleName name) { GetEffectiveEventThreatDetectionCustomModuleRequest request = GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10132,7 +10146,8 @@ public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse - listEffectiveEventThreatDetectionCustomModules(EventThreatDetectionSettingsName parent) { + listEffectiveEventThreatDetectionCustomModules( + @Nullable EventThreatDetectionSettingsName parent) { ListEffectiveEventThreatDetectionCustomModulesRequest request = ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10337,7 +10352,7 @@ public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs( - OrganizationName parent, List requests) { + @Nullable OrganizationName parent, List requests) { BatchCreateResourceValueConfigsRequest request = BatchCreateResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10468,7 +10483,7 @@ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueCon * @param name Required. Name of the ResourceValueConfig to delete * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteResourceValueConfig(ResourceValueConfigName name) { + public final void deleteResourceValueConfig(@Nullable ResourceValueConfigName name) { DeleteResourceValueConfigRequest request = DeleteResourceValueConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10588,7 +10603,7 @@ public final void deleteResourceValueConfig(DeleteResourceValueConfigRequest req * `organizations/{organization}/resourceValueConfigs/{config_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceValueConfig getResourceValueConfig(ResourceValueConfigName name) { + public final ResourceValueConfig getResourceValueConfig(@Nullable ResourceValueConfigName name) { GetResourceValueConfigRequest request = GetResourceValueConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10712,7 +10727,7 @@ public final ResourceValueConfig getResourceValueConfig(GetResourceValueConfigRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListResourceValueConfigsRequest request = ListResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10981,7 +10996,7 @@ public final ResourceValueConfig updateResourceValueConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListValuedResourcesPagedResponse listValuedResources( - OrganizationSimulationName parent) { + @Nullable OrganizationSimulationName parent) { ListValuedResourcesRequest request = ListValuedResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11162,7 +11177,7 @@ public final ListValuedResourcesPagedResponse listValuedResources( * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttackPathsPagedResponse listAttackPaths(ValuedResourceName parent) { + public final ListAttackPathsPagedResponse listAttackPaths(@Nullable ValuedResourceName parent) { ListAttackPathsRequest request = ListAttackPathsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -11373,8 +11388,8 @@ public static class GroupAssetsPage extends AbstractPage { private GroupAssetsPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { super(context, response); } @@ -11384,14 +11399,14 @@ private static GroupAssetsPage createEmptyPage() { @Override protected GroupAssetsPage createPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { return new GroupAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11405,7 +11420,8 @@ public static class GroupAssetsFixedSizeCollection GroupAssetsPage, GroupAssetsFixedSizeCollection> { - private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { + private GroupAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11415,7 +11431,7 @@ private static GroupAssetsFixedSizeCollection createEmptyCollection() { @Override protected GroupAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupAssetsFixedSizeCollection(pages, collectionSize); } } @@ -11449,8 +11465,8 @@ public static class GroupFindingsPage GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage> { private GroupFindingsPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { super(context, response); } @@ -11460,14 +11476,14 @@ private static GroupFindingsPage createEmptyPage() { @Override protected GroupFindingsPage createPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { return new GroupFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11481,7 +11497,8 @@ public static class GroupFindingsFixedSizeCollection GroupFindingsPage, GroupFindingsFixedSizeCollection> { - private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { + private GroupFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11491,7 +11508,7 @@ private static GroupFindingsFixedSizeCollection createEmptyCollection() { @Override protected GroupFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupFindingsFixedSizeCollection(pages, collectionSize); } } @@ -11527,9 +11544,10 @@ public static class ListAssetsPage ListAssetsPage> { private ListAssetsPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { super(context, response); } @@ -11539,15 +11557,17 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11562,7 +11582,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11572,7 +11593,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -11619,12 +11640,13 @@ public static class ListDescendantSecurityHealthAnalyticsCustomModulesPage ListDescendantSecurityHealthAnalyticsCustomModulesPage> { private ListDescendantSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -11634,18 +11656,20 @@ private static ListDescendantSecurityHealthAnalyticsCustomModulesPage createEmpt @Override protected ListDescendantSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { return new ListDescendantSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> @@ -11664,7 +11688,8 @@ public static class ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeC ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -11676,7 +11701,7 @@ private ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, + @Nullable List pages, int collectionSize) { return new ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( pages, collectionSize); @@ -11717,10 +11742,11 @@ public static class ListFindingsPage ListFindingsPage> { private ListFindingsPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { super(context, response); } @@ -11730,16 +11756,18 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, ApiFuture futureResponse) { @@ -11755,7 +11783,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11765,7 +11794,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } @@ -11799,8 +11828,8 @@ public static class ListMuteConfigsPage ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage> { private ListMuteConfigsPage( - PageContext context, - ListMuteConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMuteConfigsResponse response) { super(context, response); } @@ -11810,14 +11839,14 @@ private static ListMuteConfigsPage createEmptyPage() { @Override protected ListMuteConfigsPage createPage( - PageContext context, - ListMuteConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMuteConfigsResponse response) { return new ListMuteConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11832,7 +11861,7 @@ public static class ListMuteConfigsFixedSizeCollection ListMuteConfigsFixedSizeCollection> { private ListMuteConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11842,7 +11871,7 @@ private static ListMuteConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListMuteConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMuteConfigsFixedSizeCollection(pages, collectionSize); } } @@ -11881,10 +11910,11 @@ public static class ListNotificationConfigsPage ListNotificationConfigsPage> { private ListNotificationConfigsPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { super(context, response); } @@ -11894,16 +11924,18 @@ private static ListNotificationConfigsPage createEmptyPage() { @Override protected ListNotificationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { return new ListNotificationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, ApiFuture futureResponse) { @@ -11920,7 +11952,7 @@ public static class ListNotificationConfigsFixedSizeCollection ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11930,7 +11962,7 @@ private static ListNotificationConfigsFixedSizeCollection createEmptyCollection( @Override protected ListNotificationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -11977,12 +12009,13 @@ public static class ListEffectiveSecurityHealthAnalyticsCustomModulesPage ListEffectiveSecurityHealthAnalyticsCustomModulesPage> { private ListEffectiveSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> context, - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -11992,18 +12025,20 @@ private static ListEffectiveSecurityHealthAnalyticsCustomModulesPage createEmpty @Override protected ListEffectiveSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> context, - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> @@ -12022,7 +12057,8 @@ public static class ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCo ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -12033,7 +12069,8 @@ private ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -12079,12 +12116,13 @@ public static class ListSecurityHealthAnalyticsCustomModulesPage ListSecurityHealthAnalyticsCustomModulesPage> { private ListSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -12094,18 +12132,20 @@ private static ListSecurityHealthAnalyticsCustomModulesPage createEmptyPage() { @Override protected ListSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListSecurityHealthAnalyticsCustomModulesResponse response) { return new ListSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> @@ -12124,7 +12164,7 @@ public static class ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12135,7 +12175,7 @@ private ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection(pages, collectionSize); } } @@ -12166,8 +12206,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -12177,14 +12217,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12198,7 +12238,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12208,7 +12249,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } @@ -12246,9 +12287,10 @@ public static class ListBigQueryExportsPage ListBigQueryExportsPage> { private ListBigQueryExportsPage( - PageContext + @Nullable + PageContext context, - ListBigQueryExportsResponse response) { + @Nullable ListBigQueryExportsResponse response) { super(context, response); } @@ -12258,15 +12300,17 @@ private static ListBigQueryExportsPage createEmptyPage() { @Override protected ListBigQueryExportsPage createPage( - PageContext + @Nullable + PageContext context, - ListBigQueryExportsResponse response) { + @Nullable ListBigQueryExportsResponse response) { return new ListBigQueryExportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -12282,7 +12326,7 @@ public static class ListBigQueryExportsFixedSizeCollection ListBigQueryExportsFixedSizeCollection> { private ListBigQueryExportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12292,7 +12336,7 @@ private static ListBigQueryExportsFixedSizeCollection createEmptyCollection() { @Override protected ListBigQueryExportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBigQueryExportsFixedSizeCollection(pages, collectionSize); } } @@ -12339,12 +12383,13 @@ public static class ListDescendantEventThreatDetectionCustomModulesPage ListDescendantEventThreatDetectionCustomModulesPage> { private ListDescendantEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListDescendantEventThreatDetectionCustomModulesResponse response) { + @Nullable ListDescendantEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -12354,18 +12399,20 @@ private static ListDescendantEventThreatDetectionCustomModulesPage createEmptyPa @Override protected ListDescendantEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListDescendantEventThreatDetectionCustomModulesResponse response) { + @Nullable ListDescendantEventThreatDetectionCustomModulesResponse response) { return new ListDescendantEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> @@ -12384,7 +12431,8 @@ public static class ListDescendantEventThreatDetectionCustomModulesFixedSizeColl ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection> { private ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -12395,7 +12443,8 @@ private ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -12439,12 +12488,13 @@ public static class ListEventThreatDetectionCustomModulesPage ListEventThreatDetectionCustomModulesPage> { private ListEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -12454,18 +12504,20 @@ private static ListEventThreatDetectionCustomModulesPage createEmptyPage() { @Override protected ListEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEventThreatDetectionCustomModulesResponse response) { return new ListEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> @@ -12484,7 +12536,7 @@ public static class ListEventThreatDetectionCustomModulesFixedSizeCollection ListEventThreatDetectionCustomModulesFixedSizeCollection> { private ListEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12495,7 +12547,7 @@ private ListEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventThreatDetectionCustomModulesFixedSizeCollection(pages, collectionSize); } } @@ -12542,12 +12594,13 @@ public static class ListEffectiveEventThreatDetectionCustomModulesPage ListEffectiveEventThreatDetectionCustomModulesPage> { private ListEffectiveEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> context, - ListEffectiveEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEffectiveEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -12557,18 +12610,20 @@ private static ListEffectiveEventThreatDetectionCustomModulesPage createEmptyPag @Override protected ListEffectiveEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> context, - ListEffectiveEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEffectiveEventThreatDetectionCustomModulesResponse response) { return new ListEffectiveEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> @@ -12587,7 +12642,8 @@ public static class ListEffectiveEventThreatDetectionCustomModulesFixedSizeColle ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection> { private ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -12598,7 +12654,8 @@ private ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -12640,12 +12697,13 @@ public static class ListResourceValueConfigsPage ListResourceValueConfigsPage> { private ListResourceValueConfigsPage( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> context, - ListResourceValueConfigsResponse response) { + @Nullable ListResourceValueConfigsResponse response) { super(context, response); } @@ -12655,18 +12713,20 @@ private static ListResourceValueConfigsPage createEmptyPage() { @Override protected ListResourceValueConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> context, - ListResourceValueConfigsResponse response) { + @Nullable ListResourceValueConfigsResponse response) { return new ListResourceValueConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> @@ -12685,7 +12745,7 @@ public static class ListResourceValueConfigsFixedSizeCollection ListResourceValueConfigsFixedSizeCollection> { private ListResourceValueConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12695,7 +12755,7 @@ private static ListResourceValueConfigsFixedSizeCollection createEmptyCollection @Override protected ListResourceValueConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceValueConfigsFixedSizeCollection(pages, collectionSize); } } @@ -12733,9 +12793,10 @@ public static class ListValuedResourcesPage ListValuedResourcesPage> { private ListValuedResourcesPage( - PageContext + @Nullable + PageContext context, - ListValuedResourcesResponse response) { + @Nullable ListValuedResourcesResponse response) { super(context, response); } @@ -12745,15 +12806,17 @@ private static ListValuedResourcesPage createEmptyPage() { @Override protected ListValuedResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListValuedResourcesResponse response) { + @Nullable ListValuedResourcesResponse response) { return new ListValuedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -12769,7 +12832,7 @@ public static class ListValuedResourcesFixedSizeCollection ListValuedResourcesFixedSizeCollection> { private ListValuedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12779,7 +12842,7 @@ private static ListValuedResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListValuedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListValuedResourcesFixedSizeCollection(pages, collectionSize); } } @@ -12813,8 +12876,8 @@ public static class ListAttackPathsPage ListAttackPathsRequest, ListAttackPathsResponse, AttackPath, ListAttackPathsPage> { private ListAttackPathsPage( - PageContext context, - ListAttackPathsResponse response) { + @Nullable PageContext context, + @Nullable ListAttackPathsResponse response) { super(context, response); } @@ -12824,14 +12887,14 @@ private static ListAttackPathsPage createEmptyPage() { @Override protected ListAttackPathsPage createPage( - PageContext context, - ListAttackPathsResponse response) { + @Nullable PageContext context, + @Nullable ListAttackPathsResponse response) { return new ListAttackPathsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -12846,7 +12909,7 @@ public static class ListAttackPathsFixedSizeCollection ListAttackPathsFixedSizeCollection> { private ListAttackPathsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -12856,7 +12919,7 @@ private static ListAttackPathsFixedSizeCollection createEmptyCollection() { @Override protected ListAttackPathsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttackPathsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java index 610e1846497b..332a3a4758e7 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -696,7 +697,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); } @@ -716,7 +717,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java index e41636fb00e7..d4138ffb49a2 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -144,6 +144,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,11 +156,12 @@ @Generated("by gapic-generator-java") public abstract class SecurityCenterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index c50e54df283b..ebd913f502dd 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -180,6 +180,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -2136,7 +2137,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); } @@ -2498,7 +2499,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); bulkMuteFindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java index 783ca61a92c2..acefb60c8d7c 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java @@ -45,6 +45,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. /** @@ -467,7 +468,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecurityCenterClient implements BackgroundResource { - private final SecurityCenterSettings settings; + private final @Nullable SecurityCenterSettings settings; private final SecurityCenterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -515,7 +516,7 @@ protected SecurityCenterClient(SecurityCenterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecurityCenterSettings getSettings() { + public final @Nullable SecurityCenterSettings getSettings() { return settings; } @@ -565,7 +566,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source createSource(OrganizationName parent, Source source) { + public final Source createSource(@Nullable OrganizationName parent, Source source) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -691,7 +692,8 @@ public final UnaryCallable createSourceCallable() { * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding createFinding(SourceName parent, String findingId, Finding finding) { + public final Finding createFinding( + @Nullable SourceName parent, String findingId, Finding finding) { CreateFindingRequest request = CreateFindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -821,7 +823,7 @@ public final UnaryCallable createFindingCallable( * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -935,7 +937,8 @@ public final UnaryCallable getIamPolicyCallable() { * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrganizationSettings getOrganizationSettings(OrganizationSettingsName name) { + public final OrganizationSettings getOrganizationSettings( + @Nullable OrganizationSettingsName name) { GetOrganizationSettingsRequest request = GetOrganizationSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1051,7 +1054,7 @@ public final OrganizationSettings getOrganizationSettings( * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -1294,7 +1297,8 @@ public final UnaryCallable groupAssetsC * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) { + public final GroupFindingsPagedResponse groupFindings( + @Nullable SourceName parent, String groupBy) { GroupFindingsRequest request = GroupFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1736,7 +1740,7 @@ public final UnaryCallable listFindin * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(OrganizationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable OrganizationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1901,7 +1905,8 @@ public final UnaryCallable listSourcesC * "organizations/[organization_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture runAssetDiscoveryAsync(OrganizationName parent) { + public final OperationFuture runAssetDiscoveryAsync( + @Nullable OrganizationName parent) { RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2062,7 +2067,8 @@ public final UnaryCallable runAssetDiscover * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { + public final Finding setFindingState( + @Nullable FindingName name, Finding.State state, Timestamp startTime) { SetFindingStateRequest request = SetFindingStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2193,7 +2199,7 @@ public final UnaryCallable setFindingStateCalla * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2321,7 +2327,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2833,8 +2839,8 @@ public static class GroupAssetsPage extends AbstractPage { private GroupAssetsPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { super(context, response); } @@ -2844,14 +2850,14 @@ private static GroupAssetsPage createEmptyPage() { @Override protected GroupAssetsPage createPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { return new GroupAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2865,7 +2871,8 @@ public static class GroupAssetsFixedSizeCollection GroupAssetsPage, GroupAssetsFixedSizeCollection> { - private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { + private GroupAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2875,7 +2882,7 @@ private static GroupAssetsFixedSizeCollection createEmptyCollection() { @Override protected GroupAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupAssetsFixedSizeCollection(pages, collectionSize); } } @@ -2909,8 +2916,8 @@ public static class GroupFindingsPage GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage> { private GroupFindingsPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { super(context, response); } @@ -2920,14 +2927,14 @@ private static GroupFindingsPage createEmptyPage() { @Override protected GroupFindingsPage createPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { return new GroupFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2941,7 +2948,8 @@ public static class GroupFindingsFixedSizeCollection GroupFindingsPage, GroupFindingsFixedSizeCollection> { - private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { + private GroupFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2951,7 +2959,7 @@ private static GroupFindingsFixedSizeCollection createEmptyCollection() { @Override protected GroupFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupFindingsFixedSizeCollection(pages, collectionSize); } } @@ -2987,9 +2995,10 @@ public static class ListAssetsPage ListAssetsPage> { private ListAssetsPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { super(context, response); } @@ -2999,15 +3008,17 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3022,7 +3033,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3032,7 +3044,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -3065,8 +3077,8 @@ public static class ListFindingsPage extends AbstractPage { private ListFindingsPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { super(context, response); } @@ -3076,14 +3088,14 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3097,7 +3109,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3107,7 +3120,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } @@ -3138,8 +3151,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -3149,14 +3162,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3170,7 +3183,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3180,7 +3194,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java index 44b5f63852d2..c320c72544e1 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -311,7 +312,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java index 3be69dd78d78..2c762e46c407 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java @@ -60,6 +60,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -72,11 +73,12 @@ @Generated("by gapic-generator-java") public abstract class SecurityCenterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java index ebb0e151b7e9..3acc8d6b27b9 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -677,7 +678,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); } @@ -833,7 +834,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java index 27009e2dc97d..d6942f4cf068 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java @@ -46,6 +46,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. /** @@ -585,7 +586,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SecurityCenterClient implements BackgroundResource { - private final SecurityCenterSettings settings; + private final @Nullable SecurityCenterSettings settings; private final SecurityCenterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -633,7 +634,7 @@ protected SecurityCenterClient(SecurityCenterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecurityCenterSettings getSettings() { + public final @Nullable SecurityCenterSettings getSettings() { return settings; } @@ -683,7 +684,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source createSource(OrganizationName parent, Source source) { + public final Source createSource(@Nullable OrganizationName parent, Source source) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -807,7 +808,8 @@ public final UnaryCallable createSourceCallable() { * @param findingId Required. Unique identifier provided by the client within the parent scope. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding createFinding(SourceName parent, Finding finding, String findingId) { + public final Finding createFinding( + @Nullable SourceName parent, Finding finding, String findingId) { CreateFindingRequest request = CreateFindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -844,7 +846,8 @@ public final Finding createFinding(SourceName parent, Finding finding, String fi * as they are both output only fields on this resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding createFinding(SourceName parent, String findingId, Finding finding) { + public final Finding createFinding( + @Nullable SourceName parent, String findingId, Finding finding) { CreateFindingRequest request = CreateFindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1016,7 +1019,7 @@ public final UnaryCallable createFindingCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - OrganizationName parent, NotificationConfig notificationConfig) { + @Nullable OrganizationName parent, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1092,7 +1095,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - OrganizationName parent, String configId, NotificationConfig notificationConfig) { + @Nullable OrganizationName parent, String configId, NotificationConfig notificationConfig) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1228,7 +1231,7 @@ public final NotificationConfig createNotificationConfig( * "organizations/[organization_id]/notificationConfigs/[config_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationConfig(NotificationConfigName name) { + public final void deleteNotificationConfig(@Nullable NotificationConfigName name) { DeleteNotificationConfigRequest request = DeleteNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1345,7 +1348,7 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1462,7 +1465,7 @@ public final UnaryCallable getIamPolicyCallable() { * "organizations/[organization_id]/notificationConfigs/[config_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotificationConfig getNotificationConfig(NotificationConfigName name) { + public final NotificationConfig getNotificationConfig(@Nullable NotificationConfigName name) { GetNotificationConfigRequest request = GetNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1579,7 +1582,8 @@ public final NotificationConfig getNotificationConfig(GetNotificationConfigReque * "organizations/[organization_id]/organizationSettings". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrganizationSettings getOrganizationSettings(OrganizationSettingsName name) { + public final OrganizationSettings getOrganizationSettings( + @Nullable OrganizationSettingsName name) { GetOrganizationSettingsRequest request = GetOrganizationSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1695,7 +1699,7 @@ public final OrganizationSettings getOrganizationSettings( * "organizations/[organization_id]/source/[source_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -1947,7 +1951,8 @@ public final UnaryCallable groupAssetsC * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) { + public final GroupFindingsPagedResponse groupFindings( + @Nullable SourceName parent, String groupBy) { GroupFindingsRequest request = GroupFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2166,7 +2171,7 @@ public final UnaryCallable groupFin * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(FolderName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable FolderName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -2197,7 +2202,7 @@ public final ListAssetsPagedResponse listAssets(FolderName parent) { * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(OrganizationName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable OrganizationName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -2228,7 +2233,7 @@ public final ListAssetsPagedResponse listAssets(OrganizationName parent) { * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(ProjectName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable ProjectName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -2414,7 +2419,7 @@ public final UnaryCallable listAssetsCall * projects/{projects_id}/sources/- * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsPagedResponse listFindings(SourceName parent) { + public final ListFindingsPagedResponse listFindings(@Nullable SourceName parent) { ListFindingsRequest request = ListFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2617,7 +2622,7 @@ public final UnaryCallable listFindin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationConfigsPagedResponse listNotificationConfigs( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2787,7 +2792,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(FolderName parent) { + public final ListSourcesPagedResponse listSources(@Nullable FolderName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2819,7 +2824,7 @@ public final ListSourcesPagedResponse listSources(FolderName parent) { * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(OrganizationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable OrganizationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2851,7 +2856,7 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) { * "organizations/[organization_id], folders/[folder_id], or projects/[project_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(ProjectName parent) { + public final ListSourcesPagedResponse listSources(@Nullable ProjectName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3018,7 +3023,7 @@ public final UnaryCallable listSourcesC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture runAssetDiscoveryAsync( - OrganizationName parent) { + @Nullable OrganizationName parent) { RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3183,7 +3188,8 @@ public final UnaryCallable runAssetDiscover * @param startTime Required. The time at which the updated state takes effect. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setFindingState(FindingName name, Finding.State state, Timestamp startTime) { + public final Finding setFindingState( + @Nullable FindingName name, Finding.State state, Timestamp startTime) { SetFindingStateRequest request = SetFindingStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3322,7 +3328,7 @@ public final UnaryCallable setFindingStateCalla * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3452,7 +3458,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4197,8 +4203,8 @@ public static class GroupAssetsPage extends AbstractPage { private GroupAssetsPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { super(context, response); } @@ -4208,14 +4214,14 @@ private static GroupAssetsPage createEmptyPage() { @Override protected GroupAssetsPage createPage( - PageContext context, - GroupAssetsResponse response) { + @Nullable PageContext context, + @Nullable GroupAssetsResponse response) { return new GroupAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4229,7 +4235,8 @@ public static class GroupAssetsFixedSizeCollection GroupAssetsPage, GroupAssetsFixedSizeCollection> { - private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { + private GroupAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4239,7 +4246,7 @@ private static GroupAssetsFixedSizeCollection createEmptyCollection() { @Override protected GroupAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupAssetsFixedSizeCollection(pages, collectionSize); } } @@ -4273,8 +4280,8 @@ public static class GroupFindingsPage GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage> { private GroupFindingsPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { super(context, response); } @@ -4284,14 +4291,14 @@ private static GroupFindingsPage createEmptyPage() { @Override protected GroupFindingsPage createPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { return new GroupFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4305,7 +4312,8 @@ public static class GroupFindingsFixedSizeCollection GroupFindingsPage, GroupFindingsFixedSizeCollection> { - private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { + private GroupFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4315,7 +4323,7 @@ private static GroupFindingsFixedSizeCollection createEmptyCollection() { @Override protected GroupFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupFindingsFixedSizeCollection(pages, collectionSize); } } @@ -4351,9 +4359,10 @@ public static class ListAssetsPage ListAssetsPage> { private ListAssetsPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { super(context, response); } @@ -4363,15 +4372,17 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext + @Nullable + PageContext context, - ListAssetsResponse response) { + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4386,7 +4397,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4396,7 +4408,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -4435,10 +4447,11 @@ public static class ListFindingsPage ListFindingsPage> { private ListFindingsPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { super(context, response); } @@ -4448,16 +4461,18 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, ApiFuture futureResponse) { @@ -4473,7 +4488,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4483,7 +4499,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } @@ -4522,10 +4538,11 @@ public static class ListNotificationConfigsPage ListNotificationConfigsPage> { private ListNotificationConfigsPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { super(context, response); } @@ -4535,16 +4552,18 @@ private static ListNotificationConfigsPage createEmptyPage() { @Override protected ListNotificationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { return new ListNotificationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, ApiFuture futureResponse) { @@ -4561,7 +4580,7 @@ public static class ListNotificationConfigsFixedSizeCollection ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4571,7 +4590,7 @@ private static ListNotificationConfigsFixedSizeCollection createEmptyCollection( @Override protected ListNotificationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -4602,8 +4621,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -4613,14 +4632,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4634,7 +4653,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4644,7 +4664,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java index a5ce342dac8b..4d48d8ce5e9a 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,7 +326,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); } @@ -345,7 +346,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java index 027b4e9180e3..90477a31297f 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java @@ -69,6 +69,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -81,11 +82,12 @@ @Generated("by gapic-generator-java") public abstract class SecurityCenterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java index 63b35acd94ec..12a69f9412f5 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -811,7 +812,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); } @@ -986,7 +987,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterClient.java index 4758791e4077..e869c98885a8 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterClient.java @@ -45,6 +45,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. /** @@ -921,7 +922,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityCenterClient implements BackgroundResource { - private final SecurityCenterSettings settings; + private final @Nullable SecurityCenterSettings settings; private final SecurityCenterStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -969,7 +970,7 @@ protected SecurityCenterClient(SecurityCenterStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecurityCenterSettings getSettings() { + public final @Nullable SecurityCenterSettings getSettings() { return settings; } @@ -1021,7 +1022,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs( - OrganizationLocationName parent, List requests) { + @Nullable OrganizationLocationName parent, List requests) { BatchCreateResourceValueConfigsRequest request = BatchCreateResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1057,7 +1058,7 @@ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueConfigs( - OrganizationName parent, List requests) { + @Nullable OrganizationName parent, List requests) { BatchCreateResourceValueConfigsRequest request = BatchCreateResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1195,7 +1196,7 @@ public final BatchCreateResourceValueConfigsResponse batchCreateResourceValueCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture bulkMuteFindingsAsync( - ResourceName parent) { + @Nullable ResourceName parent) { BulkMuteFindingsRequest request = BulkMuteFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1365,7 +1366,7 @@ public final UnaryCallable bulkMuteFindingsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - FolderLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable FolderLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1407,7 +1408,7 @@ public final BigQueryExport createBigQueryExport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - LocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable LocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1449,7 +1450,9 @@ public final BigQueryExport createBigQueryExport( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BigQueryExport createBigQueryExport( - OrganizationLocationName parent, BigQueryExport bigQueryExport, String bigQueryExportId) { + @Nullable OrganizationLocationName parent, + BigQueryExport bigQueryExport, + String bigQueryExportId) { CreateBigQueryExportRequest request = CreateBigQueryExportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1593,7 +1596,8 @@ public final BigQueryExport createBigQueryExport(CreateBigQueryExportRequest req * in length. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding createFinding(SourceName parent, Finding finding, String findingId) { + public final Finding createFinding( + @Nullable SourceName parent, Finding finding, String findingId) { CreateFindingRequest request = CreateFindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1738,7 +1742,7 @@ public final UnaryCallable createFindingCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - FolderLocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable FolderLocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1779,7 +1783,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - FolderName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable FolderName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1820,7 +1824,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - LocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable LocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1861,7 +1865,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable OrganizationLocationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1902,7 +1906,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - OrganizationName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable OrganizationName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1943,7 +1947,7 @@ public final MuteConfig createMuteConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MuteConfig createMuteConfig( - ProjectName parent, MuteConfig muteConfig, String muteConfigId) { + @Nullable ProjectName parent, MuteConfig muteConfig, String muteConfigId) { CreateMuteConfigRequest request = CreateMuteConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2087,7 +2091,7 @@ public final UnaryCallable createMuteConfig * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - FolderLocationName parent, NotificationConfig notificationConfig, String configId) { + @Nullable FolderLocationName parent, NotificationConfig notificationConfig, String configId) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2130,7 +2134,7 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - LocationName parent, NotificationConfig notificationConfig, String configId) { + @Nullable LocationName parent, NotificationConfig notificationConfig, String configId) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2173,7 +2177,9 @@ public final NotificationConfig createNotificationConfig( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationConfig createNotificationConfig( - OrganizationLocationName parent, NotificationConfig notificationConfig, String configId) { + @Nullable OrganizationLocationName parent, + NotificationConfig notificationConfig, + String configId) { CreateNotificationConfigRequest request = CreateNotificationConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2313,7 +2319,7 @@ public final NotificationConfig createNotificationConfig( * used. All other fields will be ignored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source createSource(OrganizationName parent, Source source) { + public final Source createSource(@Nullable OrganizationName parent, Source source) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2437,7 +2443,7 @@ public final UnaryCallable createSourceCallable() { * `projects/{project}/locations/{location}/bigQueryExports/{export_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBigQueryExport(BigQueryExportName name) { + public final void deleteBigQueryExport(@Nullable BigQueryExportName name) { DeleteBigQueryExportRequest request = DeleteBigQueryExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2570,7 +2576,7 @@ public final UnaryCallable deleteBigQueryExp * `projects/{project}/locations/{location}/muteConfigs/{config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMuteConfig(MuteConfigName name) { + public final void deleteMuteConfig(@Nullable MuteConfigName name) { DeleteMuteConfigRequest request = DeleteMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteMuteConfig(request); @@ -2697,7 +2703,7 @@ public final UnaryCallable deleteMuteConfigCalla * `projects/[project_id]/locations/[location_id]notificationConfigs/[config_id]` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationConfig(NotificationConfigName name) { + public final void deleteNotificationConfig(@Nullable NotificationConfigName name) { DeleteNotificationConfigRequest request = DeleteNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2826,7 +2832,7 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque * @param name Required. Name of the ResourceValueConfig to delete * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteResourceValueConfig(ResourceValueConfigName name) { + public final void deleteResourceValueConfig(@Nullable ResourceValueConfigName name) { DeleteResourceValueConfigRequest request = DeleteResourceValueConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2954,7 +2960,7 @@ public final void deleteResourceValueConfig(DeleteResourceValueConfigRequest req * `projects/{project}locations/{location}//bigQueryExports/{export_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryExport getBigQueryExport(BigQueryExportName name) { + public final BigQueryExport getBigQueryExport(@Nullable BigQueryExportName name) { GetBigQueryExportRequest request = GetBigQueryExportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3081,7 +3087,7 @@ public final UnaryCallable getBigQuery * `organizations/{organization}/simulations/{simulation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Simulation getSimulation(SimulationName name) { + public final Simulation getSimulation(@Nullable SimulationName name) { GetSimulationRequest request = GetSimulationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSimulation(request); @@ -3201,7 +3207,7 @@ public final UnaryCallable getSimulationCallab * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ValuedResource getValuedResource(ValuedResourceName name) { + public final ValuedResource getValuedResource(@Nullable ValuedResourceName name) { GetValuedResourceRequest request = GetValuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3324,7 +3330,7 @@ public final UnaryCallable getValuedRe * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3447,7 +3453,7 @@ public final UnaryCallable getIamPolicyCallable() { * `projects/{project}/locations/{location}/muteConfigs/{config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MuteConfig getMuteConfig(MuteConfigName name) { + public final MuteConfig getMuteConfig(@Nullable MuteConfigName name) { GetMuteConfigRequest request = GetMuteConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMuteConfig(request); @@ -3575,7 +3581,7 @@ public final UnaryCallable getMuteConfigCallab * `projects/[project_id]/locations/[location_id]/notificationConfigs/[config_id]` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NotificationConfig getNotificationConfig(NotificationConfigName name) { + public final NotificationConfig getNotificationConfig(@Nullable NotificationConfigName name) { GetNotificationConfigRequest request = GetNotificationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3705,7 +3711,7 @@ public final NotificationConfig getNotificationConfig(GetNotificationConfigReque * organizations/{organization}/resourceValueConfigs/{config_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ResourceValueConfig getResourceValueConfig(ResourceValueConfigName name) { + public final ResourceValueConfig getResourceValueConfig(@Nullable ResourceValueConfigName name) { GetResourceValueConfigRequest request = GetResourceValueConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3829,7 +3835,7 @@ public final ResourceValueConfig getResourceValueConfig(GetResourceValueConfigRe * `organizations/[organization_id]/source/[source_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -3969,7 +3975,8 @@ public final UnaryCallable getSourceCallable() { * "parent,resource_name". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GroupFindingsPagedResponse groupFindings(SourceName parent, String groupBy) { + public final GroupFindingsPagedResponse groupFindings( + @Nullable SourceName parent, String groupBy) { GroupFindingsRequest request = GroupFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4210,7 +4217,8 @@ public final UnaryCallable groupFin * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttackPathsPagedResponse listAttackPaths(OrganizationValuedResourceName parent) { + public final ListAttackPathsPagedResponse listAttackPaths( + @Nullable OrganizationValuedResourceName parent) { ListAttackPathsRequest request = ListAttackPathsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4247,7 +4255,7 @@ public final ListAttackPathsPagedResponse listAttackPaths(OrganizationValuedReso * `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAttackPathsPagedResponse listAttackPaths(ValuedResourceName parent) { + public final ListAttackPathsPagedResponse listAttackPaths(@Nullable ValuedResourceName parent) { ListAttackPathsRequest request = ListAttackPathsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4436,7 +4444,8 @@ public final ListAttackPathsPagedResponse listAttackPaths(ListAttackPathsRequest * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderLocationName parent) { + public final ListBigQueryExportsPagedResponse listBigQueryExports( + @Nullable FolderLocationName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4473,7 +4482,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(FolderLocation * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryExportsPagedResponse listBigQueryExports(LocationName parent) { + public final ListBigQueryExportsPagedResponse listBigQueryExports(@Nullable LocationName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4511,7 +4520,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports(LocationName p * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListBigQueryExportsPagedResponse listBigQueryExports( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListBigQueryExportsRequest request = ListBigQueryExportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4715,7 +4724,7 @@ public final ListBigQueryExportsPagedResponse listBigQueryExports( * `projects/{projects_id}/sources/-/locations/{location_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsPagedResponse listFindings(SourceName parent) { + public final ListFindingsPagedResponse listFindings(@Nullable SourceName parent) { ListFindingsRequest request = ListFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4938,7 +4947,7 @@ public final UnaryCallable listFindin * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(FolderLocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable FolderLocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4973,7 +4982,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderLocationName par * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable FolderName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5008,7 +5017,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(FolderName parent) { * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(LocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable LocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5043,7 +5052,8 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(LocationName parent) { * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationLocationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs( + @Nullable OrganizationLocationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5078,7 +5088,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationLocationNa * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable OrganizationName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5113,7 +5123,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(OrganizationName paren * `projects/[project_id]/locations/[location_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMuteConfigsPagedResponse listMuteConfigs(ProjectName parent) { + public final ListMuteConfigsPagedResponse listMuteConfigs(@Nullable ProjectName parent) { ListMuteConfigsRequest request = ListMuteConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5286,7 +5296,7 @@ public final ListMuteConfigsPagedResponse listMuteConfigs(ListMuteConfigsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationConfigsPagedResponse listNotificationConfigs( - FolderLocationName parent) { + @Nullable FolderLocationName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5321,7 +5331,8 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * "projects/[project_id]/locations/[location_id]". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationConfigsPagedResponse listNotificationConfigs(LocationName parent) { + public final ListNotificationConfigsPagedResponse listNotificationConfigs( + @Nullable LocationName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5357,7 +5368,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(Locati * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationConfigsPagedResponse listNotificationConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListNotificationConfigsRequest request = ListNotificationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5531,7 +5542,7 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListResourceValueConfigsRequest request = ListResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5565,7 +5576,7 @@ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs( - OrganizationName parent) { + @Nullable OrganizationName parent) { ListResourceValueConfigsRequest request = ListResourceValueConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5735,7 +5746,7 @@ public final ListResourceValueConfigsPagedResponse listResourceValueConfigs( * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(FolderName parent) { + public final ListSourcesPagedResponse listSources(@Nullable FolderName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5767,7 +5778,7 @@ public final ListSourcesPagedResponse listSources(FolderName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(OrganizationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable OrganizationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5799,7 +5810,7 @@ public final ListSourcesPagedResponse listSources(OrganizationName parent) { * `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(ProjectName parent) { + public final ListSourcesPagedResponse listSources(@Nullable ProjectName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5966,7 +5977,8 @@ public final UnaryCallable listSourcesC * `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListValuedResourcesPagedResponse listValuedResources(SimulationName parent) { + public final ListValuedResourcesPagedResponse listValuedResources( + @Nullable SimulationName parent) { ListValuedResourcesRequest request = ListValuedResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6159,7 +6171,7 @@ public final ListValuedResourcesPagedResponse listValuedResources( * @param state Required. The desired State of the finding. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setFindingState(FindingName name, Finding.State state) { + public final Finding setFindingState(@Nullable FindingName name, Finding.State state) { SetFindingStateRequest request = SetFindingStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6296,7 +6308,7 @@ public final UnaryCallable setFindingStateCalla * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -6432,7 +6444,7 @@ public final UnaryCallable setIamPolicyCallable() { * @param mute Required. The desired state of the Mute. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding setMute(FindingName name, Finding.Mute mute) { + public final Finding setMute(@Nullable FindingName name, Finding.Mute mute) { SetMuteRequest request = SetMuteRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6572,7 +6584,7 @@ public final UnaryCallable setMuteCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -7495,8 +7507,8 @@ public static class GroupFindingsPage GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage> { private GroupFindingsPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { super(context, response); } @@ -7506,14 +7518,14 @@ private static GroupFindingsPage createEmptyPage() { @Override protected GroupFindingsPage createPage( - PageContext context, - GroupFindingsResponse response) { + @Nullable PageContext context, + @Nullable GroupFindingsResponse response) { return new GroupFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7527,7 +7539,8 @@ public static class GroupFindingsFixedSizeCollection GroupFindingsPage, GroupFindingsFixedSizeCollection> { - private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { + private GroupFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7537,7 +7550,7 @@ private static GroupFindingsFixedSizeCollection createEmptyCollection() { @Override protected GroupFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new GroupFindingsFixedSizeCollection(pages, collectionSize); } } @@ -7571,8 +7584,8 @@ public static class ListAttackPathsPage ListAttackPathsRequest, ListAttackPathsResponse, AttackPath, ListAttackPathsPage> { private ListAttackPathsPage( - PageContext context, - ListAttackPathsResponse response) { + @Nullable PageContext context, + @Nullable ListAttackPathsResponse response) { super(context, response); } @@ -7582,14 +7595,14 @@ private static ListAttackPathsPage createEmptyPage() { @Override protected ListAttackPathsPage createPage( - PageContext context, - ListAttackPathsResponse response) { + @Nullable PageContext context, + @Nullable ListAttackPathsResponse response) { return new ListAttackPathsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7604,7 +7617,7 @@ public static class ListAttackPathsFixedSizeCollection ListAttackPathsFixedSizeCollection> { private ListAttackPathsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7614,7 +7627,7 @@ private static ListAttackPathsFixedSizeCollection createEmptyCollection() { @Override protected ListAttackPathsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAttackPathsFixedSizeCollection(pages, collectionSize); } } @@ -7652,9 +7665,10 @@ public static class ListBigQueryExportsPage ListBigQueryExportsPage> { private ListBigQueryExportsPage( - PageContext + @Nullable + PageContext context, - ListBigQueryExportsResponse response) { + @Nullable ListBigQueryExportsResponse response) { super(context, response); } @@ -7664,15 +7678,17 @@ private static ListBigQueryExportsPage createEmptyPage() { @Override protected ListBigQueryExportsPage createPage( - PageContext + @Nullable + PageContext context, - ListBigQueryExportsResponse response) { + @Nullable ListBigQueryExportsResponse response) { return new ListBigQueryExportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -7688,7 +7704,7 @@ public static class ListBigQueryExportsFixedSizeCollection ListBigQueryExportsFixedSizeCollection> { private ListBigQueryExportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7698,7 +7714,7 @@ private static ListBigQueryExportsFixedSizeCollection createEmptyCollection() { @Override protected ListBigQueryExportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBigQueryExportsFixedSizeCollection(pages, collectionSize); } } @@ -7737,10 +7753,11 @@ public static class ListFindingsPage ListFindingsPage> { private ListFindingsPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { super(context, response); } @@ -7750,16 +7767,18 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, - ListFindingsResponse response) { + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> context, ApiFuture futureResponse) { @@ -7775,7 +7794,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7785,7 +7805,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } @@ -7819,8 +7839,8 @@ public static class ListMuteConfigsPage ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage> { private ListMuteConfigsPage( - PageContext context, - ListMuteConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMuteConfigsResponse response) { super(context, response); } @@ -7830,14 +7850,14 @@ private static ListMuteConfigsPage createEmptyPage() { @Override protected ListMuteConfigsPage createPage( - PageContext context, - ListMuteConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListMuteConfigsResponse response) { return new ListMuteConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7852,7 +7872,7 @@ public static class ListMuteConfigsFixedSizeCollection ListMuteConfigsFixedSizeCollection> { private ListMuteConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7862,7 +7882,7 @@ private static ListMuteConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListMuteConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMuteConfigsFixedSizeCollection(pages, collectionSize); } } @@ -7901,10 +7921,11 @@ public static class ListNotificationConfigsPage ListNotificationConfigsPage> { private ListNotificationConfigsPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { super(context, response); } @@ -7914,16 +7935,18 @@ private static ListNotificationConfigsPage createEmptyPage() { @Override protected ListNotificationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, - ListNotificationConfigsResponse response) { + @Nullable ListNotificationConfigsResponse response) { return new ListNotificationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> context, ApiFuture futureResponse) { @@ -7940,7 +7963,7 @@ public static class ListNotificationConfigsFixedSizeCollection ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7950,7 +7973,7 @@ private static ListNotificationConfigsFixedSizeCollection createEmptyCollection( @Override protected ListNotificationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -7991,12 +8014,13 @@ public static class ListResourceValueConfigsPage ListResourceValueConfigsPage> { private ListResourceValueConfigsPage( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> context, - ListResourceValueConfigsResponse response) { + @Nullable ListResourceValueConfigsResponse response) { super(context, response); } @@ -8006,18 +8030,20 @@ private static ListResourceValueConfigsPage createEmptyPage() { @Override protected ListResourceValueConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> context, - ListResourceValueConfigsResponse response) { + @Nullable ListResourceValueConfigsResponse response) { return new ListResourceValueConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListResourceValueConfigsRequest, ListResourceValueConfigsResponse, ResourceValueConfig> @@ -8036,7 +8062,7 @@ public static class ListResourceValueConfigsFixedSizeCollection ListResourceValueConfigsFixedSizeCollection> { private ListResourceValueConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8046,7 +8072,7 @@ private static ListResourceValueConfigsFixedSizeCollection createEmptyCollection @Override protected ListResourceValueConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListResourceValueConfigsFixedSizeCollection(pages, collectionSize); } } @@ -8077,8 +8103,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -8088,14 +8114,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -8109,7 +8135,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8119,7 +8146,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } @@ -8157,9 +8184,10 @@ public static class ListValuedResourcesPage ListValuedResourcesPage> { private ListValuedResourcesPage( - PageContext + @Nullable + PageContext context, - ListValuedResourcesResponse response) { + @Nullable ListValuedResourcesResponse response) { super(context, response); } @@ -8169,15 +8197,17 @@ private static ListValuedResourcesPage createEmptyPage() { @Override protected ListValuedResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListValuedResourcesResponse response) { + @Nullable ListValuedResourcesResponse response) { return new ListValuedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -8193,7 +8223,7 @@ public static class ListValuedResourcesFixedSizeCollection ListValuedResourcesFixedSizeCollection> { private ListValuedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -8203,7 +8233,7 @@ private static ListValuedResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListValuedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListValuedResourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterSettings.java index 58ff54320990..62580269723a 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/SecurityCenterSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -429,7 +430,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); } @@ -449,7 +450,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStub.java index d75a9dd17ac9..55a10a0b7c35 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStub.java @@ -97,6 +97,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -108,11 +109,12 @@ @Generated("by gapic-generator-java") public abstract class SecurityCenterStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java index 2ccbf9b80fda..8ac63f77ff97 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/SecurityCenterStubSettings.java @@ -133,6 +133,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1167,7 +1168,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); } @@ -1350,7 +1351,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchCreateResourceValueConfigsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java index d34dc953c7ea..4106b139472c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectAssetName(String project, String asset) { return newProjectAssetBuilder().setProject(project).setAsset(asset).build().toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -171,7 +172,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -224,7 +225,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AttackPathName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AttackPathName.java index c337f4276d20..018d2c65ed73 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AttackPathName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AttackPathName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static AttackPathName parse(String formattedString) { + public static @Nullable AttackPathName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttackPathName> values) { List list = new ArrayList<>(values.size()); for (AttackPathName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java index 46643bb3652a..2f1c5c2b559c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -147,7 +148,7 @@ public static String formatProjectExportName(String project, String export) { return newProjectExportBuilder().setProject(project).setExport(export).build().toString(); } - public static BigQueryExportName parse(String formattedString) { + public static @Nullable BigQueryExportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -172,7 +173,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BigQueryExportName> values) { List list = new ArrayList<>(values.size()); for (BigQueryExportName value : values) { if (value == null) { @@ -225,7 +226,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveEventThreatDetectionCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveEventThreatDetectionCustomModuleName.java index 84585fa9e485..3683735c38f7 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveEventThreatDetectionCustomModuleName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveEventThreatDetectionCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -153,7 +154,8 @@ public static String formatProjectModuleName(String project, String module) { return newProjectModuleBuilder().setProject(project).setModule(module).build().toString(); } - public static EffectiveEventThreatDetectionCustomModuleName parse(String formattedString) { + public static @Nullable EffectiveEventThreatDetectionCustomModuleName parse( + String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -182,7 +184,7 @@ public static List parseList( } public static List toStringList( - List values) { + List<@Nullable EffectiveEventThreatDetectionCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EffectiveEventThreatDetectionCustomModuleName value : values) { if (value == null) { @@ -235,7 +237,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java index e4bba94af5b5..731a29e1f77c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -186,7 +187,8 @@ public static String formatProjectEffectiveCustomModuleName( .toString(); } - public static EffectiveSecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + public static @Nullable EffectiveSecurityHealthAnalyticsCustomModuleName parse( + String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -219,7 +221,7 @@ public static List parseList( } public static List toStringList( - List values) { + List<@Nullable EffectiveSecurityHealthAnalyticsCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EffectiveSecurityHealthAnalyticsCustomModuleName value : values) { if (value == null) { @@ -272,7 +274,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionCustomModuleName.java index c6b924f1e2c6..99d7005f55be 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionCustomModuleName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -152,7 +153,7 @@ public static String formatProjectModuleName(String project, String module) { return newProjectModuleBuilder().setProject(project).setModule(module).build().toString(); } - public static EventThreatDetectionCustomModuleName parse(String formattedString) { + public static @Nullable EventThreatDetectionCustomModuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -179,7 +180,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable EventThreatDetectionCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EventThreatDetectionCustomModuleName value : values) { if (value == null) { @@ -232,7 +234,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionSettingsName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionSettingsName.java index d1aff4764669..42a341dfc424 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionSettingsName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EventThreatDetectionSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -138,7 +139,7 @@ public static String formatProjectName(String project) { return newProjectBuilder().setProject(project).build().toString(); } - public static EventThreatDetectionSettingsName parse(String formattedString) { + public static @Nullable EventThreatDetectionSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -164,7 +165,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventThreatDetectionSettingsName> values) { List list = new ArrayList<>(values.size()); for (EventThreatDetectionSettingsName value : values) { if (value == null) { @@ -214,7 +215,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java index 01df2b4144b0..fa227ebeb713 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -190,7 +191,7 @@ public static String formatProjectSourceFindingName( .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -274,7 +275,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderLocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderLocationName.java index 1569c7cf7150..27a563add6b0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderLocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java index c1ea1446eca0..c09db079f0c7 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/LocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/LocationName.java index 93468b1e8c93..242c19f52933 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/LocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java index 698db15e4e9c..4dcc131676ae 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatProjectLocationMuteConfigName( .toString(); } - public static MuteConfigName parse(String formattedString) { + public static @Nullable MuteConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -308,7 +309,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MuteConfigName> values) { List list = new ArrayList<>(values.size()); for (MuteConfigName value : values) { if (value == null) { @@ -367,7 +368,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java index 2442406ea390..2168be31f374 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -183,7 +184,7 @@ public static String formatProjectNotificationConfigName( .toString(); } - public static NotificationConfigName parse(String formattedString) { + public static @Nullable NotificationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -212,7 +213,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationConfigName> values) { List list = new ArrayList<>(values.size()); for (NotificationConfigName value : values) { if (value == null) { @@ -265,7 +266,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationLocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationLocationName.java index 3530a0e0486e..a38cc3b00934 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationLocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java index 8b77b13b081c..790986cab1ba 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java index 2448a3d4e1b2..a3b7ce1a65c2 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationSettingsName parse(String formattedString) { + public static @Nullable OrganizationSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationSettingsName> values) { List list = new ArrayList<>(values.size()); for (OrganizationSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSimulationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSimulationName.java index 5fa716c3b951..11bf3fb187ca 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSimulationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSimulationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String organization, String simulation) { return newBuilder().setOrganization(organization).setSimulation(simulation).build().toString(); } - public static OrganizationSimulationName parse(String formattedString) { + public static @Nullable OrganizationSimulationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationSimulationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationSimulationName value : values) { if (value == null) { @@ -138,7 +139,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java index 4cea1185f55a..06364a68fff4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceValueConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceValueConfigName.java index 77d5463e8f18..959f836f3451 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceValueConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceValueConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String organization, String resourceValueConfig) { .toString(); } - public static ResourceValueConfigName parse(String formattedString) { + public static @Nullable ResourceValueConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceValueConfigName> values) { List list = new ArrayList<>(values.size()); for (ResourceValueConfigName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java index 05cebe6568ff..7b920f683204 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -173,7 +174,7 @@ public static String formatProjectCustomModuleName(String project, String custom .toString(); } - public static SecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + public static @Nullable SecurityHealthAnalyticsCustomModuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -201,7 +202,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SecurityHealthAnalyticsCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (SecurityHealthAnalyticsCustomModuleName value : values) { if (value == null) { @@ -254,7 +256,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsSettingsName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsSettingsName.java index 0d047ea8de05..ebb897dd73d5 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsSettingsName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -138,7 +139,7 @@ public static String formatProjectName(String project) { return newProjectBuilder().setProject(project).build().toString(); } - public static SecurityHealthAnalyticsSettingsName parse(String formattedString) { + public static @Nullable SecurityHealthAnalyticsSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -164,7 +165,8 @@ public static List parseList(List f return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SecurityHealthAnalyticsSettingsName> values) { List list = new ArrayList<>(values.size()); for (SecurityHealthAnalyticsSettingsName value : values) { if (value == null) { @@ -214,7 +216,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulationName.java index 2fdfad71c77a..a14cbb834f14 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SimulationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String organization, String simulation) { return newBuilder().setOrganization(organization).setSimulation(simulation).build().toString(); } - public static SimulationName parse(String formattedString) { + public static @Nullable SimulationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SimulationName> values) { List list = new ArrayList<>(values.size()); for (SimulationName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java index 6cba5427f5e5..6ff866911645 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectSourceName(String project, String source) { return newProjectSourceBuilder().setProject(project).setSource(source).build().toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -171,7 +172,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -224,7 +225,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ValuedResourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ValuedResourceName.java index 7074424f7860..debe5bb7095b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ValuedResourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ValuedResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String organization, String simulation, String value .toString(); } - public static ValuedResourceName parse(String formattedString) { + public static @Nullable ValuedResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ValuedResourceName> values) { List list = new ArrayList<>(values.size()); for (ValuedResourceName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java index a38becfad9f0..d990acfe38e0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String organization, String source, String finding) .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java index 756fb7522f96..2b57b1e94e2a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java index 6065379d27d9..f941133e1710 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationSettingsName parse(String formattedString) { + public static @Nullable OrganizationSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationSettingsName> values) { List list = new ArrayList<>(values.size()); for (OrganizationSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java index 60b063c176fe..efc20fd9f0dd 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String source) { return newBuilder().setOrganization(organization).setSource(source).build().toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java index 7bb7f4124335..fe4a3089d1b3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectAssetName(String project, String asset) { return newProjectAssetBuilder().setProject(project).setAsset(asset).build().toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -171,7 +172,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -224,7 +225,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java index c2eb224040b0..1f9e29552cc0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -190,7 +191,7 @@ public static String formatProjectSourceFindingName( .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -274,7 +275,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java index 0fdd773f003b..30f581c352b5 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java index f9a84bc838d7..283890cd23ba 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String organization, String notificationConfig) { .toString(); } - public static NotificationConfigName parse(String formattedString) { + public static @Nullable NotificationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationConfigName> values) { List list = new ArrayList<>(values.size()); for (NotificationConfigName value : values) { if (value == null) { @@ -144,7 +145,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java index 319136d4fb7e..14a20dd028d0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java index 509ecc7e0b3e..6ec6934d5497 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationSettingsName parse(String formattedString) { + public static @Nullable OrganizationSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationSettingsName> values) { List list = new ArrayList<>(values.size()); for (OrganizationSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java index e2f2653d8773..eab763f44e2c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java index efe2a5264740..6c23c6f498be 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectSourceName(String project, String source) { return newProjectSourceBuilder().setProject(project).setSource(source).build().toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -171,7 +172,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -224,7 +225,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AttackPathName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AttackPathName.java index 6479cbadbb63..d1780856f1ed 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AttackPathName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/AttackPathName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -184,7 +185,7 @@ public static String formatOrganizationLocationSimulationValuedResourceAttackPat .toString(); } - public static AttackPathName parse(String formattedString) { + public static @Nullable AttackPathName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AttackPathName> values) { List list = new ArrayList<>(values.size()); for (AttackPathName value : values) { if (value == null) { @@ -273,7 +274,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportName.java index e4baf09d76b7..95b20822fb95 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/BigQueryExportName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -200,7 +201,7 @@ public static String formatProjectLocationExportName( .toString(); } - public static BigQueryExportName parse(String formattedString) { + public static @Nullable BigQueryExportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -228,7 +229,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BigQueryExportName> values) { List list = new ArrayList<>(values.size()); for (BigQueryExportName value : values) { if (value == null) { @@ -284,7 +285,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingName.java index f4dbee07970c..9ae7a3c567f4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -314,7 +315,7 @@ public static String formatProjectSourceLocationFindingName( .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -363,7 +364,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -425,7 +426,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderLocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderLocationName.java index 8bcd00c75de1..b2a66a79b515 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderLocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderName.java index c9409c6809ee..18fb04183a47 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/LocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/LocationName.java index 83d6641b8f6a..ba6134228c7d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/LocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MuteConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MuteConfigName.java index 952026e70745..7ae71bc03cb4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MuteConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/MuteConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -270,7 +271,7 @@ public static String formatProjectLocationMuteConfigName( .toString(); } - public static MuteConfigName parse(String formattedString) { + public static @Nullable MuteConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -308,7 +309,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MuteConfigName> values) { List list = new ArrayList<>(values.size()); for (MuteConfigName value : values) { if (value == null) { @@ -367,7 +368,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigName.java index c99681adea86..25d93360d5b3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/NotificationConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -203,7 +204,7 @@ public static String formatProjectLocationNotificationConfigName( .toString(); } - public static NotificationConfigName parse(String formattedString) { + public static @Nullable NotificationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -235,7 +236,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationConfigName> values) { List list = new ArrayList<>(values.size()); for (NotificationConfigName value : values) { if (value == null) { @@ -291,7 +292,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationLocationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationLocationName.java index bb5e32320737..cd7ed3e1a60b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationLocationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationName.java index c921c2e55a4d..7211a0435024 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationValuedResourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationValuedResourceName.java index ed015122c1e4..b6fcefa14cea 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationValuedResourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/OrganizationValuedResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static OrganizationValuedResourceName parse(String formattedString) { + public static @Nullable OrganizationValuedResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List format return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationValuedResourceName> values) { List list = new ArrayList<>(values.size()); for (OrganizationValuedResourceName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProjectName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProjectName.java index 0faf7eb77e99..d9715de98841 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProjectName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceValueConfigName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceValueConfigName.java index 36bbc0901c5b..0fe66e173d8f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceValueConfigName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ResourceValueConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatOrganizationLocationResourceValueConfigName( .toString(); } - public static ResourceValueConfigName parse(String formattedString) { + public static @Nullable ResourceValueConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -174,7 +175,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceValueConfigName> values) { List list = new ArrayList<>(values.size()); for (ResourceValueConfigName value : values) { if (value == null) { @@ -223,7 +224,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SimulationName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SimulationName.java index 1c23cc3fcc15..e5f028a9c157 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SimulationName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SimulationName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -138,7 +139,7 @@ public static String formatOrganizationLocationSimluationName( .toString(); } - public static SimulationName parse(String formattedString) { + public static @Nullable SimulationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -161,7 +162,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SimulationName> values) { List list = new ArrayList<>(values.size()); for (SimulationName value : values) { if (value == null) { @@ -213,7 +214,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SourceName.java index bce6f8f62b7e..79b41b9ec322 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/SourceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -146,7 +147,7 @@ public static String formatProjectSourceName(String project, String source) { return newProjectSourceBuilder().setProject(project).setSource(source).build().toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -171,7 +172,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -224,7 +225,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ValuedResourceName.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ValuedResourceName.java index 702dc91e2e6b..31f7d89206d3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ValuedResourceName.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ValuedResourceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -169,7 +170,7 @@ public static String formatOrganizationLocationSimluationValuedResourceName( .toString(); } - public static ValuedResourceName parse(String formattedString) { + public static @Nullable ValuedResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -199,7 +200,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ValuedResourceName> values) { List list = new ArrayList<>(values.size()); for (ValuedResourceName value : values) { if (value == null) { @@ -254,7 +255,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java index 6b0e67931aaf..53eb0409452a 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java @@ -38,6 +38,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. /** @@ -580,7 +581,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityCenterManagementClient implements BackgroundResource { - private final SecurityCenterManagementSettings settings; + private final @Nullable SecurityCenterManagementSettings settings; private final SecurityCenterManagementStub stub; /** Constructs an instance of SecurityCenterManagementClient with default settings. */ @@ -622,7 +623,7 @@ protected SecurityCenterManagementClient(SecurityCenterManagementStub stub) { this.stub = stub; } - public final SecurityCenterManagementSettings getSettings() { + public final @Nullable SecurityCenterManagementSettings getSettings() { return settings; } @@ -669,7 +670,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse - listEffectiveSecurityHealthAnalyticsCustomModules(FolderLocationName parent) { + listEffectiveSecurityHealthAnalyticsCustomModules(@Nullable FolderLocationName parent) { ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -716,7 +717,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse - listEffectiveSecurityHealthAnalyticsCustomModules(LocationName parent) { + listEffectiveSecurityHealthAnalyticsCustomModules(@Nullable LocationName parent) { ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -763,7 +764,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse - listEffectiveSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent) { + listEffectiveSecurityHealthAnalyticsCustomModules(@Nullable OrganizationLocationName parent) { ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -988,7 +989,7 @@ public SecurityCenterManagementStub getStub() { */ public final EffectiveSecurityHealthAnalyticsCustomModule getEffectiveSecurityHealthAnalyticsCustomModule( - EffectiveSecurityHealthAnalyticsCustomModuleName name) { + @Nullable EffectiveSecurityHealthAnalyticsCustomModuleName name) { GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1159,7 +1160,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse - listSecurityHealthAnalyticsCustomModules(FolderLocationName parent) { + listSecurityHealthAnalyticsCustomModules(@Nullable FolderLocationName parent) { ListSecurityHealthAnalyticsCustomModulesRequest request = ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1206,7 +1207,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse - listSecurityHealthAnalyticsCustomModules(LocationName parent) { + listSecurityHealthAnalyticsCustomModules(@Nullable LocationName parent) { ListSecurityHealthAnalyticsCustomModulesRequest request = ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1253,7 +1254,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse - listSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent) { + listSecurityHealthAnalyticsCustomModules(@Nullable OrganizationLocationName parent) { ListSecurityHealthAnalyticsCustomModulesRequest request = ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1477,7 +1478,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse - listDescendantSecurityHealthAnalyticsCustomModules(FolderLocationName parent) { + listDescendantSecurityHealthAnalyticsCustomModules(@Nullable FolderLocationName parent) { ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1522,7 +1523,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse - listDescendantSecurityHealthAnalyticsCustomModules(LocationName parent) { + listDescendantSecurityHealthAnalyticsCustomModules(@Nullable LocationName parent) { ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1567,7 +1568,8 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse - listDescendantSecurityHealthAnalyticsCustomModules(OrganizationLocationName parent) { + listDescendantSecurityHealthAnalyticsCustomModules( + @Nullable OrganizationLocationName parent) { ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1777,7 +1779,7 @@ public SecurityCenterManagementStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( - SecurityHealthAnalyticsCustomModuleName name) { + @Nullable SecurityHealthAnalyticsCustomModuleName name) { GetSecurityHealthAnalyticsCustomModuleRequest request = GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1934,7 +1936,7 @@ public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCusto * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( - FolderLocationName parent, + @Nullable FolderLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { CreateSecurityHealthAnalyticsCustomModuleRequest request = CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() @@ -1983,7 +1985,7 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( - LocationName parent, + @Nullable LocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { CreateSecurityHealthAnalyticsCustomModuleRequest request = CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() @@ -2032,7 +2034,7 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { CreateSecurityHealthAnalyticsCustomModuleRequest request = CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() @@ -2333,7 +2335,7 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSecurityHealthAnalyticsCustomModule( - SecurityHealthAnalyticsCustomModuleName name) { + @Nullable SecurityHealthAnalyticsCustomModuleName name) { DeleteSecurityHealthAnalyticsCustomModuleRequest request = DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2623,7 +2625,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse - listEffectiveEventThreatDetectionCustomModules(FolderLocationName parent) { + listEffectiveEventThreatDetectionCustomModules(@Nullable FolderLocationName parent) { ListEffectiveEventThreatDetectionCustomModulesRequest request = ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2668,7 +2670,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse - listEffectiveEventThreatDetectionCustomModules(LocationName parent) { + listEffectiveEventThreatDetectionCustomModules(@Nullable LocationName parent) { ListEffectiveEventThreatDetectionCustomModulesRequest request = ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2713,7 +2715,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse - listEffectiveEventThreatDetectionCustomModules(OrganizationLocationName parent) { + listEffectiveEventThreatDetectionCustomModules(@Nullable OrganizationLocationName parent) { ListEffectiveEventThreatDetectionCustomModulesRequest request = ListEffectiveEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2939,7 +2941,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( */ public final EffectiveEventThreatDetectionCustomModule getEffectiveEventThreatDetectionCustomModule( - EffectiveEventThreatDetectionCustomModuleName name) { + @Nullable EffectiveEventThreatDetectionCustomModuleName name) { GetEffectiveEventThreatDetectionCustomModuleRequest request = GetEffectiveEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3134,7 +3136,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse - listEventThreatDetectionCustomModules(FolderLocationName parent) { + listEventThreatDetectionCustomModules(@Nullable FolderLocationName parent) { ListEventThreatDetectionCustomModulesRequest request = ListEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3178,7 +3180,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse - listEventThreatDetectionCustomModules(LocationName parent) { + listEventThreatDetectionCustomModules(@Nullable LocationName parent) { ListEventThreatDetectionCustomModulesRequest request = ListEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3222,7 +3224,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse - listEventThreatDetectionCustomModules(OrganizationLocationName parent) { + listEventThreatDetectionCustomModules(@Nullable OrganizationLocationName parent) { ListEventThreatDetectionCustomModulesRequest request = ListEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3434,7 +3436,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse - listDescendantEventThreatDetectionCustomModules(FolderLocationName parent) { + listDescendantEventThreatDetectionCustomModules(@Nullable FolderLocationName parent) { ListDescendantEventThreatDetectionCustomModulesRequest request = ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3477,7 +3479,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse - listDescendantEventThreatDetectionCustomModules(LocationName parent) { + listDescendantEventThreatDetectionCustomModules(@Nullable LocationName parent) { ListDescendantEventThreatDetectionCustomModulesRequest request = ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3520,7 +3522,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse - listDescendantEventThreatDetectionCustomModules(OrganizationLocationName parent) { + listDescendantEventThreatDetectionCustomModules(@Nullable OrganizationLocationName parent) { ListDescendantEventThreatDetectionCustomModulesRequest request = ListDescendantEventThreatDetectionCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3730,7 +3732,7 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule( - EventThreatDetectionCustomModuleName name) { + @Nullable EventThreatDetectionCustomModuleName name) { GetEventThreatDetectionCustomModuleRequest request = GetEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3888,7 +3890,7 @@ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModul * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule( - FolderLocationName parent, + @Nullable FolderLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule) { CreateEventThreatDetectionCustomModuleRequest request = CreateEventThreatDetectionCustomModuleRequest.newBuilder() @@ -3936,7 +3938,8 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule( - LocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule) { + @Nullable LocationName parent, + EventThreatDetectionCustomModule eventThreatDetectionCustomModule) { CreateEventThreatDetectionCustomModuleRequest request = CreateEventThreatDetectionCustomModuleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3983,7 +3986,7 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomModule( - OrganizationLocationName parent, + @Nullable OrganizationLocationName parent, EventThreatDetectionCustomModule eventThreatDetectionCustomModule) { CreateEventThreatDetectionCustomModuleRequest request = CreateEventThreatDetectionCustomModuleRequest.newBuilder() @@ -4267,7 +4270,7 @@ public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomMo * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteEventThreatDetectionCustomModule( - EventThreatDetectionCustomModuleName name) { + @Nullable EventThreatDetectionCustomModuleName name) { DeleteEventThreatDetectionCustomModuleRequest request = DeleteEventThreatDetectionCustomModuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4499,7 +4502,8 @@ public final void deleteEventThreatDetectionCustomModule( * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SecurityCenterService getSecurityCenterService(SecurityCenterServiceName name) { + public final SecurityCenterService getSecurityCenterService( + @Nullable SecurityCenterServiceName name) { GetSecurityCenterServiceRequest request = GetSecurityCenterServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4656,7 +4660,7 @@ public final SecurityCenterService getSecurityCenterService( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( - FolderLocationName parent) { + @Nullable FolderLocationName parent) { ListSecurityCenterServicesRequest request = ListSecurityCenterServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4697,7 +4701,7 @@ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( - LocationName parent) { + @Nullable LocationName parent) { ListSecurityCenterServicesRequest request = ListSecurityCenterServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4738,7 +4742,7 @@ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListSecurityCenterServicesRequest request = ListSecurityCenterServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5240,12 +5244,13 @@ public static class ListEffectiveSecurityHealthAnalyticsCustomModulesPage ListEffectiveSecurityHealthAnalyticsCustomModulesPage> { private ListEffectiveSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> context, - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -5255,18 +5260,20 @@ private static ListEffectiveSecurityHealthAnalyticsCustomModulesPage createEmpty @Override protected ListEffectiveSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> context, - ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, EffectiveSecurityHealthAnalyticsCustomModule> @@ -5285,7 +5292,8 @@ public static class ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCo ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -5296,7 +5304,8 @@ private ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -5342,12 +5351,13 @@ public static class ListSecurityHealthAnalyticsCustomModulesPage ListSecurityHealthAnalyticsCustomModulesPage> { private ListSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -5357,18 +5367,20 @@ private static ListSecurityHealthAnalyticsCustomModulesPage createEmptyPage() { @Override protected ListSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListSecurityHealthAnalyticsCustomModulesResponse response) { return new ListSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSecurityHealthAnalyticsCustomModulesRequest, ListSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> @@ -5387,7 +5399,7 @@ public static class ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5398,7 +5410,7 @@ private ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection(pages, collectionSize); } } @@ -5445,12 +5457,13 @@ public static class ListDescendantSecurityHealthAnalyticsCustomModulesPage ListDescendantSecurityHealthAnalyticsCustomModulesPage> { private ListDescendantSecurityHealthAnalyticsCustomModulesPage( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { super(context, response); } @@ -5460,18 +5473,20 @@ private static ListDescendantSecurityHealthAnalyticsCustomModulesPage createEmpt @Override protected ListDescendantSecurityHealthAnalyticsCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> context, - ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + @Nullable ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { return new ListDescendantSecurityHealthAnalyticsCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ListDescendantSecurityHealthAnalyticsCustomModulesResponse, SecurityHealthAnalyticsCustomModule> @@ -5490,7 +5505,8 @@ public static class ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeC ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { private ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -5502,7 +5518,7 @@ private ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( @Override protected ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( - List pages, + @Nullable List pages, int collectionSize) { return new ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( pages, collectionSize); @@ -5551,12 +5567,13 @@ public static class ListEffectiveEventThreatDetectionCustomModulesPage ListEffectiveEventThreatDetectionCustomModulesPage> { private ListEffectiveEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> context, - ListEffectiveEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEffectiveEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -5566,18 +5583,20 @@ private static ListEffectiveEventThreatDetectionCustomModulesPage createEmptyPag @Override protected ListEffectiveEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> context, - ListEffectiveEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEffectiveEventThreatDetectionCustomModulesResponse response) { return new ListEffectiveEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEffectiveEventThreatDetectionCustomModulesRequest, ListEffectiveEventThreatDetectionCustomModulesResponse, EffectiveEventThreatDetectionCustomModule> @@ -5596,7 +5615,8 @@ public static class ListEffectiveEventThreatDetectionCustomModulesFixedSizeColle ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection> { private ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -5607,7 +5627,8 @@ private ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListEffectiveEventThreatDetectionCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -5651,12 +5672,13 @@ public static class ListEventThreatDetectionCustomModulesPage ListEventThreatDetectionCustomModulesPage> { private ListEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -5666,18 +5688,20 @@ private static ListEventThreatDetectionCustomModulesPage createEmptyPage() { @Override protected ListEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListEventThreatDetectionCustomModulesResponse response) { + @Nullable ListEventThreatDetectionCustomModulesResponse response) { return new ListEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListEventThreatDetectionCustomModulesRequest, ListEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> @@ -5696,7 +5720,7 @@ public static class ListEventThreatDetectionCustomModulesFixedSizeCollection ListEventThreatDetectionCustomModulesFixedSizeCollection> { private ListEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5707,7 +5731,7 @@ private ListEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventThreatDetectionCustomModulesFixedSizeCollection(pages, collectionSize); } } @@ -5754,12 +5778,13 @@ public static class ListDescendantEventThreatDetectionCustomModulesPage ListDescendantEventThreatDetectionCustomModulesPage> { private ListDescendantEventThreatDetectionCustomModulesPage( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListDescendantEventThreatDetectionCustomModulesResponse response) { + @Nullable ListDescendantEventThreatDetectionCustomModulesResponse response) { super(context, response); } @@ -5769,18 +5794,20 @@ private static ListDescendantEventThreatDetectionCustomModulesPage createEmptyPa @Override protected ListDescendantEventThreatDetectionCustomModulesPage createPage( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> context, - ListDescendantEventThreatDetectionCustomModulesResponse response) { + @Nullable ListDescendantEventThreatDetectionCustomModulesResponse response) { return new ListDescendantEventThreatDetectionCustomModulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDescendantEventThreatDetectionCustomModulesRequest, ListDescendantEventThreatDetectionCustomModulesResponse, EventThreatDetectionCustomModule> @@ -5799,7 +5826,8 @@ public static class ListDescendantEventThreatDetectionCustomModulesFixedSizeColl ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection> { private ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { super(pages, collectionSize); } @@ -5810,7 +5838,8 @@ private ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( @Override protected ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, + int collectionSize) { return new ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection( pages, collectionSize); } @@ -5852,12 +5881,13 @@ public static class ListSecurityCenterServicesPage ListSecurityCenterServicesPage> { private ListSecurityCenterServicesPage( - PageContext< + @Nullable + PageContext< ListSecurityCenterServicesRequest, ListSecurityCenterServicesResponse, SecurityCenterService> context, - ListSecurityCenterServicesResponse response) { + @Nullable ListSecurityCenterServicesResponse response) { super(context, response); } @@ -5867,18 +5897,20 @@ private static ListSecurityCenterServicesPage createEmptyPage() { @Override protected ListSecurityCenterServicesPage createPage( - PageContext< + @Nullable + PageContext< ListSecurityCenterServicesRequest, ListSecurityCenterServicesResponse, SecurityCenterService> context, - ListSecurityCenterServicesResponse response) { + @Nullable ListSecurityCenterServicesResponse response) { return new ListSecurityCenterServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListSecurityCenterServicesRequest, ListSecurityCenterServicesResponse, SecurityCenterService> @@ -5897,7 +5929,7 @@ public static class ListSecurityCenterServicesFixedSizeCollection ListSecurityCenterServicesFixedSizeCollection> { private ListSecurityCenterServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5907,7 +5939,7 @@ private static ListSecurityCenterServicesFixedSizeCollection createEmptyCollecti @Override protected ListSecurityCenterServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSecurityCenterServicesFixedSizeCollection(pages, collectionSize); } } @@ -5941,8 +5973,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5952,14 +5984,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5973,7 +6005,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5983,7 +6016,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java index 2e229acbc8f8..e1c667cd8d08 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -400,7 +401,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); } @@ -421,7 +422,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityCenterManagementStubSettings.newBuilder(clientContext)); } diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java index e7bcd0dc5fe0..3f8dfd809374 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java @@ -101,6 +101,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1188,7 +1189,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); } @@ -1390,7 +1391,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEffectiveSecurityHealthAnalyticsCustomModulesSettings = diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java index 11f81bfbd301..b31b832d3292 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -214,7 +215,8 @@ public static String formatFolderLocationEffectiveEventThreatDetectionCustomModu .toString(); } - public static EffectiveEventThreatDetectionCustomModuleName parse(String formattedString) { + public static @Nullable EffectiveEventThreatDetectionCustomModuleName parse( + String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -259,7 +261,7 @@ public static List parseList( } public static List toStringList( - List values) { + List<@Nullable EffectiveEventThreatDetectionCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EffectiveEventThreatDetectionCustomModuleName value : values) { if (value == null) { @@ -318,7 +320,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java index 0e2425b7c638..4b50cbb174c2 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -226,7 +227,8 @@ public static String formatFolderLocationEffectiveSecurityHealthAnalyticsCustomM .toString(); } - public static EffectiveSecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + public static @Nullable EffectiveSecurityHealthAnalyticsCustomModuleName parse( + String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -272,7 +274,7 @@ public static List parseList( } public static List toStringList( - List values) { + List<@Nullable EffectiveSecurityHealthAnalyticsCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EffectiveSecurityHealthAnalyticsCustomModuleName value : values) { if (value == null) { @@ -333,7 +335,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java index 629d0c0f6398..9d0cb3e0bb82 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -212,7 +213,7 @@ public static String formatFolderLocationEventThreatDetectionCustomModuleName( .toString(); } - public static EventThreatDetectionCustomModuleName parse(String formattedString) { + public static @Nullable EventThreatDetectionCustomModuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -251,7 +252,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable EventThreatDetectionCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (EventThreatDetectionCustomModuleName value : values) { if (value == null) { @@ -308,7 +310,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java index 5d9923668fdb..f1f5ebca6eea 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java index ebdde7c6a7ad..2e075b46adc0 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java index 3018798e9df1..2b446afbce02 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java index 26431db710e7..7451c95843a1 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -192,7 +193,7 @@ public static String formatOrganizationLocationServiceName( .toString(); } - public static SecurityCenterServiceName parse(String formattedString) { + public static @Nullable SecurityCenterServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -221,7 +222,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SecurityCenterServiceName> values) { List list = new ArrayList<>(values.size()); for (SecurityCenterServiceName value : values) { if (value == null) { @@ -277,7 +278,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java index 61c71d9f357a..dea17fb49fee 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -212,7 +213,7 @@ public static String formatFolderLocationSecurityHealthAnalyticsCustomModuleName .toString(); } - public static SecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + public static @Nullable SecurityHealthAnalyticsCustomModuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -251,7 +252,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SecurityHealthAnalyticsCustomModuleName> values) { List list = new ArrayList<>(values.size()); for (SecurityHealthAnalyticsCustomModuleName value : values) { if (value == null) { @@ -308,7 +310,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureClient.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureClient.java index 54cb437fc1d0..92ecb2f02eef 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureClient.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureClient.java @@ -43,6 +43,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. /** @@ -434,7 +435,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SecurityPostureClient implements BackgroundResource { - private final SecurityPostureSettings settings; + private final @Nullable SecurityPostureSettings settings; private final SecurityPostureStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -482,7 +483,7 @@ protected SecurityPostureClient(SecurityPostureStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SecurityPostureSettings getSettings() { + public final @Nullable SecurityPostureSettings getSettings() { return settings; } @@ -534,7 +535,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListPosturesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPosturesPagedResponse listPostures(OrganizationName parent) { + public final ListPosturesPagedResponse listPostures(@Nullable OrganizationName parent) { ListPosturesRequest request = ListPosturesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -819,7 +820,7 @@ public final ListPostureRevisionsPagedResponse listPostureRevisions( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Posture getPosture(PostureName name) { + public final Posture getPosture(@Nullable PostureName name) { GetPostureRequest request = GetPostureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPosture(request); @@ -946,7 +947,7 @@ public final UnaryCallable getPostureCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPostureAsync( - OrganizationName parent, Posture posture, String postureId) { + @Nullable OrganizationName parent, Posture posture, String postureId) { CreatePostureRequest request = CreatePostureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1268,7 +1269,8 @@ public final UnaryCallable updatePostureCallabl * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deletePostureAsync(PostureName name) { + public final OperationFuture deletePostureAsync( + @Nullable PostureName name) { DeletePostureRequest request = DeletePostureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deletePostureAsync(request); @@ -1427,7 +1429,7 @@ public final UnaryCallable deletePostureCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture extractPostureAsync( - OrganizationName parent, String postureId, String workload) { + @Nullable OrganizationName parent, String postureId, String workload) { ExtractPostureRequest request = ExtractPostureRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1603,7 +1605,8 @@ public final UnaryCallable extractPostureCalla * @param parent Required. Parent value for ListPostureDeploymentsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPostureDeploymentsPagedResponse listPostureDeployments(OrganizationName parent) { + public final ListPostureDeploymentsPagedResponse listPostureDeployments( + @Nullable OrganizationName parent) { ListPostureDeploymentsRequest request = ListPostureDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1773,7 +1776,7 @@ public final ListPostureDeploymentsPagedResponse listPostureDeployments( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PostureDeployment getPostureDeployment(PostureDeploymentName name) { + public final PostureDeployment getPostureDeployment(@Nullable PostureDeploymentName name) { GetPostureDeploymentRequest request = GetPostureDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1901,7 +1904,9 @@ public final PostureDeployment getPostureDeployment(GetPostureDeploymentRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPostureDeploymentAsync( - OrganizationName parent, PostureDeployment postureDeployment, String postureDeploymentId) { + @Nullable OrganizationName parent, + PostureDeployment postureDeployment, + String postureDeploymentId) { CreatePostureDeploymentRequest request = CreatePostureDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2198,7 +2203,7 @@ public final OperationFuture updatePosture * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePostureDeploymentAsync( - PostureDeploymentName name) { + @Nullable PostureDeploymentName name) { DeletePostureDeploymentRequest request = DeletePostureDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2355,7 +2360,8 @@ public final OperationFuture deletePostureDeploymentAs * @param parent Required. Parent value for ListPostureTemplatesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPostureTemplatesPagedResponse listPostureTemplates(OrganizationName parent) { + public final ListPostureTemplatesPagedResponse listPostureTemplates( + @Nullable OrganizationName parent) { ListPostureTemplatesRequest request = ListPostureTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2528,7 +2534,7 @@ public final ListPostureTemplatesPagedResponse listPostureTemplates( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PostureTemplate getPostureTemplate(PostureTemplateName name) { + public final PostureTemplate getPostureTemplate(@Nullable PostureTemplateName name) { GetPostureTemplateRequest request = GetPostureTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2850,8 +2856,8 @@ public static class ListPosturesPage extends AbstractPage { private ListPosturesPage( - PageContext context, - ListPosturesResponse response) { + @Nullable PageContext context, + @Nullable ListPosturesResponse response) { super(context, response); } @@ -2861,14 +2867,14 @@ private static ListPosturesPage createEmptyPage() { @Override protected ListPosturesPage createPage( - PageContext context, - ListPosturesResponse response) { + @Nullable PageContext context, + @Nullable ListPosturesResponse response) { return new ListPosturesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2882,7 +2888,8 @@ public static class ListPosturesFixedSizeCollection ListPosturesPage, ListPosturesFixedSizeCollection> { - private ListPosturesFixedSizeCollection(List pages, int collectionSize) { + private ListPosturesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2892,7 +2899,7 @@ private static ListPosturesFixedSizeCollection createEmptyCollection() { @Override protected ListPosturesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPosturesFixedSizeCollection(pages, collectionSize); } } @@ -2929,8 +2936,9 @@ public static class ListPostureRevisionsPage ListPostureRevisionsPage> { private ListPostureRevisionsPage( - PageContext context, - ListPostureRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListPostureRevisionsResponse response) { super(context, response); } @@ -2940,14 +2948,16 @@ private static ListPostureRevisionsPage createEmptyPage() { @Override protected ListPostureRevisionsPage createPage( - PageContext context, - ListPostureRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListPostureRevisionsResponse response) { return new ListPostureRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2962,7 +2972,7 @@ public static class ListPostureRevisionsFixedSizeCollection ListPostureRevisionsFixedSizeCollection> { private ListPostureRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2972,7 +2982,7 @@ private static ListPostureRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListPostureRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPostureRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -3011,10 +3021,11 @@ public static class ListPostureDeploymentsPage ListPostureDeploymentsPage> { private ListPostureDeploymentsPage( - PageContext< + @Nullable + PageContext< ListPostureDeploymentsRequest, ListPostureDeploymentsResponse, PostureDeployment> context, - ListPostureDeploymentsResponse response) { + @Nullable ListPostureDeploymentsResponse response) { super(context, response); } @@ -3024,16 +3035,18 @@ private static ListPostureDeploymentsPage createEmptyPage() { @Override protected ListPostureDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListPostureDeploymentsRequest, ListPostureDeploymentsResponse, PostureDeployment> context, - ListPostureDeploymentsResponse response) { + @Nullable ListPostureDeploymentsResponse response) { return new ListPostureDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPostureDeploymentsRequest, ListPostureDeploymentsResponse, PostureDeployment> context, ApiFuture futureResponse) { @@ -3050,7 +3063,7 @@ public static class ListPostureDeploymentsFixedSizeCollection ListPostureDeploymentsFixedSizeCollection> { private ListPostureDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3060,7 +3073,7 @@ private static ListPostureDeploymentsFixedSizeCollection createEmptyCollection() @Override protected ListPostureDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPostureDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -3098,9 +3111,10 @@ public static class ListPostureTemplatesPage ListPostureTemplatesPage> { private ListPostureTemplatesPage( - PageContext + @Nullable + PageContext context, - ListPostureTemplatesResponse response) { + @Nullable ListPostureTemplatesResponse response) { super(context, response); } @@ -3110,15 +3124,17 @@ private static ListPostureTemplatesPage createEmptyPage() { @Override protected ListPostureTemplatesPage createPage( - PageContext + @Nullable + PageContext context, - ListPostureTemplatesResponse response) { + @Nullable ListPostureTemplatesResponse response) { return new ListPostureTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3134,7 +3150,7 @@ public static class ListPostureTemplatesFixedSizeCollection ListPostureTemplatesFixedSizeCollection> { private ListPostureTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3144,7 +3160,7 @@ private static ListPostureTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListPostureTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPostureTemplatesFixedSizeCollection(pages, collectionSize); } } @@ -3178,8 +3194,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3189,14 +3205,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3210,7 +3226,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3220,7 +3237,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureSettings.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureSettings.java index 04bddeb99013..c441b59caf30 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureSettings.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/SecurityPostureSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -328,7 +329,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); } @@ -348,7 +349,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SecurityPostureStubSettings.newBuilder(clientContext)); } diff --git a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStub.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStub.java index 98ef463f0fa3..22afbfb551b9 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStub.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStub.java @@ -56,6 +56,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,11 +68,12 @@ @Generated("by gapic-generator-java") public abstract class SecurityPostureStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java index f5670a02dd33..208ea39e079c 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/SecurityPostureStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -764,7 +765,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); } @@ -909,7 +910,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPosturesSettings = PagedCallSettings.newBuilder(LIST_POSTURES_PAGE_STR_FACT); diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/OrganizationName.java b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/OrganizationName.java index 4e0ed6a66ac5..5812fb1a36d1 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/OrganizationName.java +++ b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureDeploymentName.java b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureDeploymentName.java index c8329d6ac9e3..88d8e235f399 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureDeploymentName.java +++ b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String organization, String location, String posture .toString(); } - public static PostureDeploymentName parse(String formattedString) { + public static @Nullable PostureDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PostureDeploymentName> values) { List list = new ArrayList<>(values.size()); for (PostureDeploymentName value : values) { if (value == null) { @@ -163,7 +164,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureName.java b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureName.java index d3b20b185f22..0f3b36c9d141 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureName.java +++ b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String organization, String location, String posture .toString(); } - public static PostureName parse(String formattedString) { + public static @Nullable PostureName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PostureName> values) { List list = new ArrayList<>(values.size()); for (PostureName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureTemplateName.java b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureTemplateName.java index c7a201518ed1..ffa3fc703760 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureTemplateName.java +++ b/java-securityposture/proto-google-cloud-securityposture-v1/src/main/java/com/google/cloud/securityposture/v1/PostureTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String organization, String location, String posture .toString(); } - public static PostureTemplateName parse(String formattedString) { + public static @Nullable PostureTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PostureTemplateName> values) { List list = new ArrayList<>(values.size()); for (PostureTemplateName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java index 97cae2d6fdea..88b0597e4a10 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java @@ -24,6 +24,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class QuotaControllerClient implements BackgroundResource { - private final QuotaControllerSettings settings; + private final @Nullable QuotaControllerSettings settings; private final QuotaControllerStub stub; /** Constructs an instance of QuotaControllerClient with default settings. */ @@ -180,7 +181,7 @@ protected QuotaControllerClient(QuotaControllerStub stub) { this.stub = stub; } - public final QuotaControllerSettings getSettings() { + public final @Nullable QuotaControllerSettings getSettings() { return settings; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java index 3d5c93ba76d3..3d46e37db2d6 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QuotaControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java index a1b349d3e729..fe947e228adb 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java @@ -24,6 +24,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. /** @@ -158,7 +159,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceControllerClient implements BackgroundResource { - private final ServiceControllerSettings settings; + private final @Nullable ServiceControllerSettings settings; private final ServiceControllerStub stub; /** Constructs an instance of ServiceControllerClient with default settings. */ @@ -198,7 +199,7 @@ protected ServiceControllerClient(ServiceControllerStub stub) { this.stub = stub; } - public final ServiceControllerSettings getSettings() { + public final @Nullable ServiceControllerSettings getSettings() { return settings; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java index 7eb21adc2eb3..c78f8a836f23 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java index e3a91320b711..e089cbf69e21 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/QuotaControllerStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -269,7 +270,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); allocateQuotaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java index 7c93e53d4024..930deb3a90d3 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/ServiceControllerStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -300,7 +301,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); checkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java index 839328464272..ce02d9054fc7 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java @@ -24,6 +24,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. /** @@ -160,7 +161,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceControllerClient implements BackgroundResource { - private final ServiceControllerSettings settings; + private final @Nullable ServiceControllerSettings settings; private final ServiceControllerStub stub; /** Constructs an instance of ServiceControllerClient with default settings. */ @@ -200,7 +201,7 @@ protected ServiceControllerClient(ServiceControllerStub stub) { this.stub = stub; } - public final ServiceControllerSettings getSettings() { + public final @Nullable ServiceControllerSettings getSettings() { return settings; } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java index 0aa07fa879be..1be997dfd0b0 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceControllerStubSettings.newBuilder(clientContext)); } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java index 57d8969da80f..fe4835807b10 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/ServiceControllerStubSettings.java @@ -49,6 +49,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); checkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClient.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClient.java index 5f42e707957f..7756f8afe803 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClient.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClient.java @@ -68,6 +68,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. /** @@ -456,7 +457,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceManagerClient implements BackgroundResource { - private final ServiceManagerSettings settings; + private final @Nullable ServiceManagerSettings settings; private final ServiceManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -504,7 +505,7 @@ protected ServiceManagerClient(ServiceManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ServiceManagerSettings getSettings() { + public final @Nullable ServiceManagerSettings getSettings() { return settings; } @@ -2466,8 +2467,8 @@ public static class ListServicesPage ListServicesRequest, ListServicesResponse, ManagedService, ListServicesPage> { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -2477,14 +2478,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2498,7 +2499,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2508,7 +2510,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -2542,8 +2544,9 @@ public static class ListServiceConfigsPage ListServiceConfigsRequest, ListServiceConfigsResponse, Service, ListServiceConfigsPage> { private ListServiceConfigsPage( - PageContext context, - ListServiceConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceConfigsResponse response) { super(context, response); } @@ -2553,14 +2556,16 @@ private static ListServiceConfigsPage createEmptyPage() { @Override protected ListServiceConfigsPage createPage( - PageContext context, - ListServiceConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceConfigsResponse response) { return new ListServiceConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2575,7 +2580,7 @@ public static class ListServiceConfigsFixedSizeCollection ListServiceConfigsFixedSizeCollection> { private ListServiceConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2585,7 +2590,7 @@ private static ListServiceConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListServiceConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2622,8 +2627,9 @@ public static class ListServiceRolloutsPage ListServiceRolloutsPage> { private ListServiceRolloutsPage( - PageContext context, - ListServiceRolloutsResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceRolloutsResponse response) { super(context, response); } @@ -2633,14 +2639,16 @@ private static ListServiceRolloutsPage createEmptyPage() { @Override protected ListServiceRolloutsPage createPage( - PageContext context, - ListServiceRolloutsResponse response) { + @Nullable PageContext + context, + @Nullable ListServiceRolloutsResponse response) { return new ListServiceRolloutsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2655,7 +2663,7 @@ public static class ListServiceRolloutsFixedSizeCollection ListServiceRolloutsFixedSizeCollection> { private ListServiceRolloutsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2665,7 +2673,7 @@ private static ListServiceRolloutsFixedSizeCollection createEmptyCollection() { @Override protected ListServiceRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServiceRolloutsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerSettings.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerSettings.java index f2c583264884..39ca171b7e0e 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerSettings.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -324,7 +325,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); } @@ -344,7 +345,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStub.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStub.java index 7e02e55d46fa..dfa9d5f0ad22 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStub.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStub.java @@ -56,6 +56,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -67,11 +68,12 @@ @Generated("by gapic-generator-java") public abstract class ServiceManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java index 20a515b238bf..12e0e6699cc0 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/ServiceManagerStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -606,7 +607,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); } @@ -733,7 +734,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java index 6e5160e6ba48..202a0c21e909 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageClient.java @@ -37,6 +37,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceUsageClient implements BackgroundResource { - private final ServiceUsageSettings settings; + private final @Nullable ServiceUsageSettings settings; private final ServiceUsageStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -265,7 +266,7 @@ protected ServiceUsageClient(ServiceUsageStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ServiceUsageSettings getSettings() { + public final @Nullable ServiceUsageSettings getSettings() { return settings; } @@ -865,8 +866,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -876,14 +877,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -897,7 +898,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -907,7 +909,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageSettings.java index 62dfdcacf6c3..d62d5f61ca13 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/ServiceUsageSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -223,7 +224,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); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceUsageStubSettings.newBuilder(clientContext)); } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStub.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStub.java index 21f1d3c9febc..ac9d8b28401a 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStub.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStub.java @@ -38,6 +38,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class ServiceUsageStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java index 4f307e40470b..4de8091dc888 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/ServiceUsageStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -382,7 +383,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); } @@ -469,7 +470,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); enableServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java index 3da4bd4ac685..79e6a00a13d2 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageClient.java @@ -38,6 +38,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. /** @@ -412,7 +413,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ServiceUsageClient implements BackgroundResource { - private final ServiceUsageSettings settings; + private final @Nullable ServiceUsageSettings settings; private final ServiceUsageStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -459,7 +460,7 @@ protected ServiceUsageClient(ServiceUsageStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ServiceUsageSettings getSettings() { + public final @Nullable ServiceUsageSettings getSettings() { return settings; } @@ -2351,8 +2352,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -2362,14 +2363,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2383,7 +2384,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2393,7 +2395,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -2434,12 +2436,13 @@ public static class ListConsumerQuotaMetricsPage ListConsumerQuotaMetricsPage> { private ListConsumerQuotaMetricsPage( - PageContext< + @Nullable + PageContext< ListConsumerQuotaMetricsRequest, ListConsumerQuotaMetricsResponse, ConsumerQuotaMetric> context, - ListConsumerQuotaMetricsResponse response) { + @Nullable ListConsumerQuotaMetricsResponse response) { super(context, response); } @@ -2449,18 +2452,20 @@ private static ListConsumerQuotaMetricsPage createEmptyPage() { @Override protected ListConsumerQuotaMetricsPage createPage( - PageContext< + @Nullable + PageContext< ListConsumerQuotaMetricsRequest, ListConsumerQuotaMetricsResponse, ConsumerQuotaMetric> context, - ListConsumerQuotaMetricsResponse response) { + @Nullable ListConsumerQuotaMetricsResponse response) { return new ListConsumerQuotaMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListConsumerQuotaMetricsRequest, ListConsumerQuotaMetricsResponse, ConsumerQuotaMetric> @@ -2479,7 +2484,7 @@ public static class ListConsumerQuotaMetricsFixedSizeCollection ListConsumerQuotaMetricsFixedSizeCollection> { private ListConsumerQuotaMetricsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2489,7 +2494,7 @@ private static ListConsumerQuotaMetricsFixedSizeCollection createEmptyCollection @Override protected ListConsumerQuotaMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConsumerQuotaMetricsFixedSizeCollection(pages, collectionSize); } } @@ -2526,8 +2531,9 @@ public static class ListAdminOverridesPage ListAdminOverridesPage> { private ListAdminOverridesPage( - PageContext context, - ListAdminOverridesResponse response) { + @Nullable PageContext + context, + @Nullable ListAdminOverridesResponse response) { super(context, response); } @@ -2537,14 +2543,16 @@ private static ListAdminOverridesPage createEmptyPage() { @Override protected ListAdminOverridesPage createPage( - PageContext context, - ListAdminOverridesResponse response) { + @Nullable PageContext + context, + @Nullable ListAdminOverridesResponse response) { return new ListAdminOverridesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2559,7 +2567,7 @@ public static class ListAdminOverridesFixedSizeCollection ListAdminOverridesFixedSizeCollection> { private ListAdminOverridesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2569,7 +2577,7 @@ private static ListAdminOverridesFixedSizeCollection createEmptyCollection() { @Override protected ListAdminOverridesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdminOverridesFixedSizeCollection(pages, collectionSize); } } @@ -2607,9 +2615,10 @@ public static class ListConsumerOverridesPage ListConsumerOverridesPage> { private ListConsumerOverridesPage( - PageContext + @Nullable + PageContext context, - ListConsumerOverridesResponse response) { + @Nullable ListConsumerOverridesResponse response) { super(context, response); } @@ -2619,15 +2628,17 @@ private static ListConsumerOverridesPage createEmptyPage() { @Override protected ListConsumerOverridesPage createPage( - PageContext + @Nullable + PageContext context, - ListConsumerOverridesResponse response) { + @Nullable ListConsumerOverridesResponse response) { return new ListConsumerOverridesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2643,7 +2654,7 @@ public static class ListConsumerOverridesFixedSizeCollection ListConsumerOverridesFixedSizeCollection> { private ListConsumerOverridesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2653,7 +2664,7 @@ private static ListConsumerOverridesFixedSizeCollection createEmptyCollection() @Override protected ListConsumerOverridesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConsumerOverridesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageSettings.java index 42e8233b3cf5..81d01e5fd7be 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -408,7 +409,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); } @@ -428,7 +429,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceUsageStubSettings.newBuilder(clientContext)); } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStub.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStub.java index 607605bb77c9..50ddcc71190f 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStub.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStub.java @@ -63,6 +63,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -75,11 +76,12 @@ @Generated("by gapic-generator-java") public abstract class ServiceUsageStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java index 445cd215f70b..1c2377ea5e6d 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/ServiceUsageStubSettings.java @@ -96,6 +96,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -817,7 +818,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); } @@ -995,7 +996,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); enableServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java index f31d847eb86a..060c58665ae1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java @@ -36,6 +36,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. /** @@ -173,7 +174,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LookupServiceClient implements BackgroundResource { - private final LookupServiceSettings settings; + private final @Nullable LookupServiceSettings settings; private final LookupServiceStub stub; /** Constructs an instance of LookupServiceClient with default settings. */ @@ -213,7 +214,7 @@ protected LookupServiceClient(LookupServiceStub stub) { this.stub = stub; } - public final LookupServiceSettings getSettings() { + public final @Nullable LookupServiceSettings getSettings() { return settings; } @@ -500,8 +501,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -511,14 +512,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -532,7 +533,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -542,7 +544,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java index 8415f0d9faeb..5ec1aaa3c46e 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LookupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java index e09f5d8c2145..17fa61e7c053 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java @@ -43,6 +43,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. /** @@ -505,7 +506,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegistrationServiceClient implements BackgroundResource { - private final RegistrationServiceSettings settings; + private final @Nullable RegistrationServiceSettings settings; private final RegistrationServiceStub stub; /** Constructs an instance of RegistrationServiceClient with default settings. */ @@ -545,7 +546,7 @@ protected RegistrationServiceClient(RegistrationServiceStub stub) { this.stub = stub; } - public final RegistrationServiceSettings getSettings() { + public final @Nullable RegistrationServiceSettings getSettings() { return settings; } @@ -586,7 +587,7 @@ public RegistrationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Namespace createNamespace( - LocationName parent, Namespace namespace, String namespaceId) { + @Nullable LocationName parent, Namespace namespace, String namespaceId) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -722,7 +723,7 @@ public final UnaryCallable createNamespaceCal * like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNamespacesPagedResponse listNamespaces(LocationName parent) { + public final ListNamespacesPagedResponse listNamespaces(@Nullable LocationName parent) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -891,7 +892,7 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re * @param name Required. The name of the namespace to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Namespace getNamespace(NamespaceName name) { + public final Namespace getNamespace(@Nullable NamespaceName name) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNamespace(request); @@ -1090,7 +1091,7 @@ public final UnaryCallable updateNamespaceCal * @param name Required. The name of the namespace to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNamespace(NamespaceName name) { + public final void deleteNamespace(@Nullable NamespaceName name) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteNamespace(request); @@ -1208,7 +1209,8 @@ public final UnaryCallable deleteNamespaceCallabl * last character, which cannot be a dash. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(NamespaceName parent, Service service, String serviceId) { + public final Service createService( + @Nullable NamespaceName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1341,7 +1343,7 @@ public final UnaryCallable createServiceCallable( * @param parent Required. The resource name of the namespace whose services you'd like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(NamespaceName parent) { + public final ListServicesPagedResponse listServices(@Nullable NamespaceName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1508,7 +1510,7 @@ public final UnaryCallable listServic * @param name Required. The name of the service to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -1707,7 +1709,7 @@ public final UnaryCallable updateServiceCallable( * @param name Required. The name of the service to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteService(ServiceName name) { + public final void deleteService(@Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteService(request); @@ -1828,7 +1830,8 @@ public final UnaryCallable deleteServiceCallable() * last character, which cannot be a dash. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) { + public final Endpoint createEndpoint( + @Nullable ServiceName parent, Endpoint endpoint, String endpointId) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1964,7 +1967,7 @@ public final UnaryCallable createEndpointCallab * @param parent Required. The resource name of the service whose endpoints you'd like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable ServiceName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2136,7 +2139,7 @@ public final UnaryCallable listEndp * @param name Required. The name of the endpoint to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -2341,7 +2344,7 @@ public final UnaryCallable updateEndpointCallab * @param name Required. The name of the endpoint to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEndpoint(EndpointName name) { + public final void deleteEndpoint(@Nullable EndpointName name) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEndpoint(request); @@ -2830,8 +2833,8 @@ public static class ListNamespacesPage ListNamespacesRequest, ListNamespacesResponse, Namespace, ListNamespacesPage> { private ListNamespacesPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { super(context, response); } @@ -2841,14 +2844,14 @@ private static ListNamespacesPage createEmptyPage() { @Override protected ListNamespacesPage createPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { return new ListNamespacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2862,7 +2865,8 @@ public static class ListNamespacesFixedSizeCollection ListNamespacesPage, ListNamespacesFixedSizeCollection> { - private ListNamespacesFixedSizeCollection(List pages, int collectionSize) { + private ListNamespacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2872,7 +2876,7 @@ private static ListNamespacesFixedSizeCollection createEmptyCollection() { @Override protected ListNamespacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNamespacesFixedSizeCollection(pages, collectionSize); } } @@ -2905,8 +2909,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -2916,14 +2920,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2937,7 +2941,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2947,7 +2952,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -2981,8 +2986,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -2992,14 +2997,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3013,7 +3018,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3023,7 +3029,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -3057,8 +3063,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3068,14 +3074,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3089,7 +3095,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3099,7 +3106,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java index f6e6f58e7d67..0cb7c4eb62d3 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegistrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java index 961c98f76e1b..1ccc8140a64a 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -293,7 +294,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); } @@ -365,7 +366,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); resolveServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java index cd78eec069cb..1269c0f6dd18 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -589,7 +590,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); } @@ -704,7 +705,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java index 95063bf497af..4a05f8b815e5 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java @@ -37,6 +37,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. /** @@ -175,7 +176,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LookupServiceClient implements BackgroundResource { - private final LookupServiceSettings settings; + private final @Nullable LookupServiceSettings settings; private final LookupServiceStub stub; /** Constructs an instance of LookupServiceClient with default settings. */ @@ -215,7 +216,7 @@ protected LookupServiceClient(LookupServiceStub stub) { this.stub = stub; } - public final LookupServiceSettings getSettings() { + public final @Nullable LookupServiceSettings getSettings() { return settings; } @@ -502,8 +503,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -513,14 +514,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -534,7 +535,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -544,7 +546,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java index f1a475149d6c..a0318e6c9434 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LookupServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java index 9861db17fbb5..e980074721f3 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java @@ -44,6 +44,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. /** @@ -507,7 +508,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RegistrationServiceClient implements BackgroundResource { - private final RegistrationServiceSettings settings; + private final @Nullable RegistrationServiceSettings settings; private final RegistrationServiceStub stub; /** Constructs an instance of RegistrationServiceClient with default settings. */ @@ -547,7 +548,7 @@ protected RegistrationServiceClient(RegistrationServiceStub stub) { this.stub = stub; } - public final RegistrationServiceSettings getSettings() { + public final @Nullable RegistrationServiceSettings getSettings() { return settings; } @@ -588,7 +589,7 @@ public RegistrationServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Namespace createNamespace( - LocationName parent, Namespace namespace, String namespaceId) { + @Nullable LocationName parent, Namespace namespace, String namespaceId) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -724,7 +725,7 @@ public final UnaryCallable createNamespaceCal * like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNamespacesPagedResponse listNamespaces(LocationName parent) { + public final ListNamespacesPagedResponse listNamespaces(@Nullable LocationName parent) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -893,7 +894,7 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re * @param name Required. The name of the namespace to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Namespace getNamespace(NamespaceName name) { + public final Namespace getNamespace(@Nullable NamespaceName name) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNamespace(request); @@ -1092,7 +1093,7 @@ public final UnaryCallable updateNamespaceCal * @param name Required. The name of the namespace to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNamespace(NamespaceName name) { + public final void deleteNamespace(@Nullable NamespaceName name) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteNamespace(request); @@ -1210,7 +1211,8 @@ public final UnaryCallable deleteNamespaceCallabl * last character, which cannot be a dash. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service createService(NamespaceName parent, Service service, String serviceId) { + public final Service createService( + @Nullable NamespaceName parent, Service service, String serviceId) { CreateServiceRequest request = CreateServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1343,7 +1345,7 @@ public final UnaryCallable createServiceCallable( * @param parent Required. The resource name of the namespace whose services you'd like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListServicesPagedResponse listServices(NamespaceName parent) { + public final ListServicesPagedResponse listServices(@Nullable NamespaceName parent) { ListServicesRequest request = ListServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1510,7 +1512,7 @@ public final UnaryCallable listServic * @param name Required. The name of the service to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Service getService(ServiceName name) { + public final Service getService(@Nullable ServiceName name) { GetServiceRequest request = GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getService(request); @@ -1709,7 +1711,7 @@ public final UnaryCallable updateServiceCallable( * @param name Required. The name of the service to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteService(ServiceName name) { + public final void deleteService(@Nullable ServiceName name) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteService(request); @@ -1830,7 +1832,8 @@ public final UnaryCallable deleteServiceCallable() * last character, which cannot be a dash. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint createEndpoint(ServiceName parent, Endpoint endpoint, String endpointId) { + public final Endpoint createEndpoint( + @Nullable ServiceName parent, Endpoint endpoint, String endpointId) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1966,7 +1969,7 @@ public final UnaryCallable createEndpointCallab * @param parent Required. The resource name of the service whose endpoints you'd like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) { + public final ListEndpointsPagedResponse listEndpoints(@Nullable ServiceName parent) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2138,7 +2141,7 @@ public final UnaryCallable listEndp * @param name Required. The name of the endpoint to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Endpoint getEndpoint(EndpointName name) { + public final Endpoint getEndpoint(@Nullable EndpointName name) { GetEndpointRequest request = GetEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEndpoint(request); @@ -2343,7 +2346,7 @@ public final UnaryCallable updateEndpointCallab * @param name Required. The name of the endpoint to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEndpoint(EndpointName name) { + public final void deleteEndpoint(@Nullable EndpointName name) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEndpoint(request); @@ -2832,8 +2835,8 @@ public static class ListNamespacesPage ListNamespacesRequest, ListNamespacesResponse, Namespace, ListNamespacesPage> { private ListNamespacesPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { super(context, response); } @@ -2843,14 +2846,14 @@ private static ListNamespacesPage createEmptyPage() { @Override protected ListNamespacesPage createPage( - PageContext context, - ListNamespacesResponse response) { + @Nullable PageContext context, + @Nullable ListNamespacesResponse response) { return new ListNamespacesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2864,7 +2867,8 @@ public static class ListNamespacesFixedSizeCollection ListNamespacesPage, ListNamespacesFixedSizeCollection> { - private ListNamespacesFixedSizeCollection(List pages, int collectionSize) { + private ListNamespacesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2874,7 +2878,7 @@ private static ListNamespacesFixedSizeCollection createEmptyCollection() { @Override protected ListNamespacesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNamespacesFixedSizeCollection(pages, collectionSize); } } @@ -2907,8 +2911,8 @@ public static class ListServicesPage extends AbstractPage { private ListServicesPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { super(context, response); } @@ -2918,14 +2922,14 @@ private static ListServicesPage createEmptyPage() { @Override protected ListServicesPage createPage( - PageContext context, - ListServicesResponse response) { + @Nullable PageContext context, + @Nullable ListServicesResponse response) { return new ListServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2939,7 +2943,8 @@ public static class ListServicesFixedSizeCollection ListServicesPage, ListServicesFixedSizeCollection> { - private ListServicesFixedSizeCollection(List pages, int collectionSize) { + private ListServicesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2949,7 +2954,7 @@ private static ListServicesFixedSizeCollection createEmptyCollection() { @Override protected ListServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListServicesFixedSizeCollection(pages, collectionSize); } } @@ -2983,8 +2988,8 @@ public static class ListEndpointsPage ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { private ListEndpointsPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { super(context, response); } @@ -2994,14 +2999,14 @@ private static ListEndpointsPage createEmptyPage() { @Override protected ListEndpointsPage createPage( - PageContext context, - ListEndpointsResponse response) { + @Nullable PageContext context, + @Nullable ListEndpointsResponse response) { return new ListEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3015,7 +3020,8 @@ public static class ListEndpointsFixedSizeCollection ListEndpointsPage, ListEndpointsFixedSizeCollection> { - private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + private ListEndpointsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3025,7 +3031,7 @@ private static ListEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -3059,8 +3065,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3070,14 +3076,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3091,7 +3097,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3101,7 +3108,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java index b269c6403ba8..448922853f12 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -268,7 +269,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); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegistrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java index 7b5ffa6a3a3b..3ced0b50f8e0 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -366,7 +367,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); resolveServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java index 852ac191c8ee..ca8b4f449b30 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java @@ -88,6 +88,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -590,7 +591,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); } @@ -705,7 +706,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createNamespaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointName.java index da7ce15c983c..97f5c99f840d 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LocationName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LocationName.java index 7dd0c5769720..17472f756303 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LocationName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/NamespaceName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/NamespaceName.java index 91545029fce3..d5659dbb904c 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/NamespaceName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/NamespaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String namespace) { .toString(); } - public static NamespaceName parse(String formattedString) { + public static @Nullable NamespaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NamespaceName> values) { List list = new ArrayList<>(values.size()); for (NamespaceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceName.java index 54419de0e632..d144fa38e76b 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String namespace, S .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointName.java index d44bb1881628..de68c8dc258a 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LocationName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LocationName.java index 3fe1582b4a91..f5af3c007c87 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LocationName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceName.java index 0562ee37fcbc..6760aef65715 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NamespaceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String namespace) { .toString(); } - public static NamespaceName parse(String formattedString) { + public static @Nullable NamespaceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NamespaceName> values) { List list = new ArrayList<>(values.size()); for (NamespaceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceName.java b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceName.java index 32aa089af6b7..eace43ed01d1 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceName.java +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/ServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String namespace, S .toString(); } - public static ServiceName parse(String formattedString) { + public static @Nullable ServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceName> values) { List list = new ArrayList<>(values.size()); for (ServiceName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java index 6d7917d7a331..0bffe69d862c 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthClient.java @@ -36,6 +36,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. /** @@ -270,7 +271,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ServiceHealthClient implements BackgroundResource { - private final ServiceHealthSettings settings; + private final @Nullable ServiceHealthSettings settings; private final ServiceHealthStub stub; /** Constructs an instance of ServiceHealthClient with default settings. */ @@ -310,7 +311,7 @@ protected ServiceHealthClient(ServiceHealthStub stub) { this.stub = stub; } - public final ServiceHealthSettings getSettings() { + public final @Nullable ServiceHealthSettings getSettings() { return settings; } @@ -345,7 +346,7 @@ public ServiceHealthStub getStub() { * category = INCIDENT, use `location` = `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(LocationName parent) { + public final ListEventsPagedResponse listEvents(@Nullable LocationName parent) { ListEventsRequest request = ListEventsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listEvents(request); @@ -515,7 +516,7 @@ public final UnaryCallable listEventsCall * retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Event getEvent(EventName name) { + public final Event getEvent(@Nullable EventName name) { GetEventRequest request = GetEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvent(request); @@ -637,7 +638,7 @@ public final UnaryCallable getEventCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrganizationEventsPagedResponse listOrganizationEvents( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListOrganizationEventsRequest request = ListOrganizationEventsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -822,7 +823,7 @@ public final ListOrganizationEventsPagedResponse listOrganizationEvents( * `event_id` - Organization event ID to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrganizationEvent getOrganizationEvent(OrganizationEventName name) { + public final OrganizationEvent getOrganizationEvent(@Nullable OrganizationEventName name) { GetOrganizationEventRequest request = GetOrganizationEventRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -951,7 +952,7 @@ public final OrganizationEvent getOrganizationEvent(GetOrganizationEventRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrganizationImpactsPagedResponse listOrganizationImpacts( - OrganizationLocationName parent) { + @Nullable OrganizationLocationName parent) { ListOrganizationImpactsRequest request = ListOrganizationImpactsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1132,7 +1133,7 @@ public final ListOrganizationImpactsPagedResponse listOrganizationImpacts( * resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrganizationImpact getOrganizationImpact(OrganizationImpactName name) { + public final OrganizationImpact getOrganizationImpact(@Nullable OrganizationImpactName name) { GetOrganizationImpactRequest request = GetOrganizationImpactRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1450,8 +1451,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -1461,14 +1462,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1482,7 +1483,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1492,7 +1494,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } @@ -1531,10 +1533,11 @@ public static class ListOrganizationEventsPage ListOrganizationEventsPage> { private ListOrganizationEventsPage( - PageContext< + @Nullable + PageContext< ListOrganizationEventsRequest, ListOrganizationEventsResponse, OrganizationEvent> context, - ListOrganizationEventsResponse response) { + @Nullable ListOrganizationEventsResponse response) { super(context, response); } @@ -1544,16 +1547,18 @@ private static ListOrganizationEventsPage createEmptyPage() { @Override protected ListOrganizationEventsPage createPage( - PageContext< + @Nullable + PageContext< ListOrganizationEventsRequest, ListOrganizationEventsResponse, OrganizationEvent> context, - ListOrganizationEventsResponse response) { + @Nullable ListOrganizationEventsResponse response) { return new ListOrganizationEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrganizationEventsRequest, ListOrganizationEventsResponse, OrganizationEvent> context, ApiFuture futureResponse) { @@ -1570,7 +1575,7 @@ public static class ListOrganizationEventsFixedSizeCollection ListOrganizationEventsFixedSizeCollection> { private ListOrganizationEventsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1580,7 +1585,7 @@ private static ListOrganizationEventsFixedSizeCollection createEmptyCollection() @Override protected ListOrganizationEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrganizationEventsFixedSizeCollection(pages, collectionSize); } } @@ -1619,10 +1624,11 @@ public static class ListOrganizationImpactsPage ListOrganizationImpactsPage> { private ListOrganizationImpactsPage( - PageContext< + @Nullable + PageContext< ListOrganizationImpactsRequest, ListOrganizationImpactsResponse, OrganizationImpact> context, - ListOrganizationImpactsResponse response) { + @Nullable ListOrganizationImpactsResponse response) { super(context, response); } @@ -1632,16 +1638,18 @@ private static ListOrganizationImpactsPage createEmptyPage() { @Override protected ListOrganizationImpactsPage createPage( - PageContext< + @Nullable + PageContext< ListOrganizationImpactsRequest, ListOrganizationImpactsResponse, OrganizationImpact> context, - ListOrganizationImpactsResponse response) { + @Nullable ListOrganizationImpactsResponse response) { return new ListOrganizationImpactsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrganizationImpactsRequest, ListOrganizationImpactsResponse, OrganizationImpact> context, ApiFuture futureResponse) { @@ -1658,7 +1666,7 @@ public static class ListOrganizationImpactsFixedSizeCollection ListOrganizationImpactsFixedSizeCollection> { private ListOrganizationImpactsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1668,7 +1676,7 @@ private static ListOrganizationImpactsFixedSizeCollection createEmptyCollection( @Override protected ListOrganizationImpactsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrganizationImpactsFixedSizeCollection(pages, collectionSize); } } @@ -1702,8 +1710,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1713,14 +1721,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1734,7 +1742,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1744,7 +1753,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java index f229b684fc4d..182c2d9e556f 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/ServiceHealthSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -204,7 +205,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); } @@ -224,7 +225,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ServiceHealthStubSettings.newBuilder(clientContext)); } diff --git a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java index 77358aa39f98..abf4e6992fba 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/ServiceHealthStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -545,7 +546,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); } @@ -653,7 +654,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEventsSettings = PagedCallSettings.newBuilder(LIST_EVENTS_PAGE_STR_FACT); diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java index 11a1f0afa75b..f51cd11c6851 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/EventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String event) { .toString(); } - public static EventName parse(String formattedString) { + public static @Nullable EventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventName> values) { List list = new ArrayList<>(values.size()); for (EventName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java index 66782674a60c..26ba628f5f3a 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java index cd5cc1d08764..ce6a8d044372 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationEventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String organization, String location, String event) .toString(); } - public static OrganizationEventName parse(String formattedString) { + public static @Nullable OrganizationEventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationEventName> values) { List list = new ArrayList<>(values.size()); for (OrganizationEventName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java index be1efd4feb6d..3a702ad607b3 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationImpactName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String organization, String location, String organiz .toString(); } - public static OrganizationImpactName parse(String formattedString) { + public static @Nullable OrganizationImpactName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -111,7 +112,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationImpactName> values) { List list = new ArrayList<>(values.size()); for (OrganizationImpactName value : values) { if (value == null) { @@ -165,7 +166,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java index 556c7fa1067a..7239c59b1d8a 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/src/main/java/com/google/cloud/servicehealth/v1/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java index 7ed3f56d7c89..cb78a3968915 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceClient.java @@ -29,6 +29,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. /** @@ -204,7 +205,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudShellServiceClient implements BackgroundResource { - private final CloudShellServiceSettings settings; + private final @Nullable CloudShellServiceSettings settings; private final CloudShellServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -252,7 +253,7 @@ protected CloudShellServiceClient(CloudShellServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudShellServiceSettings getSettings() { + public final @Nullable CloudShellServiceSettings getSettings() { return settings; } @@ -300,7 +301,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `users/someone{@literal @}example.com/environments/default`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Environment getEnvironment(EnvironmentName name) { + public final Environment getEnvironment(@Nullable EnvironmentName name) { GetEnvironmentRequest request = GetEnvironmentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEnvironment(request); diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java index 859b05fdf985..019aa3235cf5 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/CloudShellServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudShellServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStub.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStub.java index f1828d6d87ad..d052b2666fbd 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStub.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStub.java @@ -37,6 +37,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,11 +49,12 @@ @Generated("by gapic-generator-java") public abstract class CloudShellServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java index 1c6ea309f26f..0b3d713f7ec2 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/CloudShellServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -320,7 +321,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); } @@ -424,7 +425,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEnvironmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shell/proto-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/EnvironmentName.java b/java-shell/proto-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/EnvironmentName.java index e1b210adfcd3..125bd73aed8d 100644 --- a/java-shell/proto-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/EnvironmentName.java +++ b/java-shell/proto-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/EnvironmentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String user, String environment) { return newBuilder().setUser(user).setEnvironment(environment).build().toString(); } - public static EnvironmentName parse(String formattedString) { + public static @Nullable EnvironmentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EnvironmentName> values) { List list = new ArrayList<>(values.size()); for (EnvironmentName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java index 1dc5ddd58525..f8ff573d4867 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceClient.java @@ -33,6 +33,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. /** @@ -203,7 +204,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountLabelsServiceClient implements BackgroundResource { - private final AccountLabelsServiceSettings settings; + private final @Nullable AccountLabelsServiceSettings settings; private final AccountLabelsServiceStub stub; /** Constructs an instance of AccountLabelsServiceClient with default settings. */ @@ -243,7 +244,7 @@ protected AccountLabelsServiceClient(AccountLabelsServiceStub stub) { this.stub = stub; } - public final AccountLabelsServiceSettings getSettings() { + public final @Nullable AccountLabelsServiceSettings getSettings() { return settings; } @@ -276,7 +277,7 @@ public AccountLabelsServiceStub getStub() { * @param parent Required. The parent account. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountLabelsPagedResponse listAccountLabels(AccountName parent) { + public final ListAccountLabelsPagedResponse listAccountLabels(@Nullable AccountName parent) { ListAccountLabelsRequest request = ListAccountLabelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -448,7 +449,8 @@ public final ListAccountLabelsPagedResponse listAccountLabels(ListAccountLabelsR * @param accountLabel Required. The label to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountLabel createAccountLabel(AccountName parent, AccountLabel accountLabel) { + public final AccountLabel createAccountLabel( + @Nullable AccountName parent, AccountLabel accountLabel) { CreateAccountLabelRequest request = CreateAccountLabelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -659,7 +661,7 @@ public final UnaryCallable updateAccoun * accounts/{account}/labels/{label} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccountLabel(AccountLabelName name) { + public final void deleteAccountLabel(@Nullable AccountLabelName name) { DeleteAccountLabelRequest request = DeleteAccountLabelRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -816,8 +818,9 @@ public static class ListAccountLabelsPage ListAccountLabelsPage> { private ListAccountLabelsPage( - PageContext context, - ListAccountLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountLabelsResponse response) { super(context, response); } @@ -827,14 +830,16 @@ private static ListAccountLabelsPage createEmptyPage() { @Override protected ListAccountLabelsPage createPage( - PageContext context, - ListAccountLabelsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountLabelsResponse response) { return new ListAccountLabelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -849,7 +854,7 @@ public static class ListAccountLabelsFixedSizeCollection ListAccountLabelsFixedSizeCollection> { private ListAccountLabelsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -859,7 +864,7 @@ private static ListAccountLabelsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountLabelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountLabelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceSettings.java index d7d58d94994d..e14b4c3da532 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountLabelsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountLabelsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java index c4013ba13134..00da09a2197d 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceClient.java @@ -32,6 +32,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. /** @@ -182,7 +183,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountsServiceClient implements BackgroundResource { - private final AccountsServiceSettings settings; + private final @Nullable AccountsServiceSettings settings; private final AccountsServiceStub stub; /** Constructs an instance of AccountsServiceClient with default settings. */ @@ -222,7 +223,7 @@ protected AccountsServiceClient(AccountsServiceStub stub) { this.stub = stub; } - public final AccountsServiceSettings getSettings() { + public final @Nullable AccountsServiceSettings getSettings() { return settings; } @@ -255,7 +256,7 @@ public AccountsServiceStub getStub() { * accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChildAccountsPagedResponse listChildAccounts(AccountName parent) { + public final ListChildAccountsPagedResponse listChildAccounts(@Nullable AccountName parent) { ListChildAccountsRequest request = ListChildAccountsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -429,7 +430,7 @@ public final ListChildAccountsPagedResponse listChildAccounts(ListChildAccountsR * @param name Required. The name of the managed CSS/MC account. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account getAccount(AccountName name) { + public final Account getAccount(@Nullable AccountName name) { GetAccountRequest request = GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccount(request); @@ -539,7 +540,7 @@ public final UnaryCallable getAccountCallable() { * @param name Required. The label resource name. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account updateLabels(AccountName name) { + public final Account updateLabels(@Nullable AccountName name) { UpdateAccountLabelsRequest request = UpdateAccountLabelsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -692,8 +693,8 @@ public static class ListChildAccountsPage ListChildAccountsRequest, ListChildAccountsResponse, Account, ListChildAccountsPage> { private ListChildAccountsPage( - PageContext context, - ListChildAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListChildAccountsResponse response) { super(context, response); } @@ -703,14 +704,14 @@ private static ListChildAccountsPage createEmptyPage() { @Override protected ListChildAccountsPage createPage( - PageContext context, - ListChildAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListChildAccountsResponse response) { return new ListChildAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -725,7 +726,7 @@ public static class ListChildAccountsFixedSizeCollection ListChildAccountsFixedSizeCollection> { private ListChildAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -735,7 +736,7 @@ private static ListChildAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListChildAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChildAccountsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceSettings.java index 2fc0aed821a1..549e84ff1e64 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/AccountsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java index 6e6985931da3..46dcc250a514 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceClient.java @@ -26,6 +26,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. /** @@ -179,7 +180,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CssProductInputsServiceClient implements BackgroundResource { - private final CssProductInputsServiceSettings settings; + private final @Nullable CssProductInputsServiceSettings settings; private final CssProductInputsServiceStub stub; /** Constructs an instance of CssProductInputsServiceClient with default settings. */ @@ -220,7 +221,7 @@ protected CssProductInputsServiceClient(CssProductInputsServiceStub stub) { this.stub = stub; } - public final CssProductInputsServiceSettings getSettings() { + public final @Nullable CssProductInputsServiceSettings getSettings() { return settings; } @@ -443,7 +444,7 @@ public final CssProductInput updateCssProductInput(UpdateCssProductInputRequest * accounts/123/cssProductInputs/de~DE~rawProvidedId123 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCssProductInput(CssProductInputName name) { + public final void deleteCssProductInput(@Nullable CssProductInputName name) { DeleteCssProductInputRequest request = DeleteCssProductInputRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceSettings.java index cc5ba1d4a10b..efcfbde80223 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductInputsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CssProductInputsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java index ddac0d9b6087..3dcb19a44927 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceClient.java @@ -32,6 +32,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. /** @@ -165,7 +166,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CssProductsServiceClient implements BackgroundResource { - private final CssProductsServiceSettings settings; + private final @Nullable CssProductsServiceSettings settings; private final CssProductsServiceStub stub; /** Constructs an instance of CssProductsServiceClient with default settings. */ @@ -205,7 +206,7 @@ protected CssProductsServiceClient(CssProductsServiceStub stub) { this.stub = stub; } - public final CssProductsServiceSettings getSettings() { + public final @Nullable CssProductsServiceSettings getSettings() { return settings; } @@ -237,7 +238,7 @@ public CssProductsServiceStub getStub() { * `accounts/{account}/cssProducts/{css_product}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CssProduct getCssProduct(CssProductName name) { + public final CssProduct getCssProduct(@Nullable CssProductName name) { GetCssProductRequest request = GetCssProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCssProduct(request); @@ -361,7 +362,7 @@ public final UnaryCallable getCssProductCallab * accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCssProductsPagedResponse listCssProducts(AccountName parent) { + public final ListCssProductsPagedResponse listCssProducts(@Nullable AccountName parent) { ListCssProductsRequest request = ListCssProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -582,8 +583,8 @@ public static class ListCssProductsPage ListCssProductsRequest, ListCssProductsResponse, CssProduct, ListCssProductsPage> { private ListCssProductsPage( - PageContext context, - ListCssProductsResponse response) { + @Nullable PageContext context, + @Nullable ListCssProductsResponse response) { super(context, response); } @@ -593,14 +594,14 @@ private static ListCssProductsPage createEmptyPage() { @Override protected ListCssProductsPage createPage( - PageContext context, - ListCssProductsResponse response) { + @Nullable PageContext context, + @Nullable ListCssProductsResponse response) { return new ListCssProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -615,7 +616,7 @@ public static class ListCssProductsFixedSizeCollection ListCssProductsFixedSizeCollection> { private ListCssProductsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -625,7 +626,7 @@ private static ListCssProductsFixedSizeCollection createEmptyCollection() { @Override protected ListCssProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCssProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceSettings.java index 18a9be44de8d..e282034bf4f8 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/CssProductsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CssProductsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceClient.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceClient.java index 739e89731f8d..2f09a1b1b61f 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceClient.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceClient.java @@ -32,6 +32,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class QuotaServiceClient implements BackgroundResource { - private final QuotaServiceSettings settings; + private final @Nullable QuotaServiceSettings settings; private final QuotaServiceStub stub; /** Constructs an instance of QuotaServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected QuotaServiceClient(QuotaServiceStub stub) { this.stub = stub; } - public final QuotaServiceSettings getSettings() { + public final @Nullable QuotaServiceSettings getSettings() { return settings; } @@ -212,7 +213,7 @@ public QuotaServiceStub getStub() { * resources. In most cases, this is the CSS domain. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaGroupsPagedResponse listQuotaGroups(AccountName parent) { + public final ListQuotaGroupsPagedResponse listQuotaGroups(@Nullable AccountName parent) { ListQuotaGroupsRequest request = ListQuotaGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -413,8 +414,8 @@ public static class ListQuotaGroupsPage ListQuotaGroupsRequest, ListQuotaGroupsResponse, QuotaGroup, ListQuotaGroupsPage> { private ListQuotaGroupsPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { super(context, response); } @@ -424,14 +425,14 @@ private static ListQuotaGroupsPage createEmptyPage() { @Override protected ListQuotaGroupsPage createPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { return new ListQuotaGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -446,7 +447,7 @@ public static class ListQuotaGroupsFixedSizeCollection ListQuotaGroupsFixedSizeCollection> { private ListQuotaGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -456,7 +457,7 @@ private static ListQuotaGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceSettings.java index 06336445b386..120685c1b2c9 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/QuotaServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QuotaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java index 83cd80afd0e6..5f240ba350ea 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountLabelsServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAccountLabelsSettings = PagedCallSettings.newBuilder(LIST_ACCOUNT_LABELS_PAGE_STR_FACT); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java index 49b8e992c499..f7aaf07df364 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/AccountsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,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); } @@ -378,7 +379,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listChildAccountsSettings = PagedCallSettings.newBuilder(LIST_CHILD_ACCOUNTS_PAGE_STR_FACT); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java index c7c87550dc56..522c6e07ae7d 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductInputsServiceStubSettings.java @@ -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. /** @@ -234,7 +235,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); } @@ -301,7 +302,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertCssProductInputSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java index 221828c15abf..655f2deb1aff 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/CssProductsServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -288,7 +289,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); } @@ -356,7 +357,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCssProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/QuotaServiceStubSettings.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/QuotaServiceStubSettings.java index 485fe5f9293d..f8867e8c1377 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/QuotaServiceStubSettings.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/QuotaServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -280,7 +281,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); } @@ -345,7 +346,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQuotaGroupsSettings = PagedCallSettings.newBuilder(LIST_QUOTA_GROUPS_PAGE_STR_FACT); diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelName.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelName.java index d1d17465a815..f7d86399a694 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelName.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountLabelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String label) { return newBuilder().setAccount(account).setLabel(label).build().toString(); } - public static AccountLabelName parse(String formattedString) { + public static @Nullable AccountLabelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountLabelName> values) { List list = new ArrayList<>(values.size()); for (AccountLabelName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountName.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountName.java index 68066a1cc4a0..6c941a8fd791 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountName.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputName.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputName.java index 0440ccb6114c..e81d677fd089 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputName.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductInputName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String cssProductInput) { return newBuilder().setAccount(account).setCssProductInput(cssProductInput).build().toString(); } - public static CssProductInputName parse(String formattedString) { + public static @Nullable CssProductInputName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CssProductInputName> values) { List list = new ArrayList<>(values.size()); for (CssProductInputName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductName.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductName.java index 3da7371a2fe2..b870304a2dc5 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductName.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String cssProduct) { return newBuilder().setAccount(account).setCssProduct(cssProduct).build().toString(); } - public static CssProductName parse(String formattedString) { + public static @Nullable CssProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CssProductName> values) { List list = new ArrayList<>(values.size()); for (CssProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaGroupName.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaGroupName.java index cc669fd29e50..5735845dd55b 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaGroupName.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/QuotaGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String quotaGroup) { return newBuilder().setAccount(account).setQuotaGroup(quotaGroup).build().toString(); } - public static QuotaGroupName parse(String formattedString) { + public static @Nullable QuotaGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaGroupName> values) { List list = new ArrayList<>(values.size()); for (QuotaGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceClient.java index 1b55d469c6eb..62523ea6eca0 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceClient.java @@ -32,6 +32,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. /** @@ -148,7 +149,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountIssueServiceClient implements BackgroundResource { - private final AccountIssueServiceSettings settings; + private final @Nullable AccountIssueServiceSettings settings; private final AccountIssueServiceStub stub; /** Constructs an instance of AccountIssueServiceClient with default settings. */ @@ -188,7 +189,7 @@ protected AccountIssueServiceClient(AccountIssueServiceStub stub) { this.stub = stub; } - public final AccountIssueServiceSettings getSettings() { + public final @Nullable AccountIssueServiceSettings getSettings() { return settings; } @@ -227,7 +228,7 @@ public AccountIssueServiceStub getStub() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountIssuesPagedResponse listAccountIssues(AccountName parent) { + public final ListAccountIssuesPagedResponse listAccountIssues(@Nullable AccountName parent) { ListAccountIssuesRequest request = ListAccountIssuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -464,8 +465,9 @@ public static class ListAccountIssuesPage ListAccountIssuesPage> { private ListAccountIssuesPage( - PageContext context, - ListAccountIssuesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountIssuesResponse response) { super(context, response); } @@ -475,14 +477,16 @@ private static ListAccountIssuesPage createEmptyPage() { @Override protected ListAccountIssuesPage createPage( - PageContext context, - ListAccountIssuesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountIssuesResponse response) { return new ListAccountIssuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -497,7 +501,7 @@ public static class ListAccountIssuesFixedSizeCollection ListAccountIssuesFixedSizeCollection> { private ListAccountIssuesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -507,7 +511,7 @@ private static ListAccountIssuesFixedSizeCollection createEmptyCollection() { @Override protected ListAccountIssuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountIssuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceSettings.java index ba7fe7331859..c13083aa9d91 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountIssueServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountIssueServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceClient.java index 2aa15d8a16fd..2833c6455462 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceClient.java @@ -33,6 +33,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountRelationshipsServiceClient implements BackgroundResource { - private final AccountRelationshipsServiceSettings settings; + private final @Nullable AccountRelationshipsServiceSettings settings; private final AccountRelationshipsServiceStub stub; /** Constructs an instance of AccountRelationshipsServiceClient with default settings. */ @@ -226,7 +227,7 @@ protected AccountRelationshipsServiceClient(AccountRelationshipsServiceStub stub this.stub = stub; } - public final AccountRelationshipsServiceSettings getSettings() { + public final @Nullable AccountRelationshipsServiceSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public AccountRelationshipsServiceStub getStub() { * `accounts/123456/relationships/567890`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountRelationship getAccountRelationship(AccountRelationshipName name) { + public final AccountRelationship getAccountRelationship(@Nullable AccountRelationshipName name) { GetAccountRelationshipRequest request = GetAccountRelationshipRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -483,7 +484,8 @@ public final AccountRelationship updateAccountRelationship( * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountRelationshipsPagedResponse listAccountRelationships(AccountName parent) { + public final ListAccountRelationshipsPagedResponse listAccountRelationships( + @Nullable AccountName parent) { ListAccountRelationshipsRequest request = ListAccountRelationshipsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -701,12 +703,13 @@ public static class ListAccountRelationshipsPage ListAccountRelationshipsPage> { private ListAccountRelationshipsPage( - PageContext< + @Nullable + PageContext< ListAccountRelationshipsRequest, ListAccountRelationshipsResponse, AccountRelationship> context, - ListAccountRelationshipsResponse response) { + @Nullable ListAccountRelationshipsResponse response) { super(context, response); } @@ -716,18 +719,20 @@ private static ListAccountRelationshipsPage createEmptyPage() { @Override protected ListAccountRelationshipsPage createPage( - PageContext< + @Nullable + PageContext< ListAccountRelationshipsRequest, ListAccountRelationshipsResponse, AccountRelationship> context, - ListAccountRelationshipsResponse response) { + @Nullable ListAccountRelationshipsResponse response) { return new ListAccountRelationshipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAccountRelationshipsRequest, ListAccountRelationshipsResponse, AccountRelationship> @@ -746,7 +751,7 @@ public static class ListAccountRelationshipsFixedSizeCollection ListAccountRelationshipsFixedSizeCollection> { private ListAccountRelationshipsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -756,7 +761,7 @@ private static ListAccountRelationshipsFixedSizeCollection createEmptyCollection @Override protected ListAccountRelationshipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountRelationshipsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceSettings.java index c10bb24328b2..cc798cd82b41 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountRelationshipsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceClient.java index 3be291a276d0..a7cb9d136d1b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceClient.java @@ -33,6 +33,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. /** @@ -222,7 +223,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountServicesServiceClient implements BackgroundResource { - private final AccountServicesServiceSettings settings; + private final @Nullable AccountServicesServiceSettings settings; private final AccountServicesServiceStub stub; /** Constructs an instance of AccountServicesServiceClient with default settings. */ @@ -263,7 +264,7 @@ protected AccountServicesServiceClient(AccountServicesServiceStub stub) { this.stub = stub; } - public final AccountServicesServiceSettings getSettings() { + public final @Nullable AccountServicesServiceSettings getSettings() { return settings; } @@ -294,7 +295,7 @@ public AccountServicesServiceStub getStub() { * `accounts/{account}/services/{service}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountService getAccountService(AccountServiceName name) { + public final AccountService getAccountService(@Nullable AccountServiceName name) { GetAccountServiceRequest request = GetAccountServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -414,7 +415,7 @@ public final UnaryCallable getAccountS * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountServicesPagedResponse listAccountServices(AccountName parent) { + public final ListAccountServicesPagedResponse listAccountServices(@Nullable AccountName parent) { ListAccountServicesRequest request = ListAccountServicesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -595,7 +596,7 @@ public final ListAccountServicesPagedResponse listAccountServices( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AccountService proposeAccountService( - AccountName parent, String provider, AccountService accountService) { + @Nullable AccountName parent, String provider, AccountService accountService) { ProposeAccountServiceRequest request = ProposeAccountServiceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -732,7 +733,7 @@ public final AccountService proposeAccountService(ProposeAccountServiceRequest r * `accounts/{account}/services/{service}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountService approveAccountService(AccountServiceName name) { + public final AccountService approveAccountService(@Nullable AccountServiceName name) { ApproveAccountServiceRequest request = ApproveAccountServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -851,7 +852,7 @@ public final AccountService approveAccountService(ApproveAccountServiceRequest r * `accounts/{account}/services/{service}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void rejectAccountService(AccountServiceName name) { + public final void rejectAccountService(@Nullable AccountServiceName name) { RejectAccountServiceRequest request = RejectAccountServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1009,9 +1010,10 @@ public static class ListAccountServicesPage ListAccountServicesPage> { private ListAccountServicesPage( - PageContext + @Nullable + PageContext context, - ListAccountServicesResponse response) { + @Nullable ListAccountServicesResponse response) { super(context, response); } @@ -1021,15 +1023,17 @@ private static ListAccountServicesPage createEmptyPage() { @Override protected ListAccountServicesPage createPage( - PageContext + @Nullable + PageContext context, - ListAccountServicesResponse response) { + @Nullable ListAccountServicesResponse response) { return new ListAccountServicesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1045,7 +1049,7 @@ public static class ListAccountServicesFixedSizeCollection ListAccountServicesFixedSizeCollection> { private ListAccountServicesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1055,7 +1059,7 @@ private static ListAccountServicesFixedSizeCollection createEmptyCollection() { @Override protected ListAccountServicesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountServicesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceSettings.java index 93770db57ee3..d44bda11e74c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServicesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,7 +178,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); } @@ -198,7 +199,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountServicesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceClient.java index ed03cf334ca0..fe66b63eef16 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceClient.java @@ -34,6 +34,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. /** @@ -252,7 +253,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountsServiceClient implements BackgroundResource { - private final AccountsServiceSettings settings; + private final @Nullable AccountsServiceSettings settings; private final AccountsServiceStub stub; /** Constructs an instance of AccountsServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected AccountsServiceClient(AccountsServiceStub stub) { this.stub = stub; } - public final AccountsServiceSettings getSettings() { + public final @Nullable AccountsServiceSettings getSettings() { return settings; } @@ -322,7 +323,7 @@ public AccountsServiceStub getStub() { * @param name Required. The name of the account to retrieve. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account getAccount(AccountName name) { + public final Account getAccount(@Nullable AccountName name) { GetAccountRequest request = GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccount(request); @@ -509,7 +510,7 @@ public final Account createAndConfigureAccount(CreateAndConfigureAccountRequest * @param account Required. The account to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account createTestAccount(AccountName parent, Account account) { + public final Account createTestAccount(@Nullable AccountName parent, Account account) { CreateTestAccountRequest request = CreateTestAccountRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -663,7 +664,7 @@ public final UnaryCallable createTestAccountC * @param name Required. The name of the account to delete. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccount(AccountName name) { + public final void deleteAccount(@Nullable AccountName name) { DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAccount(request); @@ -999,7 +1000,7 @@ public final UnaryCallable listAccoun * @param provider Required. The aggregation service provider. Format: `accounts/{accountId}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubAccountsPagedResponse listSubAccounts(AccountName provider) { + public final ListSubAccountsPagedResponse listSubAccounts(@Nullable AccountName provider) { ListSubAccountsRequest request = ListSubAccountsRequest.newBuilder() .setProvider(provider == null ? null : provider.toString()) @@ -1211,8 +1212,8 @@ public static class ListAccountsPage extends AbstractPage { private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { super(context, response); } @@ -1222,14 +1223,14 @@ private static ListAccountsPage createEmptyPage() { @Override protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { return new ListAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1243,7 +1244,8 @@ public static class ListAccountsFixedSizeCollection ListAccountsPage, ListAccountsFixedSizeCollection> { - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { + private ListAccountsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1253,7 +1255,7 @@ private static ListAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountsFixedSizeCollection(pages, collectionSize); } } @@ -1287,8 +1289,8 @@ public static class ListSubAccountsPage ListSubAccountsRequest, ListSubAccountsResponse, Account, ListSubAccountsPage> { private ListSubAccountsPage( - PageContext context, - ListSubAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListSubAccountsResponse response) { super(context, response); } @@ -1298,14 +1300,14 @@ private static ListSubAccountsPage createEmptyPage() { @Override protected ListSubAccountsPage createPage( - PageContext context, - ListSubAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListSubAccountsResponse response) { return new ListSubAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1320,7 +1322,7 @@ public static class ListSubAccountsFixedSizeCollection ListSubAccountsFixedSizeCollection> { private ListSubAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1330,7 +1332,7 @@ private static ListSubAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListSubAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubAccountsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceSettings.java index f91a9cf9c06c..c8edeafa8af4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceClient.java index 0b76ccb6417e..6242b76df76f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceClient.java @@ -25,6 +25,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutofeedSettingsServiceClient implements BackgroundResource { - private final AutofeedSettingsServiceSettings settings; + private final @Nullable AutofeedSettingsServiceSettings settings; private final AutofeedSettingsServiceStub stub; /** Constructs an instance of AutofeedSettingsServiceClient with default settings. */ @@ -197,7 +198,7 @@ protected AutofeedSettingsServiceClient(AutofeedSettingsServiceStub stub) { this.stub = stub; } - public final AutofeedSettingsServiceSettings getSettings() { + public final @Nullable AutofeedSettingsServiceSettings getSettings() { return settings; } @@ -228,7 +229,7 @@ public AutofeedSettingsServiceStub getStub() { * `accounts/{account}/autofeedSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutofeedSettings getAutofeedSettings(AutofeedSettingsName name) { + public final AutofeedSettings getAutofeedSettings(@Nullable AutofeedSettingsName name) { GetAutofeedSettingsRequest request = GetAutofeedSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceSettings.java index e256ea23a400..522c613b611b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutofeedSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceClient.java index 0b32359dd189..d22f71a535e4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceClient.java @@ -25,6 +25,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. /** @@ -158,7 +159,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AutomaticImprovementsServiceClient implements BackgroundResource { - private final AutomaticImprovementsServiceSettings settings; + private final @Nullable AutomaticImprovementsServiceSettings settings; private final AutomaticImprovementsServiceStub stub; /** Constructs an instance of AutomaticImprovementsServiceClient with default settings. */ @@ -202,7 +203,7 @@ protected AutomaticImprovementsServiceClient(AutomaticImprovementsServiceStub st this.stub = stub; } - public final AutomaticImprovementsServiceSettings getSettings() { + public final @Nullable AutomaticImprovementsServiceSettings getSettings() { return settings; } @@ -234,7 +235,8 @@ public AutomaticImprovementsServiceStub getStub() { * `accounts/{account}/automaticImprovements` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutomaticImprovements getAutomaticImprovements(AutomaticImprovementsName name) { + public final AutomaticImprovements getAutomaticImprovements( + @Nullable AutomaticImprovementsName name) { GetAutomaticImprovementsRequest request = GetAutomaticImprovementsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceSettings.java index 4fd2bcb0b052..f052db3a1c25 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutomaticImprovementsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceClient.java index da97221f3de0..ff05c6f81972 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceClient.java @@ -25,6 +25,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BusinessIdentityServiceClient implements BackgroundResource { - private final BusinessIdentityServiceSettings settings; + private final @Nullable BusinessIdentityServiceSettings settings; private final BusinessIdentityServiceStub stub; /** Constructs an instance of BusinessIdentityServiceClient with default settings. */ @@ -197,7 +198,7 @@ protected BusinessIdentityServiceClient(BusinessIdentityServiceStub stub) { this.stub = stub; } - public final BusinessIdentityServiceSettings getSettings() { + public final @Nullable BusinessIdentityServiceSettings getSettings() { return settings; } @@ -228,7 +229,7 @@ public BusinessIdentityServiceStub getStub() { * `accounts/{account}/businessIdentity`. For example, `accounts/123456/businessIdentity`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BusinessIdentity getBusinessIdentity(BusinessIdentityName name) { + public final BusinessIdentity getBusinessIdentity(@Nullable BusinessIdentityName name) { GetBusinessIdentityRequest request = GetBusinessIdentityRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceSettings.java index bd9c8e8a425b..3d23d4bf833e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BusinessIdentityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceClient.java index b8e56084a12e..d2e38a0a0692 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceClient.java @@ -25,6 +25,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. /** @@ -154,7 +155,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BusinessInfoServiceClient implements BackgroundResource { - private final BusinessInfoServiceSettings settings; + private final @Nullable BusinessInfoServiceSettings settings; private final BusinessInfoServiceStub stub; /** Constructs an instance of BusinessInfoServiceClient with default settings. */ @@ -194,7 +195,7 @@ protected BusinessInfoServiceClient(BusinessInfoServiceStub stub) { this.stub = stub; } - public final BusinessInfoServiceSettings getSettings() { + public final @Nullable BusinessInfoServiceSettings getSettings() { return settings; } @@ -224,7 +225,7 @@ public BusinessInfoServiceStub getStub() { * `accounts/{account}/businessInfo`. For example, `accounts/123456/businessInfo`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BusinessInfo getBusinessInfo(BusinessInfoName name) { + public final BusinessInfo getBusinessInfo(@Nullable BusinessInfoName name) { GetBusinessInfoRequest request = GetBusinessInfoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBusinessInfo(request); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceSettings.java index e7eb274688b0..edd97b3bcd41 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BusinessInfoServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceClient.java index 7aec0f4149ae..28121938bd51 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceClient.java @@ -26,6 +26,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. /** @@ -195,7 +196,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CheckoutSettingsServiceClient implements BackgroundResource { - private final CheckoutSettingsServiceSettings settings; + private final @Nullable CheckoutSettingsServiceSettings settings; private final CheckoutSettingsServiceStub stub; /** Constructs an instance of CheckoutSettingsServiceClient with default settings. */ @@ -236,7 +237,7 @@ protected CheckoutSettingsServiceClient(CheckoutSettingsServiceStub stub) { this.stub = stub; } - public final CheckoutSettingsServiceSettings getSettings() { + public final @Nullable CheckoutSettingsServiceSettings getSettings() { return settings; } @@ -268,7 +269,7 @@ public CheckoutSettingsServiceStub getStub() { * `accounts/{account}/programs/{program}/checkoutSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CheckoutSettings getCheckoutSettings(CheckoutSettingsName name) { + public final CheckoutSettings getCheckoutSettings(@Nullable CheckoutSettingsName name) { GetCheckoutSettingsRequest request = GetCheckoutSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -393,7 +394,7 @@ public final CheckoutSettings getCheckoutSettings(GetCheckoutSettingsRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CheckoutSettings createCheckoutSettings( - ProgramName parent, CheckoutSettings checkoutSettings) { + @Nullable ProgramName parent, CheckoutSettings checkoutSettings) { CreateCheckoutSettingsRequest request = CreateCheckoutSettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -621,7 +622,7 @@ public final CheckoutSettings updateCheckoutSettings(UpdateCheckoutSettingsReque * `accounts/{account}/programs/{program}/checkoutSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCheckoutSettings(CheckoutSettingsName name) { + public final void deleteCheckoutSettings(@Nullable CheckoutSettingsName name) { DeleteCheckoutSettingsRequest request = DeleteCheckoutSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceSettings.java index 4f04df5d97a5..c5b255020fae 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CheckoutSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceClient.java index 234b750e4d6a..39b2069b3bef 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceClient.java @@ -25,6 +25,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DeveloperRegistrationServiceClient implements BackgroundResource { - private final DeveloperRegistrationServiceSettings settings; + private final @Nullable DeveloperRegistrationServiceSettings settings; private final DeveloperRegistrationServiceStub stub; /** Constructs an instance of DeveloperRegistrationServiceClient with default settings. */ @@ -227,7 +228,7 @@ protected DeveloperRegistrationServiceClient(DeveloperRegistrationServiceStub st this.stub = stub; } - public final DeveloperRegistrationServiceSettings getSettings() { + public final @Nullable DeveloperRegistrationServiceSettings getSettings() { return settings; } @@ -322,7 +323,8 @@ public final UnaryCallable registerGc * @param name Required. The `name` (ID) of the developer registration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeveloperRegistration getDeveloperRegistration(DeveloperRegistrationName name) { + public final DeveloperRegistration getDeveloperRegistration( + @Nullable DeveloperRegistrationName name) { GetDeveloperRegistrationRequest request = GetDeveloperRegistrationRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceSettings.java index 8e4d2a79e50e..83e8f2de5252 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,7 +171,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); } @@ -191,7 +192,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DeveloperRegistrationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceClient.java index 3bcd9bf0c8ef..2a1d54006793 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceClient.java @@ -25,6 +25,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. /** @@ -158,7 +159,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EmailPreferencesServiceClient implements BackgroundResource { - private final EmailPreferencesServiceSettings settings; + private final @Nullable EmailPreferencesServiceSettings settings; private final EmailPreferencesServiceStub stub; /** Constructs an instance of EmailPreferencesServiceClient with default settings. */ @@ -199,7 +200,7 @@ protected EmailPreferencesServiceClient(EmailPreferencesServiceStub stub) { this.stub = stub; } - public final EmailPreferencesServiceSettings getSettings() { + public final @Nullable EmailPreferencesServiceSettings getSettings() { return settings; } @@ -233,7 +234,7 @@ public EmailPreferencesServiceStub getStub() { * `accounts/{account}/users/{email}/emailPreferences` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EmailPreferences getEmailPreferences(EmailPreferencesName name) { + public final EmailPreferences getEmailPreferences(@Nullable EmailPreferencesName name) { GetEmailPreferencesRequest request = GetEmailPreferencesRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceSettings.java index c2162370dfcb..f97ec117741b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EmailPreferencesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceClient.java index f0836b5c6f36..3aef08a73463 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceClient.java @@ -32,6 +32,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class GbpAccountsServiceClient implements BackgroundResource { - private final GbpAccountsServiceSettings settings; + private final @Nullable GbpAccountsServiceSettings settings; private final GbpAccountsServiceStub stub; /** Constructs an instance of GbpAccountsServiceClient with default settings. */ @@ -206,7 +207,7 @@ protected GbpAccountsServiceClient(GbpAccountsServiceStub stub) { this.stub = stub; } - public final GbpAccountsServiceSettings getSettings() { + public final @Nullable GbpAccountsServiceSettings getSettings() { return settings; } @@ -238,7 +239,7 @@ public GbpAccountsServiceStub getStub() { * listed. Format: `accounts/{account}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGbpAccountsPagedResponse listGbpAccounts(AccountName parent) { + public final ListGbpAccountsPagedResponse listGbpAccounts(@Nullable AccountName parent) { ListGbpAccountsRequest request = ListGbpAccountsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -406,7 +407,7 @@ public final ListGbpAccountsPagedResponse listGbpAccounts(ListGbpAccountsRequest * Format: `accounts/{account}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LinkGbpAccountResponse linkGbpAccount(AccountName parent) { + public final LinkGbpAccountResponse linkGbpAccount(@Nullable AccountName parent) { LinkGbpAccountRequest request = LinkGbpAccountRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -571,8 +572,8 @@ public static class ListGbpAccountsPage ListGbpAccountsRequest, ListGbpAccountsResponse, GbpAccount, ListGbpAccountsPage> { private ListGbpAccountsPage( - PageContext context, - ListGbpAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListGbpAccountsResponse response) { super(context, response); } @@ -582,14 +583,14 @@ private static ListGbpAccountsPage createEmptyPage() { @Override protected ListGbpAccountsPage createPage( - PageContext context, - ListGbpAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListGbpAccountsResponse response) { return new ListGbpAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -604,7 +605,7 @@ public static class ListGbpAccountsFixedSizeCollection ListGbpAccountsFixedSizeCollection> { private ListGbpAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -614,7 +615,7 @@ private static ListGbpAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListGbpAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGbpAccountsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceSettings.java index 8ca233f5109f..d5e76731c306 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/GbpAccountsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GbpAccountsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceClient.java index 372db4f0c190..e2a08a7a3446 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceClient.java @@ -25,6 +25,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. /** @@ -189,7 +190,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HomepageServiceClient implements BackgroundResource { - private final HomepageServiceSettings settings; + private final @Nullable HomepageServiceSettings settings; private final HomepageServiceStub stub; /** Constructs an instance of HomepageServiceClient with default settings. */ @@ -229,7 +230,7 @@ protected HomepageServiceClient(HomepageServiceStub stub) { this.stub = stub; } - public final HomepageServiceSettings getSettings() { + public final @Nullable HomepageServiceSettings getSettings() { return settings; } @@ -259,7 +260,7 @@ public HomepageServiceStub getStub() { * `accounts/{account}/homepage` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Homepage getHomepage(HomepageName name) { + public final Homepage getHomepage(@Nullable HomepageName name) { GetHomepageRequest request = GetHomepageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHomepage(request); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceSettings.java index b72ae6f16d4b..1113c1a50d2f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HomepageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceClient.java index 8c9bb90a7506..ab30d62fa6d5 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceClient.java @@ -32,6 +32,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. /** @@ -166,7 +167,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LfpProvidersServiceClient implements BackgroundResource { - private final LfpProvidersServiceSettings settings; + private final @Nullable LfpProvidersServiceSettings settings; private final LfpProvidersServiceStub stub; /** Constructs an instance of LfpProvidersServiceClient with default settings. */ @@ -206,7 +207,7 @@ protected LfpProvidersServiceClient(LfpProvidersServiceStub stub) { this.stub = stub; } - public final LfpProvidersServiceSettings getSettings() { + public final @Nullable LfpProvidersServiceSettings getSettings() { return settings; } @@ -239,7 +240,8 @@ public LfpProvidersServiceStub getStub() { * found. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FindLfpProvidersPagedResponse findLfpProviders(OmnichannelSettingName parent) { + public final FindLfpProvidersPagedResponse findLfpProviders( + @Nullable OmnichannelSettingName parent) { FindLfpProvidersRequest request = FindLfpProvidersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -406,7 +408,7 @@ public final FindLfpProvidersPagedResponse findLfpProviders(FindLfpProvidersRequ * The `lfp_provider` is the LFP provider ID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LinkLfpProviderResponse linkLfpProvider(LfpProviderName name) { + public final LinkLfpProviderResponse linkLfpProvider(@Nullable LfpProviderName name) { LinkLfpProviderRequest request = LinkLfpProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return linkLfpProvider(request); @@ -563,8 +565,9 @@ public static class FindLfpProvidersPage FindLfpProvidersRequest, FindLfpProvidersResponse, LfpProvider, FindLfpProvidersPage> { private FindLfpProvidersPage( - PageContext context, - FindLfpProvidersResponse response) { + @Nullable PageContext + context, + @Nullable FindLfpProvidersResponse response) { super(context, response); } @@ -574,14 +577,16 @@ private static FindLfpProvidersPage createEmptyPage() { @Override protected FindLfpProvidersPage createPage( - PageContext context, - FindLfpProvidersResponse response) { + @Nullable PageContext + context, + @Nullable FindLfpProvidersResponse response) { return new FindLfpProvidersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -596,7 +601,7 @@ public static class FindLfpProvidersFixedSizeCollection FindLfpProvidersFixedSizeCollection> { private FindLfpProvidersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -606,7 +611,7 @@ private static FindLfpProvidersFixedSizeCollection createEmptyCollection() { @Override protected FindLfpProvidersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FindLfpProvidersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceSettings.java index 7410540a9962..317320edabc4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProvidersServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpProvidersServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceClient.java index 5f8f1fb78b7f..0e58d403a7e1 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceClient.java @@ -33,6 +33,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OmnichannelSettingsServiceClient implements BackgroundResource { - private final OmnichannelSettingsServiceSettings settings; + private final @Nullable OmnichannelSettingsServiceSettings settings; private final OmnichannelSettingsServiceStub stub; /** Constructs an instance of OmnichannelSettingsServiceClient with default settings. */ @@ -260,7 +261,7 @@ protected OmnichannelSettingsServiceClient(OmnichannelSettingsServiceStub stub) this.stub = stub; } - public final OmnichannelSettingsServiceSettings getSettings() { + public final @Nullable OmnichannelSettingsServiceSettings getSettings() { return settings; } @@ -291,7 +292,7 @@ public OmnichannelSettingsServiceStub getStub() { * `accounts/{account}/omnichannelSettings/{omnichannel_setting}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OmnichannelSetting getOmnichannelSetting(OmnichannelSettingName name) { + public final OmnichannelSetting getOmnichannelSetting(@Nullable OmnichannelSettingName name) { GetOmnichannelSettingRequest request = GetOmnichannelSettingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -413,7 +414,8 @@ public final OmnichannelSetting getOmnichannelSetting(GetOmnichannelSettingReque * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings(AccountName parent) { + public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings( + @Nullable AccountName parent) { ListOmnichannelSettingsRequest request = ListOmnichannelSettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -592,7 +594,7 @@ public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OmnichannelSetting createOmnichannelSetting( - AccountName parent, OmnichannelSetting omnichannelSetting) { + @Nullable AccountName parent, OmnichannelSetting omnichannelSetting) { CreateOmnichannelSettingRequest request = CreateOmnichannelSettingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -829,7 +831,7 @@ public final OmnichannelSetting updateOmnichannelSetting( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RequestInventoryVerificationResponse requestInventoryVerification( - OmnichannelSettingName name) { + @Nullable OmnichannelSettingName name) { RequestInventoryVerificationRequest request = RequestInventoryVerificationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -995,10 +997,11 @@ public static class ListOmnichannelSettingsPage ListOmnichannelSettingsPage> { private ListOmnichannelSettingsPage( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, - ListOmnichannelSettingsResponse response) { + @Nullable ListOmnichannelSettingsResponse response) { super(context, response); } @@ -1008,16 +1011,18 @@ private static ListOmnichannelSettingsPage createEmptyPage() { @Override protected ListOmnichannelSettingsPage createPage( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, - ListOmnichannelSettingsResponse response) { + @Nullable ListOmnichannelSettingsResponse response) { return new ListOmnichannelSettingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, ApiFuture futureResponse) { @@ -1034,7 +1039,7 @@ public static class ListOmnichannelSettingsFixedSizeCollection ListOmnichannelSettingsFixedSizeCollection> { private ListOmnichannelSettingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1044,7 +1049,7 @@ private static ListOmnichannelSettingsFixedSizeCollection createEmptyCollection( @Override protected ListOmnichannelSettingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOmnichannelSettingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceSettings.java index 0c7b213240e7..733559d4931c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OmnichannelSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceClient.java index 07aa1b7bd3d9..09290e4e991f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceClient.java @@ -33,6 +33,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. /** @@ -207,7 +208,7 @@ @NullMarked @Generated("by gapic-generator-java") public class OnlineReturnPolicyServiceClient implements BackgroundResource { - private final OnlineReturnPolicyServiceSettings settings; + private final @Nullable OnlineReturnPolicyServiceSettings settings; private final OnlineReturnPolicyServiceStub stub; /** Constructs an instance of OnlineReturnPolicyServiceClient with default settings. */ @@ -249,7 +250,7 @@ protected OnlineReturnPolicyServiceClient(OnlineReturnPolicyServiceStub stub) { this.stub = stub; } - public final OnlineReturnPolicyServiceSettings getSettings() { + public final @Nullable OnlineReturnPolicyServiceSettings getSettings() { return settings; } @@ -280,7 +281,7 @@ public OnlineReturnPolicyServiceStub getStub() { * `accounts/{account}/onlineReturnPolicies/{return_policy}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OnlineReturnPolicy getOnlineReturnPolicy(OnlineReturnPolicyName name) { + public final OnlineReturnPolicy getOnlineReturnPolicy(@Nullable OnlineReturnPolicyName name) { GetOnlineReturnPolicyRequest request = GetOnlineReturnPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -402,7 +403,8 @@ public final OnlineReturnPolicy getOnlineReturnPolicy(GetOnlineReturnPolicyReque * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies(AccountName parent) { + public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies( + @Nullable AccountName parent) { ListOnlineReturnPoliciesRequest request = ListOnlineReturnPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -581,7 +583,7 @@ public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OnlineReturnPolicy createOnlineReturnPolicy( - AccountName parent, OnlineReturnPolicy onlineReturnPolicy) { + @Nullable AccountName parent, OnlineReturnPolicy onlineReturnPolicy) { CreateOnlineReturnPolicyRequest request = CreateOnlineReturnPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -712,7 +714,7 @@ public final OnlineReturnPolicy createOnlineReturnPolicy( * `accounts/{account}/onlineReturnPolicies/{return_policy}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteOnlineReturnPolicy(OnlineReturnPolicyName name) { + public final void deleteOnlineReturnPolicy(@Nullable OnlineReturnPolicyName name) { DeleteOnlineReturnPolicyRequest request = DeleteOnlineReturnPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -874,12 +876,13 @@ public static class ListOnlineReturnPoliciesPage ListOnlineReturnPoliciesPage> { private ListOnlineReturnPoliciesPage( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> context, - ListOnlineReturnPoliciesResponse response) { + @Nullable ListOnlineReturnPoliciesResponse response) { super(context, response); } @@ -889,18 +892,20 @@ private static ListOnlineReturnPoliciesPage createEmptyPage() { @Override protected ListOnlineReturnPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> context, - ListOnlineReturnPoliciesResponse response) { + @Nullable ListOnlineReturnPoliciesResponse response) { return new ListOnlineReturnPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> @@ -919,7 +924,7 @@ public static class ListOnlineReturnPoliciesFixedSizeCollection ListOnlineReturnPoliciesFixedSizeCollection> { private ListOnlineReturnPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -929,7 +934,7 @@ private static ListOnlineReturnPoliciesFixedSizeCollection createEmptyCollection @Override protected ListOnlineReturnPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOnlineReturnPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceSettings.java index e2726c06bb75..277e32229609 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OnlineReturnPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceClient.java index 4d51fb7318ae..9fb845d24ac8 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceClient.java @@ -32,6 +32,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. /** @@ -208,7 +209,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProgramsServiceClient implements BackgroundResource { - private final ProgramsServiceSettings settings; + private final @Nullable ProgramsServiceSettings settings; private final ProgramsServiceStub stub; /** Constructs an instance of ProgramsServiceClient with default settings. */ @@ -248,7 +249,7 @@ protected ProgramsServiceClient(ProgramsServiceStub stub) { this.stub = stub; } - public final ProgramsServiceSettings getSettings() { + public final @Nullable ProgramsServiceSettings getSettings() { return settings; } @@ -279,7 +280,7 @@ public ProgramsServiceStub getStub() { * `accounts/123456/programs/free-listings`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program getProgram(ProgramName name) { + public final Program getProgram(@Nullable ProgramName name) { GetProgramRequest request = GetProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProgram(request); @@ -392,7 +393,7 @@ public final UnaryCallable getProgramCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProgramsPagedResponse listPrograms(AccountName parent) { + public final ListProgramsPagedResponse listPrograms(@Nullable AccountName parent) { ListProgramsRequest request = ListProgramsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -555,7 +556,7 @@ public final UnaryCallable listProgra * `accounts/123456/programs/free-listings`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program enableProgram(ProgramName name) { + public final Program enableProgram(@Nullable ProgramName name) { EnableProgramRequest request = EnableProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return enableProgram(request); @@ -667,7 +668,7 @@ public final UnaryCallable enableProgramCallable( * `accounts/123456/programs/free-listings`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program disableProgram(ProgramName name) { + public final Program disableProgram(@Nullable ProgramName name) { DisableProgramRequest request = DisableProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return disableProgram(request); @@ -815,8 +816,8 @@ public static class ListProgramsPage extends AbstractPage { private ListProgramsPage( - PageContext context, - ListProgramsResponse response) { + @Nullable PageContext context, + @Nullable ListProgramsResponse response) { super(context, response); } @@ -826,14 +827,14 @@ private static ListProgramsPage createEmptyPage() { @Override protected ListProgramsPage createPage( - PageContext context, - ListProgramsResponse response) { + @Nullable PageContext context, + @Nullable ListProgramsResponse response) { return new ListProgramsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -847,7 +848,8 @@ public static class ListProgramsFixedSizeCollection ListProgramsPage, ListProgramsFixedSizeCollection> { - private ListProgramsFixedSizeCollection(List pages, int collectionSize) { + private ListProgramsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -857,7 +859,7 @@ private static ListProgramsFixedSizeCollection createEmptyCollection() { @Override protected ListProgramsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProgramsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceSettings.java index ea461949df95..43f5d0322427 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProgramsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java index 0fe6fb5811d6..fdfad1320405 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceClient.java @@ -34,6 +34,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. /** @@ -263,7 +264,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionsServiceClient implements BackgroundResource { - private final RegionsServiceSettings settings; + private final @Nullable RegionsServiceSettings settings; private final RegionsServiceStub stub; /** Constructs an instance of RegionsServiceClient with default settings. */ @@ -303,7 +304,7 @@ protected RegionsServiceClient(RegionsServiceStub stub) { this.stub = stub; } - public final RegionsServiceSettings getSettings() { + public final @Nullable RegionsServiceSettings getSettings() { return settings; } @@ -333,7 +334,7 @@ public RegionsServiceStub getStub() { * `accounts/{account}/regions/{region}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Region getRegion(RegionName name) { + public final Region getRegion(@Nullable RegionName name) { GetRegionRequest request = GetRegionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRegion(request); @@ -448,7 +449,7 @@ public final UnaryCallable getRegionCallable() { * account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Region createRegion(AccountName parent, Region region, String regionId) { + public final Region createRegion(@Nullable AccountName parent, Region region, String regionId) { CreateRegionRequest request = CreateRegionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -791,7 +792,7 @@ public final BatchUpdateRegionsResponse batchUpdateRegions(BatchUpdateRegionsReq * `accounts/{account}/regions/{region}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRegion(RegionName name) { + public final void deleteRegion(@Nullable RegionName name) { DeleteRegionRequest request = DeleteRegionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRegion(request); @@ -965,7 +966,7 @@ public final UnaryCallable batchDeleteRegionsC * @param parent Required. The account to list regions for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegionsPagedResponse listRegions(AccountName parent) { + public final ListRegionsPagedResponse listRegions(@Nullable AccountName parent) { ListRegionsRequest request = ListRegionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1160,8 +1161,8 @@ public static class ListRegionsPage extends AbstractPage { private ListRegionsPage( - PageContext context, - ListRegionsResponse response) { + @Nullable PageContext context, + @Nullable ListRegionsResponse response) { super(context, response); } @@ -1171,14 +1172,14 @@ private static ListRegionsPage createEmptyPage() { @Override protected ListRegionsPage createPage( - PageContext context, - ListRegionsResponse response) { + @Nullable PageContext context, + @Nullable ListRegionsResponse response) { return new ListRegionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1192,7 +1193,8 @@ public static class ListRegionsFixedSizeCollection ListRegionsPage, ListRegionsFixedSizeCollection> { - private ListRegionsFixedSizeCollection(List pages, int collectionSize) { + private ListRegionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1202,7 +1204,7 @@ private static ListRegionsFixedSizeCollection createEmptyCollection() { @Override protected ListRegionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java index a46030565943..27b2bb8e4594 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/RegionsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -190,7 +191,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); } @@ -210,7 +211,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceClient.java index f39fae05c2bf..ebb6e3a5f576 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceClient.java @@ -24,6 +24,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. /** @@ -151,7 +152,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ShippingSettingsServiceClient implements BackgroundResource { - private final ShippingSettingsServiceSettings settings; + private final @Nullable ShippingSettingsServiceSettings settings; private final ShippingSettingsServiceStub stub; /** Constructs an instance of ShippingSettingsServiceClient with default settings. */ @@ -192,7 +193,7 @@ protected ShippingSettingsServiceClient(ShippingSettingsServiceStub stub) { this.stub = stub; } - public final ShippingSettingsServiceSettings getSettings() { + public final @Nullable ShippingSettingsServiceSettings getSettings() { return settings; } @@ -223,7 +224,7 @@ public ShippingSettingsServiceStub getStub() { * `accounts/{account}/shippingsettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ShippingSettings getShippingSettings(ShippingSettingsName name) { + public final ShippingSettings getShippingSettings(@Nullable ShippingSettingsName name) { GetShippingSettingsRequest request = GetShippingSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceSettings.java index 2065e84b5dd0..917633e64d06 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -179,7 +180,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ShippingSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceClient.java index f6a1aebab5ce..73c0e3ada160 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceClient.java @@ -24,6 +24,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. /** @@ -161,7 +162,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TermsOfServiceAgreementStateServiceClient implements BackgroundResource { - private final TermsOfServiceAgreementStateServiceSettings settings; + private final @Nullable TermsOfServiceAgreementStateServiceSettings settings; private final TermsOfServiceAgreementStateServiceStub stub; /** Constructs an instance of TermsOfServiceAgreementStateServiceClient with default settings. */ @@ -207,7 +208,7 @@ protected TermsOfServiceAgreementStateServiceClient( this.stub = stub; } - public final TermsOfServiceAgreementStateServiceSettings getSettings() { + public final @Nullable TermsOfServiceAgreementStateServiceSettings getSettings() { return settings; } @@ -242,7 +243,7 @@ public TermsOfServiceAgreementStateServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TermsOfServiceAgreementState getTermsOfServiceAgreementState( - TermsOfServiceAgreementStateName name) { + @Nullable TermsOfServiceAgreementStateName name) { GetTermsOfServiceAgreementStateRequest request = GetTermsOfServiceAgreementStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -373,7 +374,7 @@ public final TermsOfServiceAgreementState getTermsOfServiceAgreementState( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TermsOfServiceAgreementState retrieveForApplicationTermsOfServiceAgreementState( - AccountName parent) { + @Nullable AccountName parent) { RetrieveForApplicationTermsOfServiceAgreementStateRequest request = RetrieveForApplicationTermsOfServiceAgreementStateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceSettings.java index fb90a6195105..e7c79d0d4537 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -165,7 +166,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TermsOfServiceAgreementStateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceClient.java index 64e5c5370148..2c8bb6754ae2 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceClient.java @@ -24,6 +24,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. /** @@ -169,7 +170,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TermsOfServiceServiceClient implements BackgroundResource { - private final TermsOfServiceServiceSettings settings; + private final @Nullable TermsOfServiceServiceSettings settings; private final TermsOfServiceServiceStub stub; /** Constructs an instance of TermsOfServiceServiceClient with default settings. */ @@ -209,7 +210,7 @@ protected TermsOfServiceServiceClient(TermsOfServiceServiceStub stub) { this.stub = stub; } - public final TermsOfServiceServiceSettings getSettings() { + public final @Nullable TermsOfServiceServiceSettings getSettings() { return settings; } @@ -240,7 +241,7 @@ public TermsOfServiceServiceStub getStub() { * `termsOfService/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TermsOfService getTermsOfService(TermsOfServiceName name) { + public final TermsOfService getTermsOfService(@Nullable TermsOfServiceName name) { GetTermsOfServiceRequest request = GetTermsOfServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -420,7 +421,8 @@ public final TermsOfService retrieveLatestTermsOfService( * `termsOfService/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceptTermsOfServiceResponse acceptTermsOfService(TermsOfServiceName name) { + public final AcceptTermsOfServiceResponse acceptTermsOfService( + @Nullable TermsOfServiceName name) { AcceptTermsOfServiceRequest request = AcceptTermsOfServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceSettings.java index 9a375c51c89a..1112037a1e82 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TermsOfServiceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceClient.java index 1fae10ba4038..5f5d02d710ea 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceClient.java @@ -34,6 +34,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. /** @@ -235,7 +236,7 @@ @NullMarked @Generated("by gapic-generator-java") public class UserServiceClient implements BackgroundResource { - private final UserServiceSettings settings; + private final @Nullable UserServiceSettings settings; private final UserServiceStub stub; /** Constructs an instance of UserServiceClient with default settings. */ @@ -274,7 +275,7 @@ protected UserServiceClient(UserServiceStub stub) { this.stub = stub; } - public final UserServiceSettings getSettings() { + public final @Nullable UserServiceSettings getSettings() { return settings; } @@ -306,7 +307,7 @@ public UserServiceStub getStub() { * rather than an email address as in `accounts/{account}/users/me`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -423,7 +424,7 @@ public final UnaryCallable getUserCallable() { * `john.doe{@literal @}gmail.com`). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User createUser(AccountName parent, User user, String userId) { + public final User createUser(@Nullable AccountName parent, User user, String userId) { CreateUserRequest request = CreateUserRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -550,7 +551,7 @@ public final UnaryCallable createUserCallable() { * than an email address as in `accounts/{account}/users/me`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -756,7 +757,7 @@ public final UnaryCallable updateUserCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(AccountName parent) { + public final ListUsersPagedResponse listUsers(@Nullable AccountName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -914,7 +915,7 @@ public final UnaryCallable listUsersCallabl * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User verifySelf(AccountName account) { + public final User verifySelf(@Nullable AccountName account) { VerifySelfRequest request = VerifySelfRequest.newBuilder() .setAccount(account == null ? null : account.toString()) @@ -1052,8 +1053,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -1063,14 +1064,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1080,7 +1081,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1090,7 +1091,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceSettings.java index 8ddc123d2514..c6873d50bf78 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -176,7 +177,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); } @@ -196,7 +197,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountIssueServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountIssueServiceStubSettings.java index af859c746c47..bb7dcb501812 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountIssueServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountIssueServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,7 +287,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); } @@ -352,7 +353,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAccountIssuesSettings = PagedCallSettings.newBuilder(LIST_ACCOUNT_ISSUES_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountRelationshipsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountRelationshipsServiceStubSettings.java index 9b0d9df5cd77..e2899f147eb3 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountRelationshipsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountRelationshipsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -322,7 +323,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); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountRelationshipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountServicesServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountServicesServiceStubSettings.java index 189d7695e268..c3dc0fd0bbcb 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountServicesServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountServicesServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -321,7 +322,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); } @@ -401,7 +402,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountsServiceStubSettings.java index c9d89e5fe8bd..0fce6fe702d1 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AccountsServiceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -380,7 +381,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); } @@ -461,7 +462,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutofeedSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutofeedSettingsServiceStubSettings.java index fa4f0e4b58de..baf226453992 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutofeedSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutofeedSettingsServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAutofeedSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutomaticImprovementsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutomaticImprovementsServiceStubSettings.java index 71e797c6c56f..85de6186f4b6 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutomaticImprovementsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/AutomaticImprovementsServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -227,7 +228,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); } @@ -297,7 +298,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAutomaticImprovementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessIdentityServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessIdentityServiceStubSettings.java index 6dfdaad1cc9b..5458e156cf78 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessIdentityServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessIdentityServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBusinessIdentitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessInfoServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessInfoServiceStubSettings.java index ea8771b69bb9..c4a669a0abf1 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessInfoServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/BusinessInfoServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -221,7 +222,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); } @@ -289,7 +290,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBusinessInfoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/CheckoutSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/CheckoutSettingsServiceStubSettings.java index d5afdabf64ad..e8933a151b99 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/CheckoutSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/CheckoutSettingsServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -243,7 +244,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); } @@ -317,7 +318,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/DeveloperRegistrationServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/DeveloperRegistrationServiceStubSettings.java index 4a347f7fd0db..15576928b84e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/DeveloperRegistrationServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/DeveloperRegistrationServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -242,7 +243,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); } @@ -316,7 +317,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); registerGcpSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/EmailPreferencesServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/EmailPreferencesServiceStubSettings.java index a7b782aed062..f617989ec419 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/EmailPreferencesServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/EmailPreferencesServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEmailPreferencesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GbpAccountsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GbpAccountsServiceStubSettings.java index 875508cc07c2..937700b3848c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GbpAccountsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/GbpAccountsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -290,7 +291,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); } @@ -359,7 +360,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGbpAccountsSettings = PagedCallSettings.newBuilder(LIST_GBP_ACCOUNTS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HomepageServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HomepageServiceStubSettings.java index fc5e9936dbe5..9b73169014ae 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HomepageServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/HomepageServiceStubSettings.java @@ -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. /** @@ -233,7 +234,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); } @@ -303,7 +304,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getHomepageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/LfpProvidersServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/LfpProvidersServiceStubSettings.java index 43626921fb56..6c2d4999330d 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/LfpProvidersServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/LfpProvidersServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -363,7 +364,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); findLfpProvidersSettings = PagedCallSettings.newBuilder(FIND_LFP_PROVIDERS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OmnichannelSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OmnichannelSettingsServiceStubSettings.java index d845a717bfc6..c79240eef702 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OmnichannelSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OmnichannelSettingsServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,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); } @@ -423,7 +424,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOmnichannelSettingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OnlineReturnPolicyServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OnlineReturnPolicyServiceStubSettings.java index abf96c214aaf..6a3dbdd5bbb5 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OnlineReturnPolicyServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/OnlineReturnPolicyServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -332,7 +333,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); } @@ -409,7 +410,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOnlineReturnPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ProgramsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ProgramsServiceStubSettings.java index c46d05998a61..70be07526341 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ProgramsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ProgramsServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -297,7 +298,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); } @@ -368,7 +369,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProgramSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java index 35280ddcb649..d72ce55d79b6 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/RegionsServiceStubSettings.java @@ -67,6 +67,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -331,7 +332,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); } @@ -413,7 +414,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ShippingSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ShippingSettingsServiceStubSettings.java index bcbabc90dae1..a77647b5b09e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ShippingSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/ShippingSettingsServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -293,7 +294,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getShippingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceAgreementStateServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceAgreementStateServiceStubSettings.java index bb4c468f50f1..1579e9359b39 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceAgreementStateServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceAgreementStateServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,7 +236,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); } @@ -308,7 +309,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTermsOfServiceAgreementStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceServiceStubSettings.java index fa198daedf9a..7a3fbbcf85c4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/TermsOfServiceServiceStubSettings.java @@ -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. /** @@ -234,7 +235,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); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTermsOfServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/UserServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/UserServiceStubSettings.java index aaffd5212170..1a9e0579ab12 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/UserServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/UserServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -386,7 +387,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceClient.java index 3868be6961a4..8ade25854cef 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceClient.java @@ -33,6 +33,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. /** @@ -149,7 +150,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AccountIssueServiceClient implements BackgroundResource { - private final AccountIssueServiceSettings settings; + private final @Nullable AccountIssueServiceSettings settings; private final AccountIssueServiceStub stub; /** Constructs an instance of AccountIssueServiceClient with default settings. */ @@ -189,7 +190,7 @@ protected AccountIssueServiceClient(AccountIssueServiceStub stub) { this.stub = stub; } - public final AccountIssueServiceSettings getSettings() { + public final @Nullable AccountIssueServiceSettings getSettings() { return settings; } @@ -222,7 +223,7 @@ public AccountIssueServiceStub getStub() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountIssuesPagedResponse listAccountIssues(AccountName parent) { + public final ListAccountIssuesPagedResponse listAccountIssues(@Nullable AccountName parent) { ListAccountIssuesRequest request = ListAccountIssuesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -435,8 +436,9 @@ public static class ListAccountIssuesPage ListAccountIssuesPage> { private ListAccountIssuesPage( - PageContext context, - ListAccountIssuesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountIssuesResponse response) { super(context, response); } @@ -446,14 +448,16 @@ private static ListAccountIssuesPage createEmptyPage() { @Override protected ListAccountIssuesPage createPage( - PageContext context, - ListAccountIssuesResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountIssuesResponse response) { return new ListAccountIssuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -468,7 +472,7 @@ public static class ListAccountIssuesFixedSizeCollection ListAccountIssuesFixedSizeCollection> { private ListAccountIssuesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -478,7 +482,7 @@ private static ListAccountIssuesFixedSizeCollection createEmptyCollection() { @Override protected ListAccountIssuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountIssuesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceSettings.java index 4fd6d8720652..18b9750dc325 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountIssueServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountIssueServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceClient.java index 4c47b44dce23..b8281f46102f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceClient.java @@ -34,6 +34,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. /** @@ -189,7 +190,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AccountTaxServiceClient implements BackgroundResource { - private final AccountTaxServiceSettings settings; + private final @Nullable AccountTaxServiceSettings settings; private final AccountTaxServiceStub stub; /** Constructs an instance of AccountTaxServiceClient with default settings. */ @@ -229,7 +230,7 @@ protected AccountTaxServiceClient(AccountTaxServiceStub stub) { this.stub = stub; } - public final AccountTaxServiceSettings getSettings() { + public final @Nullable AccountTaxServiceSettings getSettings() { return settings; } @@ -258,7 +259,7 @@ public AccountTaxServiceStub getStub() { * @param name Required. The name from which tax settings will be retrieved * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountTax getAccountTax(AccountTaxName name) { + public final AccountTax getAccountTax(@Nullable AccountTaxName name) { GetAccountTaxRequest request = GetAccountTaxRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccountTax(request); @@ -371,7 +372,7 @@ public final UnaryCallable getAccountTaxCallab * accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountTaxPagedResponse listAccountTax(AccountName parent) { + public final ListAccountTaxPagedResponse listAccountTax(@Nullable AccountName parent) { ListAccountTaxRequest request = ListAccountTaxRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -693,8 +694,8 @@ public static class ListAccountTaxPage ListAccountTaxRequest, ListAccountTaxResponse, AccountTax, ListAccountTaxPage> { private ListAccountTaxPage( - PageContext context, - ListAccountTaxResponse response) { + @Nullable PageContext context, + @Nullable ListAccountTaxResponse response) { super(context, response); } @@ -704,14 +705,14 @@ private static ListAccountTaxPage createEmptyPage() { @Override protected ListAccountTaxPage createPage( - PageContext context, - ListAccountTaxResponse response) { + @Nullable PageContext context, + @Nullable ListAccountTaxResponse response) { return new ListAccountTaxPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -725,7 +726,8 @@ public static class ListAccountTaxFixedSizeCollection ListAccountTaxPage, ListAccountTaxFixedSizeCollection> { - private ListAccountTaxFixedSizeCollection(List pages, int collectionSize) { + private ListAccountTaxFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -735,7 +737,7 @@ private static ListAccountTaxFixedSizeCollection createEmptyCollection() { @Override protected ListAccountTaxFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountTaxFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceSettings.java index 9fd784a992d4..2aad35f1c700 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -164,7 +165,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); } @@ -184,7 +185,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountTaxServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceClient.java index eb6c5d1333b8..239b87f64fee 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceClient.java @@ -35,6 +35,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. /** @@ -233,7 +234,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AccountsServiceClient implements BackgroundResource { - private final AccountsServiceSettings settings; + private final @Nullable AccountsServiceSettings settings; private final AccountsServiceStub stub; /** Constructs an instance of AccountsServiceClient with default settings. */ @@ -273,7 +274,7 @@ protected AccountsServiceClient(AccountsServiceStub stub) { this.stub = stub; } - public final AccountsServiceSettings getSettings() { + public final @Nullable AccountsServiceSettings getSettings() { return settings; } @@ -303,7 +304,7 @@ public AccountsServiceStub getStub() { * @param name Required. The name of the account to retrieve. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Account getAccount(AccountName name) { + public final Account getAccount(@Nullable AccountName name) { GetAccountRequest request = GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccount(request); @@ -480,7 +481,7 @@ public final Account createAndConfigureAccount(CreateAndConfigureAccountRequest * @param name Required. The name of the account to delete. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccount(AccountName name) { + public final void deleteAccount(@Nullable AccountName name) { DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAccount(request); @@ -805,7 +806,7 @@ public final UnaryCallable listAccoun * @param provider Required. The parent account. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubAccountsPagedResponse listSubAccounts(AccountName provider) { + public final ListSubAccountsPagedResponse listSubAccounts(@Nullable AccountName provider) { ListSubAccountsRequest request = ListSubAccountsRequest.newBuilder() .setProvider(provider == null ? null : provider.toString()) @@ -1017,8 +1018,8 @@ public static class ListAccountsPage extends AbstractPage { private ListAccountsPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { super(context, response); } @@ -1028,14 +1029,14 @@ private static ListAccountsPage createEmptyPage() { @Override protected ListAccountsPage createPage( - PageContext context, - ListAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListAccountsResponse response) { return new ListAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1049,7 +1050,8 @@ public static class ListAccountsFixedSizeCollection ListAccountsPage, ListAccountsFixedSizeCollection> { - private ListAccountsFixedSizeCollection(List pages, int collectionSize) { + private ListAccountsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1059,7 +1061,7 @@ private static ListAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountsFixedSizeCollection(pages, collectionSize); } } @@ -1093,8 +1095,8 @@ public static class ListSubAccountsPage ListSubAccountsRequest, ListSubAccountsResponse, Account, ListSubAccountsPage> { private ListSubAccountsPage( - PageContext context, - ListSubAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListSubAccountsResponse response) { super(context, response); } @@ -1104,14 +1106,14 @@ private static ListSubAccountsPage createEmptyPage() { @Override protected ListSubAccountsPage createPage( - PageContext context, - ListSubAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListSubAccountsResponse response) { return new ListSubAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1126,7 +1128,7 @@ public static class ListSubAccountsFixedSizeCollection ListSubAccountsFixedSizeCollection> { private ListSubAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1136,7 +1138,7 @@ private static ListSubAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListSubAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubAccountsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceSettings.java index c218dd7126fd..b66b7de04227 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountsServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,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); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceClient.java index 12076bc32567..358d7ffd86eb 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceClient.java @@ -26,6 +26,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. /** @@ -158,7 +159,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AutofeedSettingsServiceClient implements BackgroundResource { - private final AutofeedSettingsServiceSettings settings; + private final @Nullable AutofeedSettingsServiceSettings settings; private final AutofeedSettingsServiceStub stub; /** Constructs an instance of AutofeedSettingsServiceClient with default settings. */ @@ -199,7 +200,7 @@ protected AutofeedSettingsServiceClient(AutofeedSettingsServiceStub stub) { this.stub = stub; } - public final AutofeedSettingsServiceSettings getSettings() { + public final @Nullable AutofeedSettingsServiceSettings getSettings() { return settings; } @@ -230,7 +231,7 @@ public AutofeedSettingsServiceStub getStub() { * `accounts/{account}/autofeedSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutofeedSettings getAutofeedSettings(AutofeedSettingsName name) { + public final AutofeedSettings getAutofeedSettings(@Nullable AutofeedSettingsName name) { GetAutofeedSettingsRequest request = GetAutofeedSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceSettings.java index 830aad654307..fe50e190d303 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutofeedSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceClient.java index de3548a8d9d8..d4382f354201 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceClient.java @@ -26,6 +26,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. /** @@ -160,7 +161,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AutomaticImprovementsServiceClient implements BackgroundResource { - private final AutomaticImprovementsServiceSettings settings; + private final @Nullable AutomaticImprovementsServiceSettings settings; private final AutomaticImprovementsServiceStub stub; /** Constructs an instance of AutomaticImprovementsServiceClient with default settings. */ @@ -204,7 +205,7 @@ protected AutomaticImprovementsServiceClient(AutomaticImprovementsServiceStub st this.stub = stub; } - public final AutomaticImprovementsServiceSettings getSettings() { + public final @Nullable AutomaticImprovementsServiceSettings getSettings() { return settings; } @@ -236,7 +237,8 @@ public AutomaticImprovementsServiceStub getStub() { * `accounts/{account}/automaticImprovements` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AutomaticImprovements getAutomaticImprovements(AutomaticImprovementsName name) { + public final AutomaticImprovements getAutomaticImprovements( + @Nullable AutomaticImprovementsName name) { GetAutomaticImprovementsRequest request = GetAutomaticImprovementsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceSettings.java index a1f8daccfe77..2312369d8ec7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AutomaticImprovementsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceClient.java index d2c45f9815eb..963019c906f4 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceClient.java @@ -26,6 +26,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. /** @@ -158,7 +159,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BusinessIdentityServiceClient implements BackgroundResource { - private final BusinessIdentityServiceSettings settings; + private final @Nullable BusinessIdentityServiceSettings settings; private final BusinessIdentityServiceStub stub; /** Constructs an instance of BusinessIdentityServiceClient with default settings. */ @@ -199,7 +200,7 @@ protected BusinessIdentityServiceClient(BusinessIdentityServiceStub stub) { this.stub = stub; } - public final BusinessIdentityServiceSettings getSettings() { + public final @Nullable BusinessIdentityServiceSettings getSettings() { return settings; } @@ -230,7 +231,7 @@ public BusinessIdentityServiceStub getStub() { * `accounts/{account}/businessIdentity` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BusinessIdentity getBusinessIdentity(BusinessIdentityName name) { + public final BusinessIdentity getBusinessIdentity(@Nullable BusinessIdentityName name) { GetBusinessIdentityRequest request = GetBusinessIdentityRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceSettings.java index a3ebffc13c2c..728e38d6c328 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BusinessIdentityServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceClient.java index 8c4d1f7262e9..5c0c98dfe77c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceClient.java @@ -26,6 +26,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. /** @@ -156,7 +157,7 @@ @BetaApi @Generated("by gapic-generator-java") public class BusinessInfoServiceClient implements BackgroundResource { - private final BusinessInfoServiceSettings settings; + private final @Nullable BusinessInfoServiceSettings settings; private final BusinessInfoServiceStub stub; /** Constructs an instance of BusinessInfoServiceClient with default settings. */ @@ -196,7 +197,7 @@ protected BusinessInfoServiceClient(BusinessInfoServiceStub stub) { this.stub = stub; } - public final BusinessInfoServiceSettings getSettings() { + public final @Nullable BusinessInfoServiceSettings getSettings() { return settings; } @@ -226,7 +227,7 @@ public BusinessInfoServiceStub getStub() { * `accounts/{account}/businessInfo` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BusinessInfo getBusinessInfo(BusinessInfoName name) { + public final BusinessInfo getBusinessInfo(@Nullable BusinessInfoName name) { GetBusinessInfoRequest request = GetBusinessInfoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBusinessInfo(request); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceSettings.java index 59fa04cb216e..11637e6fc15a 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BusinessInfoServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java index f7a056c807b0..b719fd3caa78 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceClient.java @@ -27,6 +27,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. /** @@ -197,7 +198,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CheckoutSettingsServiceClient implements BackgroundResource { - private final CheckoutSettingsServiceSettings settings; + private final @Nullable CheckoutSettingsServiceSettings settings; private final CheckoutSettingsServiceStub stub; /** Constructs an instance of CheckoutSettingsServiceClient with default settings. */ @@ -238,7 +239,7 @@ protected CheckoutSettingsServiceClient(CheckoutSettingsServiceStub stub) { this.stub = stub; } - public final CheckoutSettingsServiceSettings getSettings() { + public final @Nullable CheckoutSettingsServiceSettings getSettings() { return settings; } @@ -270,7 +271,7 @@ public CheckoutSettingsServiceStub getStub() { * `accounts/{account}/programs/{program}/checkoutSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CheckoutSettings getCheckoutSettings(CheckoutSettingsName name) { + public final CheckoutSettings getCheckoutSettings(@Nullable CheckoutSettingsName name) { GetCheckoutSettingsRequest request = GetCheckoutSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -395,7 +396,7 @@ public final CheckoutSettings getCheckoutSettings(GetCheckoutSettingsRequest req * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CheckoutSettings createCheckoutSettings( - ProgramName parent, CheckoutSettings checkoutSettings) { + @Nullable ProgramName parent, CheckoutSettings checkoutSettings) { CreateCheckoutSettingsRequest request = CreateCheckoutSettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -623,7 +624,7 @@ public final CheckoutSettings updateCheckoutSettings(UpdateCheckoutSettingsReque * `accounts/{account}/programs/{program}/checkoutSettings` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCheckoutSettings(CheckoutSettingsName name) { + public final void deleteCheckoutSettings(@Nullable CheckoutSettingsName name) { DeleteCheckoutSettingsRequest request = DeleteCheckoutSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java index 5f133e2cb8c8..02d37c6beacf 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CheckoutSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceClient.java index 79da0d57eb8c..6a10adf8798d 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceClient.java @@ -26,6 +26,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. /** @@ -164,7 +165,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EmailPreferencesServiceClient implements BackgroundResource { - private final EmailPreferencesServiceSettings settings; + private final @Nullable EmailPreferencesServiceSettings settings; private final EmailPreferencesServiceStub stub; /** Constructs an instance of EmailPreferencesServiceClient with default settings. */ @@ -205,7 +206,7 @@ protected EmailPreferencesServiceClient(EmailPreferencesServiceStub stub) { this.stub = stub; } - public final EmailPreferencesServiceSettings getSettings() { + public final @Nullable EmailPreferencesServiceSettings getSettings() { return settings; } @@ -239,7 +240,7 @@ public EmailPreferencesServiceStub getStub() { * `accounts/{account}/users/{email}/emailPreferences` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EmailPreferences getEmailPreferences(EmailPreferencesName name) { + public final EmailPreferences getEmailPreferences(@Nullable EmailPreferencesName name) { GetEmailPreferencesRequest request = GetEmailPreferencesRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceSettings.java index cb534cd5ea43..136dc8de1ac9 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EmailPreferencesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceClient.java index 9380af3a8e0f..2f78ebd91bcd 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceClient.java @@ -33,6 +33,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. /** @@ -167,7 +168,7 @@ @BetaApi @Generated("by gapic-generator-java") public class GbpAccountsServiceClient implements BackgroundResource { - private final GbpAccountsServiceSettings settings; + private final @Nullable GbpAccountsServiceSettings settings; private final GbpAccountsServiceStub stub; /** Constructs an instance of GbpAccountsServiceClient with default settings. */ @@ -207,7 +208,7 @@ protected GbpAccountsServiceClient(GbpAccountsServiceStub stub) { this.stub = stub; } - public final GbpAccountsServiceSettings getSettings() { + public final @Nullable GbpAccountsServiceSettings getSettings() { return settings; } @@ -239,7 +240,7 @@ public GbpAccountsServiceStub getStub() { * listed. Format: `accounts/{account}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGbpAccountsPagedResponse listGbpAccounts(AccountName parent) { + public final ListGbpAccountsPagedResponse listGbpAccounts(@Nullable AccountName parent) { ListGbpAccountsRequest request = ListGbpAccountsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -403,7 +404,7 @@ public final ListGbpAccountsPagedResponse listGbpAccounts(ListGbpAccountsRequest * Format: `accounts/{account}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LinkGbpAccountResponse linkGbpAccount(AccountName parent) { + public final LinkGbpAccountResponse linkGbpAccount(@Nullable AccountName parent) { LinkGbpAccountRequest request = LinkGbpAccountRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -556,8 +557,8 @@ public static class ListGbpAccountsPage ListGbpAccountsRequest, ListGbpAccountsResponse, GbpAccount, ListGbpAccountsPage> { private ListGbpAccountsPage( - PageContext context, - ListGbpAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListGbpAccountsResponse response) { super(context, response); } @@ -567,14 +568,14 @@ private static ListGbpAccountsPage createEmptyPage() { @Override protected ListGbpAccountsPage createPage( - PageContext context, - ListGbpAccountsResponse response) { + @Nullable PageContext context, + @Nullable ListGbpAccountsResponse response) { return new ListGbpAccountsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -589,7 +590,7 @@ public static class ListGbpAccountsFixedSizeCollection ListGbpAccountsFixedSizeCollection> { private ListGbpAccountsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -599,7 +600,7 @@ private static ListGbpAccountsFixedSizeCollection createEmptyCollection() { @Override protected ListGbpAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGbpAccountsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceSettings.java index e7d7d404d626..f92bb5a21d5e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/GbpAccountsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(GbpAccountsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceClient.java index 064520cceaf9..f2573e199698 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceClient.java @@ -26,6 +26,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. /** @@ -185,7 +186,7 @@ @BetaApi @Generated("by gapic-generator-java") public class HomepageServiceClient implements BackgroundResource { - private final HomepageServiceSettings settings; + private final @Nullable HomepageServiceSettings settings; private final HomepageServiceStub stub; /** Constructs an instance of HomepageServiceClient with default settings. */ @@ -225,7 +226,7 @@ protected HomepageServiceClient(HomepageServiceStub stub) { this.stub = stub; } - public final HomepageServiceSettings getSettings() { + public final @Nullable HomepageServiceSettings getSettings() { return settings; } @@ -255,7 +256,7 @@ public HomepageServiceStub getStub() { * `accounts/{account}/homepage` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Homepage getHomepage(HomepageName name) { + public final Homepage getHomepage(@Nullable HomepageName name) { GetHomepageRequest request = GetHomepageRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getHomepage(request); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceSettings.java index 20e88e6b8e8a..9da9d7c04b5d 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -164,7 +165,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); } @@ -184,7 +185,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HomepageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceClient.java index d6ca42688404..36795e34c3f8 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceClient.java @@ -33,6 +33,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. /** @@ -168,7 +169,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LfpProvidersServiceClient implements BackgroundResource { - private final LfpProvidersServiceSettings settings; + private final @Nullable LfpProvidersServiceSettings settings; private final LfpProvidersServiceStub stub; /** Constructs an instance of LfpProvidersServiceClient with default settings. */ @@ -208,7 +209,7 @@ protected LfpProvidersServiceClient(LfpProvidersServiceStub stub) { this.stub = stub; } - public final LfpProvidersServiceSettings getSettings() { + public final @Nullable LfpProvidersServiceSettings getSettings() { return settings; } @@ -241,7 +242,8 @@ public LfpProvidersServiceStub getStub() { * found. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FindLfpProvidersPagedResponse findLfpProviders(OmnichannelSettingName parent) { + public final FindLfpProvidersPagedResponse findLfpProviders( + @Nullable OmnichannelSettingName parent) { FindLfpProvidersRequest request = FindLfpProvidersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -408,7 +410,7 @@ public final FindLfpProvidersPagedResponse findLfpProviders(FindLfpProvidersRequ * The `lfp_provider` is the LFP provider ID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LinkLfpProviderResponse linkLfpProvider(LfpProviderName name) { + public final LinkLfpProviderResponse linkLfpProvider(@Nullable LfpProviderName name) { LinkLfpProviderRequest request = LinkLfpProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return linkLfpProvider(request); @@ -565,8 +567,9 @@ public static class FindLfpProvidersPage FindLfpProvidersRequest, FindLfpProvidersResponse, LfpProvider, FindLfpProvidersPage> { private FindLfpProvidersPage( - PageContext context, - FindLfpProvidersResponse response) { + @Nullable PageContext + context, + @Nullable FindLfpProvidersResponse response) { super(context, response); } @@ -576,14 +579,16 @@ private static FindLfpProvidersPage createEmptyPage() { @Override protected FindLfpProvidersPage createPage( - PageContext context, - FindLfpProvidersResponse response) { + @Nullable PageContext + context, + @Nullable FindLfpProvidersResponse response) { return new FindLfpProvidersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -598,7 +603,7 @@ public static class FindLfpProvidersFixedSizeCollection FindLfpProvidersFixedSizeCollection> { private FindLfpProvidersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -608,7 +613,7 @@ private static FindLfpProvidersFixedSizeCollection createEmptyCollection() { @Override protected FindLfpProvidersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FindLfpProvidersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceSettings.java index f2bda5caf63a..b567e4b87397 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProvidersServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -161,7 +162,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpProvidersServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceClient.java index e5e967fccc79..64d822283e9c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceClient.java @@ -34,6 +34,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. /** @@ -220,7 +221,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OmnichannelSettingsServiceClient implements BackgroundResource { - private final OmnichannelSettingsServiceSettings settings; + private final @Nullable OmnichannelSettingsServiceSettings settings; private final OmnichannelSettingsServiceStub stub; /** Constructs an instance of OmnichannelSettingsServiceClient with default settings. */ @@ -262,7 +263,7 @@ protected OmnichannelSettingsServiceClient(OmnichannelSettingsServiceStub stub) this.stub = stub; } - public final OmnichannelSettingsServiceSettings getSettings() { + public final @Nullable OmnichannelSettingsServiceSettings getSettings() { return settings; } @@ -293,7 +294,7 @@ public OmnichannelSettingsServiceStub getStub() { * `accounts/{account}/omnichannelSettings/{omnichannel_setting}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OmnichannelSetting getOmnichannelSetting(OmnichannelSettingName name) { + public final OmnichannelSetting getOmnichannelSetting(@Nullable OmnichannelSettingName name) { GetOmnichannelSettingRequest request = GetOmnichannelSettingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -415,7 +416,8 @@ public final OmnichannelSetting getOmnichannelSetting(GetOmnichannelSettingReque * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings(AccountName parent) { + public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings( + @Nullable AccountName parent) { ListOmnichannelSettingsRequest request = ListOmnichannelSettingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -594,7 +596,7 @@ public final ListOmnichannelSettingsPagedResponse listOmnichannelSettings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OmnichannelSetting createOmnichannelSetting( - AccountName parent, OmnichannelSetting omnichannelSetting) { + @Nullable AccountName parent, OmnichannelSetting omnichannelSetting) { CreateOmnichannelSettingRequest request = CreateOmnichannelSettingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -831,7 +833,7 @@ public final OmnichannelSetting updateOmnichannelSetting( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RequestInventoryVerificationResponse requestInventoryVerification( - OmnichannelSettingName name) { + @Nullable OmnichannelSettingName name) { RequestInventoryVerificationRequest request = RequestInventoryVerificationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -997,10 +999,11 @@ public static class ListOmnichannelSettingsPage ListOmnichannelSettingsPage> { private ListOmnichannelSettingsPage( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, - ListOmnichannelSettingsResponse response) { + @Nullable ListOmnichannelSettingsResponse response) { super(context, response); } @@ -1010,16 +1013,18 @@ private static ListOmnichannelSettingsPage createEmptyPage() { @Override protected ListOmnichannelSettingsPage createPage( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, - ListOmnichannelSettingsResponse response) { + @Nullable ListOmnichannelSettingsResponse response) { return new ListOmnichannelSettingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOmnichannelSettingsRequest, ListOmnichannelSettingsResponse, OmnichannelSetting> context, ApiFuture futureResponse) { @@ -1036,7 +1041,7 @@ public static class ListOmnichannelSettingsFixedSizeCollection ListOmnichannelSettingsFixedSizeCollection> { private ListOmnichannelSettingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1046,7 +1051,7 @@ private static ListOmnichannelSettingsFixedSizeCollection createEmptyCollection( @Override protected ListOmnichannelSettingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOmnichannelSettingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceSettings.java index dd013e326a13..dbf32452f256 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OmnichannelSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceClient.java index 1a1e47d624d8..78c00b9b329a 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceClient.java @@ -35,6 +35,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. /** @@ -230,7 +231,7 @@ @BetaApi @Generated("by gapic-generator-java") public class OnlineReturnPolicyServiceClient implements BackgroundResource { - private final OnlineReturnPolicyServiceSettings settings; + private final @Nullable OnlineReturnPolicyServiceSettings settings; private final OnlineReturnPolicyServiceStub stub; /** Constructs an instance of OnlineReturnPolicyServiceClient with default settings. */ @@ -272,7 +273,7 @@ protected OnlineReturnPolicyServiceClient(OnlineReturnPolicyServiceStub stub) { this.stub = stub; } - public final OnlineReturnPolicyServiceSettings getSettings() { + public final @Nullable OnlineReturnPolicyServiceSettings getSettings() { return settings; } @@ -303,7 +304,7 @@ public OnlineReturnPolicyServiceStub getStub() { * `accounts/{account}/onlineReturnPolicies/{return_policy}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OnlineReturnPolicy getOnlineReturnPolicy(OnlineReturnPolicyName name) { + public final OnlineReturnPolicy getOnlineReturnPolicy(@Nullable OnlineReturnPolicyName name) { GetOnlineReturnPolicyRequest request = GetOnlineReturnPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -425,7 +426,8 @@ public final OnlineReturnPolicy getOnlineReturnPolicy(GetOnlineReturnPolicyReque * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies(AccountName parent) { + public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies( + @Nullable AccountName parent) { ListOnlineReturnPoliciesRequest request = ListOnlineReturnPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -601,7 +603,7 @@ public final ListOnlineReturnPoliciesPagedResponse listOnlineReturnPolicies( * Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OnlineReturnPolicy createOnlineReturnPolicy(AccountName parent) { + public final OnlineReturnPolicy createOnlineReturnPolicy(@Nullable AccountName parent) { CreateOnlineReturnPolicyRequest request = CreateOnlineReturnPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -666,7 +668,7 @@ public final OnlineReturnPolicy createOnlineReturnPolicy(String parent) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OnlineReturnPolicy createOnlineReturnPolicy( - AccountName parent, OnlineReturnPolicy onlineReturnPolicy) { + @Nullable AccountName parent, OnlineReturnPolicy onlineReturnPolicy) { CreateOnlineReturnPolicyRequest request = CreateOnlineReturnPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -900,7 +902,7 @@ public final OnlineReturnPolicy updateOnlineReturnPolicy( * `accounts/{account}/onlineReturnPolicies/{return_policy}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteOnlineReturnPolicy(OnlineReturnPolicyName name) { + public final void deleteOnlineReturnPolicy(@Nullable OnlineReturnPolicyName name) { DeleteOnlineReturnPolicyRequest request = DeleteOnlineReturnPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1062,12 +1064,13 @@ public static class ListOnlineReturnPoliciesPage ListOnlineReturnPoliciesPage> { private ListOnlineReturnPoliciesPage( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> context, - ListOnlineReturnPoliciesResponse response) { + @Nullable ListOnlineReturnPoliciesResponse response) { super(context, response); } @@ -1077,18 +1080,20 @@ private static ListOnlineReturnPoliciesPage createEmptyPage() { @Override protected ListOnlineReturnPoliciesPage createPage( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> context, - ListOnlineReturnPoliciesResponse response) { + @Nullable ListOnlineReturnPoliciesResponse response) { return new ListOnlineReturnPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOnlineReturnPoliciesRequest, ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> @@ -1107,7 +1112,7 @@ public static class ListOnlineReturnPoliciesFixedSizeCollection ListOnlineReturnPoliciesFixedSizeCollection> { private ListOnlineReturnPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1117,7 +1122,7 @@ private static ListOnlineReturnPoliciesFixedSizeCollection createEmptyCollection @Override protected ListOnlineReturnPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOnlineReturnPoliciesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceSettings.java index e5cdd6c0aac7..3465c6979203 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(OnlineReturnPolicyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceClient.java index 80bf9bbb759f..8e47a4bf14fa 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceClient.java @@ -33,6 +33,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. /** @@ -211,7 +212,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProgramsServiceClient implements BackgroundResource { - private final ProgramsServiceSettings settings; + private final @Nullable ProgramsServiceSettings settings; private final ProgramsServiceStub stub; /** Constructs an instance of ProgramsServiceClient with default settings. */ @@ -251,7 +252,7 @@ protected ProgramsServiceClient(ProgramsServiceStub stub) { this.stub = stub; } - public final ProgramsServiceSettings getSettings() { + public final @Nullable ProgramsServiceSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public ProgramsServiceStub getStub() { * `accounts/{account}/programs/{program}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program getProgram(ProgramName name) { + public final Program getProgram(@Nullable ProgramName name) { GetProgramRequest request = GetProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProgram(request); @@ -393,7 +394,7 @@ public final UnaryCallable getProgramCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProgramsPagedResponse listPrograms(AccountName parent) { + public final ListProgramsPagedResponse listPrograms(@Nullable AccountName parent) { ListProgramsRequest request = ListProgramsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -556,7 +557,7 @@ public final UnaryCallable listProgra * account. Format: `accounts/{account}/programs/{program}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program enableProgram(ProgramName name) { + public final Program enableProgram(@Nullable ProgramName name) { EnableProgramRequest request = EnableProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return enableProgram(request); @@ -670,7 +671,7 @@ public final UnaryCallable enableProgramCallable( * account. Format: `accounts/{account}/programs/{program}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Program disableProgram(ProgramName name) { + public final Program disableProgram(@Nullable ProgramName name) { DisableProgramRequest request = DisableProgramRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return disableProgram(request); @@ -820,8 +821,8 @@ public static class ListProgramsPage extends AbstractPage { private ListProgramsPage( - PageContext context, - ListProgramsResponse response) { + @Nullable PageContext context, + @Nullable ListProgramsResponse response) { super(context, response); } @@ -831,14 +832,14 @@ private static ListProgramsPage createEmptyPage() { @Override protected ListProgramsPage createPage( - PageContext context, - ListProgramsResponse response) { + @Nullable PageContext context, + @Nullable ListProgramsResponse response) { return new ListProgramsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -852,7 +853,8 @@ public static class ListProgramsFixedSizeCollection ListProgramsPage, ListProgramsFixedSizeCollection> { - private ListProgramsFixedSizeCollection(List pages, int collectionSize) { + private ListProgramsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -862,7 +864,7 @@ private static ListProgramsFixedSizeCollection createEmptyCollection() { @Override protected ListProgramsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProgramsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceSettings.java index 6942fe7796ed..aedf11ebef7d 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProgramsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceClient.java index 21c268e5db3e..4ae1bc7c059a 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceClient.java @@ -35,6 +35,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. /** @@ -223,7 +224,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RegionsServiceClient implements BackgroundResource { - private final RegionsServiceSettings settings; + private final @Nullable RegionsServiceSettings settings; private final RegionsServiceStub stub; /** Constructs an instance of RegionsServiceClient with default settings. */ @@ -263,7 +264,7 @@ protected RegionsServiceClient(RegionsServiceStub stub) { this.stub = stub; } - public final RegionsServiceSettings getSettings() { + public final @Nullable RegionsServiceSettings getSettings() { return settings; } @@ -293,7 +294,7 @@ public RegionsServiceStub getStub() { * `accounts/{account}/regions/{region}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Region getRegion(RegionName name) { + public final Region getRegion(@Nullable RegionName name) { GetRegionRequest request = GetRegionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRegion(request); @@ -408,7 +409,7 @@ public final UnaryCallable getRegionCallable() { * account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Region createRegion(AccountName parent, Region region, String regionId) { + public final Region createRegion(@Nullable AccountName parent, Region region, String regionId) { CreateRegionRequest request = CreateRegionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -629,7 +630,7 @@ public final UnaryCallable updateRegionCallable() { * `accounts/{account}/regions/{region}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRegion(RegionName name) { + public final void deleteRegion(@Nullable RegionName name) { DeleteRegionRequest request = DeleteRegionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRegion(request); @@ -743,7 +744,7 @@ public final UnaryCallable deleteRegionCallable() { * @param parent Required. The account to list regions for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegionsPagedResponse listRegions(AccountName parent) { + public final ListRegionsPagedResponse listRegions(@Nullable AccountName parent) { ListRegionsRequest request = ListRegionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -938,8 +939,8 @@ public static class ListRegionsPage extends AbstractPage { private ListRegionsPage( - PageContext context, - ListRegionsResponse response) { + @Nullable PageContext context, + @Nullable ListRegionsResponse response) { super(context, response); } @@ -949,14 +950,14 @@ private static ListRegionsPage createEmptyPage() { @Override protected ListRegionsPage createPage( - PageContext context, - ListRegionsResponse response) { + @Nullable PageContext context, + @Nullable ListRegionsResponse response) { return new ListRegionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -970,7 +971,8 @@ public static class ListRegionsFixedSizeCollection ListRegionsPage, ListRegionsFixedSizeCollection> { - private ListRegionsFixedSizeCollection(List pages, int collectionSize) { + private ListRegionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -980,7 +982,7 @@ private static ListRegionsFixedSizeCollection createEmptyCollection() { @Override protected ListRegionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceSettings.java index 459d62481407..d221844910bf 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceClient.java index a74cdaaa19a0..c371a1b28676 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceClient.java @@ -25,6 +25,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. /** @@ -153,7 +154,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ShippingSettingsServiceClient implements BackgroundResource { - private final ShippingSettingsServiceSettings settings; + private final @Nullable ShippingSettingsServiceSettings settings; private final ShippingSettingsServiceStub stub; /** Constructs an instance of ShippingSettingsServiceClient with default settings. */ @@ -194,7 +195,7 @@ protected ShippingSettingsServiceClient(ShippingSettingsServiceStub stub) { this.stub = stub; } - public final ShippingSettingsServiceSettings getSettings() { + public final @Nullable ShippingSettingsServiceSettings getSettings() { return settings; } @@ -225,7 +226,7 @@ public ShippingSettingsServiceStub getStub() { * `accounts/{account}/shippingsetting` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ShippingSettings getShippingSettings(ShippingSettingsName name) { + public final ShippingSettings getShippingSettings(@Nullable ShippingSettingsName name) { GetShippingSettingsRequest request = GetShippingSettingsRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceSettings.java index 614d6e6e0207..4d19b3bd8159 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ShippingSettingsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceClient.java index 4c9aaf95d4ce..caec80c8a77e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceClient.java @@ -25,6 +25,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. /** @@ -162,7 +163,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TermsOfServiceAgreementStateServiceClient implements BackgroundResource { - private final TermsOfServiceAgreementStateServiceSettings settings; + private final @Nullable TermsOfServiceAgreementStateServiceSettings settings; private final TermsOfServiceAgreementStateServiceStub stub; /** Constructs an instance of TermsOfServiceAgreementStateServiceClient with default settings. */ @@ -208,7 +209,7 @@ protected TermsOfServiceAgreementStateServiceClient( this.stub = stub; } - public final TermsOfServiceAgreementStateServiceSettings getSettings() { + public final @Nullable TermsOfServiceAgreementStateServiceSettings getSettings() { return settings; } @@ -243,7 +244,7 @@ public TermsOfServiceAgreementStateServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TermsOfServiceAgreementState getTermsOfServiceAgreementState( - TermsOfServiceAgreementStateName name) { + @Nullable TermsOfServiceAgreementStateName name) { GetTermsOfServiceAgreementStateRequest request = GetTermsOfServiceAgreementStateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -371,7 +372,7 @@ public final TermsOfServiceAgreementState getTermsOfServiceAgreementState( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TermsOfServiceAgreementState retrieveForApplicationTermsOfServiceAgreementState( - AccountName parent) { + @Nullable AccountName parent) { RetrieveForApplicationTermsOfServiceAgreementStateRequest request = RetrieveForApplicationTermsOfServiceAgreementStateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceSettings.java index 565a513e1ad2..f27b51a4ad72 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TermsOfServiceAgreementStateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceClient.java index c56991c12e8b..69237f187532 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceClient.java @@ -26,6 +26,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. /** @@ -172,7 +173,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TermsOfServiceServiceClient implements BackgroundResource { - private final TermsOfServiceServiceSettings settings; + private final @Nullable TermsOfServiceServiceSettings settings; private final TermsOfServiceServiceStub stub; /** Constructs an instance of TermsOfServiceServiceClient with default settings. */ @@ -212,7 +213,7 @@ protected TermsOfServiceServiceClient(TermsOfServiceServiceStub stub) { this.stub = stub; } - public final TermsOfServiceServiceSettings getSettings() { + public final @Nullable TermsOfServiceServiceSettings getSettings() { return settings; } @@ -243,7 +244,7 @@ public TermsOfServiceServiceStub getStub() { * `termsOfService/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TermsOfService getTermsOfService(TermsOfServiceName name) { + public final TermsOfService getTermsOfService(@Nullable TermsOfServiceName name) { GetTermsOfServiceRequest request = GetTermsOfServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -422,7 +423,7 @@ public final TermsOfService retrieveLatestTermsOfService( * `termsOfService/{version}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void acceptTermsOfService(TermsOfServiceName name) { + public final void acceptTermsOfService(@Nullable TermsOfServiceName name) { AcceptTermsOfServiceRequest request = AcceptTermsOfServiceRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceSettings.java index bdc2318629a6..dac3d178a607 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -184,7 +185,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TermsOfServiceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java index 4e5110fea035..15434e1329b1 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java @@ -35,6 +35,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. /** @@ -218,7 +219,7 @@ @BetaApi @Generated("by gapic-generator-java") public class UserServiceClient implements BackgroundResource { - private final UserServiceSettings settings; + private final @Nullable UserServiceSettings settings; private final UserServiceStub stub; /** Constructs an instance of UserServiceClient with default settings. */ @@ -257,7 +258,7 @@ protected UserServiceClient(UserServiceStub stub) { this.stub = stub; } - public final UserServiceSettings getSettings() { + public final @Nullable UserServiceSettings getSettings() { return settings; } @@ -289,7 +290,7 @@ public UserServiceStub getStub() { * rather than an email address as in `accounts/{account}/users/me`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -403,7 +404,7 @@ public final UnaryCallable getUserCallable() { * @param user Required. The user to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User createUser(AccountName parent, User user) { + public final User createUser(@Nullable AccountName parent, User user) { CreateUserRequest request = CreateUserRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -525,7 +526,7 @@ public final UnaryCallable createUserCallable() { * than an email address as in `accounts/{account}/users/me`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -726,7 +727,7 @@ public final UnaryCallable updateUserCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUsersPagedResponse listUsers(AccountName parent) { + public final ListUsersPagedResponse listUsers(@Nullable AccountName parent) { ListUsersRequest request = ListUsersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listUsers(request); @@ -914,8 +915,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -925,14 +926,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -942,7 +943,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -952,7 +953,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceSettings.java index 1dcbc9ff735b..3c01830007ce 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(UserServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java index fa81e9867b44..656c3e309a78 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountIssueServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -287,7 +288,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); } @@ -353,7 +354,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listAccountIssuesSettings = PagedCallSettings.newBuilder(LIST_ACCOUNT_ISSUES_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java index 537a2c238199..fbeae9cef76e 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountTaxServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,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); } @@ -365,7 +366,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountTaxSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java index 07fa9f894e3b..76e6f25ca87b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AccountsServiceStubSettings.java @@ -65,6 +65,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -374,7 +375,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); } @@ -452,7 +453,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutofeedSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutofeedSettingsServiceStubSettings.java index ff12093011b6..f20674f626ee 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutofeedSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutofeedSettingsServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -294,7 +295,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAutofeedSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutomaticImprovementsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutomaticImprovementsServiceStubSettings.java index c53681b37e7b..03a9deb39e1d 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutomaticImprovementsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/AutomaticImprovementsServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,7 +229,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); } @@ -298,7 +299,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAutomaticImprovementsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java index be5b8705b00e..62b2e66572d6 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessIdentityServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -294,7 +295,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBusinessIdentitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java index caa9b63227ee..105fc2f362a8 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/BusinessInfoServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -290,7 +291,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getBusinessInfoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java index fa2ea3bbb183..51d83804a35f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/CheckoutSettingsServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,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); } @@ -318,7 +319,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getCheckoutSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java index deaccaa29776..c0daeeafcdca 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/EmailPreferencesServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -294,7 +295,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getEmailPreferencesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GbpAccountsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GbpAccountsServiceStubSettings.java index 9c4deb6f33cb..3a9dcd5f9624 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GbpAccountsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/GbpAccountsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -360,7 +361,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listGbpAccountsSettings = PagedCallSettings.newBuilder(LIST_GBP_ACCOUNTS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java index f4f479971773..437022dd3b1f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/HomepageServiceStubSettings.java @@ -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. /** @@ -234,7 +235,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); } @@ -304,7 +305,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getHomepageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/LfpProvidersServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/LfpProvidersServiceStubSettings.java index 7a6f9b7d792e..8e8e4a84e727 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/LfpProvidersServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/LfpProvidersServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,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); } @@ -364,7 +365,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); findLfpProvidersSettings = PagedCallSettings.newBuilder(FIND_LFP_PROVIDERS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OmnichannelSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OmnichannelSettingsServiceStubSettings.java index d60cd6af74de..a4ca94a14adc 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OmnichannelSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OmnichannelSettingsServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -424,7 +425,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOmnichannelSettingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java index 00ae78bc6896..8565152e6983 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/OnlineReturnPolicyServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -422,7 +423,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getOnlineReturnPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java index ec2c28ee33a8..4947b6e7f123 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ProgramsServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,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); } @@ -369,7 +370,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProgramSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java index f7d5b51c0564..e9a04f9d6e93 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/RegionsServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,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); } @@ -378,7 +379,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getRegionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java index 7addc9b3a9cc..c44718cd969c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/ShippingSettingsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getShippingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java index 8990e41bfe1d..3985210841d7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceAgreementStateServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -236,7 +237,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); } @@ -309,7 +310,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTermsOfServiceAgreementStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java index dd9067cad4ed..ea20c426560c 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/TermsOfServiceServiceStubSettings.java @@ -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. /** @@ -233,7 +234,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); } @@ -305,7 +306,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getTermsOfServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java index 103f3b1a3a22..e18b394374cc 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/UserServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -305,7 +306,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); } @@ -378,7 +379,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountName.java index 22ad1f4d008f..bcd8cca33084 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipName.java index 40fd5c1703ae..2bdda8cd8580 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountRelationshipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String relationship) { return newBuilder().setAccount(account).setRelationship(relationship).build().toString(); } - public static AccountRelationshipName parse(String formattedString) { + public static @Nullable AccountRelationshipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountRelationshipName> values) { List list = new ArrayList<>(values.size()); for (AccountRelationshipName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServiceName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServiceName.java index 4557c7ac50be..2e0676700b75 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServiceName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AccountServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String service) { return newBuilder().setAccount(account).setService(service).build().toString(); } - public static AccountServiceName parse(String formattedString) { + public static @Nullable AccountServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountServiceName> values) { List list = new ArrayList<>(values.size()); for (AccountServiceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsName.java index 067b4a3934b0..c963365c65b8 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutofeedSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AutofeedSettingsName parse(String formattedString) { + public static @Nullable AutofeedSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutofeedSettingsName> values) { List list = new ArrayList<>(values.size()); for (AutofeedSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsName.java index 36573ee744f7..462a282e96c3 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/AutomaticImprovementsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AutomaticImprovementsName parse(String formattedString) { + public static @Nullable AutomaticImprovementsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutomaticImprovementsName> values) { List list = new ArrayList<>(values.size()); for (AutomaticImprovementsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityName.java index fa67eeadd1be..0829525eca14 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessIdentityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static BusinessIdentityName parse(String formattedString) { + public static @Nullable BusinessIdentityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BusinessIdentityName> values) { List list = new ArrayList<>(values.size()); for (BusinessIdentityName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoName.java index 45338a7d2ff5..260d0579366b 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/BusinessInfoName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static BusinessInfoName parse(String formattedString) { + public static @Nullable BusinessInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BusinessInfoName> values) { List list = new ArrayList<>(values.size()); for (BusinessInfoName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsName.java index ccc26211dc6d..eea1d41f4463 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/CheckoutSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String program) { return newBuilder().setAccount(account).setProgram(program).build().toString(); } - public static CheckoutSettingsName parse(String formattedString) { + public static @Nullable CheckoutSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CheckoutSettingsName> values) { List list = new ArrayList<>(values.size()); for (CheckoutSettingsName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationName.java index 3a2b44874011..52354a2ce402 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static DeveloperRegistrationName parse(String formattedString) { + public static @Nullable DeveloperRegistrationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeveloperRegistrationName> values) { List list = new ArrayList<>(values.size()); for (DeveloperRegistrationName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesName.java index a5e231a3d52d..5168d0e7dbff 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/EmailPreferencesName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String email) { return newBuilder().setAccount(account).setEmail(email).build().toString(); } - public static EmailPreferencesName parse(String formattedString) { + public static @Nullable EmailPreferencesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EmailPreferencesName> values) { List list = new ArrayList<>(values.size()); for (EmailPreferencesName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageName.java index ce1404768b8a..941871792a5f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/HomepageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static HomepageName parse(String formattedString) { + public static @Nullable HomepageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HomepageName> values) { List list = new ArrayList<>(values.size()); for (HomepageName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProviderName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProviderName.java index c0109c0a8b38..c2a216b3850c 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProviderName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/LfpProviderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String omnichannelSetting, String lf .toString(); } - public static LfpProviderName parse(String formattedString) { + public static @Nullable LfpProviderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpProviderName> values) { List list = new ArrayList<>(values.size()); for (LfpProviderName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingName.java index 4b2c38508bff..d3fcf3c4ed67 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OmnichannelSettingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String omnichannelSetting) { .toString(); } - public static OmnichannelSettingName parse(String formattedString) { + public static @Nullable OmnichannelSettingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OmnichannelSettingName> values) { List list = new ArrayList<>(values.size()); for (OmnichannelSettingName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyName.java index a0c1df3caa8b..a573bd710530 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/OnlineReturnPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String returnPolicy) { return newBuilder().setAccount(account).setReturnPolicy(returnPolicy).build().toString(); } - public static OnlineReturnPolicyName parse(String formattedString) { + public static @Nullable OnlineReturnPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OnlineReturnPolicyName> values) { List list = new ArrayList<>(values.size()); for (OnlineReturnPolicyName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramName.java index 0663bd99459c..46b2dd9efcc6 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ProgramName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String program) { return newBuilder().setAccount(account).setProgram(program).build().toString(); } - public static ProgramName parse(String formattedString) { + public static @Nullable ProgramName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProgramName> values) { List list = new ArrayList<>(values.size()); for (ProgramName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionName.java index b1afcf38247c..a43fd0f46594 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/RegionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String region) { return newBuilder().setAccount(account).setRegion(region).build().toString(); } - public static RegionName parse(String formattedString) { + public static @Nullable RegionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegionName> values) { List list = new ArrayList<>(values.size()); for (RegionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsName.java index 8206c9c0d8b7..8e7a671f88af 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/ShippingSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static ShippingSettingsName parse(String formattedString) { + public static @Nullable ShippingSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ShippingSettingsName> values) { List list = new ArrayList<>(values.size()); for (ShippingSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateName.java index 498a0e7c27db..35bc8a508397 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceAgreementStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String identifier) { return newBuilder().setAccount(account).setIdentifier(identifier).build().toString(); } - public static TermsOfServiceAgreementStateName parse(String formattedString) { + public static @Nullable TermsOfServiceAgreementStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TermsOfServiceAgreementStateName> values) { List list = new ArrayList<>(values.size()); for (TermsOfServiceAgreementStateName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceName.java index fedf39d43451..d0a4d293c5de 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/TermsOfServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String version) { return newBuilder().setVersion(version).build().toString(); } - public static TermsOfServiceName parse(String formattedString) { + public static @Nullable TermsOfServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TermsOfServiceName> values) { List list = new ArrayList<>(values.size()); for (TermsOfServiceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserName.java index 7cd55acceb2d..3243b1ec3066 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/src/main/java/com/google/shopping/merchant/accounts/v1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String email) { return newBuilder().setAccount(account).setEmail(email).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountName.java index d4e228cc316b..18100257c653 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxName.java index 0c06b267ec66..4c3655b2373a 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AccountTaxName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String tax) { return newBuilder().setAccount(account).setTax(tax).build().toString(); } - public static AccountTaxName parse(String formattedString) { + public static @Nullable AccountTaxName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountTaxName> values) { List list = new ArrayList<>(values.size()); for (AccountTaxName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsName.java index 2becc9309f1d..70722305756f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutofeedSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AutofeedSettingsName parse(String formattedString) { + public static @Nullable AutofeedSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutofeedSettingsName> values) { List list = new ArrayList<>(values.size()); for (AutofeedSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsName.java index b9ef3a230571..f986cf7e8fc5 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/AutomaticImprovementsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AutomaticImprovementsName parse(String formattedString) { + public static @Nullable AutomaticImprovementsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -84,7 +85,7 @@ public static List parseList(List formattedSt return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AutomaticImprovementsName> values) { List list = new ArrayList<>(values.size()); for (AutomaticImprovementsName value : values) { if (value == null) { @@ -126,7 +127,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityName.java index a71c2b90056b..a1b6f28d3ca4 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessIdentityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static BusinessIdentityName parse(String formattedString) { + public static @Nullable BusinessIdentityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BusinessIdentityName> values) { List list = new ArrayList<>(values.size()); for (BusinessIdentityName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoName.java index 21676a73bca9..7e3cb8057fff 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static BusinessInfoName parse(String formattedString) { + public static @Nullable BusinessInfoName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BusinessInfoName> values) { List list = new ArrayList<>(values.size()); for (BusinessInfoName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java index a7b6795aa674..64eb55e63da9 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/CheckoutSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String program) { return newBuilder().setAccount(account).setProgram(program).build().toString(); } - public static CheckoutSettingsName parse(String formattedString) { + public static @Nullable CheckoutSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CheckoutSettingsName> values) { List list = new ArrayList<>(values.size()); for (CheckoutSettingsName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesName.java index 6863be934ead..61616aa452c0 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/EmailPreferencesName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String email) { return newBuilder().setAccount(account).setEmail(email).build().toString(); } - public static EmailPreferencesName parse(String formattedString) { + public static @Nullable EmailPreferencesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EmailPreferencesName> values) { List list = new ArrayList<>(values.size()); for (EmailPreferencesName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageName.java index cfe296006f4d..4a1425f8717f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/HomepageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static HomepageName parse(String formattedString) { + public static @Nullable HomepageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HomepageName> values) { List list = new ArrayList<>(values.size()); for (HomepageName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProviderName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProviderName.java index 71643eeadb58..001e1d958505 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProviderName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/LfpProviderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String omnichannelSetting, String lf .toString(); } - public static LfpProviderName parse(String formattedString) { + public static @Nullable LfpProviderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -108,7 +109,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpProviderName> values) { List list = new ArrayList<>(values.size()); for (LfpProviderName value : values) { if (value == null) { @@ -157,7 +158,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingName.java index badbba10ae10..176d6c2d2c31 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OmnichannelSettingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String omnichannelSetting) { .toString(); } - public static OmnichannelSettingName parse(String formattedString) { + public static @Nullable OmnichannelSettingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OmnichannelSettingName> values) { List list = new ArrayList<>(values.size()); for (OmnichannelSettingName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyName.java index 7af177c59ee8..cf3e7979e8b4 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/OnlineReturnPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String returnPolicy) { return newBuilder().setAccount(account).setReturnPolicy(returnPolicy).build().toString(); } - public static OnlineReturnPolicyName parse(String formattedString) { + public static @Nullable OnlineReturnPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OnlineReturnPolicyName> values) { List list = new ArrayList<>(values.size()); for (OnlineReturnPolicyName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramName.java index aa32990d7f81..08f66b00551f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ProgramName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String program) { return newBuilder().setAccount(account).setProgram(program).build().toString(); } - public static ProgramName parse(String formattedString) { + public static @Nullable ProgramName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProgramName> values) { List list = new ArrayList<>(values.size()); for (ProgramName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionName.java index 7fbf71cbe565..13d2fa6d697a 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/RegionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String region) { return newBuilder().setAccount(account).setRegion(region).build().toString(); } - public static RegionName parse(String formattedString) { + public static @Nullable RegionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegionName> values) { List list = new ArrayList<>(values.size()); for (RegionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsName.java index d23c9fe33123..4e31cdc32c7c 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ShippingSettingsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static ShippingSettingsName parse(String formattedString) { + public static @Nullable ShippingSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ShippingSettingsName> values) { List list = new ArrayList<>(values.size()); for (ShippingSettingsName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateName.java index 824bf5146c01..b876a9e70cf3 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceAgreementStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String account, String identifier) { return newBuilder().setAccount(account).setIdentifier(identifier).build().toString(); } - public static TermsOfServiceAgreementStateName parse(String formattedString) { + public static @Nullable TermsOfServiceAgreementStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List form return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TermsOfServiceAgreementStateName> values) { List list = new ArrayList<>(values.size()); for (TermsOfServiceAgreementStateName value : values) { if (value == null) { @@ -137,7 +138,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceName.java index 3a0f3237fe2d..4536ba7d0ded 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/TermsOfServiceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String version) { return newBuilder().setVersion(version).build().toString(); } - public static TermsOfServiceName parse(String formattedString) { + public static @Nullable TermsOfServiceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TermsOfServiceName> values) { List list = new ArrayList<>(values.size()); for (TermsOfServiceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserName.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserName.java index dfaec905dcee..b2220fcebd70 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserName.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String email) { return newBuilder().setAccount(account).setEmail(email).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceClient.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceClient.java index f02810ca0c8d..339f583242c2 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceClient.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceClient.java @@ -34,6 +34,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. /** @@ -238,7 +239,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConversionSourcesServiceClient implements BackgroundResource { - private final ConversionSourcesServiceSettings settings; + private final @Nullable ConversionSourcesServiceSettings settings; private final ConversionSourcesServiceStub stub; /** Constructs an instance of ConversionSourcesServiceClient with default settings. */ @@ -280,7 +281,7 @@ protected ConversionSourcesServiceClient(ConversionSourcesServiceStub stub) { this.stub = stub; } - public final ConversionSourcesServiceSettings getSettings() { + public final @Nullable ConversionSourcesServiceSettings getSettings() { return settings; } @@ -316,7 +317,7 @@ public ConversionSourcesServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversionSource createConversionSource( - AccountName parent, ConversionSource conversionSource) { + @Nullable AccountName parent, ConversionSource conversionSource) { CreateConversionSourceRequest request = CreateConversionSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -547,7 +548,7 @@ public final ConversionSource updateConversionSource(UpdateConversionSourceReque * `accounts/{account}/conversionSources/{conversion_source}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversionSource(ConversionSourceName name) { + public final void deleteConversionSource(@Nullable ConversionSourceName name) { DeleteConversionSourceRequest request = DeleteConversionSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -733,7 +734,7 @@ public final ConversionSource undeleteConversionSource(UndeleteConversionSourceR * `accounts/{account}/conversionSources/{conversion_source}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionSource getConversionSource(ConversionSourceName name) { + public final ConversionSource getConversionSource(@Nullable ConversionSourceName name) { GetConversionSourceRequest request = GetConversionSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -855,7 +856,8 @@ public final ConversionSource getConversionSource(GetConversionSourceRequest req * Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversionSourcesPagedResponse listConversionSources(AccountName parent) { + public final ListConversionSourcesPagedResponse listConversionSources( + @Nullable AccountName parent) { ListConversionSourcesRequest request = ListConversionSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1071,9 +1073,11 @@ public static class ListConversionSourcesPage ListConversionSourcesPage> { private ListConversionSourcesPage( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, - ListConversionSourcesResponse response) { + @Nullable ListConversionSourcesResponse response) { super(context, response); } @@ -1083,15 +1087,19 @@ private static ListConversionSourcesPage createEmptyPage() { @Override protected ListConversionSourcesPage createPage( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, - ListConversionSourcesResponse response) { + @Nullable ListConversionSourcesResponse response) { return new ListConversionSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1107,7 +1115,7 @@ public static class ListConversionSourcesFixedSizeCollection ListConversionSourcesFixedSizeCollection> { private ListConversionSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1117,7 +1125,7 @@ private static ListConversionSourcesFixedSizeCollection createEmptyCollection() @Override protected ListConversionSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversionSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceSettings.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceSettings.java index 79a775b41e4d..e2d5af3b2409 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceSettings.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourcesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversionSourcesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/ConversionSourcesServiceStubSettings.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/ConversionSourcesServiceStubSettings.java index 305f83047f1f..e1623e1052a5 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/ConversionSourcesServiceStubSettings.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/ConversionSourcesServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -340,7 +341,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); } @@ -423,7 +424,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversionSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceClient.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceClient.java index 85b7a734ef4e..0fb9c6e0b1ae 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceClient.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceClient.java @@ -35,6 +35,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. /** @@ -240,7 +241,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ConversionSourcesServiceClient implements BackgroundResource { - private final ConversionSourcesServiceSettings settings; + private final @Nullable ConversionSourcesServiceSettings settings; private final ConversionSourcesServiceStub stub; /** Constructs an instance of ConversionSourcesServiceClient with default settings. */ @@ -282,7 +283,7 @@ protected ConversionSourcesServiceClient(ConversionSourcesServiceStub stub) { this.stub = stub; } - public final ConversionSourcesServiceSettings getSettings() { + public final @Nullable ConversionSourcesServiceSettings getSettings() { return settings; } @@ -318,7 +319,7 @@ public ConversionSourcesServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ConversionSource createConversionSource( - AccountName parent, ConversionSource conversionSource) { + @Nullable AccountName parent, ConversionSource conversionSource) { CreateConversionSourceRequest request = CreateConversionSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -550,7 +551,7 @@ public final ConversionSource updateConversionSource(UpdateConversionSourceReque * accounts/{account}/conversionSources/{conversion_source} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversionSource(ConversionSourceName name) { + public final void deleteConversionSource(@Nullable ConversionSourceName name) { DeleteConversionSourceRequest request = DeleteConversionSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -736,7 +737,7 @@ public final ConversionSource undeleteConversionSource(UndeleteConversionSourceR * accounts/{account}/conversionsources/{conversion_source} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionSource getConversionSource(ConversionSourceName name) { + public final ConversionSource getConversionSource(@Nullable ConversionSourceName name) { GetConversionSourceRequest request = GetConversionSourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -858,7 +859,8 @@ public final ConversionSource getConversionSource(GetConversionSourceRequest req * Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversionSourcesPagedResponse listConversionSources(AccountName parent) { + public final ListConversionSourcesPagedResponse listConversionSources( + @Nullable AccountName parent) { ListConversionSourcesRequest request = ListConversionSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1074,9 +1076,11 @@ public static class ListConversionSourcesPage ListConversionSourcesPage> { private ListConversionSourcesPage( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, - ListConversionSourcesResponse response) { + @Nullable ListConversionSourcesResponse response) { super(context, response); } @@ -1086,15 +1090,19 @@ private static ListConversionSourcesPage createEmptyPage() { @Override protected ListConversionSourcesPage createPage( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, - ListConversionSourcesResponse response) { + @Nullable ListConversionSourcesResponse response) { return new ListConversionSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListConversionSourcesRequest, ListConversionSourcesResponse, ConversionSource> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1110,7 +1118,7 @@ public static class ListConversionSourcesFixedSizeCollection ListConversionSourcesFixedSizeCollection> { private ListConversionSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1120,7 +1128,7 @@ private static ListConversionSourcesFixedSizeCollection createEmptyCollection() @Override protected ListConversionSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConversionSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceSettings.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceSettings.java index 4ac27e27d0b8..77f893190302 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceSettings.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourcesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConversionSourcesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java index b25b86a1d971..04967fa3bd4a 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/ConversionSourcesServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,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); } @@ -424,7 +425,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConversionSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/AccountName.java b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/AccountName.java index 2367bd651a94..1518b003f49a 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/AccountName.java +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourceName.java b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourceName.java index 3213046cefcd..e24df4162499 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourceName.java +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/src/main/java/com/google/shopping/merchant/conversions/v1/ConversionSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String conversionSource) { .toString(); } - public static ConversionSourceName parse(String formattedString) { + public static @Nullable ConversionSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversionSourceName> values) { List list = new ArrayList<>(values.size()); for (ConversionSourceName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/AccountName.java b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/AccountName.java index 54c75feb76e0..1258ca852b36 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/AccountName.java +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourceName.java b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourceName.java index 9386bb917392..c2fa1dc551df 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourceName.java +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/ConversionSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String conversionSource) { .toString(); } - public static ConversionSourceName parse(String formattedString) { + public static @Nullable ConversionSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConversionSourceName> values) { List list = new ArrayList<>(values.size()); for (ConversionSourceName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceClient.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceClient.java index 04ef9e0e3eb7..279aa52579ac 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceClient.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceClient.java @@ -34,6 +34,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. /** @@ -237,7 +238,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataSourcesServiceClient implements BackgroundResource { - private final DataSourcesServiceSettings settings; + private final @Nullable DataSourcesServiceSettings settings; private final DataSourcesServiceStub stub; /** Constructs an instance of DataSourcesServiceClient with default settings. */ @@ -277,7 +278,7 @@ protected DataSourcesServiceClient(DataSourcesServiceStub stub) { this.stub = stub; } - public final DataSourcesServiceSettings getSettings() { + public final @Nullable DataSourcesServiceSettings getSettings() { return settings; } @@ -307,7 +308,7 @@ public DataSourcesServiceStub getStub() { * `accounts/{account}/dataSources/{datasource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource getDataSource(DataSourceName name) { + public final DataSource getDataSource(@Nullable DataSourceName name) { GetDataSourceRequest request = GetDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataSource(request); @@ -419,7 +420,7 @@ public final UnaryCallable getDataSourceCallab * @param parent Required. The account to list data sources for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourcesPagedResponse listDataSources(AccountName parent) { + public final ListDataSourcesPagedResponse listDataSources(@Nullable AccountName parent) { ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -585,7 +586,7 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest * @param dataSource Required. The data source to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource createDataSource(AccountName parent, DataSource dataSource) { + public final DataSource createDataSource(@Nullable AccountName parent, DataSource dataSource) { CreateDataSourceRequest request = CreateDataSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -805,7 +806,7 @@ public final UnaryCallable updateDataSource * `accounts/{account}/dataSources/{datasource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataSource(DataSourceName name) { + public final void deleteDataSource(@Nullable DataSourceName name) { DeleteDataSourceRequest request = DeleteDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataSource(request); @@ -1015,8 +1016,8 @@ public static class ListDataSourcesPage ListDataSourcesRequest, ListDataSourcesResponse, DataSource, ListDataSourcesPage> { private ListDataSourcesPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { super(context, response); } @@ -1026,14 +1027,14 @@ private static ListDataSourcesPage createEmptyPage() { @Override protected ListDataSourcesPage createPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { return new ListDataSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1048,7 +1049,7 @@ public static class ListDataSourcesFixedSizeCollection ListDataSourcesFixedSizeCollection> { private ListDataSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1058,7 +1059,7 @@ private static ListDataSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListDataSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceSettings.java index 4ec38c1a739d..cb9d5dad4b7e 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourcesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,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); } @@ -200,7 +201,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataSourcesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceClient.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceClient.java index 3fa795078005..ba7b9a3655c1 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceClient.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceClient.java @@ -24,6 +24,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. /** @@ -135,7 +136,7 @@ @NullMarked @Generated("by gapic-generator-java") public class FileUploadsServiceClient implements BackgroundResource { - private final FileUploadsServiceSettings settings; + private final @Nullable FileUploadsServiceSettings settings; private final FileUploadsServiceStub stub; /** Constructs an instance of FileUploadsServiceClient with default settings. */ @@ -175,7 +176,7 @@ protected FileUploadsServiceClient(FileUploadsServiceStub stub) { this.stub = stub; } - public final FileUploadsServiceSettings getSettings() { + public final @Nullable FileUploadsServiceSettings getSettings() { return settings; } @@ -205,7 +206,7 @@ public FileUploadsServiceStub getStub() { * `accounts/{account}/dataSources/{datasource}/fileUploads/latest` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FileUpload getFileUpload(FileUploadName name) { + public final FileUpload getFileUpload(@Nullable FileUploadName name) { GetFileUploadRequest request = GetFileUploadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFileUpload(request); diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceSettings.java index fe53e17ee2a1..c823b7915790 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FileUploadsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/DataSourcesServiceStubSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/DataSourcesServiceStubSettings.java index 45c5a05c926c..8e9a6473ed44 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/DataSourcesServiceStubSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/DataSourcesServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -317,7 +318,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); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDataSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/FileUploadsServiceStubSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/FileUploadsServiceStubSettings.java index 62f6a003b1d5..11b0a71323a2 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/FileUploadsServiceStubSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/FileUploadsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -213,7 +214,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); } @@ -277,7 +278,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFileUploadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceClient.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceClient.java index e6e970c8d836..972931f087c9 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceClient.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceClient.java @@ -35,6 +35,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. /** @@ -239,7 +240,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataSourcesServiceClient implements BackgroundResource { - private final DataSourcesServiceSettings settings; + private final @Nullable DataSourcesServiceSettings settings; private final DataSourcesServiceStub stub; /** Constructs an instance of DataSourcesServiceClient with default settings. */ @@ -279,7 +280,7 @@ protected DataSourcesServiceClient(DataSourcesServiceStub stub) { this.stub = stub; } - public final DataSourcesServiceSettings getSettings() { + public final @Nullable DataSourcesServiceSettings getSettings() { return settings; } @@ -309,7 +310,7 @@ public DataSourcesServiceStub getStub() { * `accounts/{account}/dataSources/{datasource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource getDataSource(DataSourceName name) { + public final DataSource getDataSource(@Nullable DataSourceName name) { GetDataSourceRequest request = GetDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataSource(request); @@ -421,7 +422,7 @@ public final UnaryCallable getDataSourceCallab * @param parent Required. The account to list data sources for. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSourcesPagedResponse listDataSources(AccountName parent) { + public final ListDataSourcesPagedResponse listDataSources(@Nullable AccountName parent) { ListDataSourcesRequest request = ListDataSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -586,7 +587,7 @@ public final ListDataSourcesPagedResponse listDataSources(ListDataSourcesRequest * @param dataSource Required. The data source to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSource createDataSource(AccountName parent, DataSource dataSource) { + public final DataSource createDataSource(@Nullable AccountName parent, DataSource dataSource) { CreateDataSourceRequest request = CreateDataSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -801,7 +802,7 @@ public final UnaryCallable updateDataSource * `accounts/{account}/dataSources/{datasource}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataSource(DataSourceName name) { + public final void deleteDataSource(@Nullable DataSourceName name) { DeleteDataSourceRequest request = DeleteDataSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataSource(request); @@ -1011,8 +1012,8 @@ public static class ListDataSourcesPage ListDataSourcesRequest, ListDataSourcesResponse, DataSource, ListDataSourcesPage> { private ListDataSourcesPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { super(context, response); } @@ -1022,14 +1023,14 @@ private static ListDataSourcesPage createEmptyPage() { @Override protected ListDataSourcesPage createPage( - PageContext context, - ListDataSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListDataSourcesResponse response) { return new ListDataSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1044,7 +1045,7 @@ public static class ListDataSourcesFixedSizeCollection ListDataSourcesFixedSizeCollection> { private ListDataSourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1054,7 +1055,7 @@ private static ListDataSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListDataSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSourcesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceSettings.java index 89aa2d4da861..31c5d90b914c 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -181,7 +182,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); } @@ -201,7 +202,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataSourcesServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceClient.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceClient.java index 149fc9b94a2e..234686ebf957 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceClient.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceClient.java @@ -25,6 +25,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. /** @@ -137,7 +138,7 @@ @BetaApi @Generated("by gapic-generator-java") public class FileUploadsServiceClient implements BackgroundResource { - private final FileUploadsServiceSettings settings; + private final @Nullable FileUploadsServiceSettings settings; private final FileUploadsServiceStub stub; /** Constructs an instance of FileUploadsServiceClient with default settings. */ @@ -177,7 +178,7 @@ protected FileUploadsServiceClient(FileUploadsServiceStub stub) { this.stub = stub; } - public final FileUploadsServiceSettings getSettings() { + public final @Nullable FileUploadsServiceSettings getSettings() { return settings; } @@ -207,7 +208,7 @@ public FileUploadsServiceStub getStub() { * `accounts/{account}/dataSources/{datasource}/fileUploads/latest` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FileUpload getFileUpload(FileUploadName name) { + public final FileUpload getFileUpload(@Nullable FileUploadName name) { GetFileUploadRequest request = GetFileUploadRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFileUpload(request); diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceSettings.java index cc02df26a22c..fab90f9faf15 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(FileUploadsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java index e6027b6f86a9..734bf0d32ef0 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/DataSourcesServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -318,7 +319,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); } @@ -397,7 +398,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getDataSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/FileUploadsServiceStubSettings.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/FileUploadsServiceStubSettings.java index 4fadd1756bcd..da60eed0d1b2 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/FileUploadsServiceStubSettings.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/FileUploadsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -278,7 +279,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getFileUploadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/AccountName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/AccountName.java index 63ef6b3511b7..1e345839a278 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/AccountName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourceName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourceName.java index 9df7e8b1fa10..97c232acf999 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourceName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/DataSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String datasource) { return newBuilder().setAccount(account).setDatasource(datasource).build().toString(); } - public static DataSourceName parse(String formattedString) { + public static @Nullable DataSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSourceName> values) { List list = new ArrayList<>(values.size()); for (DataSourceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadName.java index ba0bce366ba6..04a2fbf817a0 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/src/main/java/com/google/shopping/merchant/datasources/v1/FileUploadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String datasource, String fileupload .toString(); } - public static FileUploadName parse(String formattedString) { + public static @Nullable FileUploadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FileUploadName> values) { List list = new ArrayList<>(values.size()); for (FileUploadName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/AccountName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/AccountName.java index 441a99d0ea19..2a3d7cdba2b7 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/AccountName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourceName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourceName.java index 9c86a4850e1b..52621c4ac27a 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourceName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String datasource) { return newBuilder().setAccount(account).setDatasource(datasource).build().toString(); } - public static DataSourceName parse(String formattedString) { + public static @Nullable DataSourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSourceName> values) { List list = new ArrayList<>(values.size()); for (DataSourceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadName.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadName.java index 4de4461f7f9f..b079bdaff7b4 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadName.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileUploadName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String datasource, String fileupload .toString(); } - public static FileUploadName parse(String formattedString) { + public static @Nullable FileUploadName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FileUploadName> values) { List list = new ArrayList<>(values.size()); for (FileUploadName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java index 47bce6400ace..f3f86e9fa6c6 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceClient.java @@ -33,6 +33,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. /** @@ -186,7 +187,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LocalInventoryServiceClient implements BackgroundResource { - private final LocalInventoryServiceSettings settings; + private final @Nullable LocalInventoryServiceSettings settings; private final LocalInventoryServiceStub stub; /** Constructs an instance of LocalInventoryServiceClient with default settings. */ @@ -226,7 +227,7 @@ protected LocalInventoryServiceClient(LocalInventoryServiceStub stub) { this.stub = stub; } - public final LocalInventoryServiceSettings getSettings() { + public final @Nullable LocalInventoryServiceSettings getSettings() { return settings; } @@ -286,7 +287,8 @@ public LocalInventoryServiceStub getStub() { * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocalInventoriesPagedResponse listLocalInventories(ProductName parent) { + public final ListLocalInventoriesPagedResponse listLocalInventories( + @Nullable ProductName parent) { ListLocalInventoriesRequest request = ListLocalInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -598,7 +600,7 @@ public final LocalInventory insertLocalInventory(InsertLocalInventoryRequest req * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLocalInventory(LocalInventoryName name) { + public final void deleteLocalInventory(@Nullable LocalInventoryName name) { DeleteLocalInventoryRequest request = DeleteLocalInventoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -788,9 +790,10 @@ public static class ListLocalInventoriesPage ListLocalInventoriesPage> { private ListLocalInventoriesPage( - PageContext + @Nullable + PageContext context, - ListLocalInventoriesResponse response) { + @Nullable ListLocalInventoriesResponse response) { super(context, response); } @@ -800,15 +803,17 @@ private static ListLocalInventoriesPage createEmptyPage() { @Override protected ListLocalInventoriesPage createPage( - PageContext + @Nullable + PageContext context, - ListLocalInventoriesResponse response) { + @Nullable ListLocalInventoriesResponse response) { return new ListLocalInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -824,7 +829,7 @@ public static class ListLocalInventoriesFixedSizeCollection ListLocalInventoriesFixedSizeCollection> { private ListLocalInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -834,7 +839,7 @@ private static ListLocalInventoriesFixedSizeCollection createEmptyCollection() { @Override protected ListLocalInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocalInventoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceSettings.java index 0b68c0bb7dc0..1eb9c4499ad2 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,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); } @@ -189,7 +190,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LocalInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java index 01ff7bd6b097..0839622417e4 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceClient.java @@ -33,6 +33,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. /** @@ -187,7 +188,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionalInventoryServiceClient implements BackgroundResource { - private final RegionalInventoryServiceSettings settings; + private final @Nullable RegionalInventoryServiceSettings settings; private final RegionalInventoryServiceStub stub; /** Constructs an instance of RegionalInventoryServiceClient with default settings. */ @@ -229,7 +230,7 @@ protected RegionalInventoryServiceClient(RegionalInventoryServiceStub stub) { this.stub = stub; } - public final RegionalInventoryServiceSettings getSettings() { + public final @Nullable RegionalInventoryServiceSettings getSettings() { return settings; } @@ -289,7 +290,8 @@ public RegionalInventoryServiceStub getStub() { * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegionalInventoriesPagedResponse listRegionalInventories(ProductName parent) { + public final ListRegionalInventoriesPagedResponse listRegionalInventories( + @Nullable ProductName parent) { ListRegionalInventoriesRequest request = ListRegionalInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -601,7 +603,7 @@ public final RegionalInventory insertRegionalInventory(InsertRegionalInventoryRe * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRegionalInventory(RegionalInventoryName name) { + public final void deleteRegionalInventory(@Nullable RegionalInventoryName name) { DeleteRegionalInventoryRequest request = DeleteRegionalInventoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -793,10 +795,11 @@ public static class ListRegionalInventoriesPage ListRegionalInventoriesPage> { private ListRegionalInventoriesPage( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, - ListRegionalInventoriesResponse response) { + @Nullable ListRegionalInventoriesResponse response) { super(context, response); } @@ -806,16 +809,18 @@ private static ListRegionalInventoriesPage createEmptyPage() { @Override protected ListRegionalInventoriesPage createPage( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, - ListRegionalInventoriesResponse response) { + @Nullable ListRegionalInventoriesResponse response) { return new ListRegionalInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, ApiFuture futureResponse) { @@ -832,7 +837,7 @@ public static class ListRegionalInventoriesFixedSizeCollection ListRegionalInventoriesFixedSizeCollection> { private ListRegionalInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -842,7 +847,7 @@ private static ListRegionalInventoriesFixedSizeCollection createEmptyCollection( @Override protected ListRegionalInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegionalInventoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceSettings.java index eca6aef2e048..be1e7079a650 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionalInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/LocalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/LocalInventoryServiceStubSettings.java index 604d8608f817..1cb0d085bc56 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/LocalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/LocalInventoryServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -310,7 +311,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); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLocalInventoriesSettings = diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/RegionalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/RegionalInventoryServiceStubSettings.java index 481b4ce557fd..14afe8330419 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/RegionalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/RegionalInventoryServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -321,7 +322,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); } @@ -395,7 +396,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRegionalInventoriesSettings = diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java index 5d66f3c99fd3..85e6874c5c04 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceClient.java @@ -34,6 +34,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. /** @@ -188,7 +189,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LocalInventoryServiceClient implements BackgroundResource { - private final LocalInventoryServiceSettings settings; + private final @Nullable LocalInventoryServiceSettings settings; private final LocalInventoryServiceStub stub; /** Constructs an instance of LocalInventoryServiceClient with default settings. */ @@ -228,7 +229,7 @@ protected LocalInventoryServiceClient(LocalInventoryServiceStub stub) { this.stub = stub; } - public final LocalInventoryServiceSettings getSettings() { + public final @Nullable LocalInventoryServiceSettings getSettings() { return settings; } @@ -266,7 +267,8 @@ public LocalInventoryServiceStub getStub() { * `accounts/{account}/products/{product}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLocalInventoriesPagedResponse listLocalInventories(ProductName parent) { + public final ListLocalInventoriesPagedResponse listLocalInventories( + @Nullable ProductName parent) { ListLocalInventoriesRequest request = ListLocalInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -533,7 +535,7 @@ public final LocalInventory insertLocalInventory(InsertLocalInventoryRequest req * `accounts/{account}/products/{product}/localInventories/{store_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLocalInventory(LocalInventoryName name) { + public final void deleteLocalInventory(@Nullable LocalInventoryName name) { DeleteLocalInventoryRequest request = DeleteLocalInventoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -700,9 +702,10 @@ public static class ListLocalInventoriesPage ListLocalInventoriesPage> { private ListLocalInventoriesPage( - PageContext + @Nullable + PageContext context, - ListLocalInventoriesResponse response) { + @Nullable ListLocalInventoriesResponse response) { super(context, response); } @@ -712,15 +715,17 @@ private static ListLocalInventoriesPage createEmptyPage() { @Override protected ListLocalInventoriesPage createPage( - PageContext + @Nullable + PageContext context, - ListLocalInventoriesResponse response) { + @Nullable ListLocalInventoriesResponse response) { return new ListLocalInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -736,7 +741,7 @@ public static class ListLocalInventoriesFixedSizeCollection ListLocalInventoriesFixedSizeCollection> { private ListLocalInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -746,7 +751,7 @@ private static ListLocalInventoriesFixedSizeCollection createEmptyCollection() { @Override protected ListLocalInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocalInventoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java index dee0aa58ddca..ddc9cd9d54bc 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,7 +170,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); } @@ -190,7 +191,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LocalInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java index b1dc15e0d920..50fd725fad36 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceClient.java @@ -34,6 +34,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. /** @@ -189,7 +190,7 @@ @BetaApi @Generated("by gapic-generator-java") public class RegionalInventoryServiceClient implements BackgroundResource { - private final RegionalInventoryServiceSettings settings; + private final @Nullable RegionalInventoryServiceSettings settings; private final RegionalInventoryServiceStub stub; /** Constructs an instance of RegionalInventoryServiceClient with default settings. */ @@ -231,7 +232,7 @@ protected RegionalInventoryServiceClient(RegionalInventoryServiceStub stub) { this.stub = stub; } - public final RegionalInventoryServiceSettings getSettings() { + public final @Nullable RegionalInventoryServiceSettings getSettings() { return settings; } @@ -269,7 +270,8 @@ public RegionalInventoryServiceStub getStub() { * for. Format: `accounts/{account}/products/{product}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRegionalInventoriesPagedResponse listRegionalInventories(ProductName parent) { + public final ListRegionalInventoriesPagedResponse listRegionalInventories( + @Nullable ProductName parent) { ListRegionalInventoriesRequest request = ListRegionalInventoriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -536,7 +538,7 @@ public final RegionalInventory insertRegionalInventory(InsertRegionalInventoryRe * `accounts/{account}/products/{product}/regionalInventories/{region}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRegionalInventory(RegionalInventoryName name) { + public final void deleteRegionalInventory(@Nullable RegionalInventoryName name) { DeleteRegionalInventoryRequest request = DeleteRegionalInventoryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -705,10 +707,11 @@ public static class ListRegionalInventoriesPage ListRegionalInventoriesPage> { private ListRegionalInventoriesPage( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, - ListRegionalInventoriesResponse response) { + @Nullable ListRegionalInventoriesResponse response) { super(context, response); } @@ -718,16 +721,18 @@ private static ListRegionalInventoriesPage createEmptyPage() { @Override protected ListRegionalInventoriesPage createPage( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, - ListRegionalInventoriesResponse response) { + @Nullable ListRegionalInventoriesResponse response) { return new ListRegionalInventoriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListRegionalInventoriesRequest, ListRegionalInventoriesResponse, RegionalInventory> context, ApiFuture futureResponse) { @@ -744,7 +749,7 @@ public static class ListRegionalInventoriesFixedSizeCollection ListRegionalInventoriesFixedSizeCollection> { private ListRegionalInventoriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -754,7 +759,7 @@ private static ListRegionalInventoriesFixedSizeCollection createEmptyCollection( @Override protected ListRegionalInventoriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRegionalInventoriesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java index eeb3cab1966d..fdb9321f9e9f 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -195,7 +196,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionalInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java index 7c9910bcee40..68e0901207be 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/LocalInventoryServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -311,7 +312,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); } @@ -385,7 +386,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLocalInventoriesSettings = diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java index 3989354ae6ec..aaa425faff8e 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/RegionalInventoryServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -322,7 +323,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); } @@ -396,7 +397,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listRegionalInventoriesSettings = diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryName.java index 378bd2a6ceba..39c1d8d91e81 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/LocalInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String account, String product, String storeCode) { .toString(); } - public static LocalInventoryName parse(String formattedString) { + public static @Nullable LocalInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocalInventoryName> values) { List list = new ArrayList<>(values.size()); for (LocalInventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ProductName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ProductName.java index 625bccf53113..5345a82dff46 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ProductName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryName.java index c213e0c1c298..704ac5347e22 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/src/main/java/com/google/shopping/merchant/inventories/v1/RegionalInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String account, String product, String region) { .toString(); } - public static RegionalInventoryName parse(String formattedString) { + public static @Nullable RegionalInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegionalInventoryName> values) { List list = new ArrayList<>(values.size()); for (RegionalInventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java index ab42de557a74..e02e1520a26b 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String account, String product, String storeCode) { .toString(); } - public static LocalInventoryName parse(String formattedString) { + public static @Nullable LocalInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocalInventoryName> values) { List list = new ArrayList<>(values.size()); for (LocalInventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ProductName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ProductName.java index dd9b16ab5f82..99779a47b042 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ProductName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java index 29569d196c5c..ea7e8c4edc57 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String account, String product, String region) { .toString(); } - public static RegionalInventoryName parse(String formattedString) { + public static @Nullable RegionalInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RegionalInventoryName> values) { List list = new ArrayList<>(values.size()); for (RegionalInventoryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceClient.java index 322e7d3c005b..8925b66b50e4 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceClient.java @@ -24,6 +24,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. /** @@ -136,7 +137,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LfpInventoryServiceClient implements BackgroundResource { - private final LfpInventoryServiceSettings settings; + private final @Nullable LfpInventoryServiceSettings settings; private final LfpInventoryServiceStub stub; /** Constructs an instance of LfpInventoryServiceClient with default settings. */ @@ -176,7 +177,7 @@ protected LfpInventoryServiceClient(LfpInventoryServiceStub stub) { this.stub = stub; } - public final LfpInventoryServiceSettings getSettings() { + public final @Nullable LfpInventoryServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceSettings.java index de9dd5a95083..a60139e2fe52 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceClient.java index 955bd1c87d0b..97db6077fd00 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceClient.java @@ -24,6 +24,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LfpMerchantStateServiceClient implements BackgroundResource { - private final LfpMerchantStateServiceSettings settings; + private final @Nullable LfpMerchantStateServiceSettings settings; private final LfpMerchantStateServiceStub stub; /** Constructs an instance of LfpMerchantStateServiceClient with default settings. */ @@ -181,7 +182,7 @@ protected LfpMerchantStateServiceClient(LfpMerchantStateServiceStub stub) { this.stub = stub; } - public final LfpMerchantStateServiceSettings getSettings() { + public final @Nullable LfpMerchantStateServiceSettings getSettings() { return settings; } @@ -213,7 +214,7 @@ public LfpMerchantStateServiceStub getStub() { * `accounts/123456/lfpMerchantStates/567890`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpMerchantState getLfpMerchantState(LfpMerchantStateName name) { + public final LfpMerchantState getLfpMerchantState(@Nullable LfpMerchantStateName name) { GetLfpMerchantStateRequest request = GetLfpMerchantStateRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceSettings.java index 890f38adbe5e..0f8cd02ae44a 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpMerchantStateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceClient.java index 0880c1ff2806..e313289e822f 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceClient.java @@ -24,6 +24,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. /** @@ -132,7 +133,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LfpSaleServiceClient implements BackgroundResource { - private final LfpSaleServiceSettings settings; + private final @Nullable LfpSaleServiceSettings settings; private final LfpSaleServiceStub stub; /** Constructs an instance of LfpSaleServiceClient with default settings. */ @@ -172,7 +173,7 @@ protected LfpSaleServiceClient(LfpSaleServiceStub stub) { this.stub = stub; } - public final LfpSaleServiceSettings getSettings() { + public final @Nullable LfpSaleServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceSettings.java index 8921e6cf89d3..e29ce95cdf02 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpSaleServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpSaleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceClient.java index a73f89ed996d..dcf554776baa 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceClient.java @@ -33,6 +33,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. /** @@ -204,7 +205,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LfpStoreServiceClient implements BackgroundResource { - private final LfpStoreServiceSettings settings; + private final @Nullable LfpStoreServiceSettings settings; private final LfpStoreServiceStub stub; /** Constructs an instance of LfpStoreServiceClient with default settings. */ @@ -244,7 +245,7 @@ protected LfpStoreServiceClient(LfpStoreServiceStub stub) { this.stub = stub; } - public final LfpStoreServiceSettings getSettings() { + public final @Nullable LfpStoreServiceSettings getSettings() { return settings; } @@ -274,7 +275,7 @@ public LfpStoreServiceStub getStub() { * `accounts/{account}/lfpStores/{target_merchant}~{store_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpStore getLfpStore(LfpStoreName name) { + public final LfpStore getLfpStore(@Nullable LfpStoreName name) { GetLfpStoreRequest request = GetLfpStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLfpStore(request); @@ -386,7 +387,7 @@ public final UnaryCallable getLfpStoreCallable() { * @param lfpStore Required. The store to insert. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpStore insertLfpStore(AccountName parent, LfpStore lfpStore) { + public final LfpStore insertLfpStore(@Nullable AccountName parent, LfpStore lfpStore) { InsertLfpStoreRequest request = InsertLfpStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -507,7 +508,7 @@ public final UnaryCallable insertLfpStoreCallab * `accounts/{account}/lfpStores/{target_merchant}~{store_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLfpStore(LfpStoreName name) { + public final void deleteLfpStore(@Nullable LfpStoreName name) { DeleteLfpStoreRequest request = DeleteLfpStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteLfpStore(request); @@ -618,7 +619,7 @@ public final UnaryCallable deleteLfpStoreCallable( * @param parent Required. The LFP partner. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLfpStoresPagedResponse listLfpStores(AccountName parent) { + public final ListLfpStoresPagedResponse listLfpStores(@Nullable AccountName parent) { ListLfpStoresRequest request = ListLfpStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -820,8 +821,8 @@ public static class ListLfpStoresPage ListLfpStoresRequest, ListLfpStoresResponse, LfpStore, ListLfpStoresPage> { private ListLfpStoresPage( - PageContext context, - ListLfpStoresResponse response) { + @Nullable PageContext context, + @Nullable ListLfpStoresResponse response) { super(context, response); } @@ -831,14 +832,14 @@ private static ListLfpStoresPage createEmptyPage() { @Override protected ListLfpStoresPage createPage( - PageContext context, - ListLfpStoresResponse response) { + @Nullable PageContext context, + @Nullable ListLfpStoresResponse response) { return new ListLfpStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -852,7 +853,8 @@ public static class ListLfpStoresFixedSizeCollection ListLfpStoresPage, ListLfpStoresFixedSizeCollection> { - private ListLfpStoresFixedSizeCollection(List pages, int collectionSize) { + private ListLfpStoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -862,7 +864,7 @@ private static ListLfpStoresFixedSizeCollection createEmptyCollection() { @Override protected ListLfpStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLfpStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceSettings.java index 3fb7cc9b269e..d863269cf04f 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpInventoryServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpInventoryServiceStubSettings.java index ae19dad18fda..66d92f8347d0 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpInventoryServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpInventoryServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -214,7 +215,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); } @@ -279,7 +280,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertLfpInventorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpMerchantStateServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpMerchantStateServiceStubSettings.java index 8a6177caff70..d7b6447255e1 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpMerchantStateServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpMerchantStateServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -281,7 +282,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLfpMerchantStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpSaleServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpSaleServiceStubSettings.java index 9887dac78e53..d850b7c5e2a9 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpSaleServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpSaleServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertLfpSaleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpStoreServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpStoreServiceStubSettings.java index a398376c3faf..4759a926c6c2 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpStoreServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/LfpStoreServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,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); } @@ -369,7 +370,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLfpStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceClient.java index 082216502977..bc221c9a2969 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceClient.java @@ -25,6 +25,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. /** @@ -138,7 +139,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LfpInventoryServiceClient implements BackgroundResource { - private final LfpInventoryServiceSettings settings; + private final @Nullable LfpInventoryServiceSettings settings; private final LfpInventoryServiceStub stub; /** Constructs an instance of LfpInventoryServiceClient with default settings. */ @@ -178,7 +179,7 @@ protected LfpInventoryServiceClient(LfpInventoryServiceStub stub) { this.stub = stub; } - public final LfpInventoryServiceSettings getSettings() { + public final @Nullable LfpInventoryServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceSettings.java index d77575edd810..95196139b6dd 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpInventoryServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceClient.java index fef4ba853ac0..02c1a333945a 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceClient.java @@ -25,6 +25,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. /** @@ -139,7 +140,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LfpMerchantStateServiceClient implements BackgroundResource { - private final LfpMerchantStateServiceSettings settings; + private final @Nullable LfpMerchantStateServiceSettings settings; private final LfpMerchantStateServiceStub stub; /** Constructs an instance of LfpMerchantStateServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected LfpMerchantStateServiceClient(LfpMerchantStateServiceStub stub) { this.stub = stub; } - public final LfpMerchantStateServiceSettings getSettings() { + public final @Nullable LfpMerchantStateServiceSettings getSettings() { return settings; } @@ -211,7 +212,7 @@ public LfpMerchantStateServiceStub getStub() { * `accounts/{account}/lfpMerchantStates/{target_merchant}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpMerchantState getLfpMerchantState(LfpMerchantStateName name) { + public final LfpMerchantState getLfpMerchantState(@Nullable LfpMerchantStateName name) { GetLfpMerchantStateRequest request = GetLfpMerchantStateRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceSettings.java index eb8f7518bbf2..95273c84520f 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpMerchantStateServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceClient.java index 11b1fd49342e..5d2ba2fff310 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceClient.java @@ -25,6 +25,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. /** @@ -134,7 +135,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LfpSaleServiceClient implements BackgroundResource { - private final LfpSaleServiceSettings settings; + private final @Nullable LfpSaleServiceSettings settings; private final LfpSaleServiceStub stub; /** Constructs an instance of LfpSaleServiceClient with default settings. */ @@ -174,7 +175,7 @@ protected LfpSaleServiceClient(LfpSaleServiceStub stub) { this.stub = stub; } - public final LfpSaleServiceSettings getSettings() { + public final @Nullable LfpSaleServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceSettings.java index 811f3bcdc7b8..52555d782fbe 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpSaleServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,7 +150,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); } @@ -169,7 +170,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpSaleServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceClient.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceClient.java index 174fdf2e1e0e..d55dbde0de67 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceClient.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceClient.java @@ -34,6 +34,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. /** @@ -206,7 +207,7 @@ @BetaApi @Generated("by gapic-generator-java") public class LfpStoreServiceClient implements BackgroundResource { - private final LfpStoreServiceSettings settings; + private final @Nullable LfpStoreServiceSettings settings; private final LfpStoreServiceStub stub; /** Constructs an instance of LfpStoreServiceClient with default settings. */ @@ -246,7 +247,7 @@ protected LfpStoreServiceClient(LfpStoreServiceStub stub) { this.stub = stub; } - public final LfpStoreServiceSettings getSettings() { + public final @Nullable LfpStoreServiceSettings getSettings() { return settings; } @@ -276,7 +277,7 @@ public LfpStoreServiceStub getStub() { * `accounts/{account}/lfpStores/{target_merchant}~{store_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpStore getLfpStore(LfpStoreName name) { + public final LfpStore getLfpStore(@Nullable LfpStoreName name) { GetLfpStoreRequest request = GetLfpStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLfpStore(request); @@ -388,7 +389,7 @@ public final UnaryCallable getLfpStoreCallable() { * @param lfpStore Required. The store to insert. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LfpStore insertLfpStore(AccountName parent, LfpStore lfpStore) { + public final LfpStore insertLfpStore(@Nullable AccountName parent, LfpStore lfpStore) { InsertLfpStoreRequest request = InsertLfpStoreRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -509,7 +510,7 @@ public final UnaryCallable insertLfpStoreCallab * `accounts/{account}/lfpStores/{target_merchant}~{store_code}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLfpStore(LfpStoreName name) { + public final void deleteLfpStore(@Nullable LfpStoreName name) { DeleteLfpStoreRequest request = DeleteLfpStoreRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteLfpStore(request); @@ -620,7 +621,7 @@ public final UnaryCallable deleteLfpStoreCallable( * @param parent Required. The LFP partner. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLfpStoresPagedResponse listLfpStores(AccountName parent) { + public final ListLfpStoresPagedResponse listLfpStores(@Nullable AccountName parent) { ListLfpStoresRequest request = ListLfpStoresRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -822,8 +823,8 @@ public static class ListLfpStoresPage ListLfpStoresRequest, ListLfpStoresResponse, LfpStore, ListLfpStoresPage> { private ListLfpStoresPage( - PageContext context, - ListLfpStoresResponse response) { + @Nullable PageContext context, + @Nullable ListLfpStoresResponse response) { super(context, response); } @@ -833,14 +834,14 @@ private static ListLfpStoresPage createEmptyPage() { @Override protected ListLfpStoresPage createPage( - PageContext context, - ListLfpStoresResponse response) { + @Nullable PageContext context, + @Nullable ListLfpStoresResponse response) { return new ListLfpStoresPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -854,7 +855,8 @@ public static class ListLfpStoresFixedSizeCollection ListLfpStoresPage, ListLfpStoresFixedSizeCollection> { - private ListLfpStoresFixedSizeCollection(List pages, int collectionSize) { + private ListLfpStoresFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -864,7 +866,7 @@ private static ListLfpStoresFixedSizeCollection createEmptyCollection() { @Override protected ListLfpStoresFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLfpStoresFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceSettings.java index 7c3ee638f69c..ad546a2171e8 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,7 +170,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); } @@ -189,7 +190,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LfpStoreServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java index 583fe2e6bb56..3607c1170818 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpInventoryServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -280,7 +281,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertLfpInventorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpMerchantStateServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpMerchantStateServiceStubSettings.java index 70aba6e29695..2b2ecf68d4e3 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpMerchantStateServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpMerchantStateServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -217,7 +218,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLfpMerchantStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java index 9e4565b9bb8d..59f8326c89f6 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpSaleServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -213,7 +214,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); } @@ -276,7 +277,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertLfpSaleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java index 83e5ccca6718..fbaedcdebf7d 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/LfpStoreServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -299,7 +300,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); } @@ -370,7 +371,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getLfpStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/AccountName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/AccountName.java index 1ca78e91a831..5ac36e77673f 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/AccountName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryName.java index 4a008f584cd3..105a4771ba8b 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static LfpInventoryName parse(String formattedString) { + public static @Nullable LfpInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpInventoryName> values) { List list = new ArrayList<>(values.size()); for (LfpInventoryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateName.java index d3d713191c69..66d5fad5d39c 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpMerchantStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String lfpMerchantState) { .toString(); } - public static LfpMerchantStateName parse(String formattedString) { + public static @Nullable LfpMerchantStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpMerchantStateName> values) { List list = new ArrayList<>(values.size()); for (LfpMerchantStateName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreName.java index 6f48cab5641b..4f161c478a9d 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/src/main/java/com/google/shopping/merchant/lfp/v1/LfpStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String targetMerchant, String storeC .toString(); } - public static LfpStoreName parse(String formattedString) { + public static @Nullable LfpStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpStoreName> values) { List list = new ArrayList<>(values.size()); for (LfpStoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/AccountName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/AccountName.java index 81c83cae711d..25c869741c6a 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/AccountName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryName.java index fc051bffb21a..f449fce5ce1f 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static LfpInventoryName parse(String formattedString) { + public static @Nullable LfpInventoryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpInventoryName> values) { List list = new ArrayList<>(values.size()); for (LfpInventoryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateName.java index 64658bca8d33..f608c29630cf 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpMerchantStateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -77,7 +78,7 @@ public static String format(String account, String lfpMerchantState) { .toString(); } - public static LfpMerchantStateName parse(String formattedString) { + public static @Nullable LfpMerchantStateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -95,7 +96,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpMerchantStateName> values) { List list = new ArrayList<>(values.size()); for (LfpMerchantStateName value : values) { if (value == null) { @@ -141,7 +142,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreName.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreName.java index b530c30d9e74..cf35d59768f7 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreName.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String account, String targetMerchant, String storeC .toString(); } - public static LfpStoreName parse(String formattedString) { + public static @Nullable LfpStoreName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LfpStoreName> values) { List list = new ArrayList<>(values.size()); for (LfpStoreName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceClient.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceClient.java index 6b84f96c2444..58bc7d4fc7e6 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceClient.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceClient.java @@ -34,6 +34,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. /** @@ -251,7 +252,7 @@ @NullMarked @Generated("by gapic-generator-java") public class NotificationsApiServiceClient implements BackgroundResource { - private final NotificationsApiServiceSettings settings; + private final @Nullable NotificationsApiServiceSettings settings; private final NotificationsApiServiceStub stub; /** Constructs an instance of NotificationsApiServiceClient with default settings. */ @@ -292,7 +293,7 @@ protected NotificationsApiServiceClient(NotificationsApiServiceStub stub) { this.stub = stub; } - public final NotificationsApiServiceSettings getSettings() { + public final @Nullable NotificationsApiServiceSettings getSettings() { return settings; } @@ -325,7 +326,7 @@ public NotificationsApiServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationSubscription getNotificationSubscription( - NotificationSubscriptionName name) { + @Nullable NotificationSubscriptionName name) { GetNotificationSubscriptionRequest request = GetNotificationSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -476,7 +477,7 @@ public final NotificationSubscription getNotificationSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationSubscription createNotificationSubscription( - AccountName parent, NotificationSubscription notificationSubscription) { + @Nullable AccountName parent, NotificationSubscription notificationSubscription) { CreateNotificationSubscriptionRequest request = CreateNotificationSubscriptionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -771,7 +772,7 @@ public final NotificationSubscription updateNotificationSubscription( * @param name Required. The name of the notification subscription to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationSubscription(NotificationSubscriptionName name) { + public final void deleteNotificationSubscription(@Nullable NotificationSubscriptionName name) { DeleteNotificationSubscriptionRequest request = DeleteNotificationSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -900,7 +901,7 @@ public final void deleteNotificationSubscription(DeleteNotificationSubscriptionR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationSubscriptionsPagedResponse listNotificationSubscriptions( - AccountName parent) { + @Nullable AccountName parent) { ListNotificationSubscriptionsRequest request = ListNotificationSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1083,7 +1084,7 @@ public final ListNotificationSubscriptionsPagedResponse listNotificationSubscrip * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationSubscriptionHealthMetrics getNotificationSubscriptionHealthMetrics( - NotificationSubscriptionHealthMetricsName name) { + @Nullable NotificationSubscriptionHealthMetricsName name) { GetNotificationSubscriptionHealthMetricsRequest request = GetNotificationSubscriptionHealthMetricsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1265,12 +1266,13 @@ public static class ListNotificationSubscriptionsPage ListNotificationSubscriptionsPage> { private ListNotificationSubscriptionsPage( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> context, - ListNotificationSubscriptionsResponse response) { + @Nullable ListNotificationSubscriptionsResponse response) { super(context, response); } @@ -1280,18 +1282,20 @@ private static ListNotificationSubscriptionsPage createEmptyPage() { @Override protected ListNotificationSubscriptionsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> context, - ListNotificationSubscriptionsResponse response) { + @Nullable ListNotificationSubscriptionsResponse response) { return new ListNotificationSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> @@ -1310,7 +1314,7 @@ public static class ListNotificationSubscriptionsFixedSizeCollection ListNotificationSubscriptionsFixedSizeCollection> { private ListNotificationSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1320,7 +1324,7 @@ private static ListNotificationSubscriptionsFixedSizeCollection createEmptyColle @Override protected ListNotificationSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceSettings.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceSettings.java index 99217f4df907..226d5d113962 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceSettings.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationsApiServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,7 +199,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotificationsApiServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/NotificationsApiServiceStubSettings.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/NotificationsApiServiceStubSettings.java index bca9766b0d1a..1b017223d1ed 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/NotificationsApiServiceStubSettings.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/NotificationsApiServiceStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -363,7 +364,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getNotificationSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceClient.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceClient.java index eb3489ecbcbd..02e3f72f2035 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceClient.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceClient.java @@ -35,6 +35,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. /** @@ -227,7 +228,7 @@ @BetaApi @Generated("by gapic-generator-java") public class NotificationsApiServiceClient implements BackgroundResource { - private final NotificationsApiServiceSettings settings; + private final @Nullable NotificationsApiServiceSettings settings; private final NotificationsApiServiceStub stub; /** Constructs an instance of NotificationsApiServiceClient with default settings. */ @@ -268,7 +269,7 @@ protected NotificationsApiServiceClient(NotificationsApiServiceStub stub) { this.stub = stub; } - public final NotificationsApiServiceSettings getSettings() { + public final @Nullable NotificationsApiServiceSettings getSettings() { return settings; } @@ -301,7 +302,7 @@ public NotificationsApiServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationSubscription getNotificationSubscription( - NotificationSubscriptionName name) { + @Nullable NotificationSubscriptionName name) { GetNotificationSubscriptionRequest request = GetNotificationSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -440,7 +441,7 @@ public final NotificationSubscription getNotificationSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationSubscription createNotificationSubscription( - AccountName parent, NotificationSubscription notificationSubscription) { + @Nullable AccountName parent, NotificationSubscription notificationSubscription) { CreateNotificationSubscriptionRequest request = CreateNotificationSubscriptionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -699,7 +700,7 @@ public final NotificationSubscription updateNotificationSubscription( * @param name Required. The name of the notification subscription to be deleted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotificationSubscription(NotificationSubscriptionName name) { + public final void deleteNotificationSubscription(@Nullable NotificationSubscriptionName name) { DeleteNotificationSubscriptionRequest request = DeleteNotificationSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -828,7 +829,7 @@ public final void deleteNotificationSubscription(DeleteNotificationSubscriptionR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotificationSubscriptionsPagedResponse listNotificationSubscriptions( - AccountName parent) { + @Nullable AccountName parent) { ListNotificationSubscriptionsRequest request = ListNotificationSubscriptionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1050,12 +1051,13 @@ public static class ListNotificationSubscriptionsPage ListNotificationSubscriptionsPage> { private ListNotificationSubscriptionsPage( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> context, - ListNotificationSubscriptionsResponse response) { + @Nullable ListNotificationSubscriptionsResponse response) { super(context, response); } @@ -1065,18 +1067,20 @@ private static ListNotificationSubscriptionsPage createEmptyPage() { @Override protected ListNotificationSubscriptionsPage createPage( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> context, - ListNotificationSubscriptionsResponse response) { + @Nullable ListNotificationSubscriptionsResponse response) { return new ListNotificationSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListNotificationSubscriptionsRequest, ListNotificationSubscriptionsResponse, NotificationSubscription> @@ -1095,7 +1099,7 @@ public static class ListNotificationSubscriptionsFixedSizeCollection ListNotificationSubscriptionsFixedSizeCollection> { private ListNotificationSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1105,7 +1109,7 @@ private static ListNotificationSubscriptionsFixedSizeCollection createEmptyColle @Override protected ListNotificationSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceSettings.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceSettings.java index a877c4a28299..199e5eaff93c 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceSettings.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationsApiServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(NotificationsApiServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/NotificationsApiServiceStubSettings.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/NotificationsApiServiceStubSettings.java index 452d5fbbcd81..84d4297edbff 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/NotificationsApiServiceStubSettings.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/NotificationsApiServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -349,7 +350,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); } @@ -437,7 +438,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getNotificationSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/AccountName.java b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/AccountName.java index e68d60648630..1561a290455d 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/AccountName.java +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionHealthMetricsName.java b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionHealthMetricsName.java index 5f75f5772221..193c4294e18e 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionHealthMetricsName.java +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionHealthMetricsName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -81,7 +82,7 @@ public static String format(String account, String notificationSubscription) { .toString(); } - public static NotificationSubscriptionHealthMetricsName parse(String formattedString) { + public static @Nullable NotificationSubscriptionHealthMetricsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -101,7 +102,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable NotificationSubscriptionHealthMetricsName> values) { List list = new ArrayList<>(values.size()); for (NotificationSubscriptionHealthMetricsName value : values) { if (value == null) { @@ -147,7 +149,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionName.java b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionName.java index da38fec76cbe..6b40f8b588e0 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionName.java +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/src/main/java/com/google/shopping/merchant/notifications/v1/NotificationSubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String account, String notificationSubscription) { .toString(); } - public static NotificationSubscriptionName parse(String formattedString) { + public static @Nullable NotificationSubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationSubscriptionName> values) { List list = new ArrayList<>(values.size()); for (NotificationSubscriptionName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/AccountName.java b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/AccountName.java index 6870da4a5be9..bc152e6c391e 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/AccountName.java +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationSubscriptionName.java b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationSubscriptionName.java index e3c673d37c18..d588637945e0 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationSubscriptionName.java +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/src/main/java/com/google/shopping/merchant/notifications/v1beta/NotificationSubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String account, String notificationSubscription) { .toString(); } - public static NotificationSubscriptionName parse(String formattedString) { + public static @Nullable NotificationSubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -99,7 +100,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationSubscriptionName> values) { List list = new ArrayList<>(values.size()); for (NotificationSubscriptionName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java index 35752abf019d..e7eb35783102 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceClient.java @@ -25,6 +25,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. /** @@ -169,7 +170,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageServiceClient implements BackgroundResource { - private final ImageServiceSettings settings; + private final @Nullable ImageServiceSettings settings; private final ImageServiceStub stub; /** Constructs an instance of ImageServiceClient with default settings. */ @@ -208,7 +209,7 @@ protected ImageServiceClient(ImageServiceStub stub) { this.stub = stub; } - public final ImageServiceSettings getSettings() { + public final @Nullable ImageServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java index eec147411a7d..bd6208a0b9e5 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/ImageServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceClient.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceClient.java index 73ebe0494a26..2c1461b331d8 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceClient.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceClient.java @@ -25,6 +25,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. /** @@ -139,7 +140,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TextSuggestionsServiceClient implements BackgroundResource { - private final TextSuggestionsServiceSettings settings; + private final @Nullable TextSuggestionsServiceSettings settings; private final TextSuggestionsServiceStub stub; /** Constructs an instance of TextSuggestionsServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected TextSuggestionsServiceClient(TextSuggestionsServiceStub stub) { this.stub = stub; } - public final TextSuggestionsServiceSettings getSettings() { + public final @Nullable TextSuggestionsServiceSettings getSettings() { return settings; } diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceSettings.java index 073c52805c83..53842f269192 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceSettings.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/TextSuggestionsServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TextSuggestionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java index 427b1b853bf4..2f545bd03b69 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/ImageServiceStubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -313,7 +314,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateProductImageBackgroundSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/TextSuggestionsServiceStubSettings.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/TextSuggestionsServiceStubSettings.java index 1be880d64fe9..91dc2ee8a648 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/TextSuggestionsServiceStubSettings.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/TextSuggestionsServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -286,7 +287,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateProductTextSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java index 027cf953decb..a906643a203b 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceClient.java @@ -26,6 +26,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. /** @@ -179,7 +180,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProductInputsServiceClient implements BackgroundResource { - private final ProductInputsServiceSettings settings; + private final @Nullable ProductInputsServiceSettings settings; private final ProductInputsServiceStub stub; /** Constructs an instance of ProductInputsServiceClient with default settings. */ @@ -219,7 +220,7 @@ protected ProductInputsServiceClient(ProductInputsServiceStub stub) { this.stub = stub; } - public final ProductInputsServiceSettings getSettings() { + public final @Nullable ProductInputsServiceSettings getSettings() { return settings; } @@ -477,7 +478,7 @@ public final UnaryCallable updateProduc * formats. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductInput(ProductInputName name) { + public final void deleteProductInput(@Nullable ProductInputName name) { DeleteProductInputRequest request = DeleteProductInputRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceSettings.java index fee94ee1a8fc..23262053ad4e 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductInputsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductInputsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java index 96ec9ff5ce46..3a8f94d1094d 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceClient.java @@ -32,6 +32,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. /** @@ -165,7 +166,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProductsServiceClient implements BackgroundResource { - private final ProductsServiceSettings settings; + private final @Nullable ProductsServiceSettings settings; private final ProductsServiceStub stub; /** Constructs an instance of ProductsServiceClient with default settings. */ @@ -205,7 +206,7 @@ protected ProductsServiceClient(ProductsServiceStub stub) { this.stub = stub; } - public final ProductsServiceSettings getSettings() { + public final @Nullable ProductsServiceSettings getSettings() { return settings; } @@ -262,7 +263,7 @@ public ProductsServiceStub getStub() { * `accounts/123/products/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -412,7 +413,7 @@ public final UnaryCallable getProductCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(AccountName parent) { + public final ListProductsPagedResponse listProducts(@Nullable AccountName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -630,8 +631,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -641,14 +642,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -662,7 +663,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -672,7 +674,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceSettings.java index 417a21495753..dd12d9d5ae97 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/ProductsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -157,7 +158,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); } @@ -177,7 +178,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductInputsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductInputsServiceStubSettings.java index 8e76e7e43ed7..c773924dea25 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductInputsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductInputsServiceStubSettings.java @@ -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. /** @@ -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); } @@ -302,7 +303,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertProductInputSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductsServiceStubSettings.java index bbd390812a89..e471abe106e0 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/ProductsServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -283,7 +284,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); } @@ -350,7 +351,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java index 140c889f0d3d..342df806d8f8 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceClient.java @@ -27,6 +27,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. /** @@ -182,7 +183,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductInputsServiceClient implements BackgroundResource { - private final ProductInputsServiceSettings settings; + private final @Nullable ProductInputsServiceSettings settings; private final ProductInputsServiceStub stub; /** Constructs an instance of ProductInputsServiceClient with default settings. */ @@ -222,7 +223,7 @@ protected ProductInputsServiceClient(ProductInputsServiceStub stub) { this.stub = stub; } - public final ProductInputsServiceSettings getSettings() { + public final @Nullable ProductInputsServiceSettings getSettings() { return settings; } @@ -453,7 +454,7 @@ public final UnaryCallable updateProduc * `accounts/123/productInputs/online~en~US~sku123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductInput(ProductInputName name) { + public final void deleteProductInput(@Nullable ProductInputName name) { DeleteProductInputRequest request = DeleteProductInputRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceSettings.java index 26c426c3f238..897340ceb85e 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputsServiceSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -161,7 +162,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); } @@ -182,7 +183,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductInputsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java index 3025b4162361..090cb1392455 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceClient.java @@ -33,6 +33,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. /** @@ -167,7 +168,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductsServiceClient implements BackgroundResource { - private final ProductsServiceSettings settings; + private final @Nullable ProductsServiceSettings settings; private final ProductsServiceStub stub; /** Constructs an instance of ProductsServiceClient with default settings. */ @@ -207,7 +208,7 @@ protected ProductsServiceClient(ProductsServiceStub stub) { this.stub = stub; } - public final ProductsServiceSettings getSettings() { + public final @Nullable ProductsServiceSettings getSettings() { return settings; } @@ -242,7 +243,7 @@ public ProductsServiceStub getStub() { * `accounts/123/products/online~en~US~sku123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -370,7 +371,7 @@ public final UnaryCallable getProductCallable() { * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(AccountName parent) { + public final ListProductsPagedResponse listProducts(@Nullable AccountName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -588,8 +589,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -599,14 +600,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -620,7 +621,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -630,7 +632,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceSettings.java index b8de93b57586..b971c5603685 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/ProductsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -158,7 +159,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); } @@ -178,7 +179,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java index 71ae1097267b..55541093ccbd 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductInputsServiceStubSettings.java @@ -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. /** @@ -232,7 +233,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); } @@ -303,7 +304,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertProductInputSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java index 1a54b5bf1bbb..e034dd1d6294 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/ProductsServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -284,7 +285,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); } @@ -351,7 +352,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProductSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/AccountName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/AccountName.java index 28b579b69f19..e7acb931ea7a 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/AccountName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputName.java index 69e8f360b7ca..a66866a66848 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInputName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String productinput) { return newBuilder().setAccount(account).setProductinput(productinput).build().toString(); } - public static ProductInputName parse(String formattedString) { + public static @Nullable ProductInputName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductInputName> values) { List list = new ArrayList<>(values.size()); for (ProductInputName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductName.java index 1b6c361f7a41..99c693bdc29d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AccountName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AccountName.java index 6e12667b73fd..bd4282f71fd6 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AccountName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputName.java index 74437ca9f168..efb15c5b7492 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductInputName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String productinput) { return newBuilder().setAccount(account).setProductinput(productinput).build().toString(); } - public static ProductInputName parse(String formattedString) { + public static @Nullable ProductInputName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductInputName> values) { List list = new ArrayList<>(values.size()); for (ProductInputName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductName.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductName.java index 261abc255b95..9546282702f7 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductName.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/src/main/java/com/google/shopping/merchant/products/v1beta/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String product) { return newBuilder().setAccount(account).setProduct(product).build().toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceClient.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceClient.java index a13bc3d53f34..7c7e0de538c1 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceClient.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceClient.java @@ -32,6 +32,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. /** @@ -183,7 +184,7 @@ @NullMarked @Generated("by gapic-generator-java") public class PromotionsServiceClient implements BackgroundResource { - private final PromotionsServiceSettings settings; + private final @Nullable PromotionsServiceSettings settings; private final PromotionsServiceStub stub; /** Constructs an instance of PromotionsServiceClient with default settings. */ @@ -223,7 +224,7 @@ protected PromotionsServiceClient(PromotionsServiceStub stub) { this.stub = stub; } - public final PromotionsServiceSettings getSettings() { + public final @Nullable PromotionsServiceSettings getSettings() { return settings; } @@ -318,7 +319,7 @@ public final UnaryCallable insertPromotionCal * `accounts/{account}/promotions/{promotions}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Promotion getPromotion(PromotionName name) { + public final Promotion getPromotion(@Nullable PromotionName name) { GetPromotionRequest request = GetPromotionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPromotion(request); @@ -629,8 +630,8 @@ public static class ListPromotionsPage ListPromotionsRequest, ListPromotionsResponse, Promotion, ListPromotionsPage> { private ListPromotionsPage( - PageContext context, - ListPromotionsResponse response) { + @Nullable PageContext context, + @Nullable ListPromotionsResponse response) { super(context, response); } @@ -640,14 +641,14 @@ private static ListPromotionsPage createEmptyPage() { @Override protected ListPromotionsPage createPage( - PageContext context, - ListPromotionsResponse response) { + @Nullable PageContext context, + @Nullable ListPromotionsResponse response) { return new ListPromotionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -661,7 +662,8 @@ public static class ListPromotionsFixedSizeCollection ListPromotionsPage, ListPromotionsFixedSizeCollection> { - private ListPromotionsFixedSizeCollection(List pages, int collectionSize) { + private ListPromotionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -671,7 +673,7 @@ private static ListPromotionsFixedSizeCollection createEmptyCollection() { @Override protected ListPromotionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPromotionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceSettings.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceSettings.java index 2040be196e37..abb834ccccb1 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceSettings.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -163,7 +164,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); } @@ -183,7 +184,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PromotionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/PromotionsServiceStubSettings.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/PromotionsServiceStubSettings.java index a0effb005751..6bc2efbafec9 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/PromotionsServiceStubSettings.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/PromotionsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -293,7 +294,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); } @@ -363,7 +364,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertPromotionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceClient.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceClient.java index a42e82078fe4..af7475f6228c 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceClient.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceClient.java @@ -33,6 +33,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. /** @@ -185,7 +186,7 @@ @BetaApi @Generated("by gapic-generator-java") public class PromotionsServiceClient implements BackgroundResource { - private final PromotionsServiceSettings settings; + private final @Nullable PromotionsServiceSettings settings; private final PromotionsServiceStub stub; /** Constructs an instance of PromotionsServiceClient with default settings. */ @@ -225,7 +226,7 @@ protected PromotionsServiceClient(PromotionsServiceStub stub) { this.stub = stub; } - public final PromotionsServiceSettings getSettings() { + public final @Nullable PromotionsServiceSettings getSettings() { return settings; } @@ -320,7 +321,7 @@ public final UnaryCallable insertPromotionCal * `accounts/{account}/promotions/{promotions}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Promotion getPromotion(PromotionName name) { + public final Promotion getPromotion(@Nullable PromotionName name) { GetPromotionRequest request = GetPromotionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPromotion(request); @@ -631,8 +632,8 @@ public static class ListPromotionsPage ListPromotionsRequest, ListPromotionsResponse, Promotion, ListPromotionsPage> { private ListPromotionsPage( - PageContext context, - ListPromotionsResponse response) { + @Nullable PageContext context, + @Nullable ListPromotionsResponse response) { super(context, response); } @@ -642,14 +643,14 @@ private static ListPromotionsPage createEmptyPage() { @Override protected ListPromotionsPage createPage( - PageContext context, - ListPromotionsResponse response) { + @Nullable PageContext context, + @Nullable ListPromotionsResponse response) { return new ListPromotionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -663,7 +664,8 @@ public static class ListPromotionsFixedSizeCollection ListPromotionsPage, ListPromotionsFixedSizeCollection> { - private ListPromotionsFixedSizeCollection(List pages, int collectionSize) { + private ListPromotionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -673,7 +675,7 @@ private static ListPromotionsFixedSizeCollection createEmptyCollection() { @Override protected ListPromotionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPromotionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceSettings.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceSettings.java index fc4bcbf5b0a5..9b125a70645a 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceSettings.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -164,7 +165,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); } @@ -184,7 +185,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PromotionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java index 549a853bc956..fabd8053cd0e 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/PromotionsServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -364,7 +365,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); insertPromotionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionName.java b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionName.java index 8e2f53f1d2c7..c43bbd7084b8 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionName.java +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/src/main/java/com/google/shopping/merchant/promotions/v1/PromotionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String promotion) { return newBuilder().setAccount(account).setPromotion(promotion).build().toString(); } - public static PromotionName parse(String formattedString) { + public static @Nullable PromotionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PromotionName> values) { List list = new ArrayList<>(values.size()); for (PromotionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionName.java b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionName.java index fcd1a6158181..4c8eb3494ce2 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionName.java +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/src/main/java/com/google/shopping/merchant/promotions/v1beta/PromotionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String promotion) { return newBuilder().setAccount(account).setPromotion(promotion).build().toString(); } - public static PromotionName parse(String formattedString) { + public static @Nullable PromotionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PromotionName> values) { List list = new ArrayList<>(values.size()); for (PromotionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceClient.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceClient.java index 1f21ea29f270..ccca6f67c3d7 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceClient.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceClient.java @@ -32,6 +32,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. /** @@ -164,7 +165,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AccountLimitsServiceClient implements BackgroundResource { - private final AccountLimitsServiceSettings settings; + private final @Nullable AccountLimitsServiceSettings settings; private final AccountLimitsServiceStub stub; /** Constructs an instance of AccountLimitsServiceClient with default settings. */ @@ -204,7 +205,7 @@ protected AccountLimitsServiceClient(AccountLimitsServiceStub stub) { this.stub = stub; } - public final AccountLimitsServiceSettings getSettings() { + public final @Nullable AccountLimitsServiceSettings getSettings() { return settings; } @@ -235,7 +236,7 @@ public AccountLimitsServiceStub getStub() { * `accounts/{account}/limits/{limit}` For example: `accounts/123/limits/products~ADS_NON_EEA` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccountLimit getAccountLimit(AccountLimitName name) { + public final AccountLimit getAccountLimit(@Nullable AccountLimitName name) { GetAccountLimitRequest request = GetAccountLimitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAccountLimit(request); @@ -352,7 +353,7 @@ public final UnaryCallable getAccountLimit * @param parent Required. The parent account. Format: `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccountLimitsPagedResponse listAccountLimits(AccountName parent) { + public final ListAccountLimitsPagedResponse listAccountLimits(@Nullable AccountName parent) { ListAccountLimitsRequest request = ListAccountLimitsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -565,8 +566,9 @@ public static class ListAccountLimitsPage ListAccountLimitsPage> { private ListAccountLimitsPage( - PageContext context, - ListAccountLimitsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountLimitsResponse response) { super(context, response); } @@ -576,14 +578,16 @@ private static ListAccountLimitsPage createEmptyPage() { @Override protected ListAccountLimitsPage createPage( - PageContext context, - ListAccountLimitsResponse response) { + @Nullable PageContext + context, + @Nullable ListAccountLimitsResponse response) { return new ListAccountLimitsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -598,7 +602,7 @@ public static class ListAccountLimitsFixedSizeCollection ListAccountLimitsFixedSizeCollection> { private ListAccountLimitsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -608,7 +612,7 @@ private static ListAccountLimitsFixedSizeCollection createEmptyCollection() { @Override protected ListAccountLimitsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAccountLimitsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceSettings.java index 14ccad3bde95..5906de27a35a 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -159,7 +160,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AccountLimitsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceClient.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceClient.java index f49a6c759fbb..2a50175f174c 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceClient.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceClient.java @@ -32,6 +32,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. /** @@ -141,7 +142,7 @@ @NullMarked @Generated("by gapic-generator-java") public class QuotaServiceClient implements BackgroundResource { - private final QuotaServiceSettings settings; + private final @Nullable QuotaServiceSettings settings; private final QuotaServiceStub stub; /** Constructs an instance of QuotaServiceClient with default settings. */ @@ -180,7 +181,7 @@ protected QuotaServiceClient(QuotaServiceStub stub) { this.stub = stub; } - public final QuotaServiceSettings getSettings() { + public final @Nullable QuotaServiceSettings getSettings() { return settings; } @@ -212,7 +213,7 @@ public QuotaServiceStub getStub() { * accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaGroupsPagedResponse listQuotaGroups(AccountName parent) { + public final ListQuotaGroupsPagedResponse listQuotaGroups(@Nullable AccountName parent) { ListQuotaGroupsRequest request = ListQuotaGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -413,8 +414,8 @@ public static class ListQuotaGroupsPage ListQuotaGroupsRequest, ListQuotaGroupsResponse, QuotaGroup, ListQuotaGroupsPage> { private ListQuotaGroupsPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { super(context, response); } @@ -424,14 +425,14 @@ private static ListQuotaGroupsPage createEmptyPage() { @Override protected ListQuotaGroupsPage createPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { return new ListQuotaGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -446,7 +447,7 @@ public static class ListQuotaGroupsFixedSizeCollection ListQuotaGroupsFixedSizeCollection> { private ListQuotaGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -456,7 +457,7 @@ private static ListQuotaGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceSettings.java index ff08414ca462..00a27fbd2174 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/QuotaServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,7 +153,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); } @@ -172,7 +173,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QuotaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/AccountLimitsServiceStubSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/AccountLimitsServiceStubSettings.java index 6085bb96be5e..bb8a2337eee3 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/AccountLimitsServiceStubSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/AccountLimitsServiceStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -363,7 +364,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getAccountLimitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/QuotaServiceStubSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/QuotaServiceStubSettings.java index e3bcd2b957e6..66310de32df6 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/QuotaServiceStubSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/QuotaServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -280,7 +281,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); } @@ -345,7 +346,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQuotaGroupsSettings = PagedCallSettings.newBuilder(LIST_QUOTA_GROUPS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceClient.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceClient.java index eb46202e9b02..283d3ecf0d7e 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceClient.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceClient.java @@ -33,6 +33,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. /** @@ -143,7 +144,7 @@ @BetaApi @Generated("by gapic-generator-java") public class QuotaServiceClient implements BackgroundResource { - private final QuotaServiceSettings settings; + private final @Nullable QuotaServiceSettings settings; private final QuotaServiceStub stub; /** Constructs an instance of QuotaServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected QuotaServiceClient(QuotaServiceStub stub) { this.stub = stub; } - public final QuotaServiceSettings getSettings() { + public final @Nullable QuotaServiceSettings getSettings() { return settings; } @@ -214,7 +215,7 @@ public QuotaServiceStub getStub() { * accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQuotaGroupsPagedResponse listQuotaGroups(AccountName parent) { + public final ListQuotaGroupsPagedResponse listQuotaGroups(@Nullable AccountName parent) { ListQuotaGroupsRequest request = ListQuotaGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -415,8 +416,8 @@ public static class ListQuotaGroupsPage ListQuotaGroupsRequest, ListQuotaGroupsResponse, QuotaGroup, ListQuotaGroupsPage> { private ListQuotaGroupsPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { super(context, response); } @@ -426,14 +427,14 @@ private static ListQuotaGroupsPage createEmptyPage() { @Override protected ListQuotaGroupsPage createPage( - PageContext context, - ListQuotaGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListQuotaGroupsResponse response) { return new ListQuotaGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -448,7 +449,7 @@ public static class ListQuotaGroupsFixedSizeCollection ListQuotaGroupsFixedSizeCollection> { private ListQuotaGroupsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -458,7 +459,7 @@ private static ListQuotaGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListQuotaGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQuotaGroupsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceSettings.java index 27a1d2a4a372..3c3fb83dcfca 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(QuotaServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java index 1861fe55bac2..7b1b10880a19 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/QuotaServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,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); } @@ -346,7 +347,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQuotaGroupsSettings = PagedCallSettings.newBuilder(LIST_QUOTA_GROUPS_PAGE_STR_FACT); diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitName.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitName.java index 2647f1830f64..04215cc92b6e 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitName.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String limit) { return newBuilder().setAccount(account).setLimit(limit).build().toString(); } - public static AccountLimitName parse(String formattedString) { + public static @Nullable AccountLimitName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountLimitName> values) { List list = new ArrayList<>(values.size()); for (AccountLimitName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountName.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountName.java index 6774412e4651..f7242891abe7 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountName.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupName.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupName.java index 1314166bd95f..fdaec007e381 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupName.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String group) { return newBuilder().setAccount(account).setGroup(group).build().toString(); } - public static QuotaGroupName parse(String formattedString) { + public static @Nullable QuotaGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaGroupName> values) { List list = new ArrayList<>(values.size()); for (QuotaGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/AccountName.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/AccountName.java index ac9fef63ff32..06f3a6c812ed 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/AccountName.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaGroupName.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaGroupName.java index 21dbc52ec60d..74e62139bfc9 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaGroupName.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/src/main/java/com/google/shopping/merchant/quota/v1beta/QuotaGroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String group) { return newBuilder().setAccount(account).setGroup(group).build().toString(); } - public static QuotaGroupName parse(String formattedString) { + public static @Nullable QuotaGroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QuotaGroupName> values) { List list = new ArrayList<>(values.size()); for (QuotaGroupName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceClient.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceClient.java index d2d8029e1a24..4cd348475ed9 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceClient.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceClient.java @@ -32,6 +32,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. /** @@ -142,7 +143,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ReportServiceClient implements BackgroundResource { - private final ReportServiceSettings settings; + private final @Nullable ReportServiceSettings settings; private final ReportServiceStub stub; /** Constructs an instance of ReportServiceClient with default settings. */ @@ -182,7 +183,7 @@ protected ReportServiceClient(ReportServiceStub stub) { this.stub = stub; } - public final ReportServiceSettings getSettings() { + public final @Nullable ReportServiceSettings getSettings() { return settings; } @@ -383,7 +384,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -393,13 +395,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -409,7 +412,7 @@ public static class SearchFixedSizeCollection extends AbstractFixedSizeCollection< SearchRequest, SearchResponse, ReportRow, SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -419,7 +422,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceSettings.java index 0b2071d227fe..248c6c95fdf5 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/ReportServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/ReportServiceStubSettings.java index aee4a47adbc3..c604a36caaea 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/ReportServiceStubSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/ReportServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -272,7 +273,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); } @@ -336,7 +337,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java index 7746cb4bfb8b..67ce2af70e6d 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceClient.java @@ -33,6 +33,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. /** @@ -144,7 +145,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReportServiceClient implements BackgroundResource { - private final ReportServiceSettings settings; + private final @Nullable ReportServiceSettings settings; private final ReportServiceStub stub; /** Constructs an instance of ReportServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected ReportServiceClient(ReportServiceStub stub) { this.stub = stub; } - public final ReportServiceSettings getSettings() { + public final @Nullable ReportServiceSettings getSettings() { return settings; } @@ -385,7 +386,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -395,13 +397,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -411,7 +414,7 @@ public static class SearchFixedSizeCollection extends AbstractFixedSizeCollection< SearchRequest, SearchResponse, ReportRow, SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -421,7 +424,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java index bc6063b7878d..a979f55a05f6 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/ReportServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java index 27313ac7e1e0..2721a039b558 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/ReportServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -337,7 +338,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java index 8c27298cb72f..4b8ece77f010 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java @@ -33,6 +33,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. /** @@ -144,7 +145,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ReportServiceClient implements BackgroundResource { - private final ReportServiceSettings settings; + private final @Nullable ReportServiceSettings settings; private final ReportServiceStub stub; /** Constructs an instance of ReportServiceClient with default settings. */ @@ -184,7 +185,7 @@ protected ReportServiceClient(ReportServiceStub stub) { this.stub = stub; } - public final ReportServiceSettings getSettings() { + public final @Nullable ReportServiceSettings getSettings() { return settings; } @@ -385,7 +386,8 @@ public static class SearchPage extends AbstractPage { private SearchPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { super(context, response); } @@ -395,13 +397,14 @@ private static SearchPage createEmptyPage() { @Override protected SearchPage createPage( - PageContext context, SearchResponse response) { + @Nullable PageContext context, + @Nullable SearchResponse response) { return new SearchPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -411,7 +414,7 @@ public static class SearchFixedSizeCollection extends AbstractFixedSizeCollection< SearchRequest, SearchResponse, ReportRow, SearchPage, SearchFixedSizeCollection> { - private SearchFixedSizeCollection(List pages, int collectionSize) { + private SearchFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -421,7 +424,7 @@ private static SearchFixedSizeCollection createEmptyCollection() { @Override protected SearchFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceSettings.java index 56090cc263af..288a15711b07 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -151,7 +152,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); } @@ -171,7 +172,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ReportServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java index 5561798345e2..9e5a6ab60d76 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -273,7 +274,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); } @@ -337,7 +338,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchSettings = PagedCallSettings.newBuilder(SEARCH_PAGE_STR_FACT); diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceClient.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceClient.java index 09a1b274c0a2..ad0cb3dcbff5 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceClient.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceClient.java @@ -34,6 +34,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. /** @@ -200,7 +201,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MerchantReviewsServiceClient implements BackgroundResource { - private final MerchantReviewsServiceSettings settings; + private final @Nullable MerchantReviewsServiceSettings settings; private final MerchantReviewsServiceStub stub; /** Constructs an instance of MerchantReviewsServiceClient with default settings. */ @@ -241,7 +242,7 @@ protected MerchantReviewsServiceClient(MerchantReviewsServiceStub stub) { this.stub = stub; } - public final MerchantReviewsServiceSettings getSettings() { + public final @Nullable MerchantReviewsServiceSettings getSettings() { return settings; } @@ -272,7 +273,7 @@ public MerchantReviewsServiceStub getStub() { * accounts/{account}/merchantReviews/{merchantReview} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MerchantReview getMerchantReview(MerchantReviewName name) { + public final MerchantReview getMerchantReview(@Nullable MerchantReviewName name) { GetMerchantReviewRequest request = GetMerchantReviewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -391,7 +392,7 @@ public final UnaryCallable getMerchant * @param parent Required. The account to list merchant reviews for. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMerchantReviewsPagedResponse listMerchantReviews(AccountName parent) { + public final ListMerchantReviewsPagedResponse listMerchantReviews(@Nullable AccountName parent) { ListMerchantReviewsRequest request = ListMerchantReviewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -628,7 +629,7 @@ public final MerchantReview insertMerchantReview(InsertMerchantReviewRequest req * accounts/{account}/merchantReviews/{merchantReview} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMerchantReview(MerchantReviewName name) { + public final void deleteMerchantReview(@Nullable MerchantReviewName name) { DeleteMerchantReviewRequest request = DeleteMerchantReviewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -786,9 +787,10 @@ public static class ListMerchantReviewsPage ListMerchantReviewsPage> { private ListMerchantReviewsPage( - PageContext + @Nullable + PageContext context, - ListMerchantReviewsResponse response) { + @Nullable ListMerchantReviewsResponse response) { super(context, response); } @@ -798,15 +800,17 @@ private static ListMerchantReviewsPage createEmptyPage() { @Override protected ListMerchantReviewsPage createPage( - PageContext + @Nullable + PageContext context, - ListMerchantReviewsResponse response) { + @Nullable ListMerchantReviewsResponse response) { return new ListMerchantReviewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -822,7 +826,7 @@ public static class ListMerchantReviewsFixedSizeCollection ListMerchantReviewsFixedSizeCollection> { private ListMerchantReviewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -832,7 +836,7 @@ private static ListMerchantReviewsFixedSizeCollection createEmptyCollection() { @Override protected ListMerchantReviewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMerchantReviewsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceSettings.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceSettings.java index 456a545179db..23d55b1e0772 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceSettings.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MerchantReviewsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceClient.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceClient.java index b735ed729e77..3e1fc190d31c 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceClient.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceClient.java @@ -34,6 +34,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. /** @@ -200,7 +201,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductReviewsServiceClient implements BackgroundResource { - private final ProductReviewsServiceSettings settings; + private final @Nullable ProductReviewsServiceSettings settings; private final ProductReviewsServiceStub stub; /** Constructs an instance of ProductReviewsServiceClient with default settings. */ @@ -240,7 +241,7 @@ protected ProductReviewsServiceClient(ProductReviewsServiceStub stub) { this.stub = stub; } - public final ProductReviewsServiceSettings getSettings() { + public final @Nullable ProductReviewsServiceSettings getSettings() { return settings; } @@ -271,7 +272,7 @@ public ProductReviewsServiceStub getStub() { * accounts/{account}/productReviews/{productReview} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProductReview getProductReview(ProductReviewName name) { + public final ProductReview getProductReview(@Nullable ProductReviewName name) { GetProductReviewRequest request = GetProductReviewRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProductReview(request); @@ -388,7 +389,7 @@ public final UnaryCallable getProductRev * @param parent Required. The account to list product reviews for. Format: accounts/{account} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductReviewsPagedResponse listProductReviews(AccountName parent) { + public final ListProductReviewsPagedResponse listProductReviews(@Nullable AccountName parent) { ListProductReviewsRequest request = ListProductReviewsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -623,7 +624,7 @@ public final ProductReview insertProductReview(InsertProductReviewRequest reques * accounts/{account}/productReviews/{productReview} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductReview(ProductReviewName name) { + public final void deleteProductReview(@Nullable ProductReviewName name) { DeleteProductReviewRequest request = DeleteProductReviewRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -780,8 +781,9 @@ public static class ListProductReviewsPage ListProductReviewsPage> { private ListProductReviewsPage( - PageContext context, - ListProductReviewsResponse response) { + @Nullable PageContext + context, + @Nullable ListProductReviewsResponse response) { super(context, response); } @@ -791,14 +793,16 @@ private static ListProductReviewsPage createEmptyPage() { @Override protected ListProductReviewsPage createPage( - PageContext context, - ListProductReviewsResponse response) { + @Nullable PageContext + context, + @Nullable ListProductReviewsResponse response) { return new ListProductReviewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -813,7 +817,7 @@ public static class ListProductReviewsFixedSizeCollection ListProductReviewsFixedSizeCollection> { private ListProductReviewsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -823,7 +827,7 @@ private static ListProductReviewsFixedSizeCollection createEmptyCollection() { @Override protected ListProductReviewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductReviewsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceSettings.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceSettings.java index 347bbc69216b..f9ae6f2e69c2 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceSettings.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewsServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductReviewsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/MerchantReviewsServiceStubSettings.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/MerchantReviewsServiceStubSettings.java index 46caeeaeecb4..c31d323a87e5 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/MerchantReviewsServiceStubSettings.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/MerchantReviewsServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -313,7 +314,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); } @@ -390,7 +391,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getMerchantReviewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/ProductReviewsServiceStubSettings.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/ProductReviewsServiceStubSettings.java index 8bd162090274..1a18b62864f2 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/ProductReviewsServiceStubSettings.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/ProductReviewsServiceStubSettings.java @@ -61,6 +61,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -312,7 +313,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); } @@ -387,7 +388,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getProductReviewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/AccountName.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/AccountName.java index 4ecbb5bbe487..31c5e72702c7 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/AccountName.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/AccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String account) { return newBuilder().setAccount(account).build().toString(); } - public static AccountName parse(String formattedString) { + public static @Nullable AccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AccountName> values) { List list = new ArrayList<>(values.size()); for (AccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewName.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewName.java index 4b050f82cd40..b6d3aa7dba3e 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewName.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/MerchantReviewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String name) { return newBuilder().setAccount(account).setName(name).build().toString(); } - public static MerchantReviewName parse(String formattedString) { + public static @Nullable MerchantReviewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MerchantReviewName> values) { List list = new ArrayList<>(values.size()); for (MerchantReviewName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewName.java b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewName.java index 830bc1448ed6..314125905cfe 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewName.java +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/src/main/java/com/google/shopping/merchant/reviews/v1beta/ProductReviewName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String account, String productreview) { return newBuilder().setAccount(account).setProductreview(productreview).build().toString(); } - public static ProductReviewName parse(String formattedString) { + public static @Nullable ProductReviewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductReviewName> values) { List list = new ArrayList<>(values.size()); for (ProductReviewName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java index 7dfdbc833e6f..912e731ae79c 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java @@ -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. /** @@ -360,7 +361,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ComplianceClient implements BackgroundResource { - private final ComplianceSettings settings; + private final @Nullable ComplianceSettings settings; private final ComplianceStub stub; /** Constructs an instance of ComplianceClient with default settings. */ @@ -398,7 +399,7 @@ protected ComplianceClient(ComplianceStub stub) { this.stub = stub; } - public final ComplianceSettings getSettings() { + public final @Nullable ComplianceSettings getSettings() { return settings; } @@ -1548,8 +1549,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1559,14 +1560,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1580,7 +1581,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1590,7 +1592,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 67b1e8395ec5..f91931465a87 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -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. /** @@ -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); } @@ -251,7 +252,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ComplianceStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java index 951b15c1a69c..3d09e7953cba 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java @@ -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. /** @@ -369,7 +370,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EchoClient implements BackgroundResource { - private final EchoSettings settings; + private final @Nullable EchoSettings settings; private final EchoStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -415,7 +416,7 @@ protected EchoClient(EchoStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EchoSettings getSettings() { + public final @Nullable EchoSettings getSettings() { return settings; } @@ -1564,8 +1565,8 @@ public static class PagedExpandPage extends AbstractPage { private PagedExpandPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { super(context, response); } @@ -1575,14 +1576,14 @@ private static PagedExpandPage createEmptyPage() { @Override protected PagedExpandPage createPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { return new PagedExpandPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1596,7 +1597,8 @@ public static class PagedExpandFixedSizeCollection PagedExpandPage, PagedExpandFixedSizeCollection> { - private PagedExpandFixedSizeCollection(List pages, int collectionSize) { + private PagedExpandFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1606,7 +1608,7 @@ private static PagedExpandFixedSizeCollection createEmptyCollection() { @Override protected PagedExpandFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PagedExpandFixedSizeCollection(pages, collectionSize); } } @@ -1647,12 +1649,13 @@ public static class PagedExpandLegacyMappedPage PagedExpandLegacyMappedPage> { private PagedExpandLegacyMappedPage( - PageContext< + @Nullable + PageContext< PagedExpandRequest, PagedExpandLegacyMappedResponse, Map.Entry> context, - PagedExpandLegacyMappedResponse response) { + @Nullable PagedExpandLegacyMappedResponse response) { super(context, response); } @@ -1662,18 +1665,20 @@ private static PagedExpandLegacyMappedPage createEmptyPage() { @Override protected PagedExpandLegacyMappedPage createPage( - PageContext< + @Nullable + PageContext< PagedExpandRequest, PagedExpandLegacyMappedResponse, Map.Entry> context, - PagedExpandLegacyMappedResponse response) { + @Nullable PagedExpandLegacyMappedResponse response) { return new PagedExpandLegacyMappedPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< PagedExpandRequest, PagedExpandLegacyMappedResponse, Map.Entry> @@ -1692,7 +1697,7 @@ public static class PagedExpandLegacyMappedFixedSizeCollection PagedExpandLegacyMappedFixedSizeCollection> { private PagedExpandLegacyMappedFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1702,7 +1707,7 @@ private static PagedExpandLegacyMappedFixedSizeCollection createEmptyCollection( @Override protected PagedExpandLegacyMappedFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PagedExpandLegacyMappedFixedSizeCollection(pages, collectionSize); } } @@ -1736,8 +1741,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1747,14 +1752,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1768,7 +1773,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1778,7 +1784,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 55ce20f85076..4211f5fb1196 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -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. /** @@ -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); } @@ -298,7 +299,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EchoStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java index 2a08bf0f7598..69284c4e1869 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java @@ -43,6 +43,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. /** @@ -291,7 +292,7 @@ @BetaApi @Generated("by gapic-generator-java") public class IdentityClient implements BackgroundResource { - private final IdentitySettings settings; + private final @Nullable IdentitySettings settings; private final IdentityStub stub; /** Constructs an instance of IdentityClient with default settings. */ @@ -329,7 +330,7 @@ protected IdentityClient(IdentityStub stub) { this.stub = stub; } - public final IdentitySettings getSettings() { + public final @Nullable IdentitySettings getSettings() { return settings; } @@ -500,7 +501,7 @@ public final UnaryCallable createUserCallable() { * @param name The resource name of the requested user. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -661,7 +662,7 @@ public final UnaryCallable updateUserCallable() { * @param name The resource name of the user to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -1239,8 +1240,8 @@ public static class ListUsersPage extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -1250,14 +1251,14 @@ private static ListUsersPage createEmptyPage() { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1267,7 +1268,7 @@ public static class ListUsersFixedSizeCollection extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1277,7 +1278,7 @@ private static ListUsersFixedSizeCollection createEmptyCollection() { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } @@ -1311,8 +1312,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1322,14 +1323,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1343,7 +1344,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1353,7 +1355,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index 2e530db81883..2084d327c648 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -209,7 +210,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); } @@ -229,7 +230,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IdentityStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java index 4f2f1f868ca1..c1fcf02f9ed2 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java @@ -51,6 +51,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. /** @@ -454,7 +455,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MessagingClient implements BackgroundResource { - private final MessagingSettings settings; + private final @Nullable MessagingSettings settings; private final MessagingStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -500,7 +501,7 @@ protected MessagingClient(MessagingStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final MessagingSettings getSettings() { + public final @Nullable MessagingSettings getSettings() { return settings; } @@ -629,7 +630,7 @@ public final UnaryCallable createRoomCallable() { * @param name The resource name of the requested room. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Room getRoom(RoomName name) { + public final Room getRoom(@Nullable RoomName name) { GetRoomRequest request = GetRoomRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRoom(request); @@ -790,7 +791,7 @@ public final UnaryCallable updateRoomCallable() { * @param name The resource name of the requested room. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteRoom(RoomName name) { + public final void deleteRoom(@Nullable RoomName name) { DeleteRoomRequest request = DeleteRoomRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteRoom(request); @@ -998,7 +999,8 @@ public final UnaryCallable listRoomsCallabl * @param image The image content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(ProfileName parent, UserName user, ByteString image) { + public final Blurb createBlurb( + @Nullable ProfileName parent, @Nullable UserName user, ByteString image) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1038,7 +1040,8 @@ public final Blurb createBlurb(ProfileName parent, UserName user, ByteString ima * @param text The textual content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(ProfileName parent, UserName user, String text) { + public final Blurb createBlurb( + @Nullable ProfileName parent, @Nullable UserName user, String text) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1078,7 +1081,7 @@ public final Blurb createBlurb(ProfileName parent, UserName user, String text) { * @param image The image content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(ProfileName parent, String user, ByteString image) { + public final Blurb createBlurb(@Nullable ProfileName parent, String user, ByteString image) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1114,7 +1117,7 @@ public final Blurb createBlurb(ProfileName parent, String user, ByteString image * @param text The textual content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(ProfileName parent, String user, String text) { + public final Blurb createBlurb(@Nullable ProfileName parent, String user, String text) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1150,7 +1153,8 @@ public final Blurb createBlurb(ProfileName parent, String user, String text) { * @param image The image content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(RoomName parent, UserName user, ByteString image) { + public final Blurb createBlurb( + @Nullable RoomName parent, @Nullable UserName user, ByteString image) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1190,7 +1194,7 @@ public final Blurb createBlurb(RoomName parent, UserName user, ByteString image) * @param text The textual content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(RoomName parent, UserName user, String text) { + public final Blurb createBlurb(@Nullable RoomName parent, @Nullable UserName user, String text) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1230,7 +1234,7 @@ public final Blurb createBlurb(RoomName parent, UserName user, String text) { * @param image The image content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(RoomName parent, String user, ByteString image) { + public final Blurb createBlurb(@Nullable RoomName parent, String user, ByteString image) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1266,7 +1270,7 @@ public final Blurb createBlurb(RoomName parent, String user, ByteString image) { * @param text The textual content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(RoomName parent, String user, String text) { + public final Blurb createBlurb(@Nullable RoomName parent, String user, String text) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1302,7 +1306,7 @@ public final Blurb createBlurb(RoomName parent, String user, String text) { * @param image The image content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(String parent, UserName user, ByteString image) { + public final Blurb createBlurb(String parent, @Nullable UserName user, ByteString image) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent) @@ -1342,7 +1346,7 @@ public final Blurb createBlurb(String parent, UserName user, ByteString image) { * @param text The textual content of this blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb createBlurb(String parent, UserName user, String text) { + public final Blurb createBlurb(String parent, @Nullable UserName user, String text) { CreateBlurbRequest request = CreateBlurbRequest.newBuilder() .setParent(parent) @@ -1507,7 +1511,7 @@ public final UnaryCallable createBlurbCallable() { * @param name The resource name of the requested blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blurb getBlurb(BlurbName name) { + public final Blurb getBlurb(@Nullable BlurbName name) { GetBlurbRequest request = GetBlurbRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBlurb(request); @@ -1673,7 +1677,7 @@ public final UnaryCallable updateBlurbCallable() { * @param name The resource name of the requested blurb. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBlurb(BlurbName name) { + public final void deleteBlurb(@Nullable BlurbName name) { DeleteBlurbRequest request = DeleteBlurbRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBlurb(request); @@ -1784,7 +1788,7 @@ public final UnaryCallable deleteBlurbCallable() { * @param parent The resource name of the requested room or profile who blurbs to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlurbsPagedResponse listBlurbs(ProfileName parent) { + public final ListBlurbsPagedResponse listBlurbs(@Nullable ProfileName parent) { ListBlurbsRequest request = ListBlurbsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listBlurbs(request); @@ -1813,7 +1817,7 @@ public final ListBlurbsPagedResponse listBlurbs(ProfileName parent) { * @param parent The resource name of the requested room or profile who blurbs to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlurbsPagedResponse listBlurbs(RoomName parent) { + public final ListBlurbsPagedResponse listBlurbs(@Nullable RoomName parent) { ListBlurbsRequest request = ListBlurbsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listBlurbs(request); @@ -1976,7 +1980,7 @@ public final UnaryCallable listBlurbsCall * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture searchBlurbsAsync( - ProfileName parent, String query) { + @Nullable ProfileName parent, String query) { SearchBlurbsRequest request = SearchBlurbsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2013,7 +2017,7 @@ public final OperationFuture searchB * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture searchBlurbsAsync( - RoomName parent, String query) { + @Nullable RoomName parent, String query) { SearchBlurbsRequest request = SearchBlurbsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2661,8 +2665,8 @@ public static class ListRoomsPage extends AbstractPage { private ListRoomsPage( - PageContext context, - ListRoomsResponse response) { + @Nullable PageContext context, + @Nullable ListRoomsResponse response) { super(context, response); } @@ -2672,14 +2676,14 @@ private static ListRoomsPage createEmptyPage() { @Override protected ListRoomsPage createPage( - PageContext context, - ListRoomsResponse response) { + @Nullable PageContext context, + @Nullable ListRoomsResponse response) { return new ListRoomsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2689,7 +2693,7 @@ public static class ListRoomsFixedSizeCollection extends AbstractFixedSizeCollection< ListRoomsRequest, ListRoomsResponse, Room, ListRoomsPage, ListRoomsFixedSizeCollection> { - private ListRoomsFixedSizeCollection(List pages, int collectionSize) { + private ListRoomsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2699,7 +2703,7 @@ private static ListRoomsFixedSizeCollection createEmptyCollection() { @Override protected ListRoomsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoomsFixedSizeCollection(pages, collectionSize); } } @@ -2730,8 +2734,8 @@ public static class ListBlurbsPage extends AbstractPage { private ListBlurbsPage( - PageContext context, - ListBlurbsResponse response) { + @Nullable PageContext context, + @Nullable ListBlurbsResponse response) { super(context, response); } @@ -2741,14 +2745,14 @@ private static ListBlurbsPage createEmptyPage() { @Override protected ListBlurbsPage createPage( - PageContext context, - ListBlurbsResponse response) { + @Nullable PageContext context, + @Nullable ListBlurbsResponse response) { return new ListBlurbsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2762,7 +2766,8 @@ public static class ListBlurbsFixedSizeCollection ListBlurbsPage, ListBlurbsFixedSizeCollection> { - private ListBlurbsFixedSizeCollection(List pages, int collectionSize) { + private ListBlurbsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2772,7 +2777,7 @@ private static ListBlurbsFixedSizeCollection createEmptyCollection() { @Override protected ListBlurbsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlurbsFixedSizeCollection(pages, collectionSize); } } @@ -2806,8 +2811,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2817,14 +2822,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2838,7 +2843,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2848,7 +2854,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index 302303c985ea..13e742a51b78 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -292,7 +293,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); } @@ -312,7 +313,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MessagingStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java index f3e48827b712..096af00b4c21 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java @@ -44,6 +44,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. /** @@ -314,7 +315,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SequenceServiceClient implements BackgroundResource { - private final SequenceServiceSettings settings; + private final @Nullable SequenceServiceSettings settings; private final SequenceServiceStub stub; /** Constructs an instance of SequenceServiceClient with default settings. */ @@ -354,7 +355,7 @@ protected SequenceServiceClient(SequenceServiceStub stub) { this.stub = stub; } - public final SequenceServiceSettings getSettings() { + public final @Nullable SequenceServiceSettings getSettings() { return settings; } @@ -547,7 +548,7 @@ public final StreamingSequence createStreamingSequence(CreateStreamingSequenceRe * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SequenceReport getSequenceReport(SequenceReportName name) { + public final SequenceReport getSequenceReport(@Nullable SequenceReportName name) { GetSequenceReportRequest request = GetSequenceReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -663,7 +664,7 @@ public final UnaryCallable getSequence * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final StreamingSequenceReport getStreamingSequenceReport( - StreamingSequenceReportName name) { + @Nullable StreamingSequenceReportName name) { GetStreamingSequenceReportRequest request = GetStreamingSequenceReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -780,7 +781,7 @@ public final StreamingSequenceReport getStreamingSequenceReport( * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void attemptSequence(SequenceName name) { + public final void attemptSequence(@Nullable SequenceName name) { AttemptSequenceRequest request = AttemptSequenceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); attemptSequence(request); @@ -1307,8 +1308,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1318,14 +1319,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1339,7 +1340,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1349,7 +1351,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 37903aadff11..ea99cb916b90 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -219,7 +220,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); } @@ -239,7 +240,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SequenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java index aea75b7a86e3..f68d021fae0f 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java @@ -43,6 +43,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. /** @@ -323,7 +324,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TestingClient implements BackgroundResource { - private final TestingSettings settings; + private final @Nullable TestingSettings settings; private final TestingStub stub; /** Constructs an instance of TestingClient with default settings. */ @@ -361,7 +362,7 @@ protected TestingClient(TestingStub stub) { this.stub = stub; } - public final TestingSettings getSettings() { + public final @Nullable TestingSettings getSettings() { return settings; } @@ -1313,8 +1314,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -1324,14 +1325,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1345,7 +1346,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1355,7 +1357,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } @@ -1382,8 +1384,8 @@ public static class ListTestsPage extends AbstractPage { private ListTestsPage( - PageContext context, - ListTestsResponse response) { + @Nullable PageContext context, + @Nullable ListTestsResponse response) { super(context, response); } @@ -1393,14 +1395,14 @@ private static ListTestsPage createEmptyPage() { @Override protected ListTestsPage createPage( - PageContext context, - ListTestsResponse response) { + @Nullable PageContext context, + @Nullable ListTestsResponse response) { return new ListTestsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1410,7 +1412,7 @@ public static class ListTestsFixedSizeCollection extends AbstractFixedSizeCollection< ListTestsRequest, ListTestsResponse, Test, ListTestsPage, ListTestsFixedSizeCollection> { - private ListTestsFixedSizeCollection(List pages, int collectionSize) { + private ListTestsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1420,7 +1422,7 @@ private static ListTestsFixedSizeCollection createEmptyCollection() { @Override protected ListTestsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTestsFixedSizeCollection(pages, collectionSize); } } @@ -1454,8 +1456,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1465,14 +1467,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1486,7 +1488,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1496,7 +1499,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index 016da734f965..4bd2aa6ae4a6 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -226,7 +227,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); } @@ -246,7 +247,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TestingStubSettings.newBuilder(clientContext)); } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java index a82d26feb9b8..18aea276aace 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java @@ -66,6 +66,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -366,7 +367,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); } @@ -456,7 +457,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); repeatDataBodySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java index cd41c825e38a..12194648a474 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java @@ -56,6 +56,7 @@ import com.google.showcase.v1beta1.WaitResponse; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,11 +69,12 @@ @Generated("by gapic-generator-java") public abstract class EchoStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index c62be894bd9b..95d9974675d5 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -90,6 +90,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -554,7 +555,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); } @@ -674,7 +675,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); echoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java index bd1b8ac22d6a..5d61cafc6ff5 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -392,7 +393,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); } @@ -483,7 +484,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createUserSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java index 370965e9c472..213800424b60 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java @@ -62,6 +62,7 @@ import com.google.showcase.v1beta1.UpdateRoomRequest; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class MessagingStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java index 63524a233b17..961c64ce4a10 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java @@ -94,6 +94,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -557,7 +558,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); } @@ -682,7 +683,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRoomSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java index 8e63e65c67b8..f019a95abc35 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -361,7 +362,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); } @@ -466,7 +467,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSequenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java index da278f791454..bc09a193d97d 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -472,7 +473,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); } @@ -557,7 +558,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java index 2e44117605ba..96e6fa143305 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -188,7 +189,7 @@ public static String formatRoomLegacyRoomBlurbName(String room, String legacyRoo .toString(); } - public static BlurbName parse(String formattedString) { + public static @Nullable BlurbName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -218,7 +219,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BlurbName> values) { List list = new ArrayList<>(values.size()); for (BlurbName value : values) { if (value == null) { @@ -275,7 +276,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java index ee06ebfc70ff..10be74da0429 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static ProfileName parse(String formattedString) { + public static @Nullable ProfileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProfileName> values) { List list = new ArrayList<>(values.size()); for (ProfileName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java index 1370b309df9a..28ac92e726a8 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String room) { return newBuilder().setRoom(room).build().toString(); } - public static RoomName parse(String formattedString) { + public static @Nullable RoomName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RoomName> values) { List list = new ArrayList<>(values.size()); for (RoomName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java index 81b4e7bd25d4..1606afb80ffa 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String sequence) { return newBuilder().setSequence(sequence).build().toString(); } - public static SequenceName parse(String formattedString) { + public static @Nullable SequenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SequenceName> values) { List list = new ArrayList<>(values.size()); for (SequenceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java index 16898ca82d83..c074f8045cdc 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String sequence) { return newBuilder().setSequence(sequence).build().toString(); } - public static SequenceReportName parse(String formattedString) { + public static @Nullable SequenceReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SequenceReportName> values) { List list = new ArrayList<>(values.size()); for (SequenceReportName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java index 883685a36c55..726e7a7b26a9 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String session) { return newBuilder().setSession(session).build().toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java index e87564212f17..b430789af841 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String streamingSequence) { return newBuilder().setStreamingSequence(streamingSequence).build().toString(); } - public static StreamingSequenceName parse(String formattedString) { + public static @Nullable StreamingSequenceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamingSequenceName> values) { List list = new ArrayList<>(values.size()); for (StreamingSequenceName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java index ea6ae25d25b0..b88d29f0f0ac 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -66,7 +67,7 @@ public static String format(String streamingSequence) { return newBuilder().setStreamingSequence(streamingSequence).build().toString(); } - public static StreamingSequenceReportName parse(String formattedString) { + public static @Nullable StreamingSequenceReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -85,7 +86,7 @@ public static List parseList(List formatted return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamingSequenceReportName> values) { List list = new ArrayList<>(values.size()); for (StreamingSequenceReportName value : values) { if (value == null) { @@ -127,7 +128,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java index c8b6ed227aff..a693282eb74f 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String session, String test) { return newBuilder().setSession(session).setTest(test).build().toString(); } - public static TestName parse(String formattedString) { + public static @Nullable TestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestName> values) { List list = new ArrayList<>(values.size()); for (TestName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java index 7a9020f92bd9..14c99141a2d8 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -64,7 +65,7 @@ public static String format(String user) { return newBuilder().setUser(user).build().toString(); } - public static UserName parse(String formattedString) { + public static @Nullable UserName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -81,7 +82,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UserName> values) { List list = new ArrayList<>(values.size()); for (UserName value : values) { if (value == null) { @@ -123,7 +124,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java index 4b9eb9f2f15b..b5568e347ee1 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java +++ b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxyClient.java @@ -26,6 +26,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. /** @@ -125,7 +126,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpannerExecutorProxyClient implements BackgroundResource { - private final SpannerExecutorProxySettings settings; + private final @Nullable SpannerExecutorProxySettings settings; private final SpannerExecutorProxyStub stub; /** Constructs an instance of SpannerExecutorProxyClient with default settings. */ @@ -165,7 +166,7 @@ protected SpannerExecutorProxyClient(SpannerExecutorProxyStub stub) { this.stub = stub; } - public final SpannerExecutorProxySettings getSettings() { + public final @Nullable SpannerExecutorProxySettings getSettings() { return settings; } diff --git a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java index 4b598edeabca..d9fa8221b69a 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java +++ b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/SpannerExecutorProxySettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -140,7 +141,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -161,7 +162,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpannerExecutorProxyStubSettings.newBuilder(clientContext)); } diff --git a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java index abcec88312eb..2ee440557834 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java +++ b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/SpannerExecutorProxyStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -238,7 +239,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); executeActionAsyncSettings = StreamingCallSettings.newBuilder(); diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index 2b01b1458db8..4f40d80ec9bb 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -94,6 +94,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. /** @@ -720,7 +721,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DatabaseAdminClient implements BackgroundResource { - private final DatabaseAdminSettings settings; + private final @Nullable DatabaseAdminSettings settings; private final DatabaseAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -768,7 +769,7 @@ protected DatabaseAdminClient(DatabaseAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final DatabaseAdminSettings getSettings() { + public final @Nullable DatabaseAdminSettings getSettings() { return settings; } @@ -817,7 +818,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabasesPagedResponse listDatabases(InstanceName parent) { + public final ListDatabasesPagedResponse listDatabases(@Nullable InstanceName parent) { ListDatabasesRequest request = ListDatabasesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -992,7 +993,7 @@ public final UnaryCallable listData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatabaseAsync( - InstanceName parent, String createStatement) { + @Nullable InstanceName parent, String createStatement) { CreateDatabaseRequest request = CreateDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1186,7 +1187,7 @@ public final UnaryCallable createDatabaseCalla * `projects/<project>/instances/<instance>/databases/<database>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Database getDatabase(DatabaseName name) { + public final Database getDatabase(@Nullable DatabaseName name) { GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatabase(request); @@ -1533,7 +1534,7 @@ public final UnaryCallable updateDatabaseCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateDatabaseDdlAsync( - DatabaseName database, List statements) { + @Nullable DatabaseName database, List statements) { UpdateDatabaseDdlRequest request = UpdateDatabaseDdlRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -1720,7 +1721,7 @@ public final UnaryCallable updateDatabaseDd * @param database Required. The database to be dropped. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void dropDatabase(DatabaseName database) { + public final void dropDatabase(@Nullable DatabaseName database) { DropDatabaseRequest request = DropDatabaseRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -1839,7 +1840,7 @@ public final UnaryCallable dropDatabaseCallable() { * `projects/<project>/instances/<instance>/databases/<database>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GetDatabaseDdlResponse getDatabaseDdl(DatabaseName database) { + public final GetDatabaseDdlResponse getDatabaseDdl(@Nullable DatabaseName database) { GetDatabaseDdlRequest request = GetDatabaseDdlRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -1969,7 +1970,7 @@ public final GetDatabaseDdlResponse getDatabaseDdl(GetDatabaseDdlRequest request * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2112,7 +2113,7 @@ public final UnaryCallable setIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2256,7 +2257,7 @@ public final UnaryCallable getIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2419,7 +2420,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createBackupAsync( - InstanceName parent, Backup backup, String backupId) { + @Nullable InstanceName parent, Backup backup, String backupId) { CreateBackupRequest request = CreateBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2647,7 +2648,10 @@ public final UnaryCallable createBackupCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - InstanceName parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + @Nullable InstanceName parent, + String backupId, + @Nullable BackupName sourceBackup, + Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2705,7 +2709,7 @@ public final OperationFuture copyBackupAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - InstanceName parent, String backupId, String sourceBackup, Timestamp expireTime) { + @Nullable InstanceName parent, String backupId, String sourceBackup, Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2763,7 +2767,7 @@ public final OperationFuture copyBackupAsync( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture copyBackupAsync( - String parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + String parent, String backupId, @Nullable BackupName sourceBackup, Timestamp expireTime) { CopyBackupRequest request = CopyBackupRequest.newBuilder() .setParent(parent) @@ -2978,7 +2982,7 @@ public final UnaryCallable copyBackupCallable() { * `projects/<project>/instances/<instance>/backups/<backup>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -3179,7 +3183,7 @@ public final UnaryCallable updateBackupCallable() { * `projects/<project>/instances/<instance>/backups/<backup>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBackup(BackupName name) { + public final void deleteBackup(@Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBackup(request); @@ -3292,7 +3296,7 @@ public final UnaryCallable deleteBackupCallable() { * `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(InstanceName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable InstanceName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3485,7 +3489,7 @@ public final UnaryCallable listBackupsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreDatabaseAsync( - InstanceName parent, String databaseId, BackupName backup) { + @Nullable InstanceName parent, String databaseId, @Nullable BackupName backup) { RestoreDatabaseRequest request = RestoreDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3542,7 +3546,7 @@ public final OperationFuture restoreDatabaseA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreDatabaseAsync( - InstanceName parent, String databaseId, String backup) { + @Nullable InstanceName parent, String databaseId, String backup) { RestoreDatabaseRequest request = RestoreDatabaseRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3599,7 +3603,7 @@ public final OperationFuture restoreDatabaseA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture restoreDatabaseAsync( - String parent, String databaseId, BackupName backup) { + String parent, String databaseId, @Nullable BackupName backup) { RestoreDatabaseRequest request = RestoreDatabaseRequest.newBuilder() .setParent(parent) @@ -3826,7 +3830,8 @@ public final UnaryCallable restoreDatabaseCal * `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabaseOperationsPagedResponse listDatabaseOperations(InstanceName parent) { + public final ListDatabaseOperationsPagedResponse listDatabaseOperations( + @Nullable InstanceName parent) { ListDatabaseOperationsRequest request = ListDatabaseOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4024,7 +4029,8 @@ public final ListDatabaseOperationsPagedResponse listDatabaseOperations( * `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupOperationsPagedResponse listBackupOperations(InstanceName parent) { + public final ListBackupOperationsPagedResponse listBackupOperations( + @Nullable InstanceName parent) { ListBackupOperationsRequest request = ListBackupOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4223,7 +4229,7 @@ public final ListBackupOperationsPagedResponse listBackupOperations( * `projects/<project>/instances/<instance>/databases/<database>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatabaseRolesPagedResponse listDatabaseRoles(DatabaseName parent) { + public final ListDatabaseRolesPagedResponse listDatabaseRoles(@Nullable DatabaseName parent) { ListDatabaseRolesRequest request = ListDatabaseRolesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4392,7 +4398,7 @@ public final ListDatabaseRolesPagedResponse listDatabaseRoles(ListDatabaseRolesR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AddSplitPointsResponse addSplitPoints( - DatabaseName database, List splitPoints) { + @Nullable DatabaseName database, List splitPoints) { AddSplitPointsRequest request = AddSplitPointsRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -4526,7 +4532,7 @@ public final AddSplitPointsResponse addSplitPoints(AddSplitPointsRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BackupSchedule createBackupSchedule( - DatabaseName parent, BackupSchedule backupSchedule, String backupScheduleId) { + @Nullable DatabaseName parent, BackupSchedule backupSchedule, String backupScheduleId) { CreateBackupScheduleRequest request = CreateBackupScheduleRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4659,7 +4665,7 @@ public final BackupSchedule createBackupSchedule(CreateBackupScheduleRequest req * `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupSchedule getBackupSchedule(BackupScheduleName name) { + public final BackupSchedule getBackupSchedule(@Nullable BackupScheduleName name) { GetBackupScheduleRequest request = GetBackupScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4875,7 +4881,7 @@ public final BackupSchedule updateBackupSchedule(UpdateBackupScheduleRequest req * `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBackupSchedule(BackupScheduleName name) { + public final void deleteBackupSchedule(@Nullable BackupScheduleName name) { DeleteBackupScheduleRequest request = DeleteBackupScheduleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4997,7 +5003,7 @@ public final UnaryCallable deleteBackupSched * projects/<project>/instances/<instance>/databases/<database> * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupSchedulesPagedResponse listBackupSchedules(DatabaseName parent) { + public final ListBackupSchedulesPagedResponse listBackupSchedules(@Nullable DatabaseName parent) { ListBackupSchedulesRequest request = ListBackupSchedulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5168,7 +5174,7 @@ public final ListBackupSchedulesPagedResponse listBackupSchedules( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final InternalUpdateGraphOperationResponse internalUpdateGraphOperation( - DatabaseName database, String operationId) { + @Nullable DatabaseName database, String operationId) { InternalUpdateGraphOperationRequest request = InternalUpdateGraphOperationRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -5341,8 +5347,8 @@ public static class ListDatabasesPage ListDatabasesRequest, ListDatabasesResponse, Database, ListDatabasesPage> { private ListDatabasesPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { super(context, response); } @@ -5352,14 +5358,14 @@ private static ListDatabasesPage createEmptyPage() { @Override protected ListDatabasesPage createPage( - PageContext context, - ListDatabasesResponse response) { + @Nullable PageContext context, + @Nullable ListDatabasesResponse response) { return new ListDatabasesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5373,7 +5379,8 @@ public static class ListDatabasesFixedSizeCollection ListDatabasesPage, ListDatabasesFixedSizeCollection> { - private ListDatabasesFixedSizeCollection(List pages, int collectionSize) { + private ListDatabasesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5383,7 +5390,7 @@ private static ListDatabasesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabasesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabasesFixedSizeCollection(pages, collectionSize); } } @@ -5414,8 +5421,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -5425,14 +5432,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5446,7 +5453,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5456,7 +5464,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -5494,9 +5502,10 @@ public static class ListDatabaseOperationsPage ListDatabaseOperationsPage> { private ListDatabaseOperationsPage( - PageContext + @Nullable + PageContext context, - ListDatabaseOperationsResponse response) { + @Nullable ListDatabaseOperationsResponse response) { super(context, response); } @@ -5506,15 +5515,17 @@ private static ListDatabaseOperationsPage createEmptyPage() { @Override protected ListDatabaseOperationsPage createPage( - PageContext + @Nullable + PageContext context, - ListDatabaseOperationsResponse response) { + @Nullable ListDatabaseOperationsResponse response) { return new ListDatabaseOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5530,7 +5541,7 @@ public static class ListDatabaseOperationsFixedSizeCollection ListDatabaseOperationsFixedSizeCollection> { private ListDatabaseOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5540,7 +5551,7 @@ private static ListDatabaseOperationsFixedSizeCollection createEmptyCollection() @Override protected ListDatabaseOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabaseOperationsFixedSizeCollection(pages, collectionSize); } } @@ -5577,8 +5588,9 @@ public static class ListBackupOperationsPage ListBackupOperationsPage> { private ListBackupOperationsPage( - PageContext context, - ListBackupOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupOperationsResponse response) { super(context, response); } @@ -5588,14 +5600,16 @@ private static ListBackupOperationsPage createEmptyPage() { @Override protected ListBackupOperationsPage createPage( - PageContext context, - ListBackupOperationsResponse response) { + @Nullable PageContext + context, + @Nullable ListBackupOperationsResponse response) { return new ListBackupOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5610,7 +5624,7 @@ public static class ListBackupOperationsFixedSizeCollection ListBackupOperationsFixedSizeCollection> { private ListBackupOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5620,7 +5634,7 @@ private static ListBackupOperationsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupOperationsFixedSizeCollection(pages, collectionSize); } } @@ -5657,8 +5671,9 @@ public static class ListDatabaseRolesPage ListDatabaseRolesPage> { private ListDatabaseRolesPage( - PageContext context, - ListDatabaseRolesResponse response) { + @Nullable PageContext + context, + @Nullable ListDatabaseRolesResponse response) { super(context, response); } @@ -5668,14 +5683,16 @@ private static ListDatabaseRolesPage createEmptyPage() { @Override protected ListDatabaseRolesPage createPage( - PageContext context, - ListDatabaseRolesResponse response) { + @Nullable PageContext + context, + @Nullable ListDatabaseRolesResponse response) { return new ListDatabaseRolesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5690,7 +5707,7 @@ public static class ListDatabaseRolesFixedSizeCollection ListDatabaseRolesFixedSizeCollection> { private ListDatabaseRolesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5700,7 +5717,7 @@ private static ListDatabaseRolesFixedSizeCollection createEmptyCollection() { @Override protected ListDatabaseRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatabaseRolesFixedSizeCollection(pages, collectionSize); } } @@ -5738,9 +5755,10 @@ public static class ListBackupSchedulesPage ListBackupSchedulesPage> { private ListBackupSchedulesPage( - PageContext + @Nullable + PageContext context, - ListBackupSchedulesResponse response) { + @Nullable ListBackupSchedulesResponse response) { super(context, response); } @@ -5750,15 +5768,17 @@ private static ListBackupSchedulesPage createEmptyPage() { @Override protected ListBackupSchedulesPage createPage( - PageContext + @Nullable + PageContext context, - ListBackupSchedulesResponse response) { + @Nullable ListBackupSchedulesResponse response) { return new ListBackupSchedulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5774,7 +5794,7 @@ public static class ListBackupSchedulesFixedSizeCollection ListBackupSchedulesFixedSizeCollection> { private ListBackupSchedulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5784,7 +5804,7 @@ private static ListBackupSchedulesFixedSizeCollection createEmptyCollection() { @Override protected ListBackupSchedulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupSchedulesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java index 0360f9b80093..b91490508e53 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -415,7 +416,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); } @@ -435,7 +436,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DatabaseAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java index 656e079e83bd..18cd5f378b61 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStub.java @@ -78,6 +78,7 @@ import com.google.spanner.admin.database.v1.UpdateDatabaseRequest; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -89,11 +90,12 @@ @Generated("by gapic-generator-java") public abstract class DatabaseAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java index 3ca89e1bad20..9a5f10113a23 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java @@ -113,6 +113,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -898,7 +899,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); } @@ -1109,7 +1110,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listDatabasesSettings = PagedCallSettings.newBuilder(LIST_DATABASES_PAGE_STR_FACT); diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java index 99ed4e232d5b..828bd3675c92 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java @@ -83,6 +83,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. /** @@ -660,7 +661,7 @@ @NullMarked @Generated("by gapic-generator-java") public class InstanceAdminClient implements BackgroundResource { - private final InstanceAdminSettings settings; + private final @Nullable InstanceAdminSettings settings; private final InstanceAdminStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -708,7 +709,7 @@ protected InstanceAdminClient(InstanceAdminStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final InstanceAdminSettings getSettings() { + public final @Nullable InstanceAdminSettings getSettings() { return settings; } @@ -759,7 +760,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * configurations is requested. Values are of the form `projects/<project>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstanceConfigsPagedResponse listInstanceConfigs(ProjectName parent) { + public final ListInstanceConfigsPagedResponse listInstanceConfigs(@Nullable ProjectName parent) { ListInstanceConfigsRequest request = ListInstanceConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -933,7 +934,7 @@ public final ListInstanceConfigsPagedResponse listInstanceConfigs( * `projects/<project>/instanceConfigs/<config>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstanceConfig getInstanceConfig(InstanceConfigName name) { + public final InstanceConfig getInstanceConfig(@Nullable InstanceConfigName name) { GetInstanceConfigRequest request = GetInstanceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1093,7 +1094,7 @@ public final UnaryCallable getInstance */ public final OperationFuture createInstanceConfigAsync( - ProjectName parent, InstanceConfig instanceConfig, String instanceConfigId) { + @Nullable ProjectName parent, InstanceConfig instanceConfig, String instanceConfigId) { CreateInstanceConfigRequest request = CreateInstanceConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1684,7 +1685,7 @@ public final UnaryCallable getInstance * form `projects/<project>/instanceConfigs/<instance_config>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInstanceConfig(InstanceConfigName name) { + public final void deleteInstanceConfig(@Nullable InstanceConfigName name) { DeleteInstanceConfigRequest request = DeleteInstanceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1831,7 +1832,7 @@ public final UnaryCallable deleteInstanceCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperations( - ProjectName parent) { + @Nullable ProjectName parent) { ListInstanceConfigOperationsRequest request = ListInstanceConfigOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2035,7 +2036,7 @@ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperati * Values are of the form `projects/<project>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(ProjectName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable ProjectName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2208,7 +2209,8 @@ public final UnaryCallable listInst * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancePartitionsPagedResponse listInstancePartitions(InstanceName parent) { + public final ListInstancePartitionsPagedResponse listInstancePartitions( + @Nullable InstanceName parent) { ListInstancePartitionsRequest request = ListInstancePartitionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2381,7 +2383,7 @@ public final ListInstancePartitionsPagedResponse listInstancePartitions( * `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -2528,7 +2530,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - ProjectName parent, String instanceId, Instance instance) { + @Nullable ProjectName parent, String instanceId, Instance instance) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3059,7 +3061,7 @@ public final UnaryCallable updateInstanceCalla * `projects/<project>/instances/<instance>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInstance(InstanceName name) { + public final void deleteInstance(@Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteInstance(request); @@ -3203,7 +3205,7 @@ public final UnaryCallable deleteInstanceCallable( * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3338,7 +3340,7 @@ public final UnaryCallable setIamPolicyCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3474,7 +3476,7 @@ public final UnaryCallable getIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -3614,7 +3616,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstancePartition getInstancePartition(InstancePartitionName name) { + public final InstancePartition getInstancePartition(@Nullable InstancePartitionName name) { GetInstancePartitionRequest request = GetInstancePartitionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3775,7 +3777,9 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest */ public final OperationFuture createInstancePartitionAsync( - InstanceName parent, InstancePartition instancePartition, String instancePartitionId) { + @Nullable InstanceName parent, + InstancePartition instancePartition, + String instancePartitionId) { CreateInstancePartitionRequest request = CreateInstancePartitionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4063,7 +4067,7 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInstancePartition(InstancePartitionName name) { + public final void deleteInstancePartition(@Nullable InstancePartitionName name) { DeleteInstancePartitionRequest request = DeleteInstancePartitionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4475,7 +4479,7 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionOperations( - InstanceName parent) { + @Nullable InstanceName parent) { ListInstancePartitionOperationsRequest request = ListInstancePartitionOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4950,9 +4954,10 @@ public static class ListInstanceConfigsPage ListInstanceConfigsPage> { private ListInstanceConfigsPage( - PageContext + @Nullable + PageContext context, - ListInstanceConfigsResponse response) { + @Nullable ListInstanceConfigsResponse response) { super(context, response); } @@ -4962,15 +4967,17 @@ private static ListInstanceConfigsPage createEmptyPage() { @Override protected ListInstanceConfigsPage createPage( - PageContext + @Nullable + PageContext context, - ListInstanceConfigsResponse response) { + @Nullable ListInstanceConfigsResponse response) { return new ListInstanceConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4986,7 +4993,7 @@ public static class ListInstanceConfigsFixedSizeCollection ListInstanceConfigsFixedSizeCollection> { private ListInstanceConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4996,7 +5003,7 @@ private static ListInstanceConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListInstanceConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstanceConfigsFixedSizeCollection(pages, collectionSize); } } @@ -5038,12 +5045,13 @@ public static class ListInstanceConfigOperationsPage ListInstanceConfigOperationsPage> { private ListInstanceConfigOperationsPage( - PageContext< + @Nullable + PageContext< ListInstanceConfigOperationsRequest, ListInstanceConfigOperationsResponse, Operation> context, - ListInstanceConfigOperationsResponse response) { + @Nullable ListInstanceConfigOperationsResponse response) { super(context, response); } @@ -5053,18 +5061,20 @@ private static ListInstanceConfigOperationsPage createEmptyPage() { @Override protected ListInstanceConfigOperationsPage createPage( - PageContext< + @Nullable + PageContext< ListInstanceConfigOperationsRequest, ListInstanceConfigOperationsResponse, Operation> context, - ListInstanceConfigOperationsResponse response) { + @Nullable ListInstanceConfigOperationsResponse response) { return new ListInstanceConfigOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstanceConfigOperationsRequest, ListInstanceConfigOperationsResponse, Operation> @@ -5083,7 +5093,7 @@ public static class ListInstanceConfigOperationsFixedSizeCollection ListInstanceConfigOperationsFixedSizeCollection> { private ListInstanceConfigOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5093,7 +5103,7 @@ private static ListInstanceConfigOperationsFixedSizeCollection createEmptyCollec @Override protected ListInstanceConfigOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstanceConfigOperationsFixedSizeCollection(pages, collectionSize); } } @@ -5127,8 +5137,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -5138,14 +5148,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5159,7 +5169,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5169,7 +5180,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -5208,10 +5219,11 @@ public static class ListInstancePartitionsPage ListInstancePartitionsPage> { private ListInstancePartitionsPage( - PageContext< + @Nullable + PageContext< ListInstancePartitionsRequest, ListInstancePartitionsResponse, InstancePartition> context, - ListInstancePartitionsResponse response) { + @Nullable ListInstancePartitionsResponse response) { super(context, response); } @@ -5221,16 +5233,18 @@ private static ListInstancePartitionsPage createEmptyPage() { @Override protected ListInstancePartitionsPage createPage( - PageContext< + @Nullable + PageContext< ListInstancePartitionsRequest, ListInstancePartitionsResponse, InstancePartition> context, - ListInstancePartitionsResponse response) { + @Nullable ListInstancePartitionsResponse response) { return new ListInstancePartitionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstancePartitionsRequest, ListInstancePartitionsResponse, InstancePartition> context, ApiFuture futureResponse) { @@ -5247,7 +5261,7 @@ public static class ListInstancePartitionsFixedSizeCollection ListInstancePartitionsFixedSizeCollection> { private ListInstancePartitionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5257,7 +5271,7 @@ private static ListInstancePartitionsFixedSizeCollection createEmptyCollection() @Override protected ListInstancePartitionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancePartitionsFixedSizeCollection(pages, collectionSize); } } @@ -5299,12 +5313,13 @@ public static class ListInstancePartitionOperationsPage ListInstancePartitionOperationsPage> { private ListInstancePartitionOperationsPage( - PageContext< + @Nullable + PageContext< ListInstancePartitionOperationsRequest, ListInstancePartitionOperationsResponse, Operation> context, - ListInstancePartitionOperationsResponse response) { + @Nullable ListInstancePartitionOperationsResponse response) { super(context, response); } @@ -5314,18 +5329,20 @@ private static ListInstancePartitionOperationsPage createEmptyPage() { @Override protected ListInstancePartitionOperationsPage createPage( - PageContext< + @Nullable + PageContext< ListInstancePartitionOperationsRequest, ListInstancePartitionOperationsResponse, Operation> context, - ListInstancePartitionOperationsResponse response) { + @Nullable ListInstancePartitionOperationsResponse response) { return new ListInstancePartitionOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListInstancePartitionOperationsRequest, ListInstancePartitionOperationsResponse, Operation> @@ -5344,7 +5361,7 @@ public static class ListInstancePartitionOperationsFixedSizeCollection ListInstancePartitionOperationsFixedSizeCollection> { private ListInstancePartitionOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5354,7 +5371,7 @@ private static ListInstancePartitionOperationsFixedSizeCollection createEmptyCol @Override protected ListInstancePartitionOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancePartitionOperationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java index 929ee8bd5351..054b692dad33 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java @@ -81,6 +81,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -390,7 +391,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); } @@ -410,7 +411,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(InstanceAdminStubSettings.newBuilder(clientContext)); } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java index e76f6180b38f..9b1a7016ed13 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStub.java @@ -69,6 +69,7 @@ import com.google.spanner.admin.instance.v1.UpdateInstanceRequest; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,11 +81,12 @@ @Generated("by gapic-generator-java") public abstract class InstanceAdminStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java index 6f1f15aa8f60..80d7ca8746db 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -861,7 +862,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); } @@ -1068,7 +1069,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstanceConfigsSettings = diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java index bf665cb26e17..96fce860388a 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java @@ -65,6 +65,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. /** @@ -439,7 +440,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpannerClient implements BackgroundResource { - private final SpannerSettings settings; + private final @Nullable SpannerSettings settings; private final SpannerStub stub; /** Constructs an instance of SpannerClient with default settings. */ @@ -477,7 +478,7 @@ protected SpannerClient(SpannerStub stub) { this.stub = stub; } - public final SpannerSettings getSettings() { + public final @Nullable SpannerSettings getSettings() { return settings; } @@ -520,7 +521,7 @@ public SpannerStub getStub() { * @param database Required. The database in which the new session is created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DatabaseName database) { + public final Session createSession(@Nullable DatabaseName database) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -685,7 +686,7 @@ public final UnaryCallable createSessionCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateSessionsResponse batchCreateSessions( - DatabaseName database, int sessionCount) { + @Nullable DatabaseName database, int sessionCount) { BatchCreateSessionsRequest request = BatchCreateSessionsRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -823,7 +824,7 @@ public final BatchCreateSessionsResponse batchCreateSessions(BatchCreateSessions * @param name Required. The name of the session to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session getSession(SessionName name) { + public final Session getSession(@Nullable SessionName name) { GetSessionRequest request = GetSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSession(request); @@ -938,7 +939,7 @@ public final UnaryCallable getSessionCallable() { * @param database Required. The database in which to list sessions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSessionsPagedResponse listSessions(DatabaseName database) { + public final ListSessionsPagedResponse listSessions(@Nullable DatabaseName database) { ListSessionsRequest request = ListSessionsRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) @@ -1101,7 +1102,7 @@ public final UnaryCallable listSessio * @param name Required. The name of the session to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSession(SessionName name) { + public final void deleteSession(@Nullable SessionName name) { DeleteSessionRequest request = DeleteSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSession(request); @@ -1607,7 +1608,8 @@ public final ServerStreamingCallable streamingRea * @param options Required. Options for the new transaction. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Transaction beginTransaction(SessionName session, TransactionOptions options) { + public final Transaction beginTransaction( + @Nullable SessionName session, TransactionOptions options) { BeginTransactionRequest request = BeginTransactionRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -1755,7 +1757,7 @@ public final UnaryCallable beginTransactio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CommitResponse commit( - SessionName session, ByteString transactionId, List mutations) { + @Nullable SessionName session, ByteString transactionId, List mutations) { CommitRequest request = CommitRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -1809,7 +1811,9 @@ public final CommitResponse commit( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CommitResponse commit( - SessionName session, TransactionOptions singleUseTransaction, List mutations) { + @Nullable SessionName session, + TransactionOptions singleUseTransaction, + List mutations) { CommitRequest request = CommitRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -2043,7 +2047,7 @@ public final UnaryCallable commitCallable() { * @param transactionId Required. The transaction to roll back. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void rollback(SessionName session, ByteString transactionId) { + public final void rollback(@Nullable SessionName session, ByteString transactionId) { RollbackRequest request = RollbackRequest.newBuilder() .setSession(session == null ? null : session.toString()) @@ -2475,8 +2479,8 @@ public static class ListSessionsPage extends AbstractPage { private ListSessionsPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { super(context, response); } @@ -2486,14 +2490,14 @@ private static ListSessionsPage createEmptyPage() { @Override protected ListSessionsPage createPage( - PageContext context, - ListSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListSessionsResponse response) { return new ListSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2507,7 +2511,8 @@ public static class ListSessionsFixedSizeCollection ListSessionsPage, ListSessionsFixedSizeCollection> { - private ListSessionsFixedSizeCollection(List pages, int collectionSize) { + private ListSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2517,7 +2522,7 @@ private static ListSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSessionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java index ebe5ccf2fabc..a68a8793c5dc 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,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); } @@ -282,7 +283,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpannerStubSettings.newBuilder(clientContext)); } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java index 6c83f72b504e..8aa78a8514f2 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -406,7 +407,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); } @@ -559,7 +560,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java index 0137fb39d00e..0dff28747a16 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String backup) { .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupScheduleName.java b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupScheduleName.java index e9656b56bf96..7b176c68d222 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupScheduleName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupScheduleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String instance, String database, St .toString(); } - public static BackupScheduleName parse(String formattedString) { + public static @Nullable BackupScheduleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupScheduleName> values) { List list = new ArrayList<>(values.size()); for (BackupScheduleName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java index 277ec39c4aaf..49f79a286331 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String database) { .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java index 06f17c44a931..e00c4ea74eaf 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java index 6aa676971d4b..e00d25b3df56 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instanceConfig) { return newBuilder().setProject(project).setInstanceConfig(instanceConfig).build().toString(); } - public static InstanceConfigName parse(String formattedString) { + public static @Nullable InstanceConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceConfigName> values) { List list = new ArrayList<>(values.size()); for (InstanceConfigName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java index fa04db3cb64c..3920cd46bc1e 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionName.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionName.java index c95f13073af5..17293ac5ac93 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String instance, String instancePart .toString(); } - public static InstancePartitionName parse(String formattedString) { + public static @Nullable InstancePartitionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstancePartitionName> values) { List list = new ArrayList<>(values.size()); for (InstancePartitionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java index a9deb9f61ffd..a6eb94b7b3c0 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java b/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java index b51a9c6b900e..81d8d24f1de3 100644 --- a/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java +++ b/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String database) { .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java b/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java index 4d9b6cdc33b1..79506fdb038d 100644 --- a/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java +++ b/java-spanner/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String instance, String database, St .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterClient.java b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterClient.java index 03843dd28222..b2937ecc115d 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterClient.java +++ b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterClient.java @@ -25,6 +25,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdapterClient implements BackgroundResource { - private final AdapterSettings settings; + private final @Nullable AdapterSettings settings; private final AdapterStub stub; /** Constructs an instance of AdapterClient with default settings. */ @@ -183,7 +184,7 @@ protected AdapterClient(AdapterStub stub) { this.stub = stub; } - public final AdapterSettings getSettings() { + public final @Nullable AdapterSettings getSettings() { return settings; } @@ -216,7 +217,7 @@ public AdapterStub getStub() { * @param session Required. The session to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Session createSession(DatabaseName parent, Session session) { + public final Session createSession(@Nullable DatabaseName parent, Session session) { CreateSessionRequest request = CreateSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterSettings.java b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterSettings.java index af5c59b36898..90059b3bb903 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterSettings.java +++ b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/AdapterSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,7 +154,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); } @@ -173,7 +174,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdapterStubSettings.newBuilder(clientContext)); } diff --git a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/AdapterStubSettings.java b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/AdapterStubSettings.java index 7d99a6b0597f..d808fcae8fa4 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/AdapterStubSettings.java +++ b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/AdapterStubSettings.java @@ -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. /** @@ -223,7 +224,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); } @@ -301,7 +302,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/DatabaseName.java b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/DatabaseName.java index 2f7438d83e79..0a1902e317cf 100644 --- a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/DatabaseName.java +++ b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/DatabaseName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String database) { .toString(); } - public static DatabaseName parse(String formattedString) { + public static @Nullable DatabaseName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatabaseName> values) { List list = new ArrayList<>(values.size()); for (DatabaseName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/SessionName.java b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/SessionName.java index 0bb95986934d..b414ee63af5a 100644 --- a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/SessionName.java +++ b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/src/main/java/com/google/spanner/adapter/v1/SessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String instance, String database, St .toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index 00362bbaccfa..0824f0aa16a1 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java @@ -34,6 +34,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. /** @@ -313,7 +314,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AdaptationClient implements BackgroundResource { - private final AdaptationSettings settings; + private final @Nullable AdaptationSettings settings; private final AdaptationStub stub; /** Constructs an instance of AdaptationClient with default settings. */ @@ -351,7 +352,7 @@ protected AdaptationClient(AdaptationStub stub) { this.stub = stub; } - public final AdaptationSettings getSettings() { + public final @Nullable AdaptationSettings getSettings() { return settings; } @@ -396,7 +397,7 @@ public AdaptationStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PhraseSet createPhraseSet( - LocationName parent, PhraseSet phraseSet, String phraseSetId) { + @Nullable LocationName parent, PhraseSet phraseSet, String phraseSetId) { CreatePhraseSetRequest request = CreatePhraseSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -542,7 +543,7 @@ public final UnaryCallable createPhraseSetCal * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhraseSet getPhraseSet(PhraseSetName name) { + public final PhraseSet getPhraseSet(@Nullable PhraseSetName name) { GetPhraseSetRequest request = GetPhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPhraseSet(request); @@ -664,7 +665,7 @@ public final UnaryCallable getPhraseSetCallable( * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) { + public final ListPhraseSetPagedResponse listPhraseSet(@Nullable LocationName parent) { ListPhraseSetRequest request = ListPhraseSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -927,7 +928,7 @@ public final UnaryCallable updatePhraseSetCal *

`projects/{project}/locations/{location}/phraseSets/{phrase_set}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePhraseSet(PhraseSetName name) { + public final void deletePhraseSet(@Nullable PhraseSetName name) { DeletePhraseSetRequest request = DeletePhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePhraseSet(request); @@ -1050,7 +1051,7 @@ public final UnaryCallable deletePhraseSetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomClass createCustomClass( - LocationName parent, CustomClass customClass, String customClassId) { + @Nullable LocationName parent, CustomClass customClass, String customClassId) { CreateCustomClassRequest request = CreateCustomClassRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1187,7 +1188,7 @@ public final UnaryCallable createCustomCl *

`projects/{project}/locations/{location}/customClasses/{custom_class}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomClass getCustomClass(CustomClassName name) { + public final CustomClass getCustomClass(@Nullable CustomClassName name) { GetCustomClassRequest request = GetCustomClassRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomClass(request); @@ -1304,7 +1305,7 @@ public final UnaryCallable getCustomClassCal * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomClassesPagedResponse listCustomClasses(LocationName parent) { + public final ListCustomClassesPagedResponse listCustomClasses(@Nullable LocationName parent) { ListCustomClassesRequest request = ListCustomClassesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1577,7 +1578,7 @@ public final UnaryCallable updateCustomCl * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomClass(CustomClassName name) { + public final void deleteCustomClass(@Nullable CustomClassName name) { DeleteCustomClassRequest request = DeleteCustomClassRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1731,8 +1732,8 @@ public static class ListPhraseSetPage ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage> { private ListPhraseSetPage( - PageContext context, - ListPhraseSetResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetResponse response) { super(context, response); } @@ -1742,14 +1743,14 @@ private static ListPhraseSetPage createEmptyPage() { @Override protected ListPhraseSetPage createPage( - PageContext context, - ListPhraseSetResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetResponse response) { return new ListPhraseSetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1763,7 +1764,8 @@ public static class ListPhraseSetFixedSizeCollection ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { - private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { + private ListPhraseSetFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1773,7 +1775,7 @@ private static ListPhraseSetFixedSizeCollection createEmptyCollection() { @Override protected ListPhraseSetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPhraseSetFixedSizeCollection(pages, collectionSize); } } @@ -1807,8 +1809,9 @@ public static class ListCustomClassesPage ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage> { private ListCustomClassesPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { super(context, response); } @@ -1818,14 +1821,16 @@ private static ListCustomClassesPage createEmptyPage() { @Override protected ListCustomClassesPage createPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { return new ListCustomClassesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1840,7 +1845,7 @@ public static class ListCustomClassesFixedSizeCollection ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1850,7 +1855,7 @@ private static ListCustomClassesFixedSizeCollection createEmptyCollection() { @Override protected ListCustomClassesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomClassesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 49ed8372e3e7..43e9644f8364 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdaptationStubSettings.newBuilder(clientContext)); } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index 9d76edd6e020..08393ab5b332 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -30,6 +30,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. /** @@ -164,7 +165,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpeechClient implements BackgroundResource { - private final SpeechSettings settings; + private final @Nullable SpeechSettings settings; private final SpeechStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -210,7 +211,7 @@ protected SpeechClient(SpeechStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SpeechSettings getSettings() { + public final @Nullable SpeechSettings getSettings() { return settings; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 454c7ad8fcec..159aa38c2f24 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpeechStubSettings.newBuilder(clientContext)); } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index 935a893fd586..4f2da2471309 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -404,7 +405,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); } @@ -484,7 +485,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPhraseSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java index 6e42b4bac0e7..7eef8ef7e9d4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java @@ -31,6 +31,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,11 +43,12 @@ @Generated("by gapic-generator-java") public abstract class SpeechStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 65866a9115ae..bac1b259783e 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -357,7 +358,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); recognizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 9860b14e9b2c..ab555dc5dfd9 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -35,6 +35,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. /** @@ -315,7 +316,7 @@ @BetaApi @Generated("by gapic-generator-java") public class AdaptationClient implements BackgroundResource { - private final AdaptationSettings settings; + private final @Nullable AdaptationSettings settings; private final AdaptationStub stub; /** Constructs an instance of AdaptationClient with default settings. */ @@ -353,7 +354,7 @@ protected AdaptationClient(AdaptationStub stub) { this.stub = stub; } - public final AdaptationSettings getSettings() { + public final @Nullable AdaptationSettings getSettings() { return settings; } @@ -398,7 +399,7 @@ public AdaptationStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PhraseSet createPhraseSet( - LocationName parent, PhraseSet phraseSet, String phraseSetId) { + @Nullable LocationName parent, PhraseSet phraseSet, String phraseSetId) { CreatePhraseSetRequest request = CreatePhraseSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -544,7 +545,7 @@ public final UnaryCallable createPhraseSetCal * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhraseSet getPhraseSet(PhraseSetName name) { + public final PhraseSet getPhraseSet(@Nullable PhraseSetName name) { GetPhraseSetRequest request = GetPhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPhraseSet(request); @@ -666,7 +667,7 @@ public final UnaryCallable getPhraseSetCallable( * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) { + public final ListPhraseSetPagedResponse listPhraseSet(@Nullable LocationName parent) { ListPhraseSetRequest request = ListPhraseSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -929,7 +930,7 @@ public final UnaryCallable updatePhraseSetCal *

`projects/{project}/locations/{location}/phraseSets/{phrase_set}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deletePhraseSet(PhraseSetName name) { + public final void deletePhraseSet(@Nullable PhraseSetName name) { DeletePhraseSetRequest request = DeletePhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deletePhraseSet(request); @@ -1052,7 +1053,7 @@ public final UnaryCallable deletePhraseSetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomClass createCustomClass( - LocationName parent, CustomClass customClass, String customClassId) { + @Nullable LocationName parent, CustomClass customClass, String customClassId) { CreateCustomClassRequest request = CreateCustomClassRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1189,7 +1190,7 @@ public final UnaryCallable createCustomCl *

`projects/{project}/locations/{location}/customClasses/{custom_class}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomClass getCustomClass(CustomClassName name) { + public final CustomClass getCustomClass(@Nullable CustomClassName name) { GetCustomClassRequest request = GetCustomClassRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomClass(request); @@ -1306,7 +1307,7 @@ public final UnaryCallable getCustomClassCal * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomClassesPagedResponse listCustomClasses(LocationName parent) { + public final ListCustomClassesPagedResponse listCustomClasses(@Nullable LocationName parent) { ListCustomClassesRequest request = ListCustomClassesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1579,7 +1580,7 @@ public final UnaryCallable updateCustomCl * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCustomClass(CustomClassName name) { + public final void deleteCustomClass(@Nullable CustomClassName name) { DeleteCustomClassRequest request = DeleteCustomClassRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1733,8 +1734,8 @@ public static class ListPhraseSetPage ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage> { private ListPhraseSetPage( - PageContext context, - ListPhraseSetResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetResponse response) { super(context, response); } @@ -1744,14 +1745,14 @@ private static ListPhraseSetPage createEmptyPage() { @Override protected ListPhraseSetPage createPage( - PageContext context, - ListPhraseSetResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetResponse response) { return new ListPhraseSetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1765,7 +1766,8 @@ public static class ListPhraseSetFixedSizeCollection ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { - private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { + private ListPhraseSetFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1775,7 +1777,7 @@ private static ListPhraseSetFixedSizeCollection createEmptyCollection() { @Override protected ListPhraseSetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPhraseSetFixedSizeCollection(pages, collectionSize); } } @@ -1809,8 +1811,9 @@ public static class ListCustomClassesPage ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage> { private ListCustomClassesPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { super(context, response); } @@ -1820,14 +1823,16 @@ private static ListCustomClassesPage createEmptyPage() { @Override protected ListCustomClassesPage createPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { return new ListCustomClassesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1842,7 +1847,7 @@ public static class ListCustomClassesFixedSizeCollection ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1852,7 +1857,7 @@ private static ListCustomClassesFixedSizeCollection createEmptyCollection() { @Override protected ListCustomClassesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomClassesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index 2ab9ebd21291..704782180608 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -200,7 +201,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); } @@ -220,7 +221,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AdaptationStubSettings.newBuilder(clientContext)); } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index 84b054855bd2..f96c0f35fed3 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java @@ -30,6 +30,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. /** @@ -165,7 +166,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SpeechClient implements BackgroundResource { - private final SpeechSettings settings; + private final @Nullable SpeechSettings settings; private final SpeechStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -211,7 +212,7 @@ protected SpeechClient(SpeechStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SpeechSettings getSettings() { + public final @Nullable SpeechSettings getSettings() { return settings; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 500ec7c27990..1332169e9995 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpeechStubSettings.newBuilder(clientContext)); } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index 65240e06c039..67261980da44 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -405,7 +406,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); } @@ -485,7 +486,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createPhraseSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java index 246fef21f389..efff1f1d3005 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class SpeechStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index c87b4998377f..e33ed8867f05 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,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); } @@ -358,7 +359,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); recognizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java index 244d557c9b18..7829f9d0bf7f 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java @@ -44,6 +44,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. /** @@ -602,7 +603,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SpeechClient implements BackgroundResource { - private final SpeechSettings settings; + private final @Nullable SpeechSettings settings; private final SpeechStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -648,7 +649,7 @@ protected SpeechClient(SpeechStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SpeechSettings getSettings() { + public final @Nullable SpeechSettings getSettings() { return settings; } @@ -703,7 +704,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createRecognizerAsync( - LocationName parent, Recognizer recognizer, String recognizerId) { + @Nullable LocationName parent, Recognizer recognizer, String recognizerId) { CreateRecognizerRequest request = CreateRecognizerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -871,7 +872,7 @@ public final UnaryCallable createRecognizerC * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRecognizersPagedResponse listRecognizers(LocationName parent) { + public final ListRecognizersPagedResponse listRecognizers(@Nullable LocationName parent) { ListRecognizersRequest request = ListRecognizersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1038,7 +1039,7 @@ public final ListRecognizersPagedResponse listRecognizers(ListRecognizersRequest * `projects/{project}/locations/{location}/recognizers/{recognizer}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Recognizer getRecognizer(RecognizerName name) { + public final Recognizer getRecognizer(@Nullable RecognizerName name) { GetRecognizerRequest request = GetRecognizerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getRecognizer(request); @@ -1279,7 +1280,7 @@ public final UnaryCallable updateRecognizerC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteRecognizerAsync( - RecognizerName name) { + @Nullable RecognizerName name) { DeleteRecognizerRequest request = DeleteRecognizerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteRecognizerAsync(request); @@ -1429,7 +1430,7 @@ public final UnaryCallable deleteRecognizerC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeleteRecognizerAsync( - RecognizerName name) { + @Nullable RecognizerName name) { UndeleteRecognizerRequest request = UndeleteRecognizerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1603,7 +1604,7 @@ public final UnaryCallable undeleteRecogni * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RecognizeResponse recognize( - RecognizerName recognizer, + @Nullable RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, ByteString content) { @@ -1667,7 +1668,10 @@ public final RecognizeResponse recognize( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RecognizeResponse recognize( - RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, String uri) { + @Nullable RecognizerName recognizer, + RecognitionConfig config, + FieldMask configMask, + String uri) { RecognizeRequest request = RecognizeRequest.newBuilder() .setRecognizer(recognizer == null ? null : recognizer.toString()) @@ -1941,7 +1945,7 @@ public final UnaryCallable recognizeCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchRecognizeAsync( - RecognizerName recognizer, + @Nullable RecognizerName recognizer, RecognitionConfig config, FieldMask configMask, List files) { @@ -2143,7 +2147,7 @@ public final UnaryCallable batchRecognizeCalla * `projects/{project}/locations/{location}/config`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { + public final Config getConfig(@Nullable ConfigName name) { GetConfigRequest request = GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConfig(request); @@ -2350,7 +2354,7 @@ public final UnaryCallable updateConfigCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCustomClassAsync( - LocationName parent, CustomClass customClass, String customClassId) { + @Nullable LocationName parent, CustomClass customClass, String customClassId) { CreateCustomClassRequest request = CreateCustomClassRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2518,7 +2522,7 @@ public final UnaryCallable createCustomClas * format is `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomClassesPagedResponse listCustomClasses(LocationName parent) { + public final ListCustomClassesPagedResponse listCustomClasses(@Nullable LocationName parent) { ListCustomClassesRequest request = ListCustomClassesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2685,7 +2689,7 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR * `projects/{project}/locations/{location}/customClasses/{custom_class}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomClass getCustomClass(CustomClassName name) { + public final CustomClass getCustomClass(@Nullable CustomClassName name) { GetCustomClassRequest request = GetCustomClassRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCustomClass(request); @@ -2923,7 +2927,7 @@ public final UnaryCallable updateCustomClas * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCustomClassAsync( - CustomClassName name) { + @Nullable CustomClassName name) { DeleteCustomClassRequest request = DeleteCustomClassRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3075,7 +3079,7 @@ public final UnaryCallable deleteCustomClas * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeleteCustomClassAsync( - CustomClassName name) { + @Nullable CustomClassName name) { UndeleteCustomClassRequest request = UndeleteCustomClassRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3232,7 +3236,7 @@ public final UnaryCallable undeleteCustom * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPhraseSetAsync( - LocationName parent, PhraseSet phraseSet, String phraseSetId) { + @Nullable LocationName parent, PhraseSet phraseSet, String phraseSetId) { CreatePhraseSetRequest request = CreatePhraseSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3399,7 +3403,7 @@ public final UnaryCallable createPhraseSetCal * format is `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPhraseSetsPagedResponse listPhraseSets(LocationName parent) { + public final ListPhraseSetsPagedResponse listPhraseSets(@Nullable LocationName parent) { ListPhraseSetsRequest request = ListPhraseSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3564,7 +3568,7 @@ public final ListPhraseSetsPagedResponse listPhraseSets(ListPhraseSetsRequest re * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PhraseSet getPhraseSet(PhraseSetName name) { + public final PhraseSet getPhraseSet(@Nullable PhraseSetName name) { GetPhraseSetRequest request = GetPhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPhraseSet(request); @@ -3802,7 +3806,7 @@ public final UnaryCallable updatePhraseSetCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePhraseSetAsync( - PhraseSetName name) { + @Nullable PhraseSetName name) { DeletePhraseSetRequest request = DeletePhraseSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deletePhraseSetAsync(request); @@ -3952,7 +3956,7 @@ public final UnaryCallable deletePhraseSetCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeletePhraseSetAsync( - PhraseSetName name) { + @Nullable PhraseSetName name) { UndeletePhraseSetRequest request = UndeletePhraseSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4309,8 +4313,8 @@ public static class ListRecognizersPage ListRecognizersRequest, ListRecognizersResponse, Recognizer, ListRecognizersPage> { private ListRecognizersPage( - PageContext context, - ListRecognizersResponse response) { + @Nullable PageContext context, + @Nullable ListRecognizersResponse response) { super(context, response); } @@ -4320,14 +4324,14 @@ private static ListRecognizersPage createEmptyPage() { @Override protected ListRecognizersPage createPage( - PageContext context, - ListRecognizersResponse response) { + @Nullable PageContext context, + @Nullable ListRecognizersResponse response) { return new ListRecognizersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4342,7 +4346,7 @@ public static class ListRecognizersFixedSizeCollection ListRecognizersFixedSizeCollection> { private ListRecognizersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4352,7 +4356,7 @@ private static ListRecognizersFixedSizeCollection createEmptyCollection() { @Override protected ListRecognizersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRecognizersFixedSizeCollection(pages, collectionSize); } } @@ -4386,8 +4390,9 @@ public static class ListCustomClassesPage ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage> { private ListCustomClassesPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { super(context, response); } @@ -4397,14 +4402,16 @@ private static ListCustomClassesPage createEmptyPage() { @Override protected ListCustomClassesPage createPage( - PageContext context, - ListCustomClassesResponse response) { + @Nullable PageContext + context, + @Nullable ListCustomClassesResponse response) { return new ListCustomClassesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4419,7 +4426,7 @@ public static class ListCustomClassesFixedSizeCollection ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4429,7 +4436,7 @@ private static ListCustomClassesFixedSizeCollection createEmptyCollection() { @Override protected ListCustomClassesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCustomClassesFixedSizeCollection(pages, collectionSize); } } @@ -4463,8 +4470,8 @@ public static class ListPhraseSetsPage ListPhraseSetsRequest, ListPhraseSetsResponse, PhraseSet, ListPhraseSetsPage> { private ListPhraseSetsPage( - PageContext context, - ListPhraseSetsResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetsResponse response) { super(context, response); } @@ -4474,14 +4481,14 @@ private static ListPhraseSetsPage createEmptyPage() { @Override protected ListPhraseSetsPage createPage( - PageContext context, - ListPhraseSetsResponse response) { + @Nullable PageContext context, + @Nullable ListPhraseSetsResponse response) { return new ListPhraseSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4495,7 +4502,8 @@ public static class ListPhraseSetsFixedSizeCollection ListPhraseSetsPage, ListPhraseSetsFixedSizeCollection> { - private ListPhraseSetsFixedSizeCollection(List pages, int collectionSize) { + private ListPhraseSetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4505,7 +4513,7 @@ private static ListPhraseSetsFixedSizeCollection createEmptyCollection() { @Override protected ListPhraseSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPhraseSetsFixedSizeCollection(pages, collectionSize); } } @@ -4539,8 +4547,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4550,14 +4558,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4571,7 +4579,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4581,7 +4590,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java index f57c43df725f..6555986cb2ff 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -390,7 +391,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); } @@ -410,7 +411,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SpeechStubSettings.newBuilder(clientContext)); } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java index 724b41209dd7..d38b9e935971 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java @@ -67,6 +67,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -78,11 +79,12 @@ @Generated("by gapic-generator-java") public abstract class SpeechStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java index 480859481f26..9655bf8a8943 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java @@ -101,6 +101,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -771,7 +772,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); } @@ -966,7 +967,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createRecognizerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java index c01c7a321dfd..f8b8030a4c79 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String customClass) .toString(); } - public static CustomClassName parse(String formattedString) { + public static @Nullable CustomClassName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomClassName> values) { List list = new ArrayList<>(values.size()); for (CustomClassName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java index 302132c00e3c..34e6519cba3d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java index b27bad800a04..024c0955ddbf 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String phraseSet) { .toString(); } - public static PhraseSetName parse(String formattedString) { + public static @Nullable PhraseSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhraseSetName> values) { List list = new ArrayList<>(values.size()); for (PhraseSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java index 0d7767d0b624..ec1f32610a3a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String customClass) .toString(); } - public static CustomClassName parse(String formattedString) { + public static @Nullable CustomClassName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomClassName> values) { List list = new ArrayList<>(values.size()); for (CustomClassName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java index 732f5d414f35..5aee68b10f00 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java index 53fd1c2ca52a..76e407941b3d 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String phraseSet) { .toString(); } - public static PhraseSetName parse(String formattedString) { + public static @Nullable PhraseSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhraseSetName> values) { List list = new ArrayList<>(values.size()); for (PhraseSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java index f3ef755f366e..e87d6308d519 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static ConfigName parse(String formattedString) { + public static @Nullable ConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConfigName> values) { List list = new ArrayList<>(values.size()); for (ConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java index 219d0dfc67a6..54e600fa4c9f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String customClass) .toString(); } - public static CustomClassName parse(String formattedString) { + public static @Nullable CustomClassName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CustomClassName> values) { List list = new ArrayList<>(values.size()); for (CustomClassName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java index abae1ad92d52..07d6b93239a9 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java index 023061c107e3..6f00713a6ef7 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String phraseSet) { .toString(); } - public static PhraseSetName parse(String formattedString) { + public static @Nullable PhraseSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PhraseSetName> values) { List list = new ArrayList<>(values.size()); for (PhraseSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java index b9b22cc85296..b528c91f8d11 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String recognizer) .toString(); } - public static RecognizerName parse(String formattedString) { + public static @Nullable RecognizerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RecognizerName> values) { List list = new ArrayList<>(values.size()); for (RecognizerName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java index 2f26f9ec16e7..42053bea5ca0 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java @@ -39,6 +39,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. /** @@ -357,7 +358,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageTransferServiceClient implements BackgroundResource { - private final StorageTransferServiceSettings settings; + private final @Nullable StorageTransferServiceSettings settings; private final StorageTransferServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -406,7 +407,7 @@ protected StorageTransferServiceClient(StorageTransferServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final StorageTransferServiceSettings getSettings() { + public final @Nullable StorageTransferServiceSettings getSettings() { return settings; } @@ -1695,12 +1696,13 @@ public static class ListTransferJobsPage ListTransferJobsPage> { private ListTransferJobsPage( - PageContext< + @Nullable + PageContext< TransferProto.ListTransferJobsRequest, TransferProto.ListTransferJobsResponse, TransferTypes.TransferJob> context, - TransferProto.ListTransferJobsResponse response) { + TransferProto.@Nullable ListTransferJobsResponse response) { super(context, response); } @@ -1710,18 +1712,20 @@ private static ListTransferJobsPage createEmptyPage() { @Override protected ListTransferJobsPage createPage( - PageContext< + @Nullable + PageContext< TransferProto.ListTransferJobsRequest, TransferProto.ListTransferJobsResponse, TransferTypes.TransferJob> context, - TransferProto.ListTransferJobsResponse response) { + TransferProto.@Nullable ListTransferJobsResponse response) { return new ListTransferJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< TransferProto.ListTransferJobsRequest, TransferProto.ListTransferJobsResponse, TransferTypes.TransferJob> @@ -1740,7 +1744,7 @@ public static class ListTransferJobsFixedSizeCollection ListTransferJobsFixedSizeCollection> { private ListTransferJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1750,7 +1754,7 @@ private static ListTransferJobsFixedSizeCollection createEmptyCollection() { @Override protected ListTransferJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTransferJobsFixedSizeCollection(pages, collectionSize); } } @@ -1791,12 +1795,13 @@ public static class ListAgentPoolsPage ListAgentPoolsPage> { private ListAgentPoolsPage( - PageContext< + @Nullable + PageContext< TransferProto.ListAgentPoolsRequest, TransferProto.ListAgentPoolsResponse, TransferTypes.AgentPool> context, - TransferProto.ListAgentPoolsResponse response) { + TransferProto.@Nullable ListAgentPoolsResponse response) { super(context, response); } @@ -1806,18 +1811,20 @@ private static ListAgentPoolsPage createEmptyPage() { @Override protected ListAgentPoolsPage createPage( - PageContext< + @Nullable + PageContext< TransferProto.ListAgentPoolsRequest, TransferProto.ListAgentPoolsResponse, TransferTypes.AgentPool> context, - TransferProto.ListAgentPoolsResponse response) { + TransferProto.@Nullable ListAgentPoolsResponse response) { return new ListAgentPoolsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< TransferProto.ListAgentPoolsRequest, TransferProto.ListAgentPoolsResponse, TransferTypes.AgentPool> @@ -1835,7 +1842,8 @@ public static class ListAgentPoolsFixedSizeCollection ListAgentPoolsPage, ListAgentPoolsFixedSizeCollection> { - private ListAgentPoolsFixedSizeCollection(List pages, int collectionSize) { + private ListAgentPoolsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1845,7 +1853,7 @@ private static ListAgentPoolsFixedSizeCollection createEmptyCollection() { @Override protected ListAgentPoolsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAgentPoolsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceSettings.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceSettings.java index 18441dc3b532..73c2da427490 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceSettings.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,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); } @@ -300,7 +301,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageTransferServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStub.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStub.java index e7740178547b..0f88c017fc50 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStub.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStub.java @@ -29,6 +29,7 @@ import com.google.storagetransfer.v1.proto.TransferTypes; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,11 +41,12 @@ @Generated("by gapic-generator-java") public abstract class StorageTransferServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java index 6386fec7a165..ef35249c6b32 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/StorageTransferServiceStubSettings.java @@ -63,6 +63,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -537,7 +538,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); } @@ -668,7 +669,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getGoogleServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java index 22e4afc530e4..193375816072 100644 --- a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java +++ b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java @@ -43,6 +43,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. /** @@ -603,7 +604,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageClient implements BackgroundResource { - private final StorageSettings settings; + private final @Nullable StorageSettings settings; private final StorageStub stub; /** Constructs an instance of StorageClient with default settings. */ @@ -641,7 +642,7 @@ protected StorageClient(StorageStub stub) { this.stub = stub; } - public final StorageSettings getSettings() { + public final @Nullable StorageSettings getSettings() { return settings; } @@ -686,7 +687,7 @@ public StorageStub getStub() { * @param name Required. Name of a bucket to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBucket(BucketName name) { + public final void deleteBucket(@Nullable BucketName name) { DeleteBucketRequest request = DeleteBucketRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBucket(request); @@ -854,7 +855,7 @@ public final UnaryCallable deleteBucketCallable() { * @param name Required. Name of a bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket getBucket(BucketName name) { + public final Bucket getBucket(@Nullable BucketName name) { GetBucketRequest request = GetBucketRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBucket(request); @@ -1013,7 +1014,7 @@ public final UnaryCallable getBucketCallable() { * name `projects/123456/buckets/foo`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucketId) { + public final Bucket createBucket(@Nullable ProjectName parent, Bucket bucket, String bucketId) { CreateBucketRequest request = CreateBucketRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1189,7 +1190,7 @@ public final UnaryCallable createBucketCallable() { * @param parent Required. The project whose buckets we are listing. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(ProjectName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable ProjectName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1403,7 +1404,7 @@ public final UnaryCallable listBucketsC * @param bucket Required. Name of a bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket lockBucketRetentionPolicy(BucketName bucket) { + public final Bucket lockBucketRetentionPolicy(@Nullable BucketName bucket) { LockBucketRetentionPolicyRequest request = LockBucketRetentionPolicyRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -1569,7 +1570,7 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1716,7 +1717,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1859,7 +1860,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2236,7 +2237,7 @@ public final UnaryCallable composeObjectCallable() * an unfinalized resumable upload please use `CancelResumableWrite`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteObject(BucketName bucket, String object) { + public final void deleteObject(@Nullable BucketName bucket, String object) { DeleteObjectRequest request = DeleteObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -2326,7 +2327,7 @@ public final void deleteObject(String bucket, String object) { * (as opposed to the latest version, the default). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteObject(BucketName bucket, String object, long generation) { + public final void deleteObject(@Nullable BucketName bucket, String object, long generation) { DeleteObjectRequest request = DeleteObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -2526,7 +2527,7 @@ public final UnaryCallable deleteObjectCallable() { * @param generation Required. The specific revision of the object to restore. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Object restoreObject(BucketName bucket, String object, long generation) { + public final Object restoreObject(@Nullable BucketName bucket, String object, long generation) { RestoreObjectRequest request = RestoreObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -2838,7 +2839,7 @@ public final CancelResumableWriteResponse cancelResumableWrite( * @param object Required. Name of the object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Object getObject(BucketName bucket, String object) { + public final Object getObject(@Nullable BucketName bucket, String object) { GetObjectRequest request = GetObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -2912,7 +2913,7 @@ public final Object getObject(String bucket, String object) { * to the latest version, the default). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Object getObject(BucketName bucket, String object, long generation) { + public final Object getObject(@Nullable BucketName bucket, String object, long generation) { GetObjectRequest request = GetObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -3428,7 +3429,7 @@ public final UnaryCallable updateObjectCallable() { * @param parent Required. Name of the bucket in which to look for objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListObjectsPagedResponse listObjects(BucketName parent) { + public final ListObjectsPagedResponse listObjects(@Nullable BucketName parent) { ListObjectsRequest request = ListObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3953,7 +3954,8 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r * @param destinationObject Required. Name of the destination object. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Object moveObject(BucketName bucket, String sourceObject, String destinationObject) { + public final Object moveObject( + @Nullable BucketName bucket, String sourceObject, String destinationObject) { MoveObjectRequest request = MoveObjectRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -4159,8 +4161,8 @@ public static class ListBucketsPage extends AbstractPage { private ListBucketsPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { super(context, response); } @@ -4170,14 +4172,14 @@ private static ListBucketsPage createEmptyPage() { @Override protected ListBucketsPage createPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { return new ListBucketsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4191,7 +4193,8 @@ public static class ListBucketsFixedSizeCollection ListBucketsPage, ListBucketsFixedSizeCollection> { - private ListBucketsFixedSizeCollection(List pages, int collectionSize) { + private ListBucketsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4201,7 +4204,7 @@ private static ListBucketsFixedSizeCollection createEmptyCollection() { @Override protected ListBucketsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBucketsFixedSizeCollection(pages, collectionSize); } } @@ -4232,8 +4235,8 @@ public static class ListObjectsPage extends AbstractPage { private ListObjectsPage( - PageContext context, - ListObjectsResponse response) { + @Nullable PageContext context, + @Nullable ListObjectsResponse response) { super(context, response); } @@ -4243,14 +4246,14 @@ private static ListObjectsPage createEmptyPage() { @Override protected ListObjectsPage createPage( - PageContext context, - ListObjectsResponse response) { + @Nullable PageContext context, + @Nullable ListObjectsResponse response) { return new ListObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4264,7 +4267,8 @@ public static class ListObjectsFixedSizeCollection ListObjectsPage, ListObjectsFixedSizeCollection> { - private ListObjectsFixedSizeCollection(List pages, int collectionSize) { + private ListObjectsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4274,7 +4278,7 @@ private static ListObjectsFixedSizeCollection createEmptyCollection() { @Override protected ListObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListObjectsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java index d04844e57d63..4e472f751817 100644 --- a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java +++ b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -268,7 +269,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -288,7 +289,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageStubSettings.newBuilder(clientContext)); } diff --git a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java index 22890efd83e8..5f438612cfe4 100644 --- a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java +++ b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java @@ -92,6 +92,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -490,7 +491,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -616,7 +617,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java index 34562fce8f9a..f0319f13a44f 100644 --- a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java +++ b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java @@ -45,6 +45,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. /** @@ -748,7 +749,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageControlClient implements BackgroundResource { - private final StorageControlSettings settings; + private final @Nullable StorageControlSettings settings; private final StorageControlStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -796,7 +797,7 @@ protected StorageControlClient(StorageControlStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final StorageControlSettings getSettings() { + public final @Nullable StorageControlSettings getSettings() { return settings; } @@ -853,7 +854,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * "books/" folder. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder createFolder(BucketName parent, Folder folder, String folderId) { + public final Folder createFolder(@Nullable BucketName parent, Folder folder, String folderId) { CreateFolderRequest request = CreateFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -993,7 +994,7 @@ public final UnaryCallable createFolderCallable() { * `projects/{project}/buckets/{bucket}/folders/{folder}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFolder(FolderName name) { + public final void deleteFolder(@Nullable FolderName name) { DeleteFolderRequest request = DeleteFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFolder(request); @@ -1113,7 +1114,7 @@ public final UnaryCallable deleteFolderCallable() { * `projects/{project}/buckets/{bucket}/folders/{folder}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Folder getFolder(FolderName name) { + public final Folder getFolder(@Nullable FolderName name) { GetFolderRequest request = GetFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFolder(request); @@ -1235,7 +1236,7 @@ public final UnaryCallable getFolderCallable() { * hierarchical namespace enabled bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFoldersPagedResponse listFolders(BucketName parent) { + public final ListFoldersPagedResponse listFolders(@Nullable BucketName parent) { ListFoldersRequest request = ListFoldersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1421,7 +1422,7 @@ public final UnaryCallable listFoldersC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture renameFolderAsync( - FolderName name, String destinationFolderId) { + @Nullable FolderName name, String destinationFolderId) { RenameFolderRequest request = RenameFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1593,7 +1594,7 @@ public final UnaryCallable renameFolderCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteFolderRecursiveAsync( - FolderName name) { + @Nullable FolderName name) { DeleteFolderRecursiveRequest request = DeleteFolderRecursiveRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1752,7 +1753,7 @@ public final OperationFuture deleteFolderR * `projects/{project}/buckets/{bucket}/storageLayout` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StorageLayout getStorageLayout(StorageLayoutName name) { + public final StorageLayout getStorageLayout(@Nullable StorageLayoutName name) { GetStorageLayoutRequest request = GetStorageLayoutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStorageLayout(request); @@ -1875,7 +1876,7 @@ public final UnaryCallable getStorageLay * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ManagedFolder createManagedFolder( - BucketName parent, ManagedFolder managedFolder, String managedFolderId) { + @Nullable BucketName parent, ManagedFolder managedFolder, String managedFolderId) { CreateManagedFolderRequest request = CreateManagedFolderRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2010,7 +2011,7 @@ public final ManagedFolder createManagedFolder(CreateManagedFolderRequest reques * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteManagedFolder(ManagedFolderName name) { + public final void deleteManagedFolder(@Nullable ManagedFolderName name) { DeleteManagedFolderRequest request = DeleteManagedFolderRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2132,7 +2133,7 @@ public final UnaryCallable deleteManagedFolde * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ManagedFolder getManagedFolder(ManagedFolderName name) { + public final ManagedFolder getManagedFolder(@Nullable ManagedFolderName name) { GetManagedFolderRequest request = GetManagedFolderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getManagedFolder(request); @@ -2250,7 +2251,7 @@ public final UnaryCallable getManagedFol * @param parent Required. Name of the bucket this managed folder belongs to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListManagedFoldersPagedResponse listManagedFolders(BucketName parent) { + public final ListManagedFoldersPagedResponse listManagedFolders(@Nullable BucketName parent) { ListManagedFoldersRequest request = ListManagedFoldersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2427,7 +2428,7 @@ public final ListManagedFoldersPagedResponse listManagedFolders( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAnywhereCacheAsync( - BucketName parent, AnywhereCache anywhereCache) { + @Nullable BucketName parent, AnywhereCache anywhereCache) { CreateAnywhereCacheRequest request = CreateAnywhereCacheRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2722,7 +2723,7 @@ public final UnaryCallable updateAnywhere * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnywhereCache disableAnywhereCache(AnywhereCacheName name) { + public final AnywhereCache disableAnywhereCache(@Nullable AnywhereCacheName name) { DisableAnywhereCacheRequest request = DisableAnywhereCacheRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2845,7 +2846,7 @@ public final AnywhereCache disableAnywhereCache(DisableAnywhereCacheRequest requ * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnywhereCache pauseAnywhereCache(AnywhereCacheName name) { + public final AnywhereCache pauseAnywhereCache(@Nullable AnywhereCacheName name) { PauseAnywhereCacheRequest request = PauseAnywhereCacheRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2962,7 +2963,7 @@ public final AnywhereCache pauseAnywhereCache(PauseAnywhereCacheRequest request) * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnywhereCache resumeAnywhereCache(AnywhereCacheName name) { + public final AnywhereCache resumeAnywhereCache(@Nullable AnywhereCacheName name) { ResumeAnywhereCacheRequest request = ResumeAnywhereCacheRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3079,7 +3080,7 @@ public final AnywhereCache resumeAnywhereCache(ResumeAnywhereCacheRequest reques * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AnywhereCache getAnywhereCache(AnywhereCacheName name) { + public final AnywhereCache getAnywhereCache(@Nullable AnywhereCacheName name) { GetAnywhereCacheRequest request = GetAnywhereCacheRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnywhereCache(request); @@ -3193,7 +3194,7 @@ public final UnaryCallable getAnywhereCa * @param parent Required. The bucket to which this cache belongs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnywhereCachesPagedResponse listAnywhereCaches(BucketName parent) { + public final ListAnywhereCachesPagedResponse listAnywhereCaches(@Nullable BucketName parent) { ListAnywhereCachesRequest request = ListAnywhereCachesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3363,7 +3364,8 @@ public final ListAnywhereCachesPagedResponse listAnywhereCaches( *

Format: `projects/{id}/locations/global/intelligenceConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IntelligenceConfig getProjectIntelligenceConfig(IntelligenceConfigName name) { + public final IntelligenceConfig getProjectIntelligenceConfig( + @Nullable IntelligenceConfigName name) { GetProjectIntelligenceConfigRequest request = GetProjectIntelligenceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3585,7 +3587,8 @@ public final IntelligenceConfig updateProjectIntelligenceConfig( *

Format: `folders/{id}/locations/global/intelligenceConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IntelligenceConfig getFolderIntelligenceConfig(IntelligenceConfigName name) { + public final IntelligenceConfig getFolderIntelligenceConfig( + @Nullable IntelligenceConfigName name) { GetFolderIntelligenceConfigRequest request = GetFolderIntelligenceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3804,7 +3807,8 @@ public final IntelligenceConfig updateFolderIntelligenceConfig( *

Format: `organizations/{org_id}/locations/global/intelligenceConfig` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IntelligenceConfig getOrganizationIntelligenceConfig(IntelligenceConfigName name) { + public final IntelligenceConfig getOrganizationIntelligenceConfig( + @Nullable IntelligenceConfigName name) { GetOrganizationIntelligenceConfigRequest request = GetOrganizationIntelligenceConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4023,7 +4027,7 @@ public final IntelligenceConfig updateOrganizationIntelligenceConfig( * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4149,7 +4153,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4287,7 +4291,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -4428,7 +4432,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * `projects/{project}/locations/{location}/intelligenceFindings/{intelligence_finding}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IntelligenceFinding getIntelligenceFinding(IntelligenceFindingName name) { + public final IntelligenceFinding getIntelligenceFinding(@Nullable IntelligenceFindingName name) { GetIntelligenceFindingRequest request = GetIntelligenceFindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4553,7 +4557,8 @@ public final IntelligenceFinding getIntelligenceFinding(GetIntelligenceFindingRe *

Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIntelligenceFindingsPagedResponse listIntelligenceFindings(LocationName parent) { + public final ListIntelligenceFindingsPagedResponse listIntelligenceFindings( + @Nullable LocationName parent) { ListIntelligenceFindingsRequest request = ListIntelligenceFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4873,7 +4878,7 @@ public final SummarizeIntelligenceFindingsPagedResponse summarizeIntelligenceFin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final IntelligenceFindingRevision getIntelligenceFindingRevision( - IntelligenceFindingRevisionName name) { + @Nullable IntelligenceFindingRevisionName name) { GetIntelligenceFindingRevisionRequest request = GetIntelligenceFindingRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5005,7 +5010,7 @@ public final IntelligenceFindingRevision getIntelligenceFindingRevision( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListIntelligenceFindingRevisionsPagedResponse listIntelligenceFindingRevisions( - IntelligenceFindingName parent) { + @Nullable IntelligenceFindingName parent) { ListIntelligenceFindingRevisionsRequest request = ListIntelligenceFindingRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5218,8 +5223,8 @@ public static class ListFoldersPage extends AbstractPage { private ListFoldersPage( - PageContext context, - ListFoldersResponse response) { + @Nullable PageContext context, + @Nullable ListFoldersResponse response) { super(context, response); } @@ -5229,14 +5234,14 @@ private static ListFoldersPage createEmptyPage() { @Override protected ListFoldersPage createPage( - PageContext context, - ListFoldersResponse response) { + @Nullable PageContext context, + @Nullable ListFoldersResponse response) { return new ListFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5250,7 +5255,8 @@ public static class ListFoldersFixedSizeCollection ListFoldersPage, ListFoldersFixedSizeCollection> { - private ListFoldersFixedSizeCollection(List pages, int collectionSize) { + private ListFoldersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5260,7 +5266,7 @@ private static ListFoldersFixedSizeCollection createEmptyCollection() { @Override protected ListFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFoldersFixedSizeCollection(pages, collectionSize); } } @@ -5297,8 +5303,9 @@ public static class ListManagedFoldersPage ListManagedFoldersPage> { private ListManagedFoldersPage( - PageContext context, - ListManagedFoldersResponse response) { + @Nullable PageContext + context, + @Nullable ListManagedFoldersResponse response) { super(context, response); } @@ -5308,14 +5315,16 @@ private static ListManagedFoldersPage createEmptyPage() { @Override protected ListManagedFoldersPage createPage( - PageContext context, - ListManagedFoldersResponse response) { + @Nullable PageContext + context, + @Nullable ListManagedFoldersResponse response) { return new ListManagedFoldersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5330,7 +5339,7 @@ public static class ListManagedFoldersFixedSizeCollection ListManagedFoldersFixedSizeCollection> { private ListManagedFoldersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5340,7 +5349,7 @@ private static ListManagedFoldersFixedSizeCollection createEmptyCollection() { @Override protected ListManagedFoldersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListManagedFoldersFixedSizeCollection(pages, collectionSize); } } @@ -5377,8 +5386,9 @@ public static class ListAnywhereCachesPage ListAnywhereCachesPage> { private ListAnywhereCachesPage( - PageContext context, - ListAnywhereCachesResponse response) { + @Nullable PageContext + context, + @Nullable ListAnywhereCachesResponse response) { super(context, response); } @@ -5388,14 +5398,16 @@ private static ListAnywhereCachesPage createEmptyPage() { @Override protected ListAnywhereCachesPage createPage( - PageContext context, - ListAnywhereCachesResponse response) { + @Nullable PageContext + context, + @Nullable ListAnywhereCachesResponse response) { return new ListAnywhereCachesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5410,7 +5422,7 @@ public static class ListAnywhereCachesFixedSizeCollection ListAnywhereCachesFixedSizeCollection> { private ListAnywhereCachesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5420,7 +5432,7 @@ private static ListAnywhereCachesFixedSizeCollection createEmptyCollection() { @Override protected ListAnywhereCachesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnywhereCachesFixedSizeCollection(pages, collectionSize); } } @@ -5461,12 +5473,13 @@ public static class ListIntelligenceFindingsPage ListIntelligenceFindingsPage> { private ListIntelligenceFindingsPage( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingsRequest, ListIntelligenceFindingsResponse, IntelligenceFinding> context, - ListIntelligenceFindingsResponse response) { + @Nullable ListIntelligenceFindingsResponse response) { super(context, response); } @@ -5476,18 +5489,20 @@ private static ListIntelligenceFindingsPage createEmptyPage() { @Override protected ListIntelligenceFindingsPage createPage( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingsRequest, ListIntelligenceFindingsResponse, IntelligenceFinding> context, - ListIntelligenceFindingsResponse response) { + @Nullable ListIntelligenceFindingsResponse response) { return new ListIntelligenceFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingsRequest, ListIntelligenceFindingsResponse, IntelligenceFinding> @@ -5506,7 +5521,7 @@ public static class ListIntelligenceFindingsFixedSizeCollection ListIntelligenceFindingsFixedSizeCollection> { private ListIntelligenceFindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5516,7 +5531,7 @@ private static ListIntelligenceFindingsFixedSizeCollection createEmptyCollection @Override protected ListIntelligenceFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntelligenceFindingsFixedSizeCollection(pages, collectionSize); } } @@ -5558,12 +5573,13 @@ public static class SummarizeIntelligenceFindingsPage SummarizeIntelligenceFindingsPage> { private SummarizeIntelligenceFindingsPage( - PageContext< + @Nullable + PageContext< SummarizeIntelligenceFindingsRequest, SummarizeIntelligenceFindingsResponse, FindingSummary> context, - SummarizeIntelligenceFindingsResponse response) { + @Nullable SummarizeIntelligenceFindingsResponse response) { super(context, response); } @@ -5573,18 +5589,20 @@ private static SummarizeIntelligenceFindingsPage createEmptyPage() { @Override protected SummarizeIntelligenceFindingsPage createPage( - PageContext< + @Nullable + PageContext< SummarizeIntelligenceFindingsRequest, SummarizeIntelligenceFindingsResponse, FindingSummary> context, - SummarizeIntelligenceFindingsResponse response) { + @Nullable SummarizeIntelligenceFindingsResponse response) { return new SummarizeIntelligenceFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< SummarizeIntelligenceFindingsRequest, SummarizeIntelligenceFindingsResponse, FindingSummary> @@ -5603,7 +5621,7 @@ public static class SummarizeIntelligenceFindingsFixedSizeCollection SummarizeIntelligenceFindingsFixedSizeCollection> { private SummarizeIntelligenceFindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5613,7 +5631,7 @@ private static SummarizeIntelligenceFindingsFixedSizeCollection createEmptyColle @Override protected SummarizeIntelligenceFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SummarizeIntelligenceFindingsFixedSizeCollection(pages, collectionSize); } } @@ -5656,12 +5674,13 @@ public static class ListIntelligenceFindingRevisionsPage ListIntelligenceFindingRevisionsPage> { private ListIntelligenceFindingRevisionsPage( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingRevisionsRequest, ListIntelligenceFindingRevisionsResponse, IntelligenceFindingRevision> context, - ListIntelligenceFindingRevisionsResponse response) { + @Nullable ListIntelligenceFindingRevisionsResponse response) { super(context, response); } @@ -5671,18 +5690,20 @@ private static ListIntelligenceFindingRevisionsPage createEmptyPage() { @Override protected ListIntelligenceFindingRevisionsPage createPage( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingRevisionsRequest, ListIntelligenceFindingRevisionsResponse, IntelligenceFindingRevision> context, - ListIntelligenceFindingRevisionsResponse response) { + @Nullable ListIntelligenceFindingRevisionsResponse response) { return new ListIntelligenceFindingRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListIntelligenceFindingRevisionsRequest, ListIntelligenceFindingRevisionsResponse, IntelligenceFindingRevision> @@ -5701,7 +5722,7 @@ public static class ListIntelligenceFindingRevisionsFixedSizeCollection ListIntelligenceFindingRevisionsFixedSizeCollection> { private ListIntelligenceFindingRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5711,7 +5732,7 @@ private static ListIntelligenceFindingRevisionsFixedSizeCollection createEmptyCo @Override protected ListIntelligenceFindingRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIntelligenceFindingRevisionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java index 712042687c06..2e8f8cfbb8ed 100644 --- a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java +++ b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -410,7 +411,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); } @@ -430,7 +431,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageControlStubSettings.newBuilder(clientContext)); } diff --git a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java index d40af60cc678..6e4b95a907dd 100644 --- a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java +++ b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java @@ -82,6 +82,7 @@ import com.google.storage.control.v2.UpdateProjectIntelligenceConfigRequest; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,11 +94,12 @@ @Generated("by gapic-generator-java") public abstract class StorageControlStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java index 3769f49f3946..28ae6523682a 100644 --- a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java +++ b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java @@ -117,6 +117,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1003,7 +1004,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); } @@ -1214,7 +1215,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/AnywhereCacheName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/AnywhereCacheName.java index ab81bc77997b..7ed5064396db 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/AnywhereCacheName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/AnywhereCacheName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String bucket, String anywhereCache) .toString(); } - public static AnywhereCacheName parse(String formattedString) { + public static @Nullable AnywhereCacheName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnywhereCacheName> values) { List list = new ArrayList<>(values.size()); for (AnywhereCacheName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java index d89d68770f8f..e274119da0a8 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String bucket) { return newBuilder().setProject(project).setBucket(bucket).build().toString(); } - public static BucketName parse(String formattedString) { + public static @Nullable BucketName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BucketName> values) { List list = new ArrayList<>(values.size()); for (BucketName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java index 8f02d9090599..4e890578a8d0 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String bucket, String folder) { return newBuilder().setProject(project).setBucket(bucket).setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -147,7 +148,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceConfigName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceConfigName.java index edb46ec36ae7..ce7d46d4fdec 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceConfigName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceConfigName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -149,7 +150,7 @@ public static String formatProjectLocationName(String project, String location) return newProjectLocationBuilder().setProject(project).setLocation(location).build().toString(); } - public static IntelligenceConfigName parse(String formattedString) { + public static @Nullable IntelligenceConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntelligenceConfigName> values) { List list = new ArrayList<>(values.size()); for (IntelligenceConfigName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingName.java index 03cbc7a02f8b..020a1653a447 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String intelligence .toString(); } - public static IntelligenceFindingName parse(String formattedString) { + public static @Nullable IntelligenceFindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntelligenceFindingName> values) { List list = new ArrayList<>(values.size()); for (IntelligenceFindingName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingRevisionName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingRevisionName.java index 6eac2a6ed223..617f0e17a90e 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingRevisionName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/IntelligenceFindingRevisionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static IntelligenceFindingRevisionName parse(String formattedString) { + public static @Nullable IntelligenceFindingRevisionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List forma return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IntelligenceFindingRevisionName> values) { List list = new ArrayList<>(values.size()); for (IntelligenceFindingRevisionName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/LocationName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/LocationName.java index de383b78faa9..327c28fa37b3 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/LocationName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java index 409acde431d5..77a9d8fa06a0 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String bucket, String managedFolder) .toString(); } - public static ManagedFolderName parse(String formattedString) { + public static @Nullable ManagedFolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ManagedFolderName> values) { List list = new ArrayList<>(values.size()); for (ManagedFolderName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java index 932cb1c43397..e0991495ec15 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java +++ b/java-storage/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String bucket) { return newBuilder().setProject(project).setBucket(bucket).build().toString(); } - public static StorageLayoutName parse(String formattedString) { + public static @Nullable StorageLayoutName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StorageLayoutName> values) { List list = new ArrayList<>(values.size()); for (StorageLayoutName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java index 64f36d73175a..e6ad306955a6 100644 --- a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java +++ b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String bucket) { return newBuilder().setProject(project).setBucket(bucket).build().toString(); } - public static BucketName parse(String formattedString) { + public static @Nullable BucketName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BucketName> values) { List list = new ArrayList<>(values.size()); for (BucketName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java index b9ccbab4b6fa..bd08408bab43 100644 --- a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java +++ b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java index 790851e53aa8..34f497211e02 100644 --- a/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java +++ b/java-storage/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java index 348533b9e9d7..64674f6601dd 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsClient.java @@ -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. /** @@ -302,7 +303,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageBatchOperationsClient implements BackgroundResource { - private final StorageBatchOperationsSettings settings; + private final @Nullable StorageBatchOperationsSettings settings; private final StorageBatchOperationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -351,7 +352,7 @@ protected StorageBatchOperationsClient(StorageBatchOperationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final StorageBatchOperationsSettings getSettings() { + public final @Nullable StorageBatchOperationsSettings getSettings() { return settings; } @@ -400,7 +401,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Format: projects/{project_id}/locations/global. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(LocationName parent) { + public final ListJobsPagedResponse listJobs(@Nullable LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -569,7 +570,7 @@ public final UnaryCallable listJobsCallable() * projects/{project_id}/locations/global/jobs/{job_id} . * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -689,7 +690,7 @@ public final UnaryCallable getJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createJobAsync( - LocationName parent, Job job, String jobId) { + @Nullable LocationName parent, Job job, String jobId) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -854,7 +855,7 @@ public final UnaryCallable createJobCallable() { * projects/{project_id}/locations/global/jobs/{job_id} . * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -973,7 +974,7 @@ public final UnaryCallable deleteJobCallable() { * projects/{project_id}/locations/global/jobs/{job_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CancelJobResponse cancelJob(JobName name) { + public final CancelJobResponse cancelJob(@Nullable JobName name) { CancelJobRequest request = CancelJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelJob(request); @@ -1092,7 +1093,7 @@ public final UnaryCallable cancelJobCallabl * @param parent Required. Format: projects/{project_id}/locations/global/jobs/{job_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketOperationsPagedResponse listBucketOperations(JobName parent) { + public final ListBucketOperationsPagedResponse listBucketOperations(@Nullable JobName parent) { ListBucketOperationsRequest request = ListBucketOperationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1271,7 +1272,7 @@ public final ListBucketOperationsPagedResponse listBucketOperations( * projects/{project_id}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation_id}. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BucketOperation getBucketOperation(BucketOperationName name) { + public final BucketOperation getBucketOperation(@Nullable BucketOperationName name) { GetBucketOperationRequest request = GetBucketOperationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1587,7 +1588,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1597,13 +1599,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1613,7 +1616,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1623,7 +1626,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -1661,9 +1664,10 @@ public static class ListBucketOperationsPage ListBucketOperationsPage> { private ListBucketOperationsPage( - PageContext + @Nullable + PageContext context, - ListBucketOperationsResponse response) { + @Nullable ListBucketOperationsResponse response) { super(context, response); } @@ -1673,15 +1677,17 @@ private static ListBucketOperationsPage createEmptyPage() { @Override protected ListBucketOperationsPage createPage( - PageContext + @Nullable + PageContext context, - ListBucketOperationsResponse response) { + @Nullable ListBucketOperationsResponse response) { return new ListBucketOperationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -1697,7 +1703,7 @@ public static class ListBucketOperationsFixedSizeCollection ListBucketOperationsFixedSizeCollection> { private ListBucketOperationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1707,7 +1713,7 @@ private static ListBucketOperationsFixedSizeCollection createEmptyCollection() { @Override protected ListBucketOperationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBucketOperationsFixedSizeCollection(pages, collectionSize); } } @@ -1741,8 +1747,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1752,14 +1758,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1773,7 +1779,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1783,7 +1790,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java index 7c102bf15b55..c8e4d33bc45a 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/StorageBatchOperationsSettings.java @@ -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. /** @@ -241,7 +242,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); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageBatchOperationsStubSettings.newBuilder(clientContext)); } diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java index 96c1e4325cd0..5b2da65a3756 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStub.java @@ -45,6 +45,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class StorageBatchOperationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java index 872b91c9c5f4..c35c58ac4dfa 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/StorageBatchOperationsStubSettings.java @@ -79,6 +79,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -508,7 +509,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); } @@ -613,7 +614,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java index 6c3b2472d83e..0c950f73637d 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/BucketOperationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String job, String .toString(); } - public static BucketOperationName parse(String formattedString) { + public static @Nullable BucketOperationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BucketOperationName> values) { List list = new ArrayList<>(values.size()); for (BucketOperationName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobName.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobName.java index 27b59e38f5da..beccc750fd01 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobName.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/LocationName.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/LocationName.java index bee488272d0e..e42ed5545f93 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/LocationName.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java index 5a5159d7bc69..a6a7f4714cba 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsClient.java @@ -43,6 +43,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. /** @@ -436,7 +437,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageInsightsClient implements BackgroundResource { - private final StorageInsightsSettings settings; + private final @Nullable StorageInsightsSettings settings; private final StorageInsightsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -484,7 +485,7 @@ protected StorageInsightsClient(StorageInsightsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final StorageInsightsSettings getSettings() { + public final @Nullable StorageInsightsSettings getSettings() { return settings; } @@ -532,7 +533,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListReportConfigsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportConfigsPagedResponse listReportConfigs(LocationName parent) { + public final ListReportConfigsPagedResponse listReportConfigs(@Nullable LocationName parent) { ListReportConfigsRequest request = ListReportConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -701,7 +702,7 @@ public final ListReportConfigsPagedResponse listReportConfigs(ListReportConfigsR * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportConfig getReportConfig(ReportConfigName name) { + public final ReportConfig getReportConfig(@Nullable ReportConfigName name) { GetReportConfigRequest request = GetReportConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReportConfig(request); @@ -812,7 +813,8 @@ public final UnaryCallable getReportConfig * @param reportConfig Required. The resource being created * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportConfig createReportConfig(LocationName parent, ReportConfig reportConfig) { + public final ReportConfig createReportConfig( + @Nullable LocationName parent, ReportConfig reportConfig) { CreateReportConfigRequest request = CreateReportConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1029,7 +1031,7 @@ public final UnaryCallable updateReport * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReportConfig(ReportConfigName name) { + public final void deleteReportConfig(@Nullable ReportConfigName name) { DeleteReportConfigRequest request = DeleteReportConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1147,7 +1149,7 @@ public final UnaryCallable deleteReportConfigC * @param parent Required. Parent value for ListReportDetailsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReportDetailsPagedResponse listReportDetails(ReportConfigName parent) { + public final ListReportDetailsPagedResponse listReportDetails(@Nullable ReportConfigName parent) { ListReportDetailsRequest request = ListReportDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1320,7 +1322,7 @@ public final ListReportDetailsPagedResponse listReportDetails(ListReportDetailsR * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReportDetail getReportDetail(ReportDetailName name) { + public final ReportDetail getReportDetail(@Nullable ReportDetailName name) { GetReportDetailRequest request = GetReportDetailRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getReportDetail(request); @@ -1439,7 +1441,7 @@ public final UnaryCallable getReportDetail * @param parent Required. Parent value for ListDatasetConfigsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetConfigsPagedResponse listDatasetConfigs(LocationName parent) { + public final ListDatasetConfigsPagedResponse listDatasetConfigs(@Nullable LocationName parent) { ListDatasetConfigsRequest request = ListDatasetConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1609,7 +1611,7 @@ public final ListDatasetConfigsPagedResponse listDatasetConfigs( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DatasetConfig getDatasetConfig(DatasetConfigName name) { + public final DatasetConfig getDatasetConfig(@Nullable DatasetConfigName name) { GetDatasetConfigRequest request = GetDatasetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDatasetConfig(request); @@ -1730,7 +1732,7 @@ public final UnaryCallable getDatasetCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetConfigAsync( - LocationName parent, DatasetConfig datasetConfig, String datasetConfigId) { + @Nullable LocationName parent, DatasetConfig datasetConfig, String datasetConfigId) { CreateDatasetConfigRequest request = CreateDatasetConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2027,7 +2029,7 @@ public final UnaryCallable updateDatasetC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatasetConfigAsync( - DatasetConfigName name) { + @Nullable DatasetConfigName name) { DeleteDatasetConfigRequest request = DeleteDatasetConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2176,7 +2178,7 @@ public final UnaryCallable deleteDatasetC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture linkDatasetAsync( - DatasetConfigName name) { + @Nullable DatasetConfigName name) { LinkDatasetRequest request = LinkDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return linkDatasetAsync(request); @@ -2319,7 +2321,7 @@ public final UnaryCallable linkDatasetCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture unlinkDatasetAsync( - DatasetConfigName name) { + @Nullable DatasetConfigName name) { UnlinkDatasetRequest request = UnlinkDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return unlinkDatasetAsync(request); @@ -2658,8 +2660,9 @@ public static class ListReportConfigsPage ListReportConfigsPage> { private ListReportConfigsPage( - PageContext context, - ListReportConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportConfigsResponse response) { super(context, response); } @@ -2669,14 +2672,16 @@ private static ListReportConfigsPage createEmptyPage() { @Override protected ListReportConfigsPage createPage( - PageContext context, - ListReportConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportConfigsResponse response) { return new ListReportConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2691,7 +2696,7 @@ public static class ListReportConfigsFixedSizeCollection ListReportConfigsFixedSizeCollection> { private ListReportConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2701,7 +2706,7 @@ private static ListReportConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListReportConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2738,8 +2743,9 @@ public static class ListReportDetailsPage ListReportDetailsPage> { private ListReportDetailsPage( - PageContext context, - ListReportDetailsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportDetailsResponse response) { super(context, response); } @@ -2749,14 +2755,16 @@ private static ListReportDetailsPage createEmptyPage() { @Override protected ListReportDetailsPage createPage( - PageContext context, - ListReportDetailsResponse response) { + @Nullable PageContext + context, + @Nullable ListReportDetailsResponse response) { return new ListReportDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2771,7 +2779,7 @@ public static class ListReportDetailsFixedSizeCollection ListReportDetailsFixedSizeCollection> { private ListReportDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2781,7 +2789,7 @@ private static ListReportDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListReportDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReportDetailsFixedSizeCollection(pages, collectionSize); } } @@ -2818,8 +2826,9 @@ public static class ListDatasetConfigsPage ListDatasetConfigsPage> { private ListDatasetConfigsPage( - PageContext context, - ListDatasetConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListDatasetConfigsResponse response) { super(context, response); } @@ -2829,14 +2838,16 @@ private static ListDatasetConfigsPage createEmptyPage() { @Override protected ListDatasetConfigsPage createPage( - PageContext context, - ListDatasetConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListDatasetConfigsResponse response) { return new ListDatasetConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2851,7 +2862,7 @@ public static class ListDatasetConfigsFixedSizeCollection ListDatasetConfigsFixedSizeCollection> { private ListDatasetConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2861,7 +2872,7 @@ private static ListDatasetConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2895,8 +2906,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2906,14 +2917,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2927,7 +2938,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2937,7 +2949,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsSettings.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsSettings.java index 1abdc5543f89..5292442a2e74 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsSettings.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/StorageInsightsSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -300,7 +301,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); } @@ -320,7 +321,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageInsightsStubSettings.newBuilder(clientContext)); } diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStub.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStub.java index 18621cf3aa1e..ace54921b753 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStub.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStub.java @@ -55,6 +55,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class StorageInsightsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java index c7df974f7442..2898ddc87c81 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/StorageInsightsStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -659,7 +660,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); } @@ -801,7 +802,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listReportConfigsSettings = PagedCallSettings.newBuilder(LIST_REPORT_CONFIGS_PAGE_STR_FACT); diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfigName.java b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfigName.java index 17f4756a9bbe..d0e2b212670a 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfigName.java +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String datasetConfi .toString(); } - public static DatasetConfigName parse(String formattedString) { + public static @Nullable DatasetConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetConfigName> values) { List list = new ArrayList<>(values.size()); for (DatasetConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/LocationName.java b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/LocationName.java index f48021e4ab59..438a52177b87 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/LocationName.java +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportConfigName.java b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportConfigName.java index d8b23c7155b8..d44a78abe861 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportConfigName.java +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reportConfig .toString(); } - public static ReportConfigName parse(String formattedString) { + public static @Nullable ReportConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportConfigName> values) { List list = new ArrayList<>(values.size()); for (ReportConfigName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportDetailName.java b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportDetailName.java index 0772bef79ce7..984f5e51b7b9 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportDetailName.java +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/ReportDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReportDetailName parse(String formattedString) { + public static @Nullable ReportDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReportDetailName> values) { List list = new ArrayList<>(values.size()); for (ReportDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java index 026da64c87db..2af8dc48b684 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java @@ -34,6 +34,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CompanyServiceClient implements BackgroundResource { - private final CompanyServiceSettings settings; + private final @Nullable CompanyServiceSettings settings; private final CompanyServiceStub stub; /** Constructs an instance of CompanyServiceClient with default settings. */ @@ -258,7 +259,7 @@ protected CompanyServiceClient(CompanyServiceStub stub) { this.stub = stub; } - public final CompanyServiceSettings getSettings() { + public final @Nullable CompanyServiceSettings getSettings() { return settings; } @@ -291,7 +292,7 @@ public CompanyServiceStub getStub() { * @param company Required. The company to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company createCompany(TenantName parent, Company company) { + public final Company createCompany(@Nullable TenantName parent, Company company) { CreateCompanyRequest request = CreateCompanyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -411,7 +412,7 @@ public final UnaryCallable createCompanyCallable( * example, "projects/api-test-project/tenants/foo/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company getCompany(CompanyName name) { + public final Company getCompany(@Nullable CompanyName name) { GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCompany(request); @@ -614,7 +615,7 @@ public final UnaryCallable updateCompanyCallable( * example, "projects/foo/tenants/bar/companies/baz". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCompany(CompanyName name) { + public final void deleteCompany(@Nullable CompanyName name) { DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCompany(request); @@ -728,7 +729,7 @@ public final UnaryCallable deleteCompanyCallable() * "projects/foo/tenants/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompaniesPagedResponse listCompanies(TenantName parent) { + public final ListCompaniesPagedResponse listCompanies(@Nullable TenantName parent) { ListCompaniesRequest request = ListCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -931,8 +932,8 @@ public static class ListCompaniesPage ListCompaniesRequest, ListCompaniesResponse, Company, ListCompaniesPage> { private ListCompaniesPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { super(context, response); } @@ -942,14 +943,14 @@ private static ListCompaniesPage createEmptyPage() { @Override protected ListCompaniesPage createPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { return new ListCompaniesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -963,7 +964,8 @@ public static class ListCompaniesFixedSizeCollection ListCompaniesPage, ListCompaniesFixedSizeCollection> { - private ListCompaniesFixedSizeCollection(List pages, int collectionSize) { + private ListCompaniesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -973,7 +975,7 @@ private static ListCompaniesFixedSizeCollection createEmptyCollection() { @Override protected ListCompaniesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCompaniesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java index e3e8e4c0d3e3..e5d52c0d797f 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompanyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java index d4139e9c98a8..8984dfddaf60 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java @@ -24,6 +24,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. /** @@ -132,7 +133,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CompletionClient implements BackgroundResource { - private final CompletionSettings settings; + private final @Nullable CompletionSettings settings; private final CompletionStub stub; /** Constructs an instance of CompletionClient with default settings. */ @@ -170,7 +171,7 @@ protected CompletionClient(CompletionStub stub) { this.stub = stub; } - public final CompletionSettings getSettings() { + public final @Nullable CompletionSettings getSettings() { return settings; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java index d0b94b7c7e34..0a92e4f8ca57 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -146,7 +147,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); } @@ -166,7 +167,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java index 806d8fdf7666..d266ef96ebcd 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java @@ -24,6 +24,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. /** @@ -131,7 +132,7 @@ @NullMarked @Generated("by gapic-generator-java") public class EventServiceClient implements BackgroundResource { - private final EventServiceSettings settings; + private final @Nullable EventServiceSettings settings; private final EventServiceStub stub; /** Constructs an instance of EventServiceClient with default settings. */ @@ -170,7 +171,7 @@ protected EventServiceClient(EventServiceStub stub) { this.stub = stub; } - public final EventServiceSettings getSettings() { + public final @Nullable EventServiceSettings getSettings() { return settings; } @@ -207,7 +208,7 @@ public EventServiceStub getStub() { * that uses Cloud Talent Solution. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientEvent createClientEvent(TenantName parent, ClientEvent clientEvent) { + public final ClientEvent createClientEvent(@Nullable TenantName parent, ClientEvent clientEvent) { CreateClientEventRequest request = CreateClientEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java index dc21081cfc0e..27ba2b696609 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -147,7 +148,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); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java index 81d6bfd4b758..29c248db293c 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java @@ -39,6 +39,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class JobServiceClient implements BackgroundResource { - private final JobServiceSettings settings; + private final @Nullable JobServiceSettings settings; private final JobServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -363,7 +364,7 @@ protected JobServiceClient(JobServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final JobServiceSettings getSettings() { + public final @Nullable JobServiceSettings getSettings() { return settings; } @@ -415,7 +416,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param job Required. The Job to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(TenantName parent, Job job) { + public final Job createJob(@Nullable TenantName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -543,7 +544,7 @@ public final UnaryCallable createJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchCreateJobsAsync(TenantName parent, List jobs) { + batchCreateJobsAsync(@Nullable TenantName parent, List jobs) { BatchCreateJobsRequest request = BatchCreateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -696,7 +697,7 @@ public final UnaryCallable batchCreateJobsCal * "projects/foo/tenants/bar/jobs/baz". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -911,7 +912,7 @@ public final UnaryCallable updateJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchUpdateJobsAsync(TenantName parent, List jobs) { + batchUpdateJobsAsync(@Nullable TenantName parent, List jobs) { BatchUpdateJobsRequest request = BatchUpdateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1069,7 +1070,7 @@ public final UnaryCallable batchUpdateJobsCal * "projects/foo/tenants/bar/jobs/baz". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -1194,7 +1195,7 @@ public final UnaryCallable deleteJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - batchDeleteJobsAsync(TenantName parent, List names) { + batchDeleteJobsAsync(@Nullable TenantName parent, List names) { BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1374,7 +1375,7 @@ public final UnaryCallable batchDeleteJobsCal * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(TenantName parent, String filter) { + public final ListJobsPagedResponse listJobs(@Nullable TenantName parent, String filter) { ListJobsRequest request = ListJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1776,7 +1777,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1786,13 +1788,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1802,7 +1805,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1812,7 +1815,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java index 5ebef3d23d5c..7fc4c624b8c6 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,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); } @@ -264,7 +265,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java index e84b69375a39..6752c4e4ec8c 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java @@ -34,6 +34,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. /** @@ -218,7 +219,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TenantServiceClient implements BackgroundResource { - private final TenantServiceSettings settings; + private final @Nullable TenantServiceSettings settings; private final TenantServiceStub stub; /** Constructs an instance of TenantServiceClient with default settings. */ @@ -258,7 +259,7 @@ protected TenantServiceClient(TenantServiceStub stub) { this.stub = stub; } - public final TenantServiceSettings getSettings() { + public final @Nullable TenantServiceSettings getSettings() { return settings; } @@ -290,7 +291,7 @@ public TenantServiceStub getStub() { * @param tenant Required. The tenant to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant createTenant(ProjectName parent, Tenant tenant) { + public final Tenant createTenant(@Nullable ProjectName parent, Tenant tenant) { CreateTenantRequest request = CreateTenantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -409,7 +410,7 @@ public final UnaryCallable createTenantCallable() { * "projects/foo/tenants/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant getTenant(TenantName name) { + public final Tenant getTenant(@Nullable TenantName name) { GetTenantRequest request = GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTenant(request); @@ -612,7 +613,7 @@ public final UnaryCallable updateTenantCallable() { * "projects/foo/tenants/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTenant(TenantName name) { + public final void deleteTenant(@Nullable TenantName name) { DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTenant(request); @@ -725,7 +726,7 @@ public final UnaryCallable deleteTenantCallable() { *

The format is "projects/{project_id}", for example, "projects/foo". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTenantsPagedResponse listTenants(ProjectName parent) { + public final ListTenantsPagedResponse listTenants(@Nullable ProjectName parent) { ListTenantsRequest request = ListTenantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -920,8 +921,8 @@ public static class ListTenantsPage extends AbstractPage { private ListTenantsPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { super(context, response); } @@ -931,14 +932,14 @@ private static ListTenantsPage createEmptyPage() { @Override protected ListTenantsPage createPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { return new ListTenantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -952,7 +953,8 @@ public static class ListTenantsFixedSizeCollection ListTenantsPage, ListTenantsFixedSizeCollection> { - private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + private ListTenantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -962,7 +964,7 @@ private static ListTenantsFixedSizeCollection createEmptyCollection() { @Override protected ListTenantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTenantsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java index 556115efc0aa..cbad49be5d36 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,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); } @@ -192,7 +193,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TenantServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java index a967acd47ca0..e7ed5b3021dc 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -308,7 +309,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); } @@ -393,7 +394,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java index 44df936eca71..258de1e0f77b 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -281,7 +282,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java index c9bae15c5a48..aa86dff6a55f 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -215,7 +216,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); } @@ -275,7 +276,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createClientEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java index 889236a27047..51ea1425d404 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class JobServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java index a0cfb4bf7258..6e8c04428b41 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -404,7 +405,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); } @@ -519,7 +520,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java index 1aa42e9465b6..42eca87f105e 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -307,7 +308,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); } @@ -392,7 +393,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java index 189a117ad4cf..36d5a1570d4b 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -34,6 +34,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. /** @@ -221,7 +222,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompanyServiceClient implements BackgroundResource { - private final CompanyServiceSettings settings; + private final @Nullable CompanyServiceSettings settings; private final CompanyServiceStub stub; /** Constructs an instance of CompanyServiceClient with default settings. */ @@ -261,7 +262,7 @@ protected CompanyServiceClient(CompanyServiceStub stub) { this.stub = stub; } - public final CompanyServiceSettings getSettings() { + public final @Nullable CompanyServiceSettings getSettings() { return settings; } @@ -295,7 +296,7 @@ public CompanyServiceStub getStub() { * @param company Required. The company to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company createCompany(ProjectName parent, Company company) { + public final Company createCompany(@Nullable ProjectName parent, Company company) { CreateCompanyRequest request = CreateCompanyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -330,7 +331,7 @@ public final Company createCompany(ProjectName parent, Company company) { * @param company Required. The company to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company createCompany(TenantName parent, Company company) { + public final Company createCompany(@Nullable TenantName parent, Company company) { CreateCompanyRequest request = CreateCompanyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -454,7 +455,7 @@ public final UnaryCallable createCompanyCallable( * "projects/api-test-project/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company getCompany(CompanyName name) { + public final Company getCompany(@Nullable CompanyName name) { GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCompany(request); @@ -659,7 +660,7 @@ public final UnaryCallable updateCompanyCallable( * "projects/foo/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCompany(CompanyName name) { + public final void deleteCompany(@Nullable CompanyName name) { DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCompany(request); @@ -782,7 +783,7 @@ public final UnaryCallable deleteCompanyCallable() * "projects/foo". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { + public final ListCompaniesPagedResponse listCompanies(@Nullable ProjectName parent) { ListCompaniesRequest request = ListCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -817,7 +818,7 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { * "projects/foo". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompaniesPagedResponse listCompanies(TenantName parent) { + public final ListCompaniesPagedResponse listCompanies(@Nullable TenantName parent) { ListCompaniesRequest request = ListCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1022,8 +1023,8 @@ public static class ListCompaniesPage ListCompaniesRequest, ListCompaniesResponse, Company, ListCompaniesPage> { private ListCompaniesPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { super(context, response); } @@ -1033,14 +1034,14 @@ private static ListCompaniesPage createEmptyPage() { @Override protected ListCompaniesPage createPage( - PageContext context, - ListCompaniesResponse response) { + @Nullable PageContext context, + @Nullable ListCompaniesResponse response) { return new ListCompaniesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1054,7 +1055,8 @@ public static class ListCompaniesFixedSizeCollection ListCompaniesPage, ListCompaniesFixedSizeCollection> { - private ListCompaniesFixedSizeCollection(List pages, int collectionSize) { + private ListCompaniesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1064,7 +1066,7 @@ private static ListCompaniesFixedSizeCollection createEmptyCollection() { @Override protected ListCompaniesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCompaniesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java index 5e8bb448f5d8..3b5ecca6b0b7 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -174,7 +175,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); } @@ -194,7 +195,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompanyServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java index 5d3acad7a3ee..c8509ef49aa4 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -25,6 +25,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. /** @@ -136,7 +137,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CompletionClient implements BackgroundResource { - private final CompletionSettings settings; + private final @Nullable CompletionSettings settings; private final CompletionStub stub; /** Constructs an instance of CompletionClient with default settings. */ @@ -174,7 +175,7 @@ protected CompletionClient(CompletionStub stub) { this.stub = stub; } - public final CompletionSettings getSettings() { + public final @Nullable CompletionSettings getSettings() { return settings; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java index 9e33cdc7906c..2b9315b8c3dd 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -147,7 +148,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); } @@ -167,7 +168,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CompletionStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java index 15526fde65ca..b83a23a442d5 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -25,6 +25,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. /** @@ -134,7 +135,7 @@ @BetaApi @Generated("by gapic-generator-java") public class EventServiceClient implements BackgroundResource { - private final EventServiceSettings settings; + private final @Nullable EventServiceSettings settings; private final EventServiceStub stub; /** Constructs an instance of EventServiceClient with default settings. */ @@ -173,7 +174,7 @@ protected EventServiceClient(EventServiceStub stub) { this.stub = stub; } - public final EventServiceSettings getSettings() { + public final @Nullable EventServiceSettings getSettings() { return settings; } @@ -211,7 +212,8 @@ public EventServiceStub getStub() { * that uses Cloud Talent Solution. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clientEvent) { + public final ClientEvent createClientEvent( + @Nullable ProjectName parent, ClientEvent clientEvent) { CreateClientEventRequest request = CreateClientEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -250,7 +252,7 @@ public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clien * that uses Cloud Talent Solution. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientEvent createClientEvent(TenantName parent, ClientEvent clientEvent) { + public final ClientEvent createClientEvent(@Nullable TenantName parent, ClientEvent clientEvent) { CreateClientEventRequest request = CreateClientEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java index f7ca25d3cfe2..56a13738a524 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -148,7 +149,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); } @@ -168,7 +169,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EventServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java index a14d1bc85e05..feb5dbbbfbe0 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -38,6 +38,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. /** @@ -323,7 +324,7 @@ @BetaApi @Generated("by gapic-generator-java") public class JobServiceClient implements BackgroundResource { - private final JobServiceSettings settings; + private final @Nullable JobServiceSettings settings; private final JobServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -369,7 +370,7 @@ protected JobServiceClient(JobServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final JobServiceSettings getSettings() { + public final @Nullable JobServiceSettings getSettings() { return settings; } @@ -422,7 +423,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param job Required. The Job to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(ProjectName parent, Job job) { + public final Job createJob(@Nullable ProjectName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -459,7 +460,7 @@ public final Job createJob(ProjectName parent, Job job) { * @param job Required. The Job to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(TenantName parent, Job job) { + public final Job createJob(@Nullable TenantName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -589,7 +590,7 @@ public final UnaryCallable createJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateJobsAsync( - ProjectName parent, List jobs) { + @Nullable ProjectName parent, List jobs) { BatchCreateJobsRequest request = BatchCreateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -625,7 +626,7 @@ public final OperationFuture batchCr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchCreateJobsAsync( - TenantName parent, List jobs) { + @Nullable TenantName parent, List jobs) { BatchCreateJobsRequest request = BatchCreateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -780,7 +781,7 @@ public final UnaryCallable batchCreateJobsCal * "projects/foo/jobs/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -990,7 +991,7 @@ public final UnaryCallable updateJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateJobsAsync( - ProjectName parent, List jobs) { + @Nullable ProjectName parent, List jobs) { BatchUpdateJobsRequest request = BatchUpdateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1026,7 +1027,7 @@ public final OperationFuture batchUp * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchUpdateJobsAsync( - TenantName parent, List jobs) { + @Nullable TenantName parent, List jobs) { BatchUpdateJobsRequest request = BatchUpdateJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1186,7 +1187,7 @@ public final UnaryCallable batchUpdateJobsCal * "projects/foo/jobs/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -1316,7 +1317,7 @@ public final UnaryCallable deleteJobCallable() { *

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteJobs(ProjectName parent, String filter) { + public final void batchDeleteJobs(@Nullable ProjectName parent, String filter) { BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1358,7 +1359,7 @@ public final void batchDeleteJobs(ProjectName parent, String filter) { *

Sample Query: companyName = "projects/foo/companies/bar" AND requisitionId = "req-1" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteJobs(TenantName parent, String filter) { + public final void batchDeleteJobs(@Nullable TenantName parent, String filter) { BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1510,7 +1511,7 @@ public final UnaryCallable batchDeleteJobsCallabl * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { + public final ListJobsPagedResponse listJobs(@Nullable ProjectName parent, String filter) { ListJobsRequest request = ListJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1566,7 +1567,7 @@ public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(TenantName parent, String filter) { + public final ListJobsPagedResponse listJobs(@Nullable TenantName parent, String filter) { ListJobsRequest request = ListJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2093,7 +2094,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -2103,13 +2105,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2119,7 +2122,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2129,7 +2132,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -2161,8 +2164,9 @@ public static class SearchJobsPage SearchJobsRequest, SearchJobsResponse, SearchJobsResponse.MatchingJob, SearchJobsPage> { private SearchJobsPage( - PageContext context, - SearchJobsResponse response) { + @Nullable PageContext + context, + @Nullable SearchJobsResponse response) { super(context, response); } @@ -2172,14 +2176,16 @@ private static SearchJobsPage createEmptyPage() { @Override protected SearchJobsPage createPage( - PageContext context, - SearchJobsResponse response) { + @Nullable PageContext + context, + @Nullable SearchJobsResponse response) { return new SearchJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2193,7 +2199,8 @@ public static class SearchJobsFixedSizeCollection SearchJobsPage, SearchJobsFixedSizeCollection> { - private SearchJobsFixedSizeCollection(List pages, int collectionSize) { + private SearchJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2203,7 +2210,7 @@ private static SearchJobsFixedSizeCollection createEmptyCollection() { @Override protected SearchJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchJobsFixedSizeCollection(pages, collectionSize); } } @@ -2240,8 +2247,9 @@ public static class SearchJobsForAlertPage SearchJobsForAlertPage> { private SearchJobsForAlertPage( - PageContext context, - SearchJobsResponse response) { + @Nullable PageContext + context, + @Nullable SearchJobsResponse response) { super(context, response); } @@ -2251,14 +2259,16 @@ private static SearchJobsForAlertPage createEmptyPage() { @Override protected SearchJobsForAlertPage createPage( - PageContext context, - SearchJobsResponse response) { + @Nullable PageContext + context, + @Nullable SearchJobsResponse response) { return new SearchJobsForAlertPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2273,7 +2283,7 @@ public static class SearchJobsForAlertFixedSizeCollection SearchJobsForAlertFixedSizeCollection> { private SearchJobsForAlertFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2283,7 +2293,7 @@ private static SearchJobsForAlertFixedSizeCollection createEmptyCollection() { @Override protected SearchJobsForAlertFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchJobsForAlertFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java index 9572918f70a3..21c0e07c7b72 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,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); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(JobServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java index 31a371572b1f..1119348d5da7 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java @@ -34,6 +34,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. /** @@ -219,7 +220,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TenantServiceClient implements BackgroundResource { - private final TenantServiceSettings settings; + private final @Nullable TenantServiceSettings settings; private final TenantServiceStub stub; /** Constructs an instance of TenantServiceClient with default settings. */ @@ -259,7 +260,7 @@ protected TenantServiceClient(TenantServiceStub stub) { this.stub = stub; } - public final TenantServiceSettings getSettings() { + public final @Nullable TenantServiceSettings getSettings() { return settings; } @@ -291,7 +292,7 @@ public TenantServiceStub getStub() { * @param tenant Required. The tenant to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant createTenant(ProjectName parent, Tenant tenant) { + public final Tenant createTenant(@Nullable ProjectName parent, Tenant tenant) { CreateTenantRequest request = CreateTenantRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -410,7 +411,7 @@ public final UnaryCallable createTenantCallable() { * "projects/foo/tenants/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Tenant getTenant(TenantName name) { + public final Tenant getTenant(@Nullable TenantName name) { GetTenantRequest request = GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTenant(request); @@ -605,7 +606,7 @@ public final UnaryCallable updateTenantCallable() { * "projects/foo/tenants/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTenant(TenantName name) { + public final void deleteTenant(@Nullable TenantName name) { DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTenant(request); @@ -718,7 +719,7 @@ public final UnaryCallable deleteTenantCallable() { *

The format is "projects/{project_id}", for example, "projects/foo". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTenantsPagedResponse listTenants(ProjectName parent) { + public final ListTenantsPagedResponse listTenants(@Nullable ProjectName parent) { ListTenantsRequest request = ListTenantsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -913,8 +914,8 @@ public static class ListTenantsPage extends AbstractPage { private ListTenantsPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { super(context, response); } @@ -924,14 +925,14 @@ private static ListTenantsPage createEmptyPage() { @Override protected ListTenantsPage createPage( - PageContext context, - ListTenantsResponse response) { + @Nullable PageContext context, + @Nullable ListTenantsResponse response) { return new ListTenantsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -945,7 +946,8 @@ public static class ListTenantsFixedSizeCollection ListTenantsPage, ListTenantsFixedSizeCollection> { - private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + private ListTenantsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -955,7 +957,7 @@ private static ListTenantsFixedSizeCollection createEmptyCollection() { @Override protected ListTenantsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTenantsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java index fd9ccd4ba7de..1cb2475d1081 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,7 +174,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); } @@ -193,7 +194,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TenantServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java index d9049b16d3ed..00c3cd551253 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -309,7 +310,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); } @@ -394,7 +395,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCompanySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java index c2854f54b3ab..08a5837480ee 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -282,7 +283,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java index 3e245b83f131..0c7e6a60bdac 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -216,7 +217,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); } @@ -276,7 +277,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createClientEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java index 534a8eb06b54..8991635c1c33 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java @@ -43,6 +43,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -55,11 +56,12 @@ @Generated("by gapic-generator-java") public abstract class JobServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java index 9b68822b4c75..91f460670590 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -509,7 +510,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); } @@ -618,7 +619,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java index 862c3340127d..4990281edbc2 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java @@ -62,6 +62,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -308,7 +309,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); } @@ -393,7 +394,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyName.java b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyName.java index 5f38abfc235b..85945f81f4c3 100644 --- a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyName.java +++ b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompanyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String tenant, String company) { .toString(); } - public static CompanyName parse(String formattedString) { + public static @Nullable CompanyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompanyName> values) { List list = new ArrayList<>(values.size()); for (CompanyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobName.java b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobName.java index 166ad7c75d2e..5d384f82ee97 100644 --- a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobName.java +++ b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String tenant, String job) { return newBuilder().setProject(project).setTenant(tenant).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/ProjectName.java b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/ProjectName.java index b79618e42679..451848d998d8 100644 --- a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/ProjectName.java +++ b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantName.java b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantName.java index 259d3be0833e..8e7126f50bfa 100644 --- a/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantName.java +++ b/java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/TenantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String tenant) { return newBuilder().setProject(project).setTenant(tenant).build().toString(); } - public static TenantName parse(String formattedString) { + public static @Nullable TenantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TenantName> values) { List list = new ArrayList<>(values.size()); for (TenantName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java index 0770bc31a800..1ff41ebd98d6 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java +++ b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -129,7 +130,7 @@ public static String formatProjectCompanyName(String project, String company) { return newProjectCompanyBuilder().setProject(project).setCompany(company).build().toString(); } - public static CompanyName parse(String formattedString) { + public static @Nullable CompanyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -152,7 +153,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CompanyName> values) { List list = new ArrayList<>(values.size()); for (CompanyName value : values) { if (value == null) { @@ -201,7 +202,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java index 6da67135ab31..03f8d09b14d2 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java +++ b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -116,7 +117,7 @@ public static String formatProjectJobName(String project, String job) { return newProjectJobBuilder().setProject(project).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -139,7 +140,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -187,7 +188,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java index ef4215ea200c..e59c6b2f41fd 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java +++ b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java index f763c55de5c0..739fd567119e 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java +++ b/java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String tenant) { return newBuilder().setProject(project).setTenant(tenant).build().toString(); } - public static TenantName parse(String formattedString) { + public static @Nullable TenantName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TenantName> values) { List list = new ArrayList<>(values.size()); for (TenantName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 68e33111243e..87d2a53a1539 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -44,6 +44,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. /** @@ -502,7 +503,7 @@ @NullMarked @Generated("by gapic-generator-java") public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; + private final @Nullable CloudTasksSettings settings; private final CloudTasksStub stub; /** Constructs an instance of CloudTasksClient with default settings. */ @@ -540,7 +541,7 @@ protected CloudTasksClient(CloudTasksStub stub) { this.stub = stub; } - public final CloudTasksSettings getSettings() { + public final @Nullable CloudTasksSettings getSettings() { return settings; } @@ -574,7 +575,7 @@ public CloudTasksStub getStub() { * `projects/PROJECT_ID/locations/LOCATION_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { + public final ListQueuesPagedResponse listQueues(@Nullable LocationName parent) { ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listQueues(request); @@ -743,7 +744,7 @@ public final UnaryCallable listQueuesCall * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue getQueue(QueueName name) { + public final Queue getQueue(@Nullable QueueName name) { GetQueueRequest request = GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQueue(request); @@ -866,7 +867,7 @@ public final UnaryCallable getQueueCallable() { * queue. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue createQueue(LocationName parent, Queue queue) { + public final Queue createQueue(@Nullable LocationName parent, Queue queue) { CreateQueueRequest request = CreateQueueRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1135,7 +1136,7 @@ public final UnaryCallable updateQueueCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQueue(QueueName name) { + public final void deleteQueue(@Nullable QueueName name) { DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteQueue(request); @@ -1274,7 +1275,7 @@ public final UnaryCallable deleteQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue purgeQueue(QueueName name) { + public final Queue purgeQueue(@Nullable QueueName name) { PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return purgeQueue(request); @@ -1404,7 +1405,7 @@ public final UnaryCallable purgeQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue pauseQueue(QueueName name) { + public final Queue pauseQueue(@Nullable QueueName name) { PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseQueue(request); @@ -1539,7 +1540,7 @@ public final UnaryCallable pauseQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue resumeQueue(QueueName name) { + public final Queue resumeQueue(@Nullable QueueName name) { ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeQueue(request); @@ -1687,7 +1688,7 @@ public final UnaryCallable resumeQueueCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1844,7 +1845,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2015,7 +2016,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2174,7 +2175,7 @@ public final TestIamPermissionsResponse testIamPermissions( * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(QueueName parent) { + public final ListTasksPagedResponse listTasks(@Nullable QueueName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -2360,7 +2361,7 @@ public final UnaryCallable listTasksCallabl * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -2501,7 +2502,7 @@ public final UnaryCallable getTaskCallable() { * serve tasks efficiently. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task createTask(QueueName parent, Task task) { + public final Task createTask(@Nullable QueueName parent, Task task) { CreateTaskRequest request = CreateTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2663,7 +2664,7 @@ public final UnaryCallable createTaskCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTask(TaskName name) { + public final void deleteTask(@Nullable TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTask(request); @@ -2803,7 +2804,7 @@ public final UnaryCallable deleteTaskCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task runTask(TaskName name) { + public final Task runTask(@Nullable TaskName name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runTask(request); @@ -3165,8 +3166,8 @@ public static class ListQueuesPage extends AbstractPage { private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { super(context, response); } @@ -3176,14 +3177,14 @@ private static ListQueuesPage createEmptyPage() { @Override protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { return new ListQueuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3197,7 +3198,8 @@ public static class ListQueuesFixedSizeCollection ListQueuesPage, ListQueuesFixedSizeCollection> { - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { + private ListQueuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3207,7 +3209,7 @@ private static ListQueuesFixedSizeCollection createEmptyCollection() { @Override protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueuesFixedSizeCollection(pages, collectionSize); } } @@ -3234,8 +3236,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -3245,14 +3247,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3262,7 +3264,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3272,7 +3274,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -3306,8 +3308,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3317,14 +3319,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3338,7 +3340,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3348,7 +3351,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java index 0ad07976ef91..15e9ac4e795a 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -250,7 +251,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); } @@ -270,7 +271,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudTasksStubSettings.newBuilder(clientContext)); } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index 846ef3d0c41a..a313702e9b11 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -511,7 +512,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); } @@ -630,7 +631,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index a0a9e9a1bf2c..55d718d62a61 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -47,6 +47,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. /** @@ -606,7 +607,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; + private final @Nullable CloudTasksSettings settings; private final CloudTasksStub stub; /** Constructs an instance of CloudTasksClient with default settings. */ @@ -644,7 +645,7 @@ protected CloudTasksClient(CloudTasksStub stub) { this.stub = stub; } - public final CloudTasksSettings getSettings() { + public final @Nullable CloudTasksSettings getSettings() { return settings; } @@ -678,7 +679,7 @@ public CloudTasksStub getStub() { * `projects/PROJECT_ID/locations/LOCATION_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { + public final ListQueuesPagedResponse listQueues(@Nullable LocationName parent) { ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listQueues(request); @@ -850,7 +851,7 @@ public final UnaryCallable listQueuesCall * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue getQueue(QueueName name) { + public final Queue getQueue(@Nullable QueueName name) { GetQueueRequest request = GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQueue(request); @@ -975,7 +976,7 @@ public final UnaryCallable getQueueCallable() { * queue. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue createQueue(LocationName parent, Queue queue) { + public final Queue createQueue(@Nullable LocationName parent, Queue queue) { CreateQueueRequest request = CreateQueueRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1244,7 +1245,7 @@ public final UnaryCallable updateQueueCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQueue(QueueName name) { + public final void deleteQueue(@Nullable QueueName name) { DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteQueue(request); @@ -1383,7 +1384,7 @@ public final UnaryCallable deleteQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue purgeQueue(QueueName name) { + public final Queue purgeQueue(@Nullable QueueName name) { PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return purgeQueue(request); @@ -1514,7 +1515,7 @@ public final UnaryCallable purgeQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue pauseQueue(QueueName name) { + public final Queue pauseQueue(@Nullable QueueName name) { PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseQueue(request); @@ -1652,7 +1653,7 @@ public final UnaryCallable pauseQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue resumeQueue(QueueName name) { + public final Queue resumeQueue(@Nullable QueueName name) { ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeQueue(request); @@ -1865,7 +1866,7 @@ public final UnaryCallable uploadQueueYamlCallabl * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2022,7 +2023,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2193,7 +2194,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2352,7 +2353,7 @@ public final TestIamPermissionsResponse testIamPermissions( * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(QueueName parent) { + public final ListTasksPagedResponse listTasks(@Nullable QueueName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -2538,7 +2539,7 @@ public final UnaryCallable listTasksCallabl * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -2681,7 +2682,7 @@ public final UnaryCallable getTaskCallable() { * serve tasks efficiently. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task createTask(QueueName parent, Task task) { + public final Task createTask(@Nullable QueueName parent, Task task) { CreateTaskRequest request = CreateTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2849,7 +2850,7 @@ public final UnaryCallable createTaskCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTask(TaskName name) { + public final void deleteTask(@Nullable TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTask(request); @@ -3002,7 +3003,7 @@ public final UnaryCallable deleteTaskCallable() { * second. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDuration) { + public final LeaseTasksResponse leaseTasks(@Nullable QueueName parent, Duration leaseDuration) { LeaseTasksRequest request = LeaseTasksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3211,7 +3212,7 @@ public final UnaryCallable leaseTasksCall * is to ensure that your worker currently holds the lease. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) { + public final void acknowledgeTask(@Nullable TaskName name, Timestamp scheduleTime) { AcknowledgeTaskRequest request = AcknowledgeTaskRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3383,7 +3384,8 @@ public final UnaryCallable acknowledgeTaskCallabl * second. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task renewLease(TaskName name, Timestamp scheduleTime, Duration leaseDuration) { + public final Task renewLease( + @Nullable TaskName name, Timestamp scheduleTime, Duration leaseDuration) { RenewLeaseRequest request = RenewLeaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3539,7 +3541,7 @@ public final UnaryCallable renewLeaseCallable() { * is to ensure that your worker currently holds the lease. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task cancelLease(TaskName name, Timestamp scheduleTime) { + public final Task cancelLease(@Nullable TaskName name, Timestamp scheduleTime) { CancelLeaseRequest request = CancelLeaseRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3701,7 +3703,7 @@ public final UnaryCallable cancelLeaseCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task runTask(TaskName name) { + public final Task runTask(@Nullable TaskName name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runTask(request); @@ -4075,8 +4077,8 @@ public static class ListQueuesPage extends AbstractPage { private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { super(context, response); } @@ -4086,14 +4088,14 @@ private static ListQueuesPage createEmptyPage() { @Override protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { return new ListQueuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4107,7 +4109,8 @@ public static class ListQueuesFixedSizeCollection ListQueuesPage, ListQueuesFixedSizeCollection> { - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { + private ListQueuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4117,7 +4120,7 @@ private static ListQueuesFixedSizeCollection createEmptyCollection() { @Override protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueuesFixedSizeCollection(pages, collectionSize); } } @@ -4144,8 +4147,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -4155,14 +4158,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4172,7 +4175,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4182,7 +4185,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -4216,8 +4219,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4227,14 +4230,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4248,7 +4251,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4258,7 +4262,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java index abbd8c60f84b..c68487606edc 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -276,7 +277,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); } @@ -296,7 +297,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudTasksStubSettings.newBuilder(clientContext)); } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index ef3c9a1dd867..14cf5338903b 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -548,7 +549,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); } @@ -678,7 +679,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index 24b65cf98ba9..e2d3a6a25eea 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -45,6 +45,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. /** @@ -504,7 +505,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; + private final @Nullable CloudTasksSettings settings; private final CloudTasksStub stub; /** Constructs an instance of CloudTasksClient with default settings. */ @@ -542,7 +543,7 @@ protected CloudTasksClient(CloudTasksStub stub) { this.stub = stub; } - public final CloudTasksSettings getSettings() { + public final @Nullable CloudTasksSettings getSettings() { return settings; } @@ -576,7 +577,7 @@ public CloudTasksStub getStub() { * `projects/PROJECT_ID/locations/LOCATION_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { + public final ListQueuesPagedResponse listQueues(@Nullable LocationName parent) { ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listQueues(request); @@ -748,7 +749,7 @@ public final UnaryCallable listQueuesCall * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue getQueue(QueueName name) { + public final Queue getQueue(@Nullable QueueName name) { GetQueueRequest request = GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getQueue(request); @@ -873,7 +874,7 @@ public final UnaryCallable getQueueCallable() { * queue. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue createQueue(LocationName parent, Queue queue) { + public final Queue createQueue(@Nullable LocationName parent, Queue queue) { CreateQueueRequest request = CreateQueueRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1142,7 +1143,7 @@ public final UnaryCallable updateQueueCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteQueue(QueueName name) { + public final void deleteQueue(@Nullable QueueName name) { DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteQueue(request); @@ -1281,7 +1282,7 @@ public final UnaryCallable deleteQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue purgeQueue(QueueName name) { + public final Queue purgeQueue(@Nullable QueueName name) { PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return purgeQueue(request); @@ -1412,7 +1413,7 @@ public final UnaryCallable purgeQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue pauseQueue(QueueName name) { + public final Queue pauseQueue(@Nullable QueueName name) { PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pauseQueue(request); @@ -1550,7 +1551,7 @@ public final UnaryCallable pauseQueueCallable() { * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Queue resumeQueue(QueueName name) { + public final Queue resumeQueue(@Nullable QueueName name) { ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return resumeQueue(request); @@ -1698,7 +1699,7 @@ public final UnaryCallable resumeQueueCallable() { * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1855,7 +1856,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2026,7 +2027,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -2185,7 +2186,7 @@ public final TestIamPermissionsResponse testIamPermissions( * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTasksPagedResponse listTasks(QueueName parent) { + public final ListTasksPagedResponse listTasks(@Nullable QueueName parent) { ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTasks(request); @@ -2371,7 +2372,7 @@ public final UnaryCallable listTasksCallabl * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task getTask(TaskName name) { + public final Task getTask(@Nullable TaskName name) { GetTaskRequest request = GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTask(request); @@ -2512,7 +2513,7 @@ public final UnaryCallable getTaskCallable() { * serve tasks efficiently. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task createTask(QueueName parent, Task task) { + public final Task createTask(@Nullable QueueName parent, Task task) { CreateTaskRequest request = CreateTaskRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2674,7 +2675,7 @@ public final UnaryCallable createTaskCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTask(TaskName name) { + public final void deleteTask(@Nullable TaskName name) { DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteTask(request); @@ -2815,7 +2816,7 @@ public final UnaryCallable deleteTaskCallable() { * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Task runTask(TaskName name) { + public final Task runTask(@Nullable TaskName name) { RunTaskRequest request = RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return runTask(request); @@ -3180,8 +3181,8 @@ public static class ListQueuesPage extends AbstractPage { private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { super(context, response); } @@ -3191,14 +3192,14 @@ private static ListQueuesPage createEmptyPage() { @Override protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { + @Nullable PageContext context, + @Nullable ListQueuesResponse response) { return new ListQueuesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3212,7 +3213,8 @@ public static class ListQueuesFixedSizeCollection ListQueuesPage, ListQueuesFixedSizeCollection> { - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { + private ListQueuesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3222,7 +3224,7 @@ private static ListQueuesFixedSizeCollection createEmptyCollection() { @Override protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueuesFixedSizeCollection(pages, collectionSize); } } @@ -3249,8 +3251,8 @@ public static class ListTasksPage extends AbstractPage { private ListTasksPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { super(context, response); } @@ -3260,14 +3262,14 @@ private static ListTasksPage createEmptyPage() { @Override protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { + @Nullable PageContext context, + @Nullable ListTasksResponse response) { return new ListTasksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3277,7 +3279,7 @@ public static class ListTasksFixedSizeCollection extends AbstractFixedSizeCollection< ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - private ListTasksFixedSizeCollection(List pages, int collectionSize) { + private ListTasksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3287,7 +3289,7 @@ private static ListTasksFixedSizeCollection createEmptyCollection() { @Override protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTasksFixedSizeCollection(pages, collectionSize); } } @@ -3321,8 +3323,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3332,14 +3334,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3353,7 +3355,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3363,7 +3366,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java index 8eb075a2c019..bf8989e2e51e 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -251,7 +252,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); } @@ -271,7 +272,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudTasksStubSettings.newBuilder(clientContext)); } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index 49a3af70bb92..31b8131f9294 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -83,6 +83,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -512,7 +513,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); } @@ -631,7 +632,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); diff --git a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java index f66bc27dc736..4ac08ebe36bf 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java +++ b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java index 26671411e7a7..c014b6063404 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java +++ b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String queue) { .toString(); } - public static QueueName parse(String formattedString) { + public static @Nullable QueueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueueName> values) { List list = new ArrayList<>(values.size()); for (QueueName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java index 6ca2b781b428..611e323a39ed 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java +++ b/java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String queue, Strin .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java index f7a93390d5b1..8a700724fda5 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java index 8af9af540bdf..a24f563517ee 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String queue) { .toString(); } - public static QueueName parse(String formattedString) { + public static @Nullable QueueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueueName> values) { List list = new ArrayList<>(values.size()); for (QueueName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java index 3dfef567c599..4bdfa6c39eac 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String queue, Strin .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java index 8e0e37fcaa84..84521430c9e8 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java index 0026adcd0aa0..556308dcb3e0 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String queue) { .toString(); } - public static QueueName parse(String formattedString) { + public static @Nullable QueueName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueueName> values) { List list = new ArrayList<>(values.size()); for (QueueName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java index a64d201874ac..01dc4cfff5e7 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String queue, Strin .toString(); } - public static TaskName parse(String formattedString) { + public static @Nullable TaskName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TaskName> values) { List list = new ArrayList<>(values.size()); for (TaskName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java index f27cbdb89953..508c0defee9d 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationClient.java @@ -43,6 +43,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. /** @@ -863,7 +864,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TelcoAutomationClient implements BackgroundResource { - private final TelcoAutomationSettings settings; + private final @Nullable TelcoAutomationSettings settings; private final TelcoAutomationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -911,7 +912,7 @@ protected TelcoAutomationClient(TelcoAutomationStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TelcoAutomationSettings getSettings() { + public final @Nullable TelcoAutomationSettings getSettings() { return settings; } @@ -961,7 +962,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( - LocationName parent) { + @Nullable LocationName parent) { ListOrchestrationClustersRequest request = ListOrchestrationClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1135,7 +1136,8 @@ public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrchestrationCluster getOrchestrationCluster(OrchestrationClusterName name) { + public final OrchestrationCluster getOrchestrationCluster( + @Nullable OrchestrationClusterName name) { GetOrchestrationClusterRequest request = GetOrchestrationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1266,7 +1268,7 @@ public final OrchestrationCluster getOrchestrationCluster( */ public final OperationFuture createOrchestrationClusterAsync( - LocationName parent, + @Nullable LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) { CreateOrchestrationClusterRequest request = @@ -1441,7 +1443,7 @@ public final OrchestrationCluster getOrchestrationCluster( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteOrchestrationClusterAsync( - OrchestrationClusterName name) { + @Nullable OrchestrationClusterName name) { DeleteOrchestrationClusterRequest request = DeleteOrchestrationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1598,7 +1600,7 @@ public final OperationFuture deleteOrchestrationCluste * @param parent Required. Parent value for ListEdgeSlmsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEdgeSlmsPagedResponse listEdgeSlms(LocationName parent) { + public final ListEdgeSlmsPagedResponse listEdgeSlms(@Nullable LocationName parent) { ListEdgeSlmsRequest request = ListEdgeSlmsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1764,7 +1766,7 @@ public final UnaryCallable listEdgeSl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EdgeSlm getEdgeSlm(EdgeSlmName name) { + public final EdgeSlm getEdgeSlm(@Nullable EdgeSlmName name) { GetEdgeSlmRequest request = GetEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEdgeSlm(request); @@ -1878,7 +1880,7 @@ public final UnaryCallable getEdgeSlmCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEdgeSlmAsync( - LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { + @Nullable LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { CreateEdgeSlmRequest request = CreateEdgeSlmRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2041,7 +2043,8 @@ public final UnaryCallable createEdgeSlmCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEdgeSlmAsync(EdgeSlmName name) { + public final OperationFuture deleteEdgeSlmAsync( + @Nullable EdgeSlmName name) { DeleteEdgeSlmRequest request = DeleteEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEdgeSlmAsync(request); @@ -2190,7 +2193,7 @@ public final UnaryCallable deleteEdgeSlmCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Blueprint createBlueprint( - OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { + @Nullable OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { CreateBlueprintRequest request = CreateBlueprintRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2418,7 +2421,7 @@ public final UnaryCallable updateBlueprintCal * state of the blueprint is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint getBlueprint(BlueprintName name) { + public final Blueprint getBlueprint(@Nullable BlueprintName name) { GetBlueprintRequest request = GetBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBlueprint(request); @@ -2543,7 +2546,7 @@ public final UnaryCallable getBlueprintCallable( * invalid argument. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBlueprint(BlueprintName name) { + public final void deleteBlueprint(@Nullable BlueprintName name) { DeleteBlueprintRequest request = DeleteBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBlueprint(request); @@ -2665,7 +2668,8 @@ public final UnaryCallable deleteBlueprintCallabl * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlueprintsPagedResponse listBlueprints(OrchestrationClusterName parent) { + public final ListBlueprintsPagedResponse listBlueprints( + @Nullable OrchestrationClusterName parent) { ListBlueprintsRequest request = ListBlueprintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2841,7 +2845,7 @@ public final ListBlueprintsPagedResponse listBlueprints(ListBlueprintsRequest re * state. A new revision is committed on approval. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint approveBlueprint(BlueprintName name) { + public final Blueprint approveBlueprint(@Nullable BlueprintName name) { ApproveBlueprintRequest request = ApproveBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return approveBlueprint(request); @@ -2960,7 +2964,7 @@ public final UnaryCallable approveBlueprintC * @param name Required. The name of the blueprint being proposed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint proposeBlueprint(BlueprintName name) { + public final Blueprint proposeBlueprint(@Nullable BlueprintName name) { ProposeBlueprintRequest request = ProposeBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return proposeBlueprint(request); @@ -3078,7 +3082,7 @@ public final UnaryCallable proposeBlueprintC * @param name Required. The name of the blueprint being rejected. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint rejectBlueprint(BlueprintName name) { + public final Blueprint rejectBlueprint(@Nullable BlueprintName name) { RejectBlueprintRequest request = RejectBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return rejectBlueprint(request); @@ -3198,7 +3202,8 @@ public final UnaryCallable rejectBlueprintCal * @param name Required. The name of the blueprint to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(BlueprintName name) { + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions( + @Nullable BlueprintName name) { ListBlueprintRevisionsRequest request = ListBlueprintRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3384,7 +3389,7 @@ public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( - OrchestrationClusterName parent, String query) { + @Nullable OrchestrationClusterName parent, String query) { SearchBlueprintRevisionsRequest request = SearchBlueprintRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3580,7 +3585,7 @@ public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( - OrchestrationClusterName parent, String query) { + @Nullable OrchestrationClusterName parent, String query) { SearchDeploymentRevisionsRequest request = SearchDeploymentRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3769,7 +3774,8 @@ public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( * @param name Required. The name of the blueprint of which changes are being discarded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscardBlueprintChangesResponse discardBlueprintChanges(BlueprintName name) { + public final DiscardBlueprintChangesResponse discardBlueprintChanges( + @Nullable BlueprintName name) { DiscardBlueprintChangesRequest request = DiscardBlueprintChangesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3900,7 +3906,8 @@ public final DiscardBlueprintChangesResponse discardBlueprintChanges( * "projects/{project_id}/locations/{location_name}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPublicBlueprintsPagedResponse listPublicBlueprints(LocationName parent) { + public final ListPublicBlueprintsPagedResponse listPublicBlueprints( + @Nullable LocationName parent) { ListPublicBlueprintsRequest request = ListPublicBlueprintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4068,7 +4075,7 @@ public final ListPublicBlueprintsPagedResponse listPublicBlueprints( * @param name Required. The name of the public blueprint. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublicBlueprint getPublicBlueprint(PublicBlueprintName name) { + public final PublicBlueprint getPublicBlueprint(@Nullable PublicBlueprintName name) { GetPublicBlueprintRequest request = GetPublicBlueprintRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4192,7 +4199,7 @@ public final PublicBlueprint getPublicBlueprint(GetPublicBlueprintRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - OrchestrationClusterName parent, Deployment deployment, String deploymentId) { + @Nullable OrchestrationClusterName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4422,7 +4429,7 @@ public final UnaryCallable updateDeployment * state of the deployment is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -4546,7 +4553,7 @@ public final UnaryCallable getDeploymentCallab * @param name Required. The name of deployment to initiate delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeDeployment(DeploymentName name) { + public final void removeDeployment(@Nullable DeploymentName name) { RemoveDeploymentRequest request = RemoveDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); removeDeployment(request); @@ -4670,7 +4677,8 @@ public final UnaryCallable removeDeploymentCalla * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(OrchestrationClusterName parent) { + public final ListDeploymentsPagedResponse listDeployments( + @Nullable OrchestrationClusterName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4847,7 +4855,8 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * @param name Required. The name of the deployment to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(DeploymentName name) { + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions( + @Nullable DeploymentName name) { ListDeploymentRevisionsRequest request = ListDeploymentRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5026,7 +5035,8 @@ public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions( * @param name Required. The name of the deployment of which changes are being discarded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscardDeploymentChangesResponse discardDeploymentChanges(DeploymentName name) { + public final DiscardDeploymentChangesResponse discardDeploymentChanges( + @Nullable DeploymentName name) { DiscardDeploymentChangesRequest request = DiscardDeploymentChangesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5154,7 +5164,7 @@ public final DiscardDeploymentChangesResponse discardDeploymentChanges( * @param name Required. The name of the deployment to apply to orchestration cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment applyDeployment(DeploymentName name) { + public final Deployment applyDeployment(@Nullable DeploymentName name) { ApplyDeploymentRequest request = ApplyDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return applyDeployment(request); @@ -5273,7 +5283,8 @@ public final UnaryCallable applyDeploymentCa * @param name Required. The name of the deployment without revisionID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeDeploymentStatusResponse computeDeploymentStatus(DeploymentName name) { + public final ComputeDeploymentStatusResponse computeDeploymentStatus( + @Nullable DeploymentName name) { ComputeDeploymentStatusRequest request = ComputeDeploymentStatusRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5400,7 +5411,7 @@ public final ComputeDeploymentStatusResponse computeDeploymentStatus( * @param revisionId Required. The revision id of deployment to roll back to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment rollbackDeployment(DeploymentName name, String revisionId) { + public final Deployment rollbackDeployment(@Nullable DeploymentName name, String revisionId) { RollbackDeploymentRequest request = RollbackDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5531,7 +5542,7 @@ public final UnaryCallable rollbackDeploy * @param name Required. Name of the hydrated deployment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HydratedDeployment getHydratedDeployment(HydratedDeploymentName name) { + public final HydratedDeployment getHydratedDeployment(@Nullable HydratedDeploymentName name) { GetHydratedDeploymentRequest request = GetHydratedDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5669,7 +5680,8 @@ public final HydratedDeployment getHydratedDeployment(GetHydratedDeploymentReque * @param parent Required. The deployment managing the hydrated deployments. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(DeploymentName parent) { + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments( + @Nullable DeploymentName parent) { ListHydratedDeploymentsRequest request = ListHydratedDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5947,7 +5959,7 @@ public final HydratedDeployment updateHydratedDeployment( * @param name Required. The name of the hydrated deployment to apply. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HydratedDeployment applyHydratedDeployment(HydratedDeploymentName name) { + public final HydratedDeployment applyHydratedDeployment(@Nullable HydratedDeploymentName name) { ApplyHydratedDeploymentRequest request = ApplyHydratedDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6282,12 +6294,13 @@ public static class ListOrchestrationClustersPage ListOrchestrationClustersPage> { private ListOrchestrationClustersPage( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> context, - ListOrchestrationClustersResponse response) { + @Nullable ListOrchestrationClustersResponse response) { super(context, response); } @@ -6297,18 +6310,20 @@ private static ListOrchestrationClustersPage createEmptyPage() { @Override protected ListOrchestrationClustersPage createPage( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> context, - ListOrchestrationClustersResponse response) { + @Nullable ListOrchestrationClustersResponse response) { return new ListOrchestrationClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> @@ -6327,7 +6342,7 @@ public static class ListOrchestrationClustersFixedSizeCollection ListOrchestrationClustersFixedSizeCollection> { private ListOrchestrationClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6337,7 +6352,7 @@ private static ListOrchestrationClustersFixedSizeCollection createEmptyCollectio @Override protected ListOrchestrationClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrchestrationClustersFixedSizeCollection(pages, collectionSize); } } @@ -6370,8 +6385,8 @@ public static class ListEdgeSlmsPage extends AbstractPage { private ListEdgeSlmsPage( - PageContext context, - ListEdgeSlmsResponse response) { + @Nullable PageContext context, + @Nullable ListEdgeSlmsResponse response) { super(context, response); } @@ -6381,14 +6396,14 @@ private static ListEdgeSlmsPage createEmptyPage() { @Override protected ListEdgeSlmsPage createPage( - PageContext context, - ListEdgeSlmsResponse response) { + @Nullable PageContext context, + @Nullable ListEdgeSlmsResponse response) { return new ListEdgeSlmsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6402,7 +6417,8 @@ public static class ListEdgeSlmsFixedSizeCollection ListEdgeSlmsPage, ListEdgeSlmsFixedSizeCollection> { - private ListEdgeSlmsFixedSizeCollection(List pages, int collectionSize) { + private ListEdgeSlmsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6412,7 +6428,7 @@ private static ListEdgeSlmsFixedSizeCollection createEmptyCollection() { @Override protected ListEdgeSlmsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEdgeSlmsFixedSizeCollection(pages, collectionSize); } } @@ -6446,8 +6462,8 @@ public static class ListBlueprintsPage ListBlueprintsRequest, ListBlueprintsResponse, Blueprint, ListBlueprintsPage> { private ListBlueprintsPage( - PageContext context, - ListBlueprintsResponse response) { + @Nullable PageContext context, + @Nullable ListBlueprintsResponse response) { super(context, response); } @@ -6457,14 +6473,14 @@ private static ListBlueprintsPage createEmptyPage() { @Override protected ListBlueprintsPage createPage( - PageContext context, - ListBlueprintsResponse response) { + @Nullable PageContext context, + @Nullable ListBlueprintsResponse response) { return new ListBlueprintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6478,7 +6494,8 @@ public static class ListBlueprintsFixedSizeCollection ListBlueprintsPage, ListBlueprintsFixedSizeCollection> { - private ListBlueprintsFixedSizeCollection(List pages, int collectionSize) { + private ListBlueprintsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6488,7 +6505,7 @@ private static ListBlueprintsFixedSizeCollection createEmptyCollection() { @Override protected ListBlueprintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlueprintsFixedSizeCollection(pages, collectionSize); } } @@ -6526,9 +6543,10 @@ public static class ListBlueprintRevisionsPage ListBlueprintRevisionsPage> { private ListBlueprintRevisionsPage( - PageContext + @Nullable + PageContext context, - ListBlueprintRevisionsResponse response) { + @Nullable ListBlueprintRevisionsResponse response) { super(context, response); } @@ -6538,15 +6556,17 @@ private static ListBlueprintRevisionsPage createEmptyPage() { @Override protected ListBlueprintRevisionsPage createPage( - PageContext + @Nullable + PageContext context, - ListBlueprintRevisionsResponse response) { + @Nullable ListBlueprintRevisionsResponse response) { return new ListBlueprintRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6562,7 +6582,7 @@ public static class ListBlueprintRevisionsFixedSizeCollection ListBlueprintRevisionsFixedSizeCollection> { private ListBlueprintRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6572,7 +6592,7 @@ private static ListBlueprintRevisionsFixedSizeCollection createEmptyCollection() @Override protected ListBlueprintRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlueprintRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6610,9 +6630,11 @@ public static class SearchBlueprintRevisionsPage SearchBlueprintRevisionsPage> { private SearchBlueprintRevisionsPage( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, - SearchBlueprintRevisionsResponse response) { + @Nullable SearchBlueprintRevisionsResponse response) { super(context, response); } @@ -6622,15 +6644,19 @@ private static SearchBlueprintRevisionsPage createEmptyPage() { @Override protected SearchBlueprintRevisionsPage createPage( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, - SearchBlueprintRevisionsResponse response) { + @Nullable SearchBlueprintRevisionsResponse response) { return new SearchBlueprintRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6646,7 +6672,7 @@ public static class SearchBlueprintRevisionsFixedSizeCollection SearchBlueprintRevisionsFixedSizeCollection> { private SearchBlueprintRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6656,7 +6682,7 @@ private static SearchBlueprintRevisionsFixedSizeCollection createEmptyCollection @Override protected SearchBlueprintRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchBlueprintRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6694,9 +6720,11 @@ public static class SearchDeploymentRevisionsPage SearchDeploymentRevisionsPage> { private SearchDeploymentRevisionsPage( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, - SearchDeploymentRevisionsResponse response) { + @Nullable SearchDeploymentRevisionsResponse response) { super(context, response); } @@ -6706,15 +6734,19 @@ private static SearchDeploymentRevisionsPage createEmptyPage() { @Override protected SearchDeploymentRevisionsPage createPage( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, - SearchDeploymentRevisionsResponse response) { + @Nullable SearchDeploymentRevisionsResponse response) { return new SearchDeploymentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6730,7 +6762,7 @@ public static class SearchDeploymentRevisionsFixedSizeCollection SearchDeploymentRevisionsFixedSizeCollection> { private SearchDeploymentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6740,7 +6772,7 @@ private static SearchDeploymentRevisionsFixedSizeCollection createEmptyCollectio @Override protected SearchDeploymentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDeploymentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6778,9 +6810,10 @@ public static class ListPublicBlueprintsPage ListPublicBlueprintsPage> { private ListPublicBlueprintsPage( - PageContext + @Nullable + PageContext context, - ListPublicBlueprintsResponse response) { + @Nullable ListPublicBlueprintsResponse response) { super(context, response); } @@ -6790,15 +6823,17 @@ private static ListPublicBlueprintsPage createEmptyPage() { @Override protected ListPublicBlueprintsPage createPage( - PageContext + @Nullable + PageContext context, - ListPublicBlueprintsResponse response) { + @Nullable ListPublicBlueprintsResponse response) { return new ListPublicBlueprintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6814,7 +6849,7 @@ public static class ListPublicBlueprintsFixedSizeCollection ListPublicBlueprintsFixedSizeCollection> { private ListPublicBlueprintsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6824,7 +6859,7 @@ private static ListPublicBlueprintsFixedSizeCollection createEmptyCollection() { @Override protected ListPublicBlueprintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPublicBlueprintsFixedSizeCollection(pages, collectionSize); } } @@ -6858,8 +6893,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -6869,14 +6904,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6891,7 +6926,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6901,7 +6936,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -6939,9 +6974,10 @@ public static class ListDeploymentRevisionsPage ListDeploymentRevisionsPage> { private ListDeploymentRevisionsPage( - PageContext + @Nullable + PageContext context, - ListDeploymentRevisionsResponse response) { + @Nullable ListDeploymentRevisionsResponse response) { super(context, response); } @@ -6951,15 +6987,17 @@ private static ListDeploymentRevisionsPage createEmptyPage() { @Override protected ListDeploymentRevisionsPage createPage( - PageContext + @Nullable + PageContext context, - ListDeploymentRevisionsResponse response) { + @Nullable ListDeploymentRevisionsResponse response) { return new ListDeploymentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6975,7 +7013,7 @@ public static class ListDeploymentRevisionsFixedSizeCollection ListDeploymentRevisionsFixedSizeCollection> { private ListDeploymentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6985,7 +7023,7 @@ private static ListDeploymentRevisionsFixedSizeCollection createEmptyCollection( @Override protected ListDeploymentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -7024,10 +7062,11 @@ public static class ListHydratedDeploymentsPage ListHydratedDeploymentsPage> { private ListHydratedDeploymentsPage( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, - ListHydratedDeploymentsResponse response) { + @Nullable ListHydratedDeploymentsResponse response) { super(context, response); } @@ -7037,16 +7076,18 @@ private static ListHydratedDeploymentsPage createEmptyPage() { @Override protected ListHydratedDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, - ListHydratedDeploymentsResponse response) { + @Nullable ListHydratedDeploymentsResponse response) { return new ListHydratedDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, ApiFuture futureResponse) { @@ -7063,7 +7104,7 @@ public static class ListHydratedDeploymentsFixedSizeCollection ListHydratedDeploymentsFixedSizeCollection> { private ListHydratedDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7073,7 +7114,7 @@ private static ListHydratedDeploymentsFixedSizeCollection createEmptyCollection( @Override protected ListHydratedDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHydratedDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -7107,8 +7148,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7118,14 +7159,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7139,7 +7180,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7149,7 +7191,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java index 54ef791049ab..70de3ebd5a23 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/TelcoAutomationSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -451,7 +452,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); } @@ -471,7 +472,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TelcoAutomationStubSettings.newBuilder(clientContext)); } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java index 2892f5623421..b28aa009df6a 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStub.java @@ -96,6 +96,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -107,11 +108,12 @@ @Generated("by gapic-generator-java") public abstract class TelcoAutomationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java index c17e0beddb24..75249dec86ac 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/TelcoAutomationStubSettings.java @@ -130,6 +130,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1349,7 +1350,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); } @@ -1552,7 +1553,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listOrchestrationClustersSettings = diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java index 284cbe7a98d1..be750d40dc22 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java @@ -43,6 +43,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. /** @@ -864,7 +865,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TelcoAutomationClient implements BackgroundResource { - private final TelcoAutomationSettings settings; + private final @Nullable TelcoAutomationSettings settings; private final TelcoAutomationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -912,7 +913,7 @@ protected TelcoAutomationClient(TelcoAutomationStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TelcoAutomationSettings getSettings() { + public final @Nullable TelcoAutomationSettings getSettings() { return settings; } @@ -962,7 +963,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( - LocationName parent) { + @Nullable LocationName parent) { ListOrchestrationClustersRequest request = ListOrchestrationClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1136,7 +1137,8 @@ public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OrchestrationCluster getOrchestrationCluster(OrchestrationClusterName name) { + public final OrchestrationCluster getOrchestrationCluster( + @Nullable OrchestrationClusterName name) { GetOrchestrationClusterRequest request = GetOrchestrationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1267,7 +1269,7 @@ public final OrchestrationCluster getOrchestrationCluster( */ public final OperationFuture createOrchestrationClusterAsync( - LocationName parent, + @Nullable LocationName parent, OrchestrationCluster orchestrationCluster, String orchestrationClusterId) { CreateOrchestrationClusterRequest request = @@ -1442,7 +1444,7 @@ public final OrchestrationCluster getOrchestrationCluster( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteOrchestrationClusterAsync( - OrchestrationClusterName name) { + @Nullable OrchestrationClusterName name) { DeleteOrchestrationClusterRequest request = DeleteOrchestrationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1599,7 +1601,7 @@ public final OperationFuture deleteOrchestrationCluste * @param parent Required. Parent value for ListEdgeSlmsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEdgeSlmsPagedResponse listEdgeSlms(LocationName parent) { + public final ListEdgeSlmsPagedResponse listEdgeSlms(@Nullable LocationName parent) { ListEdgeSlmsRequest request = ListEdgeSlmsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1765,7 +1767,7 @@ public final UnaryCallable listEdgeSl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EdgeSlm getEdgeSlm(EdgeSlmName name) { + public final EdgeSlm getEdgeSlm(@Nullable EdgeSlmName name) { GetEdgeSlmRequest request = GetEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEdgeSlm(request); @@ -1879,7 +1881,7 @@ public final UnaryCallable getEdgeSlmCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEdgeSlmAsync( - LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { + @Nullable LocationName parent, EdgeSlm edgeSlm, String edgeSlmId) { CreateEdgeSlmRequest request = CreateEdgeSlmRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2042,7 +2044,8 @@ public final UnaryCallable createEdgeSlmCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEdgeSlmAsync(EdgeSlmName name) { + public final OperationFuture deleteEdgeSlmAsync( + @Nullable EdgeSlmName name) { DeleteEdgeSlmRequest request = DeleteEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEdgeSlmAsync(request); @@ -2191,7 +2194,7 @@ public final UnaryCallable deleteEdgeSlmCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Blueprint createBlueprint( - OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { + @Nullable OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { CreateBlueprintRequest request = CreateBlueprintRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2419,7 +2422,7 @@ public final UnaryCallable updateBlueprintCal * state of the blueprint is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint getBlueprint(BlueprintName name) { + public final Blueprint getBlueprint(@Nullable BlueprintName name) { GetBlueprintRequest request = GetBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBlueprint(request); @@ -2544,7 +2547,7 @@ public final UnaryCallable getBlueprintCallable( * invalid argument. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBlueprint(BlueprintName name) { + public final void deleteBlueprint(@Nullable BlueprintName name) { DeleteBlueprintRequest request = DeleteBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBlueprint(request); @@ -2666,7 +2669,8 @@ public final UnaryCallable deleteBlueprintCallabl * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlueprintsPagedResponse listBlueprints(OrchestrationClusterName parent) { + public final ListBlueprintsPagedResponse listBlueprints( + @Nullable OrchestrationClusterName parent) { ListBlueprintsRequest request = ListBlueprintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2842,7 +2846,7 @@ public final ListBlueprintsPagedResponse listBlueprints(ListBlueprintsRequest re * state. A new revision is committed on approval. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint approveBlueprint(BlueprintName name) { + public final Blueprint approveBlueprint(@Nullable BlueprintName name) { ApproveBlueprintRequest request = ApproveBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return approveBlueprint(request); @@ -2961,7 +2965,7 @@ public final UnaryCallable approveBlueprintC * @param name Required. The name of the blueprint being proposed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint proposeBlueprint(BlueprintName name) { + public final Blueprint proposeBlueprint(@Nullable BlueprintName name) { ProposeBlueprintRequest request = ProposeBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return proposeBlueprint(request); @@ -3079,7 +3083,7 @@ public final UnaryCallable proposeBlueprintC * @param name Required. The name of the blueprint being rejected. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Blueprint rejectBlueprint(BlueprintName name) { + public final Blueprint rejectBlueprint(@Nullable BlueprintName name) { RejectBlueprintRequest request = RejectBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return rejectBlueprint(request); @@ -3199,7 +3203,8 @@ public final UnaryCallable rejectBlueprintCal * @param name Required. The name of the blueprint to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(BlueprintName name) { + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions( + @Nullable BlueprintName name) { ListBlueprintRevisionsRequest request = ListBlueprintRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3385,7 +3390,7 @@ public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( - OrchestrationClusterName parent, String query) { + @Nullable OrchestrationClusterName parent, String query) { SearchBlueprintRevisionsRequest request = SearchBlueprintRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3581,7 +3586,7 @@ public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( - OrchestrationClusterName parent, String query) { + @Nullable OrchestrationClusterName parent, String query) { SearchDeploymentRevisionsRequest request = SearchDeploymentRevisionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3770,7 +3775,8 @@ public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( * @param name Required. The name of the blueprint of which changes are being discarded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscardBlueprintChangesResponse discardBlueprintChanges(BlueprintName name) { + public final DiscardBlueprintChangesResponse discardBlueprintChanges( + @Nullable BlueprintName name) { DiscardBlueprintChangesRequest request = DiscardBlueprintChangesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3901,7 +3907,8 @@ public final DiscardBlueprintChangesResponse discardBlueprintChanges( * "projects/{project_id}/locations/{location_name}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPublicBlueprintsPagedResponse listPublicBlueprints(LocationName parent) { + public final ListPublicBlueprintsPagedResponse listPublicBlueprints( + @Nullable LocationName parent) { ListPublicBlueprintsRequest request = ListPublicBlueprintsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4069,7 +4076,7 @@ public final ListPublicBlueprintsPagedResponse listPublicBlueprints( * @param name Required. The name of the public blueprint. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublicBlueprint getPublicBlueprint(PublicBlueprintName name) { + public final PublicBlueprint getPublicBlueprint(@Nullable PublicBlueprintName name) { GetPublicBlueprintRequest request = GetPublicBlueprintRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4193,7 +4200,7 @@ public final PublicBlueprint getPublicBlueprint(GetPublicBlueprintRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Deployment createDeployment( - OrchestrationClusterName parent, Deployment deployment, String deploymentId) { + @Nullable OrchestrationClusterName parent, Deployment deployment, String deploymentId) { CreateDeploymentRequest request = CreateDeploymentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4423,7 +4430,7 @@ public final UnaryCallable updateDeployment * state of the deployment is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment getDeployment(DeploymentName name) { + public final Deployment getDeployment(@Nullable DeploymentName name) { GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDeployment(request); @@ -4547,7 +4554,7 @@ public final UnaryCallable getDeploymentCallab * @param name Required. The name of deployment to initiate delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeDeployment(DeploymentName name) { + public final void removeDeployment(@Nullable DeploymentName name) { RemoveDeploymentRequest request = RemoveDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); removeDeployment(request); @@ -4671,7 +4678,8 @@ public final UnaryCallable removeDeploymentCalla * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentsPagedResponse listDeployments(OrchestrationClusterName parent) { + public final ListDeploymentsPagedResponse listDeployments( + @Nullable OrchestrationClusterName parent) { ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4848,7 +4856,8 @@ public final ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest * @param name Required. The name of the deployment to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(DeploymentName name) { + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions( + @Nullable DeploymentName name) { ListDeploymentRevisionsRequest request = ListDeploymentRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5027,7 +5036,8 @@ public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions( * @param name Required. The name of the deployment of which changes are being discarded. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiscardDeploymentChangesResponse discardDeploymentChanges(DeploymentName name) { + public final DiscardDeploymentChangesResponse discardDeploymentChanges( + @Nullable DeploymentName name) { DiscardDeploymentChangesRequest request = DiscardDeploymentChangesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5155,7 +5165,7 @@ public final DiscardDeploymentChangesResponse discardDeploymentChanges( * @param name Required. The name of the deployment to apply to orchestration cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment applyDeployment(DeploymentName name) { + public final Deployment applyDeployment(@Nullable DeploymentName name) { ApplyDeploymentRequest request = ApplyDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return applyDeployment(request); @@ -5274,7 +5284,8 @@ public final UnaryCallable applyDeploymentCa * @param name Required. The name of the deployment without revisionID. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ComputeDeploymentStatusResponse computeDeploymentStatus(DeploymentName name) { + public final ComputeDeploymentStatusResponse computeDeploymentStatus( + @Nullable DeploymentName name) { ComputeDeploymentStatusRequest request = ComputeDeploymentStatusRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5401,7 +5412,7 @@ public final ComputeDeploymentStatusResponse computeDeploymentStatus( * @param revisionId Required. The revision id of deployment to roll back to. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Deployment rollbackDeployment(DeploymentName name, String revisionId) { + public final Deployment rollbackDeployment(@Nullable DeploymentName name, String revisionId) { RollbackDeploymentRequest request = RollbackDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5532,7 +5543,7 @@ public final UnaryCallable rollbackDeploy * @param name Required. Name of the hydrated deployment. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HydratedDeployment getHydratedDeployment(HydratedDeploymentName name) { + public final HydratedDeployment getHydratedDeployment(@Nullable HydratedDeploymentName name) { GetHydratedDeploymentRequest request = GetHydratedDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5670,7 +5681,8 @@ public final HydratedDeployment getHydratedDeployment(GetHydratedDeploymentReque * @param parent Required. The deployment managing the hydrated deployments. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(DeploymentName parent) { + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments( + @Nullable DeploymentName parent) { ListHydratedDeploymentsRequest request = ListHydratedDeploymentsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5948,7 +5960,7 @@ public final HydratedDeployment updateHydratedDeployment( * @param name Required. The name of the hydrated deployment to apply. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HydratedDeployment applyHydratedDeployment(HydratedDeploymentName name) { + public final HydratedDeployment applyHydratedDeployment(@Nullable HydratedDeploymentName name) { ApplyHydratedDeploymentRequest request = ApplyHydratedDeploymentRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6283,12 +6295,13 @@ public static class ListOrchestrationClustersPage ListOrchestrationClustersPage> { private ListOrchestrationClustersPage( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> context, - ListOrchestrationClustersResponse response) { + @Nullable ListOrchestrationClustersResponse response) { super(context, response); } @@ -6298,18 +6311,20 @@ private static ListOrchestrationClustersPage createEmptyPage() { @Override protected ListOrchestrationClustersPage createPage( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> context, - ListOrchestrationClustersResponse response) { + @Nullable ListOrchestrationClustersResponse response) { return new ListOrchestrationClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListOrchestrationClustersRequest, ListOrchestrationClustersResponse, OrchestrationCluster> @@ -6328,7 +6343,7 @@ public static class ListOrchestrationClustersFixedSizeCollection ListOrchestrationClustersFixedSizeCollection> { private ListOrchestrationClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6338,7 +6353,7 @@ private static ListOrchestrationClustersFixedSizeCollection createEmptyCollectio @Override protected ListOrchestrationClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOrchestrationClustersFixedSizeCollection(pages, collectionSize); } } @@ -6371,8 +6386,8 @@ public static class ListEdgeSlmsPage extends AbstractPage { private ListEdgeSlmsPage( - PageContext context, - ListEdgeSlmsResponse response) { + @Nullable PageContext context, + @Nullable ListEdgeSlmsResponse response) { super(context, response); } @@ -6382,14 +6397,14 @@ private static ListEdgeSlmsPage createEmptyPage() { @Override protected ListEdgeSlmsPage createPage( - PageContext context, - ListEdgeSlmsResponse response) { + @Nullable PageContext context, + @Nullable ListEdgeSlmsResponse response) { return new ListEdgeSlmsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6403,7 +6418,8 @@ public static class ListEdgeSlmsFixedSizeCollection ListEdgeSlmsPage, ListEdgeSlmsFixedSizeCollection> { - private ListEdgeSlmsFixedSizeCollection(List pages, int collectionSize) { + private ListEdgeSlmsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6413,7 +6429,7 @@ private static ListEdgeSlmsFixedSizeCollection createEmptyCollection() { @Override protected ListEdgeSlmsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEdgeSlmsFixedSizeCollection(pages, collectionSize); } } @@ -6447,8 +6463,8 @@ public static class ListBlueprintsPage ListBlueprintsRequest, ListBlueprintsResponse, Blueprint, ListBlueprintsPage> { private ListBlueprintsPage( - PageContext context, - ListBlueprintsResponse response) { + @Nullable PageContext context, + @Nullable ListBlueprintsResponse response) { super(context, response); } @@ -6458,14 +6474,14 @@ private static ListBlueprintsPage createEmptyPage() { @Override protected ListBlueprintsPage createPage( - PageContext context, - ListBlueprintsResponse response) { + @Nullable PageContext context, + @Nullable ListBlueprintsResponse response) { return new ListBlueprintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6479,7 +6495,8 @@ public static class ListBlueprintsFixedSizeCollection ListBlueprintsPage, ListBlueprintsFixedSizeCollection> { - private ListBlueprintsFixedSizeCollection(List pages, int collectionSize) { + private ListBlueprintsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6489,7 +6506,7 @@ private static ListBlueprintsFixedSizeCollection createEmptyCollection() { @Override protected ListBlueprintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlueprintsFixedSizeCollection(pages, collectionSize); } } @@ -6527,9 +6544,10 @@ public static class ListBlueprintRevisionsPage ListBlueprintRevisionsPage> { private ListBlueprintRevisionsPage( - PageContext + @Nullable + PageContext context, - ListBlueprintRevisionsResponse response) { + @Nullable ListBlueprintRevisionsResponse response) { super(context, response); } @@ -6539,15 +6557,17 @@ private static ListBlueprintRevisionsPage createEmptyPage() { @Override protected ListBlueprintRevisionsPage createPage( - PageContext + @Nullable + PageContext context, - ListBlueprintRevisionsResponse response) { + @Nullable ListBlueprintRevisionsResponse response) { return new ListBlueprintRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6563,7 +6583,7 @@ public static class ListBlueprintRevisionsFixedSizeCollection ListBlueprintRevisionsFixedSizeCollection> { private ListBlueprintRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6573,7 +6593,7 @@ private static ListBlueprintRevisionsFixedSizeCollection createEmptyCollection() @Override protected ListBlueprintRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlueprintRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6611,9 +6631,11 @@ public static class SearchBlueprintRevisionsPage SearchBlueprintRevisionsPage> { private SearchBlueprintRevisionsPage( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, - SearchBlueprintRevisionsResponse response) { + @Nullable SearchBlueprintRevisionsResponse response) { super(context, response); } @@ -6623,15 +6645,19 @@ private static SearchBlueprintRevisionsPage createEmptyPage() { @Override protected SearchBlueprintRevisionsPage createPage( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, - SearchBlueprintRevisionsResponse response) { + @Nullable SearchBlueprintRevisionsResponse response) { return new SearchBlueprintRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse, Blueprint> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6647,7 +6673,7 @@ public static class SearchBlueprintRevisionsFixedSizeCollection SearchBlueprintRevisionsFixedSizeCollection> { private SearchBlueprintRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6657,7 +6683,7 @@ private static SearchBlueprintRevisionsFixedSizeCollection createEmptyCollection @Override protected SearchBlueprintRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchBlueprintRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6695,9 +6721,11 @@ public static class SearchDeploymentRevisionsPage SearchDeploymentRevisionsPage> { private SearchDeploymentRevisionsPage( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, - SearchDeploymentRevisionsResponse response) { + @Nullable SearchDeploymentRevisionsResponse response) { super(context, response); } @@ -6707,15 +6735,19 @@ private static SearchDeploymentRevisionsPage createEmptyPage() { @Override protected SearchDeploymentRevisionsPage createPage( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, - SearchDeploymentRevisionsResponse response) { + @Nullable SearchDeploymentRevisionsResponse response) { return new SearchDeploymentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse, Deployment> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6731,7 +6763,7 @@ public static class SearchDeploymentRevisionsFixedSizeCollection SearchDeploymentRevisionsFixedSizeCollection> { private SearchDeploymentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6741,7 +6773,7 @@ private static SearchDeploymentRevisionsFixedSizeCollection createEmptyCollectio @Override protected SearchDeploymentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDeploymentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -6779,9 +6811,10 @@ public static class ListPublicBlueprintsPage ListPublicBlueprintsPage> { private ListPublicBlueprintsPage( - PageContext + @Nullable + PageContext context, - ListPublicBlueprintsResponse response) { + @Nullable ListPublicBlueprintsResponse response) { super(context, response); } @@ -6791,15 +6824,17 @@ private static ListPublicBlueprintsPage createEmptyPage() { @Override protected ListPublicBlueprintsPage createPage( - PageContext + @Nullable + PageContext context, - ListPublicBlueprintsResponse response) { + @Nullable ListPublicBlueprintsResponse response) { return new ListPublicBlueprintsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6815,7 +6850,7 @@ public static class ListPublicBlueprintsFixedSizeCollection ListPublicBlueprintsFixedSizeCollection> { private ListPublicBlueprintsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6825,7 +6860,7 @@ private static ListPublicBlueprintsFixedSizeCollection createEmptyCollection() { @Override protected ListPublicBlueprintsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPublicBlueprintsFixedSizeCollection(pages, collectionSize); } } @@ -6859,8 +6894,8 @@ public static class ListDeploymentsPage ListDeploymentsRequest, ListDeploymentsResponse, Deployment, ListDeploymentsPage> { private ListDeploymentsPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { super(context, response); } @@ -6870,14 +6905,14 @@ private static ListDeploymentsPage createEmptyPage() { @Override protected ListDeploymentsPage createPage( - PageContext context, - ListDeploymentsResponse response) { + @Nullable PageContext context, + @Nullable ListDeploymentsResponse response) { return new ListDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6892,7 +6927,7 @@ public static class ListDeploymentsFixedSizeCollection ListDeploymentsFixedSizeCollection> { private ListDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6902,7 +6937,7 @@ private static ListDeploymentsFixedSizeCollection createEmptyCollection() { @Override protected ListDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -6940,9 +6975,10 @@ public static class ListDeploymentRevisionsPage ListDeploymentRevisionsPage> { private ListDeploymentRevisionsPage( - PageContext + @Nullable + PageContext context, - ListDeploymentRevisionsResponse response) { + @Nullable ListDeploymentRevisionsResponse response) { super(context, response); } @@ -6952,15 +6988,17 @@ private static ListDeploymentRevisionsPage createEmptyPage() { @Override protected ListDeploymentRevisionsPage createPage( - PageContext + @Nullable + PageContext context, - ListDeploymentRevisionsResponse response) { + @Nullable ListDeploymentRevisionsResponse response) { return new ListDeploymentRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6976,7 +7014,7 @@ public static class ListDeploymentRevisionsFixedSizeCollection ListDeploymentRevisionsFixedSizeCollection> { private ListDeploymentRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6986,7 +7024,7 @@ private static ListDeploymentRevisionsFixedSizeCollection createEmptyCollection( @Override protected ListDeploymentRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDeploymentRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -7025,10 +7063,11 @@ public static class ListHydratedDeploymentsPage ListHydratedDeploymentsPage> { private ListHydratedDeploymentsPage( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, - ListHydratedDeploymentsResponse response) { + @Nullable ListHydratedDeploymentsResponse response) { super(context, response); } @@ -7038,16 +7077,18 @@ private static ListHydratedDeploymentsPage createEmptyPage() { @Override protected ListHydratedDeploymentsPage createPage( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, - ListHydratedDeploymentsResponse response) { + @Nullable ListHydratedDeploymentsResponse response) { return new ListHydratedDeploymentsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse, HydratedDeployment> context, ApiFuture futureResponse) { @@ -7064,7 +7105,7 @@ public static class ListHydratedDeploymentsFixedSizeCollection ListHydratedDeploymentsFixedSizeCollection> { private ListHydratedDeploymentsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7074,7 +7115,7 @@ private static ListHydratedDeploymentsFixedSizeCollection createEmptyCollection( @Override protected ListHydratedDeploymentsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHydratedDeploymentsFixedSizeCollection(pages, collectionSize); } } @@ -7108,8 +7149,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -7119,14 +7160,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7140,7 +7181,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7150,7 +7192,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java index 02842b4df1d4..f21aaa33e914 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -452,7 +453,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); } @@ -472,7 +473,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TelcoAutomationStubSettings.newBuilder(clientContext)); } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java index 40f9b77be246..9d894c9331f9 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStub.java @@ -97,6 +97,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -109,11 +110,12 @@ @Generated("by gapic-generator-java") public abstract class TelcoAutomationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java index 257fe23d30e4..527b88b89302 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/TelcoAutomationStubSettings.java @@ -130,6 +130,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1350,7 +1351,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); } @@ -1577,7 +1578,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listOrchestrationClustersSettings = diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java index 6a911061a096..9e35151f26bf 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/BlueprintName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BlueprintName parse(String formattedString) { + public static @Nullable BlueprintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BlueprintName> values) { List list = new ArrayList<>(values.size()); for (BlueprintName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java index 39da170d323c..b0ae4cb571b6 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java index 5497d07d7ecf..06fe5b84480b 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/EdgeSlmName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String edgeSlm) { .toString(); } - public static EdgeSlmName parse(String formattedString) { + public static @Nullable EdgeSlmName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EdgeSlmName> values) { List list = new ArrayList<>(values.size()); for (EdgeSlmName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java index 100452fdcbaf..bd4e89b59cc2 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/HydratedDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static HydratedDeploymentName parse(String formattedString) { + public static @Nullable HydratedDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HydratedDeploymentName> values) { List list = new ArrayList<>(values.size()); for (HydratedDeploymentName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java index 929c2c2c4377..2507e576ba07 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java index 1bd62be04579..2e125f4aa1e5 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/OrchestrationClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String orchestratio .toString(); } - public static OrchestrationClusterName parse(String formattedString) { + public static @Nullable OrchestrationClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrchestrationClusterName> values) { List list = new ArrayList<>(values.size()); for (OrchestrationClusterName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java index ba82ebc09c16..b955d3374e2f 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/PublicBlueprintName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String publicLuepri .toString(); } - public static PublicBlueprintName parse(String formattedString) { + public static @Nullable PublicBlueprintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PublicBlueprintName> values) { List list = new ArrayList<>(values.size()); for (PublicBlueprintName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java index b8f684e2c0b8..f613afec48af 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/BlueprintName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BlueprintName parse(String formattedString) { + public static @Nullable BlueprintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BlueprintName> values) { List list = new ArrayList<>(values.size()); for (BlueprintName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java index 19d517a370b1..e77f8d7b24b2 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/DeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DeploymentName parse(String formattedString) { + public static @Nullable DeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DeploymentName> values) { List list = new ArrayList<>(values.size()); for (DeploymentName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java index 92693b7c3b2c..f7e25d197b61 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/EdgeSlmName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String edgeSlm) { .toString(); } - public static EdgeSlmName parse(String formattedString) { + public static @Nullable EdgeSlmName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EdgeSlmName> values) { List list = new ArrayList<>(values.size()); for (EdgeSlmName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java index 751c370221ab..12201e689c2f 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/HydratedDeploymentName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static HydratedDeploymentName parse(String formattedString) { + public static @Nullable HydratedDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HydratedDeploymentName> values) { List list = new ArrayList<>(values.size()); for (HydratedDeploymentName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java index c9ddc0dd4148..5896cc00a1b3 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java index c3b9e216d90c..6ed350cd5d73 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/OrchestrationClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String orchestratio .toString(); } - public static OrchestrationClusterName parse(String formattedString) { + public static @Nullable OrchestrationClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrchestrationClusterName> values) { List list = new ArrayList<>(values.size()); for (OrchestrationClusterName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java index 84c3ca4b2850..fcfe42372f73 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/src/main/java/com/google/cloud/telcoautomation/v1alpha1/PublicBlueprintName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String publicLuepri .toString(); } - public static PublicBlueprintName parse(String formattedString) { + public static @Nullable PublicBlueprintName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PublicBlueprintName> values) { List list = new ArrayList<>(values.size()); for (PublicBlueprintName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index 4e937a58d42f..8b501faa5663 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -25,6 +25,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. /** @@ -158,7 +159,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TextToSpeechClient implements BackgroundResource { - private final TextToSpeechSettings settings; + private final @Nullable TextToSpeechSettings settings; private final TextToSpeechStub stub; /** Constructs an instance of TextToSpeechClient with default settings. */ @@ -197,7 +198,7 @@ protected TextToSpeechClient(TextToSpeechStub stub) { this.stub = stub; } - public final TextToSpeechSettings getSettings() { + public final @Nullable TextToSpeechSettings getSettings() { return settings; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java index 8908e118c82b..513043337db2 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClient.java @@ -29,6 +29,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. /** @@ -145,7 +146,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TextToSpeechLongAudioSynthesizeClient implements BackgroundResource { - private final TextToSpeechLongAudioSynthesizeSettings settings; + private final @Nullable TextToSpeechLongAudioSynthesizeSettings settings; private final TextToSpeechLongAudioSynthesizeStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -198,7 +199,7 @@ protected TextToSpeechLongAudioSynthesizeClient(TextToSpeechLongAudioSynthesizeS this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TextToSpeechLongAudioSynthesizeSettings getSettings() { + public final @Nullable TextToSpeechLongAudioSynthesizeSettings getSettings() { return settings; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeSettings.java index cc2f8b315618..505f2f68acba 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TextToSpeechLongAudioSynthesizeStubSettings.newBuilder(clientContext)); } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java index a94289a40a92..c8d37eaa19ff 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,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); } @@ -180,7 +181,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TextToSpeechStubSettings.newBuilder(clientContext)); } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStub.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStub.java index 72b1f24e93fa..9b6268f416fc 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStub.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,11 +38,12 @@ @Generated("by gapic-generator-java") public abstract class TextToSpeechLongAudioSynthesizeStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index ab094958b8cb..dcb15d2c135e 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -261,7 +262,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); } @@ -328,7 +329,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); synthesizeLongAudioSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index f80b0b11bc27..aad76b7bdfaa 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -306,7 +307,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVoicesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index 924ce2a83f13..f4f558c9f297 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -26,6 +26,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. /** @@ -160,7 +161,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TextToSpeechClient implements BackgroundResource { - private final TextToSpeechSettings settings; + private final @Nullable TextToSpeechSettings settings; private final TextToSpeechStub stub; /** Constructs an instance of TextToSpeechClient with default settings. */ @@ -199,7 +200,7 @@ protected TextToSpeechClient(TextToSpeechStub stub) { this.stub = stub; } - public final TextToSpeechSettings getSettings() { + public final @Nullable TextToSpeechSettings getSettings() { return settings; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java index a20c31c2e73b..8f93f10be561 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClient.java @@ -29,6 +29,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. /** @@ -146,7 +147,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TextToSpeechLongAudioSynthesizeClient implements BackgroundResource { - private final TextToSpeechLongAudioSynthesizeSettings settings; + private final @Nullable TextToSpeechLongAudioSynthesizeSettings settings; private final TextToSpeechLongAudioSynthesizeStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -199,7 +200,7 @@ protected TextToSpeechLongAudioSynthesizeClient(TextToSpeechLongAudioSynthesizeS this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TextToSpeechLongAudioSynthesizeSettings getSettings() { + public final @Nullable TextToSpeechLongAudioSynthesizeSettings getSettings() { return settings; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeSettings.java index 9db5de4d3e70..b888601fb95f 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -188,7 +189,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); } @@ -209,7 +210,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TextToSpeechLongAudioSynthesizeStubSettings.newBuilder(clientContext)); } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java index 5b2d2e88b3d8..aa4493145328 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -161,7 +162,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); } @@ -181,7 +182,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TextToSpeechStubSettings.newBuilder(clientContext)); } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStub.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStub.java index cdba18c943f9..84502261153f 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStub.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class TextToSpeechLongAudioSynthesizeStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java index d2a482ab8982..ac78437d374f 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechLongAudioSynthesizeStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -262,7 +263,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); } @@ -329,7 +330,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); synthesizeLongAudioSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index 9bd4607fc85e..eba5216c54ff 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -52,6 +52,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -234,7 +235,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); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listVoicesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java index 9efd0ee245a8..4cf7bd343e3f 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuClient.java @@ -40,6 +40,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. /** @@ -346,7 +347,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TpuClient implements BackgroundResource { - private final TpuSettings settings; + private final @Nullable TpuSettings settings; private final TpuStub stub; private final OperationsClient operationsClient; @@ -387,7 +388,7 @@ protected TpuClient(TpuStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final TpuSettings getSettings() { + public final @Nullable TpuSettings getSettings() { return settings; } @@ -426,7 +427,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodesPagedResponse listNodes(LocationName parent) { + public final ListNodesPagedResponse listNodes(@Nullable LocationName parent) { ListNodesRequest request = ListNodesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listNodes(request); @@ -582,7 +583,7 @@ public final UnaryCallable listNodesCallabl * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Node getNode(NodeName name) { + public final Node getNode(@Nullable NodeName name) { GetNodeRequest request = GetNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNode(request); @@ -695,7 +696,7 @@ public final UnaryCallable getNodeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNodeAsync( - LocationName parent, Node node, String nodeId) { + @Nullable LocationName parent, Node node, String nodeId) { CreateNodeRequest request = CreateNodeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -848,7 +849,7 @@ public final UnaryCallable createNodeCallable() { * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNodeAsync(NodeName name) { + public final OperationFuture deleteNodeAsync(@Nullable NodeName name) { DeleteNodeRequest request = DeleteNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNodeAsync(request); @@ -1227,7 +1228,7 @@ public final UnaryCallable startNodeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTensorFlowVersionsPagedResponse listTensorFlowVersions( - TensorFlowVersionName parent) { + @Nullable TensorFlowVersionName parent) { ListTensorFlowVersionsRequest request = ListTensorFlowVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1405,7 +1406,7 @@ public final ListTensorFlowVersionsPagedResponse listTensorFlowVersions( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TensorFlowVersion getTensorFlowVersion(TensorFlowVersionName name) { + public final TensorFlowVersion getTensorFlowVersion(@Nullable TensorFlowVersionName name) { GetTensorFlowVersionRequest request = GetTensorFlowVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1526,7 +1527,8 @@ public final TensorFlowVersion getTensorFlowVersion(GetTensorFlowVersionRequest * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(AcceleratorTypeName parent) { + public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( + @Nullable AcceleratorTypeName parent) { ListAcceleratorTypesRequest request = ListAcceleratorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1704,7 +1706,7 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { + public final AcceleratorType getAcceleratorType(@Nullable AcceleratorTypeName name) { GetAcceleratorTypeRequest request = GetAcceleratorTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2007,8 +2009,8 @@ public static class ListNodesPage extends AbstractPage { private ListNodesPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { super(context, response); } @@ -2018,14 +2020,14 @@ private static ListNodesPage createEmptyPage() { @Override protected ListNodesPage createPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { return new ListNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2035,7 +2037,7 @@ public static class ListNodesFixedSizeCollection extends AbstractFixedSizeCollection< ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { - private ListNodesFixedSizeCollection(List pages, int collectionSize) { + private ListNodesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2045,7 +2047,7 @@ private static ListNodesFixedSizeCollection createEmptyCollection() { @Override protected ListNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodesFixedSizeCollection(pages, collectionSize); } } @@ -2084,10 +2086,11 @@ public static class ListTensorFlowVersionsPage ListTensorFlowVersionsPage> { private ListTensorFlowVersionsPage( - PageContext< + @Nullable + PageContext< ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion> context, - ListTensorFlowVersionsResponse response) { + @Nullable ListTensorFlowVersionsResponse response) { super(context, response); } @@ -2097,16 +2100,18 @@ private static ListTensorFlowVersionsPage createEmptyPage() { @Override protected ListTensorFlowVersionsPage createPage( - PageContext< + @Nullable + PageContext< ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion> context, - ListTensorFlowVersionsResponse response) { + @Nullable ListTensorFlowVersionsResponse response) { return new ListTensorFlowVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListTensorFlowVersionsRequest, ListTensorFlowVersionsResponse, TensorFlowVersion> context, ApiFuture futureResponse) { @@ -2123,7 +2128,7 @@ public static class ListTensorFlowVersionsFixedSizeCollection ListTensorFlowVersionsFixedSizeCollection> { private ListTensorFlowVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2133,7 +2138,7 @@ private static ListTensorFlowVersionsFixedSizeCollection createEmptyCollection() @Override protected ListTensorFlowVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTensorFlowVersionsFixedSizeCollection(pages, collectionSize); } } @@ -2171,9 +2176,10 @@ public static class ListAcceleratorTypesPage ListAcceleratorTypesPage> { private ListAcceleratorTypesPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { super(context, response); } @@ -2183,15 +2189,17 @@ private static ListAcceleratorTypesPage createEmptyPage() { @Override protected ListAcceleratorTypesPage createPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { return new ListAcceleratorTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2207,7 +2215,7 @@ public static class ListAcceleratorTypesFixedSizeCollection ListAcceleratorTypesFixedSizeCollection> { private ListAcceleratorTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2217,7 +2225,7 @@ private static ListAcceleratorTypesFixedSizeCollection createEmptyCollection() { @Override protected ListAcceleratorTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAcceleratorTypesFixedSizeCollection(pages, collectionSize); } } @@ -2251,8 +2259,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2262,14 +2270,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2283,7 +2291,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2293,7 +2302,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java index c158733e71d5..22f41582af6d 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/TpuSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -271,7 +272,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -291,7 +292,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TpuStubSettings.newBuilder(clientContext)); } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java index 9e01f73f71a0..1c3014c762f7 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStub.java @@ -50,6 +50,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,7 +62,7 @@ @Generated("by gapic-generator-java") public abstract class TpuStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java index 285b1e962acc..eaa341dc69e9 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/TpuStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -608,7 +609,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -720,7 +721,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listNodesSettings = PagedCallSettings.newBuilder(LIST_NODES_PAGE_STR_FACT); diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java index bddb94bf8177..23258574cb32 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java @@ -43,6 +43,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. /** @@ -493,7 +494,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TpuClient implements BackgroundResource { - private final TpuSettings settings; + private final @Nullable TpuSettings settings; private final TpuStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -539,7 +540,7 @@ protected TpuClient(TpuStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TpuSettings getSettings() { + public final @Nullable TpuSettings getSettings() { return settings; } @@ -587,7 +588,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodesPagedResponse listNodes(LocationName parent) { + public final ListNodesPagedResponse listNodes(@Nullable LocationName parent) { ListNodesRequest request = ListNodesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listNodes(request); @@ -743,7 +744,7 @@ public final UnaryCallable listNodesCallabl * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Node getNode(NodeName name) { + public final Node getNode(@Nullable NodeName name) { GetNodeRequest request = GetNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNode(request); @@ -856,7 +857,7 @@ public final UnaryCallable getNodeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNodeAsync( - LocationName parent, Node node, String nodeId) { + @Nullable LocationName parent, Node node, String nodeId) { CreateNodeRequest request = CreateNodeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1009,7 +1010,7 @@ public final UnaryCallable createNodeCallable() { * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNodeAsync(NodeName name) { + public final OperationFuture deleteNodeAsync(@Nullable NodeName name) { DeleteNodeRequest request = DeleteNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNodeAsync(request); @@ -1435,7 +1436,7 @@ public final UnaryCallable updateNodeCallable() { * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueuedResourcesPagedResponse listQueuedResources(LocationName parent) { + public final ListQueuedResourcesPagedResponse listQueuedResources(@Nullable LocationName parent) { ListQueuedResourcesRequest request = ListQueuedResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1600,7 +1601,7 @@ public final ListQueuedResourcesPagedResponse listQueuedResources( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueuedResource getQueuedResource(QueuedResourceName name) { + public final QueuedResource getQueuedResource(@Nullable QueuedResourceName name) { GetQueuedResourceRequest request = GetQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1720,7 +1721,7 @@ public final UnaryCallable getQueuedRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createQueuedResourceAsync( - LocationName parent, QueuedResource queuedResource, String queuedResourceId) { + @Nullable LocationName parent, QueuedResource queuedResource, String queuedResourceId) { CreateQueuedResourceRequest request = CreateQueuedResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1886,7 +1887,7 @@ public final OperationFuture createQueuedReso * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteQueuedResourceAsync( - QueuedResourceName name) { + @Nullable QueuedResourceName name) { DeleteQueuedResourceRequest request = DeleteQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2040,7 +2041,7 @@ public final OperationFuture deleteQueuedResourceAsync * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resetQueuedResourceAsync( - QueuedResourceName name) { + @Nullable QueuedResourceName name) { ResetQueuedResourceRequest request = ResetQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2246,7 +2247,8 @@ public final GenerateServiceIdentityResponse generateServiceIdentity( * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName parent) { + public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( + @Nullable LocationName parent) { ListAcceleratorTypesRequest request = ListAcceleratorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2417,7 +2419,7 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { + public final AcceleratorType getAcceleratorType(@Nullable AcceleratorTypeName name) { GetAcceleratorTypeRequest request = GetAcceleratorTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2537,7 +2539,7 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest reques * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimeVersionsPagedResponse listRuntimeVersions(LocationName parent) { + public final ListRuntimeVersionsPagedResponse listRuntimeVersions(@Nullable LocationName parent) { ListRuntimeVersionsRequest request = ListRuntimeVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2708,7 +2710,7 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuntimeVersion getRuntimeVersion(RuntimeVersionName name) { + public final RuntimeVersion getRuntimeVersion(@Nullable RuntimeVersionName name) { GetRuntimeVersionRequest request = GetRuntimeVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3067,8 +3069,8 @@ public static class ListNodesPage extends AbstractPage { private ListNodesPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { super(context, response); } @@ -3078,14 +3080,14 @@ private static ListNodesPage createEmptyPage() { @Override protected ListNodesPage createPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { return new ListNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3095,7 +3097,7 @@ public static class ListNodesFixedSizeCollection extends AbstractFixedSizeCollection< ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { - private ListNodesFixedSizeCollection(List pages, int collectionSize) { + private ListNodesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3105,7 +3107,7 @@ private static ListNodesFixedSizeCollection createEmptyCollection() { @Override protected ListNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodesFixedSizeCollection(pages, collectionSize); } } @@ -3143,9 +3145,10 @@ public static class ListQueuedResourcesPage ListQueuedResourcesPage> { private ListQueuedResourcesPage( - PageContext + @Nullable + PageContext context, - ListQueuedResourcesResponse response) { + @Nullable ListQueuedResourcesResponse response) { super(context, response); } @@ -3155,15 +3158,17 @@ private static ListQueuedResourcesPage createEmptyPage() { @Override protected ListQueuedResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListQueuedResourcesResponse response) { + @Nullable ListQueuedResourcesResponse response) { return new ListQueuedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3179,7 +3184,7 @@ public static class ListQueuedResourcesFixedSizeCollection ListQueuedResourcesFixedSizeCollection> { private ListQueuedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3189,7 +3194,7 @@ private static ListQueuedResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListQueuedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueuedResourcesFixedSizeCollection(pages, collectionSize); } } @@ -3227,9 +3232,10 @@ public static class ListAcceleratorTypesPage ListAcceleratorTypesPage> { private ListAcceleratorTypesPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { super(context, response); } @@ -3239,15 +3245,17 @@ private static ListAcceleratorTypesPage createEmptyPage() { @Override protected ListAcceleratorTypesPage createPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { return new ListAcceleratorTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3263,7 +3271,7 @@ public static class ListAcceleratorTypesFixedSizeCollection ListAcceleratorTypesFixedSizeCollection> { private ListAcceleratorTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3273,7 +3281,7 @@ private static ListAcceleratorTypesFixedSizeCollection createEmptyCollection() { @Override protected ListAcceleratorTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAcceleratorTypesFixedSizeCollection(pages, collectionSize); } } @@ -3311,9 +3319,10 @@ public static class ListRuntimeVersionsPage ListRuntimeVersionsPage> { private ListRuntimeVersionsPage( - PageContext + @Nullable + PageContext context, - ListRuntimeVersionsResponse response) { + @Nullable ListRuntimeVersionsResponse response) { super(context, response); } @@ -3323,15 +3332,17 @@ private static ListRuntimeVersionsPage createEmptyPage() { @Override protected ListRuntimeVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListRuntimeVersionsResponse response) { + @Nullable ListRuntimeVersionsResponse response) { return new ListRuntimeVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3347,7 +3358,7 @@ public static class ListRuntimeVersionsFixedSizeCollection ListRuntimeVersionsFixedSizeCollection> { private ListRuntimeVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3357,7 +3368,7 @@ private static ListRuntimeVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListRuntimeVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuntimeVersionsFixedSizeCollection(pages, collectionSize); } } @@ -3391,8 +3402,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3402,14 +3413,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3423,7 +3434,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3433,7 +3445,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java index 78f22ba03c92..938287a6a377 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -341,7 +342,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); } @@ -361,7 +362,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TpuStubSettings.newBuilder(clientContext)); } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java index ea72f347da98..70ecc616150d 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java @@ -63,6 +63,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,11 +75,12 @@ @Generated("by gapic-generator-java") public abstract class TpuStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java index 1270b15e571d..4f86a35dde2d 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java @@ -97,6 +97,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -778,7 +779,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); } @@ -930,7 +931,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listNodesSettings = PagedCallSettings.newBuilder(LIST_NODES_PAGE_STR_FACT); diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java index 6dc7aa49379e..ae475707a8ba 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java @@ -43,6 +43,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. /** @@ -541,7 +542,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TpuClient implements BackgroundResource { - private final TpuSettings settings; + private final @Nullable TpuSettings settings; private final TpuStub stub; private final OperationsClient operationsClient; @@ -582,7 +583,7 @@ protected TpuClient(TpuStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final TpuSettings getSettings() { + public final @Nullable TpuSettings getSettings() { return settings; } @@ -621,7 +622,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodesPagedResponse listNodes(LocationName parent) { + public final ListNodesPagedResponse listNodes(@Nullable LocationName parent) { ListNodesRequest request = ListNodesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listNodes(request); @@ -777,7 +778,7 @@ public final UnaryCallable listNodesCallabl * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Node getNode(NodeName name) { + public final Node getNode(@Nullable NodeName name) { GetNodeRequest request = GetNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNode(request); @@ -890,7 +891,7 @@ public final UnaryCallable getNodeCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNodeAsync( - LocationName parent, Node node, String nodeId) { + @Nullable LocationName parent, Node node, String nodeId) { CreateNodeRequest request = CreateNodeRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1046,7 +1047,7 @@ public final UnaryCallable createNodeCallable() { * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteNodeAsync(NodeName name) { + public final OperationFuture deleteNodeAsync(@Nullable NodeName name) { DeleteNodeRequest request = DeleteNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteNodeAsync(request); @@ -1560,7 +1561,7 @@ public final UnaryCallable performMaintena * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListQueuedResourcesPagedResponse listQueuedResources(LocationName parent) { + public final ListQueuedResourcesPagedResponse listQueuedResources(@Nullable LocationName parent) { ListQueuedResourcesRequest request = ListQueuedResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1725,7 +1726,7 @@ public final ListQueuedResourcesPagedResponse listQueuedResources( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final QueuedResource getQueuedResource(QueuedResourceName name) { + public final QueuedResource getQueuedResource(@Nullable QueuedResourceName name) { GetQueuedResourceRequest request = GetQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1845,7 +1846,7 @@ public final UnaryCallable getQueuedRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createQueuedResourceAsync( - LocationName parent, QueuedResource queuedResource, String queuedResourceId) { + @Nullable LocationName parent, QueuedResource queuedResource, String queuedResourceId) { CreateQueuedResourceRequest request = CreateQueuedResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2011,7 +2012,7 @@ public final OperationFuture createQueuedReso * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteQueuedResourceAsync( - QueuedResourceName name) { + @Nullable QueuedResourceName name) { DeleteQueuedResourceRequest request = DeleteQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2166,7 +2167,7 @@ public final OperationFuture deleteQueuedReso * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resetQueuedResourceAsync( - QueuedResourceName name) { + @Nullable QueuedResourceName name) { ResetQueuedResourceRequest request = ResetQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2466,7 +2467,8 @@ public final GenerateServiceIdentityResponse generateServiceIdentity( * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName parent) { + public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( + @Nullable LocationName parent) { ListAcceleratorTypesRequest request = ListAcceleratorTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2637,7 +2639,7 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { + public final AcceleratorType getAcceleratorType(@Nullable AcceleratorTypeName name) { GetAcceleratorTypeRequest request = GetAcceleratorTypeRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2757,7 +2759,7 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest reques * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimeVersionsPagedResponse listRuntimeVersions(LocationName parent) { + public final ListRuntimeVersionsPagedResponse listRuntimeVersions(@Nullable LocationName parent) { ListRuntimeVersionsRequest request = ListRuntimeVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2928,7 +2930,7 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions( * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RuntimeVersion getRuntimeVersion(RuntimeVersionName name) { + public final RuntimeVersion getRuntimeVersion(@Nullable RuntimeVersionName name) { GetRuntimeVersionRequest request = GetRuntimeVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3480,8 +3482,8 @@ public static class ListNodesPage extends AbstractPage { private ListNodesPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { super(context, response); } @@ -3491,14 +3493,14 @@ private static ListNodesPage createEmptyPage() { @Override protected ListNodesPage createPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { return new ListNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3508,7 +3510,7 @@ public static class ListNodesFixedSizeCollection extends AbstractFixedSizeCollection< ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { - private ListNodesFixedSizeCollection(List pages, int collectionSize) { + private ListNodesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3518,7 +3520,7 @@ private static ListNodesFixedSizeCollection createEmptyCollection() { @Override protected ListNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodesFixedSizeCollection(pages, collectionSize); } } @@ -3556,9 +3558,10 @@ public static class ListQueuedResourcesPage ListQueuedResourcesPage> { private ListQueuedResourcesPage( - PageContext + @Nullable + PageContext context, - ListQueuedResourcesResponse response) { + @Nullable ListQueuedResourcesResponse response) { super(context, response); } @@ -3568,15 +3571,17 @@ private static ListQueuedResourcesPage createEmptyPage() { @Override protected ListQueuedResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListQueuedResourcesResponse response) { + @Nullable ListQueuedResourcesResponse response) { return new ListQueuedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3592,7 +3597,7 @@ public static class ListQueuedResourcesFixedSizeCollection ListQueuedResourcesFixedSizeCollection> { private ListQueuedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3602,7 +3607,7 @@ private static ListQueuedResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListQueuedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListQueuedResourcesFixedSizeCollection(pages, collectionSize); } } @@ -3640,9 +3645,10 @@ public static class ListAcceleratorTypesPage ListAcceleratorTypesPage> { private ListAcceleratorTypesPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { super(context, response); } @@ -3652,15 +3658,17 @@ private static ListAcceleratorTypesPage createEmptyPage() { @Override protected ListAcceleratorTypesPage createPage( - PageContext + @Nullable + PageContext context, - ListAcceleratorTypesResponse response) { + @Nullable ListAcceleratorTypesResponse response) { return new ListAcceleratorTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3676,7 +3684,7 @@ public static class ListAcceleratorTypesFixedSizeCollection ListAcceleratorTypesFixedSizeCollection> { private ListAcceleratorTypesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3686,7 +3694,7 @@ private static ListAcceleratorTypesFixedSizeCollection createEmptyCollection() { @Override protected ListAcceleratorTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAcceleratorTypesFixedSizeCollection(pages, collectionSize); } } @@ -3724,9 +3732,10 @@ public static class ListRuntimeVersionsPage ListRuntimeVersionsPage> { private ListRuntimeVersionsPage( - PageContext + @Nullable + PageContext context, - ListRuntimeVersionsResponse response) { + @Nullable ListRuntimeVersionsResponse response) { super(context, response); } @@ -3736,15 +3745,17 @@ private static ListRuntimeVersionsPage createEmptyPage() { @Override protected ListRuntimeVersionsPage createPage( - PageContext + @Nullable + PageContext context, - ListRuntimeVersionsResponse response) { + @Nullable ListRuntimeVersionsResponse response) { return new ListRuntimeVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3760,7 +3771,7 @@ public static class ListRuntimeVersionsFixedSizeCollection ListRuntimeVersionsFixedSizeCollection> { private ListRuntimeVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3770,7 +3781,7 @@ private static ListRuntimeVersionsFixedSizeCollection createEmptyCollection() { @Override protected ListRuntimeVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRuntimeVersionsFixedSizeCollection(pages, collectionSize); } } @@ -3804,8 +3815,9 @@ public static class ListReservationsPage ListReservationsRequest, ListReservationsResponse, Reservation, ListReservationsPage> { private ListReservationsPage( - PageContext context, - ListReservationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReservationsResponse response) { super(context, response); } @@ -3815,14 +3827,16 @@ private static ListReservationsPage createEmptyPage() { @Override protected ListReservationsPage createPage( - PageContext context, - ListReservationsResponse response) { + @Nullable PageContext + context, + @Nullable ListReservationsResponse response) { return new ListReservationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3837,7 +3851,7 @@ public static class ListReservationsFixedSizeCollection ListReservationsFixedSizeCollection> { private ListReservationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3847,7 +3861,7 @@ private static ListReservationsFixedSizeCollection createEmptyCollection() { @Override protected ListReservationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReservationsFixedSizeCollection(pages, collectionSize); } } @@ -3881,8 +3895,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3892,14 +3906,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3913,7 +3927,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3923,7 +3938,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java index 20c2d9bf57b4..32ffadcd7197 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -374,7 +375,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -394,7 +395,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TpuStubSettings.newBuilder(clientContext)); } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java index d480f7e7ef4b..644899386439 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java @@ -70,6 +70,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -82,7 +83,7 @@ @Generated("by gapic-generator-java") public abstract class TpuStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java index 788b3da8eafd..15513610e055 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java @@ -101,6 +101,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -870,7 +871,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1050,7 +1051,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listNodesSettings = PagedCallSettings.newBuilder(LIST_NODES_PAGE_STR_FACT); diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java index 8832123044cb..f99ced9af8b9 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/AcceleratorTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String acceleratorT .toString(); } - public static AcceleratorTypeName parse(String formattedString) { + public static @Nullable AcceleratorTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AcceleratorTypeName> values) { List list = new ArrayList<>(values.size()); for (AcceleratorTypeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java index f1461934b366..c53021af1004 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java index fa6ce94f2b6d..5b15f74bd78e 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String node) { return newBuilder().setProject(project).setLocation(location).setNode(node).build().toString(); } - public static NodeName parse(String formattedString) { + public static @Nullable NodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeName> values) { List list = new ArrayList<>(values.size()); for (NodeName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java index a381b0c6141b..4d4a02141703 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/TensorFlowVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String tensorFlowVe .toString(); } - public static TensorFlowVersionName parse(String formattedString) { + public static @Nullable TensorFlowVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TensorFlowVersionName> values) { List list = new ArrayList<>(values.size()); for (TensorFlowVersionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java index 14d309cecad7..8f84985e6785 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String acceleratorT .toString(); } - public static AcceleratorTypeName parse(String formattedString) { + public static @Nullable AcceleratorTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AcceleratorTypeName> values) { List list = new ArrayList<>(values.size()); for (AcceleratorTypeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java index b7cc4f09ebe9..32a10acf3933 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java index 7c437a39198a..c1a4ebe901c9 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String node) { return newBuilder().setProject(project).setLocation(location).setNode(node).build().toString(); } - public static NodeName parse(String formattedString) { + public static @Nullable NodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeName> values) { List list = new ArrayList<>(values.size()); for (NodeName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java index 2aaa94eff789..1f16c36647fb 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String queuedResour .toString(); } - public static QueuedResourceName parse(String formattedString) { + public static @Nullable QueuedResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueuedResourceName> values) { List list = new ArrayList<>(values.size()); for (QueuedResourceName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java index acaef3ceeafd..cc01f41db9cd 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/RuntimeVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String runtimeVersi .toString(); } - public static RuntimeVersionName parse(String formattedString) { + public static @Nullable RuntimeVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuntimeVersionName> values) { List list = new ArrayList<>(values.size()); for (RuntimeVersionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java index 542bfc8dfbbf..1faad2c5eb40 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String acceleratorT .toString(); } - public static AcceleratorTypeName parse(String formattedString) { + public static @Nullable AcceleratorTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AcceleratorTypeName> values) { List list = new ArrayList<>(values.size()); for (AcceleratorTypeName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java index 6010e70fe9a7..54c071fd83a4 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java index c34b0a9adbdc..212879abd11a 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String node) { return newBuilder().setProject(project).setLocation(location).setNode(node).build().toString(); } - public static NodeName parse(String formattedString) { + public static @Nullable NodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeName> values) { List list = new ArrayList<>(values.size()); for (NodeName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java index 338ab86ceb95..58c7149604c3 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String queuedResour .toString(); } - public static QueuedResourceName parse(String formattedString) { + public static @Nullable QueuedResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable QueuedResourceName> values) { List list = new ArrayList<>(values.size()); for (QueuedResourceName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java index 89060519ad05..8d76f1123676 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String reservation) .toString(); } - public static ReservationName parse(String formattedString) { + public static @Nullable ReservationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReservationName> values) { List list = new ArrayList<>(values.size()); for (ReservationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java index 7d5b3912c8c6..4b1e9c5818eb 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/RuntimeVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String runtimeVersi .toString(); } - public static RuntimeVersionName parse(String formattedString) { + public static @Nullable RuntimeVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuntimeVersionName> values) { List list = new ArrayList<>(values.size()); for (RuntimeVersionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java index 01bfe035a28a..bccfc7b48c42 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java @@ -39,6 +39,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. /** @@ -185,7 +186,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TraceServiceClient implements BackgroundResource { - private final TraceServiceSettings settings; + private final @Nullable TraceServiceSettings settings; private final TraceServiceStub stub; /** Constructs an instance of TraceServiceClient with default settings. */ @@ -224,7 +225,7 @@ protected TraceServiceClient(TraceServiceStub stub) { this.stub = stub; } - public final TraceServiceSettings getSettings() { + public final @Nullable TraceServiceSettings getSettings() { return settings; } @@ -610,8 +611,8 @@ public static class ListTracesPage extends AbstractPage { private ListTracesPage( - PageContext context, - ListTracesResponse response) { + @Nullable PageContext context, + @Nullable ListTracesResponse response) { super(context, response); } @@ -621,14 +622,14 @@ private static ListTracesPage createEmptyPage() { @Override protected ListTracesPage createPage( - PageContext context, - ListTracesResponse response) { + @Nullable PageContext context, + @Nullable ListTracesResponse response) { return new ListTracesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -642,7 +643,8 @@ public static class ListTracesFixedSizeCollection ListTracesPage, ListTracesFixedSizeCollection> { - private ListTracesFixedSizeCollection(List pages, int collectionSize) { + private ListTracesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -652,7 +654,7 @@ private static ListTracesFixedSizeCollection createEmptyCollection() { @Override protected ListTracesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTracesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceSettings.java index 440d21b5cb92..a6b7a4fba2f1 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TraceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java index 236b8a30b343..04ab163026c6 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/TraceServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -294,7 +295,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); } @@ -365,7 +366,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listTracesSettings = PagedCallSettings.newBuilder(LIST_TRACES_PAGE_STR_FACT); diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java index 24e832ae5a36..f3b11f92ec94 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceClient.java @@ -29,6 +29,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. /** @@ -156,7 +157,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TraceServiceClient implements BackgroundResource { - private final TraceServiceSettings settings; + private final @Nullable TraceServiceSettings settings; private final TraceServiceStub stub; /** Constructs an instance of TraceServiceClient with default settings. */ @@ -195,7 +196,7 @@ protected TraceServiceClient(TraceServiceStub stub) { this.stub = stub; } - public final TraceServiceSettings getSettings() { + public final @Nullable TraceServiceSettings getSettings() { return settings; } @@ -228,7 +229,7 @@ public TraceServiceStub getStub() { * otherwise the results are undefined. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchWriteSpans(ProjectName name, List spans) { + public final void batchWriteSpans(@Nullable ProjectName name, List spans) { BatchWriteSpansRequest request = BatchWriteSpansRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java index 33b7f54a7021..3d101263d01d 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,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); } @@ -175,7 +176,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TraceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java index 256b6c876754..0637d614593a 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/TraceServiceStubSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -305,7 +306,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchWriteSpansSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/ProjectName.java b/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/ProjectName.java index 8fc0922a28b6..5e3e74137734 100644 --- a/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/ProjectName.java +++ b/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/SpanName.java b/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/SpanName.java index 50a40dcccd46..fcf501c67bb2 100644 --- a/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/SpanName.java +++ b/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/SpanName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String trace, String span) { return newBuilder().setProject(project).setTrace(trace).setSpan(span).build().toString(); } - public static SpanName parse(String formattedString) { + public static @Nullable SpanName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SpanName> values) { List list = new ArrayList<>(values.size()); for (SpanName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java index a9301d09fbf6..383165a84b46 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -39,6 +39,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. /** @@ -865,7 +866,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; + private final @Nullable TranslationServiceSettings settings; private final TranslationServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -913,7 +914,7 @@ protected TranslationServiceClient(TranslationServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TranslationServiceSettings getSettings() { + public final @Nullable TranslationServiceSettings getSettings() { return settings; } @@ -976,7 +977,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TranslateTextResponse translateText( - LocationName parent, String targetLanguageCode, List contents) { + @Nullable LocationName parent, String targetLanguageCode, List contents) { TranslateTextRequest request = TranslateTextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1094,7 +1095,7 @@ public final TranslateTextResponse translateText( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TranslateTextResponse translateText( - LocationName parent, + @Nullable LocationName parent, String model, String mimeType, String sourceLanguageCode, @@ -1289,7 +1290,8 @@ public final UnaryCallable translat * @param contents Required. The content of the input in string format. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final RomanizeTextResponse romanizeText(LocationName parent, List contents) { + public final RomanizeTextResponse romanizeText( + @Nullable LocationName parent, List contents) { RomanizeTextRequest request = RomanizeTextRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1432,7 +1434,7 @@ public final UnaryCallable romanizeTe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType, String content) { + @Nullable LocationName parent, String model, String mimeType, String content) { DetectLanguageRequest request = DetectLanguageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1601,7 +1603,7 @@ public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportedLanguages getSupportedLanguages( - LocationName parent, String model, String displayLanguageCode) { + @Nullable LocationName parent, String model, String displayLanguageCode) { GetSupportedLanguagesRequest request = GetSupportedLanguagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1980,7 +1982,7 @@ public final UnaryCallable batchTranslateT */ public final OperationFuture batchTranslateDocumentAsync( - LocationName parent, + @Nullable LocationName parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, @@ -2228,7 +2230,7 @@ public final UnaryCallable batchTranslateT * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { + @Nullable LocationName parent, Glossary glossary) { CreateGlossaryRequest request = CreateGlossaryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2507,7 +2509,7 @@ public final UnaryCallable updateGlossaryCalla * @param parent Required. The name of the project from which to list all of the glossaries. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent) { + public final ListGlossariesPagedResponse listGlossaries(@Nullable LocationName parent) { ListGlossariesRequest request = ListGlossariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2672,7 +2674,7 @@ public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest re * @param name Required. The name of the glossary to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Glossary getGlossary(GlossaryName name) { + public final Glossary getGlossary(@Nullable GlossaryName name) { GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlossary(request); @@ -2783,7 +2785,7 @@ public final UnaryCallable getGlossaryCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { + @Nullable GlossaryName name) { DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGlossaryAsync(request); @@ -2929,7 +2931,7 @@ public final UnaryCallable deleteGlossaryCalla * @param name Required. The resource name of the glossary entry to get * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlossaryEntry getGlossaryEntry(GlossaryEntryName name) { + public final GlossaryEntry getGlossaryEntry(@Nullable GlossaryEntryName name) { GetGlossaryEntryRequest request = GetGlossaryEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlossaryEntry(request); @@ -3047,7 +3049,7 @@ public final UnaryCallable getGlossaryEn * @param parent Required. The parent glossary resource name for listing the glossary's entries. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossaryEntriesPagedResponse listGlossaryEntries(GlossaryName parent) { + public final ListGlossaryEntriesPagedResponse listGlossaryEntries(@Nullable GlossaryName parent) { ListGlossaryEntriesRequest request = ListGlossaryEntriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3215,7 +3217,8 @@ public final ListGlossaryEntriesPagedResponse listGlossaryEntries( * @param glossaryEntry Required. The glossary entry to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlossaryEntry createGlossaryEntry(GlossaryName parent, GlossaryEntry glossaryEntry) { + public final GlossaryEntry createGlossaryEntry( + @Nullable GlossaryName parent, GlossaryEntry glossaryEntry) { CreateGlossaryEntryRequest request = CreateGlossaryEntryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3421,7 +3424,7 @@ public final GlossaryEntry updateGlossaryEntry(UpdateGlossaryEntryRequest reques * @param name Required. The resource name of the glossary entry to delete * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGlossaryEntry(GlossaryEntryName name) { + public final void deleteGlossaryEntry(@Nullable GlossaryEntryName name) { DeleteGlossaryEntryRequest request = DeleteGlossaryEntryRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3542,7 +3545,7 @@ public final UnaryCallable deleteGlossaryEntr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDatasetAsync( - LocationName parent, Dataset dataset) { + @Nullable LocationName parent, Dataset dataset) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3691,7 +3694,7 @@ public final UnaryCallable createDatasetCallabl * @param name Required. The resource name of the dataset to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Dataset getDataset(DatasetName name) { + public final Dataset getDataset(@Nullable DatasetName name) { GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataset(request); @@ -3802,7 +3805,7 @@ public final UnaryCallable getDatasetCallable() { * `projects/{project-number-or-id}/locations/{location-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatasetsPagedResponse listDatasets(LocationName parent) { + public final ListDatasetsPagedResponse listDatasets(@Nullable LocationName parent) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3964,7 +3967,8 @@ public final UnaryCallable listDatase * @param name Required. The name of the dataset to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDatasetAsync(DatasetName name) { + public final OperationFuture deleteDatasetAsync( + @Nullable DatasetName name) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDatasetAsync(request); @@ -4108,7 +4112,7 @@ public final UnaryCallable deleteDatasetCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AdaptiveMtDataset createAdaptiveMtDataset( - LocationName parent, AdaptiveMtDataset adaptiveMtDataset) { + @Nullable LocationName parent, AdaptiveMtDataset adaptiveMtDataset) { CreateAdaptiveMtDatasetRequest request = CreateAdaptiveMtDatasetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4233,7 +4237,7 @@ public final AdaptiveMtDataset createAdaptiveMtDataset(CreateAdaptiveMtDatasetRe * `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdaptiveMtDataset(AdaptiveMtDatasetName name) { + public final void deleteAdaptiveMtDataset(@Nullable AdaptiveMtDatasetName name) { DeleteAdaptiveMtDatasetRequest request = DeleteAdaptiveMtDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4348,7 +4352,7 @@ public final void deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request * `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdaptiveMtDataset getAdaptiveMtDataset(AdaptiveMtDatasetName name) { + public final AdaptiveMtDataset getAdaptiveMtDataset(@Nullable AdaptiveMtDatasetName name) { GetAdaptiveMtDatasetRequest request = GetAdaptiveMtDatasetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4466,7 +4470,8 @@ public final AdaptiveMtDataset getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest * datasets. `projects/{project-number-or-id}/locations/{location-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdaptiveMtDatasetsPagedResponse listAdaptiveMtDatasets(LocationName parent) { + public final ListAdaptiveMtDatasetsPagedResponse listAdaptiveMtDatasets( + @Nullable LocationName parent) { ListAdaptiveMtDatasetsRequest request = ListAdaptiveMtDatasetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4641,7 +4646,7 @@ public final ListAdaptiveMtDatasetsPagedResponse listAdaptiveMtDatasets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AdaptiveMtTranslateResponse adaptiveMtTranslate( - LocationName parent, List content) { + @Nullable LocationName parent, List content) { AdaptiveMtTranslateRequest request = AdaptiveMtTranslateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4776,7 +4781,7 @@ public final AdaptiveMtTranslateResponse adaptiveMtTranslate(AdaptiveMtTranslate * `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdaptiveMtFile getAdaptiveMtFile(AdaptiveMtFileName name) { + public final AdaptiveMtFile getAdaptiveMtFile(@Nullable AdaptiveMtFileName name) { GetAdaptiveMtFileRequest request = GetAdaptiveMtFileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4895,7 +4900,7 @@ public final UnaryCallable getAdaptive * `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdaptiveMtFile(AdaptiveMtFileName name) { + public final void deleteAdaptiveMtFile(@Nullable AdaptiveMtFileName name) { DeleteAdaptiveMtFileRequest request = DeleteAdaptiveMtFileRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5015,7 +5020,8 @@ public final UnaryCallable deleteAdaptiveMtF * `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImportAdaptiveMtFileResponse importAdaptiveMtFile(AdaptiveMtDatasetName parent) { + public final ImportAdaptiveMtFileResponse importAdaptiveMtFile( + @Nullable AdaptiveMtDatasetName parent) { ImportAdaptiveMtFileRequest request = ImportAdaptiveMtFileRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5138,7 +5144,8 @@ public final ImportAdaptiveMtFileResponse importAdaptiveMtFile( * files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdaptiveMtFilesPagedResponse listAdaptiveMtFiles(AdaptiveMtDatasetName parent) { + public final ListAdaptiveMtFilesPagedResponse listAdaptiveMtFiles( + @Nullable AdaptiveMtDatasetName parent) { ListAdaptiveMtFilesRequest request = ListAdaptiveMtFilesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5317,7 +5324,7 @@ public final ListAdaptiveMtFilesPagedResponse listAdaptiveMtFiles( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAdaptiveMtSentencesPagedResponse listAdaptiveMtSentences( - AdaptiveMtFileName parent) { + @Nullable AdaptiveMtFileName parent) { ListAdaptiveMtSentencesRequest request = ListAdaptiveMtSentencesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5737,7 +5744,7 @@ public final UnaryCallable exportDataCallable() { * `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExamplesPagedResponse listExamples(DatasetName parent) { + public final ListExamplesPagedResponse listExamples(@Nullable DatasetName parent) { ListExamplesRequest request = ListExamplesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5905,7 +5912,7 @@ public final UnaryCallable listExampl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createModelAsync( - LocationName parent, Model model) { + @Nullable LocationName parent, Model model) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6057,7 +6064,7 @@ public final UnaryCallable createModelCallable() * `projects/{project-number-or-id}/locations/{location-id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelsPagedResponse listModels(LocationName parent) { + public final ListModelsPagedResponse listModels(@Nullable LocationName parent) { ListModelsRequest request = ListModelsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listModels(request); @@ -6218,7 +6225,7 @@ public final UnaryCallable listModelsCall * @param name Required. The resource name of the model to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Model getModel(ModelName name) { + public final Model getModel(@Nullable ModelName name) { GetModelRequest request = GetModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getModel(request); @@ -6326,7 +6333,8 @@ public final UnaryCallable getModelCallable() { * @param name Required. The name of the model to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteModelAsync(ModelName name) { + public final OperationFuture deleteModelAsync( + @Nullable ModelName name) { DeleteModelRequest request = DeleteModelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteModelAsync(request); @@ -6503,8 +6511,8 @@ public static class ListGlossariesPage ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { super(context, response); } @@ -6514,14 +6522,14 @@ private static ListGlossariesPage createEmptyPage() { @Override protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { return new ListGlossariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6535,7 +6543,8 @@ public static class ListGlossariesFixedSizeCollection ListGlossariesPage, ListGlossariesFixedSizeCollection> { - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + private ListGlossariesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6545,7 +6554,7 @@ private static ListGlossariesFixedSizeCollection createEmptyCollection() { @Override protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossariesFixedSizeCollection(pages, collectionSize); } } @@ -6582,8 +6591,10 @@ public static class ListGlossaryEntriesPage ListGlossaryEntriesPage> { private ListGlossaryEntriesPage( - PageContext context, - ListGlossaryEntriesResponse response) { + @Nullable + PageContext + context, + @Nullable ListGlossaryEntriesResponse response) { super(context, response); } @@ -6593,14 +6604,18 @@ private static ListGlossaryEntriesPage createEmptyPage() { @Override protected ListGlossaryEntriesPage createPage( - PageContext context, - ListGlossaryEntriesResponse response) { + @Nullable + PageContext + context, + @Nullable ListGlossaryEntriesResponse response) { return new ListGlossaryEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6615,7 +6630,7 @@ public static class ListGlossaryEntriesFixedSizeCollection ListGlossaryEntriesFixedSizeCollection> { private ListGlossaryEntriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6625,7 +6640,7 @@ private static ListGlossaryEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListGlossaryEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossaryEntriesFixedSizeCollection(pages, collectionSize); } } @@ -6658,8 +6673,8 @@ public static class ListDatasetsPage extends AbstractPage { private ListDatasetsPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { super(context, response); } @@ -6669,14 +6684,14 @@ private static ListDatasetsPage createEmptyPage() { @Override protected ListDatasetsPage createPage( - PageContext context, - ListDatasetsResponse response) { + @Nullable PageContext context, + @Nullable ListDatasetsResponse response) { return new ListDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6690,7 +6705,8 @@ public static class ListDatasetsFixedSizeCollection ListDatasetsPage, ListDatasetsFixedSizeCollection> { - private ListDatasetsFixedSizeCollection(List pages, int collectionSize) { + private ListDatasetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6700,7 +6716,7 @@ private static ListDatasetsFixedSizeCollection createEmptyCollection() { @Override protected ListDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -6739,10 +6755,11 @@ public static class ListAdaptiveMtDatasetsPage ListAdaptiveMtDatasetsPage> { private ListAdaptiveMtDatasetsPage( - PageContext< + @Nullable + PageContext< ListAdaptiveMtDatasetsRequest, ListAdaptiveMtDatasetsResponse, AdaptiveMtDataset> context, - ListAdaptiveMtDatasetsResponse response) { + @Nullable ListAdaptiveMtDatasetsResponse response) { super(context, response); } @@ -6752,16 +6769,18 @@ private static ListAdaptiveMtDatasetsPage createEmptyPage() { @Override protected ListAdaptiveMtDatasetsPage createPage( - PageContext< + @Nullable + PageContext< ListAdaptiveMtDatasetsRequest, ListAdaptiveMtDatasetsResponse, AdaptiveMtDataset> context, - ListAdaptiveMtDatasetsResponse response) { + @Nullable ListAdaptiveMtDatasetsResponse response) { return new ListAdaptiveMtDatasetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAdaptiveMtDatasetsRequest, ListAdaptiveMtDatasetsResponse, AdaptiveMtDataset> context, ApiFuture futureResponse) { @@ -6778,7 +6797,7 @@ public static class ListAdaptiveMtDatasetsFixedSizeCollection ListAdaptiveMtDatasetsFixedSizeCollection> { private ListAdaptiveMtDatasetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6788,7 +6807,7 @@ private static ListAdaptiveMtDatasetsFixedSizeCollection createEmptyCollection() @Override protected ListAdaptiveMtDatasetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdaptiveMtDatasetsFixedSizeCollection(pages, collectionSize); } } @@ -6826,9 +6845,10 @@ public static class ListAdaptiveMtFilesPage ListAdaptiveMtFilesPage> { private ListAdaptiveMtFilesPage( - PageContext + @Nullable + PageContext context, - ListAdaptiveMtFilesResponse response) { + @Nullable ListAdaptiveMtFilesResponse response) { super(context, response); } @@ -6838,15 +6858,17 @@ private static ListAdaptiveMtFilesPage createEmptyPage() { @Override protected ListAdaptiveMtFilesPage createPage( - PageContext + @Nullable + PageContext context, - ListAdaptiveMtFilesResponse response) { + @Nullable ListAdaptiveMtFilesResponse response) { return new ListAdaptiveMtFilesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -6862,7 +6884,7 @@ public static class ListAdaptiveMtFilesFixedSizeCollection ListAdaptiveMtFilesFixedSizeCollection> { private ListAdaptiveMtFilesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6872,7 +6894,7 @@ private static ListAdaptiveMtFilesFixedSizeCollection createEmptyCollection() { @Override protected ListAdaptiveMtFilesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdaptiveMtFilesFixedSizeCollection(pages, collectionSize); } } @@ -6911,10 +6933,11 @@ public static class ListAdaptiveMtSentencesPage ListAdaptiveMtSentencesPage> { private ListAdaptiveMtSentencesPage( - PageContext< + @Nullable + PageContext< ListAdaptiveMtSentencesRequest, ListAdaptiveMtSentencesResponse, AdaptiveMtSentence> context, - ListAdaptiveMtSentencesResponse response) { + @Nullable ListAdaptiveMtSentencesResponse response) { super(context, response); } @@ -6924,16 +6947,18 @@ private static ListAdaptiveMtSentencesPage createEmptyPage() { @Override protected ListAdaptiveMtSentencesPage createPage( - PageContext< + @Nullable + PageContext< ListAdaptiveMtSentencesRequest, ListAdaptiveMtSentencesResponse, AdaptiveMtSentence> context, - ListAdaptiveMtSentencesResponse response) { + @Nullable ListAdaptiveMtSentencesResponse response) { return new ListAdaptiveMtSentencesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListAdaptiveMtSentencesRequest, ListAdaptiveMtSentencesResponse, AdaptiveMtSentence> context, ApiFuture futureResponse) { @@ -6950,7 +6975,7 @@ public static class ListAdaptiveMtSentencesFixedSizeCollection ListAdaptiveMtSentencesFixedSizeCollection> { private ListAdaptiveMtSentencesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6960,7 +6985,7 @@ private static ListAdaptiveMtSentencesFixedSizeCollection createEmptyCollection( @Override protected ListAdaptiveMtSentencesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAdaptiveMtSentencesFixedSizeCollection(pages, collectionSize); } } @@ -6993,8 +7018,8 @@ public static class ListExamplesPage extends AbstractPage { private ListExamplesPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { super(context, response); } @@ -7004,14 +7029,14 @@ private static ListExamplesPage createEmptyPage() { @Override protected ListExamplesPage createPage( - PageContext context, - ListExamplesResponse response) { + @Nullable PageContext context, + @Nullable ListExamplesResponse response) { return new ListExamplesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7025,7 +7050,8 @@ public static class ListExamplesFixedSizeCollection ListExamplesPage, ListExamplesFixedSizeCollection> { - private ListExamplesFixedSizeCollection(List pages, int collectionSize) { + private ListExamplesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7035,7 +7061,7 @@ private static ListExamplesFixedSizeCollection createEmptyCollection() { @Override protected ListExamplesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExamplesFixedSizeCollection(pages, collectionSize); } } @@ -7066,8 +7092,8 @@ public static class ListModelsPage extends AbstractPage { private ListModelsPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { super(context, response); } @@ -7077,14 +7103,14 @@ private static ListModelsPage createEmptyPage() { @Override protected ListModelsPage createPage( - PageContext context, - ListModelsResponse response) { + @Nullable PageContext context, + @Nullable ListModelsResponse response) { return new ListModelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -7098,7 +7124,8 @@ public static class ListModelsFixedSizeCollection ListModelsPage, ListModelsFixedSizeCollection> { - private ListModelsFixedSizeCollection(List pages, int collectionSize) { + private ListModelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -7108,7 +7135,7 @@ private static ListModelsFixedSizeCollection createEmptyCollection() { @Override protected ListModelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListModelsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java index 301b0dcc5a72..a9092351e4e0 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -473,7 +474,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); } @@ -493,7 +494,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TranslationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java index 24318c35b100..62f390d2f6ec 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java @@ -106,6 +106,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -117,11 +118,12 @@ @Generated("by gapic-generator-java") public abstract class TranslationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java index 226d980af07e..e3085ded2815 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java @@ -142,6 +142,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1177,7 +1178,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); } @@ -1419,7 +1420,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index 249dbd1fafd7..edcd12409252 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -37,6 +37,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. /** @@ -336,7 +337,7 @@ @BetaApi @Generated("by gapic-generator-java") public class TranslationServiceClient implements BackgroundResource { - private final TranslationServiceSettings settings; + private final @Nullable TranslationServiceSettings settings; private final TranslationServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -384,7 +385,7 @@ protected TranslationServiceClient(TranslationServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final TranslationServiceSettings getSettings() { + public final @Nullable TranslationServiceSettings getSettings() { return settings; } @@ -518,7 +519,7 @@ public final UnaryCallable translat * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DetectLanguageResponse detectLanguage( - LocationName parent, String model, String mimeType) { + @Nullable LocationName parent, String model, String mimeType) { DetectLanguageRequest request = DetectLanguageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -682,7 +683,7 @@ public final DetectLanguageResponse detectLanguage(DetectLanguageRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SupportedLanguages getSupportedLanguages( - LocationName parent, String displayLanguageCode, String model) { + @Nullable LocationName parent, String displayLanguageCode, String model) { GetSupportedLanguagesRequest request = GetSupportedLanguagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1061,7 +1062,7 @@ public final UnaryCallable batchTranslateT */ public final OperationFuture batchTranslateDocumentAsync( - LocationName parent, + @Nullable LocationName parent, String sourceLanguageCode, List targetLanguageCodes, List inputConfigs, @@ -1312,7 +1313,7 @@ public final UnaryCallable batchTranslateT * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGlossaryAsync( - LocationName parent, Glossary glossary) { + @Nullable LocationName parent, Glossary glossary) { CreateGlossaryRequest request = CreateGlossaryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1481,7 +1482,8 @@ public final UnaryCallable createGlossaryCalla * language set will be picked. If missing, no filtering is performed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGlossariesPagedResponse listGlossaries(LocationName parent, String filter) { + public final ListGlossariesPagedResponse listGlossaries( + @Nullable LocationName parent, String filter) { ListGlossariesRequest request = ListGlossariesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1662,7 +1664,7 @@ public final ListGlossariesPagedResponse listGlossaries(ListGlossariesRequest re * @param name Required. The name of the glossary to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Glossary getGlossary(GlossaryName name) { + public final Glossary getGlossary(@Nullable GlossaryName name) { GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGlossary(request); @@ -1773,7 +1775,7 @@ public final UnaryCallable getGlossaryCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGlossaryAsync( - GlossaryName name) { + @Nullable GlossaryName name) { DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGlossaryAsync(request); @@ -2018,8 +2020,8 @@ public static class ListGlossariesPage ListGlossariesRequest, ListGlossariesResponse, Glossary, ListGlossariesPage> { private ListGlossariesPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { super(context, response); } @@ -2029,14 +2031,14 @@ private static ListGlossariesPage createEmptyPage() { @Override protected ListGlossariesPage createPage( - PageContext context, - ListGlossariesResponse response) { + @Nullable PageContext context, + @Nullable ListGlossariesResponse response) { return new ListGlossariesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2050,7 +2052,8 @@ public static class ListGlossariesFixedSizeCollection ListGlossariesPage, ListGlossariesFixedSizeCollection> { - private ListGlossariesFixedSizeCollection(List pages, int collectionSize) { + private ListGlossariesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2060,7 +2063,7 @@ private static ListGlossariesFixedSizeCollection createEmptyCollection() { @Override protected ListGlossariesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGlossariesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java index 3ba6500e7c7a..ab6ed5ebd1b0 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -267,7 +268,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); } @@ -287,7 +288,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TranslationServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java index 2abb8c47fba7..a040489f4a47 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java @@ -51,6 +51,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -63,11 +64,12 @@ @Generated("by gapic-generator-java") public abstract class TranslationServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java index dd221317a270..bcabb20a8e28 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java @@ -84,6 +84,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -446,7 +447,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); } @@ -576,7 +577,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); translateTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtDatasetName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtDatasetName.java index af348f633d3c..afe4d72c530d 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtDatasetName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtDatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static AdaptiveMtDatasetName parse(String formattedString) { + public static @Nullable AdaptiveMtDatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AdaptiveMtDatasetName> values) { List list = new ArrayList<>(values.size()); for (AdaptiveMtDatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtFileName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtFileName.java index 599ba306040a..9194760f330a 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtFileName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/AdaptiveMtFileName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String dataset, Str .toString(); } - public static AdaptiveMtFileName parse(String formattedString) { + public static @Nullable AdaptiveMtFileName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AdaptiveMtFileName> values) { List list = new ArrayList<>(values.size()); for (AdaptiveMtFileName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DatasetName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DatasetName.java index abc0b3eb0dad..1c172b21ec2c 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DatasetName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DatasetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String dataset) { .toString(); } - public static DatasetName parse(String formattedString) { + public static @Nullable DatasetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatasetName> values) { List list = new ArrayList<>(values.size()); for (DatasetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryEntryName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryEntryName.java index fc54029c222b..6d32c721cb0c 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryEntryName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryEntryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static GlossaryEntryName parse(String formattedString) { + public static @Nullable GlossaryEntryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryEntryName> values) { List list = new ArrayList<>(values.size()); for (GlossaryEntryName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java index e0e9b8ad9b0c..bc91c26390a5 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String glossary) { .toString(); } - public static GlossaryName parse(String formattedString) { + public static @Nullable GlossaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryName> values) { List list = new ArrayList<>(values.size()); for (GlossaryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java index 570d77c4bf76..2f4e450296f4 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ModelName.java b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ModelName.java index 225055f9b60d..0d2cfdf3f123 100644 --- a/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ModelName.java +++ b/java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ModelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String model) { .toString(); } - public static ModelName parse(String formattedString) { + public static @Nullable ModelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ModelName> values) { List list = new ArrayList<>(values.size()); for (ModelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java index 96018df98351..1c37cf71d158 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String glossary) { .toString(); } - public static GlossaryName parse(String formattedString) { + public static @Nullable GlossaryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GlossaryName> values) { List list = new ArrayList<>(values.size()); for (GlossaryName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java index 97be50a2a266..ace22467f34e 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java +++ b/java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java index 64360f4b5b95..6b671d675b3f 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java @@ -44,6 +44,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. /** @@ -489,7 +490,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MemorystoreClient implements BackgroundResource { - private final MemorystoreSettings settings; + private final @Nullable MemorystoreSettings settings; private final MemorystoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -536,7 +537,7 @@ protected MemorystoreClient(MemorystoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final MemorystoreSettings getSettings() { + public final @Nullable MemorystoreSettings getSettings() { return settings; } @@ -585,7 +586,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -753,7 +754,7 @@ public final UnaryCallable listInst * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -878,7 +879,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1173,7 +1174,8 @@ public final UnaryCallable updateInstanceCalla * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1316,7 +1318,7 @@ public final UnaryCallable deleteInstanceCalla * projects/{project}/locations/{location}/instances/{instance}/certificateAuthority * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getCertificateAuthority(InstanceName name) { + public final CertificateAuthority getCertificateAuthority(@Nullable InstanceName name) { GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1436,7 +1438,7 @@ public final CertificateAuthority getCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - SharedRegionalCertificateAuthorityName name) { + @Nullable SharedRegionalCertificateAuthorityName name) { GetSharedRegionalCertificateAuthorityRequest request = GetSharedRegionalCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1567,7 +1569,7 @@ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuth * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName name, + @Nullable InstanceName name, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -1741,7 +1743,8 @@ public final OperationFuture rescheduleMaintenanceA * Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) { + public final ListBackupCollectionsPagedResponse listBackupCollections( + @Nullable LocationName parent) { ListBackupCollectionsRequest request = ListBackupCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1928,7 +1931,7 @@ public final ListBackupCollectionsPagedResponse listBackupCollections( * where `location_id` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BackupCollection getBackupCollection(BackupCollectionName name) { + public final BackupCollection getBackupCollection(@Nullable BackupCollectionName name) { GetBackupCollectionRequest request = GetBackupCollectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2052,7 +2055,7 @@ public final BackupCollection getBackupCollection(GetBackupCollectionRequest req * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBackupsPagedResponse listBackups(BackupCollectionName parent) { + public final ListBackupsPagedResponse listBackups(@Nullable BackupCollectionName parent) { ListBackupsRequest request = ListBackupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2220,7 +2223,7 @@ public final UnaryCallable listBackupsC * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Backup getBackup(BackupName name) { + public final Backup getBackup(@Nullable BackupName name) { GetBackupRequest request = GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBackup(request); @@ -2335,7 +2338,8 @@ public final UnaryCallable getBackupCallable() { * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteBackupAsync(BackupName name) { + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteBackupAsync(request); @@ -2585,7 +2589,8 @@ public final UnaryCallable exportBackupCallable( * refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture backupInstanceAsync(InstanceName name) { + public final OperationFuture backupInstanceAsync( + @Nullable InstanceName name) { BackupInstanceRequest request = BackupInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return backupInstanceAsync(request); @@ -2869,7 +2874,7 @@ public final UnaryCallable startMigrationCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture finishMigrationAsync( - InstanceName name, boolean force) { + @Nullable InstanceName name, boolean force) { FinishMigrationRequest request = FinishMigrationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3261,8 +3266,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -3272,14 +3277,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3293,7 +3298,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3303,7 +3309,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -3341,9 +3347,11 @@ public static class ListBackupCollectionsPage ListBackupCollectionsPage> { private ListBackupCollectionsPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { super(context, response); } @@ -3353,15 +3361,19 @@ private static ListBackupCollectionsPage createEmptyPage() { @Override protected ListBackupCollectionsPage createPage( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, - ListBackupCollectionsResponse response) { + @Nullable ListBackupCollectionsResponse response) { return new ListBackupCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -3377,7 +3389,7 @@ public static class ListBackupCollectionsFixedSizeCollection ListBackupCollectionsFixedSizeCollection> { private ListBackupCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3387,7 +3399,7 @@ private static ListBackupCollectionsFixedSizeCollection createEmptyCollection() @Override protected ListBackupCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -3418,8 +3430,8 @@ public static class ListBackupsPage extends AbstractPage { private ListBackupsPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { super(context, response); } @@ -3429,14 +3441,14 @@ private static ListBackupsPage createEmptyPage() { @Override protected ListBackupsPage createPage( - PageContext context, - ListBackupsResponse response) { + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { return new ListBackupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3450,7 +3462,8 @@ public static class ListBackupsFixedSizeCollection ListBackupsPage, ListBackupsFixedSizeCollection> { - private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3460,7 +3473,7 @@ private static ListBackupsFixedSizeCollection createEmptyCollection() { @Override protected ListBackupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBackupsFixedSizeCollection(pages, collectionSize); } } @@ -3494,8 +3507,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3505,14 +3518,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3526,7 +3539,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3536,7 +3550,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java index 4dc3409ec10c..d09c9016fcc7 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -343,7 +344,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); } @@ -363,7 +364,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MemorystoreStubSettings.newBuilder(clientContext)); } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java index ec7991b3c303..5d6c4d8eb0e1 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java @@ -59,6 +59,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class MemorystoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java index cbf6a646d5c4..d755ff0ce6cf 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java @@ -93,6 +93,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -712,7 +713,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); } @@ -875,7 +876,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java index 45afc09ec459..20aaabb7cb08 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreClient.java @@ -43,6 +43,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. /** @@ -296,7 +297,7 @@ @BetaApi @Generated("by gapic-generator-java") public class MemorystoreClient implements BackgroundResource { - private final MemorystoreSettings settings; + private final @Nullable MemorystoreSettings settings; private final MemorystoreStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -343,7 +344,7 @@ protected MemorystoreClient(MemorystoreStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final MemorystoreSettings getSettings() { + public final @Nullable MemorystoreSettings getSettings() { return settings; } @@ -392,7 +393,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -560,7 +561,7 @@ public final UnaryCallable listInst * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -685,7 +686,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, Instance instance, String instanceId) { + @Nullable LocationName parent, Instance instance, String instanceId) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -980,7 +981,8 @@ public final UnaryCallable updateInstanceCalla * projects/{project}/locations/{location}/instances/{instance} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync( + @Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -1123,7 +1125,7 @@ public final UnaryCallable deleteInstanceCalla * projects/{project}/locations/{location}/instances/{instance}/certificateAuthority * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CertificateAuthority getCertificateAuthority(InstanceName name) { + public final CertificateAuthority getCertificateAuthority(@Nullable InstanceName name) { GetCertificateAuthorityRequest request = GetCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1243,7 +1245,7 @@ public final CertificateAuthority getCertificateAuthority( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SharedRegionalCertificateAuthority getSharedRegionalCertificateAuthority( - SharedRegionalCertificateAuthorityName name) { + @Nullable SharedRegionalCertificateAuthorityName name) { GetSharedRegionalCertificateAuthorityRequest request = GetSharedRegionalCertificateAuthorityRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1558,8 +1560,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -1569,14 +1571,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1590,7 +1592,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1600,7 +1603,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -1634,8 +1637,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1645,14 +1648,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1666,7 +1669,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1676,7 +1680,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java index 18316900f732..81b125d41e85 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/MemorystoreSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -249,7 +250,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); } @@ -269,7 +270,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MemorystoreStubSettings.newBuilder(clientContext)); } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java index 36e66383c46d..831303456c4c 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStub.java @@ -44,6 +44,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,11 +57,12 @@ @Generated("by gapic-generator-java") public abstract class MemorystoreStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java index 245279106bbc..5d29e6ec5fda 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/MemorystoreStubSettings.java @@ -77,6 +77,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -457,7 +458,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); } @@ -569,7 +570,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupCollectionName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupCollectionName.java index b36c2921fb93..258a2be8c174 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupCollectionName.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupCollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String backupCollec .toString(); } - public static BackupCollectionName parse(String formattedString) { + public static @Nullable BackupCollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupCollectionName> values) { List list = new ArrayList<>(values.size()); for (BackupCollectionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupName.java index d026182f9d30..16e1e4d42a2f 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupName.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/BackupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static BackupName parse(String formattedString) { + public static @Nullable BackupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BackupName> values) { List list = new ArrayList<>(values.size()); for (BackupName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceName.java index 3a6fd50e65d4..433152c5641b 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceName.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/LocationName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/LocationName.java index c97a7619a562..d6c15f8ed835 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/LocationName.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SharedRegionalCertificateAuthorityName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SharedRegionalCertificateAuthorityName.java index 74b93710690e..1b94d5708770 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SharedRegionalCertificateAuthorityName.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/SharedRegionalCertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SharedRegionalCertificateAuthorityName parse(String formattedString) { + public static @Nullable SharedRegionalCertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -93,7 +94,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SharedRegionalCertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (SharedRegionalCertificateAuthorityName value : values) { if (value == null) { @@ -138,7 +140,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceName.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceName.java index 1d557056d9e0..14ef249966fb 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceName.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/LocationName.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/LocationName.java index 3fabd88d38df..98c831e31acf 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/LocationName.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/SharedRegionalCertificateAuthorityName.java b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/SharedRegionalCertificateAuthorityName.java index f8f5cf68682b..5faf95673bd4 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/SharedRegionalCertificateAuthorityName.java +++ b/java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/SharedRegionalCertificateAuthorityName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static SharedRegionalCertificateAuthorityName parse(String formattedString) { + public static @Nullable SharedRegionalCertificateAuthorityName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -93,7 +94,8 @@ public static List parseList( return list; } - public static List toStringList(List values) { + public static List toStringList( + List<@Nullable SharedRegionalCertificateAuthorityName> values) { List list = new ArrayList<>(values.size()); for (SharedRegionalCertificateAuthorityName value : values) { if (value == null) { @@ -138,7 +140,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java index bc07102f1c4f..159aa19ea4fd 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceClient.java @@ -36,6 +36,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. /** @@ -224,7 +225,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataObjectSearchServiceClient implements BackgroundResource { - private final DataObjectSearchServiceSettings settings; + private final @Nullable DataObjectSearchServiceSettings settings; private final DataObjectSearchServiceStub stub; /** Constructs an instance of DataObjectSearchServiceClient with default settings. */ @@ -265,7 +266,7 @@ protected DataObjectSearchServiceClient(DataObjectSearchServiceStub stub) { this.stub = stub; } - public final DataObjectSearchServiceSettings getSettings() { + public final @Nullable DataObjectSearchServiceSettings getSettings() { return settings; } @@ -887,8 +888,9 @@ public static class SearchDataObjectsPage SearchDataObjectsPage> { private SearchDataObjectsPage( - PageContext context, - SearchDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataObjectsResponse response) { super(context, response); } @@ -898,14 +900,16 @@ private static SearchDataObjectsPage createEmptyPage() { @Override protected SearchDataObjectsPage createPage( - PageContext context, - SearchDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataObjectsResponse response) { return new SearchDataObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -920,7 +924,7 @@ public static class SearchDataObjectsFixedSizeCollection SearchDataObjectsFixedSizeCollection> { private SearchDataObjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -930,7 +934,7 @@ private static SearchDataObjectsFixedSizeCollection createEmptyCollection() { @Override protected SearchDataObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDataObjectsFixedSizeCollection(pages, collectionSize); } } @@ -964,8 +968,9 @@ public static class QueryDataObjectsPage QueryDataObjectsRequest, QueryDataObjectsResponse, DataObject, QueryDataObjectsPage> { private QueryDataObjectsPage( - PageContext context, - QueryDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable QueryDataObjectsResponse response) { super(context, response); } @@ -975,14 +980,16 @@ private static QueryDataObjectsPage createEmptyPage() { @Override protected QueryDataObjectsPage createPage( - PageContext context, - QueryDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable QueryDataObjectsResponse response) { return new QueryDataObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -997,7 +1004,7 @@ public static class QueryDataObjectsFixedSizeCollection QueryDataObjectsFixedSizeCollection> { private QueryDataObjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1007,7 +1014,7 @@ private static QueryDataObjectsFixedSizeCollection createEmptyCollection() { @Override protected QueryDataObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDataObjectsFixedSizeCollection(pages, collectionSize); } } @@ -1041,8 +1048,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1052,14 +1059,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1073,7 +1080,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1083,7 +1091,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceSettings.java index 3b0dbb3568c6..2adf9daa2b09 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectSearchServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataObjectSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java index 38a8b11d1ff7..28f74f6a3f3a 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceClient.java @@ -38,6 +38,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. /** @@ -285,7 +286,7 @@ @NullMarked @Generated("by gapic-generator-java") public class DataObjectServiceClient implements BackgroundResource { - private final DataObjectServiceSettings settings; + private final @Nullable DataObjectServiceSettings settings; private final DataObjectServiceStub stub; /** Constructs an instance of DataObjectServiceClient with default settings. */ @@ -325,7 +326,7 @@ protected DataObjectServiceClient(DataObjectServiceStub stub) { this.stub = stub; } - public final DataObjectServiceSettings getSettings() { + public final @Nullable DataObjectServiceSettings getSettings() { return settings; } @@ -364,7 +365,7 @@ public DataObjectServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataObject createDataObject( - CollectionName parent, DataObject dataObject, String dataObjectId) { + @Nullable CollectionName parent, DataObject dataObject, String dataObjectId) { CreateDataObjectRequest request = CreateDataObjectRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +560,7 @@ public final BatchCreateDataObjectsResponse batchCreateDataObjects( * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataObject getDataObject(DataObjectName name) { + public final DataObject getDataObject(@Nullable DataObjectName name) { GetDataObjectRequest request = GetDataObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataObject(request); @@ -772,7 +773,7 @@ public final UnaryCallable updateDataObject * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateDataObjectsResponse batchUpdateDataObjects( - CollectionName parent, List requests) { + @Nullable CollectionName parent, List requests) { BatchUpdateDataObjectsRequest request = BatchUpdateDataObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -902,7 +903,7 @@ public final BatchUpdateDataObjectsResponse batchUpdateDataObjects( * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataObject(DataObjectName name) { + public final void deleteDataObject(@Nullable DataObjectName name) { DeleteDataObjectRequest request = DeleteDataObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataObject(request); @@ -1024,7 +1025,7 @@ public final UnaryCallable deleteDataObjectCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void batchDeleteDataObjects( - CollectionName parent, List requests) { + @Nullable CollectionName parent, List requests) { BatchDeleteDataObjectsRequest request = BatchDeleteDataObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1378,8 +1379,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1389,14 +1390,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1410,7 +1411,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1420,7 +1422,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceSettings.java index a833fd44775a..6fb1e01b53e3 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -199,7 +200,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); } @@ -219,7 +220,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataObjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java index b33703417941..e7210cffadaf 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceClient.java @@ -43,6 +43,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. /** @@ -395,7 +396,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VectorSearchServiceClient implements BackgroundResource { - private final VectorSearchServiceSettings settings; + private final @Nullable VectorSearchServiceSettings settings; private final VectorSearchServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -443,7 +444,7 @@ protected VectorSearchServiceClient(VectorSearchServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VectorSearchServiceSettings getSettings() { + public final @Nullable VectorSearchServiceSettings getSettings() { return settings; } @@ -491,7 +492,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListCollectionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCollectionsPagedResponse listCollections(LocationName parent) { + public final ListCollectionsPagedResponse listCollections(@Nullable LocationName parent) { ListCollectionsRequest request = ListCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -659,7 +660,7 @@ public final ListCollectionsPagedResponse listCollections(ListCollectionsRequest * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Collection getCollection(CollectionName name) { + public final Collection getCollection(@Nullable CollectionName name) { GetCollectionRequest request = GetCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCollection(request); @@ -777,7 +778,7 @@ public final UnaryCallable getCollectionCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectionAsync( - LocationName parent, Collection collection, String collectionId) { + @Nullable LocationName parent, Collection collection, String collectionId) { CreateCollectionRequest request = CreateCollectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1081,7 +1082,7 @@ public final UnaryCallable updateCollectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCollectionAsync( - CollectionName name) { + @Nullable CollectionName name) { DeleteCollectionRequest request = DeleteCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCollectionAsync(request); @@ -1228,7 +1229,7 @@ public final UnaryCallable deleteCollectionC * @param parent Required. Parent value for ListIndexesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(CollectionName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable CollectionName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1395,7 +1396,7 @@ public final UnaryCallable listIndexesC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -1513,7 +1514,7 @@ public final UnaryCallable getIndexCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - CollectionName parent, Index index, String indexId) { + @Nullable CollectionName parent, Index index, String indexId) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1809,7 +1810,8 @@ public final UnaryCallable updateIndexCallable() * `projects/{project}/locations/{location}/collections/{collection}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIndexAsync(IndexName name) { + public final OperationFuture deleteIndexAsync( + @Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIndexAsync(request); @@ -2365,8 +2367,8 @@ public static class ListCollectionsPage ListCollectionsRequest, ListCollectionsResponse, Collection, ListCollectionsPage> { private ListCollectionsPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { super(context, response); } @@ -2376,14 +2378,14 @@ private static ListCollectionsPage createEmptyPage() { @Override protected ListCollectionsPage createPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { return new ListCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2398,7 +2400,7 @@ public static class ListCollectionsFixedSizeCollection ListCollectionsFixedSizeCollection> { private ListCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2408,7 +2410,7 @@ private static ListCollectionsFixedSizeCollection createEmptyCollection() { @Override protected ListCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -2439,8 +2441,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -2450,14 +2452,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2471,7 +2473,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2481,7 +2484,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -2515,8 +2518,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2526,14 +2529,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2547,7 +2550,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2557,7 +2561,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java index 8be9128a2538..5470c42de796 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/VectorSearchServiceSettings.java @@ -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. /** @@ -311,7 +312,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); } @@ -331,7 +332,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VectorSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectSearchServiceStubSettings.java index 6b158180625f..a404fc04edd9 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectSearchServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -448,7 +449,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); } @@ -535,7 +536,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDataObjectsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_OBJECTS_PAGE_STR_FACT); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectServiceStubSettings.java index f1e2bec0030d..d8aaad2195b0 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/DataObjectServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,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); } @@ -462,7 +463,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java index 8eb621d70690..989c6446588b 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStub.java @@ -53,6 +53,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,11 +65,12 @@ @Generated("by gapic-generator-java") public abstract class VectorSearchServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java index c24ad568533b..a54ec0c3158c 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/VectorSearchServiceStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -590,7 +591,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); } @@ -738,7 +739,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCollectionsSettings = PagedCallSettings.newBuilder(LIST_COLLECTIONS_PAGE_STR_FACT); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java index 118eef8024ba..0fd4ce2a24dd 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceClient.java @@ -37,6 +37,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. /** @@ -226,7 +227,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataObjectSearchServiceClient implements BackgroundResource { - private final DataObjectSearchServiceSettings settings; + private final @Nullable DataObjectSearchServiceSettings settings; private final DataObjectSearchServiceStub stub; /** Constructs an instance of DataObjectSearchServiceClient with default settings. */ @@ -267,7 +268,7 @@ protected DataObjectSearchServiceClient(DataObjectSearchServiceStub stub) { this.stub = stub; } - public final DataObjectSearchServiceSettings getSettings() { + public final @Nullable DataObjectSearchServiceSettings getSettings() { return settings; } @@ -889,8 +890,9 @@ public static class SearchDataObjectsPage SearchDataObjectsPage> { private SearchDataObjectsPage( - PageContext context, - SearchDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataObjectsResponse response) { super(context, response); } @@ -900,14 +902,16 @@ private static SearchDataObjectsPage createEmptyPage() { @Override protected SearchDataObjectsPage createPage( - PageContext context, - SearchDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable SearchDataObjectsResponse response) { return new SearchDataObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -922,7 +926,7 @@ public static class SearchDataObjectsFixedSizeCollection SearchDataObjectsFixedSizeCollection> { private SearchDataObjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -932,7 +936,7 @@ private static SearchDataObjectsFixedSizeCollection createEmptyCollection() { @Override protected SearchDataObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchDataObjectsFixedSizeCollection(pages, collectionSize); } } @@ -966,8 +970,9 @@ public static class QueryDataObjectsPage QueryDataObjectsRequest, QueryDataObjectsResponse, DataObject, QueryDataObjectsPage> { private QueryDataObjectsPage( - PageContext context, - QueryDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable QueryDataObjectsResponse response) { super(context, response); } @@ -977,14 +982,16 @@ private static QueryDataObjectsPage createEmptyPage() { @Override protected QueryDataObjectsPage createPage( - PageContext context, - QueryDataObjectsResponse response) { + @Nullable PageContext + context, + @Nullable QueryDataObjectsResponse response) { return new QueryDataObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -999,7 +1006,7 @@ public static class QueryDataObjectsFixedSizeCollection QueryDataObjectsFixedSizeCollection> { private QueryDataObjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1009,7 +1016,7 @@ private static QueryDataObjectsFixedSizeCollection createEmptyCollection() { @Override protected QueryDataObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new QueryDataObjectsFixedSizeCollection(pages, collectionSize); } } @@ -1043,8 +1050,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1054,14 +1061,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1075,7 +1082,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1085,7 +1093,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceSettings.java index 152a038b8129..5ef48e36cdd2 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectSearchServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataObjectSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java index 7b0f6ff89f26..c8b76ab36f9d 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceClient.java @@ -39,6 +39,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. /** @@ -287,7 +288,7 @@ @BetaApi @Generated("by gapic-generator-java") public class DataObjectServiceClient implements BackgroundResource { - private final DataObjectServiceSettings settings; + private final @Nullable DataObjectServiceSettings settings; private final DataObjectServiceStub stub; /** Constructs an instance of DataObjectServiceClient with default settings. */ @@ -327,7 +328,7 @@ protected DataObjectServiceClient(DataObjectServiceStub stub) { this.stub = stub; } - public final DataObjectServiceSettings getSettings() { + public final @Nullable DataObjectServiceSettings getSettings() { return settings; } @@ -366,7 +367,7 @@ public DataObjectServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataObject createDataObject( - CollectionName parent, DataObject dataObject, String dataObjectId) { + @Nullable CollectionName parent, DataObject dataObject, String dataObjectId) { CreateDataObjectRequest request = CreateDataObjectRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -561,7 +562,7 @@ public final BatchCreateDataObjectsResponse batchCreateDataObjects( * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataObject getDataObject(DataObjectName name) { + public final DataObject getDataObject(@Nullable DataObjectName name) { GetDataObjectRequest request = GetDataObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataObject(request); @@ -774,7 +775,7 @@ public final UnaryCallable updateDataObject * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchUpdateDataObjectsResponse batchUpdateDataObjects( - CollectionName parent, List requests) { + @Nullable CollectionName parent, List requests) { BatchUpdateDataObjectsRequest request = BatchUpdateDataObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -904,7 +905,7 @@ public final BatchUpdateDataObjectsResponse batchUpdateDataObjects( * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataObject(DataObjectName name) { + public final void deleteDataObject(@Nullable DataObjectName name) { DeleteDataObjectRequest request = DeleteDataObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataObject(request); @@ -1026,7 +1027,7 @@ public final UnaryCallable deleteDataObjectCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void batchDeleteDataObjects( - CollectionName parent, List requests) { + @Nullable CollectionName parent, List requests) { BatchDeleteDataObjectsRequest request = BatchDeleteDataObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1380,8 +1381,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1391,14 +1392,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1412,7 +1413,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1422,7 +1424,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceSettings.java index 9ab311b1ce50..e22fe7864c1a 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -200,7 +201,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); } @@ -220,7 +221,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(DataObjectServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java index 439b741e7f19..8ed53b061608 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceClient.java @@ -43,6 +43,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. /** @@ -396,7 +397,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VectorSearchServiceClient implements BackgroundResource { - private final VectorSearchServiceSettings settings; + private final @Nullable VectorSearchServiceSettings settings; private final VectorSearchServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -444,7 +445,7 @@ protected VectorSearchServiceClient(VectorSearchServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VectorSearchServiceSettings getSettings() { + public final @Nullable VectorSearchServiceSettings getSettings() { return settings; } @@ -492,7 +493,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListCollectionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCollectionsPagedResponse listCollections(LocationName parent) { + public final ListCollectionsPagedResponse listCollections(@Nullable LocationName parent) { ListCollectionsRequest request = ListCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -660,7 +661,7 @@ public final ListCollectionsPagedResponse listCollections(ListCollectionsRequest * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Collection getCollection(CollectionName name) { + public final Collection getCollection(@Nullable CollectionName name) { GetCollectionRequest request = GetCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCollection(request); @@ -778,7 +779,7 @@ public final UnaryCallable getCollectionCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectionAsync( - LocationName parent, Collection collection, String collectionId) { + @Nullable LocationName parent, Collection collection, String collectionId) { CreateCollectionRequest request = CreateCollectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1082,7 +1083,7 @@ public final UnaryCallable updateCollectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCollectionAsync( - CollectionName name) { + @Nullable CollectionName name) { DeleteCollectionRequest request = DeleteCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCollectionAsync(request); @@ -1229,7 +1230,7 @@ public final UnaryCallable deleteCollectionC * @param parent Required. Parent value for ListIndexesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(CollectionName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable CollectionName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1396,7 +1397,7 @@ public final UnaryCallable listIndexesC * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -1514,7 +1515,7 @@ public final UnaryCallable getIndexCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - CollectionName parent, Index index, String indexId) { + @Nullable CollectionName parent, Index index, String indexId) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1810,7 +1811,8 @@ public final UnaryCallable updateIndexCallable() * `projects/{project}/locations/{location}/collections/{collection}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIndexAsync(IndexName name) { + public final OperationFuture deleteIndexAsync( + @Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIndexAsync(request); @@ -2366,8 +2368,8 @@ public static class ListCollectionsPage ListCollectionsRequest, ListCollectionsResponse, Collection, ListCollectionsPage> { private ListCollectionsPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { super(context, response); } @@ -2377,14 +2379,14 @@ private static ListCollectionsPage createEmptyPage() { @Override protected ListCollectionsPage createPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { return new ListCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2399,7 +2401,7 @@ public static class ListCollectionsFixedSizeCollection ListCollectionsFixedSizeCollection> { private ListCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2409,7 +2411,7 @@ private static ListCollectionsFixedSizeCollection createEmptyCollection() { @Override protected ListCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -2440,8 +2442,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -2451,14 +2453,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2472,7 +2474,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2482,7 +2485,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -2516,8 +2519,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2527,14 +2530,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2548,7 +2551,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2558,7 +2562,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java index d19f9c388e53..6a4919c12a05 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/VectorSearchServiceSettings.java @@ -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. /** @@ -312,7 +313,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); } @@ -332,7 +333,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VectorSearchServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectSearchServiceStubSettings.java index f0789f53139f..475d81f7a595 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectSearchServiceStubSettings.java @@ -70,6 +70,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -449,7 +450,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); } @@ -536,7 +537,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); searchDataObjectsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_OBJECTS_PAGE_STR_FACT); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java index c32071cacfc6..c8406d41f06c 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/DataObjectServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -343,7 +344,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); } @@ -463,7 +464,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createDataObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java index c66fab84c507..fda51199f7e7 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,11 +67,12 @@ @Generated("by gapic-generator-java") public abstract class VectorSearchServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java index c5dc1a00734c..c522be6091d6 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/VectorSearchServiceStubSettings.java @@ -87,6 +87,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -591,7 +592,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); } @@ -739,7 +740,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listCollectionsSettings = PagedCallSettings.newBuilder(LIST_COLLECTIONS_PAGE_STR_FACT); diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionName.java index 0faf9e576456..90969ab29798 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collection) .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectName.java index 8d3cf12e9f80..246673d4cf6d 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/DataObjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataObjectName parse(String formattedString) { + public static @Nullable DataObjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataObjectName> values) { List list = new ArrayList<>(values.size()); for (DataObjectName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/IndexName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/IndexName.java index caf748662bb4..8b0a5b4a2428 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/IndexName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String collection, .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/LocationName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/LocationName.java index 8ba78db0378e..716796e589b2 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/LocationName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/src/main/java/com/google/cloud/vectorsearch/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionName.java index 37f35b1ea874..b764088a3322 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String collection) .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectName.java index d326bb235076..60183c59bc9d 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/DataObjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataObjectName parse(String formattedString) { + public static @Nullable DataObjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataObjectName> values) { List list = new ArrayList<>(values.size()); for (DataObjectName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/IndexName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/IndexName.java index bd74c590a2a8..b757fd0bcee0 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/IndexName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String collection, .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/LocationName.java b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/LocationName.java index ef0e3ab3a586..f008a22bdc11 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/LocationName.java +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/src/main/java/com/google/cloud/vectorsearch/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java index 6a49cf1f2269..fcb41d4f8b25 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java @@ -30,6 +30,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. /** @@ -144,7 +145,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VideoIntelligenceServiceClient implements BackgroundResource { - private final VideoIntelligenceServiceSettings settings; + private final @Nullable VideoIntelligenceServiceSettings settings; private final VideoIntelligenceServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -194,7 +195,7 @@ protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VideoIntelligenceServiceSettings getSettings() { + public final @Nullable VideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceSettings.java index 7dd635973a38..18297fe14ac6 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,7 +187,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); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStub.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStub.java index 26d0c8a4a95b..f18c060131c3 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStub.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStub.java @@ -26,6 +26,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,11 +38,12 @@ @Generated("by gapic-generator-java") public abstract class VideoIntelligenceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java index 4676b77082f4..20ccedf6d3ac 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -256,7 +257,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); } @@ -326,7 +327,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java index b8c3e5cad04d..39398d309125 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java @@ -30,6 +30,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VideoIntelligenceServiceClient implements BackgroundResource { - private final VideoIntelligenceServiceSettings settings; + private final @Nullable VideoIntelligenceServiceSettings settings; private final VideoIntelligenceServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -195,7 +196,7 @@ protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VideoIntelligenceServiceSettings getSettings() { + public final @Nullable VideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceSettings.java index a34100e6dd77..8694cdb7807b 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStub.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStub.java index 8dd335a63a2a..ee0d227015ce 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStub.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class VideoIntelligenceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java index 473a20bea3b8..9076ce146b3d 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java index bb1054122ef8..2a6182182c67 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceClient.java @@ -30,6 +30,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VideoIntelligenceServiceClient implements BackgroundResource { - private final VideoIntelligenceServiceSettings settings; + private final @Nullable VideoIntelligenceServiceSettings settings; private final VideoIntelligenceServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -195,7 +196,7 @@ protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VideoIntelligenceServiceSettings getSettings() { + public final @Nullable VideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceSettings.java index 513a13204468..7a758e3b739e 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/VideoIntelligenceServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStub.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStub.java index 6f88bb6865d0..e7c874b68532 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStub.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class VideoIntelligenceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java index c1feca7910f4..bfc02f436870 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java index d9d12349932b..dc6b419487e3 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceClient.java @@ -30,6 +30,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VideoIntelligenceServiceClient implements BackgroundResource { - private final VideoIntelligenceServiceSettings settings; + private final @Nullable VideoIntelligenceServiceSettings settings; private final VideoIntelligenceServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -195,7 +196,7 @@ protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VideoIntelligenceServiceSettings getSettings() { + public final @Nullable VideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java index 588a5f5c6197..c4fa82d27eec 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/VideoIntelligenceServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java index ee2c4d7da750..47e2b023e89a 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class VideoIntelligenceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java index 845fb06f6fc6..8e43c87c0597 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java index bd941efefb41..d099479440c4 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceClient.java @@ -25,6 +25,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. /** @@ -119,7 +120,7 @@ @BetaApi @Generated("by gapic-generator-java") public class StreamingVideoIntelligenceServiceClient implements BackgroundResource { - private final StreamingVideoIntelligenceServiceSettings settings; + private final @Nullable StreamingVideoIntelligenceServiceSettings settings; private final StreamingVideoIntelligenceServiceStub stub; /** Constructs an instance of StreamingVideoIntelligenceServiceClient with default settings. */ @@ -164,7 +165,7 @@ protected StreamingVideoIntelligenceServiceClient(StreamingVideoIntelligenceServ this.stub = stub; } - public final StreamingVideoIntelligenceServiceSettings getSettings() { + public final @Nullable StreamingVideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java index fd2b4021cc9f..297938506f7e 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/StreamingVideoIntelligenceServiceSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -143,7 +144,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StreamingVideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java index 7e6f181f8c53..a197d381a1e1 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceClient.java @@ -30,6 +30,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. /** @@ -145,7 +146,7 @@ @BetaApi @Generated("by gapic-generator-java") public class VideoIntelligenceServiceClient implements BackgroundResource { - private final VideoIntelligenceServiceSettings settings; + private final @Nullable VideoIntelligenceServiceSettings settings; private final VideoIntelligenceServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -195,7 +196,7 @@ protected VideoIntelligenceServiceClient(VideoIntelligenceServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VideoIntelligenceServiceSettings getSettings() { + public final @Nullable VideoIntelligenceServiceSettings getSettings() { return settings; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java index 35e30cefd713..4223bd9a12e5 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/VideoIntelligenceServiceSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -187,7 +188,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); } @@ -208,7 +209,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoIntelligenceServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java index 26f27b27e3e6..26d247741f4b 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -262,7 +263,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); streamingAnnotateVideoSettings = StreamingCallSettings.newBuilder(); diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java index fe1e4dafc2bb..3d92997c0628 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStub.java @@ -27,6 +27,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,11 +40,12 @@ @Generated("by gapic-generator-java") public abstract class VideoIntelligenceServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java index ec7e0a2b2323..08c963b3c38f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/VideoIntelligenceServiceStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -257,7 +258,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); } @@ -327,7 +328,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); annotateVideoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java index d2b0c4ba85f2..66bb0afbe073 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java @@ -43,6 +43,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. /** @@ -833,7 +834,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LivestreamServiceClient implements BackgroundResource { - private final LivestreamServiceSettings settings; + private final @Nullable LivestreamServiceSettings settings; private final LivestreamServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -881,7 +882,7 @@ protected LivestreamServiceClient(LivestreamServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final LivestreamServiceSettings getSettings() { + public final @Nullable LivestreamServiceSettings getSettings() { return settings; } @@ -937,7 +938,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createChannelAsync( - LocationName parent, Channel channel, String channelId) { + @Nullable LocationName parent, Channel channel, String channelId) { CreateChannelRequest request = CreateChannelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1107,7 +1108,7 @@ public final UnaryCallable createChannelCallabl * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChannelsPagedResponse listChannels(LocationName parent) { + public final ListChannelsPagedResponse listChannels(@Nullable LocationName parent) { ListChannelsRequest request = ListChannelsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1276,7 +1277,7 @@ public final UnaryCallable listChanne * `projects/{project}/locations/{location}/channels/{channelId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Channel getChannel(ChannelName name) { + public final Channel getChannel(@Nullable ChannelName name) { GetChannelRequest request = GetChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getChannel(request); @@ -1386,7 +1387,8 @@ public final UnaryCallable getChannelCallable() { * `projects/{project}/locations/{location}/channels/{channelId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteChannelAsync(ChannelName name) { + public final OperationFuture deleteChannelAsync( + @Nullable ChannelName name) { DeleteChannelRequest request = DeleteChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteChannelAsync(request); @@ -1675,7 +1677,7 @@ public final UnaryCallable updateChannelCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startChannelAsync( - ChannelName name) { + @Nullable ChannelName name) { StartChannelRequest request = StartChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startChannelAsync(request); @@ -1826,7 +1828,7 @@ public final UnaryCallable startChannelCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopChannelAsync( - ChannelName name) { + @Nullable ChannelName name) { StopChannelRequest request = StopChannelRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopChannelAsync(request); @@ -1982,7 +1984,7 @@ public final UnaryCallable stopChannelCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startDistributionAsync( - ChannelName name, List distributionKeys) { + @Nullable ChannelName name, List distributionKeys) { StartDistributionRequest request = StartDistributionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2154,7 +2156,7 @@ public final UnaryCallable startDistributio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopDistributionAsync( - ChannelName name, List distributionKeys) { + @Nullable ChannelName name, List distributionKeys) { StopDistributionRequest request = StopDistributionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2324,7 +2326,7 @@ public final UnaryCallable stopDistributionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInputAsync( - LocationName parent, Input input, String inputId) { + @Nullable LocationName parent, Input input, String inputId) { CreateInputRequest request = CreateInputRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2493,7 +2495,7 @@ public final UnaryCallable createInputCallable() * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInputsPagedResponse listInputs(LocationName parent) { + public final ListInputsPagedResponse listInputs(@Nullable LocationName parent) { ListInputsRequest request = ListInputsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listInputs(request); @@ -2658,7 +2660,7 @@ public final UnaryCallable listInputsCall * `projects/{project}/locations/{location}/inputs/{inputId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Input getInput(InputName name) { + public final Input getInput(@Nullable InputName name) { GetInputRequest request = GetInputRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInput(request); @@ -2768,7 +2770,8 @@ public final UnaryCallable getInputCallable() { * `projects/{project}/locations/{location}/inputs/{inputId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInputAsync(InputName name) { + public final OperationFuture deleteInputAsync( + @Nullable InputName name) { DeleteInputRequest request = DeleteInputRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInputAsync(request); @@ -3045,7 +3048,7 @@ public final UnaryCallable updateInputCallable() * `projects/{project}/locations/{location}/inputs/{inputId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PreviewInputResponse previewInput(InputName name) { + public final PreviewInputResponse previewInput(@Nullable InputName name) { PreviewInputRequest request = PreviewInputRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return previewInput(request); @@ -3163,7 +3166,7 @@ public final UnaryCallable previewInp * the following regex: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Event createEvent(ChannelName parent, Event event, String eventId) { + public final Event createEvent(@Nullable ChannelName parent, Event event, String eventId) { CreateEventRequest request = CreateEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3297,7 +3300,7 @@ public final UnaryCallable createEventCallable() { * `projects/{project}/locations/{location}/channels/{channelId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(ChannelName parent) { + public final ListEventsPagedResponse listEvents(@Nullable ChannelName parent) { ListEventsRequest request = ListEventsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listEvents(request); @@ -3462,7 +3465,7 @@ public final UnaryCallable listEventsCall * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Event getEvent(EventName name) { + public final Event getEvent(@Nullable EventName name) { GetEventRequest request = GetEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvent(request); @@ -3572,7 +3575,7 @@ public final UnaryCallable getEventCallable() { * `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEvent(EventName name) { + public final void deleteEvent(@Nullable EventName name) { DeleteEventRequest request = DeleteEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteEvent(request); @@ -3685,7 +3688,7 @@ public final UnaryCallable deleteEventCallable() { * @param parent Required. Parent value for ListClipsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClipsPagedResponse listClips(ChannelName parent) { + public final ListClipsPagedResponse listClips(@Nullable ChannelName parent) { ListClipsRequest request = ListClipsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listClips(request); @@ -3848,7 +3851,7 @@ public final UnaryCallable listClipsCallabl * `projects/{project}/locations/{location}/channels/{channel}/clips/{clip}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Clip getClip(ClipName name) { + public final Clip getClip(@Nullable ClipName name) { GetClipRequest request = GetClipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getClip(request); @@ -3966,7 +3969,7 @@ public final UnaryCallable getClipCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClipAsync( - ChannelName parent, Clip clip, String clipId) { + @Nullable ChannelName parent, Clip clip, String clipId) { CreateClipRequest request = CreateClipRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4129,7 +4132,7 @@ public final UnaryCallable createClipCallable() { * `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClipAsync(ClipName name) { + public final OperationFuture deleteClipAsync(@Nullable ClipName name) { DeleteClipRequest request = DeleteClipRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClipAsync(request); @@ -4286,7 +4289,7 @@ public final UnaryCallable deleteClipCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDvrSessionAsync( - ChannelName parent, DvrSession dvrSession, String dvrSessionId) { + @Nullable ChannelName parent, DvrSession dvrSession, String dvrSessionId) { CreateDvrSessionRequest request = CreateDvrSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4455,7 +4458,7 @@ public final UnaryCallable createDvrSessionC * @param parent Required. Parent value for ListDvrSessionsRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDvrSessionsPagedResponse listDvrSessions(ChannelName parent) { + public final ListDvrSessionsPagedResponse listDvrSessions(@Nullable ChannelName parent) { ListDvrSessionsRequest request = ListDvrSessionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4625,7 +4628,7 @@ public final ListDvrSessionsPagedResponse listDvrSessions(ListDvrSessionsRequest * `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DvrSession getDvrSession(DvrSessionName name) { + public final DvrSession getDvrSession(@Nullable DvrSessionName name) { GetDvrSessionRequest request = GetDvrSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDvrSession(request); @@ -4743,7 +4746,7 @@ public final UnaryCallable getDvrSessionCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDvrSessionAsync( - DvrSessionName name) { + @Nullable DvrSessionName name) { DeleteDvrSessionRequest request = DeleteDvrSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDvrSessionAsync(request); @@ -5034,7 +5037,7 @@ public final UnaryCallable updateDvrSessionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAssetAsync( - LocationName parent, Asset asset, String assetId) { + @Nullable LocationName parent, Asset asset, String assetId) { CreateAssetRequest request = CreateAssetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5201,7 +5204,8 @@ public final UnaryCallable createAssetCallable() * `projects/{project}/locations/{location}/assets/{assetId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAssetAsync(AssetName name) { + public final OperationFuture deleteAssetAsync( + @Nullable AssetName name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAssetAsync(request); @@ -5345,7 +5349,7 @@ public final UnaryCallable deleteAssetCallable() * `projects/{project}/locations/{location}/assets/{asset}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Asset getAsset(AssetName name) { + public final Asset getAsset(@Nullable AssetName name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAsset(request); @@ -5457,7 +5461,7 @@ public final UnaryCallable getAssetCallable() { * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(LocationName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable LocationName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -5622,7 +5626,7 @@ public final UnaryCallable listAssetsCall * `projects/{project}/locations/{location}/pools/{poolId}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Pool getPool(PoolName name) { + public final Pool getPool(@Nullable PoolName name) { GetPoolRequest request = GetPoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPool(request); @@ -6052,8 +6056,8 @@ public static class ListChannelsPage extends AbstractPage { private ListChannelsPage( - PageContext context, - ListChannelsResponse response) { + @Nullable PageContext context, + @Nullable ListChannelsResponse response) { super(context, response); } @@ -6063,14 +6067,14 @@ private static ListChannelsPage createEmptyPage() { @Override protected ListChannelsPage createPage( - PageContext context, - ListChannelsResponse response) { + @Nullable PageContext context, + @Nullable ListChannelsResponse response) { return new ListChannelsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6084,7 +6088,8 @@ public static class ListChannelsFixedSizeCollection ListChannelsPage, ListChannelsFixedSizeCollection> { - private ListChannelsFixedSizeCollection(List pages, int collectionSize) { + private ListChannelsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6094,7 +6099,7 @@ private static ListChannelsFixedSizeCollection createEmptyCollection() { @Override protected ListChannelsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListChannelsFixedSizeCollection(pages, collectionSize); } } @@ -6125,8 +6130,8 @@ public static class ListInputsPage extends AbstractPage { private ListInputsPage( - PageContext context, - ListInputsResponse response) { + @Nullable PageContext context, + @Nullable ListInputsResponse response) { super(context, response); } @@ -6136,14 +6141,14 @@ private static ListInputsPage createEmptyPage() { @Override protected ListInputsPage createPage( - PageContext context, - ListInputsResponse response) { + @Nullable PageContext context, + @Nullable ListInputsResponse response) { return new ListInputsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6157,7 +6162,8 @@ public static class ListInputsFixedSizeCollection ListInputsPage, ListInputsFixedSizeCollection> { - private ListInputsFixedSizeCollection(List pages, int collectionSize) { + private ListInputsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6167,7 +6173,7 @@ private static ListInputsFixedSizeCollection createEmptyCollection() { @Override protected ListInputsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInputsFixedSizeCollection(pages, collectionSize); } } @@ -6198,8 +6204,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -6209,14 +6215,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6230,7 +6236,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6240,7 +6247,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } @@ -6267,8 +6274,8 @@ public static class ListClipsPage extends AbstractPage { private ListClipsPage( - PageContext context, - ListClipsResponse response) { + @Nullable PageContext context, + @Nullable ListClipsResponse response) { super(context, response); } @@ -6278,14 +6285,14 @@ private static ListClipsPage createEmptyPage() { @Override protected ListClipsPage createPage( - PageContext context, - ListClipsResponse response) { + @Nullable PageContext context, + @Nullable ListClipsResponse response) { return new ListClipsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6295,7 +6302,7 @@ public static class ListClipsFixedSizeCollection extends AbstractFixedSizeCollection< ListClipsRequest, ListClipsResponse, Clip, ListClipsPage, ListClipsFixedSizeCollection> { - private ListClipsFixedSizeCollection(List pages, int collectionSize) { + private ListClipsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6305,7 +6312,7 @@ private static ListClipsFixedSizeCollection createEmptyCollection() { @Override protected ListClipsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClipsFixedSizeCollection(pages, collectionSize); } } @@ -6339,8 +6346,8 @@ public static class ListDvrSessionsPage ListDvrSessionsRequest, ListDvrSessionsResponse, DvrSession, ListDvrSessionsPage> { private ListDvrSessionsPage( - PageContext context, - ListDvrSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListDvrSessionsResponse response) { super(context, response); } @@ -6350,14 +6357,14 @@ private static ListDvrSessionsPage createEmptyPage() { @Override protected ListDvrSessionsPage createPage( - PageContext context, - ListDvrSessionsResponse response) { + @Nullable PageContext context, + @Nullable ListDvrSessionsResponse response) { return new ListDvrSessionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6372,7 +6379,7 @@ public static class ListDvrSessionsFixedSizeCollection ListDvrSessionsFixedSizeCollection> { private ListDvrSessionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6382,7 +6389,7 @@ private static ListDvrSessionsFixedSizeCollection createEmptyCollection() { @Override protected ListDvrSessionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDvrSessionsFixedSizeCollection(pages, collectionSize); } } @@ -6413,8 +6420,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -6424,14 +6431,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6445,7 +6452,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6455,7 +6463,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -6489,8 +6497,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -6500,14 +6508,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -6521,7 +6529,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -6531,7 +6540,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java index 196bd2e9cda5..6a432ebe6f24 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java @@ -48,6 +48,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -482,7 +483,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); } @@ -502,7 +503,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LivestreamServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java index f7dfb7bb0916..a4412f6d16a0 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java @@ -86,6 +86,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -97,11 +98,12 @@ @Generated("by gapic-generator-java") public abstract class LivestreamServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java index b6c0da9d88f8..dce606f5a82a 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java @@ -120,6 +120,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1049,7 +1050,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); } @@ -1276,7 +1277,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createChannelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetName.java index f7254864fce7..f691181f259b 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AssetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String asset) { .toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java index bc09957e27dc..4efa6843dbc6 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String channel) { .toString(); } - public static ChannelName parse(String formattedString) { + public static @Nullable ChannelName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ChannelName> values) { List list = new ArrayList<>(values.size()); for (ChannelName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java index 21753085267e..a78abd73e9d9 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ClipName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String channel, Str .toString(); } - public static ClipName parse(String formattedString) { + public static @Nullable ClipName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClipName> values) { List list = new ArrayList<>(values.size()); for (ClipName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DvrSessionName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DvrSessionName.java index 72ee9f3d06ff..e5bdd8501c18 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DvrSessionName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DvrSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String channel, Str .toString(); } - public static DvrSessionName parse(String formattedString) { + public static @Nullable DvrSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DvrSessionName> values) { List list = new ArrayList<>(values.size()); for (DvrSessionName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java index c124e3879672..5e3c9adbfa46 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String channel, Str .toString(); } - public static EventName parse(String formattedString) { + public static @Nullable EventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventName> values) { List list = new ArrayList<>(values.size()); for (EventName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java index 7f8850b2e543..0dba025649e9 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String input) { .toString(); } - public static InputName parse(String formattedString) { + public static @Nullable InputName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InputName> values) { List list = new ArrayList<>(values.size()); for (InputName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java index f7aecc6acc13..f086b383e42e 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PoolName.java b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PoolName.java index e48bbb616d4f..9f964d28cbd2 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PoolName.java +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PoolName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String pool) { return newBuilder().setProject(project).setLocation(location).setPool(pool).build().toString(); } - public static PoolName parse(String formattedString) { + public static @Nullable PoolName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PoolName> values) { List list = new ArrayList<>(values.size()); for (PoolName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java index 3907f429c6f9..1f2d17008918 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java @@ -38,6 +38,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. /** @@ -704,7 +705,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VideoStitcherServiceClient implements BackgroundResource { - private final VideoStitcherServiceSettings settings; + private final @Nullable VideoStitcherServiceSettings settings; private final VideoStitcherServiceStub stub; private final OperationsClient operationsClient; @@ -747,7 +748,7 @@ protected VideoStitcherServiceClient(VideoStitcherServiceStub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final VideoStitcherServiceSettings getSettings() { + public final @Nullable VideoStitcherServiceSettings getSettings() { return settings; } @@ -796,7 +797,7 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCdnKeyAsync( - LocationName parent, CdnKey cdnKey, String cdnKeyId) { + @Nullable LocationName parent, CdnKey cdnKey, String cdnKeyId) { CreateCdnKeyRequest request = CreateCdnKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -969,7 +970,7 @@ public final UnaryCallable createCdnKeyCallable( * `projects/{project_number}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCdnKeysPagedResponse listCdnKeys(LocationName parent) { + public final ListCdnKeysPagedResponse listCdnKeys(@Nullable LocationName parent) { ListCdnKeysRequest request = ListCdnKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1143,7 +1144,7 @@ public final UnaryCallable listCdnKeysC * `projects/{project}/locations/{location}/cdnKeys/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CdnKey getCdnKey(CdnKeyName name) { + public final CdnKey getCdnKey(@Nullable CdnKeyName name) { GetCdnKeyRequest request = GetCdnKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCdnKey(request); @@ -1257,7 +1258,8 @@ public final UnaryCallable getCdnKeyCallable() { * `projects/{project_number}/locations/{location}/cdnKeys/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteCdnKeyAsync(CdnKeyName name) { + public final OperationFuture deleteCdnKeyAsync( + @Nullable CdnKeyName name) { DeleteCdnKeyRequest request = DeleteCdnKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCdnKeyAsync(request); @@ -1531,7 +1533,7 @@ public final UnaryCallable updateCdnKeyCallable( * @param vodSession Required. Parameters for creating a session. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VodSession createVodSession(LocationName parent, VodSession vodSession) { + public final VodSession createVodSession(@Nullable LocationName parent, VodSession vodSession) { CreateVodSessionRequest request = CreateVodSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1658,7 +1660,7 @@ public final UnaryCallable createVodSession * `projects/{project_number}/locations/{location}/vodSessions/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VodSession getVodSession(VodSessionName name) { + public final VodSession getVodSession(@Nullable VodSessionName name) { GetVodSessionRequest request = GetVodSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVodSession(request); @@ -1779,7 +1781,8 @@ public final UnaryCallable getVodSessionCallab * `projects/{project}/locations/{location}/vodSessions/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVodStitchDetailsPagedResponse listVodStitchDetails(VodSessionName parent) { + public final ListVodStitchDetailsPagedResponse listVodStitchDetails( + @Nullable VodSessionName parent) { ListVodStitchDetailsRequest request = ListVodStitchDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1954,7 +1957,7 @@ public final ListVodStitchDetailsPagedResponse listVodStitchDetails( * `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VodStitchDetail getVodStitchDetail(VodStitchDetailName name) { + public final VodStitchDetail getVodStitchDetail(@Nullable VodStitchDetailName name) { GetVodStitchDetailRequest request = GetVodStitchDetailRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2085,7 +2088,8 @@ public final VodStitchDetail getVodStitchDetail(GetVodStitchDetailRequest reques * `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVodAdTagDetailsPagedResponse listVodAdTagDetails(VodSessionName parent) { + public final ListVodAdTagDetailsPagedResponse listVodAdTagDetails( + @Nullable VodSessionName parent) { ListVodAdTagDetailsRequest request = ListVodAdTagDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2260,7 +2264,7 @@ public final ListVodAdTagDetailsPagedResponse listVodAdTagDetails( * `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VodAdTagDetail getVodAdTagDetail(VodAdTagDetailName name) { + public final VodAdTagDetail getVodAdTagDetail(@Nullable VodAdTagDetailName name) { GetVodAdTagDetailRequest request = GetVodAdTagDetailRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2389,7 +2393,8 @@ public final UnaryCallable getVodAdTag * `projects/{project}/locations/{location}/liveSessions/{live_session}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(LiveSessionName parent) { + public final ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails( + @Nullable LiveSessionName parent) { ListLiveAdTagDetailsRequest request = ListLiveAdTagDetailsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2564,7 +2569,7 @@ public final ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails( * `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LiveAdTagDetail getLiveAdTagDetail(LiveAdTagDetailName name) { + public final LiveAdTagDetail getLiveAdTagDetail(@Nullable LiveAdTagDetailName name) { GetLiveAdTagDetailRequest request = GetLiveAdTagDetailRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2699,7 +2704,7 @@ public final LiveAdTagDetail getLiveAdTagDetail(GetLiveAdTagDetailRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSlateAsync( - LocationName parent, Slate slate, String slateId) { + @Nullable LocationName parent, Slate slate, String slateId) { CreateSlateRequest request = CreateSlateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2872,7 +2877,7 @@ public final UnaryCallable createSlateCallable() * `projects/{project_number}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSlatesPagedResponse listSlates(LocationName parent) { + public final ListSlatesPagedResponse listSlates(@Nullable LocationName parent) { ListSlatesRequest request = ListSlatesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSlates(request); @@ -3042,7 +3047,7 @@ public final UnaryCallable listSlatesCall * `projects/{project_number}/locations/{location}/slates/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Slate getSlate(SlateName name) { + public final Slate getSlate(@Nullable SlateName name) { GetSlateRequest request = GetSlateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSlate(request); @@ -3279,7 +3284,8 @@ public final UnaryCallable updateSlateCallable() * `projects/{project_number}/locations/{location}/slates/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSlateAsync(SlateName name) { + public final OperationFuture deleteSlateAsync( + @Nullable SlateName name) { DeleteSlateRequest request = DeleteSlateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSlateAsync(request); @@ -3427,7 +3433,8 @@ public final UnaryCallable deleteSlateCallable() * @param liveSession Required. Parameters for creating a live session. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LiveSession createLiveSession(LocationName parent, LiveSession liveSession) { + public final LiveSession createLiveSession( + @Nullable LocationName parent, LiveSession liveSession) { CreateLiveSessionRequest request = CreateLiveSessionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3550,7 +3557,7 @@ public final UnaryCallable createLiveSess * `projects/{project_number}/locations/{location}/liveSessions/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LiveSession getLiveSession(LiveSessionName name) { + public final LiveSession getLiveSession(@Nullable LiveSessionName name) { GetLiveSessionRequest request = GetLiveSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLiveSession(request); @@ -3671,7 +3678,7 @@ public final UnaryCallable getLiveSessionCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLiveConfigAsync( - LocationName parent, LiveConfig liveConfig, String liveConfigId) { + @Nullable LocationName parent, LiveConfig liveConfig, String liveConfigId) { CreateLiveConfigRequest request = CreateLiveConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3844,7 +3851,7 @@ public final UnaryCallable createLiveConfigC * `projects/{project_number}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLiveConfigsPagedResponse listLiveConfigs(LocationName parent) { + public final ListLiveConfigsPagedResponse listLiveConfigs(@Nullable LocationName parent) { ListLiveConfigsRequest request = ListLiveConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4023,7 +4030,7 @@ public final ListLiveConfigsPagedResponse listLiveConfigs(ListLiveConfigsRequest * `projects/{project_number}/locations/{location}/liveConfigs/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LiveConfig getLiveConfig(LiveConfigName name) { + public final LiveConfig getLiveConfig(@Nullable LiveConfigName name) { GetLiveConfigRequest request = GetLiveConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLiveConfig(request); @@ -4139,7 +4146,7 @@ public final UnaryCallable getLiveConfigCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLiveConfigAsync( - LiveConfigName name) { + @Nullable LiveConfigName name) { DeleteLiveConfigRequest request = DeleteLiveConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteLiveConfigAsync(request); @@ -4420,7 +4427,7 @@ public final UnaryCallable updateLiveConfigC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createVodConfigAsync( - LocationName parent, VodConfig vodConfig, String vodConfigId) { + @Nullable LocationName parent, VodConfig vodConfig, String vodConfigId) { CreateVodConfigRequest request = CreateVodConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4593,7 +4600,7 @@ public final UnaryCallable createVodConfigCal * `projects/{project_number}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVodConfigsPagedResponse listVodConfigs(LocationName parent) { + public final ListVodConfigsPagedResponse listVodConfigs(@Nullable LocationName parent) { ListVodConfigsRequest request = ListVodConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4772,7 +4779,7 @@ public final ListVodConfigsPagedResponse listVodConfigs(ListVodConfigsRequest re * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VodConfig getVodConfig(VodConfigName name) { + public final VodConfig getVodConfig(@Nullable VodConfigName name) { GetVodConfigRequest request = GetVodConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getVodConfig(request); @@ -4887,7 +4894,8 @@ public final UnaryCallable getVodConfigCallable( * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteVodConfigAsync(VodConfigName name) { + public final OperationFuture deleteVodConfigAsync( + @Nullable VodConfigName name) { DeleteVodConfigRequest request = DeleteVodConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteVodConfigAsync(request); @@ -5195,8 +5203,8 @@ public static class ListCdnKeysPage extends AbstractPage { private ListCdnKeysPage( - PageContext context, - ListCdnKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCdnKeysResponse response) { super(context, response); } @@ -5206,14 +5214,14 @@ private static ListCdnKeysPage createEmptyPage() { @Override protected ListCdnKeysPage createPage( - PageContext context, - ListCdnKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCdnKeysResponse response) { return new ListCdnKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5227,7 +5235,8 @@ public static class ListCdnKeysFixedSizeCollection ListCdnKeysPage, ListCdnKeysFixedSizeCollection> { - private ListCdnKeysFixedSizeCollection(List pages, int collectionSize) { + private ListCdnKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5237,7 +5246,7 @@ private static ListCdnKeysFixedSizeCollection createEmptyCollection() { @Override protected ListCdnKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCdnKeysFixedSizeCollection(pages, collectionSize); } } @@ -5275,9 +5284,10 @@ public static class ListVodStitchDetailsPage ListVodStitchDetailsPage> { private ListVodStitchDetailsPage( - PageContext + @Nullable + PageContext context, - ListVodStitchDetailsResponse response) { + @Nullable ListVodStitchDetailsResponse response) { super(context, response); } @@ -5287,15 +5297,17 @@ private static ListVodStitchDetailsPage createEmptyPage() { @Override protected ListVodStitchDetailsPage createPage( - PageContext + @Nullable + PageContext context, - ListVodStitchDetailsResponse response) { + @Nullable ListVodStitchDetailsResponse response) { return new ListVodStitchDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5311,7 +5323,7 @@ public static class ListVodStitchDetailsFixedSizeCollection ListVodStitchDetailsFixedSizeCollection> { private ListVodStitchDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5321,7 +5333,7 @@ private static ListVodStitchDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListVodStitchDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVodStitchDetailsFixedSizeCollection(pages, collectionSize); } } @@ -5359,9 +5371,10 @@ public static class ListVodAdTagDetailsPage ListVodAdTagDetailsPage> { private ListVodAdTagDetailsPage( - PageContext + @Nullable + PageContext context, - ListVodAdTagDetailsResponse response) { + @Nullable ListVodAdTagDetailsResponse response) { super(context, response); } @@ -5371,15 +5384,17 @@ private static ListVodAdTagDetailsPage createEmptyPage() { @Override protected ListVodAdTagDetailsPage createPage( - PageContext + @Nullable + PageContext context, - ListVodAdTagDetailsResponse response) { + @Nullable ListVodAdTagDetailsResponse response) { return new ListVodAdTagDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5395,7 +5410,7 @@ public static class ListVodAdTagDetailsFixedSizeCollection ListVodAdTagDetailsFixedSizeCollection> { private ListVodAdTagDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5405,7 +5420,7 @@ private static ListVodAdTagDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListVodAdTagDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVodAdTagDetailsFixedSizeCollection(pages, collectionSize); } } @@ -5443,9 +5458,10 @@ public static class ListLiveAdTagDetailsPage ListLiveAdTagDetailsPage> { private ListLiveAdTagDetailsPage( - PageContext + @Nullable + PageContext context, - ListLiveAdTagDetailsResponse response) { + @Nullable ListLiveAdTagDetailsResponse response) { super(context, response); } @@ -5455,15 +5471,17 @@ private static ListLiveAdTagDetailsPage createEmptyPage() { @Override protected ListLiveAdTagDetailsPage createPage( - PageContext + @Nullable + PageContext context, - ListLiveAdTagDetailsResponse response) { + @Nullable ListLiveAdTagDetailsResponse response) { return new ListLiveAdTagDetailsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -5479,7 +5497,7 @@ public static class ListLiveAdTagDetailsFixedSizeCollection ListLiveAdTagDetailsFixedSizeCollection> { private ListLiveAdTagDetailsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5489,7 +5507,7 @@ private static ListLiveAdTagDetailsFixedSizeCollection createEmptyCollection() { @Override protected ListLiveAdTagDetailsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLiveAdTagDetailsFixedSizeCollection(pages, collectionSize); } } @@ -5520,8 +5538,8 @@ public static class ListSlatesPage extends AbstractPage { private ListSlatesPage( - PageContext context, - ListSlatesResponse response) { + @Nullable PageContext context, + @Nullable ListSlatesResponse response) { super(context, response); } @@ -5531,14 +5549,14 @@ private static ListSlatesPage createEmptyPage() { @Override protected ListSlatesPage createPage( - PageContext context, - ListSlatesResponse response) { + @Nullable PageContext context, + @Nullable ListSlatesResponse response) { return new ListSlatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5552,7 +5570,8 @@ public static class ListSlatesFixedSizeCollection ListSlatesPage, ListSlatesFixedSizeCollection> { - private ListSlatesFixedSizeCollection(List pages, int collectionSize) { + private ListSlatesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5562,7 +5581,7 @@ private static ListSlatesFixedSizeCollection createEmptyCollection() { @Override protected ListSlatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSlatesFixedSizeCollection(pages, collectionSize); } } @@ -5596,8 +5615,8 @@ public static class ListLiveConfigsPage ListLiveConfigsRequest, ListLiveConfigsResponse, LiveConfig, ListLiveConfigsPage> { private ListLiveConfigsPage( - PageContext context, - ListLiveConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListLiveConfigsResponse response) { super(context, response); } @@ -5607,14 +5626,14 @@ private static ListLiveConfigsPage createEmptyPage() { @Override protected ListLiveConfigsPage createPage( - PageContext context, - ListLiveConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListLiveConfigsResponse response) { return new ListLiveConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5629,7 +5648,7 @@ public static class ListLiveConfigsFixedSizeCollection ListLiveConfigsFixedSizeCollection> { private ListLiveConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5639,7 +5658,7 @@ private static ListLiveConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListLiveConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLiveConfigsFixedSizeCollection(pages, collectionSize); } } @@ -5673,8 +5692,8 @@ public static class ListVodConfigsPage ListVodConfigsRequest, ListVodConfigsResponse, VodConfig, ListVodConfigsPage> { private ListVodConfigsPage( - PageContext context, - ListVodConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListVodConfigsResponse response) { super(context, response); } @@ -5684,14 +5703,14 @@ private static ListVodConfigsPage createEmptyPage() { @Override protected ListVodConfigsPage createPage( - PageContext context, - ListVodConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListVodConfigsResponse response) { return new ListVodConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5705,7 +5724,8 @@ public static class ListVodConfigsFixedSizeCollection ListVodConfigsPage, ListVodConfigsFixedSizeCollection> { - private ListVodConfigsFixedSizeCollection(List pages, int collectionSize) { + private ListVodConfigsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5715,7 +5735,7 @@ private static ListVodConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListVodConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVodConfigsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java index 617e490e6b72..3424999eb6f7 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -414,7 +415,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -435,7 +436,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VideoStitcherServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java index d9b4e5ccb361..dd06921b82c5 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java @@ -79,6 +79,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -90,7 +91,7 @@ @Generated("by gapic-generator-java") public abstract class VideoStitcherServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java index 4a1f3b9e4dc1..4a0fd9f221b8 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java @@ -109,6 +109,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -972,7 +973,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -1176,7 +1177,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createCdnKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyName.java index 5c0c62f7cf22..8e083e5dd20e 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cdnKey) { .toString(); } - public static CdnKeyName parse(String formattedString) { + public static @Nullable CdnKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CdnKeyName> values) { List list = new ArrayList<>(values.size()); for (CdnKeyName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetailName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetailName.java index 0a5f8969d122..f6463efbd957 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetailName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static LiveAdTagDetailName parse(String formattedString) { + public static @Nullable LiveAdTagDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LiveAdTagDetailName> values) { List list = new ArrayList<>(values.size()); for (LiveAdTagDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigName.java index 3bf4f0790220..56f4363490be 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String liveConfig) .toString(); } - public static LiveConfigName parse(String formattedString) { + public static @Nullable LiveConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LiveConfigName> values) { List list = new ArrayList<>(values.size()); for (LiveConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionName.java index 162c2ae8e0d2..6485ac748c73 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String liveSession) .toString(); } - public static LiveSessionName parse(String formattedString) { + public static @Nullable LiveSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LiveSessionName> values) { List list = new ArrayList<>(values.size()); for (LiveSessionName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LocationName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LocationName.java index 17213b1ca07a..4857e9c87b5c 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LocationName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SlateName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SlateName.java index 6a0aab8a0e9a..0b8d6870f5f8 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SlateName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SlateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String slate) { .toString(); } - public static SlateName parse(String formattedString) { + public static @Nullable SlateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SlateName> values) { List list = new ArrayList<>(values.size()); for (SlateName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodAdTagDetailName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodAdTagDetailName.java index 5fb3dd19f423..65c608b9e39d 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodAdTagDetailName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodAdTagDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static VodAdTagDetailName parse(String formattedString) { + public static @Nullable VodAdTagDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VodAdTagDetailName> values) { List list = new ArrayList<>(values.size()); for (VodAdTagDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java index 2d3ac9568f95..8c53bb17005e 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String vodConfig) { .toString(); } - public static VodConfigName parse(String formattedString) { + public static @Nullable VodConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VodConfigName> values) { List list = new ArrayList<>(values.size()); for (VodConfigName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionName.java index 1ada75cf0cba..74867ed5b823 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String vodSession) .toString(); } - public static VodSessionName parse(String formattedString) { + public static @Nullable VodSessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VodSessionName> values) { List list = new ArrayList<>(values.size()); for (VodSessionName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetailName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetailName.java index a4a41750f651..3f7a5e2390ed 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetailName.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetailName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static VodStitchDetailName parse(String formattedString) { + public static @Nullable VodStitchDetailName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VodStitchDetailName> values) { List list = new ArrayList<>(values.size()); for (VodStitchDetailName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java index db7daa04e359..aad63cfbb1fb 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java @@ -33,6 +33,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. /** @@ -284,7 +285,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TranscoderServiceClient implements BackgroundResource { - private final TranscoderServiceSettings settings; + private final @Nullable TranscoderServiceSettings settings; private final TranscoderServiceStub stub; /** Constructs an instance of TranscoderServiceClient with default settings. */ @@ -324,7 +325,7 @@ protected TranscoderServiceClient(TranscoderServiceStub stub) { this.stub = stub; } - public final TranscoderServiceSettings getSettings() { + public final @Nullable TranscoderServiceSettings getSettings() { return settings; } @@ -356,7 +357,7 @@ public TranscoderServiceStub getStub() { * @param job Required. Parameters for creating transcoding job. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(LocationName parent, Job job) { + public final Job createJob(@Nullable LocationName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -474,7 +475,7 @@ public final UnaryCallable createJobCallable() { * @param parent Required. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(LocationName parent) { + public final ListJobsPagedResponse listJobs(@Nullable LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); @@ -637,7 +638,7 @@ public final UnaryCallable listJobsCallable() * `projects/{project}/locations/{location}/jobs/{job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job getJob(JobName name) { + public final Job getJob(@Nullable JobName name) { GetJobRequest request = GetJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJob(request); @@ -747,7 +748,7 @@ public final UnaryCallable getJobCallable() { * `projects/{project}/locations/{location}/jobs/{job}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJob(JobName name) { + public final void deleteJob(@Nullable JobName name) { DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteJob(request); @@ -868,7 +869,7 @@ public final UnaryCallable deleteJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final JobTemplate createJobTemplate( - LocationName parent, JobTemplate jobTemplate, String jobTemplateId) { + @Nullable LocationName parent, JobTemplate jobTemplate, String jobTemplateId) { CreateJobTemplateRequest request = CreateJobTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1003,7 +1004,7 @@ public final UnaryCallable createJobTempl * templates. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobTemplatesPagedResponse listJobTemplates(LocationName parent) { + public final ListJobTemplatesPagedResponse listJobTemplates(@Nullable LocationName parent) { ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1174,7 +1175,7 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ * `projects/{project}/locations/{location}/jobTemplates/{job_template}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTemplate getJobTemplate(JobTemplateName name) { + public final JobTemplate getJobTemplate(@Nullable JobTemplateName name) { GetJobTemplateRequest request = GetJobTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getJobTemplate(request); @@ -1285,7 +1286,7 @@ public final UnaryCallable getJobTemplateCal * `projects/{project}/locations/{location}/jobTemplates/{job_template}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJobTemplate(JobTemplateName name) { + public final void deleteJobTemplate(@Nullable JobTemplateName name) { DeleteJobTemplateRequest request = DeleteJobTemplateRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1430,7 +1431,8 @@ public static class ListJobsPage extends AbstractPage { private ListJobsPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { super(context, response); } @@ -1440,13 +1442,14 @@ private static ListJobsPage createEmptyPage() { @Override protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { + @Nullable PageContext context, + @Nullable ListJobsResponse response) { return new ListJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1456,7 +1459,7 @@ public static class ListJobsFixedSizeCollection extends AbstractFixedSizeCollection< ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - private ListJobsFixedSizeCollection(List pages, int collectionSize) { + private ListJobsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1466,7 +1469,7 @@ private static ListJobsFixedSizeCollection createEmptyCollection() { @Override protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobsFixedSizeCollection(pages, collectionSize); } } @@ -1500,8 +1503,9 @@ public static class ListJobTemplatesPage ListJobTemplatesRequest, ListJobTemplatesResponse, JobTemplate, ListJobTemplatesPage> { private ListJobTemplatesPage( - PageContext context, - ListJobTemplatesResponse response) { + @Nullable PageContext + context, + @Nullable ListJobTemplatesResponse response) { super(context, response); } @@ -1511,14 +1515,16 @@ private static ListJobTemplatesPage createEmptyPage() { @Override protected ListJobTemplatesPage createPage( - PageContext context, - ListJobTemplatesResponse response) { + @Nullable PageContext + context, + @Nullable ListJobTemplatesResponse response) { return new ListJobTemplatesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1533,7 +1539,7 @@ public static class ListJobTemplatesFixedSizeCollection ListJobTemplatesFixedSizeCollection> { private ListJobTemplatesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1543,7 +1549,7 @@ private static ListJobTemplatesFixedSizeCollection createEmptyCollection() { @Override protected ListJobTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListJobTemplatesFixedSizeCollection(pages, collectionSize); } } diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java index ba31f8c4fc80..963b8cbb1cfd 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java @@ -37,6 +37,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -191,7 +192,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); } @@ -211,7 +212,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TranscoderServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java index 74170227ad66..299bf28d8140 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java @@ -68,6 +68,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -389,7 +390,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); } @@ -483,7 +484,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobName.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobName.java index 391b75b3b88b..13eda2452463 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobName.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static JobName parse(String formattedString) { + public static @Nullable JobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobName> values) { List list = new ArrayList<>(values.size()); for (JobName value : values) { if (value == null) { @@ -145,7 +146,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobTemplateName.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobTemplateName.java index 0fd04c91785f..7c736ce96773 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobTemplateName.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/JobTemplateName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String jobTemplate) .toString(); } - public static JobTemplateName parse(String formattedString) { + public static @Nullable JobTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable JobTemplateName> values) { List list = new ArrayList<>(values.size()); for (JobTemplateName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/LocationName.java b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/LocationName.java index db25376f25bf..3c9e54210ef4 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/LocationName.java +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/src/main/java/com/google/cloud/video/transcoder/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java index 72eadbf090bd..b3963410de99 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorClient.java @@ -30,6 +30,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. /** @@ -185,7 +186,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ImageAnnotatorClient implements BackgroundResource { - private final ImageAnnotatorSettings settings; + private final @Nullable ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -233,7 +234,7 @@ protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ImageAnnotatorSettings getSettings() { + public final @Nullable ImageAnnotatorSettings getSettings() { return settings; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java index f0157254002b..a001ea3c73ed 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ImageAnnotatorSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -211,7 +212,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); } @@ -231,7 +232,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageAnnotatorStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java index 4fd74413dedf..c8cfea37d11f 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java @@ -39,6 +39,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. /** @@ -589,7 +590,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ProductSearchClient implements BackgroundResource { - private final ProductSearchSettings settings; + private final @Nullable ProductSearchSettings settings; private final ProductSearchStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -637,7 +638,7 @@ protected ProductSearchClient(ProductSearchStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductSearchSettings getSettings() { + public final @Nullable ProductSearchSettings getSettings() { return settings; } @@ -698,7 +699,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ProductSet createProductSet( - LocationName parent, ProductSet productSet, String productSetId) { + @Nullable LocationName parent, ProductSet productSet, String productSetId) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -856,7 +857,7 @@ public final UnaryCallable createProductSet *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductSetsPagedResponse listProductSets(LocationName parent) { + public final ListProductSetsPagedResponse listProductSets(@Nullable LocationName parent) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1050,7 +1051,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProductSet getProductSet(ProductSetName name) { + public final ProductSet getProductSet(@Nullable ProductSetName name) { GetProductSetRequest request = GetProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProductSet(request); @@ -1298,7 +1299,7 @@ public final UnaryCallable updateProductSet *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductSet(ProductSetName name) { + public final void deleteProductSet(@Nullable ProductSetName name) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProductSet(request); @@ -1432,7 +1433,8 @@ public final UnaryCallable deleteProductSetCalla * `/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(LocationName parent, Product product, String productId) { + public final Product createProduct( + @Nullable LocationName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1594,7 +1596,7 @@ public final UnaryCallable createProductCallable( *

Format: `projects/PROJECT_ID/locations/LOC_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(LocationName parent) { + public final ListProductsPagedResponse listProducts(@Nullable LocationName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1786,7 +1788,7 @@ public final UnaryCallable listProduc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -2052,7 +2054,7 @@ public final UnaryCallable updateProductCallable( *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -2202,7 +2204,7 @@ public final UnaryCallable deleteProductCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReferenceImage createReferenceImage( - ProductName parent, ReferenceImage referenceImage, String referenceImageId) { + @Nullable ProductName parent, ReferenceImage referenceImage, String referenceImageId) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2398,7 +2400,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReferenceImage(ReferenceImageName name) { + public final void deleteReferenceImage(@Nullable ReferenceImageName name) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2543,7 +2545,7 @@ public final UnaryCallable deleteReferenceIm *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReferenceImagesPagedResponse listReferenceImages(ProductName parent) { + public final ListReferenceImagesPagedResponse listReferenceImages(@Nullable ProductName parent) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2745,7 +2747,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( * `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReferenceImage getReferenceImage(ReferenceImageName name) { + public final ReferenceImage getReferenceImage(@Nullable ReferenceImageName name) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2895,7 +2897,8 @@ public final UnaryCallable getReferenc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, ProductName product) { + public final void addProductToProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2938,7 +2941,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, String product) { + public final void addProductToProductSet(@Nullable ProductSetName name, String product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2981,7 +2984,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(String name, ProductName product) { + public final void addProductToProductSet(String name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name) @@ -3132,7 +3135,8 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, ProductName product) { + public final void removeProductFromProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3166,7 +3170,7 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, String product) { + public final void removeProductFromProductSet(@Nullable ProductSetName name, String product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3200,7 +3204,7 @@ public final void removeProductFromProductSet(ProductSetName name, String produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(String name, ProductName product) { + public final void removeProductFromProductSet(String name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name) @@ -3330,7 +3334,8 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsInProductSetPagedResponse listProductsInProductSet(ProductSetName name) { + public final ListProductsInProductSetPagedResponse listProductsInProductSet( + @Nullable ProductSetName name) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3538,7 +3543,8 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importProductSetsAsync(LocationName parent, ImportProductSetsInputConfig inputConfig) { + importProductSetsAsync( + @Nullable LocationName parent, ImportProductSetsInputConfig inputConfig) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3754,7 +3760,7 @@ public final UnaryCallable importProductSet * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeProductsAsync( - LocationName parent) { + @Nullable LocationName parent) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4020,8 +4026,8 @@ public static class ListProductSetsPage ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage> { private ListProductSetsPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { super(context, response); } @@ -4031,14 +4037,14 @@ private static ListProductSetsPage createEmptyPage() { @Override protected ListProductSetsPage createPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { return new ListProductSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4053,7 +4059,7 @@ public static class ListProductSetsFixedSizeCollection ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4063,7 +4069,7 @@ private static ListProductSetsFixedSizeCollection createEmptyCollection() { @Override protected ListProductSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductSetsFixedSizeCollection(pages, collectionSize); } } @@ -4096,8 +4102,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -4107,14 +4113,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4128,7 +4134,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4138,7 +4145,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } @@ -4176,9 +4183,10 @@ public static class ListReferenceImagesPage ListReferenceImagesPage> { private ListReferenceImagesPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { super(context, response); } @@ -4188,15 +4196,17 @@ private static ListReferenceImagesPage createEmptyPage() { @Override protected ListReferenceImagesPage createPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { return new ListReferenceImagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4212,7 +4222,7 @@ public static class ListReferenceImagesFixedSizeCollection ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4222,7 +4232,7 @@ private static ListReferenceImagesFixedSizeCollection createEmptyCollection() { @Override protected ListReferenceImagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReferenceImagesFixedSizeCollection(pages, collectionSize); } } @@ -4260,9 +4270,10 @@ public static class ListProductsInProductSetPage ListProductsInProductSetPage> { private ListProductsInProductSetPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { super(context, response); } @@ -4272,15 +4283,17 @@ private static ListProductsInProductSetPage createEmptyPage() { @Override protected ListProductsInProductSetPage createPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { return new ListProductsInProductSetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4296,7 +4309,7 @@ public static class ListProductsInProductSetFixedSizeCollection ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4306,7 +4319,7 @@ private static ListProductsInProductSetFixedSizeCollection createEmptyCollection @Override protected ListProductsInProductSetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsInProductSetFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java index d80adb043619..dd1910348db4 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -295,7 +296,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); } @@ -315,7 +316,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductSearchStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java index cd7b24196dc4..a181bbdcf665 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStub.java @@ -32,6 +32,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,11 +44,12 @@ @Generated("by gapic-generator-java") public abstract class ImageAnnotatorStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java index 553028bf5038..d2755a1096ac 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ImageAnnotatorStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -299,7 +300,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); } @@ -384,7 +385,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchAnnotateImagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java index 70598f775067..967931779c9c 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,11 +69,12 @@ @Generated("by gapic-generator-java") public abstract class ProductSearchStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java index 38aa29f7bfa7..2ef1549cf30e 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/ProductSearchStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -667,7 +668,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); } @@ -811,7 +812,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java index aeb4c5e8ed10..acd60fc3fba1 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorClient.java @@ -26,6 +26,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. /** @@ -132,7 +133,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageAnnotatorClient implements BackgroundResource { - private final ImageAnnotatorSettings settings; + private final @Nullable ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; /** Constructs an instance of ImageAnnotatorClient with default settings. */ @@ -172,7 +173,7 @@ protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.stub = stub; } - public final ImageAnnotatorSettings getSettings() { + public final @Nullable ImageAnnotatorSettings getSettings() { return settings; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java index e17c53dae8e0..0bb6b5b7dad2 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/ImageAnnotatorSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -150,7 +151,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); } @@ -170,7 +171,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageAnnotatorStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java index 3370f27cfe38..93864cd08e52 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/ImageAnnotatorStubSettings.java @@ -47,6 +47,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -284,7 +285,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchAnnotateImagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java index 51f7d088cd4b..968fc5b2bb8c 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java @@ -30,6 +30,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageAnnotatorClient implements BackgroundResource { - private final ImageAnnotatorSettings settings; + private final @Nullable ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -200,7 +201,7 @@ protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ImageAnnotatorSettings getSettings() { + public final @Nullable ImageAnnotatorSettings getSettings() { return settings; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java index 96c405310134..fab41f992d05 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageAnnotatorStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java index 002f73a163d7..8ce019eb0df7 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class ImageAnnotatorStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 1dc7d4e9dac3..5e9a69b88039 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -344,7 +345,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchAnnotateImagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java index 32ef8c7b2e62..13e63042c661 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorClient.java @@ -30,6 +30,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. /** @@ -152,7 +153,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageAnnotatorClient implements BackgroundResource { - private final ImageAnnotatorSettings settings; + private final @Nullable ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -200,7 +201,7 @@ protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ImageAnnotatorSettings getSettings() { + public final @Nullable ImageAnnotatorSettings getSettings() { return settings; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java index 8c1885d8fcaf..82640474bb15 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ImageAnnotatorSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -192,7 +193,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); } @@ -212,7 +213,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageAnnotatorStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java index 5494e9ed1895..f98811a48ad3 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java @@ -39,6 +39,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. /** @@ -581,7 +582,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductSearchClient implements BackgroundResource { - private final ProductSearchSettings settings; + private final @Nullable ProductSearchSettings settings; private final ProductSearchStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -629,7 +630,7 @@ protected ProductSearchClient(ProductSearchStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductSearchSettings getSettings() { + public final @Nullable ProductSearchSettings getSettings() { return settings; } @@ -690,7 +691,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ProductSet createProductSet( - LocationName parent, ProductSet productSet, String productSetId) { + @Nullable LocationName parent, ProductSet productSet, String productSetId) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -848,7 +849,7 @@ public final UnaryCallable createProductSet *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductSetsPagedResponse listProductSets(LocationName parent) { + public final ListProductSetsPagedResponse listProductSets(@Nullable LocationName parent) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1042,7 +1043,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProductSet getProductSet(ProductSetName name) { + public final ProductSet getProductSet(@Nullable ProductSetName name) { GetProductSetRequest request = GetProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProductSet(request); @@ -1296,7 +1297,7 @@ public final UnaryCallable updateProductSet *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductSet(ProductSetName name) { + public final void deleteProductSet(@Nullable ProductSetName name) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProductSet(request); @@ -1448,7 +1449,8 @@ public final UnaryCallable deleteProductSetCalla * `/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(LocationName parent, Product product, String productId) { + public final Product createProduct( + @Nullable LocationName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1610,7 +1612,7 @@ public final UnaryCallable createProductCallable( *

Format: `projects/PROJECT_ID/locations/LOC_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(LocationName parent) { + public final ListProductsPagedResponse listProducts(@Nullable LocationName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1802,7 +1804,7 @@ public final UnaryCallable listProduc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -2074,7 +2076,7 @@ public final UnaryCallable updateProductCallable( *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -2242,7 +2244,7 @@ public final UnaryCallable deleteProductCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReferenceImage createReferenceImage( - ProductName parent, ReferenceImage referenceImage, String referenceImageId) { + @Nullable ProductName parent, ReferenceImage referenceImage, String referenceImageId) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2444,7 +2446,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReferenceImage(ReferenceImageName name) { + public final void deleteReferenceImage(@Nullable ReferenceImageName name) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2607,7 +2609,7 @@ public final UnaryCallable deleteReferenceIm *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReferenceImagesPagedResponse listReferenceImages(ProductName parent) { + public final ListReferenceImagesPagedResponse listReferenceImages(@Nullable ProductName parent) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2809,7 +2811,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReferenceImage getReferenceImage(ReferenceImageName name) { + public final ReferenceImage getReferenceImage(@Nullable ReferenceImageName name) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2959,7 +2961,8 @@ public final UnaryCallable getReferenc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, ProductName product) { + public final void addProductToProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3002,7 +3005,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, String product) { + public final void addProductToProductSet(@Nullable ProductSetName name, String product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3045,7 +3048,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(String name, ProductName product) { + public final void addProductToProductSet(String name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name) @@ -3202,7 +3205,8 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, ProductName product) { + public final void removeProductFromProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3242,7 +3246,7 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, String product) { + public final void removeProductFromProductSet(@Nullable ProductSetName name, String product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3282,7 +3286,7 @@ public final void removeProductFromProductSet(ProductSetName name, String produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(String name, ProductName product) { + public final void removeProductFromProductSet(String name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name) @@ -3430,7 +3434,8 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsInProductSetPagedResponse listProductsInProductSet(ProductSetName name) { + public final ListProductsInProductSetPagedResponse listProductsInProductSet( + @Nullable ProductSetName name) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3638,7 +3643,8 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importProductSetsAsync(LocationName parent, ImportProductSetsInputConfig inputConfig) { + importProductSetsAsync( + @Nullable LocationName parent, ImportProductSetsInputConfig inputConfig) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3869,8 +3875,8 @@ public static class ListProductSetsPage ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage> { private ListProductSetsPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { super(context, response); } @@ -3880,14 +3886,14 @@ private static ListProductSetsPage createEmptyPage() { @Override protected ListProductSetsPage createPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { return new ListProductSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3902,7 +3908,7 @@ public static class ListProductSetsFixedSizeCollection ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3912,7 +3918,7 @@ private static ListProductSetsFixedSizeCollection createEmptyCollection() { @Override protected ListProductSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductSetsFixedSizeCollection(pages, collectionSize); } } @@ -3945,8 +3951,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -3956,14 +3962,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3977,7 +3983,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3987,7 +3994,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } @@ -4025,9 +4032,10 @@ public static class ListReferenceImagesPage ListReferenceImagesPage> { private ListReferenceImagesPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { super(context, response); } @@ -4037,15 +4045,17 @@ private static ListReferenceImagesPage createEmptyPage() { @Override protected ListReferenceImagesPage createPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { return new ListReferenceImagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4061,7 +4071,7 @@ public static class ListReferenceImagesFixedSizeCollection ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4071,7 +4081,7 @@ private static ListReferenceImagesFixedSizeCollection createEmptyCollection() { @Override protected ListReferenceImagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReferenceImagesFixedSizeCollection(pages, collectionSize); } } @@ -4109,9 +4119,10 @@ public static class ListProductsInProductSetPage ListProductsInProductSetPage> { private ListProductsInProductSetPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { super(context, response); } @@ -4121,15 +4132,17 @@ private static ListProductsInProductSetPage createEmptyPage() { @Override protected ListProductsInProductSetPage createPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { return new ListProductsInProductSetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4145,7 +4158,7 @@ public static class ListProductsInProductSetFixedSizeCollection ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4155,7 +4168,7 @@ private static ListProductsInProductSetFixedSizeCollection createEmptyCollection @Override protected ListProductsInProductSetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsInProductSetFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java index b1f674b0fdc9..1316cc212382 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,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); } @@ -305,7 +306,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductSearchStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java index 4789dbf06cbf..f2f3610f166a 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStub.java @@ -29,6 +29,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,11 +42,12 @@ @Generated("by gapic-generator-java") public abstract class ImageAnnotatorStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java index 93d1b2a178b0..7ef61d0f3218 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ImageAnnotatorStubSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -270,7 +271,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); } @@ -357,7 +358,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchAnnotateImagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java index fd1eae5dbe88..167984ef5739 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStub.java @@ -57,6 +57,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -69,11 +70,12 @@ @Generated("by gapic-generator-java") public abstract class ProductSearchStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java index b0260989496a..a434331202cd 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/ProductSearchStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -653,7 +654,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); } @@ -792,7 +793,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java index 6931d92939d9..7199124813d7 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java @@ -30,6 +30,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. /** @@ -186,7 +187,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ImageAnnotatorClient implements BackgroundResource { - private final ImageAnnotatorSettings settings; + private final @Nullable ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -234,7 +235,7 @@ protected ImageAnnotatorClient(ImageAnnotatorStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ImageAnnotatorSettings getSettings() { + public final @Nullable ImageAnnotatorSettings getSettings() { return settings; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java index b5b66aa1fa12..a8e6cd586736 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorSettings.java @@ -34,6 +34,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -212,7 +213,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); } @@ -232,7 +233,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ImageAnnotatorStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java index 226c444deb85..5cecdbe5e65a 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java @@ -39,6 +39,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. /** @@ -590,7 +591,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ProductSearchClient implements BackgroundResource { - private final ProductSearchSettings settings; + private final @Nullable ProductSearchSettings settings; private final ProductSearchStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -638,7 +639,7 @@ protected ProductSearchClient(ProductSearchStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final ProductSearchSettings getSettings() { + public final @Nullable ProductSearchSettings getSettings() { return settings; } @@ -699,7 +700,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ProductSet createProductSet( - LocationName parent, ProductSet productSet, String productSetId) { + @Nullable LocationName parent, ProductSet productSet, String productSetId) { CreateProductSetRequest request = CreateProductSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -857,7 +858,7 @@ public final UnaryCallable createProductSet *

Format is `projects/PROJECT_ID/locations/LOC_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductSetsPagedResponse listProductSets(LocationName parent) { + public final ListProductSetsPagedResponse listProductSets(@Nullable LocationName parent) { ListProductSetsRequest request = ListProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1051,7 +1052,7 @@ public final ListProductSetsPagedResponse listProductSets(ListProductSetsRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ProductSet getProductSet(ProductSetName name) { + public final ProductSet getProductSet(@Nullable ProductSetName name) { GetProductSetRequest request = GetProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProductSet(request); @@ -1299,7 +1300,7 @@ public final UnaryCallable updateProductSet *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProductSet(ProductSetName name) { + public final void deleteProductSet(@Nullable ProductSetName name) { DeleteProductSetRequest request = DeleteProductSetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProductSet(request); @@ -1433,7 +1434,8 @@ public final UnaryCallable deleteProductSetCalla * `/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product createProduct(LocationName parent, Product product, String productId) { + public final Product createProduct( + @Nullable LocationName parent, Product product, String productId) { CreateProductRequest request = CreateProductRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1595,7 +1597,7 @@ public final UnaryCallable createProductCallable( *

Format: `projects/PROJECT_ID/locations/LOC_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsPagedResponse listProducts(LocationName parent) { + public final ListProductsPagedResponse listProducts(@Nullable LocationName parent) { ListProductsRequest request = ListProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1787,7 +1789,7 @@ public final UnaryCallable listProduc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Product getProduct(ProductName name) { + public final Product getProduct(@Nullable ProductName name) { GetProductRequest request = GetProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProduct(request); @@ -2053,7 +2055,7 @@ public final UnaryCallable updateProductCallable( *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProduct(ProductName name) { + public final void deleteProduct(@Nullable ProductName name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteProduct(request); @@ -2203,7 +2205,7 @@ public final UnaryCallable deleteProductCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReferenceImage createReferenceImage( - ProductName parent, ReferenceImage referenceImage, String referenceImageId) { + @Nullable ProductName parent, ReferenceImage referenceImage, String referenceImageId) { CreateReferenceImageRequest request = CreateReferenceImageRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2399,7 +2401,7 @@ public final ReferenceImage createReferenceImage(CreateReferenceImageRequest req *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteReferenceImage(ReferenceImageName name) { + public final void deleteReferenceImage(@Nullable ReferenceImageName name) { DeleteReferenceImageRequest request = DeleteReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2544,7 +2546,7 @@ public final UnaryCallable deleteReferenceIm *

Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReferenceImagesPagedResponse listReferenceImages(ProductName parent) { + public final ListReferenceImagesPagedResponse listReferenceImages(@Nullable ProductName parent) { ListReferenceImagesRequest request = ListReferenceImagesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2746,7 +2748,7 @@ public final ListReferenceImagesPagedResponse listReferenceImages( *

`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReferenceImage getReferenceImage(ReferenceImageName name) { + public final ReferenceImage getReferenceImage(@Nullable ReferenceImageName name) { GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2896,7 +2898,8 @@ public final UnaryCallable getReferenc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, ProductName product) { + public final void addProductToProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2939,7 +2942,7 @@ public final void addProductToProductSet(ProductSetName name, ProductName produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(ProductSetName name, String product) { + public final void addProductToProductSet(@Nullable ProductSetName name, String product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2982,7 +2985,7 @@ public final void addProductToProductSet(ProductSetName name, String product) { *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void addProductToProductSet(String name, ProductName product) { + public final void addProductToProductSet(String name, @Nullable ProductName product) { AddProductToProductSetRequest request = AddProductToProductSetRequest.newBuilder() .setName(name) @@ -3133,7 +3136,8 @@ public final void addProductToProductSet(AddProductToProductSetRequest request) *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, ProductName product) { + public final void removeProductFromProductSet( + @Nullable ProductSetName name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3167,7 +3171,7 @@ public final void removeProductFromProductSet(ProductSetName name, ProductName p *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(ProductSetName name, String product) { + public final void removeProductFromProductSet(@Nullable ProductSetName name, String product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3201,7 +3205,7 @@ public final void removeProductFromProductSet(ProductSetName name, String produc *

Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void removeProductFromProductSet(String name, ProductName product) { + public final void removeProductFromProductSet(String name, @Nullable ProductName product) { RemoveProductFromProductSetRequest request = RemoveProductFromProductSetRequest.newBuilder() .setName(name) @@ -3331,7 +3335,8 @@ public final void removeProductFromProductSet(RemoveProductFromProductSetRequest *

Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProductsInProductSetPagedResponse listProductsInProductSet(ProductSetName name) { + public final ListProductsInProductSetPagedResponse listProductsInProductSet( + @Nullable ProductSetName name) { ListProductsInProductSetRequest request = ListProductsInProductSetRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3539,7 +3544,8 @@ public final ListProductsInProductSetPagedResponse listProductsInProductSet( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - importProductSetsAsync(LocationName parent, ImportProductSetsInputConfig inputConfig) { + importProductSetsAsync( + @Nullable LocationName parent, ImportProductSetsInputConfig inputConfig) { ImportProductSetsRequest request = ImportProductSetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3755,7 +3761,7 @@ public final UnaryCallable importProductSet * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture purgeProductsAsync( - LocationName parent) { + @Nullable LocationName parent) { PurgeProductsRequest request = PurgeProductsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4021,8 +4027,8 @@ public static class ListProductSetsPage ListProductSetsRequest, ListProductSetsResponse, ProductSet, ListProductSetsPage> { private ListProductSetsPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { super(context, response); } @@ -4032,14 +4038,14 @@ private static ListProductSetsPage createEmptyPage() { @Override protected ListProductSetsPage createPage( - PageContext context, - ListProductSetsResponse response) { + @Nullable PageContext context, + @Nullable ListProductSetsResponse response) { return new ListProductSetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4054,7 +4060,7 @@ public static class ListProductSetsFixedSizeCollection ListProductSetsFixedSizeCollection> { private ListProductSetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4064,7 +4070,7 @@ private static ListProductSetsFixedSizeCollection createEmptyCollection() { @Override protected ListProductSetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductSetsFixedSizeCollection(pages, collectionSize); } } @@ -4097,8 +4103,8 @@ public static class ListProductsPage extends AbstractPage { private ListProductsPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { super(context, response); } @@ -4108,14 +4114,14 @@ private static ListProductsPage createEmptyPage() { @Override protected ListProductsPage createPage( - PageContext context, - ListProductsResponse response) { + @Nullable PageContext context, + @Nullable ListProductsResponse response) { return new ListProductsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4129,7 +4135,8 @@ public static class ListProductsFixedSizeCollection ListProductsPage, ListProductsFixedSizeCollection> { - private ListProductsFixedSizeCollection(List pages, int collectionSize) { + private ListProductsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4139,7 +4146,7 @@ private static ListProductsFixedSizeCollection createEmptyCollection() { @Override protected ListProductsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsFixedSizeCollection(pages, collectionSize); } } @@ -4177,9 +4184,10 @@ public static class ListReferenceImagesPage ListReferenceImagesPage> { private ListReferenceImagesPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { super(context, response); } @@ -4189,15 +4197,17 @@ private static ListReferenceImagesPage createEmptyPage() { @Override protected ListReferenceImagesPage createPage( - PageContext + @Nullable + PageContext context, - ListReferenceImagesResponse response) { + @Nullable ListReferenceImagesResponse response) { return new ListReferenceImagesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4213,7 +4223,7 @@ public static class ListReferenceImagesFixedSizeCollection ListReferenceImagesFixedSizeCollection> { private ListReferenceImagesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4223,7 +4233,7 @@ private static ListReferenceImagesFixedSizeCollection createEmptyCollection() { @Override protected ListReferenceImagesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReferenceImagesFixedSizeCollection(pages, collectionSize); } } @@ -4261,9 +4271,10 @@ public static class ListProductsInProductSetPage ListProductsInProductSetPage> { private ListProductsInProductSetPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { super(context, response); } @@ -4273,15 +4284,17 @@ private static ListProductsInProductSetPage createEmptyPage() { @Override protected ListProductsInProductSetPage createPage( - PageContext + @Nullable + PageContext context, - ListProductsInProductSetResponse response) { + @Nullable ListProductsInProductSetResponse response) { return new ListProductsInProductSetPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4297,7 +4310,7 @@ public static class ListProductsInProductSetFixedSizeCollection ListProductsInProductSetFixedSizeCollection> { private ListProductsInProductSetFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4307,7 +4320,7 @@ private static ListProductsInProductSetFixedSizeCollection createEmptyCollection @Override protected ListProductsInProductSetFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProductsInProductSetFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java index 36c2493c67ca..c0dc0308672e 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -296,7 +297,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); } @@ -316,7 +317,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ProductSearchStubSettings.newBuilder(clientContext)); } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java index 4f75b3493dc2..48cab6b41f32 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStub.java @@ -33,6 +33,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,11 +46,12 @@ @Generated("by gapic-generator-java") public abstract class ImageAnnotatorStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java index b2c5c7af17dc..bb54c1482f99 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ImageAnnotatorStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -300,7 +301,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); } @@ -382,7 +383,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); batchAnnotateImagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java index b30bb2f4e8c3..5feba9d22cb5 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStub.java @@ -58,6 +58,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,11 +71,12 @@ @Generated("by gapic-generator-java") public abstract class ProductSearchStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java index 73d8680594da..233b1ce77e0d 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/ProductSearchStubSettings.java @@ -91,6 +91,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -668,7 +669,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); } @@ -815,7 +816,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createProductSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java index c4b7a2b549ef..fd0ee0cd36b6 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java index 38f3965e8adc..25cc9cf39a79 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String product) { .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java index 784f617db961..7a4a26aac948 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ProductSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String productSet) .toString(); } - public static ProductSetName parse(String formattedString) { + public static @Nullable ProductSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductSetName> values) { List list = new ArrayList<>(values.size()); for (ProductSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java index d8abdccc9aed..230c47e7cf47 100644 --- a/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java +++ b/java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ReferenceImageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReferenceImageName parse(String formattedString) { + public static @Nullable ReferenceImageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReferenceImageName> values) { List list = new ArrayList<>(values.size()); for (ReferenceImageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java index 0f5ca8d6451d..b27933e965b1 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java index f22b9fd5a137..f180917fcf2e 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String product) { .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java index 7844b5a442d0..892bec03e188 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String productSet) .toString(); } - public static ProductSetName parse(String formattedString) { + public static @Nullable ProductSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductSetName> values) { List list = new ArrayList<>(values.size()); for (ProductSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java index d78dcd866a9a..c38f584a3c9d 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ReferenceImageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReferenceImageName parse(String formattedString) { + public static @Nullable ReferenceImageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReferenceImageName> values) { List list = new ArrayList<>(values.size()); for (ReferenceImageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java index 07671cfdafd2..8c6bb649e849 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java index 380461c2bbdc..a8fcff9b2e99 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String product) { .toString(); } - public static ProductName parse(String formattedString) { + public static @Nullable ProductName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductName> values) { List list = new ArrayList<>(values.size()); for (ProductName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java index e7f5d3bc8522..09d9eea31927 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String productSet) .toString(); } - public static ProductSetName parse(String formattedString) { + public static @Nullable ProductSetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProductSetName> values) { List list = new ArrayList<>(values.size()); for (ProductSetName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java index 4cf1fee4300d..a143078b3105 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ReferenceImageName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ReferenceImageName parse(String formattedString) { + public static @Nullable ReferenceImageName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReferenceImageName> values) { List list = new ArrayList<>(values.size()); for (ReferenceImageName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformClient.java index 90c8743f9ed4..abf3980f6f9c 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformClient.java @@ -43,6 +43,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. /** @@ -671,7 +672,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AppPlatformClient implements BackgroundResource { - private final AppPlatformSettings settings; + private final @Nullable AppPlatformSettings settings; private final AppPlatformStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -718,7 +719,7 @@ protected AppPlatformClient(AppPlatformStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AppPlatformSettings getSettings() { + public final @Nullable AppPlatformSettings getSettings() { return settings; } @@ -766,7 +767,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListApplicationsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListApplicationsPagedResponse listApplications(LocationName parent) { + public final ListApplicationsPagedResponse listApplications(@Nullable LocationName parent) { ListApplicationsRequest request = ListApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -935,7 +936,7 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Application getApplication(ApplicationName name) { + public final Application getApplication(@Nullable ApplicationName name) { GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getApplication(request); @@ -1047,7 +1048,7 @@ public final UnaryCallable getApplicationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createApplicationAsync( - LocationName parent, Application application) { + @Nullable LocationName parent, Application application) { CreateApplicationRequest request = CreateApplicationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1332,7 +1333,7 @@ public final UnaryCallable updateApplicatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApplicationAsync( - ApplicationName name) { + @Nullable ApplicationName name) { DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1481,7 +1482,7 @@ public final UnaryCallable deleteApplicatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deployApplicationAsync( - ApplicationName name) { + @Nullable ApplicationName name) { DeployApplicationRequest request = DeployApplicationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1636,7 +1637,7 @@ public final UnaryCallable deployApplicatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - undeployApplicationAsync(ApplicationName name) { + undeployApplicationAsync(@Nullable ApplicationName name) { UndeployApplicationRequest request = UndeployApplicationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1790,7 +1791,7 @@ public final UnaryCallable undeployApplic * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - addApplicationStreamInputAsync(ApplicationName name) { + addApplicationStreamInputAsync(@Nullable ApplicationName name) { AddApplicationStreamInputRequest request = AddApplicationStreamInputRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1957,7 +1958,7 @@ public final UnaryCallable undeployApplic * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeApplicationStreamInputAsync(ApplicationName name) { + removeApplicationStreamInputAsync(@Nullable ApplicationName name) { RemoveApplicationStreamInputRequest request = RemoveApplicationStreamInputRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2129,7 +2130,7 @@ public final UnaryCallable undeployApplic * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - updateApplicationStreamInputAsync(ApplicationName name) { + updateApplicationStreamInputAsync(@Nullable ApplicationName name) { UpdateApplicationStreamInputRequest request = UpdateApplicationStreamInputRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2298,7 +2299,7 @@ public final UnaryCallable undeployApplic * @param parent Required. Parent value for ListInstancesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(ApplicationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable ApplicationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2464,7 +2465,7 @@ public final UnaryCallable listInst * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -2582,7 +2583,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - createApplicationInstancesAsync(ApplicationName name) { + createApplicationInstancesAsync(@Nullable ApplicationName name) { CreateApplicationInstancesRequest request = CreateApplicationInstancesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2748,7 +2749,7 @@ public final UnaryCallable getInstanceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApplicationInstancesAsync( - ApplicationName name) { + @Nullable ApplicationName name) { DeleteApplicationInstancesRequest request = DeleteApplicationInstancesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2916,7 +2917,7 @@ public final OperationFuture deleteApplicationInsta */ public final OperationFuture updateApplicationInstancesAsync( - ApplicationName name, + @Nullable ApplicationName name, List applicationInstances) { UpdateApplicationInstancesRequest request = UpdateApplicationInstancesRequest.newBuilder() @@ -3096,7 +3097,7 @@ public final OperationFuture deleteApplicationInsta * @param parent Required. Parent value for ListDraftsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDraftsPagedResponse listDrafts(ApplicationName parent) { + public final ListDraftsPagedResponse listDrafts(@Nullable ApplicationName parent) { ListDraftsRequest request = ListDraftsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listDrafts(request); @@ -3258,7 +3259,7 @@ public final UnaryCallable listDraftsCall * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Draft getDraft(DraftName name) { + public final Draft getDraft(@Nullable DraftName name) { GetDraftRequest request = GetDraftRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDraft(request); @@ -3373,7 +3374,7 @@ public final UnaryCallable getDraftCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDraftAsync( - ApplicationName parent, Draft draft, String draftId) { + @Nullable ApplicationName parent, Draft draft, String draftId) { CreateDraftRequest request = CreateDraftRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3661,7 +3662,8 @@ public final UnaryCallable updateDraftCallable() * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteDraftAsync(DraftName name) { + public final OperationFuture deleteDraftAsync( + @Nullable DraftName name) { DeleteDraftRequest request = DeleteDraftRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteDraftAsync(request); @@ -3807,7 +3809,7 @@ public final UnaryCallable deleteDraftCallable() * @param parent Required. Parent value for ListProcessorsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessorsPagedResponse listProcessors(LocationName parent) { + public final ListProcessorsPagedResponse listProcessors(@Nullable LocationName parent) { ListProcessorsRequest request = ListProcessorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3974,7 +3976,8 @@ public final ListProcessorsPagedResponse listProcessors(ListProcessorsRequest re * @param parent Required. Parent path. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrebuiltProcessorsResponse listPrebuiltProcessors(LocationName parent) { + public final ListPrebuiltProcessorsResponse listPrebuiltProcessors( + @Nullable LocationName parent) { ListPrebuiltProcessorsRequest request = ListPrebuiltProcessorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4088,7 +4091,7 @@ public final ListPrebuiltProcessorsResponse listPrebuiltProcessors( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Processor getProcessor(ProcessorName name) { + public final Processor getProcessor(@Nullable ProcessorName name) { GetProcessorRequest request = GetProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcessor(request); @@ -4202,7 +4205,7 @@ public final UnaryCallable getProcessorCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createProcessorAsync( - LocationName parent, Processor processor, String processorId) { + @Nullable LocationName parent, Processor processor, String processorId) { CreateProcessorRequest request = CreateProcessorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4491,7 +4494,8 @@ public final UnaryCallable updateProcessorCal * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteProcessorAsync(ProcessorName name) { + public final OperationFuture deleteProcessorAsync( + @Nullable ProcessorName name) { DeleteProcessorRequest request = DeleteProcessorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProcessorAsync(request); @@ -4825,8 +4829,9 @@ public static class ListApplicationsPage ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { private ListApplicationsPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { super(context, response); } @@ -4836,14 +4841,16 @@ private static ListApplicationsPage createEmptyPage() { @Override protected ListApplicationsPage createPage( - PageContext context, - ListApplicationsResponse response) { + @Nullable PageContext + context, + @Nullable ListApplicationsResponse response) { return new ListApplicationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4858,7 +4865,7 @@ public static class ListApplicationsFixedSizeCollection ListApplicationsFixedSizeCollection> { private ListApplicationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4868,7 +4875,7 @@ private static ListApplicationsFixedSizeCollection createEmptyCollection() { @Override protected ListApplicationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListApplicationsFixedSizeCollection(pages, collectionSize); } } @@ -4902,8 +4909,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -4913,14 +4920,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4934,7 +4941,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4944,7 +4952,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } @@ -4975,8 +4983,8 @@ public static class ListDraftsPage extends AbstractPage { private ListDraftsPage( - PageContext context, - ListDraftsResponse response) { + @Nullable PageContext context, + @Nullable ListDraftsResponse response) { super(context, response); } @@ -4986,14 +4994,14 @@ private static ListDraftsPage createEmptyPage() { @Override protected ListDraftsPage createPage( - PageContext context, - ListDraftsResponse response) { + @Nullable PageContext context, + @Nullable ListDraftsResponse response) { return new ListDraftsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5007,7 +5015,8 @@ public static class ListDraftsFixedSizeCollection ListDraftsPage, ListDraftsFixedSizeCollection> { - private ListDraftsFixedSizeCollection(List pages, int collectionSize) { + private ListDraftsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5017,7 +5026,7 @@ private static ListDraftsFixedSizeCollection createEmptyCollection() { @Override protected ListDraftsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDraftsFixedSizeCollection(pages, collectionSize); } } @@ -5051,8 +5060,8 @@ public static class ListProcessorsPage ListProcessorsRequest, ListProcessorsResponse, Processor, ListProcessorsPage> { private ListProcessorsPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { super(context, response); } @@ -5062,14 +5071,14 @@ private static ListProcessorsPage createEmptyPage() { @Override protected ListProcessorsPage createPage( - PageContext context, - ListProcessorsResponse response) { + @Nullable PageContext context, + @Nullable ListProcessorsResponse response) { return new ListProcessorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5083,7 +5092,8 @@ public static class ListProcessorsFixedSizeCollection ListProcessorsPage, ListProcessorsFixedSizeCollection> { - private ListProcessorsFixedSizeCollection(List pages, int collectionSize) { + private ListProcessorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5093,7 +5103,7 @@ private static ListProcessorsFixedSizeCollection createEmptyCollection() { @Override protected ListProcessorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessorsFixedSizeCollection(pages, collectionSize); } } @@ -5127,8 +5137,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -5138,14 +5148,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -5159,7 +5169,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -5169,7 +5180,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformSettings.java index d0f2e91bee4d..138c2343511e 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/AppPlatformSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -453,7 +454,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); } @@ -473,7 +474,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AppPlatformStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceClient.java index ed3a84dd8ed0..83a8884679ad 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceClient.java @@ -36,6 +36,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. /** @@ -175,7 +176,7 @@ @NullMarked @Generated("by gapic-generator-java") public class HealthCheckServiceClient implements BackgroundResource { - private final HealthCheckServiceSettings settings; + private final @Nullable HealthCheckServiceSettings settings; private final HealthCheckServiceStub stub; /** Constructs an instance of HealthCheckServiceClient with default settings. */ @@ -215,7 +216,7 @@ protected HealthCheckServiceClient(HealthCheckServiceStub stub) { this.stub = stub; } - public final HealthCheckServiceSettings getSettings() { + public final @Nullable HealthCheckServiceSettings getSettings() { return settings; } @@ -495,8 +496,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -506,14 +507,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -527,7 +528,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -537,7 +539,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceSettings.java index cb57613cc3ff..d08c513b0379 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/HealthCheckServiceSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(HealthCheckServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsClient.java index 4c1257499410..aba331a6d8f8 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsClient.java @@ -43,6 +43,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. /** @@ -517,7 +518,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LiveVideoAnalyticsClient implements BackgroundResource { - private final LiveVideoAnalyticsSettings settings; + private final @Nullable LiveVideoAnalyticsSettings settings; private final LiveVideoAnalyticsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -565,7 +566,7 @@ protected LiveVideoAnalyticsClient(LiveVideoAnalyticsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final LiveVideoAnalyticsSettings getSettings() { + public final @Nullable LiveVideoAnalyticsSettings getSettings() { return settings; } @@ -613,7 +614,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListPublicOperatorsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPublicOperatorsPagedResponse listPublicOperators(LocationName parent) { + public final ListPublicOperatorsPagedResponse listPublicOperators(@Nullable LocationName parent) { ListPublicOperatorsRequest request = ListPublicOperatorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -787,7 +788,7 @@ public final ListPublicOperatorsPagedResponse listPublicOperators( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ResolveOperatorInfoResponse resolveOperatorInfo( - LocationName parent, List queries) { + @Nullable LocationName parent, List queries) { ResolveOperatorInfoRequest request = ResolveOperatorInfoRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -909,7 +910,7 @@ public final ResolveOperatorInfoResponse resolveOperatorInfo(ResolveOperatorInfo * @param parent Required. Parent value for ListOperatorsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListOperatorsPagedResponse listOperators(LocationName parent) { + public final ListOperatorsPagedResponse listOperators(@Nullable LocationName parent) { ListOperatorsRequest request = ListOperatorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1076,7 +1077,7 @@ public final UnaryCallable listOper * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Operator getOperator(OperatorName name) { + public final Operator getOperator(@Nullable OperatorName name) { GetOperatorRequest request = GetOperatorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getOperator(request); @@ -1191,7 +1192,7 @@ public final UnaryCallable getOperatorCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createOperatorAsync( - LocationName parent, Operator operator, String operatorId) { + @Nullable LocationName parent, Operator operator, String operatorId) { CreateOperatorRequest request = CreateOperatorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1479,7 +1480,8 @@ public final UnaryCallable updateOperatorCalla * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteOperatorAsync(OperatorName name) { + public final OperationFuture deleteOperatorAsync( + @Nullable OperatorName name) { DeleteOperatorRequest request = DeleteOperatorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteOperatorAsync(request); @@ -1623,7 +1625,7 @@ public final UnaryCallable deleteOperatorCalla * @param parent Required. Parent value for ListAnalysesRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnalysesPagedResponse listAnalyses(ClusterName parent) { + public final ListAnalysesPagedResponse listAnalyses(@Nullable ClusterName parent) { ListAnalysesRequest request = ListAnalysesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1790,7 +1792,7 @@ public final UnaryCallable listAnalys * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Analysis getAnalysis(AnalysisName name) { + public final Analysis getAnalysis(@Nullable AnalysisName name) { GetAnalysisRequest request = GetAnalysisRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnalysis(request); @@ -1908,7 +1910,7 @@ public final UnaryCallable getAnalysisCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createAnalysisAsync( - ClusterName parent, Analysis analysis, String analysisId) { + @Nullable ClusterName parent, Analysis analysis, String analysisId) { CreateAnalysisRequest request = CreateAnalysisRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2196,7 +2198,8 @@ public final UnaryCallable updateAnalysisCalla * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAnalysisAsync(AnalysisName name) { + public final OperationFuture deleteAnalysisAsync( + @Nullable AnalysisName name) { DeleteAnalysisRequest request = DeleteAnalysisRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAnalysisAsync(request); @@ -2344,7 +2347,7 @@ public final UnaryCallable deleteAnalysisCalla * @param parent Required. Parent value for ListProcessesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListProcessesPagedResponse listProcesses(ClusterName parent) { + public final ListProcessesPagedResponse listProcesses(@Nullable ClusterName parent) { ListProcessesRequest request = ListProcessesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2511,7 +2514,7 @@ public final UnaryCallable listProc * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Process getProcess(ProcessName name) { + public final Process getProcess(@Nullable ProcessName name) { GetProcessRequest request = GetProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getProcess(request); @@ -2627,7 +2630,7 @@ public final UnaryCallable getProcessCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createProcessAsync( - ClusterName parent, Process process, String processId) { + @Nullable ClusterName parent, Process process, String processId) { CreateProcessRequest request = CreateProcessRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2915,7 +2918,8 @@ public final UnaryCallable updateProcessCallabl * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteProcessAsync(ProcessName name) { + public final OperationFuture deleteProcessAsync( + @Nullable ProcessName name) { DeleteProcessRequest request = DeleteProcessRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteProcessAsync(request); @@ -3064,7 +3068,7 @@ public final UnaryCallable deleteProcessCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture batchRunProcessAsync( - ClusterName parent, List requests) { + @Nullable ClusterName parent, List requests) { BatchRunProcessRequest request = BatchRunProcessRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3419,8 +3423,9 @@ public static class ListPublicOperatorsPage ListPublicOperatorsPage> { private ListPublicOperatorsPage( - PageContext context, - ListPublicOperatorsResponse response) { + @Nullable PageContext + context, + @Nullable ListPublicOperatorsResponse response) { super(context, response); } @@ -3430,14 +3435,16 @@ private static ListPublicOperatorsPage createEmptyPage() { @Override protected ListPublicOperatorsPage createPage( - PageContext context, - ListPublicOperatorsResponse response) { + @Nullable PageContext + context, + @Nullable ListPublicOperatorsResponse response) { return new ListPublicOperatorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3452,7 +3459,7 @@ public static class ListPublicOperatorsFixedSizeCollection ListPublicOperatorsFixedSizeCollection> { private ListPublicOperatorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3462,7 +3469,7 @@ private static ListPublicOperatorsFixedSizeCollection createEmptyCollection() { @Override protected ListPublicOperatorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPublicOperatorsFixedSizeCollection(pages, collectionSize); } } @@ -3496,8 +3503,8 @@ public static class ListOperatorsPage ListOperatorsRequest, ListOperatorsResponse, Operator, ListOperatorsPage> { private ListOperatorsPage( - PageContext context, - ListOperatorsResponse response) { + @Nullable PageContext context, + @Nullable ListOperatorsResponse response) { super(context, response); } @@ -3507,14 +3514,14 @@ private static ListOperatorsPage createEmptyPage() { @Override protected ListOperatorsPage createPage( - PageContext context, - ListOperatorsResponse response) { + @Nullable PageContext context, + @Nullable ListOperatorsResponse response) { return new ListOperatorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3528,7 +3535,8 @@ public static class ListOperatorsFixedSizeCollection ListOperatorsPage, ListOperatorsFixedSizeCollection> { - private ListOperatorsFixedSizeCollection(List pages, int collectionSize) { + private ListOperatorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3538,7 +3546,7 @@ private static ListOperatorsFixedSizeCollection createEmptyCollection() { @Override protected ListOperatorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListOperatorsFixedSizeCollection(pages, collectionSize); } } @@ -3571,8 +3579,8 @@ public static class ListAnalysesPage extends AbstractPage { private ListAnalysesPage( - PageContext context, - ListAnalysesResponse response) { + @Nullable PageContext context, + @Nullable ListAnalysesResponse response) { super(context, response); } @@ -3582,14 +3590,14 @@ private static ListAnalysesPage createEmptyPage() { @Override protected ListAnalysesPage createPage( - PageContext context, - ListAnalysesResponse response) { + @Nullable PageContext context, + @Nullable ListAnalysesResponse response) { return new ListAnalysesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3603,7 +3611,8 @@ public static class ListAnalysesFixedSizeCollection ListAnalysesPage, ListAnalysesFixedSizeCollection> { - private ListAnalysesFixedSizeCollection(List pages, int collectionSize) { + private ListAnalysesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3613,7 +3622,7 @@ private static ListAnalysesFixedSizeCollection createEmptyCollection() { @Override protected ListAnalysesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnalysesFixedSizeCollection(pages, collectionSize); } } @@ -3647,8 +3656,8 @@ public static class ListProcessesPage ListProcessesRequest, ListProcessesResponse, Process, ListProcessesPage> { private ListProcessesPage( - PageContext context, - ListProcessesResponse response) { + @Nullable PageContext context, + @Nullable ListProcessesResponse response) { super(context, response); } @@ -3658,14 +3667,14 @@ private static ListProcessesPage createEmptyPage() { @Override protected ListProcessesPage createPage( - PageContext context, - ListProcessesResponse response) { + @Nullable PageContext context, + @Nullable ListProcessesResponse response) { return new ListProcessesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3679,7 +3688,8 @@ public static class ListProcessesFixedSizeCollection ListProcessesPage, ListProcessesFixedSizeCollection> { - private ListProcessesFixedSizeCollection(List pages, int collectionSize) { + private ListProcessesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3689,7 +3699,7 @@ private static ListProcessesFixedSizeCollection createEmptyCollection() { @Override protected ListProcessesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListProcessesFixedSizeCollection(pages, collectionSize); } } @@ -3723,8 +3733,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -3734,14 +3744,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3755,7 +3765,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3765,7 +3776,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsSettings.java index 7e0ad6204545..4e6a1ad5bb24 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/LiveVideoAnalyticsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -351,7 +352,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); } @@ -371,7 +372,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LiveVideoAnalyticsStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceClient.java index 02fd542a03ab..5a31e82e9df4 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceClient.java @@ -37,6 +37,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. /** @@ -236,7 +237,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StreamingServiceClient implements BackgroundResource { - private final StreamingServiceSettings settings; + private final @Nullable StreamingServiceSettings settings; private final StreamingServiceStub stub; /** Constructs an instance of StreamingServiceClient with default settings. */ @@ -276,7 +277,7 @@ protected StreamingServiceClient(StreamingServiceStub stub) { this.stub = stub; } - public final StreamingServiceSettings getSettings() { + public final @Nullable StreamingServiceSettings getSettings() { return settings; } @@ -765,8 +766,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -776,14 +777,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -797,7 +798,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -807,7 +809,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceSettings.java index 249ea1d9f0c6..4d8f7199eda3 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamingServiceSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -194,7 +195,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); } @@ -214,7 +215,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StreamingServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceClient.java index ffd1a1ac7b98..61a12ed40f89 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceClient.java @@ -43,6 +43,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. /** @@ -611,7 +612,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StreamsServiceClient implements BackgroundResource { - private final StreamsServiceSettings settings; + private final @Nullable StreamsServiceSettings settings; private final StreamsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -659,7 +660,7 @@ protected StreamsServiceClient(StreamsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final StreamsServiceSettings getSettings() { + public final @Nullable StreamsServiceSettings getSettings() { return settings; } @@ -707,7 +708,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListClustersRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(LocationName parent) { + public final ListClustersPagedResponse listClusters(@Nullable LocationName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -873,7 +874,7 @@ public final UnaryCallable listCluste * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -986,7 +987,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - LocationName parent, Cluster cluster, String clusterId) { + @Nullable LocationName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1273,7 +1274,8 @@ public final UnaryCallable updateClusterCallabl * @param name Required. Name of the resource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -1417,7 +1419,7 @@ public final UnaryCallable deleteClusterCallabl * @param parent Required. Parent value for ListStreamsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStreamsPagedResponse listStreams(ClusterName parent) { + public final ListStreamsPagedResponse listStreams(@Nullable ClusterName parent) { ListStreamsRequest request = ListStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1583,7 +1585,7 @@ public final UnaryCallable listStreamsC * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Stream getStream(StreamName name) { + public final Stream getStream(@Nullable StreamName name) { GetStreamRequest request = GetStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getStream(request); @@ -1696,7 +1698,7 @@ public final UnaryCallable getStreamCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createStreamAsync( - ClusterName parent, Stream stream, String streamId) { + @Nullable ClusterName parent, Stream stream, String streamId) { CreateStreamRequest request = CreateStreamRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1981,7 +1983,8 @@ public final UnaryCallable updateStreamCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteStreamAsync(StreamName name) { + public final OperationFuture deleteStreamAsync( + @Nullable StreamName name) { DeleteStreamRequest request = DeleteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteStreamAsync(request); @@ -2337,7 +2340,7 @@ public final GenerateStreamHlsTokenResponse generateStreamHlsToken( * @param parent Required. Parent value for ListEventsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventsPagedResponse listEvents(ClusterName parent) { + public final ListEventsPagedResponse listEvents(@Nullable ClusterName parent) { ListEventsRequest request = ListEventsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listEvents(request); @@ -2499,7 +2502,7 @@ public final UnaryCallable listEventsCall * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Event getEvent(EventName name) { + public final Event getEvent(@Nullable EventName name) { GetEventRequest request = GetEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvent(request); @@ -2612,7 +2615,7 @@ public final UnaryCallable getEventCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEventAsync( - ClusterName parent, Event event, String eventId) { + @Nullable ClusterName parent, Event event, String eventId) { CreateEventRequest request = CreateEventRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2897,7 +2900,8 @@ public final UnaryCallable updateEventCallable() * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteEventAsync(EventName name) { + public final OperationFuture deleteEventAsync( + @Nullable EventName name) { DeleteEventRequest request = DeleteEventRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEventAsync(request); @@ -3040,7 +3044,7 @@ public final UnaryCallable deleteEventCallable() * @param parent Required. Parent value for ListSeriesRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSeriesPagedResponse listSeries(ClusterName parent) { + public final ListSeriesPagedResponse listSeries(@Nullable ClusterName parent) { ListSeriesRequest request = ListSeriesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSeries(request); @@ -3202,7 +3206,7 @@ public final UnaryCallable listSeriesCall * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Series getSeries(SeriesName name) { + public final Series getSeries(@Nullable SeriesName name) { GetSeriesRequest request = GetSeriesRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSeries(request); @@ -3315,7 +3319,7 @@ public final UnaryCallable getSeriesCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSeriesAsync( - ClusterName parent, Series series, String seriesId) { + @Nullable ClusterName parent, Series series, String seriesId) { CreateSeriesRequest request = CreateSeriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3600,7 +3604,8 @@ public final UnaryCallable updateSeriesCallable( * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSeriesAsync(SeriesName name) { + public final OperationFuture deleteSeriesAsync( + @Nullable SeriesName name) { DeleteSeriesRequest request = DeleteSeriesRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSeriesAsync(request); @@ -3747,7 +3752,7 @@ public final UnaryCallable deleteSeriesCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture materializeChannelAsync( - ClusterName parent, Channel channel, String channelId) { + @Nullable ClusterName parent, Channel channel, String channelId) { MaterializeChannelRequest request = MaterializeChannelRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4102,8 +4107,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -4113,14 +4118,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4134,7 +4139,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4144,7 +4150,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -4175,8 +4181,8 @@ public static class ListStreamsPage extends AbstractPage { private ListStreamsPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { super(context, response); } @@ -4186,14 +4192,14 @@ private static ListStreamsPage createEmptyPage() { @Override protected ListStreamsPage createPage( - PageContext context, - ListStreamsResponse response) { + @Nullable PageContext context, + @Nullable ListStreamsResponse response) { return new ListStreamsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4207,7 +4213,8 @@ public static class ListStreamsFixedSizeCollection ListStreamsPage, ListStreamsFixedSizeCollection> { - private ListStreamsFixedSizeCollection(List pages, int collectionSize) { + private ListStreamsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4217,7 +4224,7 @@ private static ListStreamsFixedSizeCollection createEmptyCollection() { @Override protected ListStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListStreamsFixedSizeCollection(pages, collectionSize); } } @@ -4248,8 +4255,8 @@ public static class ListEventsPage extends AbstractPage { private ListEventsPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { super(context, response); } @@ -4259,14 +4266,14 @@ private static ListEventsPage createEmptyPage() { @Override protected ListEventsPage createPage( - PageContext context, - ListEventsResponse response) { + @Nullable PageContext context, + @Nullable ListEventsResponse response) { return new ListEventsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4280,7 +4287,8 @@ public static class ListEventsFixedSizeCollection ListEventsPage, ListEventsFixedSizeCollection> { - private ListEventsFixedSizeCollection(List pages, int collectionSize) { + private ListEventsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4290,7 +4298,7 @@ private static ListEventsFixedSizeCollection createEmptyCollection() { @Override protected ListEventsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEventsFixedSizeCollection(pages, collectionSize); } } @@ -4321,8 +4329,8 @@ public static class ListSeriesPage extends AbstractPage { private ListSeriesPage( - PageContext context, - ListSeriesResponse response) { + @Nullable PageContext context, + @Nullable ListSeriesResponse response) { super(context, response); } @@ -4332,14 +4340,14 @@ private static ListSeriesPage createEmptyPage() { @Override protected ListSeriesPage createPage( - PageContext context, - ListSeriesResponse response) { + @Nullable PageContext context, + @Nullable ListSeriesResponse response) { return new ListSeriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4353,7 +4361,8 @@ public static class ListSeriesFixedSizeCollection ListSeriesPage, ListSeriesFixedSizeCollection> { - private ListSeriesFixedSizeCollection(List pages, int collectionSize) { + private ListSeriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4363,7 +4372,7 @@ private static ListSeriesFixedSizeCollection createEmptyCollection() { @Override protected ListSeriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSeriesFixedSizeCollection(pages, collectionSize); } } @@ -4397,8 +4406,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4408,14 +4417,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4429,7 +4438,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4439,7 +4449,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceSettings.java index ae1714036ed3..8d6bc97bf43a 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/StreamsServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -399,7 +400,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); } @@ -419,7 +420,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StreamsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java index e8c0776c5fdd..6095ba678e52 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java @@ -44,6 +44,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. /** @@ -1306,7 +1307,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WarehouseClient implements BackgroundResource { - private final WarehouseSettings settings; + private final @Nullable WarehouseSettings settings; private final WarehouseStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1352,7 +1353,7 @@ protected WarehouseClient(WarehouseStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WarehouseSettings getSettings() { + public final @Nullable WarehouseSettings getSettings() { return settings; } @@ -1407,7 +1408,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * first character must be a letter, the last could be a letter or a number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Asset createAsset(CorpusName parent, Asset asset, String assetId) { + public final Asset createAsset(@Nullable CorpusName parent, Asset asset, String assetId) { CreateAssetRequest request = CreateAssetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1626,7 +1627,7 @@ public final UnaryCallable updateAssetCallable() { * projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Asset getAsset(AssetName name) { + public final Asset getAsset(@Nullable AssetName name) { GetAssetRequest request = GetAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAsset(request); @@ -1741,7 +1742,7 @@ public final UnaryCallable getAssetCallable() { * `projects/{project_number}/locations/{location}/corpora/{corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(CorpusName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable CorpusName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -1902,7 +1903,8 @@ public final UnaryCallable listAssetsCall * `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteAssetAsync(AssetName name) { + public final OperationFuture deleteAssetAsync( + @Nullable AssetName name) { DeleteAssetRequest request = DeleteAssetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteAssetAsync(request); @@ -2496,7 +2498,7 @@ public final UnaryCallable removeIndexAssetC * `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ViewIndexedAssetsPagedResponse viewIndexedAssets(IndexName index) { + public final ViewIndexedAssetsPagedResponse viewIndexedAssets(@Nullable IndexName index) { ViewIndexedAssetsRequest request = ViewIndexedAssetsRequest.newBuilder() .setIndex(index == null ? null : index.toString()) @@ -2677,7 +2679,7 @@ public final ViewIndexedAssetsPagedResponse viewIndexedAssets(ViewIndexedAssetsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexAsync( - CorpusName parent, Index index, String indexId) { + @Nullable CorpusName parent, Index index, String indexId) { CreateIndexRequest request = CreateIndexRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2967,7 +2969,7 @@ public final UnaryCallable updateIndexCallable() * `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Index getIndex(IndexName name) { + public final Index getIndex(@Nullable IndexName name) { GetIndexRequest request = GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndex(request); @@ -3082,7 +3084,7 @@ public final UnaryCallable getIndexCallable() { * `projects/{project_number}/locations/{location}/corpora/{corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexesPagedResponse listIndexes(CorpusName parent) { + public final ListIndexesPagedResponse listIndexes(@Nullable CorpusName parent) { ListIndexesRequest request = ListIndexesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3244,7 +3246,8 @@ public final UnaryCallable listIndexesC * `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteIndexAsync(IndexName name) { + public final OperationFuture deleteIndexAsync( + @Nullable IndexName name) { DeleteIndexRequest request = DeleteIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteIndexAsync(request); @@ -3509,7 +3512,7 @@ public final UnaryCallable createCorpusCallable( * @param name Required. The resource name of the corpus to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Corpus getCorpus(CorpusName name) { + public final Corpus getCorpus(@Nullable CorpusName name) { GetCorpusRequest request = GetCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCorpus(request); @@ -3836,7 +3839,7 @@ public final UnaryCallable listCorporaC * @param name Required. The resource name of the corpus to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteCorpus(CorpusName name) { + public final void deleteCorpus(@Nullable CorpusName name) { DeleteCorpusRequest request = DeleteCorpusRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteCorpus(request); @@ -4032,7 +4035,7 @@ public final UnaryCallable analyzeCorpusCallabl * @param dataSchema Required. The data schema to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSchema createDataSchema(CorpusName parent, DataSchema dataSchema) { + public final DataSchema createDataSchema(@Nullable CorpusName parent, DataSchema dataSchema) { CreateDataSchemaRequest request = CreateDataSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4242,7 +4245,7 @@ public final UnaryCallable updateDataSchema * `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/dataSchemas/{data_schema_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSchema getDataSchema(DataSchemaName name) { + public final DataSchema getDataSchema(@Nullable DataSchemaName name) { GetDataSchemaRequest request = GetDataSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDataSchema(request); @@ -4359,7 +4362,7 @@ public final UnaryCallable getDataSchemaCallab * `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/dataSchemas/{data_schema_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataSchema(DataSchemaName name) { + public final void deleteDataSchema(@Nullable DataSchemaName name) { DeleteDataSchemaRequest request = DeleteDataSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteDataSchema(request); @@ -4477,7 +4480,7 @@ public final UnaryCallable deleteDataSchemaCalla * `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataSchemasPagedResponse listDataSchemas(CorpusName parent) { + public final ListDataSchemasPagedResponse listDataSchemas(@Nullable CorpusName parent) { ListDataSchemasRequest request = ListDataSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4649,7 +4652,7 @@ public final ListDataSchemasPagedResponse listDataSchemas(ListDataSchemasRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Annotation createAnnotation( - AssetName parent, Annotation annotation, String annotationId) { + @Nullable AssetName parent, Annotation annotation, String annotationId) { CreateAnnotationRequest request = CreateAnnotationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4786,7 +4789,7 @@ public final UnaryCallable createAnnotation * `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Annotation getAnnotation(AnnotationName name) { + public final Annotation getAnnotation(@Nullable AnnotationName name) { GetAnnotationRequest request = GetAnnotationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getAnnotation(request); @@ -4906,7 +4909,7 @@ public final UnaryCallable getAnnotationCallab * `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAnnotationsPagedResponse listAnnotations(AssetName parent) { + public final ListAnnotationsPagedResponse listAnnotations(@Nullable AssetName parent) { ListAnnotationsRequest request = ListAnnotationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5169,7 +5172,7 @@ public final UnaryCallable updateAnnotation * `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAnnotation(AnnotationName name) { + public final void deleteAnnotation(@Nullable AnnotationName name) { DeleteAnnotationRequest request = DeleteAnnotationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteAnnotation(request); @@ -5552,7 +5555,7 @@ public final UnaryCallable importAssetsCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchConfig createSearchConfig( - CorpusName parent, SearchConfig searchConfig, String searchConfigId) { + @Nullable CorpusName parent, SearchConfig searchConfig, String searchConfigId) { CreateSearchConfigRequest request = CreateSearchConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5828,7 +5831,7 @@ public final UnaryCallable updateSearch * `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchConfig getSearchConfig(SearchConfigName name) { + public final SearchConfig getSearchConfig(@Nullable SearchConfigName name) { GetSearchConfigRequest request = GetSearchConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSearchConfig(request); @@ -5951,7 +5954,7 @@ public final UnaryCallable getSearchConfig * `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSearchConfig(SearchConfigName name) { + public final void deleteSearchConfig(@Nullable SearchConfigName name) { DeleteSearchConfigRequest request = DeleteSearchConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6083,7 +6086,7 @@ public final UnaryCallable deleteSearchConfigC * Format: `projects/{project_number}/locations/{location}/corpora/{corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSearchConfigsPagedResponse listSearchConfigs(CorpusName parent) { + public final ListSearchConfigsPagedResponse listSearchConfigs(@Nullable CorpusName parent) { ListSearchConfigsRequest request = ListSearchConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6255,7 +6258,7 @@ public final ListSearchConfigsPagedResponse listSearchConfigs(ListSearchConfigsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchHypernym createSearchHypernym( - CorpusName parent, SearchHypernym searchHypernym, String searchHypernymId) { + @Nullable CorpusName parent, SearchHypernym searchHypernym, String searchHypernymId) { CreateSearchHypernymRequest request = CreateSearchHypernymRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6483,7 +6486,7 @@ public final SearchHypernym updateSearchHypernym(UpdateSearchHypernymRequest req * `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchHypernym getSearchHypernym(SearchHypernymName name) { + public final SearchHypernym getSearchHypernym(@Nullable SearchHypernymName name) { GetSearchHypernymRequest request = GetSearchHypernymRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6605,7 +6608,7 @@ public final UnaryCallable getSearchHy * `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSearchHypernym(SearchHypernymName name) { + public final void deleteSearchHypernym(@Nullable SearchHypernymName name) { DeleteSearchHypernymRequest request = DeleteSearchHypernymRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6728,7 +6731,7 @@ public final UnaryCallable deleteSearchHyper * `projects/{project_number}/locations/{location}/corpora/{corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSearchHypernymsPagedResponse listSearchHypernyms(CorpusName parent) { + public final ListSearchHypernymsPagedResponse listSearchHypernyms(@Nullable CorpusName parent) { ListSearchHypernymsRequest request = ListSearchHypernymsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7136,7 +7139,7 @@ public final SearchIndexEndpointPagedResponse searchIndexEndpoint( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createIndexEndpointAsync( - LocationName parent, IndexEndpoint indexEndpoint, String indexEndpointId) { + @Nullable LocationName parent, IndexEndpoint indexEndpoint, String indexEndpointId) { CreateIndexEndpointRequest request = CreateIndexEndpointRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7301,7 +7304,7 @@ public final UnaryCallable createIndexEnd * @param name Required. Name of the IndexEndpoint resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) { + public final IndexEndpoint getIndexEndpoint(@Nullable IndexEndpointName name) { GetIndexEndpointRequest request = GetIndexEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getIndexEndpoint(request); @@ -7414,7 +7417,7 @@ public final UnaryCallable getIndexEndpo * @param parent Required. Format: `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName parent) { + public final ListIndexEndpointsPagedResponse listIndexEndpoints(@Nullable LocationName parent) { ListIndexEndpointsRequest request = ListIndexEndpointsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7710,7 +7713,7 @@ public final UnaryCallable updateIndexEnd * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteIndexEndpointAsync( - IndexEndpointName name) { + @Nullable IndexEndpointName name) { DeleteIndexEndpointRequest request = DeleteIndexEndpointRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8046,7 +8049,7 @@ public final UnaryCallable undeployIndexCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCollectionAsync( - CorpusName parent, Collection collection, String collectionId) { + @Nullable CorpusName parent, Collection collection, String collectionId) { CreateCollectionRequest request = CreateCollectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8213,7 +8216,7 @@ public final UnaryCallable createCollectionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteCollectionAsync( - CollectionName name) { + @Nullable CollectionName name) { DeleteCollectionRequest request = DeleteCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteCollectionAsync(request); @@ -8362,7 +8365,7 @@ public final UnaryCallable deleteCollectionC * `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Collection getCollection(CollectionName name) { + public final Collection getCollection(@Nullable CollectionName name) { GetCollectionRequest request = GetCollectionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCollection(request); @@ -8575,7 +8578,7 @@ public final UnaryCallable updateCollection * `projects/{project_number}/locations/{location}/corpora/{corpus}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCollectionsPagedResponse listCollections(CorpusName parent) { + public final ListCollectionsPagedResponse listCollections(@Nullable CorpusName parent) { ListCollectionsRequest request = ListCollectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8909,7 +8912,8 @@ public final RemoveCollectionItemResponse removeCollectionItem( * `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ViewCollectionItemsPagedResponse viewCollectionItems(CollectionName collection) { + public final ViewCollectionItemsPagedResponse viewCollectionItems( + @Nullable CollectionName collection) { ViewCollectionItemsRequest request = ViewCollectionItemsRequest.newBuilder() .setCollection(collection == null ? null : collection.toString()) @@ -9271,8 +9275,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -9282,14 +9286,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9303,7 +9307,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9313,7 +9318,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -9350,8 +9355,9 @@ public static class ViewIndexedAssetsPage ViewIndexedAssetsPage> { private ViewIndexedAssetsPage( - PageContext context, - ViewIndexedAssetsResponse response) { + @Nullable PageContext + context, + @Nullable ViewIndexedAssetsResponse response) { super(context, response); } @@ -9361,14 +9367,16 @@ private static ViewIndexedAssetsPage createEmptyPage() { @Override protected ViewIndexedAssetsPage createPage( - PageContext context, - ViewIndexedAssetsResponse response) { + @Nullable PageContext + context, + @Nullable ViewIndexedAssetsResponse response) { return new ViewIndexedAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9383,7 +9391,7 @@ public static class ViewIndexedAssetsFixedSizeCollection ViewIndexedAssetsFixedSizeCollection> { private ViewIndexedAssetsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9393,7 +9401,7 @@ private static ViewIndexedAssetsFixedSizeCollection createEmptyCollection() { @Override protected ViewIndexedAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ViewIndexedAssetsFixedSizeCollection(pages, collectionSize); } } @@ -9424,8 +9432,8 @@ public static class ListIndexesPage extends AbstractPage { private ListIndexesPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { super(context, response); } @@ -9435,14 +9443,14 @@ private static ListIndexesPage createEmptyPage() { @Override protected ListIndexesPage createPage( - PageContext context, - ListIndexesResponse response) { + @Nullable PageContext context, + @Nullable ListIndexesResponse response) { return new ListIndexesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9456,7 +9464,8 @@ public static class ListIndexesFixedSizeCollection ListIndexesPage, ListIndexesFixedSizeCollection> { - private ListIndexesFixedSizeCollection(List pages, int collectionSize) { + private ListIndexesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9466,7 +9475,7 @@ private static ListIndexesFixedSizeCollection createEmptyCollection() { @Override protected ListIndexesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexesFixedSizeCollection(pages, collectionSize); } } @@ -9497,8 +9506,8 @@ public static class ListCorporaPage extends AbstractPage { private ListCorporaPage( - PageContext context, - ListCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListCorporaResponse response) { super(context, response); } @@ -9508,14 +9517,14 @@ private static ListCorporaPage createEmptyPage() { @Override protected ListCorporaPage createPage( - PageContext context, - ListCorporaResponse response) { + @Nullable PageContext context, + @Nullable ListCorporaResponse response) { return new ListCorporaPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9529,7 +9538,8 @@ public static class ListCorporaFixedSizeCollection ListCorporaPage, ListCorporaFixedSizeCollection> { - private ListCorporaFixedSizeCollection(List pages, int collectionSize) { + private ListCorporaFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9539,7 +9549,7 @@ private static ListCorporaFixedSizeCollection createEmptyCollection() { @Override protected ListCorporaFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCorporaFixedSizeCollection(pages, collectionSize); } } @@ -9573,8 +9583,8 @@ public static class ListDataSchemasPage ListDataSchemasRequest, ListDataSchemasResponse, DataSchema, ListDataSchemasPage> { private ListDataSchemasPage( - PageContext context, - ListDataSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListDataSchemasResponse response) { super(context, response); } @@ -9584,14 +9594,14 @@ private static ListDataSchemasPage createEmptyPage() { @Override protected ListDataSchemasPage createPage( - PageContext context, - ListDataSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListDataSchemasResponse response) { return new ListDataSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9606,7 +9616,7 @@ public static class ListDataSchemasFixedSizeCollection ListDataSchemasFixedSizeCollection> { private ListDataSchemasFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9616,7 +9626,7 @@ private static ListDataSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListDataSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDataSchemasFixedSizeCollection(pages, collectionSize); } } @@ -9650,8 +9660,8 @@ public static class ListAnnotationsPage ListAnnotationsRequest, ListAnnotationsResponse, Annotation, ListAnnotationsPage> { private ListAnnotationsPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { super(context, response); } @@ -9661,14 +9671,14 @@ private static ListAnnotationsPage createEmptyPage() { @Override protected ListAnnotationsPage createPage( - PageContext context, - ListAnnotationsResponse response) { + @Nullable PageContext context, + @Nullable ListAnnotationsResponse response) { return new ListAnnotationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9683,7 +9693,7 @@ public static class ListAnnotationsFixedSizeCollection ListAnnotationsFixedSizeCollection> { private ListAnnotationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9693,7 +9703,7 @@ private static ListAnnotationsFixedSizeCollection createEmptyCollection() { @Override protected ListAnnotationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAnnotationsFixedSizeCollection(pages, collectionSize); } } @@ -9730,8 +9740,9 @@ public static class ListSearchConfigsPage ListSearchConfigsPage> { private ListSearchConfigsPage( - PageContext context, - ListSearchConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListSearchConfigsResponse response) { super(context, response); } @@ -9741,14 +9752,16 @@ private static ListSearchConfigsPage createEmptyPage() { @Override protected ListSearchConfigsPage createPage( - PageContext context, - ListSearchConfigsResponse response) { + @Nullable PageContext + context, + @Nullable ListSearchConfigsResponse response) { return new ListSearchConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9763,7 +9776,7 @@ public static class ListSearchConfigsFixedSizeCollection ListSearchConfigsFixedSizeCollection> { private ListSearchConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9773,7 +9786,7 @@ private static ListSearchConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListSearchConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSearchConfigsFixedSizeCollection(pages, collectionSize); } } @@ -9811,9 +9824,10 @@ public static class ListSearchHypernymsPage ListSearchHypernymsPage> { private ListSearchHypernymsPage( - PageContext + @Nullable + PageContext context, - ListSearchHypernymsResponse response) { + @Nullable ListSearchHypernymsResponse response) { super(context, response); } @@ -9823,15 +9837,17 @@ private static ListSearchHypernymsPage createEmptyPage() { @Override protected ListSearchHypernymsPage createPage( - PageContext + @Nullable + PageContext context, - ListSearchHypernymsResponse response) { + @Nullable ListSearchHypernymsResponse response) { return new ListSearchHypernymsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -9847,7 +9863,7 @@ public static class ListSearchHypernymsFixedSizeCollection ListSearchHypernymsFixedSizeCollection> { private ListSearchHypernymsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9857,7 +9873,7 @@ private static ListSearchHypernymsFixedSizeCollection createEmptyCollection() { @Override protected ListSearchHypernymsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSearchHypernymsFixedSizeCollection(pages, collectionSize); } } @@ -9891,8 +9907,8 @@ public static class SearchAssetsPage SearchAssetsRequest, SearchAssetsResponse, SearchResultItem, SearchAssetsPage> { private SearchAssetsPage( - PageContext context, - SearchAssetsResponse response) { + @Nullable PageContext context, + @Nullable SearchAssetsResponse response) { super(context, response); } @@ -9902,14 +9918,14 @@ private static SearchAssetsPage createEmptyPage() { @Override protected SearchAssetsPage createPage( - PageContext context, - SearchAssetsResponse response) { + @Nullable PageContext context, + @Nullable SearchAssetsResponse response) { return new SearchAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -9923,7 +9939,8 @@ public static class SearchAssetsFixedSizeCollection SearchAssetsPage, SearchAssetsFixedSizeCollection> { - private SearchAssetsFixedSizeCollection(List pages, int collectionSize) { + private SearchAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -9933,7 +9950,7 @@ private static SearchAssetsFixedSizeCollection createEmptyCollection() { @Override protected SearchAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAssetsFixedSizeCollection(pages, collectionSize); } } @@ -9971,9 +9988,10 @@ public static class SearchIndexEndpointPage SearchIndexEndpointPage> { private SearchIndexEndpointPage( - PageContext + @Nullable + PageContext context, - SearchIndexEndpointResponse response) { + @Nullable SearchIndexEndpointResponse response) { super(context, response); } @@ -9983,15 +10001,17 @@ private static SearchIndexEndpointPage createEmptyPage() { @Override protected SearchIndexEndpointPage createPage( - PageContext + @Nullable + PageContext context, - SearchIndexEndpointResponse response) { + @Nullable SearchIndexEndpointResponse response) { return new SearchIndexEndpointPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10007,7 +10027,7 @@ public static class SearchIndexEndpointFixedSizeCollection SearchIndexEndpointFixedSizeCollection> { private SearchIndexEndpointFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10017,7 +10037,7 @@ private static SearchIndexEndpointFixedSizeCollection createEmptyCollection() { @Override protected SearchIndexEndpointFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchIndexEndpointFixedSizeCollection(pages, collectionSize); } } @@ -10054,8 +10074,9 @@ public static class ListIndexEndpointsPage ListIndexEndpointsPage> { private ListIndexEndpointsPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { super(context, response); } @@ -10065,14 +10086,16 @@ private static ListIndexEndpointsPage createEmptyPage() { @Override protected ListIndexEndpointsPage createPage( - PageContext context, - ListIndexEndpointsResponse response) { + @Nullable PageContext + context, + @Nullable ListIndexEndpointsResponse response) { return new ListIndexEndpointsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10087,7 +10110,7 @@ public static class ListIndexEndpointsFixedSizeCollection ListIndexEndpointsFixedSizeCollection> { private ListIndexEndpointsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10097,7 +10120,7 @@ private static ListIndexEndpointsFixedSizeCollection createEmptyCollection() { @Override protected ListIndexEndpointsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); } } @@ -10131,8 +10154,8 @@ public static class ListCollectionsPage ListCollectionsRequest, ListCollectionsResponse, Collection, ListCollectionsPage> { private ListCollectionsPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { super(context, response); } @@ -10142,14 +10165,14 @@ private static ListCollectionsPage createEmptyPage() { @Override protected ListCollectionsPage createPage( - PageContext context, - ListCollectionsResponse response) { + @Nullable PageContext context, + @Nullable ListCollectionsResponse response) { return new ListCollectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10164,7 +10187,7 @@ public static class ListCollectionsFixedSizeCollection ListCollectionsFixedSizeCollection> { private ListCollectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10174,7 +10197,7 @@ private static ListCollectionsFixedSizeCollection createEmptyCollection() { @Override protected ListCollectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCollectionsFixedSizeCollection(pages, collectionSize); } } @@ -10212,9 +10235,10 @@ public static class ViewCollectionItemsPage ViewCollectionItemsPage> { private ViewCollectionItemsPage( - PageContext + @Nullable + PageContext context, - ViewCollectionItemsResponse response) { + @Nullable ViewCollectionItemsResponse response) { super(context, response); } @@ -10224,15 +10248,17 @@ private static ViewCollectionItemsPage createEmptyPage() { @Override protected ViewCollectionItemsPage createPage( - PageContext + @Nullable + PageContext context, - ViewCollectionItemsResponse response) { + @Nullable ViewCollectionItemsResponse response) { return new ViewCollectionItemsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -10248,7 +10274,7 @@ public static class ViewCollectionItemsFixedSizeCollection ViewCollectionItemsFixedSizeCollection> { private ViewCollectionItemsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10258,7 +10284,7 @@ private static ViewCollectionItemsFixedSizeCollection createEmptyCollection() { @Override protected ViewCollectionItemsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ViewCollectionItemsFixedSizeCollection(pages, collectionSize); } } @@ -10292,8 +10318,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -10303,14 +10329,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10324,7 +10350,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10334,7 +10361,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseSettings.java index f19fc924a50c..eb3561296c59 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -655,7 +656,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); } @@ -675,7 +676,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WarehouseStubSettings.newBuilder(clientContext)); } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStub.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStub.java index 7c1e10d7ee64..a2bb4c9ef27b 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStub.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStub.java @@ -77,6 +77,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,11 +89,12 @@ @Generated("by gapic-generator-java") public abstract class AppPlatformStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java index 310d658bea89..aa2881cf6a7a 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/AppPlatformStubSettings.java @@ -111,6 +111,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -916,7 +917,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); } @@ -1136,7 +1137,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listApplicationsSettings = PagedCallSettings.newBuilder(LIST_APPLICATIONS_PAGE_STR_FACT); diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java index 164f0d02ea89..55558ee070f1 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/HealthCheckServiceStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -291,7 +292,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); } @@ -351,7 +352,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); healthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStub.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStub.java index d7631704c381..ca1f09a49c59 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStub.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStub.java @@ -62,6 +62,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -73,11 +74,12 @@ @Generated("by gapic-generator-java") public abstract class LiveVideoAnalyticsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java index 0666c1970310..d81795a4b7d5 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/LiveVideoAnalyticsStubSettings.java @@ -96,6 +96,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -764,7 +765,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); } @@ -947,7 +948,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPublicOperatorsSettings = diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java index 6e1371291ef1..e57eb11deb48 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamingServiceStubSettings.java @@ -69,6 +69,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,7 +335,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); } @@ -406,7 +407,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); sendPacketsSettings = StreamingCallSettings.newBuilder(); diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStub.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStub.java index 161c9bca4fa4..69deb1b29f35 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStub.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStub.java @@ -69,6 +69,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,11 +81,12 @@ @Generated("by gapic-generator-java") public abstract class StreamsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java index b90c70c86404..9a9ffbd9ddf5 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/StreamsServiceStubSettings.java @@ -103,6 +103,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -821,7 +822,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); } @@ -981,7 +982,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStub.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStub.java index 465b2e32fe81..84afa4d4b13e 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStub.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStub.java @@ -161,6 +161,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,11 +173,12 @@ @Generated("by gapic-generator-java") public abstract class WarehouseStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java index 44ca62970488..c40ee4d8becb 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/WarehouseStubSettings.java @@ -198,6 +198,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1763,7 +1764,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); } @@ -2101,7 +2102,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createAssetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnalysisName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnalysisName.java index 67fbd23f53f6..66263a1b70f4 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnalysisName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnalysisName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static AnalysisName parse(String formattedString) { + public static @Nullable AnalysisName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnalysisName> values) { List list = new ArrayList<>(values.size()); for (AnalysisName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnnotationName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnnotationName.java index f54a1658e9ef..c631efe7e37a 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnnotationName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AnnotationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static AnnotationName parse(String formattedString) { + public static @Nullable AnnotationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AnnotationName> values) { List list = new ArrayList<>(values.size()); for (AnnotationName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ApplicationName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ApplicationName.java index 1fe75cdf24ff..8930f3bdc28c 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ApplicationName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ApplicationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String application) .toString(); } - public static ApplicationName parse(String formattedString) { + public static @Nullable ApplicationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ApplicationName> values) { List list = new ArrayList<>(values.size()); for (ApplicationName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AssetName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AssetName.java index 86b09e6ddd1e..3dbf6a7e2527 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AssetName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AssetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String projectNumber, String location, String corpus .toString(); } - public static AssetName parse(String formattedString) { + public static @Nullable AssetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AssetName> values) { List list = new ArrayList<>(values.size()); for (AssetName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ClusterName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ClusterName.java index 7282b135487d..348d713e06e5 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ClusterName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String cluster) { .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CollectionName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CollectionName.java index a1b64f271b6b..4e003b37490a 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CollectionName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CollectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static CollectionName parse(String formattedString) { + public static @Nullable CollectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CollectionName> values) { List list = new ArrayList<>(values.size()); for (CollectionName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CorpusName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CorpusName.java index 3169064b2f5b..b38dc1eecb7f 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CorpusName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CorpusName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String projectNumber, String location, String corpus .toString(); } - public static CorpusName parse(String formattedString) { + public static @Nullable CorpusName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CorpusName> values) { List list = new ArrayList<>(values.size()); for (CorpusName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaName.java index 7b63562bdb09..d2295fddf06a 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DataSchemaName parse(String formattedString) { + public static @Nullable DataSchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DataSchemaName> values) { List list = new ArrayList<>(values.size()); for (DataSchemaName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DraftName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DraftName.java index be1949d8d225..575917ed4b0b 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DraftName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DraftName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String application, .toString(); } - public static DraftName parse(String formattedString) { + public static @Nullable DraftName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DraftName> values) { List list = new ArrayList<>(values.size()); for (DraftName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/EventName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/EventName.java index e32c870f1a42..2bc5516a42f9 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/EventName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/EventName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static EventName parse(String formattedString) { + public static @Nullable EventName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EventName> values) { List list = new ArrayList<>(values.size()); for (EventName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexEndpointName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexEndpointName.java index dfddac358b7c..ef9ff02ceb9b 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexEndpointName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexEndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String indexEndpoin .toString(); } - public static IndexEndpointName parse(String formattedString) { + public static @Nullable IndexEndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexEndpointName> values) { List list = new ArrayList<>(values.size()); for (IndexEndpointName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexName.java index 986904a48986..9cdb3cd97506 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/IndexName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String projectNumber, String location, String corpus .toString(); } - public static IndexName parse(String formattedString) { + public static @Nullable IndexName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable IndexName> values) { List list = new ArrayList<>(values.size()); for (IndexName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/InstanceName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/InstanceName.java index e33a11901b83..41a061288e7e 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/InstanceName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LocationName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LocationName.java index 7b622a32c9e9..d6d9bb8ffb5a 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LocationName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/OperatorName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/OperatorName.java index 0158856a5130..5a562718eab4 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/OperatorName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/OperatorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String operator) { .toString(); } - public static OperatorName parse(String formattedString) { + public static @Nullable OperatorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OperatorName> values) { List list = new ArrayList<>(values.size()); for (OperatorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessName.java index f20703ec5fe0..d2a79a913e2b 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static ProcessName parse(String formattedString) { + public static @Nullable ProcessName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessName> values) { List list = new ArrayList<>(values.size()); for (ProcessName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessorName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessorName.java index 29ba86f5f4c6..e569155119b6 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessorName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProcessorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String processor) { .toString(); } - public static ProcessorName parse(String formattedString) { + public static @Nullable ProcessorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProcessorName> values) { List list = new ArrayList<>(values.size()); for (ProcessorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchConfigName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchConfigName.java index 1ac942479590..cc0a4e82c3bf 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchConfigName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SearchConfigName parse(String formattedString) { + public static @Nullable SearchConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SearchConfigName> values) { List list = new ArrayList<>(values.size()); for (SearchConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchHypernymName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchHypernymName.java index 6185f59c1c8f..037eb0b3f4ef 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchHypernymName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchHypernymName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static SearchHypernymName parse(String formattedString) { + public static @Nullable SearchHypernymName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SearchHypernymName> values) { List list = new ArrayList<>(values.size()); for (SearchHypernymName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SeriesName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SeriesName.java index 85b7e3afb661..29cda9329880 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SeriesName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SeriesName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static SeriesName parse(String formattedString) { + public static @Nullable SeriesName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SeriesName> values) { List list = new ArrayList<>(values.size()); for (SeriesName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamName.java b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamName.java index a368e28fe1ad..9227af222faa 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamName.java +++ b/java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/StreamName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String cluster, Str .toString(); } - public static StreamName parse(String formattedString) { + public static @Nullable StreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable StreamName> values) { List list = new ArrayList<>(values.size()); for (StreamName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java index 616ef982f463..e2997fa8fed5 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationClient.java @@ -43,6 +43,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. /** @@ -1361,7 +1362,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VmMigrationClient implements BackgroundResource { - private final VmMigrationSettings settings; + private final @Nullable VmMigrationSettings settings; private final VmMigrationStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1408,7 +1409,7 @@ protected VmMigrationClient(VmMigrationStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VmMigrationSettings getSettings() { + public final @Nullable VmMigrationSettings getSettings() { return settings; } @@ -1456,7 +1457,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. The parent, which owns this collection of sources. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSourcesPagedResponse listSources(LocationName parent) { + public final ListSourcesPagedResponse listSources(@Nullable LocationName parent) { ListSourcesRequest request = ListSourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1621,7 +1622,7 @@ public final UnaryCallable listSourcesC * @param name Required. The Source name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { + public final Source getSource(@Nullable SourceName name) { GetSourceRequest request = GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSource(request); @@ -1734,7 +1735,7 @@ public final UnaryCallable getSourceCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createSourceAsync( - LocationName parent, Source source, String sourceId) { + @Nullable LocationName parent, Source source, String sourceId) { CreateSourceRequest request = CreateSourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2019,7 +2020,8 @@ public final UnaryCallable updateSourceCallable( * @param name Required. The Source name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteSourceAsync(SourceName name) { + public final OperationFuture deleteSourceAsync( + @Nullable SourceName name) { DeleteSourceRequest request = DeleteSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteSourceAsync(request); @@ -2163,7 +2165,7 @@ public final UnaryCallable deleteSourceCallable( * @param source Required. The name of the Source. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FetchInventoryResponse fetchInventory(SourceName source) { + public final FetchInventoryResponse fetchInventory(@Nullable SourceName source) { FetchInventoryRequest request = FetchInventoryRequest.newBuilder() .setSource(source == null ? null : source.toString()) @@ -2296,7 +2298,7 @@ public final FetchInventoryResponse fetchInventory(FetchInventoryRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchStorageInventoryPagedResponse fetchStorageInventory( - SourceName source, FetchStorageInventoryRequest.StorageType type) { + @Nullable SourceName source, FetchStorageInventoryRequest.StorageType type) { FetchStorageInventoryRequest request = FetchStorageInventoryRequest.newBuilder() .setSource(source == null ? null : source.toString()) @@ -2485,7 +2487,8 @@ public final FetchStorageInventoryPagedResponse fetchStorageInventory( * @param parent Required. The Utilization Reports parent. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUtilizationReportsPagedResponse listUtilizationReports(SourceName parent) { + public final ListUtilizationReportsPagedResponse listUtilizationReports( + @Nullable SourceName parent) { ListUtilizationReportsRequest request = ListUtilizationReportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2661,7 +2664,7 @@ public final ListUtilizationReportsPagedResponse listUtilizationReports( * @param name Required. The Utilization Report name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UtilizationReport getUtilizationReport(UtilizationReportName name) { + public final UtilizationReport getUtilizationReport(@Nullable UtilizationReportName name) { GetUtilizationReportRequest request = GetUtilizationReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2795,7 +2798,9 @@ public final UtilizationReport getUtilizationReport(GetUtilizationReportRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createUtilizationReportAsync( - SourceName parent, UtilizationReport utilizationReport, String utilizationReportId) { + @Nullable SourceName parent, + UtilizationReport utilizationReport, + String utilizationReportId) { CreateUtilizationReportRequest request = CreateUtilizationReportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2967,7 +2972,7 @@ public final OperationFuture createUtiliza * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteUtilizationReportAsync( - UtilizationReportName name) { + @Nullable UtilizationReportName name) { DeleteUtilizationReportRequest request = DeleteUtilizationReportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3127,7 +3132,8 @@ public final OperationFuture deleteUtilizationReportAs * @param parent Required. The parent, which owns this collection of connectors. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDatacenterConnectorsPagedResponse listDatacenterConnectors(SourceName parent) { + public final ListDatacenterConnectorsPagedResponse listDatacenterConnectors( + @Nullable SourceName parent) { ListDatacenterConnectorsRequest request = ListDatacenterConnectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3301,7 +3307,7 @@ public final ListDatacenterConnectorsPagedResponse listDatacenterConnectors( * @param name Required. The name of the DatacenterConnector. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DatacenterConnector getDatacenterConnector(DatacenterConnectorName name) { + public final DatacenterConnector getDatacenterConnector(@Nullable DatacenterConnectorName name) { GetDatacenterConnectorRequest request = GetDatacenterConnectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3434,7 +3440,7 @@ public final DatacenterConnector getDatacenterConnector(GetDatacenterConnectorRe */ public final OperationFuture createDatacenterConnectorAsync( - SourceName parent, + @Nullable SourceName parent, DatacenterConnector datacenterConnector, String datacenterConnectorId) { CreateDatacenterConnectorRequest request = @@ -3610,7 +3616,7 @@ public final DatacenterConnector getDatacenterConnector(GetDatacenterConnectorRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDatacenterConnectorAsync( - DatacenterConnectorName name) { + @Nullable DatacenterConnectorName name) { DeleteDatacenterConnectorRequest request = DeleteDatacenterConnectorRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3874,7 +3880,7 @@ public final UnaryCallable upgradeApplianceC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createMigratingVmAsync( - SourceName parent, MigratingVm migratingVm, String migratingVmId) { + @Nullable SourceName parent, MigratingVm migratingVm, String migratingVmId) { CreateMigratingVmRequest request = CreateMigratingVmRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4039,7 +4045,7 @@ public final UnaryCallable createMigratingV * @param parent Required. The parent, which owns this collection of MigratingVms. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMigratingVmsPagedResponse listMigratingVms(SourceName parent) { + public final ListMigratingVmsPagedResponse listMigratingVms(@Nullable SourceName parent) { ListMigratingVmsRequest request = ListMigratingVmsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4212,7 +4218,7 @@ public final ListMigratingVmsPagedResponse listMigratingVms(ListMigratingVmsRequ * @param name Required. The name of the MigratingVm. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MigratingVm getMigratingVm(MigratingVmName name) { + public final MigratingVm getMigratingVm(@Nullable MigratingVmName name) { GetMigratingVmRequest request = GetMigratingVmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getMigratingVm(request); @@ -4459,7 +4465,7 @@ public final UnaryCallable updateMigratingV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMigratingVmAsync( - MigratingVmName name) { + @Nullable MigratingVmName name) { DeleteMigratingVmRequest request = DeleteMigratingVmRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4610,7 +4616,7 @@ public final UnaryCallable deleteMigratingV * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startMigrationAsync( - MigratingVmName migratingVm) { + @Nullable MigratingVmName migratingVm) { StartMigrationRequest request = StartMigrationRequest.newBuilder() .setMigratingVm(migratingVm == null ? null : migratingVm.toString()) @@ -4961,7 +4967,7 @@ public final UnaryCallable pauseMigrationCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture finalizeMigrationAsync( - MigratingVmName migratingVm) { + @Nullable MigratingVmName migratingVm) { FinalizeMigrationRequest request = FinalizeMigrationRequest.newBuilder() .setMigratingVm(migratingVm == null ? null : migratingVm.toString()) @@ -5214,7 +5220,7 @@ public final UnaryCallable extendMigrationCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCloneJobAsync( - MigratingVmName parent, CloneJob cloneJob, String cloneJobId) { + @Nullable MigratingVmName parent, CloneJob cloneJob, String cloneJobId) { CreateCloneJobRequest request = CreateCloneJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5384,7 +5390,7 @@ public final UnaryCallable createCloneJobCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cancelCloneJobAsync( - CloneJobName name) { + @Nullable CloneJobName name) { CancelCloneJobRequest request = CancelCloneJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelCloneJobAsync(request); @@ -5537,7 +5543,7 @@ public final UnaryCallable cancelCloneJobCalla * @param parent Required. The parent, which owns this collection of source VMs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCloneJobsPagedResponse listCloneJobs(MigratingVmName parent) { + public final ListCloneJobsPagedResponse listCloneJobs(@Nullable MigratingVmName parent) { ListCloneJobsRequest request = ListCloneJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5711,7 +5717,7 @@ public final UnaryCallable listClon * @param name Required. The name of the CloneJob. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CloneJob getCloneJob(CloneJobName name) { + public final CloneJob getCloneJob(@Nullable CloneJobName name) { GetCloneJobRequest request = GetCloneJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCloneJob(request); @@ -5835,7 +5841,7 @@ public final UnaryCallable getCloneJobCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createCutoverJobAsync( - MigratingVmName parent, CutoverJob cutoverJob, String cutoverJobId) { + @Nullable MigratingVmName parent, CutoverJob cutoverJob, String cutoverJobId) { CreateCutoverJobRequest request = CreateCutoverJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6012,7 +6018,7 @@ public final UnaryCallable createCutoverJobC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture cancelCutoverJobAsync( - CutoverJobName name) { + @Nullable CutoverJobName name) { CancelCutoverJobRequest request = CancelCutoverJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelCutoverJobAsync(request); @@ -6168,7 +6174,7 @@ public final UnaryCallable cancelCutoverJobC * @param parent Required. The parent, which owns this collection of migrating VMs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCutoverJobsPagedResponse listCutoverJobs(MigratingVmName parent) { + public final ListCutoverJobsPagedResponse listCutoverJobs(@Nullable MigratingVmName parent) { ListCutoverJobsRequest request = ListCutoverJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6345,7 +6351,7 @@ public final ListCutoverJobsPagedResponse listCutoverJobs(ListCutoverJobsRequest * @param name Required. The name of the CutoverJob. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CutoverJob getCutoverJob(CutoverJobName name) { + public final CutoverJob getCutoverJob(@Nullable CutoverJobName name) { GetCutoverJobRequest request = GetCutoverJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCutoverJob(request); @@ -6464,7 +6470,7 @@ public final UnaryCallable getCutoverJobCallab * @param parent Required. The parent, which owns this collection of groups. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGroupsPagedResponse listGroups(LocationName parent) { + public final ListGroupsPagedResponse listGroups(@Nullable LocationName parent) { ListGroupsRequest request = ListGroupsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listGroups(request); @@ -6626,7 +6632,7 @@ public final UnaryCallable listGroupsCall * @param name Required. The group name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Group getGroup(GroupName name) { + public final Group getGroup(@Nullable GroupName name) { GetGroupRequest request = GetGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getGroup(request); @@ -6739,7 +6745,7 @@ public final UnaryCallable getGroupCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createGroupAsync( - LocationName parent, Group group, String groupId) { + @Nullable LocationName parent, Group group, String groupId) { CreateGroupRequest request = CreateGroupRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7024,7 +7030,8 @@ public final UnaryCallable updateGroupCallable() * @param name Required. The Group name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteGroupAsync(GroupName name) { + public final OperationFuture deleteGroupAsync( + @Nullable GroupName name) { DeleteGroupRequest request = DeleteGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteGroupAsync(request); @@ -7166,7 +7173,7 @@ public final UnaryCallable deleteGroupCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture addGroupMigrationAsync( - GroupName group) { + @Nullable GroupName group) { AddGroupMigrationRequest request = AddGroupMigrationRequest.newBuilder() .setGroup(group == null ? null : group.toString()) @@ -7321,7 +7328,7 @@ public final UnaryCallable addGroupMigratio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - removeGroupMigrationAsync(GroupName group) { + removeGroupMigrationAsync(@Nullable GroupName group) { RemoveGroupMigrationRequest request = RemoveGroupMigrationRequest.newBuilder() .setGroup(group == null ? null : group.toString()) @@ -7482,7 +7489,7 @@ public final UnaryCallable addGroupMigratio * @param parent Required. The parent, which owns this collection of targets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTargetProjectsPagedResponse listTargetProjects(LocationName parent) { + public final ListTargetProjectsPagedResponse listTargetProjects(@Nullable LocationName parent) { ListTargetProjectsRequest request = ListTargetProjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7667,7 +7674,7 @@ public final ListTargetProjectsPagedResponse listTargetProjects( * @param name Required. The TargetProject name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TargetProject getTargetProject(TargetProjectName name) { + public final TargetProject getTargetProject(@Nullable TargetProjectName name) { GetTargetProjectRequest request = GetTargetProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getTargetProject(request); @@ -7796,7 +7803,7 @@ public final UnaryCallable getTargetProj * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createTargetProjectAsync( - LocationName parent, TargetProject targetProject, String targetProjectId) { + @Nullable LocationName parent, TargetProject targetProject, String targetProjectId) { CreateTargetProjectRequest request = CreateTargetProjectRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8116,7 +8123,7 @@ public final UnaryCallable updateTargetPr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTargetProjectAsync( - TargetProjectName name) { + @Nullable TargetProjectName name) { DeleteTargetProjectRequest request = DeleteTargetProjectRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8280,7 +8287,8 @@ public final UnaryCallable deleteTargetPr * @param parent Required. The parent, which owns this collection of ReplicationCycles. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListReplicationCyclesPagedResponse listReplicationCycles(MigratingVmName parent) { + public final ListReplicationCyclesPagedResponse listReplicationCycles( + @Nullable MigratingVmName parent) { ListReplicationCyclesRequest request = ListReplicationCyclesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8461,7 +8469,7 @@ public final ListReplicationCyclesPagedResponse listReplicationCycles( * @param name Required. The name of the ReplicationCycle. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ReplicationCycle getReplicationCycle(ReplicationCycleName name) { + public final ReplicationCycle getReplicationCycle(@Nullable ReplicationCycleName name) { GetReplicationCycleRequest request = GetReplicationCycleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8593,7 +8601,7 @@ public final ReplicationCycle getReplicationCycle(GetReplicationCycleRequest req * @param parent Required. The parent, which owns this collection of targets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImageImportsPagedResponse listImageImports(LocationName parent) { + public final ListImageImportsPagedResponse listImageImports(@Nullable LocationName parent) { ListImageImportsRequest request = ListImageImportsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8762,7 +8770,7 @@ public final ListImageImportsPagedResponse listImageImports(ListImageImportsRequ * @param name Required. The ImageImport name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImageImport getImageImport(ImageImportName name) { + public final ImageImport getImageImport(@Nullable ImageImportName name) { GetImageImportRequest request = GetImageImportRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getImageImport(request); @@ -8879,7 +8887,7 @@ public final UnaryCallable getImageImportCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createImageImportAsync( - LocationName parent, ImageImport imageImport, String imageImportId) { + @Nullable LocationName parent, ImageImport imageImport, String imageImportId) { CreateImageImportRequest request = CreateImageImportRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9045,7 +9053,7 @@ public final UnaryCallable createImageImpor * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteImageImportAsync( - ImageImportName name) { + @Nullable ImageImportName name) { DeleteImageImportRequest request = DeleteImageImportRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9191,7 +9199,8 @@ public final UnaryCallable deleteImageImpor * @param parent Required. The parent, which owns this collection of targets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImageImportJobsPagedResponse listImageImportJobs(ImageImportName parent) { + public final ListImageImportJobsPagedResponse listImageImportJobs( + @Nullable ImageImportName parent) { ListImageImportJobsRequest request = ListImageImportJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9362,7 +9371,7 @@ public final ListImageImportJobsPagedResponse listImageImportJobs( * @param name Required. The ImageImportJob name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImageImportJob getImageImportJob(ImageImportJobName name) { + public final ImageImportJob getImageImportJob(@Nullable ImageImportJobName name) { GetImageImportJobRequest request = GetImageImportJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9479,7 +9488,7 @@ public final UnaryCallable getImageImp * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - cancelImageImportJobAsync(ImageImportJobName name) { + cancelImageImportJobAsync(@Nullable ImageImportJobName name) { CancelImageImportJobRequest request = CancelImageImportJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9640,7 +9649,7 @@ public final UnaryCallable getImageImp * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createDiskMigrationJobAsync( - SourceName parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) { + @Nullable SourceName parent, DiskMigrationJob diskMigrationJob, String diskMigrationJobId) { CreateDiskMigrationJobRequest request = CreateDiskMigrationJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9811,7 +9820,8 @@ public final OperationFuture createDiskMigr * @param parent Required. The parent, which owns this collection of DiskMigrationJobs. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDiskMigrationJobsPagedResponse listDiskMigrationJobs(SourceName parent) { + public final ListDiskMigrationJobsPagedResponse listDiskMigrationJobs( + @Nullable SourceName parent) { ListDiskMigrationJobsRequest request = ListDiskMigrationJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9984,7 +9994,7 @@ public final ListDiskMigrationJobsPagedResponse listDiskMigrationJobs( * @param name Required. The name of the DiskMigrationJob. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DiskMigrationJob getDiskMigrationJob(DiskMigrationJobName name) { + public final DiskMigrationJob getDiskMigrationJob(@Nullable DiskMigrationJobName name) { GetDiskMigrationJobRequest request = GetDiskMigrationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10238,7 +10248,7 @@ public final OperationFuture updateDiskMigr * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteDiskMigrationJobAsync( - DiskMigrationJobName name) { + @Nullable DiskMigrationJobName name) { DeleteDiskMigrationJobRequest request = DeleteDiskMigrationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10394,7 +10404,7 @@ public final OperationFuture deleteDiskMigrationJobAsy * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - runDiskMigrationJobAsync(DiskMigrationJobName name) { + runDiskMigrationJobAsync(@Nullable DiskMigrationJobName name) { RunDiskMigrationJobRequest request = RunDiskMigrationJobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10838,8 +10848,8 @@ public static class ListSourcesPage extends AbstractPage { private ListSourcesPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { super(context, response); } @@ -10849,14 +10859,14 @@ private static ListSourcesPage createEmptyPage() { @Override protected ListSourcesPage createPage( - PageContext context, - ListSourcesResponse response) { + @Nullable PageContext context, + @Nullable ListSourcesResponse response) { return new ListSourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -10870,7 +10880,8 @@ public static class ListSourcesFixedSizeCollection ListSourcesPage, ListSourcesFixedSizeCollection> { - private ListSourcesFixedSizeCollection(List pages, int collectionSize) { + private ListSourcesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10880,7 +10891,7 @@ private static ListSourcesFixedSizeCollection createEmptyCollection() { @Override protected ListSourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSourcesFixedSizeCollection(pages, collectionSize); } } @@ -10919,10 +10930,11 @@ public static class FetchStorageInventoryPage FetchStorageInventoryPage> { private FetchStorageInventoryPage( - PageContext< + @Nullable + PageContext< FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource> context, - FetchStorageInventoryResponse response) { + @Nullable FetchStorageInventoryResponse response) { super(context, response); } @@ -10932,16 +10944,18 @@ private static FetchStorageInventoryPage createEmptyPage() { @Override protected FetchStorageInventoryPage createPage( - PageContext< + @Nullable + PageContext< FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource> context, - FetchStorageInventoryResponse response) { + @Nullable FetchStorageInventoryResponse response) { return new FetchStorageInventoryPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchStorageInventoryRequest, FetchStorageInventoryResponse, SourceStorageResource> context, ApiFuture futureResponse) { @@ -10958,7 +10972,7 @@ public static class FetchStorageInventoryFixedSizeCollection FetchStorageInventoryFixedSizeCollection> { private FetchStorageInventoryFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -10968,7 +10982,7 @@ private static FetchStorageInventoryFixedSizeCollection createEmptyCollection() @Override protected FetchStorageInventoryFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchStorageInventoryFixedSizeCollection(pages, collectionSize); } } @@ -11007,10 +11021,11 @@ public static class ListUtilizationReportsPage ListUtilizationReportsPage> { private ListUtilizationReportsPage( - PageContext< + @Nullable + PageContext< ListUtilizationReportsRequest, ListUtilizationReportsResponse, UtilizationReport> context, - ListUtilizationReportsResponse response) { + @Nullable ListUtilizationReportsResponse response) { super(context, response); } @@ -11020,16 +11035,18 @@ private static ListUtilizationReportsPage createEmptyPage() { @Override protected ListUtilizationReportsPage createPage( - PageContext< + @Nullable + PageContext< ListUtilizationReportsRequest, ListUtilizationReportsResponse, UtilizationReport> context, - ListUtilizationReportsResponse response) { + @Nullable ListUtilizationReportsResponse response) { return new ListUtilizationReportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUtilizationReportsRequest, ListUtilizationReportsResponse, UtilizationReport> context, ApiFuture futureResponse) { @@ -11046,7 +11063,7 @@ public static class ListUtilizationReportsFixedSizeCollection ListUtilizationReportsFixedSizeCollection> { private ListUtilizationReportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11056,7 +11073,7 @@ private static ListUtilizationReportsFixedSizeCollection createEmptyCollection() @Override protected ListUtilizationReportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUtilizationReportsFixedSizeCollection(pages, collectionSize); } } @@ -11097,12 +11114,13 @@ public static class ListDatacenterConnectorsPage ListDatacenterConnectorsPage> { private ListDatacenterConnectorsPage( - PageContext< + @Nullable + PageContext< ListDatacenterConnectorsRequest, ListDatacenterConnectorsResponse, DatacenterConnector> context, - ListDatacenterConnectorsResponse response) { + @Nullable ListDatacenterConnectorsResponse response) { super(context, response); } @@ -11112,18 +11130,20 @@ private static ListDatacenterConnectorsPage createEmptyPage() { @Override protected ListDatacenterConnectorsPage createPage( - PageContext< + @Nullable + PageContext< ListDatacenterConnectorsRequest, ListDatacenterConnectorsResponse, DatacenterConnector> context, - ListDatacenterConnectorsResponse response) { + @Nullable ListDatacenterConnectorsResponse response) { return new ListDatacenterConnectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListDatacenterConnectorsRequest, ListDatacenterConnectorsResponse, DatacenterConnector> @@ -11142,7 +11162,7 @@ public static class ListDatacenterConnectorsFixedSizeCollection ListDatacenterConnectorsFixedSizeCollection> { private ListDatacenterConnectorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11152,7 +11172,7 @@ private static ListDatacenterConnectorsFixedSizeCollection createEmptyCollection @Override protected ListDatacenterConnectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDatacenterConnectorsFixedSizeCollection(pages, collectionSize); } } @@ -11186,8 +11206,9 @@ public static class ListMigratingVmsPage ListMigratingVmsRequest, ListMigratingVmsResponse, MigratingVm, ListMigratingVmsPage> { private ListMigratingVmsPage( - PageContext context, - ListMigratingVmsResponse response) { + @Nullable PageContext + context, + @Nullable ListMigratingVmsResponse response) { super(context, response); } @@ -11197,14 +11218,16 @@ private static ListMigratingVmsPage createEmptyPage() { @Override protected ListMigratingVmsPage createPage( - PageContext context, - ListMigratingVmsResponse response) { + @Nullable PageContext + context, + @Nullable ListMigratingVmsResponse response) { return new ListMigratingVmsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11219,7 +11242,7 @@ public static class ListMigratingVmsFixedSizeCollection ListMigratingVmsFixedSizeCollection> { private ListMigratingVmsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11229,7 +11252,7 @@ private static ListMigratingVmsFixedSizeCollection createEmptyCollection() { @Override protected ListMigratingVmsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMigratingVmsFixedSizeCollection(pages, collectionSize); } } @@ -11263,8 +11286,8 @@ public static class ListCloneJobsPage ListCloneJobsRequest, ListCloneJobsResponse, CloneJob, ListCloneJobsPage> { private ListCloneJobsPage( - PageContext context, - ListCloneJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCloneJobsResponse response) { super(context, response); } @@ -11274,14 +11297,14 @@ private static ListCloneJobsPage createEmptyPage() { @Override protected ListCloneJobsPage createPage( - PageContext context, - ListCloneJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCloneJobsResponse response) { return new ListCloneJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11295,7 +11318,8 @@ public static class ListCloneJobsFixedSizeCollection ListCloneJobsPage, ListCloneJobsFixedSizeCollection> { - private ListCloneJobsFixedSizeCollection(List pages, int collectionSize) { + private ListCloneJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11305,7 +11329,7 @@ private static ListCloneJobsFixedSizeCollection createEmptyCollection() { @Override protected ListCloneJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCloneJobsFixedSizeCollection(pages, collectionSize); } } @@ -11339,8 +11363,8 @@ public static class ListCutoverJobsPage ListCutoverJobsRequest, ListCutoverJobsResponse, CutoverJob, ListCutoverJobsPage> { private ListCutoverJobsPage( - PageContext context, - ListCutoverJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCutoverJobsResponse response) { super(context, response); } @@ -11350,14 +11374,14 @@ private static ListCutoverJobsPage createEmptyPage() { @Override protected ListCutoverJobsPage createPage( - PageContext context, - ListCutoverJobsResponse response) { + @Nullable PageContext context, + @Nullable ListCutoverJobsResponse response) { return new ListCutoverJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11372,7 +11396,7 @@ public static class ListCutoverJobsFixedSizeCollection ListCutoverJobsFixedSizeCollection> { private ListCutoverJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11382,7 +11406,7 @@ private static ListCutoverJobsFixedSizeCollection createEmptyCollection() { @Override protected ListCutoverJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCutoverJobsFixedSizeCollection(pages, collectionSize); } } @@ -11413,8 +11437,8 @@ public static class ListGroupsPage extends AbstractPage { private ListGroupsPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { super(context, response); } @@ -11424,14 +11448,14 @@ private static ListGroupsPage createEmptyPage() { @Override protected ListGroupsPage createPage( - PageContext context, - ListGroupsResponse response) { + @Nullable PageContext context, + @Nullable ListGroupsResponse response) { return new ListGroupsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11445,7 +11469,8 @@ public static class ListGroupsFixedSizeCollection ListGroupsPage, ListGroupsFixedSizeCollection> { - private ListGroupsFixedSizeCollection(List pages, int collectionSize) { + private ListGroupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11455,7 +11480,7 @@ private static ListGroupsFixedSizeCollection createEmptyCollection() { @Override protected ListGroupsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListGroupsFixedSizeCollection(pages, collectionSize); } } @@ -11492,8 +11517,9 @@ public static class ListTargetProjectsPage ListTargetProjectsPage> { private ListTargetProjectsPage( - PageContext context, - ListTargetProjectsResponse response) { + @Nullable PageContext + context, + @Nullable ListTargetProjectsResponse response) { super(context, response); } @@ -11503,14 +11529,16 @@ private static ListTargetProjectsPage createEmptyPage() { @Override protected ListTargetProjectsPage createPage( - PageContext context, - ListTargetProjectsResponse response) { + @Nullable PageContext + context, + @Nullable ListTargetProjectsResponse response) { return new ListTargetProjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11525,7 +11553,7 @@ public static class ListTargetProjectsFixedSizeCollection ListTargetProjectsFixedSizeCollection> { private ListTargetProjectsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11535,7 +11563,7 @@ private static ListTargetProjectsFixedSizeCollection createEmptyCollection() { @Override protected ListTargetProjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTargetProjectsFixedSizeCollection(pages, collectionSize); } } @@ -11573,9 +11601,11 @@ public static class ListReplicationCyclesPage ListReplicationCyclesPage> { private ListReplicationCyclesPage( - PageContext + @Nullable + PageContext< + ListReplicationCyclesRequest, ListReplicationCyclesResponse, ReplicationCycle> context, - ListReplicationCyclesResponse response) { + @Nullable ListReplicationCyclesResponse response) { super(context, response); } @@ -11585,15 +11615,19 @@ private static ListReplicationCyclesPage createEmptyPage() { @Override protected ListReplicationCyclesPage createPage( - PageContext + @Nullable + PageContext< + ListReplicationCyclesRequest, ListReplicationCyclesResponse, ReplicationCycle> context, - ListReplicationCyclesResponse response) { + @Nullable ListReplicationCyclesResponse response) { return new ListReplicationCyclesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListReplicationCyclesRequest, ListReplicationCyclesResponse, ReplicationCycle> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11609,7 +11643,7 @@ public static class ListReplicationCyclesFixedSizeCollection ListReplicationCyclesFixedSizeCollection> { private ListReplicationCyclesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11619,7 +11653,7 @@ private static ListReplicationCyclesFixedSizeCollection createEmptyCollection() @Override protected ListReplicationCyclesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListReplicationCyclesFixedSizeCollection(pages, collectionSize); } } @@ -11653,8 +11687,9 @@ public static class ListImageImportsPage ListImageImportsRequest, ListImageImportsResponse, ImageImport, ListImageImportsPage> { private ListImageImportsPage( - PageContext context, - ListImageImportsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageImportsResponse response) { super(context, response); } @@ -11664,14 +11699,16 @@ private static ListImageImportsPage createEmptyPage() { @Override protected ListImageImportsPage createPage( - PageContext context, - ListImageImportsResponse response) { + @Nullable PageContext + context, + @Nullable ListImageImportsResponse response) { return new ListImageImportsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11686,7 +11723,7 @@ public static class ListImageImportsFixedSizeCollection ListImageImportsFixedSizeCollection> { private ListImageImportsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11696,7 +11733,7 @@ private static ListImageImportsFixedSizeCollection createEmptyCollection() { @Override protected ListImageImportsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImageImportsFixedSizeCollection(pages, collectionSize); } } @@ -11734,9 +11771,10 @@ public static class ListImageImportJobsPage ListImageImportJobsPage> { private ListImageImportJobsPage( - PageContext + @Nullable + PageContext context, - ListImageImportJobsResponse response) { + @Nullable ListImageImportJobsResponse response) { super(context, response); } @@ -11746,15 +11784,17 @@ private static ListImageImportJobsPage createEmptyPage() { @Override protected ListImageImportJobsPage createPage( - PageContext + @Nullable + PageContext context, - ListImageImportJobsResponse response) { + @Nullable ListImageImportJobsResponse response) { return new ListImageImportJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11770,7 +11810,7 @@ public static class ListImageImportJobsFixedSizeCollection ListImageImportJobsFixedSizeCollection> { private ListImageImportJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11780,7 +11820,7 @@ private static ListImageImportJobsFixedSizeCollection createEmptyCollection() { @Override protected ListImageImportJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImageImportJobsFixedSizeCollection(pages, collectionSize); } } @@ -11818,9 +11858,11 @@ public static class ListDiskMigrationJobsPage ListDiskMigrationJobsPage> { private ListDiskMigrationJobsPage( - PageContext + @Nullable + PageContext< + ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob> context, - ListDiskMigrationJobsResponse response) { + @Nullable ListDiskMigrationJobsResponse response) { super(context, response); } @@ -11830,15 +11872,19 @@ private static ListDiskMigrationJobsPage createEmptyPage() { @Override protected ListDiskMigrationJobsPage createPage( - PageContext + @Nullable + PageContext< + ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob> context, - ListDiskMigrationJobsResponse response) { + @Nullable ListDiskMigrationJobsResponse response) { return new ListDiskMigrationJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListDiskMigrationJobsRequest, ListDiskMigrationJobsResponse, DiskMigrationJob> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -11854,7 +11900,7 @@ public static class ListDiskMigrationJobsFixedSizeCollection ListDiskMigrationJobsFixedSizeCollection> { private ListDiskMigrationJobsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11864,7 +11910,7 @@ private static ListDiskMigrationJobsFixedSizeCollection createEmptyCollection() @Override protected ListDiskMigrationJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListDiskMigrationJobsFixedSizeCollection(pages, collectionSize); } } @@ -11898,8 +11944,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -11909,14 +11955,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -11930,7 +11976,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -11940,7 +11987,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java index 2b96012897b5..36ef6a6a5150 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/VmMigrationSettings.java @@ -55,6 +55,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -780,7 +781,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); } @@ -800,7 +801,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VmMigrationStubSettings.newBuilder(clientContext)); } diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java index d89b9a06ac35..72f20369d680 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStub.java @@ -145,6 +145,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -156,11 +157,12 @@ @Generated("by gapic-generator-java") public abstract class VmMigrationStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java index a92e4034651f..e6e970cbdd8d 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/VmMigrationStubSettings.java @@ -180,6 +180,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -1986,7 +1987,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); } @@ -2426,7 +2427,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listSourcesSettings = PagedCallSettings.newBuilder(LIST_SOURCES_PAGE_STR_FACT); diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobName.java index 8173d4061daf..83c8c3a0c7ed 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CloneJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static CloneJobName parse(String formattedString) { + public static @Nullable CloneJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CloneJobName> values) { List list = new ArrayList<>(values.size()); for (CloneJobName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobName.java index 47f187f68887..472f5aa8694d 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/CutoverJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static CutoverJobName parse(String formattedString) { + public static @Nullable CutoverJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CutoverJobName> values) { List list = new ArrayList<>(values.size()); for (CutoverJobName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorName.java index 3d30cd977e85..b047fee6f7e3 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DatacenterConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DatacenterConnectorName parse(String formattedString) { + public static @Nullable DatacenterConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DatacenterConnectorName> values) { List list = new ArrayList<>(values.size()); for (DatacenterConnectorName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java index 10bdbbdaa534..b2fb9fa8c7e0 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/DiskMigrationJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static DiskMigrationJobName parse(String formattedString) { + public static @Nullable DiskMigrationJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DiskMigrationJobName> values) { List list = new ArrayList<>(values.size()); for (DiskMigrationJobName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupName.java index f7f1917ef4ff..7f126704c7b2 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/GroupName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String group) { .toString(); } - public static GroupName parse(String formattedString) { + public static @Nullable GroupName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable GroupName> values) { List list = new ArrayList<>(values.size()); for (GroupName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java index 5f3b977e9172..b95935ccfe05 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String job, String .toString(); } - public static ImageImportJobName parse(String formattedString) { + public static @Nullable ImageImportJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImageImportJobName> values) { List list = new ArrayList<>(values.size()); for (ImageImportJobName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java index 1b86780e88e7..ec569c45f2f6 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ImageImportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -80,7 +81,7 @@ public static String format(String project, String location, String job) { return newBuilder().setProject(project).setLocation(location).setJob(job).build().toString(); } - public static ImageImportName parse(String formattedString) { + public static @Nullable ImageImportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -98,7 +99,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImageImportName> values) { List list = new ArrayList<>(values.size()); for (ImageImportName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LocationName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LocationName.java index dc3ca83260c9..f9be4f884bea 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LocationName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmName.java index 0695d3f24a15..d1683b7f781f 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/MigratingVmName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String source, Stri .toString(); } - public static MigratingVmName parse(String formattedString) { + public static @Nullable MigratingVmName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable MigratingVmName> values) { List list = new ArrayList<>(values.size()); for (MigratingVmName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleName.java index 53b3f53758d7..271d807b678a 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ReplicationCycleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static ReplicationCycleName parse(String formattedString) { + public static @Nullable ReplicationCycleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ReplicationCycleName> values) { List list = new ArrayList<>(values.size()); for (ReplicationCycleName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceName.java index 6cfb1dffa1c6..b89a7841c014 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/SourceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String source) { .toString(); } - public static SourceName parse(String formattedString) { + public static @Nullable SourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SourceName> values) { List list = new ArrayList<>(values.size()); for (SourceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectName.java index 3d7146c4d1c2..f51be2560a7c 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/TargetProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String targetProjec .toString(); } - public static TargetProjectName parse(String formattedString) { + public static @Nullable TargetProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TargetProjectName> values) { List list = new ArrayList<>(values.size()); for (TargetProjectName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportName.java b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportName.java index dbba5a99aec1..295596d7a42b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportName.java +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/UtilizationReportName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static UtilizationReportName parse(String formattedString) { + public static @Nullable UtilizationReportName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable UtilizationReportName> values) { List list = new ArrayList<>(values.size()); for (UtilizationReportName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java index 78963a0183d6..9adca7a2d419 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java @@ -48,6 +48,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. /** @@ -1664,7 +1665,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VmwareEngineClient implements BackgroundResource { - private final VmwareEngineSettings settings; + private final @Nullable VmwareEngineSettings settings; private final VmwareEngineStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -1711,7 +1712,7 @@ protected VmwareEngineClient(VmwareEngineStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VmwareEngineSettings getSettings() { + public final @Nullable VmwareEngineSettings getSettings() { return settings; } @@ -1762,7 +1763,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/my-project/locations/us-central1-a` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateCloudsPagedResponse listPrivateClouds(LocationName parent) { + public final ListPrivateCloudsPagedResponse listPrivateClouds(@Nullable LocationName parent) { ListPrivateCloudsRequest request = ListPrivateCloudsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1937,7 +1938,7 @@ public final ListPrivateCloudsPagedResponse listPrivateClouds(ListPrivateCloudsR * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateCloud getPrivateCloud(PrivateCloudName name) { + public final PrivateCloud getPrivateCloud(@Nullable PrivateCloudName name) { GetPrivateCloudRequest request = GetPrivateCloudRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPrivateCloud(request); @@ -2073,7 +2074,7 @@ public final UnaryCallable getPrivateCloud * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPrivateCloudAsync( - LocationName parent, PrivateCloud privateCloud, String privateCloudId) { + @Nullable LocationName parent, PrivateCloud privateCloud, String privateCloudId) { CreatePrivateCloudRequest request = CreatePrivateCloudRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2433,7 +2434,7 @@ public final UnaryCallable updatePrivateCl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrivateCloudAsync( - PrivateCloudName name) { + @Nullable PrivateCloudName name) { DeletePrivateCloudRequest request = DeletePrivateCloudRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2638,7 +2639,7 @@ public final UnaryCallable deletePrivateCl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture undeletePrivateCloudAsync( - PrivateCloudName name) { + @Nullable PrivateCloudName name) { UndeletePrivateCloudRequest request = UndeletePrivateCloudRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2801,7 +2802,7 @@ public final OperationFuture undeletePrivateClo * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListClustersPagedResponse listClusters(PrivateCloudName parent) { + public final ListClustersPagedResponse listClusters(@Nullable PrivateCloudName parent) { ListClustersRequest request = ListClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2976,7 +2977,7 @@ public final UnaryCallable listCluste * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Cluster getCluster(ClusterName name) { + public final Cluster getCluster(@Nullable ClusterName name) { GetClusterRequest request = GetClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCluster(request); @@ -3112,7 +3113,7 @@ public final UnaryCallable getClusterCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createClusterAsync( - PrivateCloudName parent, Cluster cluster, String clusterId) { + @Nullable PrivateCloudName parent, Cluster cluster, String clusterId) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3448,7 +3449,8 @@ public final UnaryCallable updateClusterCallabl * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteClusterAsync(ClusterName name) { + public final OperationFuture deleteClusterAsync( + @Nullable ClusterName name) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteClusterAsync(request); @@ -3613,7 +3615,7 @@ public final UnaryCallable deleteClusterCallabl * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodesPagedResponse listNodes(ClusterName parent) { + public final ListNodesPagedResponse listNodes(@Nullable ClusterName parent) { ListNodesRequest request = ListNodesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listNodes(request); @@ -3781,7 +3783,7 @@ public final UnaryCallable listNodesCallabl * `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}/nodes/{node}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Node getNode(NodeName name) { + public final Node getNode(@Nullable NodeName name) { GetNodeRequest request = GetNodeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNode(request); @@ -3902,7 +3904,8 @@ public final UnaryCallable getNodeCallable() { * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExternalAddressesPagedResponse listExternalAddresses(PrivateCloudName parent) { + public final ListExternalAddressesPagedResponse listExternalAddresses( + @Nullable PrivateCloudName parent) { ListExternalAddressesRequest request = ListExternalAddressesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4089,7 +4092,7 @@ public final ListExternalAddressesPagedResponse listExternalAddresses( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchNetworkPolicyExternalAddressesPagedResponse fetchNetworkPolicyExternalAddresses( - NetworkPolicyName networkPolicy) { + @Nullable NetworkPolicyName networkPolicy) { FetchNetworkPolicyExternalAddressesRequest request = FetchNetworkPolicyExternalAddressesRequest.newBuilder() .setNetworkPolicy(networkPolicy == null ? null : networkPolicy.toString()) @@ -4277,7 +4280,7 @@ public final FetchNetworkPolicyExternalAddressesPagedResponse fetchNetworkPolicy * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-ip` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExternalAddress getExternalAddress(ExternalAddressName name) { + public final ExternalAddress getExternalAddress(@Nullable ExternalAddressName name) { GetExternalAddressRequest request = GetExternalAddressRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4425,7 +4428,9 @@ public final ExternalAddress getExternalAddress(GetExternalAddressRequest reques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createExternalAddressAsync( - PrivateCloudName parent, ExternalAddress externalAddress, String externalAddressId) { + @Nullable PrivateCloudName parent, + ExternalAddress externalAddress, + String externalAddressId) { CreateExternalAddressRequest request = CreateExternalAddressRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4773,7 +4778,7 @@ public final OperationFuture updateExternalA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExternalAddressAsync( - ExternalAddressName name) { + @Nullable ExternalAddressName name) { DeleteExternalAddressRequest request = DeleteExternalAddressRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4942,7 +4947,7 @@ public final OperationFuture deleteExternalAddressAsyn * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubnetsPagedResponse listSubnets(PrivateCloudName parent) { + public final ListSubnetsPagedResponse listSubnets(@Nullable PrivateCloudName parent) { ListSubnetsRequest request = ListSubnetsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5110,7 +5115,7 @@ public final UnaryCallable listSubnetsC * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subnet getSubnet(SubnetName name) { + public final Subnet getSubnet(@Nullable SubnetName name) { GetSubnetRequest request = GetSubnetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSubnet(request); @@ -5371,7 +5376,7 @@ public final UnaryCallable updateSubnetCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListExternalAccessRulesPagedResponse listExternalAccessRules( - NetworkPolicyName parent) { + @Nullable NetworkPolicyName parent) { ListExternalAccessRulesRequest request = ListExternalAccessRulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -5555,7 +5560,7 @@ public final ListExternalAccessRulesPagedResponse listExternalAccessRules( * `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExternalAccessRule getExternalAccessRule(ExternalAccessRuleName name) { + public final ExternalAccessRule getExternalAccessRule(@Nullable ExternalAccessRuleName name) { GetExternalAccessRuleRequest request = GetExternalAccessRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -5703,7 +5708,7 @@ public final ExternalAccessRule getExternalAccessRule(GetExternalAccessRuleReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createExternalAccessRuleAsync( - NetworkPolicyName parent, + @Nullable NetworkPolicyName parent, ExternalAccessRule externalAccessRule, String externalAccessRuleId) { CreateExternalAccessRuleRequest request = @@ -6031,7 +6036,7 @@ public final OperationFuture updateExtern * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteExternalAccessRuleAsync( - ExternalAccessRuleName name) { + @Nullable ExternalAccessRuleName name) { DeleteExternalAccessRuleRequest request = DeleteExternalAccessRuleRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -6198,7 +6203,8 @@ public final OperationFuture deleteExternalAccessRuleA * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLoggingServersPagedResponse listLoggingServers(PrivateCloudName parent) { + public final ListLoggingServersPagedResponse listLoggingServers( + @Nullable PrivateCloudName parent) { ListLoggingServersRequest request = ListLoggingServersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6378,7 +6384,7 @@ public final ListLoggingServersPagedResponse listLoggingServers( * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LoggingServer getLoggingServer(LoggingServerName name) { + public final LoggingServer getLoggingServer(@Nullable LoggingServerName name) { GetLoggingServerRequest request = GetLoggingServerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getLoggingServer(request); @@ -6518,7 +6524,7 @@ public final UnaryCallable getLoggingSer * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createLoggingServerAsync( - PrivateCloudName parent, LoggingServer loggingServer, String loggingServerId) { + @Nullable PrivateCloudName parent, LoggingServer loggingServer, String loggingServerId) { CreateLoggingServerRequest request = CreateLoggingServerRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -6836,7 +6842,7 @@ public final UnaryCallable updateLoggingS * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteLoggingServerAsync( - LoggingServerName name) { + @Nullable LoggingServerName name) { DeleteLoggingServerRequest request = DeleteLoggingServerRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -7000,7 +7006,7 @@ public final UnaryCallable deleteLoggingS * `projects/my-project/locations/us-central1-a` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNodeTypesPagedResponse listNodeTypes(LocationName parent) { + public final ListNodeTypesPagedResponse listNodeTypes(@Nullable LocationName parent) { ListNodeTypesRequest request = ListNodeTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -7169,7 +7175,7 @@ public final UnaryCallable listNode * `projects/my-proj/locations/us-central1-a/nodeTypes/standard-72` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NodeType getNodeType(NodeTypeName name) { + public final NodeType getNodeType(@Nullable NodeTypeName name) { GetNodeTypeRequest request = GetNodeTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNodeType(request); @@ -7284,7 +7290,7 @@ public final UnaryCallable getNodeTypeCallable() { * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Credentials showNsxCredentials(PrivateCloudName privateCloud) { + public final Credentials showNsxCredentials(@Nullable PrivateCloudName privateCloud) { ShowNsxCredentialsRequest request = ShowNsxCredentialsRequest.newBuilder() .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) @@ -7406,7 +7412,7 @@ public final UnaryCallable showNsxCreden * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Credentials showVcenterCredentials(PrivateCloudName privateCloud) { + public final Credentials showVcenterCredentials(@Nullable PrivateCloudName privateCloud) { ShowVcenterCredentialsRequest request = ShowVcenterCredentialsRequest.newBuilder() .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) @@ -7532,7 +7538,7 @@ public final Credentials showVcenterCredentials(ShowVcenterCredentialsRequest re * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resetNsxCredentialsAsync( - PrivateCloudName privateCloud) { + @Nullable PrivateCloudName privateCloud) { ResetNsxCredentialsRequest request = ResetNsxCredentialsRequest.newBuilder() .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) @@ -7690,7 +7696,7 @@ public final UnaryCallable resetNsxCreden * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture resetVcenterCredentialsAsync( - PrivateCloudName privateCloud) { + @Nullable PrivateCloudName privateCloud) { ResetVcenterCredentialsRequest request = ResetVcenterCredentialsRequest.newBuilder() .setPrivateCloud(privateCloud == null ? null : privateCloud.toString()) @@ -7850,7 +7856,7 @@ public final OperationFuture resetVcenterCreden * `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DnsForwarding getDnsForwarding(DnsForwardingName name) { + public final DnsForwarding getDnsForwarding(@Nullable DnsForwardingName name) { GetDnsForwardingRequest request = GetDnsForwardingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getDnsForwarding(request); @@ -8103,7 +8109,7 @@ public final UnaryCallable updateDnsForwa * `projects/my-project/locations/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NetworkPeering getNetworkPeering(NetworkPeeringName name) { + public final NetworkPeering getNetworkPeering(@Nullable NetworkPeeringName name) { GetNetworkPeeringRequest request = GetNetworkPeeringRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8232,7 +8238,7 @@ public final UnaryCallable getNetworkP * `projects/my-project/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworkPeeringsPagedResponse listNetworkPeerings(LocationName parent) { + public final ListNetworkPeeringsPagedResponse listNetworkPeerings(@Nullable LocationName parent) { ListNetworkPeeringsRequest request = ListNetworkPeeringsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8433,7 +8439,7 @@ public final ListNetworkPeeringsPagedResponse listNetworkPeerings( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNetworkPeeringAsync( - LocationName parent, NetworkPeering networkPeering, String networkPeeringId) { + @Nullable LocationName parent, NetworkPeering networkPeering, String networkPeeringId) { CreateNetworkPeeringRequest request = CreateNetworkPeeringRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -8625,7 +8631,7 @@ public final OperationFuture createNetworkPee * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNetworkPeeringAsync( - NetworkPeeringName name) { + @Nullable NetworkPeeringName name) { DeleteNetworkPeeringRequest request = DeleteNetworkPeeringRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -8931,7 +8937,8 @@ public final OperationFuture updateNetworkPee * `projects/my-project/locations/global/networkPeerings/my-peering` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPeeringRoutesPagedResponse listPeeringRoutes(NetworkPeeringName parent) { + public final ListPeeringRoutesPagedResponse listPeeringRoutes( + @Nullable NetworkPeeringName parent) { ListPeeringRoutesRequest request = ListPeeringRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9131,7 +9138,9 @@ public final ListPeeringRoutesPagedResponse listPeeringRoutes(ListPeeringRoutesR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createHcxActivationKeyAsync( - PrivateCloudName parent, HcxActivationKey hcxActivationKey, String hcxActivationKeyId) { + @Nullable PrivateCloudName parent, + HcxActivationKey hcxActivationKey, + String hcxActivationKeyId) { CreateHcxActivationKeyRequest request = CreateHcxActivationKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9321,7 +9330,8 @@ public final OperationFuture createHcxActiv * `projects/my-project/locations/us-central1/privateClouds/my-cloud` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHcxActivationKeysPagedResponse listHcxActivationKeys(PrivateCloudName parent) { + public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( + @Nullable PrivateCloudName parent) { ListHcxActivationKeysRequest request = ListHcxActivationKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9498,7 +9508,7 @@ public final ListHcxActivationKeysPagedResponse listHcxActivationKeys( * `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HcxActivationKey getHcxActivationKey(HcxActivationKeyName name) { + public final HcxActivationKey getHcxActivationKey(@Nullable HcxActivationKeyName name) { GetHcxActivationKeyRequest request = GetHcxActivationKeyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -9626,7 +9636,7 @@ public final HcxActivationKey getHcxActivationKey(GetHcxActivationKeyRequest req * `projects/my-project/locations/us-central1/networkPolicies/my-network-policy` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final NetworkPolicy getNetworkPolicy(NetworkPolicyName name) { + public final NetworkPolicy getNetworkPolicy(@Nullable NetworkPolicyName name) { GetNetworkPolicyRequest request = GetNetworkPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNetworkPolicy(request); @@ -9745,7 +9755,7 @@ public final UnaryCallable getNetworkPol * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNetworkPoliciesPagedResponse listNetworkPolicies(LocationName parent) { + public final ListNetworkPoliciesPagedResponse listNetworkPolicies(@Nullable LocationName parent) { ListNetworkPoliciesRequest request = ListNetworkPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -9940,7 +9950,7 @@ public final ListNetworkPoliciesPagedResponse listNetworkPolicies( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createNetworkPolicyAsync( - LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) { + @Nullable LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) { CreateNetworkPolicyRequest request = CreateNetworkPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10292,7 +10302,7 @@ public final UnaryCallable updateNetworkP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteNetworkPolicyAsync( - NetworkPolicyName name) { + @Nullable NetworkPolicyName name) { DeleteNetworkPolicyRequest request = DeleteNetworkPolicyRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10458,7 +10468,7 @@ public final UnaryCallable deleteNetworkP * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListManagementDnsZoneBindingsPagedResponse listManagementDnsZoneBindings( - PrivateCloudName parent) { + @Nullable PrivateCloudName parent) { ListManagementDnsZoneBindingsRequest request = ListManagementDnsZoneBindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -10645,7 +10655,7 @@ public final ListManagementDnsZoneBindingsPagedResponse listManagementDnsZoneBin * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ManagementDnsZoneBinding getManagementDnsZoneBinding( - ManagementDnsZoneBindingName name) { + @Nullable ManagementDnsZoneBindingName name) { GetManagementDnsZoneBindingRequest request = GetManagementDnsZoneBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -10807,7 +10817,7 @@ public final ManagementDnsZoneBinding getManagementDnsZoneBinding( */ public final OperationFuture createManagementDnsZoneBindingAsync( - PrivateCloudName parent, + @Nullable PrivateCloudName parent, ManagementDnsZoneBinding managementDnsZoneBinding, String managementDnsZoneBindingId) { CreateManagementDnsZoneBindingRequest request = @@ -11165,7 +11175,7 @@ public final ManagementDnsZoneBinding getManagementDnsZoneBinding( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteManagementDnsZoneBindingAsync( - ManagementDnsZoneBindingName name) { + @Nullable ManagementDnsZoneBindingName name) { DeleteManagementDnsZoneBindingRequest request = DeleteManagementDnsZoneBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11347,7 +11357,7 @@ public final OperationFuture deleteManagementDnsZoneBi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - repairManagementDnsZoneBindingAsync(ManagementDnsZoneBindingName name) { + repairManagementDnsZoneBindingAsync(@Nullable ManagementDnsZoneBindingName name) { RepairManagementDnsZoneBindingRequest request = RepairManagementDnsZoneBindingRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -11548,7 +11558,7 @@ public final OperationFuture deleteManagementDnsZoneBi */ public final OperationFuture createVmwareEngineNetworkAsync( - LocationName parent, + @Nullable LocationName parent, VmwareEngineNetwork vmwareEngineNetwork, String vmwareEngineNetworkId) { CreateVmwareEngineNetworkRequest request = @@ -11882,7 +11892,7 @@ public final OperationFuture deleteManagementDnsZoneBi * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteVmwareEngineNetworkAsync( - VmwareEngineNetworkName name) { + @Nullable VmwareEngineNetworkName name) { DeleteVmwareEngineNetworkRequest request = DeleteVmwareEngineNetworkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12057,7 +12067,7 @@ public final OperationFuture deleteVmwareEngineNetwork * `projects/my-project/locations/global/vmwareEngineNetworks/my-network` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final VmwareEngineNetwork getVmwareEngineNetwork(VmwareEngineNetworkName name) { + public final VmwareEngineNetwork getVmwareEngineNetwork(@Nullable VmwareEngineNetworkName name) { GetVmwareEngineNetworkRequest request = GetVmwareEngineNetworkRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12191,7 +12201,8 @@ public final VmwareEngineNetwork getVmwareEngineNetwork(GetVmwareEngineNetworkRe * `projects/my-project/locations/global` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(LocationName parent) { + public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( + @Nullable LocationName parent) { ListVmwareEngineNetworksRequest request = ListVmwareEngineNetworksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12388,7 +12399,9 @@ public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createPrivateConnectionAsync( - LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + @Nullable LocationName parent, + PrivateConnection privateConnection, + String privateConnectionId) { CreatePrivateConnectionRequest request = CreatePrivateConnectionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -12574,7 +12587,7 @@ public final OperationFuture createPrivate * `projects/my-project/locations/us-central1/privateConnections/my-connection` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + public final PrivateConnection getPrivateConnection(@Nullable PrivateConnectionName name) { GetPrivateConnectionRequest request = GetPrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -12704,7 +12717,8 @@ public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest * `projects/my-project/locations/us-central1` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + @Nullable LocationName parent) { ListPrivateConnectionsRequest request = ListPrivateConnectionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13020,7 +13034,7 @@ public final OperationFuture updatePrivate * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deletePrivateConnectionAsync( - PrivateConnectionName name) { + @Nullable PrivateConnectionName name) { DeletePrivateConnectionRequest request = DeletePrivateConnectionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -13188,7 +13202,7 @@ public final OperationFuture deletePrivateConnectionAs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes( - PrivateConnectionName parent) { + @Nullable PrivateConnectionName parent) { ListPrivateConnectionPeeringRoutesRequest request = ListPrivateConnectionPeeringRoutesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -13379,7 +13393,7 @@ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnecti * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture grantDnsBindPermissionAsync( - DnsBindPermissionName name, Principal principal) { + @Nullable DnsBindPermissionName name, Principal principal) { GrantDnsBindPermissionRequest request = GrantDnsBindPermissionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -13553,7 +13567,7 @@ public final OperationFuture grantDnsBindP * `projects/my-project/locations/global/dnsBindPermission` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DnsBindPermission getDnsBindPermission(DnsBindPermissionName name) { + public final DnsBindPermission getDnsBindPermission(@Nullable DnsBindPermissionName name) { GetDnsBindPermissionRequest request = GetDnsBindPermissionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -13687,7 +13701,7 @@ public final DnsBindPermission getDnsBindPermission(GetDnsBindPermissionRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture revokeDnsBindPermissionAsync( - DnsBindPermissionName name, Principal principal) { + @Nullable DnsBindPermissionName name, Principal principal) { RevokeDnsBindPermissionRequest request = RevokeDnsBindPermissionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -14254,8 +14268,9 @@ public static class ListPrivateCloudsPage ListPrivateCloudsPage> { private ListPrivateCloudsPage( - PageContext context, - ListPrivateCloudsResponse response) { + @Nullable PageContext + context, + @Nullable ListPrivateCloudsResponse response) { super(context, response); } @@ -14265,14 +14280,16 @@ private static ListPrivateCloudsPage createEmptyPage() { @Override protected ListPrivateCloudsPage createPage( - PageContext context, - ListPrivateCloudsResponse response) { + @Nullable PageContext + context, + @Nullable ListPrivateCloudsResponse response) { return new ListPrivateCloudsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14287,7 +14304,7 @@ public static class ListPrivateCloudsFixedSizeCollection ListPrivateCloudsFixedSizeCollection> { private ListPrivateCloudsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14297,7 +14314,7 @@ private static ListPrivateCloudsFixedSizeCollection createEmptyCollection() { @Override protected ListPrivateCloudsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateCloudsFixedSizeCollection(pages, collectionSize); } } @@ -14330,8 +14347,8 @@ public static class ListClustersPage extends AbstractPage { private ListClustersPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { super(context, response); } @@ -14341,14 +14358,14 @@ private static ListClustersPage createEmptyPage() { @Override protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { + @Nullable PageContext context, + @Nullable ListClustersResponse response) { return new ListClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14362,7 +14379,8 @@ public static class ListClustersFixedSizeCollection ListClustersPage, ListClustersFixedSizeCollection> { - private ListClustersFixedSizeCollection(List pages, int collectionSize) { + private ListClustersFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14372,7 +14390,7 @@ private static ListClustersFixedSizeCollection createEmptyCollection() { @Override protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListClustersFixedSizeCollection(pages, collectionSize); } } @@ -14399,8 +14417,8 @@ public static class ListNodesPage extends AbstractPage { private ListNodesPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { super(context, response); } @@ -14410,14 +14428,14 @@ private static ListNodesPage createEmptyPage() { @Override protected ListNodesPage createPage( - PageContext context, - ListNodesResponse response) { + @Nullable PageContext context, + @Nullable ListNodesResponse response) { return new ListNodesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14427,7 +14445,7 @@ public static class ListNodesFixedSizeCollection extends AbstractFixedSizeCollection< ListNodesRequest, ListNodesResponse, Node, ListNodesPage, ListNodesFixedSizeCollection> { - private ListNodesFixedSizeCollection(List pages, int collectionSize) { + private ListNodesFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14437,7 +14455,7 @@ private static ListNodesFixedSizeCollection createEmptyCollection() { @Override protected ListNodesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodesFixedSizeCollection(pages, collectionSize); } } @@ -14475,9 +14493,11 @@ public static class ListExternalAddressesPage ListExternalAddressesPage> { private ListExternalAddressesPage( - PageContext + @Nullable + PageContext< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress> context, - ListExternalAddressesResponse response) { + @Nullable ListExternalAddressesResponse response) { super(context, response); } @@ -14487,15 +14507,19 @@ private static ListExternalAddressesPage createEmptyPage() { @Override protected ListExternalAddressesPage createPage( - PageContext + @Nullable + PageContext< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress> context, - ListExternalAddressesResponse response) { + @Nullable ListExternalAddressesResponse response) { return new ListExternalAddressesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListExternalAddressesRequest, ListExternalAddressesResponse, ExternalAddress> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -14511,7 +14535,7 @@ public static class ListExternalAddressesFixedSizeCollection ListExternalAddressesFixedSizeCollection> { private ListExternalAddressesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14521,7 +14545,7 @@ private static ListExternalAddressesFixedSizeCollection createEmptyCollection() @Override protected ListExternalAddressesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExternalAddressesFixedSizeCollection(pages, collectionSize); } } @@ -14564,12 +14588,13 @@ public static class FetchNetworkPolicyExternalAddressesPage FetchNetworkPolicyExternalAddressesPage> { private FetchNetworkPolicyExternalAddressesPage( - PageContext< + @Nullable + PageContext< FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse, ExternalAddress> context, - FetchNetworkPolicyExternalAddressesResponse response) { + @Nullable FetchNetworkPolicyExternalAddressesResponse response) { super(context, response); } @@ -14579,18 +14604,20 @@ private static FetchNetworkPolicyExternalAddressesPage createEmptyPage() { @Override protected FetchNetworkPolicyExternalAddressesPage createPage( - PageContext< + @Nullable + PageContext< FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse, ExternalAddress> context, - FetchNetworkPolicyExternalAddressesResponse response) { + @Nullable FetchNetworkPolicyExternalAddressesResponse response) { return new FetchNetworkPolicyExternalAddressesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< FetchNetworkPolicyExternalAddressesRequest, FetchNetworkPolicyExternalAddressesResponse, ExternalAddress> @@ -14609,7 +14636,7 @@ public static class FetchNetworkPolicyExternalAddressesFixedSizeCollection FetchNetworkPolicyExternalAddressesFixedSizeCollection> { private FetchNetworkPolicyExternalAddressesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14619,7 +14646,7 @@ private static FetchNetworkPolicyExternalAddressesFixedSizeCollection createEmpt @Override protected FetchNetworkPolicyExternalAddressesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new FetchNetworkPolicyExternalAddressesFixedSizeCollection(pages, collectionSize); } } @@ -14650,8 +14677,8 @@ public static class ListSubnetsPage extends AbstractPage { private ListSubnetsPage( - PageContext context, - ListSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListSubnetsResponse response) { super(context, response); } @@ -14661,14 +14688,14 @@ private static ListSubnetsPage createEmptyPage() { @Override protected ListSubnetsPage createPage( - PageContext context, - ListSubnetsResponse response) { + @Nullable PageContext context, + @Nullable ListSubnetsResponse response) { return new ListSubnetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14682,7 +14709,8 @@ public static class ListSubnetsFixedSizeCollection ListSubnetsPage, ListSubnetsFixedSizeCollection> { - private ListSubnetsFixedSizeCollection(List pages, int collectionSize) { + private ListSubnetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14692,7 +14720,7 @@ private static ListSubnetsFixedSizeCollection createEmptyCollection() { @Override protected ListSubnetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubnetsFixedSizeCollection(pages, collectionSize); } } @@ -14731,10 +14759,11 @@ public static class ListExternalAccessRulesPage ListExternalAccessRulesPage> { private ListExternalAccessRulesPage( - PageContext< + @Nullable + PageContext< ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> context, - ListExternalAccessRulesResponse response) { + @Nullable ListExternalAccessRulesResponse response) { super(context, response); } @@ -14744,16 +14773,18 @@ private static ListExternalAccessRulesPage createEmptyPage() { @Override protected ListExternalAccessRulesPage createPage( - PageContext< + @Nullable + PageContext< ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> context, - ListExternalAccessRulesResponse response) { + @Nullable ListExternalAccessRulesResponse response) { return new ListExternalAccessRulesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListExternalAccessRulesRequest, ListExternalAccessRulesResponse, ExternalAccessRule> context, ApiFuture futureResponse) { @@ -14770,7 +14801,7 @@ public static class ListExternalAccessRulesFixedSizeCollection ListExternalAccessRulesFixedSizeCollection> { private ListExternalAccessRulesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14780,7 +14811,7 @@ private static ListExternalAccessRulesFixedSizeCollection createEmptyCollection( @Override protected ListExternalAccessRulesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExternalAccessRulesFixedSizeCollection(pages, collectionSize); } } @@ -14817,8 +14848,9 @@ public static class ListLoggingServersPage ListLoggingServersPage> { private ListLoggingServersPage( - PageContext context, - ListLoggingServersResponse response) { + @Nullable PageContext + context, + @Nullable ListLoggingServersResponse response) { super(context, response); } @@ -14828,14 +14860,16 @@ private static ListLoggingServersPage createEmptyPage() { @Override protected ListLoggingServersPage createPage( - PageContext context, - ListLoggingServersResponse response) { + @Nullable PageContext + context, + @Nullable ListLoggingServersResponse response) { return new ListLoggingServersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14850,7 +14884,7 @@ public static class ListLoggingServersFixedSizeCollection ListLoggingServersFixedSizeCollection> { private ListLoggingServersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14860,7 +14894,7 @@ private static ListLoggingServersFixedSizeCollection createEmptyCollection() { @Override protected ListLoggingServersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLoggingServersFixedSizeCollection(pages, collectionSize); } } @@ -14894,8 +14928,8 @@ public static class ListNodeTypesPage ListNodeTypesRequest, ListNodeTypesResponse, NodeType, ListNodeTypesPage> { private ListNodeTypesPage( - PageContext context, - ListNodeTypesResponse response) { + @Nullable PageContext context, + @Nullable ListNodeTypesResponse response) { super(context, response); } @@ -14905,14 +14939,14 @@ private static ListNodeTypesPage createEmptyPage() { @Override protected ListNodeTypesPage createPage( - PageContext context, - ListNodeTypesResponse response) { + @Nullable PageContext context, + @Nullable ListNodeTypesResponse response) { return new ListNodeTypesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -14926,7 +14960,8 @@ public static class ListNodeTypesFixedSizeCollection ListNodeTypesPage, ListNodeTypesFixedSizeCollection> { - private ListNodeTypesFixedSizeCollection(List pages, int collectionSize) { + private ListNodeTypesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -14936,7 +14971,7 @@ private static ListNodeTypesFixedSizeCollection createEmptyCollection() { @Override protected ListNodeTypesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNodeTypesFixedSizeCollection(pages, collectionSize); } } @@ -14974,9 +15009,10 @@ public static class ListNetworkPeeringsPage ListNetworkPeeringsPage> { private ListNetworkPeeringsPage( - PageContext + @Nullable + PageContext context, - ListNetworkPeeringsResponse response) { + @Nullable ListNetworkPeeringsResponse response) { super(context, response); } @@ -14986,15 +15022,17 @@ private static ListNetworkPeeringsPage createEmptyPage() { @Override protected ListNetworkPeeringsPage createPage( - PageContext + @Nullable + PageContext context, - ListNetworkPeeringsResponse response) { + @Nullable ListNetworkPeeringsResponse response) { return new ListNetworkPeeringsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -15010,7 +15048,7 @@ public static class ListNetworkPeeringsFixedSizeCollection ListNetworkPeeringsFixedSizeCollection> { private ListNetworkPeeringsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15020,7 +15058,7 @@ private static ListNetworkPeeringsFixedSizeCollection createEmptyCollection() { @Override protected ListNetworkPeeringsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworkPeeringsFixedSizeCollection(pages, collectionSize); } } @@ -15057,8 +15095,9 @@ public static class ListPeeringRoutesPage ListPeeringRoutesPage> { private ListPeeringRoutesPage( - PageContext context, - ListPeeringRoutesResponse response) { + @Nullable PageContext + context, + @Nullable ListPeeringRoutesResponse response) { super(context, response); } @@ -15068,14 +15107,16 @@ private static ListPeeringRoutesPage createEmptyPage() { @Override protected ListPeeringRoutesPage createPage( - PageContext context, - ListPeeringRoutesResponse response) { + @Nullable PageContext + context, + @Nullable ListPeeringRoutesResponse response) { return new ListPeeringRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15090,7 +15131,7 @@ public static class ListPeeringRoutesFixedSizeCollection ListPeeringRoutesFixedSizeCollection> { private ListPeeringRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15100,7 +15141,7 @@ private static ListPeeringRoutesFixedSizeCollection createEmptyCollection() { @Override protected ListPeeringRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPeeringRoutesFixedSizeCollection(pages, collectionSize); } } @@ -15138,9 +15179,11 @@ public static class ListHcxActivationKeysPage ListHcxActivationKeysPage> { private ListHcxActivationKeysPage( - PageContext + @Nullable + PageContext< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> context, - ListHcxActivationKeysResponse response) { + @Nullable ListHcxActivationKeysResponse response) { super(context, response); } @@ -15150,15 +15193,19 @@ private static ListHcxActivationKeysPage createEmptyPage() { @Override protected ListHcxActivationKeysPage createPage( - PageContext + @Nullable + PageContext< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> context, - ListHcxActivationKeysResponse response) { + @Nullable ListHcxActivationKeysResponse response) { return new ListHcxActivationKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext< + ListHcxActivationKeysRequest, ListHcxActivationKeysResponse, HcxActivationKey> context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -15174,7 +15221,7 @@ public static class ListHcxActivationKeysFixedSizeCollection ListHcxActivationKeysFixedSizeCollection> { private ListHcxActivationKeysFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15184,7 +15231,7 @@ private static ListHcxActivationKeysFixedSizeCollection createEmptyCollection() @Override protected ListHcxActivationKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHcxActivationKeysFixedSizeCollection(pages, collectionSize); } } @@ -15221,8 +15268,10 @@ public static class ListNetworkPoliciesPage ListNetworkPoliciesPage> { private ListNetworkPoliciesPage( - PageContext context, - ListNetworkPoliciesResponse response) { + @Nullable + PageContext + context, + @Nullable ListNetworkPoliciesResponse response) { super(context, response); } @@ -15232,14 +15281,18 @@ private static ListNetworkPoliciesPage createEmptyPage() { @Override protected ListNetworkPoliciesPage createPage( - PageContext context, - ListNetworkPoliciesResponse response) { + @Nullable + PageContext + context, + @Nullable ListNetworkPoliciesResponse response) { return new ListNetworkPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15254,7 +15307,7 @@ public static class ListNetworkPoliciesFixedSizeCollection ListNetworkPoliciesFixedSizeCollection> { private ListNetworkPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15264,7 +15317,7 @@ private static ListNetworkPoliciesFixedSizeCollection createEmptyCollection() { @Override protected ListNetworkPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNetworkPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -15306,12 +15359,13 @@ public static class ListManagementDnsZoneBindingsPage ListManagementDnsZoneBindingsPage> { private ListManagementDnsZoneBindingsPage( - PageContext< + @Nullable + PageContext< ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse, ManagementDnsZoneBinding> context, - ListManagementDnsZoneBindingsResponse response) { + @Nullable ListManagementDnsZoneBindingsResponse response) { super(context, response); } @@ -15321,18 +15375,20 @@ private static ListManagementDnsZoneBindingsPage createEmptyPage() { @Override protected ListManagementDnsZoneBindingsPage createPage( - PageContext< + @Nullable + PageContext< ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse, ManagementDnsZoneBinding> context, - ListManagementDnsZoneBindingsResponse response) { + @Nullable ListManagementDnsZoneBindingsResponse response) { return new ListManagementDnsZoneBindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListManagementDnsZoneBindingsRequest, ListManagementDnsZoneBindingsResponse, ManagementDnsZoneBinding> @@ -15351,7 +15407,7 @@ public static class ListManagementDnsZoneBindingsFixedSizeCollection ListManagementDnsZoneBindingsFixedSizeCollection> { private ListManagementDnsZoneBindingsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15361,7 +15417,7 @@ private static ListManagementDnsZoneBindingsFixedSizeCollection createEmptyColle @Override protected ListManagementDnsZoneBindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListManagementDnsZoneBindingsFixedSizeCollection(pages, collectionSize); } } @@ -15402,12 +15458,13 @@ public static class ListVmwareEngineNetworksPage ListVmwareEngineNetworksPage> { private ListVmwareEngineNetworksPage( - PageContext< + @Nullable + PageContext< ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, VmwareEngineNetwork> context, - ListVmwareEngineNetworksResponse response) { + @Nullable ListVmwareEngineNetworksResponse response) { super(context, response); } @@ -15417,18 +15474,20 @@ private static ListVmwareEngineNetworksPage createEmptyPage() { @Override protected ListVmwareEngineNetworksPage createPage( - PageContext< + @Nullable + PageContext< ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, VmwareEngineNetwork> context, - ListVmwareEngineNetworksResponse response) { + @Nullable ListVmwareEngineNetworksResponse response) { return new ListVmwareEngineNetworksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksResponse, VmwareEngineNetwork> @@ -15447,7 +15506,7 @@ public static class ListVmwareEngineNetworksFixedSizeCollection ListVmwareEngineNetworksFixedSizeCollection> { private ListVmwareEngineNetworksFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15457,7 +15516,7 @@ private static ListVmwareEngineNetworksFixedSizeCollection createEmptyCollection @Override protected ListVmwareEngineNetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListVmwareEngineNetworksFixedSizeCollection(pages, collectionSize); } } @@ -15496,10 +15555,11 @@ public static class ListPrivateConnectionsPage ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { super(context, response); } @@ -15509,16 +15569,18 @@ private static ListPrivateConnectionsPage createEmptyPage() { @Override protected ListPrivateConnectionsPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, - ListPrivateConnectionsResponse response) { + @Nullable ListPrivateConnectionsResponse response) { return new ListPrivateConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> context, ApiFuture futureResponse) { @@ -15535,7 +15597,7 @@ public static class ListPrivateConnectionsFixedSizeCollection ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15545,7 +15607,7 @@ private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() @Override protected ListPrivateConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); } } @@ -15588,12 +15650,13 @@ public static class ListPrivateConnectionPeeringRoutesPage ListPrivateConnectionPeeringRoutesPage> { private ListPrivateConnectionPeeringRoutesPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> context, - ListPrivateConnectionPeeringRoutesResponse response) { + @Nullable ListPrivateConnectionPeeringRoutesResponse response) { super(context, response); } @@ -15603,18 +15666,20 @@ private static ListPrivateConnectionPeeringRoutesPage createEmptyPage() { @Override protected ListPrivateConnectionPeeringRoutesPage createPage( - PageContext< + @Nullable + PageContext< ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> context, - ListPrivateConnectionPeeringRoutesResponse response) { + @Nullable ListPrivateConnectionPeeringRoutesResponse response) { return new ListPrivateConnectionPeeringRoutesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> @@ -15633,7 +15698,7 @@ public static class ListPrivateConnectionPeeringRoutesFixedSizeCollection ListPrivateConnectionPeeringRoutesFixedSizeCollection> { private ListPrivateConnectionPeeringRoutesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15643,7 +15708,7 @@ private static ListPrivateConnectionPeeringRoutesFixedSizeCollection createEmpty @Override protected ListPrivateConnectionPeeringRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListPrivateConnectionPeeringRoutesFixedSizeCollection(pages, collectionSize); } } @@ -15677,8 +15742,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -15688,14 +15753,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -15709,7 +15774,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -15719,7 +15785,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java index 1bc452cdb1f7..83cd5f25f9da 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -928,7 +929,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); } @@ -948,7 +949,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VmwareEngineStubSettings.newBuilder(clientContext)); } diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java index 19d006bae95a..b358b0a2e3f7 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java @@ -161,6 +161,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,11 +173,12 @@ @Generated("by gapic-generator-java") public abstract class VmwareEngineStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java index fb1ab5d59e73..406be66067d6 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStubSettings.java @@ -196,6 +196,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -2488,7 +2489,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); } @@ -3029,7 +3030,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listPrivateCloudsSettings = PagedCallSettings.newBuilder(LIST_PRIVATE_CLOUDS_PAGE_STR_FACT); diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java index 8e4259eacce7..f65732ed718b 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ClusterName parse(String formattedString) { + public static @Nullable ClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ClusterName> values) { List list = new ArrayList<>(values.size()); for (ClusterName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java index f631ab962099..df30f60a3960 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsBindPermissionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static DnsBindPermissionName parse(String formattedString) { + public static @Nullable DnsBindPermissionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -91,7 +92,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DnsBindPermissionName> values) { List list = new ArrayList<>(values.size()); for (DnsBindPermissionName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java index e1f6415b3b35..739bdc9662e0 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/DnsForwardingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String privateCloud .toString(); } - public static DnsForwardingName parse(String formattedString) { + public static @Nullable DnsForwardingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable DnsForwardingName> values) { List list = new ArrayList<>(values.size()); for (DnsForwardingName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java index 6a31e53fc245..5bdbe1eceeac 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAccessRuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExternalAccessRuleName parse(String formattedString) { + public static @Nullable ExternalAccessRuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExternalAccessRuleName> values) { List list = new ArrayList<>(values.size()); for (ExternalAccessRuleName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java index af66197b8400..d2ab7231669a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ExternalAddressName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExternalAddressName parse(String formattedString) { + public static @Nullable ExternalAddressName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExternalAddressName> values) { List list = new ArrayList<>(values.size()); for (ExternalAddressName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java index 4b0079e275f3..52c08221105f 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/HcxActivationKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static HcxActivationKeyName parse(String formattedString) { + public static @Nullable HcxActivationKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable HcxActivationKeyName> values) { List list = new ArrayList<>(values.size()); for (HcxActivationKeyName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java index ce024dd18f49..6981aa480efc 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java index 6222df09f2a7..da0932be777a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServerName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static LoggingServerName parse(String formattedString) { + public static @Nullable LoggingServerName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LoggingServerName> values) { List list = new ArrayList<>(values.size()); for (LoggingServerName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java index 3709e199ac89..3d6ae2cd4433 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/ManagementDnsZoneBindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ManagementDnsZoneBindingName parse(String formattedString) { + public static @Nullable ManagementDnsZoneBindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -123,7 +124,7 @@ public static List parseList(List formatte return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ManagementDnsZoneBindingName> values) { List list = new ArrayList<>(values.size()); for (ManagementDnsZoneBindingName value : values) { if (value == null) { @@ -182,7 +183,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java index 93ffc7f2d7c3..1e9839185f8c 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPeeringName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String networkPeeri .toString(); } - public static NetworkPeeringName parse(String formattedString) { + public static @Nullable NetworkPeeringName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NetworkPeeringName> values) { List list = new ArrayList<>(values.size()); for (NetworkPeeringName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java index e48b6e10ab3d..7ab24022ca06 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NetworkPolicyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String networkPolic .toString(); } - public static NetworkPolicyName parse(String formattedString) { + public static @Nullable NetworkPolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NetworkPolicyName> values) { List list = new ArrayList<>(values.size()); for (NetworkPolicyName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java index 85541cbe556b..457afdff50e4 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static NodeName parse(String formattedString) { + public static @Nullable NodeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeName> values) { List list = new ArrayList<>(values.size()); for (NodeName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java index 6f315b05ec8e..b0cfe4878b14 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/NodeTypeName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String nodeType) { .toString(); } - public static NodeTypeName parse(String formattedString) { + public static @Nullable NodeTypeName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NodeTypeName> values) { List list = new ArrayList<>(values.size()); for (NodeTypeName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java index b5c132232b55..2e370d358021 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateCloudName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -89,7 +90,7 @@ public static String format(String project, String location, String privateCloud .toString(); } - public static PrivateCloudName parse(String formattedString) { + public static @Nullable PrivateCloudName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -107,7 +108,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateCloudName> values) { List list = new ArrayList<>(values.size()); for (PrivateCloudName value : values) { if (value == null) { @@ -156,7 +157,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java index 8eba314ec7c0..823bd0e673e6 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/PrivateConnectionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String privateConne .toString(); } - public static PrivateConnectionName parse(String formattedString) { + public static @Nullable PrivateConnectionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable PrivateConnectionName> values) { List list = new ArrayList<>(values.size()); for (PrivateConnectionName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java index 0fa9839e68af..1c0625064178 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/SubnetName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String location, String privateCloud .toString(); } - public static SubnetName parse(String formattedString) { + public static @Nullable SubnetName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubnetName> values) { List list = new ArrayList<>(values.size()); for (SubnetName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java index 47de48d310be..2b90b5904f9e 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineNetworkName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String vmwareEngine .toString(); } - public static VmwareEngineNetworkName parse(String formattedString) { + public static @Nullable VmwareEngineNetworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStri return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable VmwareEngineNetworkName> values) { List list = new ArrayList<>(values.size()); for (VmwareEngineNetworkName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java index 0082c9527f12..6300366d8621 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java @@ -41,6 +41,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. /** @@ -229,7 +230,7 @@ @NullMarked @Generated("by gapic-generator-java") public class VpcAccessServiceClient implements BackgroundResource { - private final VpcAccessServiceSettings settings; + private final @Nullable VpcAccessServiceSettings settings; private final VpcAccessServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -277,7 +278,7 @@ protected VpcAccessServiceClient(VpcAccessServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final VpcAccessServiceSettings getSettings() { + public final @Nullable VpcAccessServiceSettings getSettings() { return settings; } @@ -330,7 +331,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createConnectorAsync( - LocationName parent, String connectorId, Connector connector) { + @Nullable LocationName parent, String connectorId, Connector connector) { CreateConnectorRequest request = CreateConnectorRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -491,7 +492,7 @@ public final UnaryCallable createConnectorCal * @param name Required. Name of a Serverless VPC Access connector to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Connector getConnector(ConnectorName name) { + public final Connector getConnector(@Nullable ConnectorName name) { GetConnectorRequest request = GetConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getConnector(request); @@ -602,7 +603,7 @@ public final UnaryCallable getConnectorCallable( * @param parent Required. The project and location from which the routes should be listed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectorsPagedResponse listConnectors(LocationName parent) { + public final ListConnectorsPagedResponse listConnectors(@Nullable LocationName parent) { ListConnectorsRequest request = ListConnectorsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -764,7 +765,8 @@ public final ListConnectorsPagedResponse listConnectors(ListConnectorsRequest re * @param name Required. Name of a Serverless VPC Access connector to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteConnectorAsync(ConnectorName name) { + public final OperationFuture deleteConnectorAsync( + @Nullable ConnectorName name) { DeleteConnectorRequest request = DeleteConnectorRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteConnectorAsync(request); @@ -1048,8 +1050,8 @@ public static class ListConnectorsPage ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage> { private ListConnectorsPage( - PageContext context, - ListConnectorsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectorsResponse response) { super(context, response); } @@ -1059,14 +1061,14 @@ private static ListConnectorsPage createEmptyPage() { @Override protected ListConnectorsPage createPage( - PageContext context, - ListConnectorsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectorsResponse response) { return new ListConnectorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1080,7 +1082,8 @@ public static class ListConnectorsFixedSizeCollection ListConnectorsPage, ListConnectorsFixedSizeCollection> { - private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { + private ListConnectorsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1090,7 +1093,7 @@ private static ListConnectorsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectorsFixedSizeCollection(pages, collectionSize); } } @@ -1124,8 +1127,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1135,14 +1138,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1156,7 +1159,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1166,7 +1170,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java index 21cac496d628..08987ab19c3e 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java @@ -41,6 +41,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -218,7 +219,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); } @@ -238,7 +239,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(VpcAccessServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java index 233fc603d4e5..571ceb77bcc9 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java @@ -36,6 +36,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,11 +48,12 @@ @Generated("by gapic-generator-java") public abstract class VpcAccessServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index df04b4d4c165..da1048cf70e9 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -412,7 +413,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); } @@ -508,7 +509,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createConnectorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java index 2cf108975335..b710649e5c08 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String connector) { .toString(); } - public static ConnectorName parse(String formattedString) { + public static @Nullable ConnectorName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ConnectorName> values) { List list = new ArrayList<>(values.size()); for (ConnectorName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java index ca7c98d4e903..5d83292f671a 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java index f49be9985223..c861e2806dd8 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java @@ -43,6 +43,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. /** @@ -229,7 +230,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WebRiskServiceClient implements BackgroundResource { - private final WebRiskServiceSettings settings; + private final @Nullable WebRiskServiceSettings settings; private final WebRiskServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -277,7 +278,7 @@ protected WebRiskServiceClient(WebRiskServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WebRiskServiceSettings getSettings() { + public final @Nullable WebRiskServiceSettings getSettings() { return settings; } @@ -650,7 +651,7 @@ public final UnaryCallable searchHash * @param submission Required. The submission that contains the content of the phishing report. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Submission createSubmission(ProjectName parent, Submission submission) { + public final Submission createSubmission(@Nullable ProjectName parent, Submission submission) { CreateSubmissionRequest request = CreateSubmissionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -794,7 +795,7 @@ public final UnaryCallable createSubmission * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture submitUriAsync( - ProjectName parent, Submission submission) { + @Nullable ProjectName parent, Submission submission) { SubmitUriRequest request = SubmitUriRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java index 0e3fe76ee924..87e982736472 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java @@ -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. /** @@ -213,7 +214,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); } @@ -233,7 +234,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebRiskServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java index 5484161509ab..c52834373c1d 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java @@ -33,6 +33,7 @@ import com.google.webrisk.v1.SubmitUriRequest; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -44,11 +45,12 @@ @Generated("by gapic-generator-java") public abstract class WebRiskServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java index 31f2510563be..c3224813347b 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java @@ -60,6 +60,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -285,7 +286,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); } @@ -379,7 +380,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); computeThreatListDiffSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java index d6ef28083bd8..4e784bd720a9 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java @@ -34,6 +34,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. /** @@ -187,7 +188,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WebRiskServiceV1Beta1Client implements BackgroundResource { - private final WebRiskServiceV1Beta1Settings settings; + private final @Nullable WebRiskServiceV1Beta1Settings settings; private final WebRiskServiceV1Beta1Stub stub; /** Constructs an instance of WebRiskServiceV1Beta1Client with default settings. */ @@ -227,7 +228,7 @@ protected WebRiskServiceV1Beta1Client(WebRiskServiceV1Beta1Stub stub) { this.stub = stub; } - public final WebRiskServiceV1Beta1Settings getSettings() { + public final @Nullable WebRiskServiceV1Beta1Settings getSettings() { return settings; } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java index 751cae480923..531d8fa78177 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebRiskServiceV1Beta1StubSettings.newBuilder(clientContext)); } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java index 3a7430bc0958..584f3072563d 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java @@ -51,6 +51,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -307,7 +308,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); computeThreatListDiffSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ProjectName.java b/java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ProjectName.java index 6603b7e82c16..dbf71f7f1c49 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ProjectName.java +++ b/java-webrisk/proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index 6518aaedc584..7f1377387225 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -33,6 +33,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. /** @@ -317,7 +318,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WebSecurityScannerClient implements BackgroundResource { - private final WebSecurityScannerSettings settings; + private final @Nullable WebSecurityScannerSettings settings; private final WebSecurityScannerStub stub; /** Constructs an instance of WebSecurityScannerClient with default settings. */ @@ -357,7 +358,7 @@ protected WebSecurityScannerClient(WebSecurityScannerStub stub) { this.stub = stub; } - public final WebSecurityScannerSettings getSettings() { + public final @Nullable WebSecurityScannerSettings getSettings() { return settings; } @@ -1318,8 +1319,8 @@ public static class ListScanConfigsPage ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage> { private ListScanConfigsPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { super(context, response); } @@ -1329,14 +1330,14 @@ private static ListScanConfigsPage createEmptyPage() { @Override protected ListScanConfigsPage createPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { return new ListScanConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1351,7 +1352,7 @@ public static class ListScanConfigsFixedSizeCollection ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1361,7 +1362,7 @@ private static ListScanConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListScanConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanConfigsFixedSizeCollection(pages, collectionSize); } } @@ -1394,8 +1395,8 @@ public static class ListScanRunsPage extends AbstractPage { private ListScanRunsPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { super(context, response); } @@ -1405,14 +1406,14 @@ private static ListScanRunsPage createEmptyPage() { @Override protected ListScanRunsPage createPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { return new ListScanRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1426,7 +1427,8 @@ public static class ListScanRunsFixedSizeCollection ListScanRunsPage, ListScanRunsFixedSizeCollection> { - private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { + private ListScanRunsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1436,7 +1438,7 @@ private static ListScanRunsFixedSizeCollection createEmptyCollection() { @Override protected ListScanRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanRunsFixedSizeCollection(pages, collectionSize); } } @@ -1470,8 +1472,8 @@ public static class ListCrawledUrlsPage ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage> { private ListCrawledUrlsPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { super(context, response); } @@ -1481,14 +1483,14 @@ private static ListCrawledUrlsPage createEmptyPage() { @Override protected ListCrawledUrlsPage createPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { return new ListCrawledUrlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1503,7 +1505,7 @@ public static class ListCrawledUrlsFixedSizeCollection ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1513,7 +1515,7 @@ private static ListCrawledUrlsFixedSizeCollection createEmptyCollection() { @Override protected ListCrawledUrlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCrawledUrlsFixedSizeCollection(pages, collectionSize); } } @@ -1546,8 +1548,8 @@ public static class ListFindingsPage extends AbstractPage { private ListFindingsPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { super(context, response); } @@ -1557,14 +1559,14 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1578,7 +1580,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1588,7 +1591,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 2dee867746e8..56a4b18ba9b9 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,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); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebSecurityScannerStubSettings.newBuilder(clientContext)); } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index b39fac4080c2..511924adbb05 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -545,7 +546,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); } @@ -658,7 +659,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createScanConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index aa75b3bf8917..9b6e904f6926 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -35,6 +35,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. /** @@ -381,7 +382,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WebSecurityScannerClient implements BackgroundResource { - private final WebSecurityScannerSettings settings; + private final @Nullable WebSecurityScannerSettings settings; private final WebSecurityScannerStub stub; /** Constructs an instance of WebSecurityScannerClient with default settings. */ @@ -421,7 +422,7 @@ protected WebSecurityScannerClient(WebSecurityScannerStub stub) { this.stub = stub; } - public final WebSecurityScannerSettings getSettings() { + public final @Nullable WebSecurityScannerSettings getSettings() { return settings; } @@ -453,7 +454,7 @@ public WebSecurityScannerStub getStub() { * @param scanConfig Required. The ScanConfig to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConfig) { + public final ScanConfig createScanConfig(@Nullable ProjectName parent, ScanConfig scanConfig) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -572,7 +573,7 @@ public final UnaryCallable createScanConfig * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteScanConfig(ScanConfigName name) { + public final void deleteScanConfig(@Nullable ScanConfigName name) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteScanConfig(request); @@ -683,7 +684,7 @@ public final UnaryCallable deleteScanConfigCalla * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanConfig getScanConfig(ScanConfigName name) { + public final ScanConfig getScanConfig(@Nullable ScanConfigName name) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScanConfig(request); @@ -796,7 +797,7 @@ public final UnaryCallable getScanConfigCallab * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { + public final ListScanConfigsPagedResponse listScanConfigs(@Nullable ProjectName parent) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1054,7 +1055,7 @@ public final UnaryCallable updateScanConfig * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun startScanRun(ScanConfigName name) { + public final ScanRun startScanRun(@Nullable ScanConfigName name) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startScanRun(request); @@ -1165,7 +1166,7 @@ public final UnaryCallable startScanRunCallable() * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun getScanRun(ScanRunName name) { + public final ScanRun getScanRun(@Nullable ScanRunName name) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScanRun(request); @@ -1277,7 +1278,7 @@ public final UnaryCallable getScanRunCallable() { * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { + public final ListScanRunsPagedResponse listScanRuns(@Nullable ScanConfigName parent) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1440,7 +1441,7 @@ public final UnaryCallable listScanRu * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun stopScanRun(ScanRunName name) { + public final ScanRun stopScanRun(@Nullable ScanRunName name) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopScanRun(request); @@ -1553,7 +1554,7 @@ public final UnaryCallable stopScanRunCallable() { * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { + public final ListCrawledUrlsPagedResponse listCrawledUrls(@Nullable ScanRunName parent) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1718,7 +1719,7 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding getFinding(FindingName name) { + public final Finding getFinding(@Nullable FindingName name) { GetFindingRequest request = GetFindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFinding(request); @@ -1840,7 +1841,7 @@ public final UnaryCallable getFindingCallable() { * operator: '='. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsPagedResponse listFindings(ScanRunName parent, String filter) { + public final ListFindingsPagedResponse listFindings(@Nullable ScanRunName parent, String filter) { ListFindingsRequest request = ListFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2012,7 +2013,7 @@ public final UnaryCallable listFindin * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName parent) { + public final ListFindingTypeStatsResponse listFindingTypeStats(@Nullable ScanRunName parent) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2166,8 +2167,8 @@ public static class ListScanConfigsPage ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage> { private ListScanConfigsPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { super(context, response); } @@ -2177,14 +2178,14 @@ private static ListScanConfigsPage createEmptyPage() { @Override protected ListScanConfigsPage createPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { return new ListScanConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2199,7 +2200,7 @@ public static class ListScanConfigsFixedSizeCollection ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2209,7 +2210,7 @@ private static ListScanConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListScanConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2242,8 +2243,8 @@ public static class ListScanRunsPage extends AbstractPage { private ListScanRunsPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { super(context, response); } @@ -2253,14 +2254,14 @@ private static ListScanRunsPage createEmptyPage() { @Override protected ListScanRunsPage createPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { return new ListScanRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2274,7 +2275,8 @@ public static class ListScanRunsFixedSizeCollection ListScanRunsPage, ListScanRunsFixedSizeCollection> { - private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { + private ListScanRunsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2284,7 +2286,7 @@ private static ListScanRunsFixedSizeCollection createEmptyCollection() { @Override protected ListScanRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanRunsFixedSizeCollection(pages, collectionSize); } } @@ -2318,8 +2320,8 @@ public static class ListCrawledUrlsPage ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage> { private ListCrawledUrlsPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { super(context, response); } @@ -2329,14 +2331,14 @@ private static ListCrawledUrlsPage createEmptyPage() { @Override protected ListCrawledUrlsPage createPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { return new ListCrawledUrlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2351,7 +2353,7 @@ public static class ListCrawledUrlsFixedSizeCollection ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2361,7 +2363,7 @@ private static ListCrawledUrlsFixedSizeCollection createEmptyCollection() { @Override protected ListCrawledUrlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCrawledUrlsFixedSizeCollection(pages, collectionSize); } } @@ -2394,8 +2396,8 @@ public static class ListFindingsPage extends AbstractPage { private ListFindingsPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { super(context, response); } @@ -2405,14 +2407,14 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2426,7 +2428,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2436,7 +2439,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java index 21e9133a7c73..6771918b5eb0 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebSecurityScannerStubSettings.newBuilder(clientContext)); } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index 3fbb6cf022cb..7f20d69f2b88 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -546,7 +547,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); } @@ -659,7 +660,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createScanConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index cc97c6d2a4d9..663d2088cf7b 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -35,6 +35,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. /** @@ -381,7 +382,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WebSecurityScannerClient implements BackgroundResource { - private final WebSecurityScannerSettings settings; + private final @Nullable WebSecurityScannerSettings settings; private final WebSecurityScannerStub stub; /** Constructs an instance of WebSecurityScannerClient with default settings. */ @@ -421,7 +422,7 @@ protected WebSecurityScannerClient(WebSecurityScannerStub stub) { this.stub = stub; } - public final WebSecurityScannerSettings getSettings() { + public final @Nullable WebSecurityScannerSettings getSettings() { return settings; } @@ -453,7 +454,7 @@ public WebSecurityScannerStub getStub() { * @param scanConfig Required. The ScanConfig to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConfig) { + public final ScanConfig createScanConfig(@Nullable ProjectName parent, ScanConfig scanConfig) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -572,7 +573,7 @@ public final UnaryCallable createScanConfig * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteScanConfig(ScanConfigName name) { + public final void deleteScanConfig(@Nullable ScanConfigName name) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteScanConfig(request); @@ -683,7 +684,7 @@ public final UnaryCallable deleteScanConfigCalla * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanConfig getScanConfig(ScanConfigName name) { + public final ScanConfig getScanConfig(@Nullable ScanConfigName name) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScanConfig(request); @@ -796,7 +797,7 @@ public final UnaryCallable getScanConfigCallab * the format 'projects/{projectId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { + public final ListScanConfigsPagedResponse listScanConfigs(@Nullable ProjectName parent) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1054,7 +1055,7 @@ public final UnaryCallable updateScanConfig * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun startScanRun(ScanConfigName name) { + public final ScanRun startScanRun(@Nullable ScanConfigName name) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startScanRun(request); @@ -1165,7 +1166,7 @@ public final UnaryCallable startScanRunCallable() * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun getScanRun(ScanRunName name) { + public final ScanRun getScanRun(@Nullable ScanRunName name) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getScanRun(request); @@ -1277,7 +1278,7 @@ public final UnaryCallable getScanRunCallable() { * format 'projects/{projectId}/scanConfigs/{scanConfigId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { + public final ListScanRunsPagedResponse listScanRuns(@Nullable ScanConfigName parent) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1440,7 +1441,7 @@ public final UnaryCallable listScanRu * format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ScanRun stopScanRun(ScanRunName name) { + public final ScanRun stopScanRun(@Nullable ScanRunName name) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopScanRun(request); @@ -1553,7 +1554,7 @@ public final UnaryCallable stopScanRunCallable() { * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { + public final ListCrawledUrlsPagedResponse listCrawledUrls(@Nullable ScanRunName parent) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1718,7 +1719,7 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Finding getFinding(FindingName name) { + public final Finding getFinding(@Nullable FindingName name) { GetFindingRequest request = GetFindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFinding(request); @@ -1840,7 +1841,7 @@ public final UnaryCallable getFindingCallable() { * operator: '='. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsPagedResponse listFindings(ScanRunName parent, String filter) { + public final ListFindingsPagedResponse listFindings(@Nullable ScanRunName parent, String filter) { ListFindingsRequest request = ListFindingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2012,7 +2013,7 @@ public final UnaryCallable listFindin * the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName parent) { + public final ListFindingTypeStatsResponse listFindingTypeStats(@Nullable ScanRunName parent) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2166,8 +2167,8 @@ public static class ListScanConfigsPage ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage> { private ListScanConfigsPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { super(context, response); } @@ -2177,14 +2178,14 @@ private static ListScanConfigsPage createEmptyPage() { @Override protected ListScanConfigsPage createPage( - PageContext context, - ListScanConfigsResponse response) { + @Nullable PageContext context, + @Nullable ListScanConfigsResponse response) { return new ListScanConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2199,7 +2200,7 @@ public static class ListScanConfigsFixedSizeCollection ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2209,7 +2210,7 @@ private static ListScanConfigsFixedSizeCollection createEmptyCollection() { @Override protected ListScanConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanConfigsFixedSizeCollection(pages, collectionSize); } } @@ -2242,8 +2243,8 @@ public static class ListScanRunsPage extends AbstractPage { private ListScanRunsPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { super(context, response); } @@ -2253,14 +2254,14 @@ private static ListScanRunsPage createEmptyPage() { @Override protected ListScanRunsPage createPage( - PageContext context, - ListScanRunsResponse response) { + @Nullable PageContext context, + @Nullable ListScanRunsResponse response) { return new ListScanRunsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2274,7 +2275,8 @@ public static class ListScanRunsFixedSizeCollection ListScanRunsPage, ListScanRunsFixedSizeCollection> { - private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { + private ListScanRunsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2284,7 +2286,7 @@ private static ListScanRunsFixedSizeCollection createEmptyCollection() { @Override protected ListScanRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScanRunsFixedSizeCollection(pages, collectionSize); } } @@ -2318,8 +2320,8 @@ public static class ListCrawledUrlsPage ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage> { private ListCrawledUrlsPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { super(context, response); } @@ -2329,14 +2331,14 @@ private static ListCrawledUrlsPage createEmptyPage() { @Override protected ListCrawledUrlsPage createPage( - PageContext context, - ListCrawledUrlsResponse response) { + @Nullable PageContext context, + @Nullable ListCrawledUrlsResponse response) { return new ListCrawledUrlsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2351,7 +2353,7 @@ public static class ListCrawledUrlsFixedSizeCollection ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2361,7 +2363,7 @@ private static ListCrawledUrlsFixedSizeCollection createEmptyCollection() { @Override protected ListCrawledUrlsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCrawledUrlsFixedSizeCollection(pages, collectionSize); } } @@ -2394,8 +2396,8 @@ public static class ListFindingsPage extends AbstractPage { private ListFindingsPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { super(context, response); } @@ -2405,14 +2407,14 @@ private static ListFindingsPage createEmptyPage() { @Override protected ListFindingsPage createPage( - PageContext context, - ListFindingsResponse response) { + @Nullable PageContext context, + @Nullable ListFindingsResponse response) { return new ListFindingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2426,7 +2428,8 @@ public static class ListFindingsFixedSizeCollection ListFindingsPage, ListFindingsFixedSizeCollection> { - private ListFindingsFixedSizeCollection(List pages, int collectionSize) { + private ListFindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2436,7 +2439,7 @@ private static ListFindingsFixedSizeCollection createEmptyCollection() { @Override protected ListFindingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListFindingsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java index 93e0ac219cf7..1abe483c9d4a 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java @@ -39,6 +39,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,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); } @@ -245,7 +246,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WebSecurityScannerStubSettings.newBuilder(clientContext)); } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index d199237a9031..b9bc01b50828 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -546,7 +547,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); } @@ -659,7 +660,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createScanConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java index 085ae03ebb5e..2f0f709b1a15 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String scanConfig, String scanRun, S .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java index 8942aa33573d..1a57f2a9e566 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java index 94ed5bb86fb1..77376abfb2ba 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String scanConfig) { return newBuilder().setProject(project).setScanConfig(scanConfig).build().toString(); } - public static ScanConfigName parse(String formattedString) { + public static @Nullable ScanConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScanConfigName> values) { List list = new ArrayList<>(values.size()); for (ScanConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java index f7feffae3918..98687930cd56 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String scanConfig, String scanRun) { .toString(); } - public static ScanRunName parse(String formattedString) { + public static @Nullable ScanRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScanRunName> values) { List list = new ArrayList<>(values.size()); for (ScanRunName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java index fe7927d4252e..f6eed5cecc2b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -98,7 +99,7 @@ public static String format(String project, String scanConfig, String scanRun, S .toString(); } - public static FindingName parse(String formattedString) { + public static @Nullable FindingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -120,7 +121,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FindingName> values) { List list = new ArrayList<>(values.size()); for (FindingName value : values) { if (value == null) { @@ -172,7 +173,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java index 7dea75ee9a0e..c79a880ac2ff 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java index 1bd4b9046cc1..9fd49a14d163 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String scanConfig) { return newBuilder().setProject(project).setScanConfig(scanConfig).build().toString(); } - public static ScanConfigName parse(String formattedString) { + public static @Nullable ScanConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScanConfigName> values) { List list = new ArrayList<>(values.size()); for (ScanConfigName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java index 534d3891b824..5b1d8b3b7a27 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String scanConfig, String scanRun) { .toString(); } - public static ScanRunName parse(String formattedString) { + public static @Nullable ScanRunName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ScanRunName> values) { List list = new ArrayList<>(values.size()); for (ScanRunName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java index 2ae37e366f65..86a047c0614c 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java @@ -32,6 +32,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. /** @@ -198,7 +199,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ExecutionsClient implements BackgroundResource { - private final ExecutionsSettings settings; + private final @Nullable ExecutionsSettings settings; private final ExecutionsStub stub; /** Constructs an instance of ExecutionsClient with default settings. */ @@ -236,7 +237,7 @@ protected ExecutionsClient(ExecutionsStub stub) { this.stub = stub; } - public final ExecutionsSettings getSettings() { + public final @Nullable ExecutionsSettings getSettings() { return settings; } @@ -270,7 +271,7 @@ public ExecutionsStub getStub() { * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(WorkflowName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable WorkflowName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -453,7 +454,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * @param execution Required. Execution to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution createExecution(WorkflowName parent, Execution execution) { + public final Execution createExecution(@Nullable WorkflowName parent, Execution execution) { CreateExecutionRequest request = CreateExecutionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -572,7 +573,7 @@ public final UnaryCallable createExecutionCal * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -689,7 +690,7 @@ public final UnaryCallable getExecutionCallable( * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution cancelExecution(ExecutionName name) { + public final Execution cancelExecution(@Nullable ExecutionName name) { CancelExecutionRequest request = CancelExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelExecution(request); @@ -841,8 +842,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -852,14 +853,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -873,7 +874,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -883,7 +885,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java index f97a6bf804d5..a510a382231a 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExecutionsStubSettings.newBuilder(clientContext)); } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java index 31cf7eca26ea..1116ed67713c 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -298,7 +299,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); } @@ -360,7 +361,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java index efd077a3c134..7d6b2f70c1e4 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java @@ -33,6 +33,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. /** @@ -200,7 +201,7 @@ @BetaApi @Generated("by gapic-generator-java") public class ExecutionsClient implements BackgroundResource { - private final ExecutionsSettings settings; + private final @Nullable ExecutionsSettings settings; private final ExecutionsStub stub; /** Constructs an instance of ExecutionsClient with default settings. */ @@ -238,7 +239,7 @@ protected ExecutionsClient(ExecutionsStub stub) { this.stub = stub; } - public final ExecutionsSettings getSettings() { + public final @Nullable ExecutionsSettings getSettings() { return settings; } @@ -272,7 +273,7 @@ public ExecutionsStub getStub() { * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(WorkflowName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable WorkflowName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -449,7 +450,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * @param execution Required. Execution to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution createExecution(WorkflowName parent, Execution execution) { + public final Execution createExecution(@Nullable WorkflowName parent, Execution execution) { CreateExecutionRequest request = CreateExecutionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -568,7 +569,7 @@ public final UnaryCallable createExecutionCal * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -685,7 +686,7 @@ public final UnaryCallable getExecutionCallable( * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution cancelExecution(ExecutionName name) { + public final Execution cancelExecution(@Nullable ExecutionName name) { CancelExecutionRequest request = CancelExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return cancelExecution(request); @@ -837,8 +838,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -848,14 +849,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -869,7 +870,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -879,7 +881,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java index 83b7e3b43bb5..732f9ec79dce 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java @@ -35,6 +35,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,7 +169,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); } @@ -188,7 +189,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ExecutionsStubSettings.newBuilder(clientContext)); } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java index 62b96371b95a..55d4b522a01b 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java @@ -59,6 +59,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -299,7 +300,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); } @@ -361,7 +362,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java index 42470dde0f30..5febccb2d63a 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String workflow, St .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java index 4c2c304adeeb..89b8c8c0421c 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static WorkflowName parse(String formattedString) { + public static @Nullable WorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowName> values) { List list = new ArrayList<>(values.size()); for (WorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java index ca75b848229e..fe729e9054d9 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String workflow, St .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java index 27173711e736..357527bd1d10 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static WorkflowName parse(String formattedString) { + public static @Nullable WorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowName> values) { List list = new ArrayList<>(values.size()); for (WorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java index 85f36144c258..12851349656c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java @@ -43,6 +43,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. /** @@ -273,7 +274,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WorkflowsClient implements BackgroundResource { - private final WorkflowsSettings settings; + private final @Nullable WorkflowsSettings settings; private final WorkflowsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -319,7 +320,7 @@ protected WorkflowsClient(WorkflowsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkflowsSettings getSettings() { + public final @Nullable WorkflowsSettings getSettings() { return settings; } @@ -368,7 +369,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowsPagedResponse listWorkflows(LocationName parent) { + public final ListWorkflowsPagedResponse listWorkflows(@Nullable LocationName parent) { ListWorkflowsRequest request = ListWorkflowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -535,7 +536,7 @@ public final UnaryCallable listWork * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workflow getWorkflow(WorkflowName name) { + public final Workflow getWorkflow(@Nullable WorkflowName name) { GetWorkflowRequest request = GetWorkflowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkflow(request); @@ -663,7 +664,7 @@ public final UnaryCallable getWorkflowCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkflowAsync( - LocationName parent, Workflow workflow, String workflowId) { + @Nullable LocationName parent, Workflow workflow, String workflowId) { CreateWorkflowRequest request = CreateWorkflowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -841,7 +842,8 @@ public final UnaryCallable createWorkflowCalla * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteWorkflowAsync(WorkflowName name) { + public final OperationFuture deleteWorkflowAsync( + @Nullable WorkflowName name) { DeleteWorkflowRequest request = DeleteWorkflowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWorkflowAsync(request); @@ -1409,8 +1411,8 @@ public static class ListWorkflowsPage ListWorkflowsRequest, ListWorkflowsResponse, Workflow, ListWorkflowsPage> { private ListWorkflowsPage( - PageContext context, - ListWorkflowsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkflowsResponse response) { super(context, response); } @@ -1420,14 +1422,14 @@ private static ListWorkflowsPage createEmptyPage() { @Override protected ListWorkflowsPage createPage( - PageContext context, - ListWorkflowsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkflowsResponse response) { return new ListWorkflowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1441,7 +1443,8 @@ public static class ListWorkflowsFixedSizeCollection ListWorkflowsPage, ListWorkflowsFixedSizeCollection> { - private ListWorkflowsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkflowsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1451,7 +1454,7 @@ private static ListWorkflowsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkflowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowsFixedSizeCollection(pages, collectionSize); } } @@ -1488,8 +1491,9 @@ public static class ListWorkflowRevisionsPage ListWorkflowRevisionsPage> { private ListWorkflowRevisionsPage( - PageContext context, - ListWorkflowRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkflowRevisionsResponse response) { super(context, response); } @@ -1499,14 +1503,16 @@ private static ListWorkflowRevisionsPage createEmptyPage() { @Override protected ListWorkflowRevisionsPage createPage( - PageContext context, - ListWorkflowRevisionsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkflowRevisionsResponse response) { return new ListWorkflowRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1521,7 +1527,7 @@ public static class ListWorkflowRevisionsFixedSizeCollection ListWorkflowRevisionsFixedSizeCollection> { private ListWorkflowRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1531,7 +1537,7 @@ private static ListWorkflowRevisionsFixedSizeCollection createEmptyCollection() @Override protected ListWorkflowRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowRevisionsFixedSizeCollection(pages, collectionSize); } } @@ -1565,8 +1571,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1576,14 +1582,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1597,7 +1603,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1607,7 +1614,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java index 730d4afd7644..c7d5722a903a 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java @@ -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. /** @@ -242,7 +243,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); } @@ -262,7 +263,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkflowsStubSettings.newBuilder(clientContext)); } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java index 3cd5a739b255..4788e9d99d20 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,11 +54,12 @@ @Generated("by gapic-generator-java") public abstract class WorkflowsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java index bf3a3c11a9df..09180fbc1c29 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -506,7 +507,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); } @@ -592,7 +593,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listWorkflowsSettings = PagedCallSettings.newBuilder(LIST_WORKFLOWS_PAGE_STR_FACT); diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java index 2b956dd904c8..ac0840db91f8 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java @@ -43,6 +43,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. /** @@ -259,7 +260,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WorkflowsClient implements BackgroundResource { - private final WorkflowsSettings settings; + private final @Nullable WorkflowsSettings settings; private final WorkflowsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -305,7 +306,7 @@ protected WorkflowsClient(WorkflowsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkflowsSettings getSettings() { + public final @Nullable WorkflowsSettings getSettings() { return settings; } @@ -354,7 +355,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * projects/{project}/locations/{location} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowsPagedResponse listWorkflows(LocationName parent) { + public final ListWorkflowsPagedResponse listWorkflows(@Nullable LocationName parent) { ListWorkflowsRequest request = ListWorkflowsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -521,7 +522,7 @@ public final UnaryCallable listWork * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workflow getWorkflow(WorkflowName name) { + public final Workflow getWorkflow(@Nullable WorkflowName name) { GetWorkflowRequest request = GetWorkflowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkflow(request); @@ -647,7 +648,7 @@ public final UnaryCallable getWorkflowCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkflowAsync( - LocationName parent, Workflow workflow, String workflowId) { + @Nullable LocationName parent, Workflow workflow, String workflowId) { CreateWorkflowRequest request = CreateWorkflowRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -825,7 +826,8 @@ public final UnaryCallable createWorkflowCalla * projects/{project}/locations/{location}/workflows/{workflow} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteWorkflowAsync(WorkflowName name) { + public final OperationFuture deleteWorkflowAsync( + @Nullable WorkflowName name) { DeleteWorkflowRequest request = DeleteWorkflowRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteWorkflowAsync(request); @@ -1287,8 +1289,8 @@ public static class ListWorkflowsPage ListWorkflowsRequest, ListWorkflowsResponse, Workflow, ListWorkflowsPage> { private ListWorkflowsPage( - PageContext context, - ListWorkflowsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkflowsResponse response) { super(context, response); } @@ -1298,14 +1300,14 @@ private static ListWorkflowsPage createEmptyPage() { @Override protected ListWorkflowsPage createPage( - PageContext context, - ListWorkflowsResponse response) { + @Nullable PageContext context, + @Nullable ListWorkflowsResponse response) { return new ListWorkflowsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1319,7 +1321,8 @@ public static class ListWorkflowsFixedSizeCollection ListWorkflowsPage, ListWorkflowsFixedSizeCollection> { - private ListWorkflowsFixedSizeCollection(List pages, int collectionSize) { + private ListWorkflowsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1329,7 +1332,7 @@ private static ListWorkflowsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkflowsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkflowsFixedSizeCollection(pages, collectionSize); } } @@ -1363,8 +1366,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -1374,14 +1377,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1395,7 +1398,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1405,7 +1409,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java index ffe808195a67..701ed7a8977c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -233,7 +234,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); } @@ -253,7 +254,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkflowsStubSettings.newBuilder(clientContext)); } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java index 6fc0579a9cef..f45a59f93f2c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java @@ -40,6 +40,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,11 +53,12 @@ @Generated("by gapic-generator-java") public abstract class WorkflowsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java index 95c93d762b82..e33634b42c57 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java @@ -73,6 +73,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -429,7 +430,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); } @@ -509,7 +510,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listWorkflowsSettings = PagedCallSettings.newBuilder(LIST_WORKFLOWS_PAGE_STR_FACT); diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java index 679b2f8a21d3..e84f8a4131b8 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java index 20121fe4aaa9..42f22647c0e6 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static WorkflowName parse(String formattedString) { + public static @Nullable WorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowName> values) { List list = new ArrayList<>(values.size()); for (WorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java index 88d75df4e32a..e5b0438223c1 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java index c078f12473a0..b25da2000559 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String workflow) { .toString(); } - public static WorkflowName parse(String formattedString) { + public static @Nullable WorkflowName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkflowName> values) { List list = new ArrayList<>(values.size()); for (WorkflowName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java index a71503e1abee..6acf7813cb61 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerClient.java @@ -43,6 +43,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. /** @@ -400,7 +401,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WorkloadManagerClient implements BackgroundResource { - private final WorkloadManagerSettings settings; + private final @Nullable WorkloadManagerSettings settings; private final WorkloadManagerStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -448,7 +449,7 @@ protected WorkloadManagerClient(WorkloadManagerStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkloadManagerSettings getSettings() { + public final @Nullable WorkloadManagerSettings getSettings() { return settings; } @@ -496,7 +497,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param parent Required. Parent value for ListEvaluationsRequest. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEvaluationsPagedResponse listEvaluations(LocationName parent) { + public final ListEvaluationsPagedResponse listEvaluations(@Nullable LocationName parent) { ListEvaluationsRequest request = ListEvaluationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -664,7 +665,7 @@ public final ListEvaluationsPagedResponse listEvaluations(ListEvaluationsRequest * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Evaluation getEvaluation(EvaluationName name) { + public final Evaluation getEvaluation(@Nullable EvaluationName name) { GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getEvaluation(request); @@ -780,7 +781,7 @@ public final UnaryCallable getEvaluationCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEvaluationAsync( - LocationName parent, Evaluation evaluation, String evaluationId) { + @Nullable LocationName parent, Evaluation evaluation, String evaluationId) { CreateEvaluationRequest request = CreateEvaluationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1073,7 +1074,7 @@ public final UnaryCallable updateEvaluationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEvaluationAsync( - EvaluationName name) { + @Nullable EvaluationName name) { DeleteEvaluationRequest request = DeleteEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteEvaluationAsync(request); @@ -1221,7 +1222,7 @@ public final UnaryCallable deleteEvaluationC * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExecutionsPagedResponse listExecutions(EvaluationName parent) { + public final ListExecutionsPagedResponse listExecutions(@Nullable EvaluationName parent) { ListExecutionsRequest request = ListExecutionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1391,7 +1392,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Execution getExecution(ExecutionName name) { + public final Execution getExecution(@Nullable ExecutionName name) { GetExecutionRequest request = GetExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExecution(request); @@ -1512,7 +1513,7 @@ public final UnaryCallable getExecutionCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture runEvaluationAsync( - EvaluationName name, Execution execution, String executionId) { + @Nullable EvaluationName name, Execution execution, String executionId) { RunEvaluationRequest request = RunEvaluationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1677,7 +1678,8 @@ public final UnaryCallable runEvaluationCallabl * @param name Required. Name of the resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteExecutionAsync(ExecutionName name) { + public final OperationFuture deleteExecutionAsync( + @Nullable ExecutionName name) { DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteExecutionAsync(request); @@ -1969,7 +1971,7 @@ public final ListExecutionResultsPagedResponse listExecutionResults( * available to all projects and all regions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRulesResponse listRules(LocationName parent) { + public final ListRulesResponse listRules(@Nullable LocationName parent) { ListRulesRequest request = ListRulesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listRules(request); @@ -2446,8 +2448,8 @@ public static class ListEvaluationsPage ListEvaluationsRequest, ListEvaluationsResponse, Evaluation, ListEvaluationsPage> { private ListEvaluationsPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { super(context, response); } @@ -2457,14 +2459,14 @@ private static ListEvaluationsPage createEmptyPage() { @Override protected ListEvaluationsPage createPage( - PageContext context, - ListEvaluationsResponse response) { + @Nullable PageContext context, + @Nullable ListEvaluationsResponse response) { return new ListEvaluationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2479,7 +2481,7 @@ public static class ListEvaluationsFixedSizeCollection ListEvaluationsFixedSizeCollection> { private ListEvaluationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2489,7 +2491,7 @@ private static ListEvaluationsFixedSizeCollection createEmptyCollection() { @Override protected ListEvaluationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListEvaluationsFixedSizeCollection(pages, collectionSize); } } @@ -2523,8 +2525,8 @@ public static class ListExecutionsPage ListExecutionsRequest, ListExecutionsResponse, Execution, ListExecutionsPage> { private ListExecutionsPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { super(context, response); } @@ -2534,14 +2536,14 @@ private static ListExecutionsPage createEmptyPage() { @Override protected ListExecutionsPage createPage( - PageContext context, - ListExecutionsResponse response) { + @Nullable PageContext context, + @Nullable ListExecutionsResponse response) { return new ListExecutionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2555,7 +2557,8 @@ public static class ListExecutionsFixedSizeCollection ListExecutionsPage, ListExecutionsFixedSizeCollection> { - private ListExecutionsFixedSizeCollection(List pages, int collectionSize) { + private ListExecutionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2565,7 +2568,7 @@ private static ListExecutionsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionsFixedSizeCollection(pages, collectionSize); } } @@ -2603,9 +2606,10 @@ public static class ListExecutionResultsPage ListExecutionResultsPage> { private ListExecutionResultsPage( - PageContext + @Nullable + PageContext context, - ListExecutionResultsResponse response) { + @Nullable ListExecutionResultsResponse response) { super(context, response); } @@ -2615,15 +2619,17 @@ private static ListExecutionResultsPage createEmptyPage() { @Override protected ListExecutionResultsPage createPage( - PageContext + @Nullable + PageContext context, - ListExecutionResultsResponse response) { + @Nullable ListExecutionResultsResponse response) { return new ListExecutionResultsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2639,7 +2645,7 @@ public static class ListExecutionResultsFixedSizeCollection ListExecutionResultsFixedSizeCollection> { private ListExecutionResultsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2649,7 +2655,7 @@ private static ListExecutionResultsFixedSizeCollection createEmptyCollection() { @Override protected ListExecutionResultsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExecutionResultsFixedSizeCollection(pages, collectionSize); } } @@ -2687,9 +2693,10 @@ public static class ListScannedResourcesPage ListScannedResourcesPage> { private ListScannedResourcesPage( - PageContext + @Nullable + PageContext context, - ListScannedResourcesResponse response) { + @Nullable ListScannedResourcesResponse response) { super(context, response); } @@ -2699,15 +2706,17 @@ private static ListScannedResourcesPage createEmptyPage() { @Override protected ListScannedResourcesPage createPage( - PageContext + @Nullable + PageContext context, - ListScannedResourcesResponse response) { + @Nullable ListScannedResourcesResponse response) { return new ListScannedResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -2723,7 +2732,7 @@ public static class ListScannedResourcesFixedSizeCollection ListScannedResourcesFixedSizeCollection> { private ListScannedResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2733,7 +2742,7 @@ private static ListScannedResourcesFixedSizeCollection createEmptyCollection() { @Override protected ListScannedResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListScannedResourcesFixedSizeCollection(pages, collectionSize); } } @@ -2767,8 +2776,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -2778,14 +2787,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2799,7 +2808,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2809,7 +2819,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java index fc5ce20fd476..0007bd433b78 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/WorkloadManagerSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -297,7 +298,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); } @@ -317,7 +318,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkloadManagerStubSettings.newBuilder(clientContext)); } diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java index 9cdfd79035a7..2f3ee561ca54 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStub.java @@ -54,6 +54,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,11 +66,12 @@ @Generated("by gapic-generator-java") public abstract class WorkloadManagerStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java index 2dcd74492462..bed49b758b20 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/WorkloadManagerStubSettings.java @@ -90,6 +90,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -710,7 +711,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); } @@ -847,7 +848,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listEvaluationsSettings = PagedCallSettings.newBuilder(LIST_EVALUATIONS_PAGE_STR_FACT); diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java index 723d547ea241..a2989b947b1b 100644 --- a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/EvaluationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String evaluation) .toString(); } - public static EvaluationName parse(String formattedString) { + public static @Nullable EvaluationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EvaluationName> values) { List list = new ArrayList<>(values.size()); for (EvaluationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java index a619e6f0a315..c59f5a6e5e21 100644 --- a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/ExecutionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static ExecutionName parse(String formattedString) { + public static @Nullable ExecutionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ExecutionName> values) { List list = new ArrayList<>(values.size()); for (ExecutionName value : values) { if (value == null) { @@ -174,7 +175,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java index cd735d5b09ee..bea312ac7623 100644 --- a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java index 67b0363378c7..cc53cb3a22d6 100644 --- a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/src/main/java/com/google/cloud/workloadmanager/v1/RuleName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -79,7 +80,7 @@ public static String format(String project, String location, String rule) { return newBuilder().setProject(project).setLocation(location).setRule(rule).build().toString(); } - public static RuleName parse(String formattedString) { + public static @Nullable RuleName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -97,7 +98,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable RuleName> values) { List list = new ArrayList<>(values.size()); for (RuleName value : values) { if (value == null) { @@ -146,7 +147,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java index 3350ea7c2828..a7dde7a4f80b 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java @@ -39,6 +39,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. /** @@ -249,7 +250,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SubscriptionsServiceClient implements BackgroundResource { - private final SubscriptionsServiceSettings settings; + private final @Nullable SubscriptionsServiceSettings settings; private final SubscriptionsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -297,7 +298,7 @@ protected SubscriptionsServiceClient(SubscriptionsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SubscriptionsServiceSettings getSettings() { + public final @Nullable SubscriptionsServiceSettings getSettings() { return settings; } @@ -479,7 +480,7 @@ public final UnaryCallable createSubscript * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriptionAsync( - SubscriptionName name) { + @Nullable SubscriptionName name) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -648,7 +649,7 @@ public final UnaryCallable deleteSubscript *

Format: `subscriptions/{subscription}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(SubscriptionName name) { + public final Subscription getSubscription(@Nullable SubscriptionName name) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSubscription(request); @@ -1086,7 +1087,7 @@ public final UnaryCallable updateSubscript * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - reactivateSubscriptionAsync(SubscriptionName name) { + reactivateSubscriptionAsync(@Nullable SubscriptionName name) { ReactivateSubscriptionRequest request = ReactivateSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1297,8 +1298,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -1308,14 +1310,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1330,7 +1334,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1340,7 +1344,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceSettings.java index dfe75baa1ef5..2ffb5c828cb7 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -239,7 +240,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); } @@ -260,7 +261,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SubscriptionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStub.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStub.java index c14db8d4e19b..95ace517fd07 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStub.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStub.java @@ -38,6 +38,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -49,11 +50,12 @@ @Generated("by gapic-generator-java") public abstract class SubscriptionsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java index 725d6d234740..d5fd6fc3b669 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -408,7 +409,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); } @@ -519,7 +520,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceClient.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceClient.java index 5439ab46bdf8..2725faefb2f0 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceClient.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceClient.java @@ -39,6 +39,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. /** @@ -250,7 +251,7 @@ @BetaApi @Generated("by gapic-generator-java") public class SubscriptionsServiceClient implements BackgroundResource { - private final SubscriptionsServiceSettings settings; + private final @Nullable SubscriptionsServiceSettings settings; private final SubscriptionsServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -298,7 +299,7 @@ protected SubscriptionsServiceClient(SubscriptionsServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final SubscriptionsServiceSettings getSettings() { + public final @Nullable SubscriptionsServiceSettings getSettings() { return settings; } @@ -480,7 +481,7 @@ public final UnaryCallable createSubscript * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriptionAsync( - SubscriptionName name) { + @Nullable SubscriptionName name) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -649,7 +650,7 @@ public final UnaryCallable deleteSubscript *

Format: `subscriptions/{subscription}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(SubscriptionName name) { + public final Subscription getSubscription(@Nullable SubscriptionName name) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSubscription(request); @@ -1092,7 +1093,7 @@ public final UnaryCallable updateSubscript * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture - reactivateSubscriptionAsync(SubscriptionName name) { + reactivateSubscriptionAsync(@Nullable SubscriptionName name) { ReactivateSubscriptionRequest request = ReactivateSubscriptionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1307,8 +1308,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -1318,14 +1320,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable PageContext + context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1340,7 +1344,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1350,7 +1354,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceSettings.java index 81a675ef1c62..703a9d471c46 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionsServiceSettings.java @@ -38,6 +38,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,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); } @@ -261,7 +262,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SubscriptionsServiceStubSettings.newBuilder(clientContext)); } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStub.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStub.java index e7e20d5b3ddf..0c2df0344bc5 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStub.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStub.java @@ -39,6 +39,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,11 +52,12 @@ @Generated("by gapic-generator-java") public abstract class SubscriptionsServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStubSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStubSettings.java index 8a8fad98e466..1481d7a49da1 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStubSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/SubscriptionsServiceStubSettings.java @@ -72,6 +72,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -414,7 +415,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); } @@ -525,7 +526,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionName.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionName.java index 87b8d7958677..5936c5c58f20 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionName.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String subscription) { return newBuilder().setSubscription(subscription).build().toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionName.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionName.java index 381abec68413..79f71fb399a9 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionName.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/src/main/java/com/google/apps/events/subscriptions/v1beta/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String subscription) { return newBuilder().setSubscription(subscription).build().toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java index 64d396485c8e..9b18cd84971a 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java @@ -43,6 +43,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. /** @@ -568,7 +569,7 @@ @NullMarked @Generated("by gapic-generator-java") public class WorkstationsClient implements BackgroundResource { - private final WorkstationsSettings settings; + private final @Nullable WorkstationsSettings settings; private final WorkstationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -615,7 +616,7 @@ protected WorkstationsClient(WorkstationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkstationsSettings getSettings() { + public final @Nullable WorkstationsSettings getSettings() { return settings; } @@ -662,7 +663,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkstationCluster getWorkstationCluster(WorkstationClusterName name) { + public final WorkstationCluster getWorkstationCluster(@Nullable WorkstationClusterName name) { GetWorkstationClusterRequest request = GetWorkstationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -783,7 +784,8 @@ public final WorkstationCluster getWorkstationCluster(GetWorkstationClusterReque * @param parent Required. Parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkstationClustersPagedResponse listWorkstationClusters(LocationName parent) { + public final ListWorkstationClustersPagedResponse listWorkstationClusters( + @Nullable LocationName parent) { ListWorkstationClustersRequest request = ListWorkstationClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -960,7 +962,9 @@ public final ListWorkstationClustersPagedResponse listWorkstationClusters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationClusterAsync( - LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId) { + @Nullable LocationName parent, + WorkstationCluster workstationCluster, + String workstationClusterId) { CreateWorkstationClusterRequest request = CreateWorkstationClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1261,7 +1265,7 @@ public final OperationFuture updateWorkst * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationClusterAsync( - WorkstationClusterName name) { + @Nullable WorkstationClusterName name) { DeleteWorkstationClusterRequest request = DeleteWorkstationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1424,7 +1428,7 @@ public final OperationFuture deleteWorkst * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkstationConfig getWorkstationConfig(WorkstationConfigName name) { + public final WorkstationConfig getWorkstationConfig(@Nullable WorkstationConfigName name) { GetWorkstationConfigRequest request = GetWorkstationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1557,7 +1561,7 @@ public final WorkstationConfig getWorkstationConfig(GetWorkstationConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( - WorkstationClusterName parent) { + @Nullable WorkstationClusterName parent) { ListWorkstationConfigsRequest request = ListWorkstationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1739,7 +1743,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConfigs( - WorkstationClusterName parent) { + @Nullable WorkstationClusterName parent) { ListUsableWorkstationConfigsRequest request = ListUsableWorkstationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1928,7 +1932,7 @@ public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConf * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationConfigAsync( - WorkstationClusterName parent, + @Nullable WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId) { CreateWorkstationConfigRequest request = @@ -2239,7 +2243,7 @@ public final OperationFuture updateWorksta * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationConfigAsync( - WorkstationConfigName name) { + @Nullable WorkstationConfigName name) { DeleteWorkstationConfigRequest request = DeleteWorkstationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2420,7 +2424,7 @@ public final OperationFuture deleteWorksta * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workstation getWorkstation(WorkstationName name) { + public final Workstation getWorkstation(@Nullable WorkstationName name) { GetWorkstationRequest request = GetWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkstation(request); @@ -2554,7 +2558,8 @@ public final UnaryCallable getWorkstationCal * @param parent Required. Parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkstationsPagedResponse listWorkstations(WorkstationConfigName parent) { + public final ListWorkstationsPagedResponse listWorkstations( + @Nullable WorkstationConfigName parent) { ListWorkstationsRequest request = ListWorkstationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2747,7 +2752,7 @@ public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsableWorkstationsPagedResponse listUsableWorkstations( - WorkstationConfigName parent) { + @Nullable WorkstationConfigName parent) { ListUsableWorkstationsRequest request = ListUsableWorkstationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2948,7 +2953,7 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationAsync( - WorkstationConfigName parent, Workstation workstation, String workstationId) { + @Nullable WorkstationConfigName parent, Workstation workstation, String workstationId) { CreateWorkstationRequest request = CreateWorkstationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3272,7 +3277,7 @@ public final UnaryCallable updateWorkstatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { DeleteWorkstationRequest request = DeleteWorkstationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3454,7 +3459,7 @@ public final UnaryCallable deleteWorkstatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { StartWorkstationRequest request = StartWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startWorkstationAsync(request); @@ -3637,7 +3642,7 @@ public final UnaryCallable startWorkstationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { StopWorkstationRequest request = StopWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopWorkstationAsync(request); @@ -3819,7 +3824,8 @@ public final UnaryCallable stopWorkstationCal * generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateAccessTokenResponse generateAccessToken(WorkstationName workstation) { + public final GenerateAccessTokenResponse generateAccessToken( + @Nullable WorkstationName workstation) { GenerateAccessTokenRequest request = GenerateAccessTokenRequest.newBuilder() .setWorkstation(workstation == null ? null : workstation.toString()) @@ -4238,10 +4244,11 @@ public static class ListWorkstationClustersPage ListWorkstationClustersPage> { private ListWorkstationClustersPage( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, - ListWorkstationClustersResponse response) { + @Nullable ListWorkstationClustersResponse response) { super(context, response); } @@ -4251,16 +4258,18 @@ private static ListWorkstationClustersPage createEmptyPage() { @Override protected ListWorkstationClustersPage createPage( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, - ListWorkstationClustersResponse response) { + @Nullable ListWorkstationClustersResponse response) { return new ListWorkstationClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, ApiFuture futureResponse) { @@ -4277,7 +4286,7 @@ public static class ListWorkstationClustersFixedSizeCollection ListWorkstationClustersFixedSizeCollection> { private ListWorkstationClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4287,7 +4296,7 @@ private static ListWorkstationClustersFixedSizeCollection createEmptyCollection( @Override protected ListWorkstationClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationClustersFixedSizeCollection(pages, collectionSize); } } @@ -4326,10 +4335,11 @@ public static class ListWorkstationConfigsPage ListWorkstationConfigsPage> { private ListWorkstationConfigsPage( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, - ListWorkstationConfigsResponse response) { + @Nullable ListWorkstationConfigsResponse response) { super(context, response); } @@ -4339,16 +4349,18 @@ private static ListWorkstationConfigsPage createEmptyPage() { @Override protected ListWorkstationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, - ListWorkstationConfigsResponse response) { + @Nullable ListWorkstationConfigsResponse response) { return new ListWorkstationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, ApiFuture futureResponse) { @@ -4365,7 +4377,7 @@ public static class ListWorkstationConfigsFixedSizeCollection ListWorkstationConfigsFixedSizeCollection> { private ListWorkstationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4375,7 +4387,7 @@ private static ListWorkstationConfigsFixedSizeCollection createEmptyCollection() @Override protected ListWorkstationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -4417,12 +4429,13 @@ public static class ListUsableWorkstationConfigsPage ListUsableWorkstationConfigsPage> { private ListUsableWorkstationConfigsPage( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> context, - ListUsableWorkstationConfigsResponse response) { + @Nullable ListUsableWorkstationConfigsResponse response) { super(context, response); } @@ -4432,18 +4445,20 @@ private static ListUsableWorkstationConfigsPage createEmptyPage() { @Override protected ListUsableWorkstationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> context, - ListUsableWorkstationConfigsResponse response) { + @Nullable ListUsableWorkstationConfigsResponse response) { return new ListUsableWorkstationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> @@ -4462,7 +4477,7 @@ public static class ListUsableWorkstationConfigsFixedSizeCollection ListUsableWorkstationConfigsFixedSizeCollection> { private ListUsableWorkstationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4472,7 +4487,7 @@ private static ListUsableWorkstationConfigsFixedSizeCollection createEmptyCollec @Override protected ListUsableWorkstationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableWorkstationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -4506,8 +4521,9 @@ public static class ListWorkstationsPage ListWorkstationsRequest, ListWorkstationsResponse, Workstation, ListWorkstationsPage> { private ListWorkstationsPage( - PageContext context, - ListWorkstationsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkstationsResponse response) { super(context, response); } @@ -4517,14 +4533,16 @@ private static ListWorkstationsPage createEmptyPage() { @Override protected ListWorkstationsPage createPage( - PageContext context, - ListWorkstationsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkstationsResponse response) { return new ListWorkstationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4539,7 +4557,7 @@ public static class ListWorkstationsFixedSizeCollection ListWorkstationsFixedSizeCollection> { private ListWorkstationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4549,7 +4567,7 @@ private static ListWorkstationsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkstationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationsFixedSizeCollection(pages, collectionSize); } } @@ -4587,9 +4605,10 @@ public static class ListUsableWorkstationsPage ListUsableWorkstationsPage> { private ListUsableWorkstationsPage( - PageContext + @Nullable + PageContext context, - ListUsableWorkstationsResponse response) { + @Nullable ListUsableWorkstationsResponse response) { super(context, response); } @@ -4599,15 +4618,17 @@ private static ListUsableWorkstationsPage createEmptyPage() { @Override protected ListUsableWorkstationsPage createPage( - PageContext + @Nullable + PageContext context, - ListUsableWorkstationsResponse response) { + @Nullable ListUsableWorkstationsResponse response) { return new ListUsableWorkstationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4623,7 +4644,7 @@ public static class ListUsableWorkstationsFixedSizeCollection ListUsableWorkstationsFixedSizeCollection> { private ListUsableWorkstationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4633,7 +4654,7 @@ private static ListUsableWorkstationsFixedSizeCollection createEmptyCollection() @Override protected ListUsableWorkstationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableWorkstationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java index 7ca14b07c0e3..1efa58d238c8 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -399,7 +400,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); } @@ -419,7 +420,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkstationsStubSettings.newBuilder(clientContext)); } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java index f43e21bd27cf..1dc5bd3c44fb 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java @@ -64,6 +64,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -75,11 +76,12 @@ @Generated("by gapic-generator-java") public abstract class WorkstationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java index 8b27f721acfc..526dfe71f728 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java @@ -98,6 +98,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -913,7 +914,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); } @@ -1121,7 +1122,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java index 226bd879eb8a..48bd1dee0dad 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java @@ -43,6 +43,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. /** @@ -589,7 +590,7 @@ @BetaApi @Generated("by gapic-generator-java") public class WorkstationsClient implements BackgroundResource { - private final WorkstationsSettings settings; + private final @Nullable WorkstationsSettings settings; private final WorkstationsStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -636,7 +637,7 @@ protected WorkstationsClient(WorkstationsStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final WorkstationsSettings getSettings() { + public final @Nullable WorkstationsSettings getSettings() { return settings; } @@ -683,7 +684,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkstationCluster getWorkstationCluster(WorkstationClusterName name) { + public final WorkstationCluster getWorkstationCluster(@Nullable WorkstationClusterName name) { GetWorkstationClusterRequest request = GetWorkstationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -804,7 +805,8 @@ public final WorkstationCluster getWorkstationCluster(GetWorkstationClusterReque * @param parent Required. Parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkstationClustersPagedResponse listWorkstationClusters(LocationName parent) { + public final ListWorkstationClustersPagedResponse listWorkstationClusters( + @Nullable LocationName parent) { ListWorkstationClustersRequest request = ListWorkstationClustersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -981,7 +983,9 @@ public final ListWorkstationClustersPagedResponse listWorkstationClusters( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationClusterAsync( - LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId) { + @Nullable LocationName parent, + WorkstationCluster workstationCluster, + String workstationClusterId) { CreateWorkstationClusterRequest request = CreateWorkstationClusterRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1282,7 +1286,7 @@ public final OperationFuture updateWorkst * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationClusterAsync( - WorkstationClusterName name) { + @Nullable WorkstationClusterName name) { DeleteWorkstationClusterRequest request = DeleteWorkstationClusterRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1445,7 +1449,7 @@ public final OperationFuture deleteWorkst * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final WorkstationConfig getWorkstationConfig(WorkstationConfigName name) { + public final WorkstationConfig getWorkstationConfig(@Nullable WorkstationConfigName name) { GetWorkstationConfigRequest request = GetWorkstationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1578,7 +1582,7 @@ public final WorkstationConfig getWorkstationConfig(GetWorkstationConfigRequest * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( - WorkstationClusterName parent) { + @Nullable WorkstationClusterName parent) { ListWorkstationConfigsRequest request = ListWorkstationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1760,7 +1764,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConfigs( - WorkstationClusterName parent) { + @Nullable WorkstationClusterName parent) { ListUsableWorkstationConfigsRequest request = ListUsableWorkstationConfigsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1949,7 +1953,7 @@ public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConf * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationConfigAsync( - WorkstationClusterName parent, + @Nullable WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId) { CreateWorkstationConfigRequest request = @@ -2260,7 +2264,7 @@ public final OperationFuture updateWorksta * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationConfigAsync( - WorkstationConfigName name) { + @Nullable WorkstationConfigName name) { DeleteWorkstationConfigRequest request = DeleteWorkstationConfigRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2441,7 +2445,7 @@ public final OperationFuture deleteWorksta * @param name Required. Name of the requested resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Workstation getWorkstation(WorkstationName name) { + public final Workstation getWorkstation(@Nullable WorkstationName name) { GetWorkstationRequest request = GetWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getWorkstation(request); @@ -2575,7 +2579,8 @@ public final UnaryCallable getWorkstationCal * @param parent Required. Parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkstationsPagedResponse listWorkstations(WorkstationConfigName parent) { + public final ListWorkstationsPagedResponse listWorkstations( + @Nullable WorkstationConfigName parent) { ListWorkstationsRequest request = ListWorkstationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2768,7 +2773,7 @@ public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsableWorkstationsPagedResponse listUsableWorkstations( - WorkstationConfigName parent) { + @Nullable WorkstationConfigName parent) { ListUsableWorkstationsRequest request = ListUsableWorkstationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2969,7 +2974,7 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createWorkstationAsync( - WorkstationConfigName parent, Workstation workstation, String workstationId) { + @Nullable WorkstationConfigName parent, Workstation workstation, String workstationId) { CreateWorkstationRequest request = CreateWorkstationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3293,7 +3298,7 @@ public final UnaryCallable updateWorkstatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { DeleteWorkstationRequest request = DeleteWorkstationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3475,7 +3480,7 @@ public final UnaryCallable deleteWorkstatio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture startWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { StartWorkstationRequest request = StartWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return startWorkstationAsync(request); @@ -3658,7 +3663,7 @@ public final UnaryCallable startWorkstationC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture stopWorkstationAsync( - WorkstationName name) { + @Nullable WorkstationName name) { StopWorkstationRequest request = StopWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return stopWorkstationAsync(request); @@ -3840,7 +3845,8 @@ public final UnaryCallable stopWorkstationCal * generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GenerateAccessTokenResponse generateAccessToken(WorkstationName workstation) { + public final GenerateAccessTokenResponse generateAccessToken( + @Nullable WorkstationName workstation) { GenerateAccessTokenRequest request = GenerateAccessTokenRequest.newBuilder() .setWorkstation(workstation == null ? null : workstation.toString()) @@ -3993,7 +3999,7 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture pushCredentialsAsync( - WorkstationName workstation) { + @Nullable WorkstationName workstation) { PushCredentialsRequest request = PushCredentialsRequest.newBuilder() .setWorkstation(workstation == null ? null : workstation.toString()) @@ -4455,10 +4461,11 @@ public static class ListWorkstationClustersPage ListWorkstationClustersPage> { private ListWorkstationClustersPage( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, - ListWorkstationClustersResponse response) { + @Nullable ListWorkstationClustersResponse response) { super(context, response); } @@ -4468,16 +4475,18 @@ private static ListWorkstationClustersPage createEmptyPage() { @Override protected ListWorkstationClustersPage createPage( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, - ListWorkstationClustersResponse response) { + @Nullable ListWorkstationClustersResponse response) { return new ListWorkstationClustersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> context, ApiFuture futureResponse) { @@ -4494,7 +4503,7 @@ public static class ListWorkstationClustersFixedSizeCollection ListWorkstationClustersFixedSizeCollection> { private ListWorkstationClustersFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4504,7 +4513,7 @@ private static ListWorkstationClustersFixedSizeCollection createEmptyCollection( @Override protected ListWorkstationClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationClustersFixedSizeCollection(pages, collectionSize); } } @@ -4543,10 +4552,11 @@ public static class ListWorkstationConfigsPage ListWorkstationConfigsPage> { private ListWorkstationConfigsPage( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, - ListWorkstationConfigsResponse response) { + @Nullable ListWorkstationConfigsResponse response) { super(context, response); } @@ -4556,16 +4566,18 @@ private static ListWorkstationConfigsPage createEmptyPage() { @Override protected ListWorkstationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, - ListWorkstationConfigsResponse response) { + @Nullable ListWorkstationConfigsResponse response) { return new ListWorkstationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> context, ApiFuture futureResponse) { @@ -4582,7 +4594,7 @@ public static class ListWorkstationConfigsFixedSizeCollection ListWorkstationConfigsFixedSizeCollection> { private ListWorkstationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4592,7 +4604,7 @@ private static ListWorkstationConfigsFixedSizeCollection createEmptyCollection() @Override protected ListWorkstationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -4634,12 +4646,13 @@ public static class ListUsableWorkstationConfigsPage ListUsableWorkstationConfigsPage> { private ListUsableWorkstationConfigsPage( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> context, - ListUsableWorkstationConfigsResponse response) { + @Nullable ListUsableWorkstationConfigsResponse response) { super(context, response); } @@ -4649,18 +4662,20 @@ private static ListUsableWorkstationConfigsPage createEmptyPage() { @Override protected ListUsableWorkstationConfigsPage createPage( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> context, - ListUsableWorkstationConfigsResponse response) { + @Nullable ListUsableWorkstationConfigsResponse response) { return new ListUsableWorkstationConfigsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< + @Nullable + PageContext< ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse, WorkstationConfig> @@ -4679,7 +4694,7 @@ public static class ListUsableWorkstationConfigsFixedSizeCollection ListUsableWorkstationConfigsFixedSizeCollection> { private ListUsableWorkstationConfigsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4689,7 +4704,7 @@ private static ListUsableWorkstationConfigsFixedSizeCollection createEmptyCollec @Override protected ListUsableWorkstationConfigsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableWorkstationConfigsFixedSizeCollection(pages, collectionSize); } } @@ -4723,8 +4738,9 @@ public static class ListWorkstationsPage ListWorkstationsRequest, ListWorkstationsResponse, Workstation, ListWorkstationsPage> { private ListWorkstationsPage( - PageContext context, - ListWorkstationsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkstationsResponse response) { super(context, response); } @@ -4734,14 +4750,16 @@ private static ListWorkstationsPage createEmptyPage() { @Override protected ListWorkstationsPage createPage( - PageContext context, - ListWorkstationsResponse response) { + @Nullable PageContext + context, + @Nullable ListWorkstationsResponse response) { return new ListWorkstationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4756,7 +4774,7 @@ public static class ListWorkstationsFixedSizeCollection ListWorkstationsFixedSizeCollection> { private ListWorkstationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4766,7 +4784,7 @@ private static ListWorkstationsFixedSizeCollection createEmptyCollection() { @Override protected ListWorkstationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListWorkstationsFixedSizeCollection(pages, collectionSize); } } @@ -4804,9 +4822,10 @@ public static class ListUsableWorkstationsPage ListUsableWorkstationsPage> { private ListUsableWorkstationsPage( - PageContext + @Nullable + PageContext context, - ListUsableWorkstationsResponse response) { + @Nullable ListUsableWorkstationsResponse response) { super(context, response); } @@ -4816,15 +4835,17 @@ private static ListUsableWorkstationsPage createEmptyPage() { @Override protected ListUsableWorkstationsPage createPage( - PageContext + @Nullable + PageContext context, - ListUsableWorkstationsResponse response) { + @Nullable ListUsableWorkstationsResponse response) { return new ListUsableWorkstationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); @@ -4840,7 +4861,7 @@ public static class ListUsableWorkstationsFixedSizeCollection ListUsableWorkstationsFixedSizeCollection> { private ListUsableWorkstationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4850,7 +4871,7 @@ private static ListUsableWorkstationsFixedSizeCollection createEmptyCollection() @Override protected ListUsableWorkstationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsableWorkstationsFixedSizeCollection(pages, collectionSize); } } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java index 07b1e97fe59b..4b2a3939aa08 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -411,7 +412,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); } @@ -431,7 +432,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WorkstationsStubSettings.newBuilder(clientContext)); } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java index e68aa659a2c1..df0e09ab800c 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java @@ -67,6 +67,7 @@ import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,11 +80,12 @@ @Generated("by gapic-generator-java") public abstract class WorkstationsStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java index 7070013e7ad3..9e5a2fca15f6 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java @@ -100,6 +100,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -930,7 +931,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); } @@ -1145,7 +1146,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java index 92a3fb7db753..052c4b58181f 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java index 27f3e2b97d6b..ecbd44c4f95a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String workstationC .toString(); } - public static WorkstationClusterName parse(String formattedString) { + public static @Nullable WorkstationClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationClusterName> values) { List list = new ArrayList<>(values.size()); for (WorkstationClusterName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java index 2511e2857e42..5451e0f7d522 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkstationConfigName parse(String formattedString) { + public static @Nullable WorkstationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationConfigName> values) { List list = new ArrayList<>(values.size()); for (WorkstationConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java index 3352bbeb149e..417dee33a3f8 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static WorkstationName parse(String formattedString) { + public static @Nullable WorkstationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationName> values) { List list = new ArrayList<>(values.size()); for (WorkstationName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java index 16c1cc916bd7..701bf8d08b56 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java index 5eb928e82705..16ee97298d09 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -90,7 +91,7 @@ public static String format(String project, String location, String workstationC .toString(); } - public static WorkstationClusterName parse(String formattedString) { + public static @Nullable WorkstationClusterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -109,7 +110,7 @@ public static List parseList(List formattedStrin return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationClusterName> values) { List list = new ArrayList<>(values.size()); for (WorkstationClusterName value : values) { if (value == null) { @@ -158,7 +159,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java index 739aa56aa176..aa628534f53a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -100,7 +101,7 @@ public static String format( .toString(); } - public static WorkstationConfigName parse(String formattedString) { + public static @Nullable WorkstationConfigName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -122,7 +123,7 @@ public static List parseList(List formattedString return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationConfigName> values) { List list = new ArrayList<>(values.size()); for (WorkstationConfigName value : values) { if (value == null) { @@ -181,7 +182,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java index 91c67a3f34f2..9941bf511cbc 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -118,7 +119,7 @@ public static String format( .toString(); } - public static WorkstationName parse(String formattedString) { + public static @Nullable WorkstationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -141,7 +142,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable WorkstationName> values) { List list = new ArrayList<>(values.size()); for (WorkstationName value : values) { if (value == null) { @@ -206,7 +207,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/ConcreteReference.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/ConcreteReference.java index 48288ab817a1..b768d5b2ff4f 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/ConcreteReference.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/ConcreteReference.java @@ -199,6 +199,11 @@ public Reference copyAndSetGenerics(List generics) { return toBuilder().setGenerics(generics).build(); } + @Override + public Reference copyAndSetNullable(boolean isNullable) { + return toBuilder().setIsNullable(isNullable).build(); + } + public static ConcreteReference withClazz(Class clazz) { return builder().setClazz(clazz).build(); } @@ -215,7 +220,8 @@ public static Builder builder() { return new AutoValue_ConcreteReference.Builder() .setUseFullName(false) .setGenerics(ImmutableList.of()) - .setIsStaticImport(false); + .setIsStaticImport(false) + .setIsNullable(false); } // Private. @@ -237,6 +243,8 @@ public Builder setGenerics(Reference... references) { public abstract Builder setIsStaticImport(boolean isStaticImport); + public abstract Builder setIsNullable(boolean isNullable); + public abstract ConcreteReference autoBuild(); // Private. diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/Reference.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/Reference.java index 4dce11783f49..4432c68616aa 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/Reference.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/Reference.java @@ -46,6 +46,8 @@ public interface Reference extends AstNode { Reference copyAndSetGenerics(List generics); + Reference copyAndSetNullable(boolean isNullable); + // Valid only for nested classes. boolean isStaticImport(); @@ -59,4 +61,6 @@ public interface Reference extends AstNode { boolean isAssignableFrom(Reference other); boolean isWildcard(); + + boolean isNullable(); } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/VaporReference.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/VaporReference.java index 8c0cc858fa89..0c5b976a180c 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/VaporReference.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/ast/VaporReference.java @@ -135,16 +135,30 @@ public Reference copyAndSetGenerics(List generics) { return toBuilder().setGenerics(generics).build(); } + @Override + public Reference copyAndSetNullable(boolean isNullable) { + return toBuilder().setIsNullable(isNullable).build(); + } + public static Builder builder() { return new AutoValue_VaporReference.Builder() .setUseFullName(false) .setGenerics(ImmutableList.of()) .setIsStaticImport(false) - .setEnclosingClassNames(Collections.emptyList()); + .setEnclosingClassNames(Collections.emptyList()) + .setIsNullable(false); } // Private. - abstract Builder toBuilder(); + abstract Builder autoToBuilder(); + + // Resets builder name back to simpleName to prevent double-prepending enclosing classes during + // builder copying. + public Builder toBuilder() { + Builder builder = autoToBuilder(); + builder.setName(simpleName()); + return builder; + } @AutoValue.Builder public abstract static class Builder { @@ -168,6 +182,8 @@ public Builder setEnclosingClassNames(String... enclosingClassNames) { public abstract Builder setIsStaticImport(boolean isStaticImport); + public abstract Builder setIsNullable(boolean isNullable); + public abstract Builder setSupertypeReference(Reference supertypeReference); // Private. diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java index e19e168c3eb5..1d834043c863 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/ImportWriterVisitor.java @@ -479,6 +479,9 @@ private void variableExpressions(List expressions) { } private void handleReference(Reference reference) { + if (reference.isNullable()) { + addImport("org.jspecify.annotations.Nullable"); + } // Don't need to import this. if (reference.useFullName()) { return; diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java index e956d8694992..12175b66092b 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java @@ -94,6 +94,7 @@ public class JavaWriterVisitor implements AstNodeVisitor { private static final String RIGHT_PAREN = ")"; private static final String SEMICOLON = ";"; private static final String ASTERISK = "*"; + private static final String NULLABLE = "@Nullable "; private static final String ABSTRACT = "abstract"; private static final String CATCH = "catch"; @@ -222,6 +223,10 @@ public void visit(ConcreteReference reference) { buffer.append(DOT); } + if (reference.isNullable()) { + buffer.append(NULLABLE); + } + buffer.append(reference.simpleName()); if (!reference.generics().isEmpty()) { @@ -249,14 +254,31 @@ public void visit(VaporReference reference) { if (reference.useFullName() || importWriterVisitor.collidesWithImport(pakkage, shortName)) { buffer.append(pakkage); buffer.append(DOT); - if (reference.hasEnclosingClass()) { - buffer.append(String.join(DOT, reference.enclosingClassNames())); - buffer.append(DOT); - } } - // A null pointer exception will be thrown if reference is null, which is WAI. - buffer.append(shortName); + if (reference.hasEnclosingClass() && !reference.isStaticImport()) { + buffer.append(String.join(DOT, reference.enclosingClassNames())); + buffer.append(DOT); + } + + if (reference.isNullable()) { + buffer.append(NULLABLE); + } + + buffer.append(reference.simpleName()); + + if (!reference.generics().isEmpty()) { + buffer.append(LEFT_ANGLE); + for (int i = 0; i < reference.generics().size(); i++) { + Reference r = reference.generics().get(i); + r.accept(this); + if (i < reference.generics().size() - 1) { + buffer.append(COMMA); + buffer.append(SPACE); + } + } + buffer.append(RIGHT_ANGLE); + } } /** =============================== EXPRESSIONS =============================== */ diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java index 42c7bd743fe4..8dfde93e22a5 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java @@ -289,15 +289,17 @@ private List createFieldDeclarations( e -> { String varName = e.getKey(); TypeNode varType = e.getValue(); + if (varName.equals("settings")) { + varType = TypeNode.withReference(varType.reference().copyAndSetNullable(true)); + } Variable variable = Variable.builder().setName(varName).setType(varType).build(); - VariableExpr varExpr = + VariableExpr.Builder varExprBuilder = VariableExpr.builder() .setVariable(variable) .setScope(ScopeNode.PRIVATE) .setIsFinal(true) - .setIsDecl(true) - .build(); - return ExprStatement.withExpr(varExpr); + .setIsDecl(true); + return ExprStatement.withExpr(varExprBuilder.build()); }) .collect(Collectors.toList()); } @@ -577,6 +579,10 @@ private List createGetterMethods( ServiceClientCommentComposer.GET_OPERATIONS_CLIENT_METHOD_COMMENT); methodBuilder.setAnnotations(annotations); } + if (methodName.equals("getSettings")) { + methodReturnType = + TypeNode.withReference(methodReturnType.reference().copyAndSetNullable(true)); + } return methodBuilder .setScope(ScopeNode.PUBLIC) .setName(methodName) @@ -717,6 +723,23 @@ private static List createServiceMethods( return javaMethods; } + // Mark resource name helper arguments as nullable since callers may pass null into the helper + // methods. + private static VariableExpr createMethodArgVariableExpr(MethodArgument methodArg) { + TypeNode argType = methodArg.type(); + if (methodArg.isResourceNameHelper()) { + argType = TypeNode.withReference(argType.reference().copyAndSetNullable(true)); + } + return VariableExpr.builder() + .setVariable( + Variable.builder() + .setName(JavaStyle.toLowerCamelCase(methodArg.name())) + .setType(argType) + .build()) + .setIsDecl(true) + .build(); + } + private static List createMethodVariants( Method method, String clientName, @@ -749,16 +772,7 @@ private static List createMethodVariants( // Get the argument list. List arguments = signature.stream() - .map( - methodArg -> - VariableExpr.builder() - .setVariable( - Variable.builder() - .setName(JavaStyle.toLowerCamelCase(methodArg.name())) - .setType(methodArg.type()) - .build()) - .setIsDecl(true) - .build()) + .map(AbstractServiceClientClassComposer::createMethodArgVariableExpr) .collect(Collectors.toList()); // Request proto builder. @@ -1443,11 +1457,17 @@ private static ClassDefinition createNestedRpcPageClass( .stream() .map(t -> t.reference()) .collect(Collectors.toList())) - .build())) + .build() + .copyAndSetNullable(true))) .build()); VariableExpr responseVarExpr = VariableExpr.withVariable( - Variable.builder().setName("response").setType(method.outputType()).build()); + Variable.builder() + .setName("response") + .setType( + TypeNode.withReference( + method.outputType().reference().copyAndSetNullable(true))) + .build()); MethodDefinition privateCtor = MethodDefinition.constructorBuilder() .setScope(ScopeNode.PRIVATE) @@ -1583,7 +1603,8 @@ private static ClassDefinition createNestedRpcFixedSizeCollectionClass( ConcreteReference.builder() .setClazz(List.class) .setGenerics(Arrays.asList(methodPageType.reference())) - .build())) + .build() + .copyAndSetNullable(true))) .build()); VariableExpr collectionSizeVarExpr = VariableExpr.withVariable( diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java index d7241886efc8..e2d10d6c454c 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java @@ -83,6 +83,7 @@ public abstract class AbstractServiceSettingsClassComposer implements ClassComposer { private static final String BUILDER_CLASS_NAME = "Builder"; + private static final String CLIENT_CONTEXT_CLASS_NAME = "ClientContext"; protected static final TypeStore FIXED_TYPESTORE = createStaticTypes(); @@ -503,7 +504,12 @@ private static List createBuilderHelperMethods( VariableExpr.withVariable( Variable.builder() .setName("clientContext") - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType( + TypeNode.withReference( + FIXED_TYPESTORE + .get(CLIENT_CONTEXT_CLASS_NAME) + .reference() + .copyAndSetNullable(true))) .build()); MethodDefinition newBuilderMethodTwo = @@ -593,7 +599,7 @@ private static List createNestedBuilderConstructorMethods( .setType(builderType) .setArguments( CastExpr.builder() - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType(FIXED_TYPESTORE.get(CLIENT_CONTEXT_CLASS_NAME)) .setExpr(ValueExpr.createNullExpr()) .build()) .build()))) @@ -618,7 +624,12 @@ private static List createNestedBuilderConstructorMethods( VariableExpr.withVariable( Variable.builder() .setName("clientContext") - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType( + TypeNode.withReference( + FIXED_TYPESTORE + .get(CLIENT_CONTEXT_CLASS_NAME) + .reference() + .copyAndSetNullable(true))) .build()); MethodDefinition clientContextCtor = ctorMakerFn.apply( diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java index 423a25eee11a..51e6f410c079 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java @@ -313,9 +313,11 @@ protected MethodDefinition createCallableGetterMethodDefinition( protected MethodDefinition createOperationsStubGetterMethodDefinition( TypeNode returnType, String methodName, TypeStore typeStore) { + TypeNode annotatedReturnType = + TypeNode.withReference(returnType.reference().copyAndSetNullable(true)); return MethodDefinition.builder() .setScope(ScopeNode.PUBLIC) - .setReturnType(returnType) + .setReturnType(annotatedReturnType) .setName(methodName) .setBody( Arrays.asList( diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java index 9a0c1337b115..22cf6b0dfc61 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java @@ -139,6 +139,7 @@ public abstract class AbstractServiceStubSettingsClassComposer implements ClassC "RETRYABLE_CODE_DEFINITIONS"; private static final String NESTED_RETRY_PARAM_DEFINITIONS_VAR_NAME = "RETRY_PARAM_DEFINITIONS"; private static final String DOT = "."; + private static final String CLIENT_CONTEXT_CLASS_NAME = "ClientContext"; protected static final TypeStore FIXED_TYPESTORE = createStaticTypes(); @@ -1334,7 +1335,12 @@ protected List createBuilderHelperMethods( VariableExpr clientContextVarExpr = VariableExpr.withVariable( Variable.builder() - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType( + TypeNode.withReference( + FIXED_TYPESTORE + .get(CLIENT_CONTEXT_CLASS_NAME) + .reference() + .copyAndSetNullable(true))) .setName("clientContext") .build()); javaMethods.add( @@ -1636,7 +1642,7 @@ private static List createNestedClassConstructorMethods( .setType(builderType) .setArguments( CastExpr.builder() - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType(FIXED_TYPESTORE.get(CLIENT_CONTEXT_CLASS_NAME)) .setExpr(ValueExpr.createNullExpr()) .build()) .build()))) @@ -1646,7 +1652,12 @@ private static List createNestedClassConstructorMethods( VariableExpr clientContextVarExpr = VariableExpr.withVariable( Variable.builder() - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType( + TypeNode.withReference( + FIXED_TYPESTORE + .get(CLIENT_CONTEXT_CLASS_NAME) + .reference() + .copyAndSetNullable(true))) .setName("clientContext") .build()); Reference pagedSettingsBuilderRef = @@ -1907,7 +1918,7 @@ protected MethodDefinition createNestedClassCreateDefaultMethod( .setType(builderType) .setArguments( CastExpr.builder() - .setType(FIXED_TYPESTORE.get("ClientContext")) + .setType(FIXED_TYPESTORE.get(CLIENT_CONTEXT_CLASS_NAME)) .setExpr(ValueExpr.createNullExpr()) .build()) .build()) diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubClassComposer.java index 6be0ef7ac204..b22629d9e9b7 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceStubClassComposer.java @@ -37,9 +37,11 @@ public static ServiceStubClassComposer instance() { @Override protected MethodDefinition createOperationsStubGetterMethodDefinition( TypeNode returnType, String methodName, TypeStore typeStore) { + TypeNode annotatedReturnType = + TypeNode.withReference(returnType.reference().copyAndSetNullable(true)); return MethodDefinition.builder() .setScope(ScopeNode.PUBLIC) - .setReturnType(returnType) + .setReturnType(annotatedReturnType) .setName(methodName) .setReturnExpr(ReturnExpr.withExpr(ValueExpr.createNullExpr())) .build(); diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java index 69f9ca96e0f9..98bb27f81b93 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java @@ -789,10 +789,12 @@ private static MethodDefinition createParseMethod( .setArguments(ofMethodArgExprs) .setReturnType(thisClassType) .build(); + TypeNode nullableReturnType = + TypeNode.withReference(thisClassType.reference().copyAndSetNullable(true)); return MethodDefinition.builder() .setScope(ScopeNode.PUBLIC) .setIsStatic(true) - .setReturnType(thisClassType) + .setReturnType(nullableReturnType) .setName("parse") .setArguments(formattedStringArgDeclList) .setBody(body) @@ -884,10 +886,12 @@ private static MethodDefinition createParseMethod( .setType(FIXED_TYPESTORE.get("ValidationException")) .setMessageExpr(exceptionMessageString) .build())); + TypeNode nullableReturnType = + TypeNode.withReference(thisClassType.reference().copyAndSetNullable(true)); return MethodDefinition.builder() .setScope(ScopeNode.PUBLIC) .setIsStatic(true) - .setReturnType(thisClassType) + .setReturnType(nullableReturnType) .setName("parse") .setArguments(formattedStringArgDeclList) .setBody(body) @@ -970,7 +974,7 @@ private static MethodDefinition createToStringListMethod(TypeNode thisClassType) TypeNode.withReference( ConcreteReference.builder() .setClazz(List.class) - .setGenerics(Arrays.asList(thisClassType.reference())) + .setGenerics(Arrays.asList(thisClassType.reference().copyAndSetNullable(true))) .build()); VariableExpr valuesVarExpr = VariableExpr.withVariable( @@ -1305,7 +1309,7 @@ private static MethodDefinition createEqualsMethod( // Create method definition variables. Variable oVariable = Variable.builder() - .setType(TypeNode.withReference(javaObjectReference)) + .setType(TypeNode.withReference(javaObjectReference.copyAndSetNullable(true))) .setName("o") .build(); VariableExpr argVarExpr = @@ -1702,12 +1706,13 @@ private static TypeStore createStaticTypes() { ImmutableMap.class, List.class, Map.class, + NullMarked.class, + Object.class, Objects.class, PathTemplate.class, Preconditions.class, com.google.api.resourcenames.ResourceName.class, - ValidationException.class, - NullMarked.class); + ValidationException.class); return new TypeStore(concreteClazzes); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden index c5edba8acd9a..7658986f3135 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden @@ -9,6 +9,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -99,7 +100,7 @@ import org.jspecify.annotations.NullMarked; @NullMarked @Generated("by gapic-generator-java") public class NestedMessageServiceClient implements BackgroundResource { - private final NestedMessageServiceSettings settings; + private final @Nullable NestedMessageServiceSettings settings; private final NestedMessageServiceStub stub; /** Constructs an instance of NestedMessageServiceClient with default settings. */ @@ -139,7 +140,7 @@ public class NestedMessageServiceClient implements BackgroundResource { this.stub = stub; } - public final NestedMessageServiceSettings getSettings() { + public final @Nullable NestedMessageServiceSettings getSettings() { return settings; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden index 7b37b4120ddb..c91c3ffee76c 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden @@ -26,6 +26,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,7 +156,7 @@ public class EchoWithVersionStubSettings extends StubSettings { private PagedExpandPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { super(context, response); } @@ -1264,14 +1265,14 @@ public class EchoClient implements BackgroundResource { @Override protected PagedExpandPage createPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { return new PagedExpandPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1285,7 +1286,8 @@ public class EchoClient implements BackgroundResource { PagedExpandPage, PagedExpandFixedSizeCollection> { - private PagedExpandFixedSizeCollection(List pages, int collectionSize) { + private PagedExpandFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1295,7 +1297,7 @@ public class EchoClient implements BackgroundResource { @Override protected PagedExpandFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PagedExpandFixedSizeCollection(pages, collectionSize); } } @@ -1329,8 +1331,8 @@ public class EchoClient implements BackgroundResource { PagedExpandRequest, PagedExpandResponse, EchoResponse, SimplePagedExpandPage> { private SimplePagedExpandPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { super(context, response); } @@ -1340,14 +1342,14 @@ public class EchoClient implements BackgroundResource { @Override protected SimplePagedExpandPage createPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { return new SimplePagedExpandPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1362,7 +1364,7 @@ public class EchoClient implements BackgroundResource { SimplePagedExpandFixedSizeCollection> { private SimplePagedExpandFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1372,7 +1374,7 @@ public class EchoClient implements BackgroundResource { @Override protected SimplePagedExpandFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SimplePagedExpandFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden index 7c2bf556b96d..7db8bca74b71 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden @@ -11,6 +11,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -160,7 +161,7 @@ import org.jspecify.annotations.NullMarked; @BetaApi @Generated("by gapic-generator-java") public class EchoServiceShouldGeneratePartialUsualClient implements BackgroundResource { - private final EchoServiceShouldGeneratePartialUsualSettings settings; + private final @Nullable EchoServiceShouldGeneratePartialUsualSettings settings; private final EchoServiceShouldGeneratePartialUsualStub stub; /** @@ -209,7 +210,7 @@ public class EchoServiceShouldGeneratePartialUsualClient implements BackgroundRe this.stub = stub; } - public final EchoServiceShouldGeneratePartialUsualSettings getSettings() { + public final @Nullable EchoServiceShouldGeneratePartialUsualSettings getSettings() { return settings; } @@ -263,7 +264,7 @@ public class EchoServiceShouldGeneratePartialUsualClient implements BackgroundRe * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EchoResponse echoShouldGenerateAsUsual(FoobarName name) { + public final EchoResponse echoShouldGenerateAsUsual(@Nullable FoobarName name) { EchoRequest request = EchoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return echoShouldGenerateAsUsual(request); @@ -474,7 +475,7 @@ public class EchoServiceShouldGeneratePartialUsualClient implements BackgroundRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @InternalApi("This API is not intended for public consumption.") - public final EchoResponse chatShouldGenerateAsInternal(FoobarName name) { + public final EchoResponse chatShouldGenerateAsInternal(@Nullable FoobarName name) { EchoRequest request = EchoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return chatShouldGenerateAsInternal(request); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden index ddb91ae8bcbb..80a7059fe3ca 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden @@ -18,6 +18,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -162,7 +163,7 @@ public class EchoServiceShouldGeneratePartialUsualSettings } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -184,7 +185,7 @@ public class EchoServiceShouldGeneratePartialUsualSettings this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EchoServiceShouldGeneratePartialUsualStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden index 5c171f04360a..da9b2f054327 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden @@ -29,6 +29,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -201,7 +202,7 @@ public class EchoServiceShouldGeneratePartialUsualStubSettings } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -267,7 +268,7 @@ public class EchoServiceShouldGeneratePartialUsualStubSettings this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); echoShouldGenerateAsUsualSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden index a9770bf54cd4..4485694ee645 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -210,7 +211,7 @@ public class EchoSettings extends ClientSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -230,7 +231,7 @@ public class EchoSettings extends ClientSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EchoStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden index 8fed4fe54d48..722a5ff7d478 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden @@ -26,6 +26,7 @@ import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -38,7 +39,7 @@ import org.jspecify.annotations.NullMarked; @Generated("by gapic-generator-java") public abstract class EchoStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden index 6713de000399..33f3c72989b6 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden @@ -55,6 +55,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -384,7 +385,7 @@ public class EchoStubSettings extends StubSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -486,7 +487,7 @@ public class EchoStubSettings extends StubSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); echoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden index 1f6390842460..856d851d9b10 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden @@ -18,6 +18,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,7 @@ import org.jspecify.annotations.NullMarked; @BetaApi @Generated("by gapic-generator-java") public class IdentityClient implements BackgroundResource { - private final IdentitySettings settings; + private final @Nullable IdentitySettings settings; private final IdentityStub stub; /** Constructs an instance of IdentityClient with default settings. */ @@ -218,7 +219,7 @@ public class IdentityClient implements BackgroundResource { this.stub = stub; } - public final IdentitySettings getSettings() { + public final @Nullable IdentitySettings getSettings() { return settings; } @@ -477,7 +478,7 @@ public class IdentityClient implements BackgroundResource { * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final User getUser(UserName name) { + public final User getUser(@Nullable UserName name) { GetUserRequest request = GetUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getUser(request); @@ -620,7 +621,7 @@ public class IdentityClient implements BackgroundResource { * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUser(UserName name) { + public final void deleteUser(@Nullable UserName name) { DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteUser(request); @@ -841,8 +842,8 @@ public class IdentityClient implements BackgroundResource { extends AbstractPage { private ListUsersPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { super(context, response); } @@ -852,14 +853,14 @@ public class IdentityClient implements BackgroundResource { @Override protected ListUsersPage createPage( - PageContext context, - ListUsersResponse response) { + @Nullable PageContext context, + @Nullable ListUsersResponse response) { return new ListUsersPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -869,7 +870,7 @@ public class IdentityClient implements BackgroundResource { extends AbstractFixedSizeCollection< ListUsersRequest, ListUsersResponse, User, ListUsersPage, ListUsersFixedSizeCollection> { - private ListUsersFixedSizeCollection(List pages, int collectionSize) { + private ListUsersFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -879,7 +880,7 @@ public class IdentityClient implements BackgroundResource { @Override protected ListUsersFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListUsersFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden index 6ec8f16f177c..51ac4722bdb3 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden @@ -37,6 +37,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -244,7 +245,7 @@ public class JobServiceStubSettings extends StubSettings } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -303,7 +304,7 @@ public class JobServiceStubSettings extends StubSettings this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden index 213edf6a3d4b..e444d22a0806 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden @@ -60,6 +60,7 @@ import java.util.Collection; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -491,7 +492,7 @@ public class LoggingServiceV2StubSettings extends StubSettings { private ListRoomsPage( - PageContext context, - ListRoomsResponse response) { + @Nullable PageContext context, + @Nullable ListRoomsResponse response) { super(context, response); } @@ -1723,14 +1724,14 @@ public class MessagingClient implements BackgroundResource { @Override protected ListRoomsPage createPage( - PageContext context, - ListRoomsResponse response) { + @Nullable PageContext context, + @Nullable ListRoomsResponse response) { return new ListRoomsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1740,7 +1741,7 @@ public class MessagingClient implements BackgroundResource { extends AbstractFixedSizeCollection< ListRoomsRequest, ListRoomsResponse, Room, ListRoomsPage, ListRoomsFixedSizeCollection> { - private ListRoomsFixedSizeCollection(List pages, int collectionSize) { + private ListRoomsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1750,7 +1751,7 @@ public class MessagingClient implements BackgroundResource { @Override protected ListRoomsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListRoomsFixedSizeCollection(pages, collectionSize); } } @@ -1781,8 +1782,8 @@ public class MessagingClient implements BackgroundResource { extends AbstractPage { private ListBlurbsPage( - PageContext context, - ListBlurbsResponse response) { + @Nullable PageContext context, + @Nullable ListBlurbsResponse response) { super(context, response); } @@ -1792,14 +1793,14 @@ public class MessagingClient implements BackgroundResource { @Override protected ListBlurbsPage createPage( - PageContext context, - ListBlurbsResponse response) { + @Nullable PageContext context, + @Nullable ListBlurbsResponse response) { return new ListBlurbsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1813,7 +1814,8 @@ public class MessagingClient implements BackgroundResource { ListBlurbsPage, ListBlurbsFixedSizeCollection> { - private ListBlurbsFixedSizeCollection(List pages, int collectionSize) { + private ListBlurbsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1823,7 +1825,7 @@ public class MessagingClient implements BackgroundResource { @Override protected ListBlurbsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBlurbsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden index 5dd715e05b8f..ccd40a8ff758 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden @@ -61,6 +61,7 @@ import java.util.Collection; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -499,7 +500,7 @@ public class PublisherStubSettings extends StubSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -621,7 +622,7 @@ public class PublisherStubSettings extends StubSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden index 35c02eda2d66..a5bc276b62c7 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden @@ -28,6 +28,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -287,7 +288,7 @@ import org.jspecify.annotations.NullMarked; @BetaApi @Generated("by gapic-generator-java") public class EchoClient implements BackgroundResource { - private final EchoSettings settings; + private final @Nullable EchoSettings settings; private final EchoStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -333,7 +334,7 @@ public class EchoClient implements BackgroundResource { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final EchoSettings getSettings() { + public final @Nullable EchoSettings getSettings() { return settings; } @@ -400,7 +401,7 @@ public class EchoClient implements BackgroundResource { * @param parent * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EchoResponse echo(ResourceName parent) { + public final EchoResponse echo(@Nullable ResourceName parent) { EchoRequest request = EchoRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return echo(request); @@ -449,7 +450,7 @@ public class EchoClient implements BackgroundResource { * @param name * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EchoResponse echo(FoobarName name) { + public final EchoResponse echo(@Nullable FoobarName name) { EchoRequest request = EchoRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return echo(request); @@ -1348,8 +1349,8 @@ public class EchoClient implements BackgroundResource { extends AbstractPage { private PagedExpandPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { super(context, response); } @@ -1359,14 +1360,14 @@ public class EchoClient implements BackgroundResource { @Override protected PagedExpandPage createPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { return new PagedExpandPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1380,7 +1381,8 @@ public class EchoClient implements BackgroundResource { PagedExpandPage, PagedExpandFixedSizeCollection> { - private PagedExpandFixedSizeCollection(List pages, int collectionSize) { + private PagedExpandFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1390,7 +1392,7 @@ public class EchoClient implements BackgroundResource { @Override protected PagedExpandFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new PagedExpandFixedSizeCollection(pages, collectionSize); } } @@ -1424,8 +1426,8 @@ public class EchoClient implements BackgroundResource { PagedExpandRequest, PagedExpandResponse, EchoResponse, SimplePagedExpandPage> { private SimplePagedExpandPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { super(context, response); } @@ -1435,14 +1437,14 @@ public class EchoClient implements BackgroundResource { @Override protected SimplePagedExpandPage createPage( - PageContext context, - PagedExpandResponse response) { + @Nullable PageContext context, + @Nullable PagedExpandResponse response) { return new SimplePagedExpandPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1457,7 +1459,7 @@ public class EchoClient implements BackgroundResource { SimplePagedExpandFixedSizeCollection> { private SimplePagedExpandFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1467,7 +1469,7 @@ public class EchoClient implements BackgroundResource { @Override protected SimplePagedExpandFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SimplePagedExpandFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden index 12383ffd66c1..e958ab4b213a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden @@ -25,6 +25,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,7 @@ public class EchoSettings extends ClientSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -242,7 +243,7 @@ public class EchoSettings extends ClientSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(EchoStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden index e29f91480185..fec96bbd33d6 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden @@ -59,6 +59,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -416,7 +417,7 @@ public class EchoStubSettings extends StubSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -495,7 +496,7 @@ public class EchoStubSettings extends StubSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); echoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden index fff1e0377a22..9749abbf7bcb 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden @@ -11,6 +11,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -118,7 +119,7 @@ import org.jspecify.annotations.NullMarked; @BetaApi @Generated("by gapic-generator-java") public class WickedClient implements BackgroundResource { - private final WickedSettings settings; + private final @Nullable WickedSettings settings; private final WickedStub stub; /** Constructs an instance of WickedClient with default settings. */ @@ -156,7 +157,7 @@ public class WickedClient implements BackgroundResource { this.stub = stub; } - public final WickedSettings getSettings() { + public final @Nullable WickedSettings getSettings() { return settings; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden index 95f2e533d03d..379a54ec5695 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden @@ -17,6 +17,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -130,7 +131,7 @@ public class WickedSettings extends ClientSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -150,7 +151,7 @@ public class WickedSettings extends ClientSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(WickedStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden index 4a1bc0d0ea14..18b8492d36f2 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden @@ -28,6 +28,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -172,7 +173,7 @@ public class WickedStubSettings extends StubSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ public class WickedStubSettings extends StubSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); craftEvilPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden index a35217c08a0a..c19e441b8695 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden @@ -11,6 +11,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public class AgentName implements ResourceName { return newProjectBuilder().setProject(project).build().toString(); } - public static AgentName parse(String formattedString) { + public static @Nullable AgentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -114,7 +115,7 @@ public class AgentName implements ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable AgentName> values) { List list = new ArrayList<>(values.size()); for (AgentName value : values) { if (value == null) { @@ -159,7 +160,7 @@ public class AgentName implements ResourceName { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden index bf9b58f73ed0..45de5b4dfa6d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden @@ -10,6 +10,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -57,7 +58,7 @@ public class BillingAccountLocationName implements ResourceName { return newBuilder().setBillingAccount(billingAccount).setLocation(location).build().toString(); } - public static BillingAccountLocationName parse(String formattedString) { + public static @Nullable BillingAccountLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -76,7 +77,7 @@ public class BillingAccountLocationName implements ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountLocationName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountLocationName value : values) { if (value == null) { @@ -122,7 +123,7 @@ public class BillingAccountLocationName implements ResourceName { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden index 515dc35aead2..d99c8d150422 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden @@ -9,6 +9,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -92,7 +93,7 @@ public class ResourceName implements com.google.api.resourcenames.ResourceName { .toString(); } - public static ResourceName parse(String formattedString) { + public static @Nullable ResourceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -115,7 +116,7 @@ public class ResourceName implements com.google.api.resourcenames.ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ResourceName> values) { List list = new ArrayList<>(values.size()); for (ResourceName value : values) { if (value == null) { @@ -179,7 +180,7 @@ public class ResourceName implements com.google.api.resourcenames.ResourceName { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden index c9e2d43c6959..79d3cb7af060 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden @@ -11,6 +11,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -164,7 +165,7 @@ public class FoobarName implements ResourceName { return newBarFooFoobarBuilder().setBarFoo(barFoo).setFoobar(foobar).build().toString(); } - public static FoobarName parse(String formattedString) { + public static @Nullable FoobarName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -193,7 +194,7 @@ public class FoobarName implements ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FoobarName> values) { List list = new ArrayList<>(values.size()); for (FoobarName value : values) { if (value == null) { @@ -247,7 +248,7 @@ public class FoobarName implements ResourceName { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden index f5c711d82aa2..f66eddfd2399 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden @@ -10,6 +10,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -49,7 +50,7 @@ public class SessionName implements ResourceName { return newBuilder().setSession(session).build().toString(); } - public static SessionName parse(String formattedString) { + public static @Nullable SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -67,7 +68,7 @@ public class SessionName implements ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SessionName> values) { List list = new ArrayList<>(values.size()); for (SessionName value : values) { if (value == null) { @@ -109,7 +110,7 @@ public class SessionName implements ResourceName { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden index 571aec00ec5f..16aa878222d0 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden @@ -10,6 +10,7 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -68,7 +69,7 @@ public class TestName implements ResourceName { .toString(); } - public static TestName parse(String formattedString) { + public static @Nullable TestName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -86,7 +87,7 @@ public class TestName implements ResourceName { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TestName> values) { List list = new ArrayList<>(values.size()); for (TestName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public class TestName implements ResourceName { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden index 1d554dc788b6..398269dbe082 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden @@ -16,6 +16,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -171,7 +172,7 @@ public class ComplianceSettings extends ClientSettings { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -191,7 +192,7 @@ public class ComplianceSettings extends ClientSettings { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ComplianceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden index db257e4d5a3d..2109fb496882 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden @@ -30,6 +30,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -225,7 +226,7 @@ public class ComplianceStubSettings extends StubSettings } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -302,7 +303,7 @@ public class ComplianceStubSettings extends StubSettings this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); repeatDataBodySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden index 8b0b94e4daab..cae16ce62420 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden @@ -26,6 +26,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -157,7 +158,7 @@ public class EchoWithVersionStubSettings extends StubSettings { private ListConnectionsPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { super(context, response); } @@ -430,14 +431,14 @@ private static ListConnectionsPage createEmptyPage() { @Override protected ListConnectionsPage createPage( - PageContext context, - ListConnectionsResponse response) { + @Nullable PageContext context, + @Nullable ListConnectionsResponse response) { return new ListConnectionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -452,7 +453,7 @@ public static class ListConnectionsFixedSizeCollection ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -462,7 +463,7 @@ private static ListConnectionsFixedSizeCollection createEmptyCollection() { @Override protected ListConnectionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListConnectionsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index f2095fd712b0..eb52dbe4a78f 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -154,7 +155,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); } @@ -174,7 +175,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConnectionServiceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java index 9c8e5208230c..13b3b7f0c40a 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String endpoint) { return newBuilder().setProject(project).setEndpoint(endpoint).build().toString(); } - public static EndpointName parse(String formattedString) { + public static @Nullable EndpointName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable EndpointName> values) { List list = new ArrayList<>(values.size()); for (EndpointName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java index bd296833e614..2267e63adc6d 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -24,6 +24,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. /** @@ -122,7 +123,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TetherClient implements BackgroundResource { - private final TetherSettings settings; + private final @Nullable TetherSettings settings; private final TetherStub stub; /** Constructs an instance of TetherClient with default settings. */ @@ -160,7 +161,7 @@ protected TetherClient(TetherStub stub) { this.stub = stub; } - public final TetherSettings getSettings() { + public final @Nullable TetherSettings getSettings() { return settings; } diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java index fbbdbe0359ef..f187fab685b0 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -32,6 +32,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -134,7 +135,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -154,7 +155,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(TetherStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index 08f2534708ee..5edb2ba14160 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,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); } @@ -344,7 +345,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listConnectionsSettings = PagedCallSettings.newBuilder(LIST_CONNECTIONS_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index f0a16c22b218..ed3885f83c71 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -43,6 +43,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -180,7 +181,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -228,7 +229,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); egressSettings = StreamingCallSettings.newBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java index 9e2be2079cca..25da8c941d79 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java @@ -40,6 +40,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. /** @@ -486,7 +487,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { - private final AssetServiceSettings settings; + private final @Nullable AssetServiceSettings settings; private final AssetServiceStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -533,7 +534,7 @@ protected AssetServiceClient(AssetServiceStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final AssetServiceSettings getSettings() { + public final @Nullable AssetServiceSettings getSettings() { return settings; } @@ -705,7 +706,7 @@ public final UnaryCallable exportAssetsCallable( * (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAssetsPagedResponse listAssets(ResourceName parent) { + public final ListAssetsPagedResponse listAssets(@Nullable ResourceName parent) { ListAssetsRequest request = ListAssetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listAssets(request); @@ -1040,7 +1041,7 @@ public final UnaryCallable createFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Feed getFeed(FeedName name) { + public final Feed getFeed(@Nullable FeedName name) { GetFeedRequest request = GetFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getFeed(request); @@ -1317,7 +1318,7 @@ public final UnaryCallable updateFeedCallable() { * organizations/organization_number/feeds/feed_id * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFeed(FeedName name) { + public final void deleteFeed(@Nullable FeedName name) { DeleteFeedRequest request = DeleteFeedRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteFeed(request); @@ -2209,7 +2210,7 @@ public final UnaryCallable queryAssetsC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - FolderName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable FolderName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2253,7 +2254,7 @@ public final SavedQuery createSavedQuery( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - OrganizationName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable OrganizationName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2297,7 +2298,7 @@ public final SavedQuery createSavedQuery( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SavedQuery createSavedQuery( - ProjectName parent, SavedQuery savedQuery, String savedQueryId) { + @Nullable ProjectName parent, SavedQuery savedQuery, String savedQueryId) { CreateSavedQueryRequest request = CreateSavedQueryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2438,7 +2439,7 @@ public final UnaryCallable createSavedQuery * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SavedQuery getSavedQuery(SavedQueryName name) { + public final SavedQuery getSavedQuery(@Nullable SavedQueryName name) { GetSavedQueryRequest request = GetSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSavedQuery(request); @@ -2558,7 +2559,7 @@ public final UnaryCallable getSavedQueryCallab * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(FolderName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable FolderName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2591,7 +2592,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(FolderName parent) { * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(OrganizationName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable OrganizationName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2624,7 +2625,7 @@ public final ListSavedQueriesPagedResponse listSavedQueries(OrganizationName par * or a project ID (such as "projects/my-project-id"). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSavedQueriesPagedResponse listSavedQueries(ProjectName parent) { + public final ListSavedQueriesPagedResponse listSavedQueries(@Nullable ProjectName parent) { ListSavedQueriesRequest request = ListSavedQueriesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2896,7 +2897,7 @@ public final UnaryCallable updateSavedQuery * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSavedQuery(SavedQueryName name) { + public final void deleteSavedQuery(@Nullable SavedQueryName name) { DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSavedQuery(request); @@ -3109,8 +3110,8 @@ public static class ListAssetsPage extends AbstractPage { private ListAssetsPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { super(context, response); } @@ -3120,14 +3121,14 @@ private static ListAssetsPage createEmptyPage() { @Override protected ListAssetsPage createPage( - PageContext context, - ListAssetsResponse response) { + @Nullable PageContext context, + @Nullable ListAssetsResponse response) { return new ListAssetsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3141,7 +3142,8 @@ public static class ListAssetsFixedSizeCollection ListAssetsPage, ListAssetsFixedSizeCollection> { - private ListAssetsFixedSizeCollection(List pages, int collectionSize) { + private ListAssetsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3151,7 +3153,7 @@ private static ListAssetsFixedSizeCollection createEmptyCollection() { @Override protected ListAssetsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListAssetsFixedSizeCollection(pages, collectionSize); } } @@ -3189,9 +3191,10 @@ public static class SearchAllResourcesPage SearchAllResourcesPage> { private SearchAllResourcesPage( - PageContext - context, - SearchAllResourcesResponse response) { + @Nullable + PageContext + context, + @Nullable SearchAllResourcesResponse response) { super(context, response); } @@ -3201,16 +3204,18 @@ private static SearchAllResourcesPage createEmptyPage() { @Override protected SearchAllResourcesPage createPage( - PageContext - context, - SearchAllResourcesResponse response) { + @Nullable + PageContext + context, + @Nullable SearchAllResourcesResponse response) { return new SearchAllResourcesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext - context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3225,7 +3230,7 @@ public static class SearchAllResourcesFixedSizeCollection SearchAllResourcesFixedSizeCollection> { private SearchAllResourcesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3235,7 +3240,7 @@ private static SearchAllResourcesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllResourcesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllResourcesFixedSizeCollection(pages, collectionSize); } } @@ -3274,10 +3279,13 @@ public static class SearchAllIamPoliciesPage SearchAllIamPoliciesPage> { private SearchAllIamPoliciesPage( - PageContext< - SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> - context, - SearchAllIamPoliciesResponse response) { + @Nullable + PageContext< + SearchAllIamPoliciesRequest, + SearchAllIamPoliciesResponse, + IamPolicySearchResult> + context, + @Nullable SearchAllIamPoliciesResponse response) { super(context, response); } @@ -3287,18 +3295,24 @@ private static SearchAllIamPoliciesPage createEmptyPage() { @Override protected SearchAllIamPoliciesPage createPage( - PageContext< - SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> - context, - SearchAllIamPoliciesResponse response) { + @Nullable + PageContext< + SearchAllIamPoliciesRequest, + SearchAllIamPoliciesResponse, + IamPolicySearchResult> + context, + @Nullable SearchAllIamPoliciesResponse response) { return new SearchAllIamPoliciesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< - SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse, IamPolicySearchResult> - context, + @Nullable + PageContext< + SearchAllIamPoliciesRequest, + SearchAllIamPoliciesResponse, + IamPolicySearchResult> + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3313,7 +3327,7 @@ public static class SearchAllIamPoliciesFixedSizeCollection SearchAllIamPoliciesFixedSizeCollection> { private SearchAllIamPoliciesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3323,7 +3337,7 @@ private static SearchAllIamPoliciesFixedSizeCollection createEmptyCollection() { @Override protected SearchAllIamPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new SearchAllIamPoliciesFixedSizeCollection(pages, collectionSize); } } @@ -3357,8 +3371,9 @@ public static class ListSavedQueriesPage ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { private ListSavedQueriesPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable + PageContext context, + @Nullable ListSavedQueriesResponse response) { super(context, response); } @@ -3368,14 +3383,16 @@ private static ListSavedQueriesPage createEmptyPage() { @Override protected ListSavedQueriesPage createPage( - PageContext context, - ListSavedQueriesResponse response) { + @Nullable + PageContext context, + @Nullable ListSavedQueriesResponse response) { return new ListSavedQueriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3390,7 +3407,7 @@ public static class ListSavedQueriesFixedSizeCollection ListSavedQueriesFixedSizeCollection> { private ListSavedQueriesFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3400,7 +3417,7 @@ private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { @Override protected ListSavedQueriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index 137014ae6c20..afbaa3d5db51 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -307,7 +308,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); } @@ -327,7 +328,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AssetServiceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java index ed33edd129ec..fd750b30a883 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -150,7 +151,7 @@ public static String formatOrganizationFeedName(String organization, String feed .toString(); } - public static FeedName parse(String formattedString) { + public static @Nullable FeedName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -175,7 +176,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FeedName> values) { List list = new ArrayList<>(values.size()); for (FeedName value : values) { if (value == null) { @@ -228,7 +229,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java index 29369cb83590..30599d73e61a 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java index 0cadf25e6184..98c09c52f224 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java index e659b684f3f6..31746bad40a0 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java index e565aefb9835..9a92872c7f53 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -159,7 +160,7 @@ public static String formatOrganizationSavedQueryName(String organization, Strin .toString(); } - public static SavedQueryName parse(String formattedString) { + public static @Nullable SavedQueryName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -185,7 +186,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SavedQueryName> values) { List list = new ArrayList<>(values.size()); for (SavedQueryName value : values) { if (value == null) { @@ -238,7 +239,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java index d38f4b4b7703..8b272b0a58e7 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java @@ -64,6 +64,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -75,11 +76,12 @@ @Generated("by gapic-generator-java") public abstract class AssetServiceStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index 14ec11890d20..228bd9400640 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -101,6 +101,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -690,7 +691,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); } @@ -892,7 +893,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); exportAssetsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java index 6e36641b3114..d4d1d63139a0 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String instance) { return newBuilder().setProject(project).setInstance(instance).build().toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java index 200ca73023f9..cc55186e0751 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String instance, String table) { .toString(); } - public static TableName parse(String formattedString) { + public static @Nullable TableName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TableName> values) { List list = new ArrayList<>(values.size()); for (TableName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java index f4b922e30f27..000a7498f02c 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java @@ -46,6 +46,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. /** @@ -239,7 +240,7 @@ @NullMarked @Generated("by gapic-generator-java") public class BaseBigtableDataClient implements BackgroundResource { - private final BaseBigtableDataSettings settings; + private final @Nullable BaseBigtableDataSettings settings; private final BigtableStub stub; /** Constructs an instance of BaseBigtableDataClient with default settings. */ @@ -279,7 +280,7 @@ protected BaseBigtableDataClient(BigtableStub stub) { this.stub = stub; } - public final BaseBigtableDataSettings getSettings() { + public final @Nullable BaseBigtableDataSettings getSettings() { return settings; } @@ -387,7 +388,7 @@ public final ServerStreamingCallable readRows * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MutateRowResponse mutateRow( - TableName tableName, ByteString rowKey, List mutations) { + @Nullable TableName tableName, ByteString rowKey, List mutations) { MutateRowRequest request = MutateRowRequest.newBuilder() .setTableName(tableName == null ? null : tableName.toString()) @@ -473,7 +474,10 @@ public final MutateRowResponse mutateRow( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MutateRowResponse mutateRow( - TableName tableName, ByteString rowKey, List mutations, String appProfileId) { + @Nullable TableName tableName, + ByteString rowKey, + List mutations, + String appProfileId) { MutateRowRequest request = MutateRowRequest.newBuilder() .setTableName(tableName == null ? null : tableName.toString()) @@ -668,7 +672,7 @@ public final ServerStreamingCallable muta * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CheckAndMutateRowResponse checkAndMutateRow( - TableName tableName, + @Nullable TableName tableName, ByteString rowKey, RowFilter predicateFilter, List trueMutations, @@ -787,7 +791,7 @@ public final CheckAndMutateRowResponse checkAndMutateRow( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CheckAndMutateRowResponse checkAndMutateRow( - TableName tableName, + @Nullable TableName tableName, ByteString rowKey, RowFilter predicateFilter, List trueMutations, @@ -958,7 +962,7 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques * respond. Values are of the form `projects/<project>/instances/<instance>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PingAndWarmResponse pingAndWarm(InstanceName name) { + public final PingAndWarmResponse pingAndWarm(@Nullable InstanceName name) { PingAndWarmRequest request = PingAndWarmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return pingAndWarm(request); @@ -1018,7 +1022,7 @@ public final PingAndWarmResponse pingAndWarm(String name) { * "default" application profile will be used. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PingAndWarmResponse pingAndWarm(InstanceName name, String appProfileId) { + public final PingAndWarmResponse pingAndWarm(@Nullable InstanceName name, String appProfileId) { PingAndWarmRequest request = PingAndWarmRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1154,7 +1158,7 @@ public final UnaryCallable pingAndWarmC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadModifyWriteRowResponse readModifyWriteRow( - TableName tableName, ByteString rowKey, List rules) { + @Nullable TableName tableName, ByteString rowKey, List rules) { ReadModifyWriteRowRequest request = ReadModifyWriteRowRequest.newBuilder() .setTableName(tableName == null ? null : tableName.toString()) @@ -1247,7 +1251,7 @@ public final ReadModifyWriteRowResponse readModifyWriteRow( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ReadModifyWriteRowResponse readModifyWriteRow( - TableName tableName, + @Nullable TableName tableName, ByteString rowKey, List rules, String appProfileId) { diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java index 728748a3dd7a..b9161e4c84e2 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -183,7 +184,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -203,7 +204,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(BigtableStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 680112fc2920..6ccde1719232 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -240,7 +241,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -362,7 +363,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); readRowsSettings = ServerStreamingCallSettings.newBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java index 7ae225f7cdfb..1dfa9adad876 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java @@ -35,6 +35,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. /** @@ -190,7 +191,7 @@ @NullMarked @Generated("by gapic-generator-java") public class AddressesClient implements BackgroundResource { - private final AddressesSettings settings; + private final @Nullable AddressesSettings settings; private final AddressesStub stub; /** Constructs an instance of AddressesClient with default settings. */ @@ -228,7 +229,7 @@ protected AddressesClient(AddressesStub stub) { this.stub = stub; } - public final AddressesSettings getSettings() { + public final @Nullable AddressesSettings getSettings() { return settings; } @@ -857,12 +858,13 @@ public static class AggregatedListPage AggregatedListPage> { private AggregatedListPage( - PageContext< - AggregatedListAddressesRequest, - AddressAggregatedList, - Map.Entry> - context, - AddressAggregatedList response) { + @Nullable + PageContext< + AggregatedListAddressesRequest, + AddressAggregatedList, + Map.Entry> + context, + @Nullable AddressAggregatedList response) { super(context, response); } @@ -872,22 +874,24 @@ private static AggregatedListPage createEmptyPage() { @Override protected AggregatedListPage createPage( - PageContext< - AggregatedListAddressesRequest, - AddressAggregatedList, - Map.Entry> - context, - AddressAggregatedList response) { + @Nullable + PageContext< + AggregatedListAddressesRequest, + AddressAggregatedList, + Map.Entry> + context, + @Nullable AddressAggregatedList response) { return new AggregatedListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< - AggregatedListAddressesRequest, - AddressAggregatedList, - Map.Entry> - context, + @Nullable + PageContext< + AggregatedListAddressesRequest, + AddressAggregatedList, + Map.Entry> + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -901,7 +905,8 @@ public static class AggregatedListFixedSizeCollection AggregatedListPage, AggregatedListFixedSizeCollection> { - private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + private AggregatedListFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -911,7 +916,7 @@ private static AggregatedListFixedSizeCollection createEmptyCollection() { @Override protected AggregatedListFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new AggregatedListFixedSizeCollection(pages, collectionSize); } } @@ -938,7 +943,8 @@ public static class ListPage extends AbstractPage { private ListPage( - PageContext context, AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { super(context, response); } @@ -948,13 +954,14 @@ private static ListPage createEmptyPage() { @Override protected ListPage createPage( - PageContext context, AddressList response) { + @Nullable PageContext context, + @Nullable AddressList response) { return new ListPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -964,7 +971,7 @@ public static class ListFixedSizeCollection extends AbstractFixedSizeCollection< ListAddressesRequest, AddressList, Address, ListPage, ListFixedSizeCollection> { - private ListFixedSizeCollection(List pages, int collectionSize) { + private ListFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -973,7 +980,8 @@ private static ListFixedSizeCollection createEmptyCollection() { } @Override - protected ListFixedSizeCollection createCollection(List pages, int collectionSize) { + protected ListFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { return new ListFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java index 1d092e884e40..8c3c3ff6e498 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java @@ -36,6 +36,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -213,7 +214,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(AddressesStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java index 8531bab2388b..2641f679e989 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java @@ -24,6 +24,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. /** @@ -140,7 +141,7 @@ @NullMarked @Generated("by gapic-generator-java") public class RegionOperationsClient implements BackgroundResource { - private final RegionOperationsSettings settings; + private final @Nullable RegionOperationsSettings settings; private final RegionOperationsStub stub; /** Constructs an instance of RegionOperationsClient with default settings. */ @@ -180,7 +181,7 @@ protected RegionOperationsClient(RegionOperationsStub stub) { this.stub = stub; } - public final RegionOperationsSettings getSettings() { + public final @Nullable RegionOperationsSettings getSettings() { return settings; } diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java index 4104ee49c9f2..f55256c0f801 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -141,7 +142,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -161,7 +162,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(RegionOperationsStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java index 114d5a8d9b4a..33ffba8b4494 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java @@ -65,6 +65,7 @@ import java.util.Map; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -384,7 +385,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -470,7 +471,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java index 1c66a2b510e2..d1ec2ba73fb1 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java @@ -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. /** @@ -190,7 +191,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -263,7 +264,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); getSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java index 809d9f7bc606..afe0bf1c17a7 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java @@ -27,6 +27,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. /** @@ -202,7 +203,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IamCredentialsClient implements BackgroundResource { - private final IamCredentialsSettings settings; + private final @Nullable IamCredentialsSettings settings; private final IamCredentialsStub stub; /** Constructs an instance of IamCredentialsClient with default settings. */ @@ -242,7 +243,7 @@ protected IamCredentialsClient(IamCredentialsStub stub) { this.stub = stub; } - public final IamCredentialsSettings getSettings() { + public final @Nullable IamCredentialsSettings getSettings() { return settings; } @@ -293,7 +294,10 @@ public IamCredentialsStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateAccessTokenResponse generateAccessToken( - ServiceAccountName name, List delegates, List scope, Duration lifetime) { + @Nullable ServiceAccountName name, + List delegates, + List scope, + Duration lifetime) { GenerateAccessTokenRequest request = GenerateAccessTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -462,7 +466,10 @@ public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessToken * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GenerateIdTokenResponse generateIdToken( - ServiceAccountName name, List delegates, String audience, boolean includeEmail) { + @Nullable ServiceAccountName name, + List delegates, + String audience, + boolean includeEmail) { GenerateIdTokenRequest request = GenerateIdTokenRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -624,7 +631,7 @@ public final GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest requ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SignBlobResponse signBlob( - ServiceAccountName name, List delegates, ByteString payload) { + @Nullable ServiceAccountName name, List delegates, ByteString payload) { SignBlobRequest request = SignBlobRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -775,7 +782,7 @@ public final UnaryCallable signBlobCallable() * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SignJwtResponse signJwt( - ServiceAccountName name, List delegates, String payload) { + @Nullable ServiceAccountName name, List delegates, String payload) { SignJwtRequest request = SignJwtRequest.newBuilder() .setName(name == null ? null : name.toString()) diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index 6c6d18c2ef46..cb4a5e3dc355 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -33,6 +33,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -167,7 +168,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); } @@ -187,7 +188,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IamCredentialsStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java index 29071fff8871..294531d8a97c 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String serviceAccount) { return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); } - public static ServiceAccountName parse(String formattedString) { + public static @Nullable ServiceAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ServiceAccountName> values) { List list = new ArrayList<>(values.size()); for (ServiceAccountName value : values) { if (value == null) { @@ -136,7 +137,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 21c092c1e3a2..9245db1a499b 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -241,7 +242,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); } @@ -310,7 +311,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); generateAccessTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java index 0599d925334f..62e428cc474a 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java @@ -24,6 +24,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. /** @@ -168,7 +169,7 @@ @NullMarked @Generated("by gapic-generator-java") public class IAMPolicyClient implements BackgroundResource { - private final IAMPolicySettings settings; + private final @Nullable IAMPolicySettings settings; private final IAMPolicyStub stub; /** Constructs an instance of IAMPolicyClient with default settings. */ @@ -206,7 +207,7 @@ protected IAMPolicyClient(IAMPolicyStub stub) { this.stub = stub; } - public final IAMPolicySettings getSettings() { + public final @Nullable IAMPolicySettings getSettings() { return settings; } diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java index 3a3621b77e58..af5661261f09 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java @@ -31,6 +31,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -144,7 +145,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -164,7 +165,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(IAMPolicyStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java index 7761748c268a..e3b801291ff9 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -193,7 +194,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -257,7 +258,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java index 9926a26800fa..52b5039a8413 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java index c874db01eba9..81d1958f1e08 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -109,7 +110,7 @@ public static String format( .toString(); } - public static CryptoKeyVersionName parse(String formattedString) { + public static @Nullable CryptoKeyVersionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -132,7 +133,7 @@ public static List parseList(List formattedStrings return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyVersionName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyVersionName value : values) { if (value == null) { @@ -196,7 +197,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java index 11769b9fcaec..fcbffe963ef9 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static ImportJobName parse(String formattedString) { + public static @Nullable ImportJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ImportJobName> values) { List list = new ArrayList<>(values.size()); for (ImportJobName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 2346dcd09a38..ea926f74a7fd 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -43,6 +43,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. /** @@ -634,7 +635,7 @@ @NullMarked @Generated("by gapic-generator-java") public class KeyManagementServiceClient implements BackgroundResource { - private final KeyManagementServiceSettings settings; + private final @Nullable KeyManagementServiceSettings settings; private final KeyManagementServiceStub stub; /** Constructs an instance of KeyManagementServiceClient with default settings. */ @@ -674,7 +675,7 @@ protected KeyManagementServiceClient(KeyManagementServiceStub stub) { this.stub = stub; } - public final KeyManagementServiceSettings getSettings() { + public final @Nullable KeyManagementServiceSettings getSettings() { return settings; } @@ -707,7 +708,7 @@ public KeyManagementServiceStub getStub() { * [KeyRings][google.cloud.kms.v1.KeyRing], in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListKeyRingsPagedResponse listKeyRings(LocationName parent) { + public final ListKeyRingsPagedResponse listKeyRings(@Nullable LocationName parent) { ListKeyRingsRequest request = ListKeyRingsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -883,7 +884,7 @@ public final UnaryCallable listKeyRin * list, in the format `projects/*/locations/*/keyRings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCryptoKeysPagedResponse listCryptoKeys(KeyRingName parent) { + public final ListCryptoKeysPagedResponse listCryptoKeys(@Nullable KeyRingName parent) { ListCryptoKeysRequest request = ListCryptoKeysRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1062,7 +1063,8 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re * list, in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions(CryptoKeyName parent) { + public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions( + @Nullable CryptoKeyName parent) { ListCryptoKeyVersionsRequest request = ListCryptoKeyVersionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1250,7 +1252,7 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions( * list, in the format `projects/*/locations/*/keyRings/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListImportJobsPagedResponse listImportJobs(KeyRingName parent) { + public final ListImportJobsPagedResponse listImportJobs(@Nullable KeyRingName parent) { ListImportJobsRequest request = ListImportJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1425,7 +1427,7 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re * [KeyRing][google.cloud.kms.v1.KeyRing] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing getKeyRing(KeyRingName name) { + public final KeyRing getKeyRing(@Nullable KeyRingName name) { GetKeyRingRequest request = GetKeyRingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getKeyRing(request); @@ -1543,7 +1545,7 @@ public final UnaryCallable getKeyRingCallable() { * [CryptoKey][google.cloud.kms.v1.CryptoKey] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKey getCryptoKey(CryptoKeyName name) { + public final CryptoKey getCryptoKey(@Nullable CryptoKeyName name) { GetCryptoKeyRequest request = GetCryptoKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getCryptoKey(request); @@ -1671,7 +1673,7 @@ public final UnaryCallable getCryptoKeyCallable( * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion getCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion getCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { GetCryptoKeyVersionRequest request = GetCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1812,7 +1814,7 @@ public final CryptoKeyVersion getCryptoKeyVersion(GetCryptoKeyVersionRequest req * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublicKey getPublicKey(CryptoKeyVersionName name) { + public final PublicKey getPublicKey(@Nullable CryptoKeyVersionName name) { GetPublicKeyRequest request = GetPublicKeyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getPublicKey(request); @@ -1954,7 +1956,7 @@ public final UnaryCallable getPublicKeyCallable( * [ImportJob][google.cloud.kms.v1.ImportJob] to get. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ImportJob getImportJob(ImportJobName name) { + public final ImportJob getImportJob(@Nullable ImportJobName name) { GetImportJobRequest request = GetImportJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getImportJob(request); @@ -2079,7 +2081,8 @@ public final UnaryCallable getImportJobCallable( * @param keyRing Required. A [KeyRing][google.cloud.kms.v1.KeyRing] with initial field values. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final KeyRing createKeyRing(LocationName parent, String keyRingId, KeyRing keyRing) { + public final KeyRing createKeyRing( + @Nullable LocationName parent, String keyRingId, KeyRing keyRing) { CreateKeyRingRequest request = CreateKeyRingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2225,7 +2228,7 @@ public final UnaryCallable createKeyRingCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKey createCryptoKey( - KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { + @Nullable KeyRingName parent, String cryptoKeyId, CryptoKey cryptoKey) { CreateCryptoKeyRequest request = CreateCryptoKeyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2389,7 +2392,7 @@ public final UnaryCallable createCryptoKeyCal * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKeyVersion createCryptoKeyVersion( - CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { + @Nullable CryptoKeyName parent, CryptoKeyVersion cryptoKeyVersion) { CreateCryptoKeyVersionRequest request = CreateCryptoKeyVersionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2627,7 +2630,7 @@ public final CryptoKeyVersion importCryptoKeyVersion(ImportCryptoKeyVersionReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ImportJob createImportJob( - KeyRingName parent, String importJobId, ImportJob importJob) { + @Nullable KeyRingName parent, String importJobId, ImportJob importJob) { CreateImportJobRequest request = CreateImportJobRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2999,7 +3002,7 @@ public final CryptoKeyVersion updateCryptoKeyVersion(UpdateCryptoKeyVersionReque * 8KiB. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EncryptResponse encrypt(ResourceName name, ByteString plaintext) { + public final EncryptResponse encrypt(@Nullable ResourceName name, ByteString plaintext) { EncryptRequest request = EncryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3157,7 +3160,7 @@ public final UnaryCallable encryptCallable() { * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DecryptResponse decrypt(CryptoKeyName name, ByteString ciphertext) { + public final DecryptResponse decrypt(@Nullable CryptoKeyName name, ByteString ciphertext) { DecryptRequest request = DecryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3310,7 +3313,8 @@ public final UnaryCallable decryptCallable() { * [algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AsymmetricSignResponse asymmetricSign(CryptoKeyVersionName name, Digest digest) { + public final AsymmetricSignResponse asymmetricSign( + @Nullable CryptoKeyVersionName name, Digest digest) { AsymmetricSignRequest request = AsymmetricSignRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3474,7 +3478,7 @@ public final AsymmetricSignResponse asymmetricSign(AsymmetricSignRequest request * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AsymmetricDecryptResponse asymmetricDecrypt( - CryptoKeyVersionName name, ByteString ciphertext) { + @Nullable CryptoKeyVersionName name, ByteString ciphertext) { AsymmetricDecryptRequest request = AsymmetricDecryptRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3637,7 +3641,7 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CryptoKey updateCryptoKeyPrimaryVersion( - CryptoKeyName name, String cryptoKeyVersionId) { + @Nullable CryptoKeyName name, String cryptoKeyVersionId) { UpdateCryptoKeyPrimaryVersionRequest request = UpdateCryptoKeyPrimaryVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3796,7 +3800,7 @@ public final CryptoKey updateCryptoKeyPrimaryVersion( * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to destroy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion destroyCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { DestroyCryptoKeyVersionRequest request = DestroyCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3980,7 +3984,7 @@ public final CryptoKeyVersion destroyCryptoKeyVersion(DestroyCryptoKeyVersionReq * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to restore. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CryptoKeyVersion restoreCryptoKeyVersion(CryptoKeyVersionName name) { + public final CryptoKeyVersion restoreCryptoKeyVersion(@Nullable CryptoKeyVersionName name) { RestoreCryptoKeyVersionRequest request = RestoreCryptoKeyVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -4467,8 +4471,8 @@ public static class ListKeyRingsPage extends AbstractPage { private ListKeyRingsPage( - PageContext context, - ListKeyRingsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyRingsResponse response) { super(context, response); } @@ -4478,14 +4482,14 @@ private static ListKeyRingsPage createEmptyPage() { @Override protected ListKeyRingsPage createPage( - PageContext context, - ListKeyRingsResponse response) { + @Nullable PageContext context, + @Nullable ListKeyRingsResponse response) { return new ListKeyRingsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4499,7 +4503,8 @@ public static class ListKeyRingsFixedSizeCollection ListKeyRingsPage, ListKeyRingsFixedSizeCollection> { - private ListKeyRingsFixedSizeCollection(List pages, int collectionSize) { + private ListKeyRingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4509,7 +4514,7 @@ private static ListKeyRingsFixedSizeCollection createEmptyCollection() { @Override protected ListKeyRingsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListKeyRingsFixedSizeCollection(pages, collectionSize); } } @@ -4543,8 +4548,8 @@ public static class ListCryptoKeysPage ListCryptoKeysRequest, ListCryptoKeysResponse, CryptoKey, ListCryptoKeysPage> { private ListCryptoKeysPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { super(context, response); } @@ -4554,14 +4559,14 @@ private static ListCryptoKeysPage createEmptyPage() { @Override protected ListCryptoKeysPage createPage( - PageContext context, - ListCryptoKeysResponse response) { + @Nullable PageContext context, + @Nullable ListCryptoKeysResponse response) { return new ListCryptoKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4575,7 +4580,8 @@ public static class ListCryptoKeysFixedSizeCollection ListCryptoKeysPage, ListCryptoKeysFixedSizeCollection> { - private ListCryptoKeysFixedSizeCollection(List pages, int collectionSize) { + private ListCryptoKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4585,7 +4591,7 @@ private static ListCryptoKeysFixedSizeCollection createEmptyCollection() { @Override protected ListCryptoKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCryptoKeysFixedSizeCollection(pages, collectionSize); } } @@ -4623,9 +4629,11 @@ public static class ListCryptoKeyVersionsPage ListCryptoKeyVersionsPage> { private ListCryptoKeyVersionsPage( - PageContext - context, - ListCryptoKeyVersionsResponse response) { + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> + context, + @Nullable ListCryptoKeyVersionsResponse response) { super(context, response); } @@ -4635,16 +4643,20 @@ private static ListCryptoKeyVersionsPage createEmptyPage() { @Override protected ListCryptoKeyVersionsPage createPage( - PageContext - context, - ListCryptoKeyVersionsResponse response) { + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> + context, + @Nullable ListCryptoKeyVersionsResponse response) { return new ListCryptoKeyVersionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext - context, + @Nullable + PageContext< + ListCryptoKeyVersionsRequest, ListCryptoKeyVersionsResponse, CryptoKeyVersion> + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4659,7 +4671,7 @@ public static class ListCryptoKeyVersionsFixedSizeCollection ListCryptoKeyVersionsFixedSizeCollection> { private ListCryptoKeyVersionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4669,7 +4681,7 @@ private static ListCryptoKeyVersionsFixedSizeCollection createEmptyCollection() @Override protected ListCryptoKeyVersionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListCryptoKeyVersionsFixedSizeCollection(pages, collectionSize); } } @@ -4703,8 +4715,8 @@ public static class ListImportJobsPage ListImportJobsRequest, ListImportJobsResponse, ImportJob, ListImportJobsPage> { private ListImportJobsPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { super(context, response); } @@ -4714,14 +4726,14 @@ private static ListImportJobsPage createEmptyPage() { @Override protected ListImportJobsPage createPage( - PageContext context, - ListImportJobsResponse response) { + @Nullable PageContext context, + @Nullable ListImportJobsResponse response) { return new ListImportJobsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4735,7 +4747,8 @@ public static class ListImportJobsFixedSizeCollection ListImportJobsPage, ListImportJobsFixedSizeCollection> { - private ListImportJobsFixedSizeCollection(List pages, int collectionSize) { + private ListImportJobsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4745,7 +4758,7 @@ private static ListImportJobsFixedSizeCollection createEmptyCollection() { @Override protected ListImportJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListImportJobsFixedSizeCollection(pages, collectionSize); } } @@ -4779,8 +4792,8 @@ public static class ListLocationsPage ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { super(context, response); } @@ -4790,14 +4803,14 @@ private static ListLocationsPage createEmptyPage() { @Override protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { return new ListLocationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4811,7 +4824,8 @@ public static class ListLocationsFixedSizeCollection ListLocationsPage, ListLocationsFixedSizeCollection> { - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4821,7 +4835,7 @@ private static ListLocationsFixedSizeCollection createEmptyCollection() { @Override protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLocationsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index 61f4951cdc4c..69e80cefeccb 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -46,6 +46,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -301,7 +302,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -322,7 +323,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(KeyManagementServiceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java index b2faeab39438..19809a284edd 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String keyRing) { .toString(); } - public static KeyRingName parse(String formattedString) { + public static @Nullable KeyRingName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable KeyRingName> values) { List list = new ArrayList<>(values.size()); for (KeyRingName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java index 8d115370779b..779051315dbb 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index b2398a668d42..da456c09f521 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -98,6 +98,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -704,7 +705,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -857,7 +858,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listKeyRingsSettings = PagedCallSettings.newBuilder(LIST_KEY_RINGS_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java index 7146943da73b..b7c086bb3f87 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java @@ -51,6 +51,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. /** @@ -355,7 +356,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LibraryServiceClient implements BackgroundResource { - private final LibraryServiceSettings settings; + private final @Nullable LibraryServiceSettings settings; private final LibraryServiceStub stub; /** Constructs an instance of LibraryServiceClient with default settings. */ @@ -395,7 +396,7 @@ protected LibraryServiceClient(LibraryServiceStub stub) { this.stub = stub; } - public final LibraryServiceSettings getSettings() { + public final @Nullable LibraryServiceSettings getSettings() { return settings; } @@ -501,7 +502,7 @@ public final UnaryCallable createShelfCallable() { * @param name The name of the shelf to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Shelf getShelf(ShelfName name) { + public final Shelf getShelf(@Nullable ShelfName name) { GetShelfRequest request = GetShelfRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getShelf(request); @@ -707,7 +708,7 @@ public final UnaryCallable listShelvesC * @param name The name of the shelf to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteShelf(ShelfName name) { + public final void deleteShelf(@Nullable ShelfName name) { DeleteShelfRequest request = DeleteShelfRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteShelf(request); @@ -818,7 +819,7 @@ public final UnaryCallable deleteShelfCallable() { * @param otherShelf The name of the shelf we're removing books from and deleting. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Shelf mergeShelves(ShelfName name, ShelfName otherShelf) { + public final Shelf mergeShelves(@Nullable ShelfName name, @Nullable ShelfName otherShelf) { MergeShelvesRequest request = MergeShelvesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -855,7 +856,7 @@ public final Shelf mergeShelves(ShelfName name, ShelfName otherShelf) { * @param otherShelf The name of the shelf we're removing books from and deleting. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Shelf mergeShelves(ShelfName name, String otherShelf) { + public final Shelf mergeShelves(@Nullable ShelfName name, String otherShelf) { MergeShelvesRequest request = MergeShelvesRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -892,7 +893,7 @@ public final Shelf mergeShelves(ShelfName name, String otherShelf) { * @param otherShelf The name of the shelf we're removing books from and deleting. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Shelf mergeShelves(String name, ShelfName otherShelf) { + public final Shelf mergeShelves(String name, @Nullable ShelfName otherShelf) { MergeShelvesRequest request = MergeShelvesRequest.newBuilder() .setName(name) @@ -1025,7 +1026,7 @@ public final UnaryCallable mergeShelvesCallable() { * @param book The book to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Book createBook(ShelfName parent, Book book) { + public final Book createBook(@Nullable ShelfName parent, Book book) { CreateBookRequest request = CreateBookRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1141,7 +1142,7 @@ public final UnaryCallable createBookCallable() { * @param name The name of the book to retrieve. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Book getBook(BookName name) { + public final Book getBook(@Nullable BookName name) { GetBookRequest request = GetBookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBook(request); @@ -1249,7 +1250,7 @@ public final UnaryCallable getBookCallable() { * @param parent The name of the shelf whose books we'd like to list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBooksPagedResponse listBooks(ShelfName parent) { + public final ListBooksPagedResponse listBooks(@Nullable ShelfName parent) { ListBooksRequest request = ListBooksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listBooks(request); @@ -1413,7 +1414,7 @@ public final UnaryCallable listBooksCallabl * @param name The name of the book to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBook(BookName name) { + public final void deleteBook(@Nullable BookName name) { DeleteBookRequest request = DeleteBookRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBook(request); @@ -1613,7 +1614,7 @@ public final UnaryCallable updateBookCallable() { * @param otherShelfName The name of the destination shelf. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Book moveBook(BookName name, ShelfName otherShelfName) { + public final Book moveBook(@Nullable BookName name, @Nullable ShelfName otherShelfName) { MoveBookRequest request = MoveBookRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1646,7 +1647,7 @@ public final Book moveBook(BookName name, ShelfName otherShelfName) { * @param otherShelfName The name of the destination shelf. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Book moveBook(BookName name, String otherShelfName) { + public final Book moveBook(@Nullable BookName name, String otherShelfName) { MoveBookRequest request = MoveBookRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1679,7 +1680,7 @@ public final Book moveBook(BookName name, String otherShelfName) { * @param otherShelfName The name of the destination shelf. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Book moveBook(String name, ShelfName otherShelfName) { + public final Book moveBook(String name, @Nullable ShelfName otherShelfName) { MoveBookRequest request = MoveBookRequest.newBuilder() .setName(name) @@ -1833,8 +1834,8 @@ public static class ListShelvesPage extends AbstractPage { private ListShelvesPage( - PageContext context, - ListShelvesResponse response) { + @Nullable PageContext context, + @Nullable ListShelvesResponse response) { super(context, response); } @@ -1844,14 +1845,14 @@ private static ListShelvesPage createEmptyPage() { @Override protected ListShelvesPage createPage( - PageContext context, - ListShelvesResponse response) { + @Nullable PageContext context, + @Nullable ListShelvesResponse response) { return new ListShelvesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1865,7 +1866,8 @@ public static class ListShelvesFixedSizeCollection ListShelvesPage, ListShelvesFixedSizeCollection> { - private ListShelvesFixedSizeCollection(List pages, int collectionSize) { + private ListShelvesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1875,7 +1877,7 @@ private static ListShelvesFixedSizeCollection createEmptyCollection() { @Override protected ListShelvesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListShelvesFixedSizeCollection(pages, collectionSize); } } @@ -1902,8 +1904,8 @@ public static class ListBooksPage extends AbstractPage { private ListBooksPage( - PageContext context, - ListBooksResponse response) { + @Nullable PageContext context, + @Nullable ListBooksResponse response) { super(context, response); } @@ -1913,14 +1915,14 @@ private static ListBooksPage createEmptyPage() { @Override protected ListBooksPage createPage( - PageContext context, - ListBooksResponse response) { + @Nullable PageContext context, + @Nullable ListBooksResponse response) { return new ListBooksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1930,7 +1932,7 @@ public static class ListBooksFixedSizeCollection extends AbstractFixedSizeCollection< ListBooksRequest, ListBooksResponse, Book, ListBooksPage, ListBooksFixedSizeCollection> { - private ListBooksFixedSizeCollection(List pages, int collectionSize) { + private ListBooksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1940,7 +1942,7 @@ private static ListBooksFixedSizeCollection createEmptyCollection() { @Override protected ListBooksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBooksFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java index 2bd7ba039c9c..011051ce6b1d 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java @@ -53,6 +53,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -222,7 +223,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); } @@ -242,7 +243,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LibraryServiceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java index 8e74f9c6e25d..cf39d5f4ffda 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -403,7 +404,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); } @@ -501,7 +502,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createShelfSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java index a115d587e51d..46b746cda709 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String shelf, String book) { return newBuilder().setShelf(shelf).setBook(book).build().toString(); } - public static BookName parse(String formattedString) { + public static @Nullable BookName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BookName> values) { List list = new ArrayList<>(values.size()); for (BookName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java index 172ce6f1d71c..bda7b5d38c29 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String shelfId) { return newBuilder().setShelfId(shelfId).build().toString(); } - public static ShelfName parse(String formattedString) { + public static @Nullable ShelfName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ShelfName> values) { List list = new ArrayList<>(values.size()); for (ShelfName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java index 3b949565cc9e..2c60f6598d1b 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java @@ -87,6 +87,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. /** @@ -634,7 +635,7 @@ @NullMarked @Generated("by gapic-generator-java") public class ConfigClient implements BackgroundResource { - private final ConfigSettings settings; + private final @Nullable ConfigSettings settings; private final ConfigServiceV2Stub stub; private final OperationsClient operationsClient; @@ -675,7 +676,7 @@ protected ConfigClient(ConfigServiceV2Stub stub) { this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } - public final ConfigSettings getSettings() { + public final @Nullable ConfigSettings getSettings() { return settings; } @@ -721,7 +722,7 @@ public final OperationsClient getOperationsClient() { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable BillingAccountLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -758,7 +759,7 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable FolderLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -795,7 +796,7 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(LocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable LocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -832,7 +833,7 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) { * character `-` in place of [LOCATION_ID] will return all buckets. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(OrganizationLocationName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable OrganizationLocationName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1708,7 +1709,7 @@ public final UnaryCallable deleteViewCallable() { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(BillingAccountName parent) { + public final ListSinksPagedResponse listSinks(@Nullable BillingAccountName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -1739,7 +1740,7 @@ public final ListSinksPagedResponse listSinks(BillingAccountName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(FolderName parent) { + public final ListSinksPagedResponse listSinks(@Nullable FolderName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -1770,7 +1771,7 @@ public final ListSinksPagedResponse listSinks(FolderName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(OrganizationName parent) { + public final ListSinksPagedResponse listSinks(@Nullable OrganizationName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -1801,7 +1802,7 @@ public final ListSinksPagedResponse listSinks(OrganizationName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSinksPagedResponse listSinks(ProjectName parent) { + public final ListSinksPagedResponse listSinks(@Nullable ProjectName parent) { ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listSinks(request); @@ -1965,7 +1966,7 @@ public final UnaryCallable listSinksCallabl *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink getSink(LogSinkName sinkName) { + public final LogSink getSink(@Nullable LogSinkName sinkName) { GetSinkRequest request = GetSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2091,7 +2092,7 @@ public final UnaryCallable getSinkCallable() { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(BillingAccountName parent, LogSink sink) { + public final LogSink createSink(@Nullable BillingAccountName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2131,7 +2132,7 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(FolderName parent, LogSink sink) { + public final LogSink createSink(@Nullable FolderName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2171,7 +2172,7 @@ public final LogSink createSink(FolderName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(OrganizationName parent, LogSink sink) { + public final LogSink createSink(@Nullable OrganizationName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2211,7 +2212,7 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) { * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink createSink(ProjectName parent, LogSink sink) { + public final LogSink createSink(@Nullable ProjectName parent, LogSink sink) { CreateSinkRequest request = CreateSinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2357,7 +2358,7 @@ public final UnaryCallable createSinkCallable() { * of `sink_name`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { + public final LogSink updateSink(@Nullable LogSinkName sinkName, LogSink sink) { UpdateSinkRequest request = UpdateSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2454,7 +2455,8 @@ public final LogSink updateSink(String sinkName, LogSink sink) { *

For example: `updateMask=filter` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) { + public final LogSink updateSink( + @Nullable LogSinkName sinkName, LogSink sink, FieldMask updateMask) { UpdateSinkRequest request = UpdateSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2619,7 +2621,7 @@ public final UnaryCallable updateSinkCallable() { *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSink(LogSinkName sinkName) { + public final void deleteSink(@Nullable LogSinkName sinkName) { DeleteSinkRequest request = DeleteSinkRequest.newBuilder() .setSinkName(sinkName == null ? null : sinkName.toString()) @@ -2743,7 +2745,7 @@ public final UnaryCallable deleteSinkCallable() { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(BillingAccountName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable BillingAccountName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2776,7 +2778,7 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(FolderName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable FolderName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2809,7 +2811,7 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) { * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable OrganizationName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2842,7 +2844,7 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExclusionsPagedResponse listExclusions(ProjectName parent) { + public final ListExclusionsPagedResponse listExclusions(@Nullable ProjectName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3011,7 +3013,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion getExclusion(LogExclusionName name) { + public final LogExclusion getExclusion(@Nullable LogExclusionName name) { GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getExclusion(request); @@ -3135,7 +3137,8 @@ public final UnaryCallable getExclusionCallab * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(BillingAccountName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion( + @Nullable BillingAccountName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3173,7 +3176,7 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(FolderName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion(@Nullable FolderName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3211,7 +3214,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(OrganizationName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion( + @Nullable OrganizationName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3249,7 +3253,7 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclusion) { + public final LogExclusion createExclusion(@Nullable ProjectName parent, LogExclusion exclusion) { CreateExclusionRequest request = CreateExclusionRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3390,7 +3394,7 @@ public final UnaryCallable createExclusion * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion updateExclusion( - LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { + @Nullable LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { UpdateExclusionRequest request = UpdateExclusionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -3536,7 +3540,7 @@ public final UnaryCallable updateExclusion *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExclusion(LogExclusionName name) { + public final void deleteExclusion(@Nullable LogExclusionName name) { DeleteExclusionRequest request = DeleteExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteExclusion(request); @@ -3821,7 +3825,7 @@ public final UnaryCallable updateCmekSe * Cloud organization. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Settings getSettings(SettingsName name) { + public final Settings getSettings(@Nullable SettingsName name) { GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSettings(request); @@ -4219,8 +4223,8 @@ public static class ListBucketsPage extends AbstractPage { private ListBucketsPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { super(context, response); } @@ -4230,14 +4234,14 @@ private static ListBucketsPage createEmptyPage() { @Override protected ListBucketsPage createPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { return new ListBucketsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4251,7 +4255,8 @@ public static class ListBucketsFixedSizeCollection ListBucketsPage, ListBucketsFixedSizeCollection> { - private ListBucketsFixedSizeCollection(List pages, int collectionSize) { + private ListBucketsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4261,7 +4266,7 @@ private static ListBucketsFixedSizeCollection createEmptyCollection() { @Override protected ListBucketsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBucketsFixedSizeCollection(pages, collectionSize); } } @@ -4292,8 +4297,8 @@ public static class ListViewsPage extends AbstractPage { private ListViewsPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { super(context, response); } @@ -4303,14 +4308,14 @@ private static ListViewsPage createEmptyPage() { @Override protected ListViewsPage createPage( - PageContext context, - ListViewsResponse response) { + @Nullable PageContext context, + @Nullable ListViewsResponse response) { return new ListViewsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4324,7 +4329,7 @@ public static class ListViewsFixedSizeCollection ListViewsPage, ListViewsFixedSizeCollection> { - private ListViewsFixedSizeCollection(List pages, int collectionSize) { + private ListViewsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4334,7 +4339,7 @@ private static ListViewsFixedSizeCollection createEmptyCollection() { @Override protected ListViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListViewsFixedSizeCollection(pages, collectionSize); } } @@ -4365,8 +4370,8 @@ public static class ListSinksPage extends AbstractPage { private ListSinksPage( - PageContext context, - ListSinksResponse response) { + @Nullable PageContext context, + @Nullable ListSinksResponse response) { super(context, response); } @@ -4376,14 +4381,14 @@ private static ListSinksPage createEmptyPage() { @Override protected ListSinksPage createPage( - PageContext context, - ListSinksResponse response) { + @Nullable PageContext context, + @Nullable ListSinksResponse response) { return new ListSinksPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4397,7 +4402,7 @@ public static class ListSinksFixedSizeCollection ListSinksPage, ListSinksFixedSizeCollection> { - private ListSinksFixedSizeCollection(List pages, int collectionSize) { + private ListSinksFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4407,7 +4412,7 @@ private static ListSinksFixedSizeCollection createEmptyCollection() { @Override protected ListSinksFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSinksFixedSizeCollection(pages, collectionSize); } } @@ -4441,8 +4446,8 @@ public static class ListExclusionsPage ListExclusionsRequest, ListExclusionsResponse, LogExclusion, ListExclusionsPage> { private ListExclusionsPage( - PageContext context, - ListExclusionsResponse response) { + @Nullable PageContext context, + @Nullable ListExclusionsResponse response) { super(context, response); } @@ -4452,14 +4457,14 @@ private static ListExclusionsPage createEmptyPage() { @Override protected ListExclusionsPage createPage( - PageContext context, - ListExclusionsResponse response) { + @Nullable PageContext context, + @Nullable ListExclusionsResponse response) { return new ListExclusionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4473,7 +4478,8 @@ public static class ListExclusionsFixedSizeCollection ListExclusionsPage, ListExclusionsFixedSizeCollection> { - private ListExclusionsFixedSizeCollection(List pages, int collectionSize) { + private ListExclusionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4483,7 +4489,7 @@ private static ListExclusionsFixedSizeCollection createEmptyCollection() { @Override protected ListExclusionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListExclusionsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java index 2904dc6ec896..67d6a258d21d 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java @@ -78,6 +78,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -342,7 +343,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -362,7 +363,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(ConfigServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java index 707c661a9e79..41b1d91893aa 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java @@ -54,6 +54,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. /** @@ -232,7 +233,7 @@ @NullMarked @Generated("by gapic-generator-java") public class LoggingClient implements BackgroundResource { - private final LoggingSettings settings; + private final @Nullable LoggingSettings settings; private final LoggingServiceV2Stub stub; /** Constructs an instance of LoggingClient with default settings. */ @@ -270,7 +271,7 @@ protected LoggingClient(LoggingServiceV2Stub stub) { this.stub = stub; } - public final LoggingSettings getSettings() { + public final @Nullable LoggingSettings getSettings() { return settings; } @@ -311,7 +312,7 @@ public LoggingServiceV2Stub getStub() { *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLog(LogName logName) { + public final void deleteLog(@Nullable LogName logName) { DeleteLogRequest request = DeleteLogRequest.newBuilder() .setLogName(logName == null ? null : logName.toString()) @@ -488,7 +489,7 @@ public final UnaryCallable deleteLogCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteLogEntriesResponse writeLogEntries( - LogName logName, + @Nullable LogName logName, MonitoredResource resource, Map labels, List entries) { @@ -976,7 +977,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(BillingAccountName parent) { + public final ListLogsPagedResponse listLogs(@Nullable BillingAccountName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1013,7 +1014,7 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(FolderName parent) { + public final ListLogsPagedResponse listLogs(@Nullable FolderName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1050,7 +1051,7 @@ public final ListLogsPagedResponse listLogs(FolderName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(OrganizationName parent) { + public final ListLogsPagedResponse listLogs(@Nullable OrganizationName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1087,7 +1088,7 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) { * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogsPagedResponse listLogs(ProjectName parent) { + public final ListLogsPagedResponse listLogs(@Nullable ProjectName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); @@ -1329,8 +1330,8 @@ public static class ListLogEntriesPage ListLogEntriesRequest, ListLogEntriesResponse, LogEntry, ListLogEntriesPage> { private ListLogEntriesPage( - PageContext context, - ListLogEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListLogEntriesResponse response) { super(context, response); } @@ -1340,14 +1341,14 @@ private static ListLogEntriesPage createEmptyPage() { @Override protected ListLogEntriesPage createPage( - PageContext context, - ListLogEntriesResponse response) { + @Nullable PageContext context, + @Nullable ListLogEntriesResponse response) { return new ListLogEntriesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1361,7 +1362,8 @@ public static class ListLogEntriesFixedSizeCollection ListLogEntriesPage, ListLogEntriesFixedSizeCollection> { - private ListLogEntriesFixedSizeCollection(List pages, int collectionSize) { + private ListLogEntriesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1371,7 +1373,7 @@ private static ListLogEntriesFixedSizeCollection createEmptyCollection() { @Override protected ListLogEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogEntriesFixedSizeCollection(pages, collectionSize); } } @@ -1414,12 +1416,13 @@ public static class ListMonitoredResourceDescriptorsPage ListMonitoredResourceDescriptorsPage> { private ListMonitoredResourceDescriptorsPage( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + @Nullable ListMonitoredResourceDescriptorsResponse response) { super(context, response); } @@ -1429,22 +1432,24 @@ private static ListMonitoredResourceDescriptorsPage createEmptyPage() { @Override protected ListMonitoredResourceDescriptorsPage createPage( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ListMonitoredResourceDescriptorsResponse response) { + @Nullable + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, + @Nullable ListMonitoredResourceDescriptorsResponse response) { return new ListMonitoredResourceDescriptorsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, + @Nullable + PageContext< + ListMonitoredResourceDescriptorsRequest, + ListMonitoredResourceDescriptorsResponse, + MonitoredResourceDescriptor> + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1459,7 +1464,7 @@ public static class ListMonitoredResourceDescriptorsFixedSizeCollection ListMonitoredResourceDescriptorsFixedSizeCollection> { private ListMonitoredResourceDescriptorsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1469,7 +1474,7 @@ private static ListMonitoredResourceDescriptorsFixedSizeCollection createEmptyCo @Override protected ListMonitoredResourceDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListMonitoredResourceDescriptorsFixedSizeCollection(pages, collectionSize); } } @@ -1496,7 +1501,8 @@ public static class ListLogsPage extends AbstractPage { private ListLogsPage( - PageContext context, ListLogsResponse response) { + @Nullable PageContext context, + @Nullable ListLogsResponse response) { super(context, response); } @@ -1506,13 +1512,14 @@ private static ListLogsPage createEmptyPage() { @Override protected ListLogsPage createPage( - PageContext context, ListLogsResponse response) { + @Nullable PageContext context, + @Nullable ListLogsResponse response) { return new ListLogsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1522,7 +1529,7 @@ public static class ListLogsFixedSizeCollection extends AbstractFixedSizeCollection< ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { - private ListLogsFixedSizeCollection(List pages, int collectionSize) { + private ListLogsFixedSizeCollection(@Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1532,7 +1539,7 @@ private static ListLogsFixedSizeCollection createEmptyCollection() { @Override protected ListLogsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java index 47c2092a47ac..4cfccc2c1095 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java @@ -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. /** @@ -187,7 +188,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -207,7 +208,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(LoggingServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java index 298de5923a4d..5739ab3e14bd 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java @@ -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. /** @@ -211,7 +212,7 @@ @NullMarked @Generated("by gapic-generator-java") public class MetricsClient implements BackgroundResource { - private final MetricsSettings settings; + private final @Nullable MetricsSettings settings; private final MetricsServiceV2Stub stub; /** Constructs an instance of MetricsClient with default settings. */ @@ -249,7 +250,7 @@ protected MetricsClient(MetricsServiceV2Stub stub) { this.stub = stub; } - public final MetricsSettings getSettings() { + public final @Nullable MetricsSettings getSettings() { return settings; } @@ -281,7 +282,7 @@ public MetricsServiceV2Stub getStub() { *

"projects/[PROJECT_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) { + public final ListLogMetricsPagedResponse listLogMetrics(@Nullable ProjectName parent) { ListLogMetricsRequest request = ListLogMetricsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -443,7 +444,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric getLogMetric(LogMetricName metricName) { + public final LogMetric getLogMetric(@Nullable LogMetricName metricName) { GetLogMetricRequest request = GetLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -560,7 +561,7 @@ public final UnaryCallable getLogMetricCallable( * already exists. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) { + public final LogMetric createLogMetric(@Nullable ProjectName parent, LogMetric metric) { CreateLogMetricRequest request = CreateLogMetricRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -685,7 +686,7 @@ public final UnaryCallable createLogMetricCal * @param metric Required. The updated metric. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metric) { + public final LogMetric updateLogMetric(@Nullable LogMetricName metricName, LogMetric metric) { UpdateLogMetricRequest request = UpdateLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -806,7 +807,7 @@ public final UnaryCallable updateLogMetricCal *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteLogMetric(LogMetricName metricName) { + public final void deleteLogMetric(@Nullable LogMetricName metricName) { DeleteLogMetricRequest request = DeleteLogMetricRequest.newBuilder() .setMetricName(metricName == null ? null : metricName.toString()) @@ -956,8 +957,8 @@ public static class ListLogMetricsPage ListLogMetricsRequest, ListLogMetricsResponse, LogMetric, ListLogMetricsPage> { private ListLogMetricsPage( - PageContext context, - ListLogMetricsResponse response) { + @Nullable PageContext context, + @Nullable ListLogMetricsResponse response) { super(context, response); } @@ -967,14 +968,14 @@ private static ListLogMetricsPage createEmptyPage() { @Override protected ListLogMetricsPage createPage( - PageContext context, - ListLogMetricsResponse response) { + @Nullable PageContext context, + @Nullable ListLogMetricsResponse response) { return new ListLogMetricsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -988,7 +989,8 @@ public static class ListLogMetricsFixedSizeCollection ListLogMetricsPage, ListLogMetricsFixedSizeCollection> { - private ListLogMetricsFixedSizeCollection(List pages, int collectionSize) { + private ListLogMetricsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -998,7 +1000,7 @@ private static ListLogMetricsFixedSizeCollection createEmptyCollection() { @Override protected ListLogMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListLogMetricsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java index 5c6c60c6028e..52781eb9a482 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java @@ -42,6 +42,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -166,7 +167,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -186,7 +187,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(MetricsServiceV2StubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 23c72df8c13f..2b02f58f200b 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -67,6 +67,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -78,7 +79,7 @@ @Generated("by gapic-generator-java") public abstract class ConfigServiceV2Stub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index a9fb32db8506..5e79ac2fe41e 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -97,6 +97,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -640,7 +641,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -783,7 +784,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listBucketsSettings = PagedCallSettings.newBuilder(LIST_BUCKETS_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 129d2dce53ce..939fee177384 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -76,6 +76,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -507,7 +508,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -609,7 +610,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteLogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index 12c4baf63676..a50043d6550d 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -58,6 +58,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -279,7 +280,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -364,7 +365,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listLogMetricsSettings = PagedCallSettings.newBuilder(LIST_LOG_METRICS_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java index 178a8e99bf96..dd867770c557 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -73,7 +74,7 @@ public static String format(String billingAccount, String location) { return newBuilder().setBillingAccount(billingAccount).setLocation(location).build().toString(); } - public static BillingAccountLocationName parse(String formattedString) { + public static @Nullable BillingAccountLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -92,7 +93,7 @@ public static List parseList(List formattedS return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountLocationName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountLocationName value : values) { if (value == null) { @@ -138,7 +139,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java index 7a0fcf839421..f54a4f2d3510 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String billingAccount) { return newBuilder().setBillingAccount(billingAccount).build().toString(); } - public static BillingAccountName parse(String formattedString) { + public static @Nullable BillingAccountName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BillingAccountName> values) { List list = new ArrayList<>(values.size()); for (BillingAccountName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java index 103c3a818915..403fbd96dab7 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -168,7 +169,7 @@ public static String formatBillingAccountName(String billingAccount) { return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); } - public static CmekSettingsName parse(String formattedString) { + public static @Nullable CmekSettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -196,7 +197,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CmekSettingsName> values) { List list = new ArrayList<>(values.size()); for (CmekSettingsName value : values) { if (value == null) { @@ -250,7 +251,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java index 4676ef17d701..dd98958024b4 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String folder, String location) { return newBuilder().setFolder(folder).setLocation(location).build().toString(); } - public static FolderLocationName parse(String formattedString) { + public static @Nullable FolderLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderLocationName> values) { List list = new ArrayList<>(values.size()); for (FolderLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java index ad975e6564ff..1aad3dad5014 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String folder) { return newBuilder().setFolder(folder).build().toString(); } - public static FolderName parse(String formattedString) { + public static @Nullable FolderName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable FolderName> values) { List list = new ArrayList<>(values.size()); for (FolderName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java index e869cb57f633..0361527b6af9 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java index d5af1c62075b..35771176cd27 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -237,7 +238,7 @@ public static String formatBillingAccountLocationBucketName( .toString(); } - public static LogBucketName parse(String formattedString) { + public static @Nullable LogBucketName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -269,7 +270,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogBucketName> values) { List list = new ArrayList<>(values.size()); for (LogBucketName value : values) { if (value == null) { @@ -329,7 +330,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java index f5deda544cd4..03679d45fa8d 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -195,7 +196,7 @@ public static String formatBillingAccountExclusionName(String billingAccount, St .toString(); } - public static LogExclusionName parse(String formattedString) { + public static @Nullable LogExclusionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -224,7 +225,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogExclusionName> values) { List list = new ArrayList<>(values.size()); for (LogExclusionName value : values) { if (value == null) { @@ -281,7 +282,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java index 4ed25f0ecaf5..9d9be5dee7c4 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String metric) { return newBuilder().setProject(project).setMetric(metric).build().toString(); } - public static LogMetricName parse(String formattedString) { + public static @Nullable LogMetricName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogMetricName> values) { List list = new ArrayList<>(values.size()); for (LogMetricName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java index 3e7c291fb43c..6f962918839e 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -182,7 +183,7 @@ public static String formatBillingAccountLogName(String billingAccount, String l .toString(); } - public static LogName parse(String formattedString) { + public static @Nullable LogName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -210,7 +211,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogName> values) { List list = new ArrayList<>(values.size()); for (LogName value : values) { if (value == null) { @@ -267,7 +268,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java index 9f8f86acccb5..5d20a29fb06e 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -186,7 +187,7 @@ public static String formatBillingAccountSinkName(String billingAccount, String .toString(); } - public static LogSinkName parse(String formattedString) { + public static @Nullable LogSinkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -214,7 +215,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogSinkName> values) { List list = new ArrayList<>(values.size()); for (LogSinkName value : values) { if (value == null) { @@ -271,7 +272,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java index 83f47d206990..bb6aa1404377 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -266,7 +267,7 @@ public static String formatBillingAccountLocationBucketViewName( .toString(); } - public static LogViewName parse(String formattedString) { + public static @Nullable LogViewName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -310,7 +311,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LogViewName> values) { List list = new ArrayList<>(values.size()); for (LogViewName value : values) { if (value == null) { @@ -373,7 +374,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java index 63390df42c17..7aaa27d894ad 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String organization, String location) { return newBuilder().setOrganization(organization).setLocation(location).build().toString(); } - public static OrganizationLocationName parse(String formattedString) { + public static @Nullable OrganizationLocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStr return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationLocationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationLocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java index d90f4ff73657..b64f94f47624 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String organization) { return newBuilder().setOrganization(organization).build().toString(); } - public static OrganizationName parse(String formattedString) { + public static @Nullable OrganizationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable OrganizationName> values) { List list = new ArrayList<>(values.size()); for (OrganizationName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java index 2cc797351ff5..49ba4e97dc04 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java index 4c3f9c69f7a6..414512788ff4 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -168,7 +169,7 @@ public static String formatBillingAccountName(String billingAccount) { return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); } - public static SettingsName parse(String formattedString) { + public static @Nullable SettingsName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -196,7 +197,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SettingsName> values) { List list = new ArrayList<>(values.size()); for (SettingsName value : values) { if (value == null) { @@ -250,7 +251,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 9ed9579c9353..855dd8a7350d 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -55,6 +55,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. /** @@ -362,7 +363,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { - private final SchemaServiceSettings settings; + private final @Nullable SchemaServiceSettings settings; private final SchemaServiceStub stub; /** Constructs an instance of SchemaServiceClient with default settings. */ @@ -402,7 +403,7 @@ protected SchemaServiceClient(SchemaServiceStub stub) { this.stub = stub; } - public final SchemaServiceSettings getSettings() { + public final @Nullable SchemaServiceSettings getSettings() { return settings; } @@ -441,7 +442,7 @@ public SchemaServiceStub getStub() { * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema createSchema(ProjectName parent, Schema schema, String schemaId) { + public final Schema createSchema(@Nullable ProjectName parent, Schema schema, String schemaId) { CreateSchemaRequest request = CreateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -573,7 +574,7 @@ public final UnaryCallable createSchemaCallable() { * `projects/{project}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema getSchema(SchemaName name) { + public final Schema getSchema(@Nullable SchemaName name) { GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getSchema(request); @@ -687,7 +688,7 @@ public final UnaryCallable getSchemaCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemasPagedResponse listSchemas(ProjectName parent) { + public final ListSchemasPagedResponse listSchemas(@Nullable ProjectName parent) { ListSchemasRequest request = ListSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -852,7 +853,7 @@ public final UnaryCallable listSchemasC * @param name Required. The name of the schema to list revisions for. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSchemaRevisionsPagedResponse listSchemaRevisions(SchemaName name) { + public final ListSchemaRevisionsPagedResponse listSchemaRevisions(@Nullable SchemaName name) { ListSchemaRevisionsRequest request = ListSchemaRevisionsRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1022,7 +1023,7 @@ public final ListSchemaRevisionsPagedResponse listSchemaRevisions( * @param schema Required. The schema revision to commit. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema commitSchema(SchemaName name, Schema schema) { + public final Schema commitSchema(@Nullable SchemaName name, Schema schema) { CommitSchemaRequest request = CommitSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1143,7 +1144,7 @@ public final UnaryCallable commitSchemaCallable() { *

Example: c7cfa2a8 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema rollbackSchema(SchemaName name, String revisionId) { + public final Schema rollbackSchema(@Nullable SchemaName name, String revisionId) { RollbackSchemaRequest request = RollbackSchemaRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1267,7 +1268,7 @@ public final UnaryCallable rollbackSchemaCallable *

Example: c7cfa2a8 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Schema deleteSchemaRevision(SchemaName name, String revisionId) { + public final Schema deleteSchemaRevision(@Nullable SchemaName name, String revisionId) { DeleteSchemaRevisionRequest request = DeleteSchemaRevisionRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1389,7 +1390,7 @@ public final UnaryCallable deleteSchemaRevi * `projects/{project}/schemas/{schema}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSchema(SchemaName name) { + public final void deleteSchema(@Nullable SchemaName name) { DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteSchema(request); @@ -1501,7 +1502,7 @@ public final UnaryCallable deleteSchemaCallable() { * @param schema Required. The schema object to validate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema schema) { + public final ValidateSchemaResponse validateSchema(@Nullable ProjectName parent, Schema schema) { ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1907,8 +1908,8 @@ public static class ListSchemasPage extends AbstractPage { private ListSchemasPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { super(context, response); } @@ -1918,14 +1919,14 @@ private static ListSchemasPage createEmptyPage() { @Override protected ListSchemasPage createPage( - PageContext context, - ListSchemasResponse response) { + @Nullable PageContext context, + @Nullable ListSchemasResponse response) { return new ListSchemasPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1939,7 +1940,8 @@ public static class ListSchemasFixedSizeCollection ListSchemasPage, ListSchemasFixedSizeCollection> { - private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + private ListSchemasFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1949,7 +1951,7 @@ private static ListSchemasFixedSizeCollection createEmptyCollection() { @Override protected ListSchemasFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemasFixedSizeCollection(pages, collectionSize); } } @@ -1986,8 +1988,9 @@ public static class ListSchemaRevisionsPage ListSchemaRevisionsPage> { private ListSchemaRevisionsPage( - PageContext context, - ListSchemaRevisionsResponse response) { + @Nullable + PageContext context, + @Nullable ListSchemaRevisionsResponse response) { super(context, response); } @@ -1997,14 +2000,16 @@ private static ListSchemaRevisionsPage createEmptyPage() { @Override protected ListSchemaRevisionsPage createPage( - PageContext context, - ListSchemaRevisionsResponse response) { + @Nullable + PageContext context, + @Nullable ListSchemaRevisionsResponse response) { return new ListSchemaRevisionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2019,7 +2024,7 @@ public static class ListSchemaRevisionsFixedSizeCollection ListSchemaRevisionsFixedSizeCollection> { private ListSchemaRevisionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2029,7 +2034,7 @@ private static ListSchemaRevisionsFixedSizeCollection createEmptyCollection() { @Override protected ListSchemaRevisionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSchemaRevisionsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 3a1bb72aaf88..22ddbf0c691b 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -56,6 +56,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -224,7 +225,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -244,7 +245,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 504c1ef5067e..ed862577bcab 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -66,6 +66,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. /** @@ -484,7 +485,7 @@ @NullMarked @Generated("by gapic-generator-java") public class SubscriptionAdminClient implements BackgroundResource { - private final SubscriptionAdminSettings settings; + private final @Nullable SubscriptionAdminSettings settings; private final SubscriberStub stub; /** Constructs an instance of SubscriptionAdminClient with default settings. */ @@ -524,7 +525,7 @@ protected SubscriptionAdminClient(SubscriberStub stub) { this.stub = stub; } - public final SubscriptionAdminSettings getSettings() { + public final @Nullable SubscriptionAdminSettings getSettings() { return settings; } @@ -592,7 +593,10 @@ public SubscriberStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { + @Nullable SubscriptionName name, + @Nullable TopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name == null ? null : name.toString()) @@ -663,7 +667,10 @@ public final Subscription createSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + @Nullable SubscriptionName name, + String topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name == null ? null : name.toString()) @@ -734,7 +741,7 @@ public final Subscription createSubscription( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription createSubscription( - String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { + String name, @Nullable TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { Subscription request = Subscription.newBuilder() .setName(name) @@ -942,7 +949,7 @@ public final UnaryCallable createSubscriptionCallabl * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(SubscriptionName subscription) { + public final Subscription getSubscription(@Nullable SubscriptionName subscription) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1118,7 +1125,7 @@ public final UnaryCallable updateSubscr * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { + public final ListSubscriptionsPagedResponse listSubscriptions(@Nullable ProjectName project) { ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -1286,7 +1293,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubscription(SubscriptionName subscription) { + public final void deleteSubscription(@Nullable SubscriptionName subscription) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1423,7 +1430,7 @@ public final UnaryCallable deleteSubscriptionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( - SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + @Nullable SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1574,7 +1581,7 @@ public final UnaryCallable modifyAckDeadlineCal * returned by the Pub/Sub system in the `Pull` response. Must not be empty. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void acknowledge(SubscriptionName subscription, List ackIds) { + public final void acknowledge(@Nullable SubscriptionName subscription, List ackIds) { AcknowledgeRequest request = AcknowledgeRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1709,7 +1716,7 @@ public final UnaryCallable acknowledgeCallable() { * a positive integer. The Pub/Sub system may return fewer than the number specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullResponse pull(SubscriptionName subscription, int maxMessages) { + public final PullResponse pull(@Nullable SubscriptionName subscription, int maxMessages) { PullRequest request = PullRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1785,7 +1792,7 @@ public final PullResponse pull(String subscription, int maxMessages) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PullResponse pull( - SubscriptionName subscription, boolean returnImmediately, int maxMessages) { + @Nullable SubscriptionName subscription, boolean returnImmediately, int maxMessages) { PullRequest request = PullRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1975,7 +1982,8 @@ public final UnaryCallable pullCallable() { * pausing the subscription if `Pull` or `StreamingPull` is not called. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) { + public final void modifyPushConfig( + @Nullable SubscriptionName subscription, PushConfig pushConfig) { ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2118,7 +2126,7 @@ public final UnaryCallable modifyPushConfigCalla * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(SnapshotName snapshot) { + public final Snapshot getSnapshot(@Nullable SnapshotName snapshot) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -2245,7 +2253,7 @@ public final UnaryCallable getSnapshotCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { + public final ListSnapshotsPagedResponse listSnapshots(@Nullable ProjectName project) { ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -2442,7 +2450,8 @@ public final UnaryCallable listSnap * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscription) { + public final Snapshot createSnapshot( + @Nullable SnapshotName name, @Nullable SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2495,7 +2504,7 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(SnapshotName name, String subscription) { + public final Snapshot createSnapshot(@Nullable SnapshotName name, String subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2548,7 +2557,7 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(String name, SubscriptionName subscription) { + public final Snapshot createSnapshot(String name, @Nullable SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name) @@ -2781,7 +2790,7 @@ public final UnaryCallable updateSnapshotCallab * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshot(SnapshotName snapshot) { + public final void deleteSnapshot(@Nullable SnapshotName snapshot) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -3209,8 +3218,9 @@ public static class ListSubscriptionsPage ListSubscriptionsPage> { private ListSubscriptionsPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable + PageContext context, + @Nullable ListSubscriptionsResponse response) { super(context, response); } @@ -3220,14 +3230,16 @@ private static ListSubscriptionsPage createEmptyPage() { @Override protected ListSubscriptionsPage createPage( - PageContext context, - ListSubscriptionsResponse response) { + @Nullable + PageContext context, + @Nullable ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3242,7 +3254,7 @@ public static class ListSubscriptionsFixedSizeCollection ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3252,7 +3264,7 @@ private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { @Override protected ListSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -3286,8 +3298,8 @@ public static class ListSnapshotsPage ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { private ListSnapshotsPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { super(context, response); } @@ -3297,14 +3309,14 @@ private static ListSnapshotsPage createEmptyPage() { @Override protected ListSnapshotsPage createPage( - PageContext context, - ListSnapshotsResponse response) { + @Nullable PageContext context, + @Nullable ListSnapshotsResponse response) { return new ListSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -3318,7 +3330,8 @@ public static class ListSnapshotsFixedSizeCollection ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { - private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + private ListSnapshotsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -3328,7 +3341,7 @@ private static ListSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index b5dea6fd00af..dec961b8b2c8 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -64,6 +64,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -263,7 +264,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -283,7 +284,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(SubscriberStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java index 4017bf13db75..9f49cb365a8f 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -55,6 +55,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. /** @@ -338,7 +339,7 @@ @NullMarked @Generated("by gapic-generator-java") public class TopicAdminClient implements BackgroundResource { - private final TopicAdminSettings settings; + private final @Nullable TopicAdminSettings settings; private final PublisherStub stub; /** Constructs an instance of TopicAdminClient with default settings. */ @@ -376,7 +377,7 @@ protected TopicAdminClient(PublisherStub stub) { this.stub = stub; } - public final TopicAdminSettings getSettings() { + public final @Nullable TopicAdminSettings getSettings() { return settings; } @@ -410,7 +411,7 @@ public PublisherStub getStub() { * length, and it must not start with `"goog"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic createTopic(TopicName name) { + public final Topic createTopic(@Nullable TopicName name) { Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); } @@ -596,7 +597,7 @@ public final UnaryCallable updateTopicCallable() { * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PublishResponse publish(TopicName topic, List messages) { + public final PublishResponse publish(@Nullable TopicName topic, List messages) { PublishRequest request = PublishRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -714,7 +715,7 @@ public final UnaryCallable publishCallable() { * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic getTopic(TopicName topic) { + public final Topic getTopic(@Nullable TopicName topic) { GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); return getTopic(request); @@ -826,7 +827,7 @@ public final UnaryCallable getTopicCallable() { * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicsPagedResponse listTopics(ProjectName project) { + public final ListTopicsPagedResponse listTopics(@Nullable ProjectName project) { ListTopicsRequest request = ListTopicsRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -988,7 +989,8 @@ public final UnaryCallable listTopicsCall * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicName topic) { + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( + @Nullable TopicName topic) { ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -1159,7 +1161,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic) { + public final ListTopicSnapshotsPagedResponse listTopicSnapshots(@Nullable TopicName topic) { ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -1340,7 +1342,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTopic(TopicName topic) { + public final void deleteTopic(@Nullable TopicName topic) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); deleteTopic(request); @@ -1745,8 +1747,8 @@ public static class ListTopicsPage extends AbstractPage { private ListTopicsPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { super(context, response); } @@ -1756,14 +1758,14 @@ private static ListTopicsPage createEmptyPage() { @Override protected ListTopicsPage createPage( - PageContext context, - ListTopicsResponse response) { + @Nullable PageContext context, + @Nullable ListTopicsResponse response) { return new ListTopicsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1777,7 +1779,8 @@ public static class ListTopicsFixedSizeCollection ListTopicsPage, ListTopicsFixedSizeCollection> { - private ListTopicsFixedSizeCollection(List pages, int collectionSize) { + private ListTopicsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1787,7 +1790,7 @@ private static ListTopicsFixedSizeCollection createEmptyCollection() { @Override protected ListTopicsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicsFixedSizeCollection(pages, collectionSize); } } @@ -1824,8 +1827,10 @@ public static class ListTopicSubscriptionsPage ListTopicSubscriptionsPage> { private ListTopicSubscriptionsPage( - PageContext context, - ListTopicSubscriptionsResponse response) { + @Nullable + PageContext + context, + @Nullable ListTopicSubscriptionsResponse response) { super(context, response); } @@ -1835,14 +1840,18 @@ private static ListTopicSubscriptionsPage createEmptyPage() { @Override protected ListTopicSubscriptionsPage createPage( - PageContext context, - ListTopicSubscriptionsResponse response) { + @Nullable + PageContext + context, + @Nullable ListTopicSubscriptionsResponse response) { return new ListTopicSubscriptionsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext + context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1857,7 +1866,7 @@ public static class ListTopicSubscriptionsFixedSizeCollection ListTopicSubscriptionsFixedSizeCollection> { private ListTopicSubscriptionsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1867,7 +1876,7 @@ private static ListTopicSubscriptionsFixedSizeCollection createEmptyCollection() @Override protected ListTopicSubscriptionsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); } } @@ -1901,8 +1910,9 @@ public static class ListTopicSnapshotsPage ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage> { private ListTopicSnapshotsPage( - PageContext context, - ListTopicSnapshotsResponse response) { + @Nullable + PageContext context, + @Nullable ListTopicSnapshotsResponse response) { super(context, response); } @@ -1912,14 +1922,16 @@ private static ListTopicSnapshotsPage createEmptyPage() { @Override protected ListTopicSnapshotsPage createPage( - PageContext context, - ListTopicSnapshotsResponse response) { + @Nullable + PageContext context, + @Nullable ListTopicSnapshotsResponse response) { return new ListTopicSnapshotsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -1934,7 +1946,7 @@ public static class ListTopicSnapshotsFixedSizeCollection ListTopicSnapshotsFixedSizeCollection> { private ListTopicSnapshotsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -1944,7 +1956,7 @@ private static ListTopicSnapshotsFixedSizeCollection createEmptyCollection() { @Override protected ListTopicSnapshotsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListTopicSnapshotsFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 3cd5c31abad1..492c445f938c 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -57,6 +57,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -223,7 +224,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -243,7 +244,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(PublisherStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 30709fd96c19..1b8c7f41b7c0 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -82,6 +82,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -540,7 +541,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -669,7 +670,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 4871f04a3607..85401696e63e 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -71,6 +71,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -402,7 +403,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -484,7 +485,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 394af9a144ff..10882d908434 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -80,6 +80,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -448,7 +449,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -590,7 +591,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); createSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java index 2db74834b0de..067979e33d55 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java index a7fcd22be396..ce1ecb131390 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String schema) { return newBuilder().setProject(project).setSchema(schema).build().toString(); } - public static SchemaName parse(String formattedString) { + public static @Nullable SchemaName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SchemaName> values) { List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java index bbeafc6c4ddb..38a389953718 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String snapshot) { return newBuilder().setProject(project).setSnapshot(snapshot).build().toString(); } - public static SnapshotName parse(String formattedString) { + public static @Nullable SnapshotName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SnapshotName> values) { List list = new ArrayList<>(values.size()); for (SnapshotName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java index 8ea245778aab..5c1bb8c03b37 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String subscription) { return newBuilder().setProject(project).setSubscription(subscription).build().toString(); } - public static SubscriptionName parse(String formattedString) { + public static @Nullable SubscriptionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable SubscriptionName> values) { List list = new ArrayList<>(values.size()); for (SubscriptionName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java index 5aa9b579ffbc..777ed3d06cd3 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java @@ -27,6 +27,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -104,7 +105,7 @@ public static String formatDeletedTopicName() { return "_deleted-topic_"; } - public static TopicName parse(String formattedString) { + public static @Nullable TopicName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -125,7 +126,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable TopicName> values) { List list = new ArrayList<>(values.size()); for (TopicName value : values) { if (value == null) { @@ -170,7 +171,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java index abbea298e8e9..270d4aef3164 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -41,6 +41,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. /** @@ -376,7 +377,7 @@ @BetaApi @Generated("by gapic-generator-java") public class CloudRedisClient implements BackgroundResource { - private final CloudRedisSettings settings; + private final @Nullable CloudRedisSettings settings; private final CloudRedisStub stub; private final OperationsClient httpJsonOperationsClient; private final com.google.longrunning.OperationsClient operationsClient; @@ -422,7 +423,7 @@ protected CloudRedisClient(CloudRedisStub stub) { this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - public final CloudRedisSettings getSettings() { + public final @Nullable CloudRedisSettings getSettings() { return settings; } @@ -481,7 +482,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { + public final ListInstancesPagedResponse listInstances(@Nullable LocationName parent) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -684,7 +685,7 @@ public final UnaryCallable listInst * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(InstanceName name) { + public final Instance getInstance(@Nullable InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); @@ -797,7 +798,7 @@ public final UnaryCallable getInstanceCallable() { * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InstanceAuthString getInstanceAuthString(InstanceName name) { + public final InstanceAuthString getInstanceAuthString(@Nullable InstanceName name) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -941,7 +942,7 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createInstanceAsync( - LocationName parent, String instanceId, Instance instance) { + @Nullable LocationName parent, String instanceId, Instance instance) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1294,7 +1295,7 @@ public final UnaryCallable updateInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture upgradeInstanceAsync( - InstanceName name, String redisVersion) { + @Nullable InstanceName name, String redisVersion) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1733,7 +1734,7 @@ public final UnaryCallable exportInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture failoverInstanceAsync( - InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { + @Nullable InstanceName name, FailoverInstanceRequest.DataProtectionMode dataProtectionMode) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1891,7 +1892,7 @@ public final UnaryCallable failoverInstanceC * refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture deleteInstanceAsync(InstanceName name) { + public final OperationFuture deleteInstanceAsync(@Nullable InstanceName name) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return deleteInstanceAsync(request); @@ -2041,7 +2042,7 @@ public final UnaryCallable deleteInstanceCalla * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture rescheduleMaintenanceAsync( - InstanceName name, + @Nullable InstanceName name, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) { RescheduleMaintenanceRequest request = @@ -2246,8 +2247,8 @@ public static class ListInstancesPage ListInstancesRequest, ListInstancesResponse, Instance, ListInstancesPage> { private ListInstancesPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { super(context, response); } @@ -2257,14 +2258,14 @@ private static ListInstancesPage createEmptyPage() { @Override protected ListInstancesPage createPage( - PageContext context, - ListInstancesResponse response) { + @Nullable PageContext context, + @Nullable ListInstancesResponse response) { return new ListInstancesPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -2278,7 +2279,8 @@ public static class ListInstancesFixedSizeCollection ListInstancesPage, ListInstancesFixedSizeCollection> { - private ListInstancesFixedSizeCollection(List pages, int collectionSize) { + private ListInstancesFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -2288,7 +2290,7 @@ private static ListInstancesFixedSizeCollection createEmptyCollection() { @Override protected ListInstancesFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListInstancesFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index da404eee4abc..a0af89221248 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -40,6 +40,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -281,7 +282,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); } @@ -301,7 +302,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(CloudRedisStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java index 603b9f8ca7ef..0090b276fc17 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String location, String instance) { .toString(); } - public static InstanceName parse(String formattedString) { + public static @Nullable InstanceName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable InstanceName> values) { List list = new ArrayList<>(values.size()); for (InstanceName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java index 6b5c2f14a01f..1571415418e0 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String location) { return newBuilder().setProject(project).setLocation(location).build().toString(); } - public static LocationName parse(String formattedString) { + public static @Nullable LocationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable LocationName> values) { List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(Object o) { + public boolean equals(@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java index e68811a95d94..7bd0b3e49971 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java @@ -42,6 +42,7 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,11 +55,12 @@ @Generated("by gapic-generator-java") public abstract class CloudRedisStub implements BackgroundResource { - public OperationsStub getOperationsStub() { + public @Nullable OperationsStub getOperationsStub() { return null; } - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { return null; } diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index c196c6066f9a..896e7ab51577 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -75,6 +75,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -447,7 +448,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); } @@ -561,7 +562,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT); diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java index 64f36d73175a..e6ad306955a6 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -72,7 +73,7 @@ public static String format(String project, String bucket) { return newBuilder().setProject(project).setBucket(bucket).build().toString(); } - public static BucketName parse(String formattedString) { + public static @Nullable BucketName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -90,7 +91,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable BucketName> values) { List list = new ArrayList<>(values.size()); for (BucketName value : values) { if (value == null) { @@ -135,7 +136,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java index b9ccbab4b6fa..bd08408bab43 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -99,7 +100,7 @@ public static String format(String project, String location, String keyRing, Str .toString(); } - public static CryptoKeyName parse(String formattedString) { + public static @Nullable CryptoKeyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -121,7 +122,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable CryptoKeyName> values) { List list = new ArrayList<>(values.size()); for (CryptoKeyName value : values) { if (value == null) { @@ -173,7 +174,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java index 5e33a2ad301e..acb5a74bdc6e 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -85,7 +86,7 @@ public static String format(String project, String bucket, String notification) .toString(); } - public static NotificationName parse(String formattedString) { + public static @Nullable NotificationName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -103,7 +104,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable NotificationName> values) { List list = new ArrayList<>(values.size()); for (NotificationName value : values) { if (value == null) { @@ -152,7 +153,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java index 790851e53aa8..34f497211e02 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java @@ -26,6 +26,7 @@ import java.util.Objects; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. @NullMarked @@ -65,7 +66,7 @@ public static String format(String project) { return newBuilder().setProject(project).build().toString(); } - public static ProjectName parse(String formattedString) { + public static @Nullable ProjectName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } @@ -83,7 +84,7 @@ public static List parseList(List formattedStrings) { return list; } - public static List toStringList(List values) { + public static List toStringList(List<@Nullable ProjectName> values) { List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { @@ -125,7 +126,7 @@ public String toString() { } @Override - public boolean equals(java.lang.Object o) { + public boolean equals(java.lang.@Nullable Object o) { if (o == this) { return true; } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java index 38af59ac85e2..c4bd205d85db 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java @@ -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. /** @@ -671,7 +672,7 @@ @NullMarked @Generated("by gapic-generator-java") public class StorageClient implements BackgroundResource { - private final StorageSettings settings; + private final @Nullable StorageSettings settings; private final StorageStub stub; /** Constructs an instance of StorageClient with default settings. */ @@ -709,7 +710,7 @@ protected StorageClient(StorageStub stub) { this.stub = stub; } - public final StorageSettings getSettings() { + public final @Nullable StorageSettings getSettings() { return settings; } @@ -738,7 +739,7 @@ public StorageStub getStub() { * @param name Required. Name of a bucket to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteBucket(BucketName name) { + public final void deleteBucket(@Nullable BucketName name) { DeleteBucketRequest request = DeleteBucketRequest.newBuilder().setName(name == null ? null : name.toString()).build(); deleteBucket(request); @@ -850,7 +851,7 @@ public final UnaryCallable deleteBucketCallable() { * @param name Required. Name of a bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket getBucket(BucketName name) { + public final Bucket getBucket(@Nullable BucketName name) { GetBucketRequest request = GetBucketRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getBucket(request); @@ -972,7 +973,7 @@ public final UnaryCallable getBucketCallable() { * the name `projects/123456/buckets/foo`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket createBucket(ProjectName parent, Bucket bucket, String bucketId) { + public final Bucket createBucket(@Nullable ProjectName parent, Bucket bucket, String bucketId) { CreateBucketRequest request = CreateBucketRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1107,7 +1108,7 @@ public final UnaryCallable createBucketCallable() { * @param parent Required. The project whose buckets we are listing. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBucketsPagedResponse listBuckets(ProjectName parent) { + public final ListBucketsPagedResponse listBuckets(@Nullable ProjectName parent) { ListBucketsRequest request = ListBucketsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1272,7 +1273,7 @@ public final UnaryCallable listBucketsC * @param bucket Required. Name of a bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Bucket lockBucketRetentionPolicy(BucketName bucket) { + public final Bucket lockBucketRetentionPolicy(@Nullable BucketName bucket) { LockBucketRetentionPolicyRequest request = LockBucketRetentionPolicyRequest.newBuilder() .setBucket(bucket == null ? null : bucket.toString()) @@ -1391,7 +1392,7 @@ public final Bucket lockBucketRetentionPolicy(LockBucketRetentionPolicyRequest r * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(ResourceName resource) { + public final Policy getIamPolicy(@Nullable ResourceName resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1523,7 +1524,7 @@ public final UnaryCallable getIamPolicyCallable() { * Platform services (such as Projects) might reject them. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { + public final Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1665,7 +1666,7 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { + @Nullable ResourceName resource, List permissions) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource == null ? null : resource.toString()) @@ -1905,7 +1906,7 @@ public final UnaryCallable updateBucketCallable() { * @param name Required. The parent bucket of the notification. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteNotification(NotificationName name) { + public final void deleteNotification(@Nullable NotificationName name) { DeleteNotificationRequest request = DeleteNotificationRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -2017,7 +2018,7 @@ public final UnaryCallable deleteNotificationC * `projects/{project}/buckets/{bucket}/notificationConfigs/{notification}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Notification getNotification(BucketName name) { + public final Notification getNotification(@Nullable BucketName name) { GetNotificationRequest request = GetNotificationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getNotification(request); @@ -2130,7 +2131,8 @@ public final UnaryCallable getNotification * @param notification Required. Properties of the notification to be inserted. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Notification createNotification(ProjectName parent, Notification notification) { + public final Notification createNotification( + @Nullable ProjectName parent, Notification notification) { CreateNotificationRequest request = CreateNotificationRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -2258,7 +2260,7 @@ public final UnaryCallable createNotifi * @param parent Required. Name of a Google Cloud Storage bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationsPagedResponse listNotifications(ProjectName parent) { + public final ListNotificationsPagedResponse listNotifications(@Nullable ProjectName parent) { ListNotificationsRequest request = ListNotificationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3086,7 +3088,7 @@ public final UnaryCallable updateObjectCallable() { * @param parent Required. Name of the bucket in which to look for objects. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListObjectsPagedResponse listObjects(ProjectName parent) { + public final ListObjectsPagedResponse listObjects(@Nullable ProjectName parent) { ListObjectsRequest request = ListObjectsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -3550,7 +3552,7 @@ public final QueryWriteStatusResponse queryWriteStatus(QueryWriteStatusRequest r * <projectIdentifier> can be the project ID or project number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ServiceAccount getServiceAccount(ProjectName project) { + public final ServiceAccount getServiceAccount(@Nullable ProjectName project) { GetServiceAccountRequest request = GetServiceAccountRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -3668,7 +3670,7 @@ public final UnaryCallable getServiceA * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CreateHmacKeyResponse createHmacKey( - ProjectName project, String serviceAccountEmail) { + @Nullable ProjectName project, String serviceAccountEmail) { CreateHmacKeyRequest request = CreateHmacKeyRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -3794,7 +3796,7 @@ public final UnaryCallable createHm * project number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteHmacKey(String accessId, ProjectName project) { + public final void deleteHmacKey(String accessId, @Nullable ProjectName project) { DeleteHmacKeyRequest request = DeleteHmacKeyRequest.newBuilder() .setAccessId(accessId) @@ -3916,7 +3918,7 @@ public final UnaryCallable deleteHmacKeyCallable() * project number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HmacKeyMetadata getHmacKey(String accessId, ProjectName project) { + public final HmacKeyMetadata getHmacKey(String accessId, @Nullable ProjectName project) { GetHmacKeyRequest request = GetHmacKeyRequest.newBuilder() .setAccessId(accessId) @@ -4038,7 +4040,7 @@ public final UnaryCallable getHmacKeyCallabl * project number. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListHmacKeysPagedResponse listHmacKeys(ProjectName project) { + public final ListHmacKeysPagedResponse listHmacKeys(@Nullable ProjectName project) { ListHmacKeysRequest request = ListHmacKeysRequest.newBuilder() .setProject(project == null ? null : project.toString()) @@ -4330,8 +4332,8 @@ public static class ListBucketsPage extends AbstractPage { private ListBucketsPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { super(context, response); } @@ -4341,14 +4343,14 @@ private static ListBucketsPage createEmptyPage() { @Override protected ListBucketsPage createPage( - PageContext context, - ListBucketsResponse response) { + @Nullable PageContext context, + @Nullable ListBucketsResponse response) { return new ListBucketsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4362,7 +4364,8 @@ public static class ListBucketsFixedSizeCollection ListBucketsPage, ListBucketsFixedSizeCollection> { - private ListBucketsFixedSizeCollection(List pages, int collectionSize) { + private ListBucketsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4372,7 +4375,7 @@ private static ListBucketsFixedSizeCollection createEmptyCollection() { @Override protected ListBucketsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListBucketsFixedSizeCollection(pages, collectionSize); } } @@ -4409,8 +4412,9 @@ public static class ListNotificationsPage ListNotificationsPage> { private ListNotificationsPage( - PageContext context, - ListNotificationsResponse response) { + @Nullable + PageContext context, + @Nullable ListNotificationsResponse response) { super(context, response); } @@ -4420,14 +4424,16 @@ private static ListNotificationsPage createEmptyPage() { @Override protected ListNotificationsPage createPage( - PageContext context, - ListNotificationsResponse response) { + @Nullable + PageContext context, + @Nullable ListNotificationsResponse response) { return new ListNotificationsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable + PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4442,7 +4448,7 @@ public static class ListNotificationsFixedSizeCollection ListNotificationsFixedSizeCollection> { private ListNotificationsFixedSizeCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4452,7 +4458,7 @@ private static ListNotificationsFixedSizeCollection createEmptyCollection() { @Override protected ListNotificationsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListNotificationsFixedSizeCollection(pages, collectionSize); } } @@ -4483,8 +4489,8 @@ public static class ListObjectsPage extends AbstractPage { private ListObjectsPage( - PageContext context, - ListObjectsResponse response) { + @Nullable PageContext context, + @Nullable ListObjectsResponse response) { super(context, response); } @@ -4494,14 +4500,14 @@ private static ListObjectsPage createEmptyPage() { @Override protected ListObjectsPage createPage( - PageContext context, - ListObjectsResponse response) { + @Nullable PageContext context, + @Nullable ListObjectsResponse response) { return new ListObjectsPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4515,7 +4521,8 @@ public static class ListObjectsFixedSizeCollection ListObjectsPage, ListObjectsFixedSizeCollection> { - private ListObjectsFixedSizeCollection(List pages, int collectionSize) { + private ListObjectsFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4525,7 +4532,7 @@ private static ListObjectsFixedSizeCollection createEmptyCollection() { @Override protected ListObjectsFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListObjectsFixedSizeCollection(pages, collectionSize); } } @@ -4559,8 +4566,8 @@ public static class ListHmacKeysPage ListHmacKeysRequest, ListHmacKeysResponse, HmacKeyMetadata, ListHmacKeysPage> { private ListHmacKeysPage( - PageContext context, - ListHmacKeysResponse response) { + @Nullable PageContext context, + @Nullable ListHmacKeysResponse response) { super(context, response); } @@ -4570,14 +4577,14 @@ private static ListHmacKeysPage createEmptyPage() { @Override protected ListHmacKeysPage createPage( - PageContext context, - ListHmacKeysResponse response) { + @Nullable PageContext context, + @Nullable ListHmacKeysResponse response) { return new ListHmacKeysPage(context, response); } @Override public ApiFuture createPageAsync( - PageContext context, + @Nullable PageContext context, ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } @@ -4591,7 +4598,8 @@ public static class ListHmacKeysFixedSizeCollection ListHmacKeysPage, ListHmacKeysFixedSizeCollection> { - private ListHmacKeysFixedSizeCollection(List pages, int collectionSize) { + private ListHmacKeysFixedSizeCollection( + @Nullable List pages, int collectionSize) { super(pages, collectionSize); } @@ -4601,7 +4609,7 @@ private static ListHmacKeysFixedSizeCollection createEmptyCollection() { @Override protected ListHmacKeysFixedSizeCollection createCollection( - List pages, int collectionSize) { + @Nullable List pages, int collectionSize) { return new ListHmacKeysFixedSizeCollection(pages, collectionSize); } } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java index 14f6bcbea995..74b94b095c95 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java @@ -45,6 +45,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -302,7 +303,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -322,7 +323,7 @@ protected Builder() throws IOException { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(StorageStubSettings.newBuilder(clientContext)); } diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java index 83dd99d89c31..01a0e0f1a556 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java @@ -104,6 +104,7 @@ import java.util.List; import javax.annotation.Generated; import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -655,7 +656,7 @@ public static Builder newBuilder() { } /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { + public static Builder newBuilder(@Nullable ClientContext clientContext) { return new Builder(clientContext); } @@ -797,7 +798,7 @@ protected Builder() { this(((ClientContext) null)); } - protected Builder(ClientContext clientContext) { + protected Builder(@Nullable ClientContext clientContext) { super(clientContext); deleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();